Dataset Viewer
Auto-converted to Parquet Duplicate
id
stringlengths
16
16
image
imagewidth (px)
1.28k
1.28k
group
stringclasses
1 value
source_image
stringlengths
92
102
source_xml
stringlengths
97
107
original_width
int32
3.48k
6.3k
original_height
int32
2.15k
4.63k
band
list
0169396b5c5b3c06
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_012_0116.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Freyung_012_0116.xml
3,661
2,528
[ 0.48866429937175637, 0.0011867088607594937, 0.513247746517345, 0.9719145569620253 ]
0eeddf69de1a081e
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_013-01_0068.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Freyung_013-01_0068.xml
4,831
4,040
[ 0.4876837093769406, 0.008663366336633664, 0.5021734630511281, 0.9898514851485148 ]
4dbf5a7b51ca3e73
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_015-01_0009.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Freyung_015-01_0009.xml
5,706
4,275
[ 0.4921135646687697, 0.01801169590643275, 0.5057833859095688, 0.9929824561403509 ]
aef11099195acb9a
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Otterskirchen_013-01_0145.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Otterskirchen_013-01_0145.xml
4,117
3,339
[ 0.4843332523682293, 0.0020964360587002098, 0.5112946320136021, 0.9994010182689428 ]
bc1cc9141a1bc7dc
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_010_0002.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_010_0002.xml
5,501
4,284
[ 0.4722777676786039, 0.036181139122315596, 0.5008180330848937, 0.9640522875816994 ]
dadbd5cd35c3ef70
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_010_0065.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_010_0065.xml
5,559
4,242
[ 0.48821730527073215, 0.0421970768505422, 0.5110631408526713, 0.9764262140499764 ]
8de2157b4b1c77d6
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_011_0036.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_011_0036.xml
6,054
4,623
[ 0.48348199537495873, 0.04153147306943543, 0.5100759828212752, 0.9627947220419641 ]
48d9aa75b51a36d5
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_011_0096.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_011_0096.xml
6,221
4,581
[ 0.48770294164925254, 0.03645492250600305, 0.5155119755666292, 0.9661645928836499 ]
46847f317ab5fd97
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_011_0159.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_011_0159.xml
6,220
4,581
[ 0.4964630225080386, 0.03645492250600305, 0.5109324758842444, 0.9687841082733027 ]
89f5f419cf6732d2
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_019_0591.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_019_0591.xml
3,562
2,149
[ 0.47669848399775405, 0.018613308515588647, 0.5078607523862998, 0.9939506747324337 ]
a27825d47c54d722
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_020_0059.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_020_0059.xml
4,301
3,260
[ 0.4857009997674959, 0.012269938650306749, 0.5191815856777494, 0.9932515337423313 ]
1013134ca9ff43a8
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_021_0013.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_021_0013.xml
4,089
3,262
[ 0.48373685497676694, 0.0134886572654813, 0.5086818292981169, 0.9914163090128756 ]
97a58eda340dca4a
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_022-01_0043.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_022-01_0043.xml
4,196
3,398
[ 0.4880838894184938, 0.003237198351971748, 0.521210676835081, 0.9976456739258387 ]
cbba93e7b9ee2578
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_023-01_0029.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_023-01_0029.xml
4,770
3,513
[ 0.48364779874213837, 0.0031312268716196983, 0.5146750524109015, 0.9977227440933675 ]
e5951bdae6015e73
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0013.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_043-01_0013.xml
4,084
3,224
[ 0.477228207639569, 0.004652605459057072, 0.5164054848188051, 0.9965880893300249 ]
6705662b96e72d01
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0139.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_043-01_0139.xml
4,142
3,226
[ 0.48140994688556255, 0.0009299442033477991, 0.5082085948816997, 0.9959702417854929 ]
27ea4d630c2736b2
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Otterskirchen_016_0450.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Otterskirchen_016_0450.xml
4,004
3,210
[ 0.4887612387612388, 0.0071651090342679125, 0.5124875124875125, 0.9947040498442368 ]
62eeecddc1d82631
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Otterskirchen_017_0114.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Otterskirchen_017_0114.xml
5,014
3,715
[ 0.4936178699641005, 0.004037685060565276, 0.5173514160351017, 0.9989232839838492 ]
00ffdf71c2f03289
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Otterskirchen_017_0176.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Otterskirchen_017_0176.xml
4,918
3,726
[ 0.47905652704351365, 0.0029522275899087494, 0.5091500610004067, 0.9949006977992485 ]
a03a49eb4281b7be
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Aigen_am_Inn_004_0044.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Aigen_am_Inn_004_0044.xml
5,419
4,320
[ 0.49031186565787044, 0.03125, 0.5224211109060712, 0.9763888888888889 ]
3ca0c1b4a92f577e
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Aigen_am_Inn_005_0123.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Aigen_am_Inn_005_0123.xml
6,302
4,630
[ 0.487781656616947, 0.030453563714902807, 0.5145985401459854, 0.9669546436285097 ]
6cb5b5baef8746ac
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Aigen_am_Inn_005_0186.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Aigen_am_Inn_005_0186.xml
6,293
4,545
[ 0.4902272366121087, 0.02838283828382838, 0.5126330843794693, 0.9652365236523652 ]
910849053ab6b5bb
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0120.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_005-01_0120.xml
4,095
3,230
[ 0.4835164835164835, 0, 0.517948717948718, 0.9969040247678018 ]
aa2b66e9154cbfcd
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0184.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_005-01_0184.xml
4,113
3,271
[ 0.4787259907610017, 0, 0.5088743009968393, 0.992968511158667 ]
9c897b4587e682dd
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0247.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_005-01_0247.xml
4,032
3,241
[ 0.4799107142857143, 0.003394014193150262, 0.5203373015873016, 0.98827522369639 ]
8d63f01c8a0b5932
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-01_0025.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_006-01_0025.xml
4,699
3,849
[ 0.47286656735475635, 0.011691348402182385, 0.49585018088955096, 0.9903871135359834 ]
a5b84230db57ca8c
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-02_0117.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_006-02_0117.xml
4,723
3,912
[ 0.4884607241160279, 0.0028118609406952966, 0.5170442515350413, 0.9831288343558282 ]
0c82b3eff1c15e7d
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_007-01_0036.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_007-01_0036.xml
4,953
4,207
[ 0.47708459519483143, 0.007844069408129309, 0.5033313143549364, 0.9904920370810554 ]
f5c707332ced7071
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0015.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_008-01_0015.xml
5,607
4,222
[ 0.4979489923310148, 0.006631927996210327, 0.5230961298377028, 0.9895783988630981 ]
617ad6919e7e46e6
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0141.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_008-01_0141.xml
5,667
4,227
[ 0.4877360155284983, 0.0026023184291459663, 0.5244397388388918, 1 ]
b84456a2ea79f2b1
ABP_FirstTestCollection
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0204.jpg
Test-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_008-01_0204.xml
5,642
4,181
[ 0.48883374689826303, 0, 0.5297766749379652, 0.9873236067926333 ]
37bbed27cb33109c
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Freyung_012_0179.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Freyung_012_0179.xml
3,698
2,528
[ 0.4959437533802055, 0, 0.5167658193618172, 0.9814082278481012 ]
31501b4eff4c1afc
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/M_Otterskirchen_013-01_0082.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/M_Otterskirchen_013-01_0082.xml
4,122
3,317
[ 0.49393498301795247, 0, 0.5211062590975255, 0.9972867048537836 ]
3a5c31404609947c
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Aigen_am_Inn_010_0128.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Aigen_am_Inn_010_0128.xml
5,559
4,242
[ 0.4975715056664868, 0.029231494578029232, 0.5168195718654435, 0.9688826025459689 ]
799402b355c7e83f
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_019_0654.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_019_0654.xml
3,479
2,152
[ 0.484622017821213, 0.017657992565055763, 0.5176774935326243, 0.9786245353159851 ]
fc34b53e14b27798
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_021_0076.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_021_0076.xml
4,202
3,262
[ 0.49167063303188957, 0.012262415695892091, 0.5090433127082342, 0.9941753525444512 ]
c418e389125d2812
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Freyung_043-01_0076.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Freyung_043-01_0076.xml
4,041
3,190
[ 0.4894828012868102, 0.00031347962382445143, 0.5169512496906706, 0.9959247648902821 ]
c6820ee7fb16c980
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/S_Otterskirchen_017_0051.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/S_Otterskirchen_017_0051.xml
4,983
3,740
[ 0.495283965482641, 0.00026737967914438503, 0.5189644792293799, 0.9978609625668449 ]
521706bfdbe9cbbb
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Aigen_am_Inn_005_0060.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Aigen_am_Inn_005_0060.xml
6,302
4,631
[ 0.48175182481751827, 0.04232347225221335, 0.5176134560456997, 0.9693370762254373 ]
a4b4b21f1ea92f84
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_005-01_0342.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_005-01_0342.xml
4,071
3,246
[ 0.482436747727831, 0.0015403573629081946, 0.5067550970277573, 0.9882932840418978 ]
3cdfc70fe75f11f0
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_006-02_0054.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_006-02_0054.xml
4,711
3,915
[ 0.48524729356824453, 0.0038314176245210726, 0.5075355550838463, 0.9859514687100894 ]
938e3fb0847c1a36
ABP_FirstTestCollection
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/T_Freyung_008-01_0078.jpg
Train-Baseline Competition - Complex Documents/ABP_FirstTestCollection/page/T_Freyung_008-01_0078.xml
5,680
4,227
[ 0.4765845070422535, 0, 0.5140845070422535, 0.9992902767920511 ]

Folio Spread Bench

Where should an OCR pipeline cut a scan of an open book? This benchmark measures whether a proposed straight line stays inside the annotated fold between facing pages. It includes handwritten registers, ruled ledgers and manuscripts from cBAD v4. Each scan has its native framing plus two reproducible challenges, an off-center crop and a crop with an artificial slope. Source collection

On the 170 held-out native scans, Zhnivo’s locator followed the annotated fold on 159, compared with 105 for a center cut. On the artificially sheared views, a line search with independently positioned ends followed the fold on 117. Both fixed-vertical methods scored zero on that condition.

A ledger in the native, cropped and sheared views. The teal strip follows the reference fold.

The teal strip marks the reference fold on one development scan. Image attribution

Try the 320-pixel benchmark

The preview-320 configuration gives you the prepared JPEGs and reference fold positions for all three views. The test split contains 510 images of 170 distinct scans in a 7.3 MB Parquet file. Folio Fold stayed inside the reference gutter on 122 of the 170 native previews, compared with 123 on the corresponding source views. Loading example, measurements and scorer

Test a book-review workflow

The review-order test split contains 36 scans from two digitizations. All 20 selected Arizona notebook frames show single pages. The March 1899 issue of Bijutsukai contains two covers and 14 spreads with binding marks at three heights. Use the previews to test layout decisions and the original JPEG 2000 images to score cut proposals. The worked comparison reports which errors surface in the first quarter of a book. Original scans, reference marks and scorer

Match scans to pages in a PDF

When a scan folder and a PDF use different page numbers, compare the images and review the proposed matches. The worked example has 16 scans and a 15-page PDF. One scan is missing from the PDF. Try the example or use your own files

Does this image contain two facing pages?

The optional page-layout configuration tests the decision to keep a source image whole or split it. It includes single leaves, closed covers, partial spreads and open books from nine archives and The Metropolitan Museum of Art. A reviewer labeled 106 images whole, 69 split and 8 review before the comparisons ran. This task is separate from finding the fold on a known spread. Mixed-page examples, scoring and results

The same configuration has a cleveland split with 79 CC0 images from 41 accession families at the Cleveland Museum of Art. It tests whether a width rule and a vision-language model agree on which images to divide. Cleveland test, references and errors

The train split contains 166 CC0 museum images from 49 other accession families. A CPU baseline uses the labeled examples to fit a linear classifier on a frozen image encoder. It found all five spreads in the Cleveland test and three of ten in the cBAD archive sample. Training data, fitted classifier and reproduction

The archive-calibration configuration contains 96 local review examples and 144 evaluation scans from four archives. Reviewing 12 pages per archive reduced false cuts from 31 to three on 110 whole query pages. The 24-page version made one false cut and missed ten of 27 spreads. Archive results, local scoring tool and data

Try one scan

The native RGB images are embedded in the Parquet files. The longest edge is 1,280 pixels. The example below saves all three inputs for one scan. Download the small helper alongside it.

python -m pip install datasets Pillow huggingface_hub
hf download foliokestrel/folio-spread-bench views.py --repo-type dataset --local-dir .
from datasets import load_dataset
from views import make_view

pages = load_dataset("foliokestrel/folio-spread-bench", split="test")
row = pages[0]
for view in ("native", "offset", "oblique"):
    image = make_view(row["image"], row["id"], view)
    image.save(f"{row['id']}-{view}.png")

Pass only the rendered image to a locator. The identifier is for joining predictions to scans. The band field is an answer field. It stores the source rectangle as left, top, right and bottom, normalized to the original width and height. Each entry also records the collection, the original dimensions and the paths inside the cBAD ZIP. The manifest uses image and xml for those source paths. In the Parquet rows, they are named source_image and source_xml.

Score a method

Produce one JSON Lines record per scan and view. Give the x position of the proposed cut at the top and bottom edges, measured from the left as a fraction of view width. A vertical proposal repeats the same number at both edges. Here is a complete center baseline using only small files from the repository.

hf download foliokestrel/folio-spread-bench score.py views.py manifests/test.jsonl --repo-type dataset --local-dir .
python - <<'PY'
import json
from pathlib import Path

with Path("center.jsonl").open("w") as out:
    for line in Path("manifests/test.jsonl").read_text().splitlines():
        scan = json.loads(line)
        for view in ("native", "offset", "oblique"):
            pred = dict(id=scan["id"], view=view, top_x=0.5, bottom_x=0.5)
            print(json.dumps(pred), file=out)
PY
python score.py manifests/test.jsonl center.jsonl

The scorer reports the number of cuts wholly inside the annotated band, the number within one extra percent of image width, and the median and 90th percentile of the largest distance outside the band. It measures distance over the vertical extent of the annotation. A single misplaced end can cut into writing even when the midpoint is correct. Results are available overall and per archive.

Baseline results

The collection contains 42 development scans and 170 held-out scans. Each cell counts held-out scans whose proposed cut stayed inside the fold over its full annotated height.

Method Native Off-center Oblique
Image center 105/170 0/170 0/170
Zhnivo locator 159/170 131/170 0/170
Sloped line search 119/170 121/170 117/170

A single vertical coordinate cannot track a sloped band narrower than its displacement. The oblique comparison therefore measures the effect of the output representation as well as the ability to locate the fold. The line search is a classical image-processing baseline. It scores dark ridges along many straight paths through horizontal bands and can follow a printed table rule or miss a faint fold. The Zhnivo result uses its published network and fold rule at revision c3f533f9c22ef27f3676fa125a5699705a97281b. Per-archive test results · Development results

To run the same line search locally from this checkout, use the commands below. Its inputs come from the embedded native scans. To reproduce Zhnivo's baseline, install torch and safetensors as well, then use zhnivo as the method argument. That option downloads and runs the pinned publisher implementation.

python -m pip install datasets Pillow scipy numpy
python run_baseline.py line_search predictions.jsonl --split test
python score.py manifests/test.jsonl predictions.jsonl

Does a cut cross annotated writing?

On 170 native test scans, Folio Fold stayed inside the reference gutter band on 123. Of those, 48 also avoided every annotated writing baseline. The accompanying scorer reports both measurements for any proposed cut. It also accepts the existing three-view prediction files and scores their native records. The small download in the quickstart below works without image files.

hf download foliokestrel/folio-spread-bench text-lines/test.jsonl text-lines/score_text.py baselines/center-test.jsonl --repo-type dataset --local-dir .
python text-lines/score_text.py text-lines/test.jsonl baselines/center-test.jsonl

A baseline can extend past the last character into blank space. The audit includes original image crops so you can inspect individual crossings. A second command accepts your own PAGE XML and returns the IDs of text lines that straddle a cut. Text-line results, examples and commands

To compare a proposed cut with an adjusted cut on the same scan, the paired audit lists each annotated writing line that the new cut clears or begins to cross. A page can gain and lose lines even when the total count stays the same. Paired audit and example overlays

Export a reviewed cut

To place the line visually, open Book spread in Folio Straighten. Drag either endpoint or use its slider, then download the left and right pages. The scan stays in your browser. Open the book-spread editor

Once you have inspected the proposed line on a scan, you can apply its endpoints to the same framing at full resolution. For example, a line starting at 48% of the width at the top and ending at 52% at the bottom can be exported with this command.

python split_pages.py spread.png reviewed-pages --top 0.48 --bottom 0.52

The command creates left.png and right.png inside a new directory. It orients the input using its EXIF tag before applying the coordinates. Each source pixel is assigned to one page without resampling. A sloped cut uses white padding for opaque scans and transparent padding for scans with alpha. The command accepts single-frame 8-bit grayscale and RGB-family images. Endpoints measured on a cropped or sheared benchmark view apply only to that rendered view.

Photographs of open books

The optional photographs configuration adds 24 photographs of historical volumes with three visually marked points on each binding. Five show a naturally slanted fold. The line search stayed within 2% of image width at all three points on two of those five. Both fixed-vertical baselines scored zero on that subset. The photo scorer measures distance to point estimates, so its counts use a different definition of success from the cBAD separator-band results. Photograph evaluation and quickstart · Per-image credits and licenses

Japanese books from The Metropolitan Museum of Art

The met-books test split contains 48 photographs of distinct open books, each with three fold marks and an accession number. A center cut was within 2% of the image width at all three marks on 45 photographs. Folio Fold met the same threshold on 30. Reviewing its 12 proposals with the weakest row support found 11 of its 18 misses. Seven remained among the other 36 photographs. The bindings in this studio collection are nearly vertical and usually centered. Download, reproduce and inspect the results

Interpreting the task

The natural folds here tend to be near the center. The synthetic views retain a known reference while testing asymmetric framing and whether the prediction can follow a slope. The three views of each scan share the same evidence. These results measure agreement with separator rectangles. They do not establish OCR accuracy, safe collision-free cropping, performance on naturally curved or oblique folds, or whether an arbitrary image contains two pages. Some ruled tables continue across the binding. Even a cut inside the labeled fold can divide a table entry.

The development archive is ABP. The held-out archives are NAF, StAM Marburg, and UCL Bentham. Some collections contain multiple views of adjacent pages from the same volume. Results on the smallest archives carry little statistical weight. The prior training sources of third-party models may overlap these institutions.

Reproduction and credit

The manifests identify the original image/XML pair for every scan. To render views directly from an existing copy of the source ZIP, run the following from the dataset checkout.

python render.py READ-ICDAR2017-cBAD-dataset-v4.zip manifests/validation.jsonl rendered

Diem, Kleber, Fiel, Grüning and Gatos created cBAD. The images and adapted annotations retain CC BY-SA 4.0. Folio Kestrel wrote the view generator, scoring code and line-search baseline. Zhnivo published the comparison model. Attribution and licenses · Selection and evaluation protocol · Image review · Zhnivo spread-gutter-locator

Downloads last month
596

Models trained or fine-tuned on foliokestrel/folio-spread-bench

Space using foliokestrel/folio-spread-bench 1