This repository "Object and lane detection with yolov5 Model" is based on the open-source yolov5 model, and the function of lane detection is developed by some digital image processing methods, especially the Hough transformation. The yolov5 code, mostly references to ultralytics's repository (thanks to Ultralytics) https://github.com/ultralytics/yolov5 , but a small part of it is my own adjustment, and are subject to modification or deletion without notice. Use at your own risk.
Python 3.8 or later with all requirements.txt dependencies installed, including torch>=1.7
. To install run:
$ pip install -r requirements.txt
see repository https://github.com/ultralytics/yolov5
YOLOv5 may be run in any of the following up-to-date verified environments (with all dependencies including CUDA/CUDNN, Python and PyTorch preinstalled):
detect.py
runs inference on a variety of sources, downloading models automatically from the latest YOLOv5 release and saving results to runs/detect
.
$ python detect.py --source 0 # webcam
file.jpg # image
file.mp4 # video
path/ # directory
path/*.jpg # glob
'https://youtu.be/NUsoVlDFqZg' # YouTube video
'rtsp://example.com/media.mp4' # RTSP, RTMP, HTTP stream
yolov5 model https://github.com/ultralytics/yolov5
lane detection www.bilibili.com/video/BV1qk4y1r7jw