Noza23 / myovision-app

RESTful API for myovision project
https://github.com/Noza23/myovision
MIT License
0 stars 0 forks source link

Validation WebSocket #3

Closed Noza23 closed 9 months ago

Noza23 commented 10 months ago

Path of Websocket is: /validation/{hash_str}/

  1. On Connection opening socket sends either next contour to validate list[list[int]] or"done" meaning the validation has already been completed (cached).

  2. Based on user interaction Front-End sends Invalid = 0, Valid = 1, Skip = 2, Undo = -1 As a response it recieves next (previous) contour to validate list[list[int]] or "done".

  3. On "done" the Front-End tells the user, that the validation has already been completed and offers an opportunity to save the resulting contours locally on disk.