AlexeyAB / darknet

YOLOv4 / Scaled-YOLOv4 / YOLO - Neural Networks for Object Detection (Windows and Linux version of Darknet )
http://pjreddie.com/darknet/
Other
21.59k stars 7.95k forks source link

start darknet.py with -mjpeg_port #4427

Open marfis89 opened 4 years ago

marfis89 commented 4 years ago

Hi, i want to ask if its possible to start darknet.py with the -mjpeg_port flag. I need to livestream the results and spend hours to make a python flask setup. Now i'm tired and want to go the "easy" way.

Im also work on a gstreamer/nginx solution for opencv and will share the results if it works!

best regards Martin

AlexeyAB commented 4 years ago

Hi, i want to ask if its possible to start darknet.py with the -mjpeg_port flag.

No. It isn't implemented in the darknet.py

Use ./darknet ... -mjpeg_port

mikahoy045 commented 4 years ago

I forked it from here https://github.com/n3wtron/simple_mjpeg_streamer_http_server to detect social distancing from augmented startup and join with darknet_video.py, it works but not for threading, it got error (I forgot the error) only can be accessed by 1 browser, not worked for multiple browser access (http://127.0.0.1:8080/cam.mjpg). You can run it by using "python filename videoname"

It works for cam or rtsp

https://pastebin.com/AKsiixCL

@AlexeyAB is it possible to implemented your mjpeg server on darknet.py (it's faster than this script)? or how should I fix the error for accessing from multiple browser and as good as youre mjpeg server?