Uses of Class
com.itextpdf.pdfocr.TextInfo
Packages that use TextInfo
Package
Description
-
Uses of TextInfo in com.itextpdf.pdfocr
Methods in com.itextpdf.pdfocr that return TextInfoModifier and TypeMethodDescriptionTextInfo.setPixelTextPoints(com.itextpdf.kernel.geom.Point[] textPoints, int imageHeight) Sets an array of 4Points describing text bbox (lower-left based relative to text) expressed in pixels.Sets text element.TextInfo.setTextPoints(com.itextpdf.kernel.geom.Point[] textPoints) Sets array of 4Points describing text bbox (lower-left based relative to text) expressed in points.Methods in com.itextpdf.pdfocr that return types with arguments of type TextInfoModifier and TypeMethodDescriptionIOcrEngine.doImageOcr(File input) Reads data from the provided input image file and returns retrieved data in the format described below.IOcrEngine.doImageOcr(File input, OcrProcessContext ocrProcessContext) Reads data from the provided input image file and returns retrieved data in the format described below.IOcrEngine.doImageOcr(List<File> inputs) Reads data from the provided list of input image files and returns retrieved data in the format described below.IOcrEngine.doImageOcr(List<File> inputs, OcrProcessContext ocrProcessContext) Reads data from the provided list of input image files and returns retrieved data in the format described below.Constructors in com.itextpdf.pdfocr with parameters of type TextInfo -
Uses of TextInfo in com.itextpdf.pdfocr.onnx
Methods in com.itextpdf.pdfocr.onnx that return types with arguments of type TextInfoModifier and TypeMethodDescriptionOnnxOcrEngine.doImageOcr(File input) Reads data from the provided input image file and returns retrieved data in the format described below.OnnxOcrEngine.doImageOcr(File input, OcrProcessContext ocrProcessContext) Reads data from the provided input image file and returns retrieved data in the format described below.OnnxOcrEngine.doImageOcr(List<File> inputs) Reads data from the provided list of input image files and returns retrieved data in the format described below.OnnxOcrEngine.doImageOcr(List<File> inputs, OcrProcessContext ocrProcessContext) Reads data from the provided list of input image files and returns retrieved data in the format described below. -
Uses of TextInfo in com.itextpdf.pdfocr.tesseract4
Methods in com.itextpdf.pdfocr.tesseract4 that return types with arguments of type TextInfoModifier and TypeMethodDescriptionAbstractTesseract4OcrEngine.doImageOcr(File input) Reads data from the provided input image file and returns retrieved data in the format described below.AbstractTesseract4OcrEngine.doImageOcr(File input, OcrProcessContext ocrProcessContext) Reads data from the provided input image file and returns retrieved data in the format described below.AbstractTesseract4OcrEngine.doImageOcr(List<File> inputs) Reads data from the provided list of input image files and returns retrieved data in the format described below.AbstractTesseract4OcrEngine.doImageOcr(List<File> inputs, OcrProcessContext ocrProcessContext) Reads data from the provided list of input image files and returns retrieved data in the format described below. -
Uses of TextInfo in com.itextpdf.pdfocr.util
Methods in com.itextpdf.pdfocr.util that return types with arguments of type TextInfoModifier and TypeMethodDescriptionPdfOcrTextBuilder.correctRotationAngle(Map<Integer, List<TextInfo>> result) Processes all text infos to round the rotation angle to either 0, 90, 180 or 270 degrees.Method parameters in com.itextpdf.pdfocr.util with type arguments of type TextInfoModifier and TypeMethodDescriptionstatic StringConstructs string output from the providedIOcrEngine.doImageOcr(java.io.File)result.static voidPdfOcrTextBuilder.collectWordsIntoLines(Map<Integer, List<TextInfo>> textInfos) Merges the providedIOcrEngine.doImageOcr(java.io.File)result into lines and updates line bounding boxes to match the largest words.PdfOcrTextBuilder.correctRotationAngle(Map<Integer, List<TextInfo>> result) Processes all text infos to round the rotation angle to either 0, 90, 180 or 270 degrees.static voidPdfOcrTextBuilder.generifyWordBBoxesByLine(Map<Integer, List<TextInfo>> textInfos) Sorts the providedIOcrEngine.doImageOcr(java.io.File)result by lines and updates line bboxes to match the largest words.static voidPdfOcrTextBuilder.sortTextInfosByLines(Map<Integer, List<TextInfo>> textInfos) Sorts the providedIOcrEngine.doImageOcr(java.io.File)result by lines.