Open rickyyx opened 4 years ago
This might have to use socket.IO for streaming data between the website and the server.
URL: /upload
METHOD: POST
DATA: <raw video>
- id: int
- remaining process time : float
- current state : string
- logs : dict # TODO: What to put in the logs?
+ video specific info:
- size of video
- length of video
- number of shots after preprocess
+ model specific information
- loss
- test evaluated metrics
URL: /cancel-upload
FIELD:
- id # Get from the previous upload request
- success
There are multiple ways to do this:
/result?id=xxxx
- segments
- outline
- timestamp
- keywords
- confidence score?
API
Key Frame Shots Segment Component (Vicky)
Take in a long video, outputs segmented shots. Sample output: