Highlight Texts for Debugging
Highlight Text on a Page for Debugging
Drawing red boxes around characters/words/lines/paragraphs detected as a highlight, and saving it as a .png for debugging.
using IronOcr; IronTesseract ocrTesseract = new IronTesseract(); using var ocrInput = new OcrInput(); ocrInput.LoadPdf("document.pdf"); ocrInput.HighlightTextAndSaveAsImages(ocrTesseract, "highlight_page_", ResultHighlightType.Paragraph);
Imports IronOcr Private ocrTesseract As New IronTesseract() Private ocrInput = New OcrInput() ocrInput.LoadPdf("document.pdf") ocrInput.HighlightTextAndSaveAsImages(ocrTesseract, "highlight_page_", ResultHighlightType.Paragraph)
Install-Package IronOcr
Drawing red boxes around characters/words/lines/paragraphs detected as a highlight, and saving it as a .png for debugging.