Skip to content

Latest commit

 

History

History
63 lines (53 loc) · 1.37 KB

README.md

File metadata and controls

63 lines (53 loc) · 1.37 KB

sc-api

Python wrapper

This is a wrapper for the stall catchers bot api.

Routes

Register the bot
<host>/api/register
Method: POST
Body: [username, password, email]

Log the bot in
<host>/api/login
Method: POST
Body: [username, password]

Log the bot out
<host>/api/login
Method: GET
Body: [username, password]

Get a movie
<host>/api/movie
Method: GET

Save a movie answer
<host>/api/save-movie-answer
Method: POST
Body: [movieId, answer(1,0)]

Get score history
<host>/api/score-history
Method: GET

Bot

An abstract class for a bot using the api to:

  • register
  • log in
  • process videos
  • log out

The start time can either be a datetime or None, in which case the bot will start processing right away.

The stop condition is controlled using the "duration" argument. The bot will stop either after a set time while there are unseen movies, or if the duration was None, when the active dataset has been completed by the bot.

The only unimplemented method is the one used to process a movie at a time. It should return either 0 or 1, indicating whether the blood vessel section outlined in the video is flowing or stalled.

Gaia

Gaia is an intelligent bot using the 3rd place solution in the Clog Loss competition to make predictions for videos.