From e53572bc2fb12ddfbeb9d1cd51ef16dc85fb947c Mon Sep 17 00:00:00 2001 From: songbingle <1696321477@qq.com> Date: Wed, 4 Jun 2025 17:29:25 +0800 Subject: [PATCH] =?UTF-8?q?[MF]=E4=BF=AE=E6=94=B9=E6=96=87=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .idea/le-yolo.iml | 6 ++++-- src/app.py | 2 +- start_app.bat | 14 +++++++------- 3 files changed, 12 insertions(+), 10 deletions(-) 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