5sControl / 5s-backend

Video monitoring system with AI analysis and ERP Integration (Open Source) that helps companies improve productivity, eliminate waste, and enhance workplace safety using computer vision and machine learning
https://5scontrol.com
GNU General Public License v3.0
1 stars 1 forks source link

Implement algoritms task manager #373

Open ZhitkoAnastasia opened 11 months ago

ZhitkoAnastasia commented 11 months ago

back-end

Image

ZhuchkouAA commented 11 months ago

GET http://192.168.1.110:3333/tasks Get information about running and stopped containers Response: {"status":true,"tasks":{"30509369495":{"camera_url":"rtsp://admin:just4Taqtile@192.168.1.164/h264_stream","algorithm":"min_max_control","image":"5scontrol/min_max_python:v0.4.6","version":"v0.4.6","cpu":"39.82%","ram":"101M","status":"running"},"42499519645":{"camera_url":"rtsp://admin:just4Taqtile@192.168.1.163/h264_stream","algorithm":"min_max_control","image":"5scontrol/min_max_python:v0.4.6","version":"v0.4.6","cpu":"0.47%","ram":"79M","status":"running"}}}

For real-time updates, this message also comes over a socket connection: http://192.168.1.110:3456/socket.io message name: 'tasks' {"30509369495":{"camera_url":"rtsp://admin:just4Taqtile@192.168.1.164/h264_stream","algorithm":"min_max_control","image":"5scontrol/min_max_python:v0.4.6","version":"v0.4.6","cpu":"0.00%","ram":"96M","status":"running"},"42499519645":{"camera_url":"rtsp://admin:just4Taqtile@192.168.1.163/h264_stream","algorithm":"min_max_control","image":"5scontrol/min_max_python:v0.4.6","version":"v0.4.6","cpu":"38.44%","ram":"102M","status":"running"}}}

GET http://192.168.1.110:3333/logs?taskId=30509369495 Get logs from container by taskId Response: {"status":true, "logs": "2023-08-10 08:03:21 DEBUG: Human preds received 2023-08-10 08:03:22 DEBUG: Sending request to model server 2023-08-10 08:03:24 DEBUG: Human preds received 2023-08-10 08:03:25 DEBUG: Sending request to model server 2023-08-10 08:03:28 DEBUG: Human preds received 2023-08-10 08:03:29 DEBUG: Sending request to model server 2023-08-10 08:03:31 DEBUG: Human preds received 2023-08-10 08:03:32 DEBUG: Sending request to model server 2023-08-10 08:03:34 DEBUG: Human preds received 2023-08-10 08:03:35 DEBUG: Sending request to model server 2023-08-10 08:03:37 DEBUG: Human preds received 2023-08-10 08:03:38 DEBUG: Sending request to model server"}

cc @etosolo322 @ZhitkoAnastasia