GetOCRDocumentReportJSON
OCR 與文字辨識
描述
傳回最近一次 OCRDocument 或 OCRDocumentEx 批次的逐頁結構化 JSON 報告
語法
Delphi
Function TPDFlib.GetOCRDocumentReportJSON: WideString;
ActiveX
Function PDFlib::GetOCRDocumentReportJSON() As String
DLL
const wchar_t* DLGetOCRDocumentReportJSON(int InstanceID);
const char* DLGetOCRDocumentReportJSONA(int InstanceID);
傳回值
回傳 JSON 物件,摘要最近一次文件 OCR 執行,包括整體批次狀態、各頁結果、辨識字數與失敗原因。
備註
由 OCRDocument 與 OCRDocumentEx 按頁面請求順序填入。
請使用 GetOCRRetryPageRange 取得精簡的頁面範圍字串,涵蓋同一執行中失敗或跳過的頁面。
ActiveX 在 IPDFlibrary24 上公開此方法;可透過 CoPDFlibrary.CreateEditionTools24 取得,也可以查詢 PDFlibAX 4.74 或更新版本的預設介面
另請參閱
OCRDocumentEx, GetOCRRetryPageRange, GetOCRReadingOrderJSON, GetOCRDiagnosticsJSON