违停检测模型改为yolov8s,检测模式修改为手动框选禁停区域
This commit is contained in:
+6
-5
@@ -97,7 +97,12 @@ app.add_middleware(
|
||||
allow_headers=["*"],
|
||||
)
|
||||
|
||||
app.mount("/static", StaticFiles(directory="static"), name="static")
|
||||
static_dir = os.path.join(os.path.dirname(os.path.abspath(__file__)), "static")
|
||||
os.makedirs(static_dir, exist_ok=True)
|
||||
os.makedirs(os.path.join(static_dir, "uploads"), exist_ok=True)
|
||||
os.makedirs(os.path.join(static_dir, "results"), exist_ok=True)
|
||||
os.makedirs(os.path.join(static_dir, "temp"), exist_ok=True)
|
||||
app.mount("/static", StaticFiles(directory=static_dir), name="static")
|
||||
|
||||
docker_output_dir = os.path.join(
|
||||
os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(__file__)))),
|
||||
@@ -122,10 +127,6 @@ async def camera_websocket_endpoint(websocket: WebSocket):
|
||||
await camera_service.handle_connection(websocket)
|
||||
|
||||
if __name__ == "__main__":
|
||||
os.makedirs("static/uploads", exist_ok=True)
|
||||
os.makedirs("static/results", exist_ok=True)
|
||||
os.makedirs("static/temp", exist_ok=True)
|
||||
|
||||
# 设置信号处理器
|
||||
setup_signal_handlers()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user