Downloads · 30 days
0
luanamcosta/dnb-portrait-cropper
dnb-portrait-cropper is a machine learning model from luanamcosta. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as agpl-3.0.
A YOLO-based object detection model for identifying portrait engravings in digitized historical documents.
Downloads · 30 days
0
Access
Public
Updated Jul 8, 2026
Repo size
84.1 MB
Likes
0
Public
Click a slice to open those files.
.pt40.6 MB · 48%
From the Hugging Face model README
A YOLO-based object detection model for identifying portrait engravings in digitized historical documents.
This model was developed as part of the HERMES-Forschungsstudienprogramm to support the automatic detection and extraction of portrait illustrations from historical collections.
You can find the result for the model inference here: https://huggingface.co/datasets/luanamcosta/dnb-buchhandlerportrats
The detector identifies portrait regions on scanned pages containing historical engravings, illustrations, and printed portraits. The resulting bounding boxes can be used as a preprocessing step for:
The model was trained on manually annotated historical images from the Deutsche Nationalbibliothek (DNB). Github Repository: https://github.com/luanamoraescosta/Buchhandlerportrats
The trained weights are available at:
runs/detect/portrait_detector-3/best.pt
Validation results show:
The detector performs reliably across different engraving styles, page layouts, and portrait sizes.
The model successfully detects portraits in historical printed material with high confidence.
Example predictions are available in:
runs/detect/portrait_detector-3/
including
runs/
└── detect/
└── portrait_detector-3/
├── best.pt
├── last.pt
├── results.png
├── PR_curve.png
├── F1_curve.png
├── confusion_matrix.png
├── val_batch*.jpg
└── ...
Using Ultralytics YOLO:
from ultralytics import YOLO
model = YOLO("best.pt")
results = model.predict(
source="image.jpg",
conf=0.34
)
This work was carried out within the HERMES-Forschungsstudienprogramm in collaboration with the Deutsche Nationalbibliothek (DNB).
The detector was developed to support automated processing of digitized historical collections in Digital Humanities research.
Please refer to the repository license for usage conditions.