DAQ: connected daq and GUI face detection panel

This commit is contained in:
2025-10-24 17:32:40 +02:00
parent 87aed7a2ad
commit 6bef211af0
+8
View File
@@ -376,6 +376,14 @@ async def alc_ml_bounding_box(token: str = Depends(oauth2_scheme)) -> RasterGrid
auth.check_jwt_rw(cfg, auth.parse_token(token))
return daq.ml_bounding_box()
@app.post("/face_detection/run")
async def face_detection_run(token: str = Depends(oauth2_scheme)) -> dict:
auth.check_jwt_rw(cfg, auth.parse_token(token))
# Run the DAQ-side routine
result = daq.face_detection()
return result
# Access management
@app.get("/access/pgroup")
async def pgroup(token: str = Depends(oauth2_scheme)) -> str: