/ Модель

Характеристики

Параметры
113 млн
Архитектура
yolos · dense
Библиотека
transformers
Опубликована
14 авг 2026

document-seal-detector-v1

Поиск объектовИзображение → bounding_boxes6 профессий

Модель YOLOS для обнаружения круглых и овальных резиновых печатей на изображениях страниц документов.

38скачиваний за 30 дней0лайковвеса обновлены14 авг 2026

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

Document Seal Detector v1 — модель компьютерного зрения для поиска чернильных резиновых печатей на страницах документов. Она разработана для рабочих процессов обработки документов, например маршрутизации, помощи при проверке и выделения области печати для последующей верификации. Модель находит положение печати и возвращает ограничивающую рамку в координатах xyxy исходного изображения и оценку уверенности.

Модель построена на архитектуре YOLOS с backbone на основе Vision Transformer и реализована как YolosForObjectDetection в библиотеке Transformers. Размер — 113,2 млн параметров. Она дообучена на страницах документов с проверенными аннотациями преимущественно круглых и овальных административных печатей; в обучении также использовались документы без печатей как сложные отрицательные примеры. Для исходного тестового набора указаны mAP@[0.50:0.95] 0,869 и mAP@0.50 1,0, но эти результаты не гарантируют качество на других источниках документов.

Модель определяет наличие и расположение визуально похожей печати, но не проверяет её подлинность, юридическую силу или принадлежность. Она может хуже работать с прямоугольными, бледными, размытыми или перекрытыми печатями; на незнакомых макетах возможны ложные срабатывания на QR-коды, логотипы, штрихкоды, марки и наклейки. Для решений с юридическими, финансовыми или комплаенс-последствиями требуется проверка человеком. Лицензия в предоставленных данных не указана.

Сценарии применения

  • поиск печатей на сканах документов
  • выделение области печати для последующей проверки
  • маршрутизация документов по наличию печати
  • поддержка ручной проверки комплектов документов

Ограничения

Модель ориентирована преимущественно на круглые и овальные административные печати; качество может снижаться для бледных, прямоугольных, размытых или перекрытых печатей, а на незнакомых макетах возможны ложные срабатывания. Она не проверяет подлинность или юридическую силу печати, поэтому результаты требуют человеческой проверки.

Для каких профессий подходит6

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Также подходит для

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

Document Seal Detector v1

document-seal-detector-v1 detects rubber seals stamped on document pages. It returns a bounding box and confidence score for each detected seal.

The model is intended for document-processing workflows such as routing, review assistance, or extracting a seal region for a later verification step. It detects the presence and location of a seal; it does not verify the seal's authenticity, legal validity, or ownership.

Quick start

pip install -U torch transformers pillow
from PIL import Image, ImageDraw
import torch
from transformers import AutoImageProcessor, YolosForObjectDetection

MODEL_ID = "ducln-business/document-seal-detector-v1"
THRESHOLD = 0.60  # Start here; calibrate for your documents.

device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
processor = AutoImageProcessor.from_pretrained(MODEL_ID)
model = YolosForObjectDetection.from_pretrained(MODEL_ID).to(device)
model.eval()

image = Image.open("document.jpg").convert("RGB")
inputs = processor(images=image, return_tensors="pt")
inputs = {name: value.to(device) for name, value in inputs.items()}

with torch.no_grad():
    outputs = model(**inputs)

# target_sizes is (height, width) of the original image.
results = processor.post_process_object_detection(
    outputs,
    threshold=THRESHOLD,
    target_sizes=torch.tensor([[image.height, image.width]], device=device),
)[0]

for score, label, box in zip(results["scores"], results["labels"], results["boxes"]):
    x1, y1, x2, y2 = [round(value, 2) for value in box.tolist()]
    print({
        "label": model.config.id2label[label.item()],
        "score": round(score.item(), 4),
        "box_xyxy": [x1, y1, x2, y2],
    })

Visualize predictions

rendered = image.copy()
draw = ImageDraw.Draw(rendered)

for score, box in zip(results["scores"].cpu(), results["boxes"].cpu()):
    x1, y1, x2, y2 = map(round, box.tolist())
    draw.rectangle((x1, y1, x2, y2), outline="lime", width=3)
    draw.text((x1 + 4, max(0, y1 - 16)), f"seal {score:.2f}", fill="lime")

rendered.save("document_with_seals.jpg")

Model details

PropertyValue
ArchitectureYolosForObjectDetection
Backbone familyYOLOS / Vision Transformer
Input processorYolosImageProcessor
Processor size640 × 640
Output label0: stamp
Fine-tuned fromducln-business/signature-detector-v1.0

Bounding boxes are returned in xyxy pixel coordinates in the original input-image size.

What counts as a positive detection?

The positive class represents an inked rubber seal/stamp applied to a document. The training labels target primarily circular and oval administrative seals.

The following are not intended positive detections:

  • QR codes and barcodes
  • printed logos, letterheads, and decorative marks
  • postage stamps and labels
  • document windows, stickers, and blank form fields
  • handwritten signatures without a rubber seal

Use a confidence threshold appropriate for the deployment setting. 0.60 is a sensible starting point; raise it to reduce false positives, or lower it to favor recall. Always validate the threshold on representative documents before production use.

Training data and preprocessing

The model was fine-tuned on document pages containing reviewed circular/oval rubber-seal annotations. The training pipeline:

  • imports only source annotations labelled stamp with the circle geometry;
  • converts each circular annotation to its enclosing rectangular detection box;
  • keeps QR codes, barcodes, logos, and other printed document elements out of the positive class;
  • adds stamp-free hard-negative document crops that do not overlap any annotated seal.

Dataset composition:

SplitSeal-positive pagesHard-negative document cropsSeal boxes
Train256220413
Validation7257115
Test392762

Evaluation

The following result is measured on the internal held-out test split.

MetricScore
mAP@[0.50:0.95]0.8690
mAP@0.501.0000
mAP@0.751.0000
mAR@1000.8952

These numbers describe the curated internal split only. They should not be treated as a guarantee for documents from other countries, scanners, cameras, templates, or organizations.

Limitations and responsible use

  • The data is dominated by circular/oval seals on administrative documents; rectangular seals, faint seals, severe blur, heavy occlusion, and uncommon layouts may perform worse.
  • Despite hard-negative training, QR codes, logos, barcodes, postage stamps, and labels can still produce false positives on unseen layouts.
  • This model locates visual seal-like regions. It must not be used as the sole basis for authenticity, fraud, legal, financial, or compliance decisions.
  • For a production workflow, keep a human-review step and collect representative false-positive/false-negative examples for periodic re-training.

Reproducibility

The repository includes the model weights, image-processor configuration, training history, and internal test benchmark. Load both the model and processor from the same repository, as shown above.

Citation

If you use this model, please cite the repository:

@software{document_seal_detector_v1,
  author = {ducln-business},
  title = {Document Seal Detector v1},
  year = {2026},
  publisher = {Hugging Face},
  url = {https://huggingface.co/ducln-business/document-seal-detector-v1}
}

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм · transformers · object-detection

Можно запустить

Подбираем GPU…

Класс архитектуры
YolosForObjectDetection
Ревизия весов
dc6dee7

0 моделей