Skip to content

With makeAletheia_mets you can create a METS file (collection file) for the Aletheia Ground Truth software. It is an alternative way without the Aletheia software.

Notifications You must be signed in to change notification settings

tboenig/makeAletheia_mets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 

Repository files navigation

makeAletheia_mets

Build a Mets file (Page Collections file) to easily work with Aletheia.
See: Page Collections in the Aletheia User Guide. You can also use the METS file for the OCR-D framework (https://github.com/OCR-D/core).

Requirements for a METS file

  • Name and path of the image file (without file extension).
  • If available the matching PAGE XML file.
  • Both files should have the same name and only differ in their file extension.
  • The files should be stored in relevant folders:
    • e.g. the image files in the folder jpg
    • and the PAGE XML files in the folder page

Parameters

  • imagefoldername of the image file folder
  • pagefolder name of the PAGE file folder
  • imageFormatFormat of image files
  • noIMAGE=yesIndication that no image files can be specified,
  • noPAGE=yes Indication that no PAGE files can be specified or are available
  • drive The drive letter from windows file system.

The File

The link element contains the path to the image or PAGE file.
Note: See the example file in the example folder. Use only a slash for seperating the folders, dont use a backslash also when you use the Windows OS.

<?xml version="1.0" encoding="UTF-8"?>
<gt>
    <link>[Path to the Image or PAGE file]/[Name of the File without Extension]</link>
</gt>

Transformation

java -jar ../saxon9he.jar -xsl:../xsl/makeAletheia_mets.xsl -s:../example/example.xml imagefolder=jpg imageFormat=jpg pagefolder=page

A variante that no PAGE files can be specified or available:

java -jar ../saxon9he.jar -xsl:../xsl/makeAletheia_mets.xsl -s:../example/example.xml imagefolder=tiff imageFormat=tif noPage=yes

About

With makeAletheia_mets you can create a METS file (collection file) for the Aletheia Ground Truth software. It is an alternative way without the Aletheia software.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages