高亮文本进行调试
突出显示页面上的文本以进行调试
在检测到的字符/词/行/段落周围绘制红色框作为高亮显示,并将其保存为.png格式以便调试。
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
在检测到的字符/词/行/段落周围绘制红色框作为高亮显示,并将其保存为.png格式以便调试。