This commit is contained in:
@@ -47,7 +47,12 @@ def build_scene(
|
||||
continue
|
||||
merged.append(_with_id(ocr_element, f"ocr-{ocr_index:03d}"))
|
||||
|
||||
return Scene(width=screen_width, height=screen_height, elements=merged)
|
||||
return Scene(
|
||||
width=screen_width,
|
||||
height=screen_height,
|
||||
elements=merged,
|
||||
ocr_elements=list(ocr_elements),
|
||||
)
|
||||
|
||||
|
||||
def bbox_iou(first: Bounds, second: Bounds) -> float:
|
||||
@@ -88,4 +93,3 @@ def _best_confidence(first: float | None, second: float | None) -> float | None:
|
||||
if not values:
|
||||
return None
|
||||
return max(values)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user