CreaspotService

CreaspotService

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 files
      • predict: starts the prediction (it takes a few minuts).
        • The /results/{results.json,results.mp4,predict.log.txt} files are available at the process end.
      • status: returns the process status
        • cleaned: after a clean
        • loaded: after a new input video has been uploaded.
        • predicting: when prediction is processing.
        • predicted: when prediction is done.
Parameters:
Name Type Description
server express

The express server mechanism.