Downloads · 30 days
26
20% of all-time downloads
average23/yolo26x-p2-packaging-text-detection
yolo26x-p2-packaging-text-detection is a object detection model from average23. Use it when you need objects located in an image. It is set up for ultralytics. The card lists the license as agpl-3.0.
YOLO26x-P2 detector fine-tuned for locating text regions in packaging, documents, screenshots, and natural-scene images. The model predicts axis-aligned text bounding boxes and does not recognize the text itself.
Downloads · 30 days
26
20% of all-time downloads
All-time downloads
133
Public
Repo size
118 MB
Likes
0
Public
Click a slice to open those files.
.pt117 MB · 99%
From the Hugging Face model README
YOLO26x-P2 detector fine-tuned for locating text regions in packaging, documents, screenshots, and natural-scene images. The model predicts axis-aligned text bounding boxes and does not recognize the text itself.
The P2 detection head and 1024 px training resolution target small and dense text that would otherwise be clipped before OCR.

Example from the Food Packaging OCR Dataset v2 validation split. Red boxes are
the model predictions at conf=0.35; ground-truth annotations are not shown.
best.pt — production checkpoint.packaging-text-detection-showcase.jpg — prediction visualization.training-config.yaml — reproducible training summary.benchmark-comparison.json — detailed benchmark counts and metrics.SHA256SUMS — artifact checksums.from ultralytics import YOLO
model = YOLO("best.pt")
results = model.predict(
source="image.jpg",
imgsz=1024,
conf=0.05,
iou=0.5,
max_det=2000,
end2end=False,
)
for result in results:
for box in result.boxes:
print(box.xyxy[0].tolist(), float(box.conf[0]))
conf=0.05 is the high-recall benchmark setting. Calibrate the threshold on
your production layouts if false positives are more expensive than missed
text.
Training data:
The Food Packaging training split contributed 8,730 unique images and 224,615 text boxes after removing ignored regions and exact duplicates. Its validation split was kept out of training.
All comparison runs used imgsz=1024, conf=0.05, and IoU 0.5.
| Dataset | Model | Precision | Recall | Tiny-text recall | Dense-page recall |
|---|---|---|---|---|---|
| Donkey test | YOLO11n baseline | 81.86% | 98.60% | 97.57% | 98.93% |
| Donkey test | YOLO26x-P2 | 80.62% | 97.74% | 96.60% | 98.37% |
| Packaging valid | YOLO11n baseline | 54.24% | 76.91% | 54.55% | 75.23% |
| Packaging valid | YOLO26x-P2 | 62.13% | 85.39% | 71.66% | 84.51% |
On the packaging holdout, YOLO26x-P2 improves tiny-text recall by 17.11 percentage points and reduces false positives by 19.79% relative to the YOLO11n baseline.
Ultralytics validation for the selected checkpoint reported:
These Ultralytics metrics and the comparison table use different evaluation contracts and should not be compared directly.
The checkpoint is published under AGPL-3.0 because it was produced with the Ultralytics training stack. Commercial or closed-source deployment may require an Ultralytics Enterprise License.