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 output related #32

Open vikram291194 opened 3 years ago

vikram291194 commented 3 years ago

i was testing your code, the program is taking the video input from my webcam but the bounding boxes and the distances are not being displayed. i have downloaded the updated version of this repo..also gone through the other issues regarding the video output issue.. i have used this line ==>frame = cv2.putText(frame, str("{:.2f} Inches".format(distance)), (w,h), cv2.FONT_HERSHEY_DUPLEX, 0.6, (0,0,255), 1, cv2.LINE_AA) and initialized the distance variable..but still the bounding boxes and the distance is not being show and called out..

paul-pias commented 3 years ago

Kindly check if you are using the exact version of the libraries mentioned in requirements.txt.

HassanBinHaroon commented 2 years ago

Check out the following relevant and easiest implementation.

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