segregs

command module
v0.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 8, 2021 License: MIT Imports: 18 Imported by: 0

README

   _____  ___    ____   ___   ___    ____    _____
  / ___/ / _ \  / _  \ /  _\ / _ \  / _  \  / ___/
 (__  ) /  __/ / /_/ //  /  /  __/ / /_/ / (__  )
/____/  \____\ \__  / \_/   \____\ \_   / /____/
              ___/ /              ___/ /
              \___/               \___/

segregs

Segment regions (from PageXML-formatted files) into seperate image files.

Usage

segregs [Options] XML IMG OUT
Options:
  -lines segment line regions
  -padding int set padding for region image snippets
  -workers int set number of worker threads (default #cpus)

Segment the the regions from XML and IMG and write the resulting image files to OUT/REGID.png. The resulting json file is written to OUT_REGID.json and the text file is written to OUT/REGID.gt.txt. If -lines is given, each image line snippet is written to OUT/LINENUM.png and its text is written to OUT/LINENUM.gt.txt instead. The -padding option sets the number of padding pixels around the written image snippets, the -workers sets the number of concurrent workers.

Installation

To install just type go get github.com/cisocrgroup/segregs.

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL