21 lines
470 B
Markdown
21 lines
470 B
Markdown
# YOLOv8 过线检测
|
||
|
||
基于 YOLOv8 的过线检测,支持自定义划线。
|
||
|
||
## 开始
|
||
|
||
建议的 Python 版本为 3.10.x,首先创建一个虚拟环境(推荐),然后按顺序安装以下包
|
||
|
||
```shell
|
||
# GPU 环境
|
||
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
|
||
pip install ultralytics
|
||
pip install supervision opencv-contrib-python pillow lapx
|
||
```
|
||
|
||
然后可以开始运行
|
||
|
||
```shell
|
||
python predictor.py
|
||
```shell
|