Skip to content

SegmentationPostprocessing

Robert Sachunsky edited this page Sep 3, 2019 · 1 revision

Postprocessing for segmentation

Idea

Repair:

  • overlapping neighbours
  • extruding children
  • invalid (self-intersecting) polygon paths
  • too small (by height/width/area) regions
  • gaps in reading order

Improve:

  • align multiple segmentations, then vote/merge
  • train classifiers for deletion/merge/split etc

Architecture

  • use shapely.geometry
  • low-level functions shared by multiple repair/improve tasks
  • high-level functions with parameters exposed to ocrd-tool.json
Clone this wiki locally