INNER CODE UNIT · Python
DetectionRequest
virajmavani/semi-auto-image-annotation-tool · web/backend/main.py:148
class DetectionRequest(BaseModel):
image_path: str
selected_labels: List[str]
class SaveAnnotationRequest(BaseModel):
image_name: str
bboxes: List[BoundingBox]
image_width: int
image_height: int
@app.on_event("startup")
async def startup_event():
"""Initialize model on startup"""
global current_model
try:
# Scan for custom models