Package com.itextpdf.pdfocr.onnx.merging
Class EasyOcrTextBoxMerger
java.lang.Object
com.itextpdf.pdfocr.onnx.merging.EasyOcrTextBoxMerger
- All Implemented Interfaces:
-
ITextBoxMerger
Text box merger, based on the algorithm used in EasyOCR.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
EasyOcrTextBoxMerger
public EasyOcrTextBoxMerger()Creates newEasyOcrTextBoxMergerinstance.
-
-
Method Details
-
process
Merges text boxes based on some set of rules. This method should return a new list and not modify the input.- Specified by:
-
processin interfaceITextBoxMerger - Parameters:
-
detectedTextBoxes- list of rotated text boxes, provided by the text detection routine - Returns:
- a new list with merged text boxes
-