AlexeyAB / darknet

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

Segmentation fault when use python darknet_video.py #6926

Open hanlinniu opened 3 years ago

hanlinniu commented 3 years ago

When I used 'python darknet_video.py --input video.mp4 --weights yolov4.weights' to run in ubuntu 16.04 terminal, I got the error: Objects: Segmentation fault (core dumped). would you please help me to find out the problem? Thank you very much!

AMDxb548 commented 3 years ago

@hanlinniu Did you solve it ? I also experience the same issue. please comment if you solved it.

Songxinlei commented 3 years ago

@hanlinniu @AMDxb548 @AlexeyAB Did you solve it ? please comment if you solved it.Thank you!

AMDxb548 commented 3 years ago

@Songxinlei : Create darknet_image for each frame in videocapture function instead of main and also remove the maxsize parameter for queues.

Songxinlei commented 3 years ago

Thank you very much! @AMDxb548 I solved this problem.
I would like to ask how to save the video frame by pressing the key when detecting the video. Thank you again !