打开YOLOv5开源仓库:
https://github.com/ultralytics/yolov5/blob/master/README.zh-CN.md

下载源码:

安装 : pip install -r requirements.txt

完成安装


目标检测推理

可通过PyTorch Hub加载YOLOv5检测模型

检测图像并返回数据帧

使用YOLOv5要先安装opencv-python和pandas库
安装opencv-python

安装pandas

安装IPython

安装PIL: pip install pillow

安装相关依赖:
pip install seaborn
pip install matplotlib
pip install tqdm
pip install PyYaml
pip install torchvision
pip install psutil
成功打印检测结果
