PauloFN's picture
first
6a6918c
raw
history blame
493 Bytes
from pydantic import BaseModel
from datetime import datetime
from typing import Optional
class MeasurementMetadata(BaseModel):
"""Schema for the metadata received with the image."""
ship_id: str
timestamp: datetime
latitude: float
longitude: float
camera_id: Optional[str] = None
class MeasurementResult(BaseModel):
"""Schema for the results from the measurement service."""
draft_measurement: float # The measured draft in meters
confidence_score: float