new CreaspotService(server)
- Description:
Implements the creaspot web service
- A POST Uploadservice is attached to the
/creaspot/upload
route, to upload a new input video. - A GET service is attached to the
/creaspot/run/{clean,predict,status}
, routes.clean
: stops all processes and cleans all filespredict
: starts the prediction (it takes a few minuts).- The
/results/{results.json,results.mp4,predict.log.txt}
files are available at the process end.
- The
status
: returns the process statuscleaned
: after a cleanloaded
: after a new input video has been uploaded.predicting
: when prediction is processing.predicted
: when prediction is done.
- A POST Uploadservice is attached to the
Parameters:
Name | Type | Description |
---|---|---|
server |
express | The express server mechanism. |