Interface SizeDetector


  • public interface SizeDetector
    This Interface should be implemented if a detection of the Dimension2D from a page is needed.
    The size may be needed if a PageSegment needs to be adjusted to fit a Page
    • Method Detail

      • detectSize

        Dimension2D detectSize​(Dimension2D hocrSize)
        Typically this method returns the Dimension2D which can be used to fit a new PageSegment to an existing Page
        Parameters:
        hocrSize - The size for the page bounding box that is defined within the hocr data
        Returns:
        Dimension2D