cli to control zed camera start and stop. 2. measure now use every svo2 file for 1 fish, give intermideate result and final result with confidecne level(*).
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from typing import Annotated, Optional
|
||||
from typing import Optional
|
||||
|
||||
from fastapi import Depends, Header, HTTPException
|
||||
|
||||
@@ -8,8 +8,8 @@ from app.settings import Settings, get_settings
|
||||
|
||||
|
||||
def require_ingest_auth(
|
||||
settings: Annotated[Settings, Depends(get_settings)],
|
||||
x_api_key: Annotated[Optional[str], Header(alias="X-API-Key")] = None,
|
||||
settings: Settings = Depends(get_settings),
|
||||
x_api_key: Optional[str] = Header(None, alias="X-API-Key"),
|
||||
) -> None:
|
||||
expected = settings.ingest_api_key.strip()
|
||||
if not expected:
|
||||
|
||||
Reference in New Issue
Block a user