# yolov5_monocular_camera_ranging **Repository Path**: long-xiaoze/yolov5_monocular_camera_ranging ## Basic Information - **Project Name**: yolov5_monocular_camera_ranging - **Description**: 作者@xiaolei00 本仓库是一个单目摄像头测距项目,物体检测框为yolov5。该项目处理实时视频。它只是直接向您显示一个视频,其中包含对象的类型、对象的置信度以及网络摄像机到对象的距离。 - **Primary Language**: Python - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 2 - **Created**: 2022-02-09 - **Last Updated**: 2022-02-09 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # yolov5_monocular_camera_ranging This repository is a project of monocular camera ranging, which object detection frame is yolov5. This project deal with real-time video. It just shows you a video directly which contains the type of object, the confidence of object and the distance from network camera to object.
![result picture](https://github.com/xiaol-arch/yolov5_monocular_camera_ranging/blob/main/article_pic/02.jpg) # yolov5 I just use the pretrained model of yolov5 directly.The detail of yolov5 is available here [YOLOv5 🚀 Vision AI ⭐](https://github.com/ultralytics/yolov5) The referenced project version is v5.0.The version of project does'nt matter. # quick start examples ## install python>=3.6 and pytorch>= 1.7: `$ git clone https://github.com/xiaol-arch/yolov5_monocular_camera_ranging`
`$ cd yolov5_monocular_camera_ranging`
`$ pip install -r requirements.txt` ## inference Runing following instruction, you can get a resultant video.
This instruction is for video
`$ python video.py`
This instruction is for webcam
`$ python distance.py`
This intruction is for webcam which can track stuff
`$ python track.py` # to do + Modify issues of accuracy of ranging in program + Improve the README documentation + Add speed measurement to the program