Views
No views yet
| Model | Text | Choice | Signature | mAP@50 (↑) |
|---|---|---|---|---|
| YOLO11m v3 (1024px) | 81.4 | 70.9 | 83.8 | 78.7 |
| YOLO11m v4 (1024px) | 83.9 | 72.1 | 86.6 | 80.9 |
psynx-widget-detector package can be installed with either uv or pip, feel free to choose your package manager flavor. The uv command:uv pip install psynx-widget-detectorpip command:pip install psynx-widget-detector1from widget_detector import WidgetDetector
2
3# Initialize the detector
4# (Downloads PSynx/widget-detector-yolo automatically)
5detector = WidgetDetector(
6 conf=0.25, # Confidence threshold
7 iou=0.45, # NMS IoU threshold
8 imgsz=1024, # Inference resolution
9 device="cpu" # "cuda" for GPU, "cpu" for CPU
10)
11
12# Process a PDF or Image
13result = detector.detect_path("input.pdf")
14
15# Print results
16for page in result.pages:
17 print(f"Page {page.page}: Found {len(page.widgets)} widgets")
18 for w in page.widgets:
19 print(f" - {w.class_name} ({w.confidence:.2f})")
20
21# Save output to JSON
22result.save("output.json")
