- Create a web server with a
/start
endpoint (you can use any library you want).- It only responds to a POST request.
- When it receives the parameter
rtsp_url
, start a new process.
- The new process reads the video stream from
rtsp_url
usingopencv
. - Add a
/stop
endpoint.- Save an image with size 900x900 of the top 9 brightest frames from the video in a grid.
- Stop the video reading process.
- Display the image in the HTML response.
- Save this image and send it on the Upwork chat.
Notes:
- Your solution will be judged based on readability, correctness and documentation.
- This task should not take more than 1-2 hours.
- Do NOT post your answer on a public URL.
- Create a zip file exercise.zip
- After it's unzipped, it should contain the project source code.
- The program MUST run inside Docker. We will run your script using the following command: