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

I wanted to add text-to-speech to YoloV4 #34

Open Muhammed1244 opened 3 years ago

Muhammed1244 commented 3 years ago

I run Yolov4 code. It run perfectly but I wanted to add speech that says like "person at 20 inches" but I couldn't because I couldn't find where is distance variable. In Yolov3 code, there is distance variable but in Yolov4, I couldn't find it.

angelikalabininay commented 3 years ago

I have the same issue @Muhammed1244. Have you worked your way around it?

Muhammed1244 commented 3 years ago

I figure out it has voice feedback itself. In YOLOv4/tool/utils.py file 144th line, there is code # speak.Speak(feedback). Just remove comment symbol "#". It doesn't measure distance correctly and voice module slow down speed of camera in Windows 10 though. I am sorry for late answer. Have a nice day.