From 524c8343e614b9e3164e0d331d8c24ea8b1254e4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=A0=82=E7=B3=96?= Date: Wed, 8 Oct 2025 10:00:36 +0800 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat:=20=E5=A2=9E=E5=8A=A0=E6=89=93?= =?UTF-8?q?=E5=8D=B0=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- python-inference-service/app/main.py | 10 +++++- rtsp-vue/src/layout/components/Navbar.vue | 1 - rtsp-vue/src/views/video/inspection/index.vue | 19 +++++++++-- rtsp-vue/src/views/video/model/dict.vue | 32 ++++--------------- .../thread/detector/HttpYoloDetector.java | 19 ++++------- 5 files changed, 40 insertions(+), 41 deletions(-) diff --git a/python-inference-service/app/main.py b/python-inference-service/app/main.py index f9e1948..0bebd9c 100644 --- a/python-inference-service/app/main.py +++ b/python-inference-service/app/main.py @@ -129,9 +129,17 @@ async def detect_file( model_name: str, file: UploadFile = File(...) ): + # 1. 打印 model_name(直接打印字符串即可) + print(f"接收到的 model_name: {model_name}") + + # 2. 打印 file 的基本信息(文件名、内容类型等) + print(f"文件名: {file.filename}") + print(f"文件内容类型: {file.content_type}") # 例如 image/jpeg、text/plain 等 """Detect objects in an uploaded image file""" global model_manager - + + + if not model_manager: raise HTTPException(status_code=500, detail="Model manager not initialized") diff --git a/rtsp-vue/src/layout/components/Navbar.vue b/rtsp-vue/src/layout/components/Navbar.vue index 4725f5e..761f025 100644 --- a/rtsp-vue/src/layout/components/Navbar.vue +++ b/rtsp-vue/src/layout/components/Navbar.vue @@ -19,7 +19,6 @@
- diff --git a/rtsp-vue/src/views/video/inspection/index.vue b/rtsp-vue/src/views/video/inspection/index.vue index eb9e28e..73556e1 100644 --- a/rtsp-vue/src/views/video/inspection/index.vue +++ b/rtsp-vue/src/views/video/inspection/index.vue @@ -12,6 +12,11 @@ + + + + + 搜索 重置 @@ -40,7 +45,12 @@ - + + + + @@ -90,6 +100,11 @@ + + + + +
- + - - + - - +