Skip to content

Commit 54140db

Browse files
committed
docs: add stage 4a and no_florence to run_pipeline docstring
1 parent 7362513 commit 54140db

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

uitag/run.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,10 @@ def run_pipeline(
3131
3232
Pipeline stages:
3333
1. Apple Vision (text + rectangles)
34-
2. Quadrant split
35-
3. Florence-2 on each quadrant (via backend)
34+
2. Quadrant split (skipped if no_florence)
35+
3. Florence-2 on each quadrant via backend (skipped if no_florence)
3636
4. Merge + deduplicate
37+
4a. Florence-2 filter (coverage + COCO blocklist)
3738
4b. Rescan (optional)
3839
4c. OCR correction
3940
4d. Text block grouping
@@ -42,6 +43,7 @@ def run_pipeline(
4243
4344
Args:
4445
backend: Optional DetectionBackend. If None, uses MLXBackend.
46+
no_florence: Skip Florence-2 entirely (stages 2, 3, 4a). Vision-only mode.
4547
4648
Returns:
4749
(PipelineResult, annotated_image, manifest_json)

0 commit comments

Comments
 (0)