Skip to content
ModelListedExternal
Download

Digital Inspector

Automatic detection of signatures, stamps, and QR codes in business documents (Russian/Kazakh).

KindOtherVersionBestCgrade

Model source

Kind
Other
File size
6.04–83.6 MB
Version
vBest
Updated
Oct 21, 2026
Source
Hugging Face

Source description

YOLOv8 Document Inspector

Automatic detection of signatures, stamps, and QR codes in business documents (Russian/Kazakh).

Results (Run 3 — Conservative Augmentation)

ModelmAP@50mAP@50-95AP SignatureAP Stampms/imgParams
y8n_1024 ⭐0.8810.6690.3550.9822373.2M
y8m_10240.8720.6490.3780.92030825.9M
y8l_10240.8580.6420.3020.98131643.7M
y8s_10240.8310.6300.3540.90524911.2M
y8s_6400.8230.6150.3330.89722511.2M
y8s_7680.8360.5960.3170.87523311.2M

Speed vs Accuracy

Pareto

Performance Comparison

Bar Chart

Training Curves

Curves

Precision vs Recall

Scatter

Detection Examples

Detections

Key Findings

RunAugmentationmAP@50-95
Run 1None0.650
Run 2Mosaic + copy-paste0.252 ❌
Run 3Conservative0.669 ✅

y8n beats y8l: 3.2M params model outperforms 43.7M params model in both speed (237ms vs 316ms) and accuracy (0.669 vs 0.642).

Usage

from ultralytics import YOLO

model = YOLO("models/y8n_1024/best.pt")
results = model.predict("document.jpg", imgsz=1024, conf=0.25)
results[0].show()

Training Config (Run 3)

model.train(
    imgsz=1024, epochs=150, patience=30,
    degrees=3.0, translate=0.05, scale=0.2,
    hsv_v=0.2, hsv_s=0.1,
    mosaic=0.0,   # OFF — harmful for documents
    fliplr=0.0,   # OFF — text would mirror
    flipud=0.0,
)

Dataset

Provided during a hackathon competition. Contains annotated Russian/Kazakh business documents. Dataset is not publicly available due to privacy constraints.

Source code: github.com/AlihanSDev/digital-inspector

Sources

1 source
Hugging FacePrimaryVersion 345327ca18b4b8a2a79a1f1bec95b69a3d71f913
huggingface.co/AlihanSDev/digital-inspector/tree/345327ca18b4b8a2a79a1f1bec95b69a3d71f913

Verified Oct 21

Model artifacts

6 artifacts

models/y8l_1024/best.pt

pt · 83.6 MB · SHA-256 59062a7fb1c3…c5b7 · Hugging Face

Download

models/y8m_1024/best.pt

pt · 49.7 MB · SHA-256 c2e131f4c4e3…51d7 · Hugging Face

Download

models/y8n_1024/best.pt

pt · 6.04 MB · SHA-256 286d2db3f034…687b · Hugging Face

Download

models/y8s_1024/best.pt

pt · 21.6 MB · SHA-256 1b2889656624…72fd · Hugging Face

Download

models/y8s_640/best.pt

pt · 21.5 MB · SHA-256 18d25cf195e2…de08 · Hugging Face

Download

models/y8s_768/best.pt

pt · 21.5 MB · SHA-256 181c7e5697f9…98cb · Hugging Face

Download

Source excerpts

2 excerpts

--- license: apache-2.0 tags: - object-detection - document-analysis - yolov8 - stamps - signatures language: - ru - kk metrics: - map pipeline_tag: object-detection --- # YOLOv8 Document Inspector Automatic detection of **signatures**, **stamps**, and **QR codes** in business documents (Russian/Kazakh). ## Results (Run 3 — Conservative Augmentation) | Model | mAP@50 | mAP@50-95 | AP Signature | AP Stamp | ms/img | Params | |-------|--------|-----------|--------------|----------|--------|--------| | **y8n_1024** ⭐ | **0.881** | **0.669** | 0.355 | 0.982 | **237** | 3.2M | | y8m_1024 | 0.872 | 0.649 | 0.378 | 0.920 | 308 | 25.9M | | y8l_1024 | 0.858 | 0.642 | 0.302 | 0.981 | 316 | 43.7M | | y8s_1024 | 0.831 | 0.630 | 0.354 | 0.905 | 249 | 11.2M | | y8s_640 | 0.823 | 0.615 | 0.333 | 0.897 | 225 | 11.2M | | y8s_768 | 0.836 | 0.596 | 0.317 | 0.875 | 233 | 11.2M | ## Speed vs Accuracy ![Pareto](plots/comparisons/pareto_speed_accuracy.png) ## Performance Comparison ![Bar Chart](plots/comparisons/final_metrics_bar_chart.png) ## Training Curves ![Curves](plots/training_curves/all_training_curves.png) ## Precision vs Recall ![Scatter](plots/comparisons/precision_recall_scatter.png) ## Detection Examples ![Detections](plots/comparisons/detection_examples_collage.png) ## Key Findings | Run | Augmentation | mAP@50-95 | |-----|-------------|-----------| | Run 1 | None | 0.650 | | Run 2 | Mosaic + copy-paste | 0.252 ❌ | | **Run 3** | **Conservative** | **0.669** ✅ | **y8n beats y8l:** 3.2M params model outperforms 43.7M params model in both speed (237ms vs 316ms) and accuracy (0.669 vs 0.642). ## Usage ```python from ultralytics import YOLO model = YOLO("models/y8n_1024/best.pt") results = model.predict("document.jpg", imgsz=1024, conf=0.25) results[0].show() ``` ## Training Config (Run 3) ```python model.train( imgsz=1024, epochs=150, patience=30, degrees=3.0, translate=0.05, scale=0.2, hsv_v=0.2, hsv_s=0.1, mosaic=0.0, # OFF — harmful for documents fliplr=0.0, # OFF — text would mirror flipud=0.0, ) ``` ## Dataset Provided during a hackathon competition. Contains annotated Russian/Kazakh business documents. Dataset is not publicly available due to privacy constraints. Source code: [github.com/AlihanSDev/digital-inspector](https://github.com/AlihanSDev/digital-inspector)

Source context: 0 downloads · 0 likes · Pipeline object-detection · Repo AlihanSDev/digital-inspector