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 @@ + + + + +
- + - - + - - +