Darknet: How to connect a camera through rstp

Created on 30 Sep 2017  路  9Comments  路  Source: pjreddie/darknet

Hi everyone,

I am trying to connect a drone's camera using rstp and use YOLO for object recognition. I have been trying to find out what files and lines of code to change in order for me to achieve my goal, I have tried changing, the art.c and demo.c files but nothing works.

Does someone here knows what lines and files I should change ?

Thanks to all in advance !

Most helpful comment

I use in this way: ./darknet detector demo cfg/voc.data cfg/yolo-voc.cfg yolo-voc.weights rtsp://login:[email protected]:554 -i 0

More: https://github.com/AlexeyAB/darknet#how-to-use

All 9 comments

I use in this way: ./darknet detector demo cfg/voc.data cfg/yolo-voc.cfg yolo-voc.weights rtsp://login:[email protected]:554 -i 0

More: https://github.com/AlexeyAB/darknet#how-to-use

Thanks a million @AlexeyAB ! I will give it a try !

@AlexeyAB Hi, it works with rtsp stream, but with 3 seconds of delay. Do you have any idea to solve this problem? Thanks in advance.

I use in this way: ./darknet detector demo cfg/voc.data cfg/yolo-voc.cfg yolo-voc.weights rtsp://login:[email protected]:554 -i 0

More: https://github.com/AlexeyAB/darknet#how-to-use

[rtsp @ 00000200ff758260] method PAUSE failed: 551 Option not supported
warning: Could not find codec parameters (../../modules/highgui/src/cap_ffmpeg_impl.hpp:548)
Video-stream stoped!
Stream closed.
Video-stream stoped!
Stream closed.
CUDA Error: invalid argument
CUDA Error: invalid argument: No error

@sumeet9096

Try to use this command: https://stackoverflow.com/questions/20613453/warning-could-not-find-codec-parameters-modules-highgui-src-cap-ffmpeg-i
./darknet detector demo cfg/voc.data cfg/yolo-voc.cfg yolo-voc.weights rtsp://login:[email protected]:554?dummy=param.mjpg

Also can you see this rtsp-stream by using VLC video player or other soft?

@sumeet9096

Try to use this command: https://stackoverflow.com/questions/20613453/warning-could-not-find-codec-parameters-modules-highgui-src-cap-ffmpeg-i
./darknet detector demo cfg/voc.data cfg/yolo-voc.cfg yolo-voc.weights rtsp://login:[email protected]:554?dummy=param.mjpg

Also can you see this rtsp-stream by using VLC video player or other soft?

[rtsp @ 0000024afefb24a0] method DESCRIBE failed: 404 Not Found
warning: Error opening file (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:808)
warning: rtsp://admin:[email protected]:554/cam/realmonitor?channel=1 (/build/opencv/modules/videoio/src/cap_ffmpeg_impl.hpp:809)
Video-stream stoped!
Stream closed.
Video-stream stoped!
Stream closed.
'subtype' is not recognized as an internal or external command,
operable program or batch file.

sorry i have this problem any advice?
i use this link : rtps://login:pass@IPADRESS/cam/realmonitor?channel=1&subtype=0

hi when i run the command it just keep saying video stream stopped do your have any suggestions

How to connect to another camera for detection?

Loading weights from backup/all-tiny-yolov3_30000.weights...Done!
Unable to stop the stream: Invalid argument
Couldn't connect to webcam.
: Resource temporarily unavailable
darknet: ./src/utils.c:256: error: Assertion `0' failed.
Aborted (core dumped)

How to connect to another camera for detection?

Loading weights from backup/all-tiny-yolov3_30000.weights...Done!
Unable to stop the stream: Invalid argument
Couldn't connect to webcam.
: Resource temporarily unavailable
darknet: ./src/utils.c:256: error: Assertion `0' failed.
Aborted (core dumped)

How to connect to another camera for detection?

Loading weights from backup/all-tiny-yolov3_30000.weights...Done!
Unable to stop the stream: Invalid argument
Couldn't connect to webcam.
: Resource temporarily unavailable
darknet: ./src/utils.c:256: error: Assertion `0' failed.
Aborted (core dumped)

I am having the same issue, have u fixed?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ivomarvan picture ivomarvan  路  3Comments

groot-1313 picture groot-1313  路  4Comments

HoracceFeng picture HoracceFeng  路  3Comments

sayanmutd picture sayanmutd  路  3Comments

spaul13 picture spaul13  路  3Comments