uv-scripts/ocr-demo
OCR demo: Food for Space Flight Seven scanned pages from NASA's Food for Space Flight booklet, with headings, columns, photographs, food lists and tables. This small dataset is an input for trying OCR recipes and inspecting their results. The images are PDF pages 3-9 (printed pages 2-8) of the original booklet. The selection omits the reproduction disclaimer and dark cover. The complete original PDF and a matching seven-page extract are in the OCR demo Bucket. Use as… See the full description on the dataset page: https://huggingface.co/datasets/uv-scripts/ocr-demo.
OCR demo: Food for Space Flight
Seven scanned pages from NASA's Food for Space Flight booklet, with headings, columns, photographs, food lists and tables. This small dataset is an input for trying OCR recipes and inspecting their results.
The images are PDF pages 3-9 (printed pages 2-8) of the original booklet. The selection omits the reproduction disclaimer and dark cover. The complete original PDF and a matching seven-page extract are in the OCR demo Bucket.
Use as a dataset
from datasets import load_dataset
pages = load_dataset("uv-scripts/ocr-demo", split="train")There are seven rows in the train split:
The images use the ImageFolder format. pages/metadata.jsonl associates each image with its source-page information. There is no verified ground-truth transcription in this dataset.
PDF and file inputs
The OCR demo Bucket contains:
original/food-for-space-flight.pdf: the unmodified nine-page NASA PDF.demo/food-for-space-flight.pdf: a seven-page extract matching the dataset rows.pages/: the same seven page images and metadata.
Use one prefix, such as hf://buckets/uv-scripts/ocr-demo/demo, as your input to avoid processing both a PDF and its page images.
Source and licence
NASA's document record states Work of the US Gov. Public Use Permitted. The source pages retain that status; the repository's code license does not relicense the NASA document. See NASA's usage guidance. Attribute these source pages to NASA and identify any generated transcription as model output. NASA does not endorse this demo or verify its OCR results.
The archival scan has damaged lettering and an imperfect existing OCR layer. Inspect generated text against the page images, especially tables and captions.
Preparation
Pages 3-9 were rendered from the original PDF with Poppler's pdftoppm at 300 DPI and saved as JPEG at quality 85. No OCR model was run during preparation. The Bucket's manifest.json records source URLs, file checksums and rendering settings.
