Skip to content

OCR from a IIIF manifest to generate a git patch for Miiify

License

Notifications You must be signed in to change notification settings

jptmoore/boriiis

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

OCR from a IIIF v3 manifest to generate a git patch for Miiify.

Build the tool

docker build -t jptmoore/boriiis .

Run the tool

Patching the annotation repository produces https://projectmirador.org/embed/?iiif-content=https://miiify.rocks/manifest/tesseract

Usage

./boriiis.sh --help
Usage: main.py [OPTIONS]

Options:
  --name TEXT           Name of collection.  [required]
  --manifest TEXT       IIIF manifest.  [required]
  --lang [eng|fra]      Current languages supported.  [default: eng]
  --creator TEXT        Creator of annotations.  [default:
                        john.moore@nationalarchives.gov.uk]
  --page-limit INTEGER  Server-side annotation pagination.  [default: 200]
  --oem INTEGER         Tesseract engine mode.  [default: 3]
  --psm INTEGER         Tesseract page segmentation mode.  [default: 3]
  --preview             Text output of OCR.
  --update              To add to existing data.
  --debug               Enable debug mode.
  --version             Show the version and exit.
  --help                Show this message and exit.

Status

Work in progress

About

OCR from a IIIF manifest to generate a git patch for Miiify

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published