DAQ: connected daq and GUI face detection panel
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user