paul-pias / Object-Detection-and-Distance-Measurement

Using yolov3 & yolov4 weights objects are being detected from live video frame along with the measurement of the object from the camera without the support of any extra hardware device.
348 stars 118 forks source link

Video is displayed without detection #20

Open AmirHarvey opened 4 years ago

AmirHarvey commented 4 years ago

Hello @paul-pias , Thank you for sharing your code.

I'm trying to run the code on a video file using cv.VideoCapture() and (ret,frame), the video is displayed as it is without object detection nor distance measurement. What am i missing here?

paul-pias commented 4 years ago

That's a weird problem. Is there any particular error you see on the terminal? The code should work fine. What video format you are currently using? Try changing the format of the input video file.

AmirHarvey commented 4 years ago

No, there is no error and the elapsed time and fps are being displayed normally. I was using mp4 and then i tried changing it to avi but still the video is displayed as the original video.

rachita2901 commented 3 years ago

Hey I am facing the same issue. Please help me out if possible.

frostybaby commented 3 years ago

Hi @rachita2901! Did you find a solution to the issue?

HassanBinHaroon commented 2 years ago

Check out the following relevant and easiest implementation. There happens both.

https://github.com/HassanBinHaroon/object_detection-PLUS-distance_estimation-v1