Find distance from object to camera using YoloV4 object detector, here we will be using single camera 📷, detailed explanation of distance estimation is available another repository Face detection and Distance Estimation using single camera
YoloV4.Distance.Estimation.mp4
Video Tutorial Explains the concept and implementation
-
Here we are targeting the person and cell phone classes only, for demo purpose.
-
you can follow all the steps mentioned in the video to create for other objects as well.
implementation detail available on Darknet
- Finding distance of mutiple object at same time.
--> windows
pip install opencv-contrib-python
--> Linux or Mac
pip3 install opencv-contrib-python
then just clone this repository and you are good to go.
I have use tiny weights, check out more on darknet github for more
I have , If you can increase that counter, go a head do this for me 😃, just kidding as always ;-) AiPhle is all about Computer Vision, AI and Electronics.
hope you found this helpful, if you want to ask me any thing then here are my social medias.