Datasets:
page_id stringlengths 16 16 | image imagewidth (px) 772 1.28k | correction_cw int16 0 270 | content stringclasses 1
value | archive stringclasses 1
value | panel stringclasses 1
value | source_image stringlengths 92 96 | source_image_sha256 stringlengths 64 64 |
|---|---|---|---|---|---|---|---|
0169396b5c5b3c06 | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_012_0116.jpg | 3469df7e43bc122682f58f00fbd97a0ba98b290f3f436a9862e2e0b88aab5822 | |
0eeddf69de1a081e | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_013-01_0068.jpg | 62c5dcd3fed6cae0a46e723e4872aaa6268e40b0456a53ffadfaf9401a69a619 | |
4dbf5a7b51ca3e73 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_015-01_0009.jpg | c80fb1c41e851b337cf8ae6d50a62ae57893f4e09e90073c8f0cf2dc8e3e7d34 | |
89f5f419cf6732d2 | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_019_0591.jpg | 0697bedca6144211f18f950f314557793088cfc0e8271be75161093d45210c9b | |
a27825d47c54d722 | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_020_0059.jpg | 162398176cb71650008c8d7eea0b33ba96fd7a274089c36386ef1c69f7ec27ec | |
1013134ca9ff43a8 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_021_0013.jpg | 97a78cabccdaecbbccd5cad92dc2aedbbf28f7c00dfa3696de219010cbfcff9c | |
97a58eda340dca4a | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_022-01_0043.jpg | 8cbb7c878859373a1d60131d98ff50012beed0fd11e2f0b2ed461696097e5857 | |
cbba93e7b9ee2578 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_023-01_0029.jpg | db0fac4642c8c3be5c2c104be8f34e0e542d970373f155520680a71d9c2ef7be | |
e5951bdae6015e73 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0013.jpg | fe87563c7974e2c7f670f72857891cfff82d27628adfdb32e0026310d735511a | |
6705662b96e72d01 | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0139.jpg | 27af8bd8ec6c9da5f7418ad4dd68302a418bd5c8736e1cec20aa0b0dea3143f5 | |
910849053ab6b5bb | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0120.jpg | e83b88896ff28b5cf1d64fb4c19c22090a4f3d0071a855f5d7798fc5c746cf9e | |
aa2b66e9154cbfcd | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0184.jpg | 9524b22dc96be90645a5cfc8efbcfb483651beb341d663ae82fa851149c224cf | |
9c897b4587e682dd | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0247.jpg | 96cc0b5692a2abd6e2e28e3121a0c6f0dbf7f4bfd8757a61fdbf6370502adec3 | |
8d63f01c8a0b5932 | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-01_0025.jpg | a42589207c23f267f72361f92099e4de632f1d3422695f5c8eb335080f8593a0 | |
a5b84230db57ca8c | 0 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-02_0117.jpg | cab94f5dca6af932f577ed7e6301b7938fe9b0c112d25765042b58c3403735af | |
0c82b3eff1c15e7d | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_007-01_0036.jpg | ec62814a16baecaef8b2c145cd74d6bbd035626d9d5848b962107d1297e5495f | |
f5c707332ced7071 | 0 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0015.jpg | a541ca7547cf8508c20ce91e3075c0141a378a30d2e1a92eb76da3f69d29195b | |
617ad6919e7e46e6 | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0141.jpg | 832f3d5dd9c730f25a874fa4e795d8c84b7e79146357a5079b37f3c83c990c1f | |
b84456a2ea79f2b1 | 0 | handwritten entries or prose | ABP_FirstTestCollection | train | Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0204.jpg | 771d7c2b50a2eb17d806c5cfb04eef17da2a96e4cd1be7478d6496ef5e532940 | |
37bbed27cb33109c | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_012_0179.jpg | 2905047bdb6f0c8f3fd5815cea912bbc399cc3a3cb87cf7b093960085eef28fb | |
799402b355c7e83f | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_019_0654.jpg | 433b424c708de68420cd123c879878178ef052d36079588a910ac11405033a5e | |
fc34b53e14b27798 | 270 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_021_0076.jpg | 38a59cc075c2d4c050b34e67da824b3de5e7e7068ba3b4ac95ac4e5bfb3c71f3 | |
c418e389125d2812 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0076.jpg | 27beb23b5faa73037836c64ddf55aead6605969a38aef43c2dd7a9df655bf58c | |
a4b4b21f1ea92f84 | 180 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0342.jpg | 021c9b16260bf7fe6a492a886f67e90cd722ba445c5ad185568fe0c72dc48130 | |
3cdfc70fe75f11f0 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-02_0054.jpg | 918691e356aa278ac326304acdcaf0c0e5ef58618ebd1fa24df8f0ad08c8a4f8 | |
938e3fb0847c1a36 | 90 | handwritten entries or prose | ABP_FirstTestCollection | train | Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0078.jpg | e34dac8d5f20e9d97b590b37e3f209d70a0da6882962a8effb3a98714983f9b1 |
Manuscript Turns
Which way should a scanned manuscript turn to make its writing readable? These 83 historical spreads include handwritten registers, lists and correspondence, a printed chapter, and a nearly blank opening. Each image has a randomly assigned quarter-turn and a visually reviewed clockwise correction. Use the test split to measure how often an orientation model can handle every rotation of the same document, and how often it confidently turns a page that needs review.
Correspondence from the Wellcome Collection
The wellcome configuration contains 78 pages from 13 correspondence bundles. It preserves catalogue order for three complete bundles. One page has substantial writing in two directions and carries a null correction. The manuscript model accepted 250 of 308 readable views with the correct turn in each accepted view. All three complete bundles still needed review. Results by bundle · Pixel and annotation provenance
from datasets import load_dataset
letters = load_dataset("foliokestrel/manuscript-turns", "wellcome", split="test")
The default register and spread data use CC BY-SA 4.0. The Wellcome scans carry the Public Domain Mark and their new orientation labels are CC0. Collection source records
Try a scan
from datasets import load_dataset
pages = load_dataset("foliokestrel/manuscript-turns", split="test", streaming=True)
row = next(iter(pages))
row["image"].save("input.png")
print(row["correction_cw"], row["content"], row["archive"])
Feed only the image to your model. An integer correction of 0, 90, 180 or 270 is clockwise in the displayed image. A null means the reviewer found insufficient text to determine direction. The PNG retains all pixels from the corresponding RGB raster in Folio Spread Bench after its display rotation. The upstream benchmark resized the archival originals. Source scans and rights
| Split or panel | Sources | Contents |
|---|---|---|
| Train | 26 | Freyung registers, used for fitting and development |
| Test, other Passau parishes | 16 | Registers from two parishes held out of fitting |
| Test, NAF | 18 | Archive ledgers and ruled lists |
| Test, Marburg | 18 | Notes and correspondence, plus one printed spread |
| Test, Bentham | 5 | Four readable spreads and one nearly blank opening |
The 57 test sources have 56 unique reference directions. Of these, 55 contain handwritten entries or prose. Some register forms have printed headings alongside the handwriting. Separate the handwriting-only and per-archive scores when comparing systems.
Evaluate all four rotations
Download the small scoring files to a single directory. Each prediction uses an opaque view identifier. Give a raw clockwise correction or null for an abstention, and an agreement score between zero and one. The scorer uses the published Folio Orient threshold of 0.70.
hf download foliokestrel/manuscript-turns --repo-type dataset --include '*.py' reference.jsonl 'baseline/*' --local-dir manuscript-turns
cd manuscript-turns
python -m pip install datasets pillow
python score_external.py baseline/folio-orient-test.jsonl --split test
To run your own classifier, iterate over the images in the checkout as below. Replace the call to your_orientation_model with your predictor.
import json
from datasets import load_dataset
from views import manuscript_views
pages = load_dataset("foliokestrel/manuscript-turns", split="test", streaming=True)
with open("predictions.jsonl", "w", encoding="utf-8") as output:
for view in manuscript_views(pages.select_columns(["page_id", "image"])):
turn_cw, confidence = your_orientation_model(view["image"])
record = dict(view_id=view["view_id"], predicted=turn_cw, agreement=confidence)
output.write(json.dumps(record) + "\n")
Run python score_external.py predictions.jsonl --split test --report report.json. The test split yields 228 views of 57 source images. The scorer rejects missing, extra or duplicate views. It reports correct suggestions, coverage, incorrect accepted suggestions, half-turn errors and all-four counts by archive and across the test split. The per-turn breakdown uses turns relative to the archival input. The published PNG already includes one randomly assigned turn.
Released four-way Folio Orient baseline
On the 56 test sources with readable text, the model chose the correct direction for 206 of 224 views. At its default threshold it accepted 85 of 224 and all 85 were correct. It was correct in all four rotations on 47 sources and confidently correct in all four on 11 of 56. On the nearly blank opening it accepted three of four views. These suggestions have no reference direction. Model · Per-view predictions
| Readable test sources | Correct in all four | Correct and accepted in all four |
|---|---|---|
| Other Passau parishes (16) | 10 | 0 |
| NAF (18) | 15 | 3 |
| Marburg (18, including one print) | 18 | 5 |
| Bentham (4) | 4 | 3 |
A separate matched training comparison used the 26 Freyung scans. A print-only continuation was correct and accepted in all four rotations on 13 of the 56 readable test sources. The manuscript continuation reached 44 of 56, including 43 of the 55 sources containing handwriting. Its 186 accepted directions were correct, and it referred all four views of the nearly blank opening. The same scorer reads both prediction files. Comparison protocol · Print control · Manuscript predictions
Run the released baseline on the public images using its pinned inference code and checkpoint.
python -m pip install datasets pillow numpy onnxruntime
hf download foliokestrel/folio-orient --revision a4cdb00c06357ce1c8e362eb2726bc222af7c2c0 --include folio_orient.py model.onnx --local-dir folio-original
python run_folio.py folio-original replay.jsonl --split test
python score_external.py replay.jsonl --split test --report replay.json
Annotation and limits
One AI reviewer inspected each randomly rotated spread under a neutral identifier and recorded the direction needed to read its dominant text. The visual notes were frozen before opening the rotation key or running the classifier. The nearly blank opening has a stamp and weak show-through. Its orientation is indeterminate for this task. All 82 readable archival inputs turned out to be upright in their source files. The experimental rotations are synthetic. The original documents, page layouts, handwriting and scan artifacts are genuine. Frozen procedure · Visual notes
All sources were selected from a corpus previously used to study spread geometry. The benchmark covers Western historical writing on two-page openings, and some scans retain catalogue strips or printed form headings. Performance here does not establish accuracy on single sheets, other scripts, mirror images or continuously varying skew. The four rotations of a source are related measurements.
The page_id joins to Folio Spread Bench. The source_image field preserves the archival path. source_image_sha256 identifies the encoded upstream benchmark image before the display turn. The full reference includes the injected rotation and per-image evidence. Reference
Attribution
Markus Diem, Florian Kleber, Stefan Fiel, Tobias Grüning and Basilis Gatos published the original ScriptNet ICDAR 2017 Competition on Baseline Detection in Archival Documents (cBAD), version 4. The images and adapted references use Creative Commons Attribution-ShareAlike 4.0 International. Folio Kestrel selected the spreads, reviewed their reading directions and created the rotated PNGs. Original software is Apache 2.0. cBAD source record · Data license · Software license
- Downloads last month
- 66