Partial source code of PRImA Layout Evaluation Tool
See https://www.primaresearch.org/tools/PerformanceEvaluation https://www.primaresearch.org/publications/ICDAR2011_Clausner_PerformanceEvaluation
Note: Originally 'Region' was used as base class for layout regions (blocks), text lines, words and glyphs. This was renamed to 'LayoutObject', but the old terminology is still used here and there in the code.
Pattern Recognition and Image Analysis (PRImA) Research Lab, University of Salford, United Kingdom