高亮文本以進行調試
在頁面上突顯文字以進行除錯
在檢測到的字符/單詞/行/段落周圍繪製紅色框線以突出顯示,並將其保存為 .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 進行調試。