phase cv 0
This commit is contained in:
@@ -38,6 +38,27 @@ class VLMResult:
|
||||
reasoning: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class RegionResult:
|
||||
"""A candidate region from CV analysis."""
|
||||
x: int
|
||||
y: int
|
||||
w: int
|
||||
h: int
|
||||
confidence: float
|
||||
label: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class RegionDebugResult:
|
||||
"""CV region analysis with debug overlays."""
|
||||
regions: list[RegionResult] = field(default_factory=list)
|
||||
edge_overlay_b64: str = ""
|
||||
lines_overlay_b64: str = ""
|
||||
horizontal_count: int = 0
|
||||
pair_count: int = 0
|
||||
|
||||
|
||||
@dataclass
|
||||
class ModelInfo:
|
||||
"""Info about a loaded model."""
|
||||
|
||||
Reference in New Issue
Block a user