ツールボックス - ドキュメントを hOCR に変換する
bookmark_borderbookmark
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
Document AI からの Document
出力を hOCR XML 文字列に変換します。
もっと見る
このコードサンプルを含む詳細なドキュメントについては、以下をご覧ください。
コードサンプル
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["わかりにくい","hardToUnderstand","thumb-down"],["情報またはサンプルコードが不正確","incorrectInformationOrSampleCode","thumb-down"],["必要な情報 / サンプルがない","missingTheInformationSamplesINeed","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["その他","otherDown","thumb-down"]],[],[[["This code demonstrates how to convert a `Document` object from Document AI into an hOCR XML string."],["The process involves utilizing the `document` module from the `google.cloud.documentai_toolbox` library."],["Authentication to Document AI requires setting up Application Default Credentials, as detailed in the provided documentation link."],["The provided code sample can be found with further details in the Document AI Toolbox client libraries documentation, which can be explored for further information."],["The `Document` object, `wrapped_document`, can be exported into hOCR string format through the `export_hocr_str` function."]]],[]]