INNER CODE UNIT · Python
SaveAnnotationRequest
virajmavani/semi-auto-image-annotation-tool · web/backend/main.py:153
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
scan_custom_models()
print(f"Found {len(AVAILABLE_MODELS)} available models")
# Load default model
current_model = ModelFactory.create_model(current_model_type, threshold=current_threshold)