This project repository provides a means that can be used to find the distance of an object or an indication of how close the object is, to the camera lens. The codes present in this perfume are simply attempts to scan deep concepts for calculating the distance of objects from camera lenses.
Object Detection Distance Estimation Bench 1 |
---|
Object Detection Distance Estimation Bench 2 |
Object Detection Distance Estimation Bench 3 |
Object Detection Distance Estimation Bench 4 |
You only look once (YOLO) is an object detection system targeted for real-time processing. We will introduce YOLO, YOLOv2 and YOLO9000 in this article. For those only interested in YOLOv3, please forward to the bottom of the article. Here is the accuracy and speed comparison provided by the YOLO web site.
- OpenCV 4.2.0
- Python 3.7
- Download official yolov3.weights and place it under a folder called weight.
- Download yolov2.cfg and place it under a folder called cfg.
- opencv
- numpy
pip install numpy opencv-python
- Clone the repository
git clone https://github.com/muhammadshiraz/Real-time-object-detection-using-yolov2-and-distance-estimation.git
- Move to the directory
cd Real-time-object-detection-using-yolov2-and-distance-estimation
- To view the object detection distance estimation bench 1
python Object_Detection_Distance_Estimation_Bench_1.py
- To view the object detection distance estimation bench 2
python Object_Detection_Distance_Estimation_Bench_2.py
- To view the object detection distance estimation bench 3
python Object_Detection_Distance_Estimation_Bench_3.py
- To view the object detection distance estimation bench 4
python Object_Detection_Distance_Estimation_Bench_4.py