diff --git a/.idea/le-yolo.iml b/.idea/le-yolo.iml index 5e764c4..108aa6f 100644 --- a/.idea/le-yolo.iml +++ b/.idea/le-yolo.iml @@ -2,8 +2,10 @@ - - + + + + \ No newline at end of file diff --git a/src/app.py b/src/app.py index 16403ea..6e9d03c 100644 --- a/src/app.py +++ b/src/app.py @@ -1,3 +1,3 @@ from ultralytics import YOLO model = YOLO("yolov8n.pt") -results = model.predict("../res/test.mp4", show=True, save=True) +results = model.predict("../res/video.mp4", show=True, save=True) diff --git a/start_app.bat b/start_app.bat index 8298918..25a19d4 100644 --- a/start_app.bat +++ b/start_app.bat @@ -16,13 +16,13 @@ if not exist "venv" ( echo 激活虚拟环境... call venv\Scripts\activate.bat -:: 检查测试视频文件是否存在 -if not exist "res\test.mp4" ( - echo ❌ 错误: res\test.mp4 文件不存在! - echo 请在 res\ 目录中放置名为 test.mp4 的视频文件 - pause - exit /b 1 -) +@REM :: 检查测试视频文件是否存在 +@REM if not exist "res\test.mp4" ( +@REM echo ❌ 错误: res\test.mp4 文件不存在! +@REM echo 请在 res\ 目录中放置名为 test.mp4 的视频文件 +@REM pause +@REM exit /b 1 +@REM ) echo ✅ 找到测试视频文件: res\test.mp4