AlexeyAB / darknet

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

Is it possible to get video stream via Ethernet with Gige vision camera? #3765

Open DarkYolo opened 5 years ago

DarkYolo commented 5 years ago

I want to detect objects with YOLO. Using Gige vision camera, that connected through the Ethernet and having IP address. How can i do it?

AlexeyAB commented 5 years ago

If you can get video from your camera via VCL player, then yes, you can.

What URL do you use to get Video from your camera?

Yolo v3 COCO for net-videocam - Smart WebCam: darknet.exe detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights http://192.168.0.80:8080/video?dummy=param.mjpg

LukeAI commented 5 years ago

My guess would be that you can't with GigE - it's a proprietary protocol - you will need to see what drivers are available to you for your camera and platform and go from there. Perhaps you will need to write a program to glue darknet and the driver together. I have a gigE camera that I use the ROS driver for which then passes the image to a ROS python wrapper around darknet.

endo123 commented 5 years ago

@AlexeyAB, could you please share some details on the video streaming protocol used / expected by darknet when instrumented in this manner

darknet.exe detector demo cfg/coco.data cfg/yolov3.cfg yolov3.weights http://192.168.0.80:8080/video?dummy=param.mjpg

Is it RTSP?

Thanks!

AlexeyAB commented 5 years ago

@endo123 It can be RTSP or HTTP-mjpeg stream. Darknet uses OpenCV videocapture for this, so try to read about it in OpenCV documentation.

jesusatgar commented 4 years ago

I'm trying to achieve the same result with uEye cameras. My current approach is installing pyueye and I will try to edit the code of darknet_video to get the frames obtained by this sdk.

EDIT: This code seems to work https://es.ids-imaging.com/programming-examples.html?file=tl_files/downloads/programmingexamples/uEye_SimpleLive_PyuEye_OpenCV.zip

I'm using an IDS camera which uses the GigE protocol. Still trying to figure out how to change the input resolution though