Skip to content
/ quack Public
forked from tokee/quack

QA-tool for scans with corresponding ALTO-files

License

Notifications You must be signed in to change notification settings

kaarefc/quack

 
 

Repository files navigation

Quack

An enhanced ALTO-viewer for Quality Assurance oriented display of a collections of scans, typically from books or newspapers.

Features

  • Smooth zoom & pan of large images thanks to OpenSeadragon
  • Marking of blown highlights & lowlights by colored overlays (toggleable)
  • TextBlock marking by boxes (toggleable)
  • Interactive inspection of OCR (hover the mouse over a TextBlock)
  • Grid lines for checking skewing and rotation (toggleable)
  • Folder overview with thumbnails
  • Histogram, optionally not analyzing the edges of the image

Requirements

  • A minimum of 2GB free RAM for processing of 30MP scans
  • bash
  • GraphicsMagic
  • ImageMagick (as GraphicsMagic cannot create histograms)
  • openseadragon.min.js
  • A suitable beefy browser equipped machine for display, depending on image sizes and ALTO complexity
  • deepzoom (only if tile based display is enabled)
  • Perl (required by deepzoom)

Potential improvements

  • Speed up HTML generation
  • Reduce the amount of identifys and template rewrites
  • Make it possible to generate pages in parallel
  • Lower memory requirements by generating histograms without ImageMagick
  • Optional removal of destination files when source files are removed
  • More flexibility and customization (quack was originally developed for internal use at the State and University Library, Denmark)
  • ALTO files at another location than image files
  • Add image & ALTO sample files
  • Integrate greyscale statistics

Verbiage

This is basically a simple bash script that grew to 600+ lines. It works on a collection of images with corresponding ALTO-files with OCR and segmentation markup. It creates a HTML page for each image and uses the relevant parts of the ALTO files for creating TextBlock overlays with OCR inspection. No webserver is required as the pages can be used directly from the file system.

It can be quite heavy for the browser to display large images with OpenSeadragon, when there is a lot of ALTO-derived overlays. This is especially true if tiling is not used. Display has been tested with Firefox & Chrome. Chrome was markedly faster as of 2013-09-17.

Development

Developed by Toke Eskildsen, partly as a personal project, partly as an employee at the State and University Library, Denmark.

About

QA-tool for scans with corresponding ALTO-files

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Shell 80.3%
  • JavaScript 12.8%
  • CSS 6.9%