LiuSamarabanduTextExtractorBasic extends TextExtractor<FImage> { private FImage processImage(FImage img, FConvolution c) { return img.process(c) .abs() .normalise(); }  @Override void processImage(FImage image); void processFeatureMap(FImage fmap, FImage image); FImage textRegionDetection(FImage image); Map<Rectangle, FImage> textRegionLocalisation(FImage fmap, FImage image); List<IndependentPair<Point2d, Point2d>> calculateHomography(Polygon p); float getBoundingBoxPaddingPc(); void setBoundingBoxPaddingPc(float boundingBoxPaddingPc); @Override Map<Rectangle, FImage> getTextRegions(); static final boolean DEBUG; }
@Test public void testExtractRegions() { try { FImage testImage = ImageUtilities.readF( getClass().getResource("lab-sign.jpg") ).normalise(); LiuSamarabanduTextExtractorBasic te = new LiuSamarabanduTextExtractorBasic(); te.processImage( testImage ); } catch( IOException e ) { e.printStackTrace(); } }