The page_layout module contained a mixture of utilities used by text detection and recognition, as well as the code for the layout analysis phase of OCR. This PR refactors this so we have:
A layout_analysis module which contains only code used by the layout analysis phase
geom_util contains shared geometry utils
Functions from page_layout which were only used by detection or recognition are moved into the corresponding modules
The
page_layout
module contained a mixture of utilities used by text detection and recognition, as well as the code for the layout analysis phase of OCR. This PR refactors this so we have:layout_analysis
module which contains only code used by the layout analysis phasegeom_util
contains shared geometry utilspage_layout
which were only used by detection or recognition are moved into the corresponding modules