Downloads · 30 days
92
3% of all-time downloads
bluecopa/rf-detr-stamp-signature-detector
rf-detr-stamp-signature-detector is a object detection model from bluecopa. Use it when you need objects located in an image. The card lists the license as apache-2.0.
A fine-tuned RF-DETR model for detecting stamps, signatures, and checkboxes in document images.
Downloads · 30 days
92
3% of all-time downloads
All-time downloads
3.1K
Public
Repo size
738 MB
Likes
1
Public
Click a slice to open those files.
.pth369 MB · 100%
From the Hugging Face model README
A fine-tuned RF-DETR model for detecting stamps, signatures, and checkboxes in document images.
| ID | Class |
|---|---|
| 0 | stamp |
| 1 | signature |
| 2 | checkbox_checked |
| 3 | checkbox_unchecked |
| Class | mAP@50 | mAP@50:95 | Precision | Recall |
|---|---|---|---|---|
| stamp | 93.2% | 70.5% | 96.3% | 81% |
| signature | 95.4% | 73.9% | 96.6% | 81% |
| checkbox_checked | 91.8% | 56.5% | 90.7% | 81% |
| checkbox_unchecked | 65.7% | 34.2% | 43.4% | 81% |
| overall | 86.5% | 58.8% | 81.7% | 81% |
from rfdetr import RFDETRBase
from PIL import Image
# Load model
model = RFDETRBase()
model.load("path/to/checkpoint_best_ema.pth")
# Run inference
image = Image.open("document.png")
detections = model.predict(image, threshold=0.5)
for det in detections:
print(f"Class: {det['class']}, Confidence: {det['confidence']:.2f}, Box: {det['bbox']}")
@misc{bluecopa-stamp-detector,
title={RF-DETR Stamp/Signature Detector},
author={BlueCopa},
year={2024},
publisher={HuggingFace}
}