{"id":7197,"date":"2025-11-18T14:07:12","date_gmt":"2025-11-18T06:07:12","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=7197"},"modified":"2026-01-05T15:25:05","modified_gmt":"2026-01-05T07:25:05","slug":"gsdk%e7%9a%84ocr%e8%83%bd%e5%8a%9b%e5%a6%82%e4%bd%95%e6%94%af%e6%8c%81%e5%a4%9a%e8%bf%9b%e7%a8%8b","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=7197","title":{"rendered":"GSDK\u7684OCR\u80fd\u529b\u5982\u4f55\u652f\u6301\u591a\u8fdb\u7a0b?"},"content":{"rendered":"\n<p>GSDK v11 \u7684 OCR \u80fd\u529b\u901a\u8fc7\u72ec\u7acb\u7684<code>ocr_win64.exe<\/code>\u5de5\u5177\u652f\u6301\u591a\u8fdb\u7a0b\u3002\u7531\u4e8e\u8be5\u5de5\u5177\u4e3a\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c\u591a\u8fdb\u7a0b\u573a\u666f\u4e0b\u53ef\u901a\u8fc7\u540c\u65f6\u542f\u52a8\u591a\u4e2a<code>ocr_win64.exe<\/code>\u5b9e\u4f8b\u5b9e\u73b0\uff08\u6bcf\u4e2a\u5b9e\u4f8b\u72ec\u7acb\u5904\u7406\u4efb\u52a1\uff09\uff0c\u9700\u6ce8\u610f\u4e3a\u6bcf\u4e2a\u8fdb\u7a0b\u5206\u914d\u72ec\u7acb\u7684\u8f93\u5165 \/ \u8f93\u51fa\u8def\u5f84\uff0c\u907f\u514d\u6587\u4ef6\u51b2\u7a81\u3002<\/p>\n\n\n\n<p>\u4f7f\u7528\u6b65\u9aa4\u5982\u4e0b\uff1a<br><strong>\u51c6\u5907\u76ee\u5f55\u4e0e\u6587\u4ef6<\/strong>\uff1a\u521b\u5efa<code>OCRExeTool<\/code>\u76ee\u5f55\uff0c\u5c06<code>gsdk_key.txt<\/code>\u3001<code>gsdk_sn.txt<\/code>\u3001<code>fsdk_win64.dll<\/code>\uff08\u4ece<code>foxitpdfsdk_*_win.zip<\/code>\u5305\u4e2d\u83b7\u53d6\uff09\u53ca<code>ocr_win64.exe<\/code>\u62f7\u8d1d\u81f3\u8be5\u76ee\u5f55\uff1b<\/p>\n\n\n\n<p><strong>\u67e5\u770b\u53c2\u6570\u8bf4\u660e<\/strong>\uff1a\u6267\u884c\u547d\u4ee4\u00a0<code>ocr_win64.exe --help<\/code>\u00a0\u53ef\u83b7\u53d6\u6240\u6709\u652f\u6301\u7684\u53c2\u6570\u53ca\u7528\u6cd5\uff1b<\/p>\n\n\n\n<p><strong>\u6267\u884c OCR \u4efb\u52a1<\/strong>\uff1a\u901a\u8fc7 Java \u8c03\u7528 OCR exe \u5de5\u5177\uff0c\u793a\u4f8b\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\u53ef\u901a\u8fc7ProcessBuilder\u7c7b\u542f\u52a8ocr_win64.exe\u8fdb\u7a0b\uff0c\u793a\u4f8b\u4ee3\u7801\u6846\u67b6\u5982\u4e0b\uff1a<\/code><\/pre>\n\n\n\n<pre class=\"wp-block-code\"><code>public static void main(String&#091;] args) {\n        try {\n            ProcessBuilder processBuilder = new ProcessBuilder();\n\n            \/\/ Set commands and parameters\n            processBuilder.command(\n                    \"C:\\\\Users\\\\yang_leng\\\\Desktop\\\\exe\\\\ocr_win64.exe\"\n                    ,\"-type\",\"0\"\n                    ,\"-input\",\"C:\\\\Users\\\\yang_leng\\\\Desktop\\\\2.pdf\"\n                    ,\"-output\",\"C:\\\\Users\\\\yang_leng\\\\Desktop\\\\2_OCR.pdf\"\n                    ,\"-engine\",\"C:\\\\Users\\\\yang_leng\\\\Desktop\\\\SDKProject\\\\GSDK\\\\ocr_addon\\\\Res_OCR_V12_5_15_0_V11_0_win (2)\\\\win64_lib\"\n                    ,\"-lang\",\"English\"\n                    ,\"-edit\",\"yes\"\n                    ,\"-is_detect_pictures\",\"yes\"\n                    ,\"-is_remove_noise\",\"yes\"\n                    ,\"-is_correct_skew\",\"yes\"\n                    ,\"-is_enable_text_extraction_mode\",\"yes\"\n                    ,\"-is_sequentially_process\",\"yes\"\n                    ,\"-is_auto_overwrite_resolution\",\"false\"\n                    ,\"-resolution_to_overwrite\",\"300\"\n                    ,\"-confidence\",\"38\"\n                    ,\"-range\",\"0,2\" \/\/\u9875\u7801 \u8303\u56f4\n                    ,\"-ignore_image_width\",\"20\"\n                    ,\"-ignore_image_height\",\"20\");\n\n            \/\/ Set the working directory\n            processBuilder.directory(new File(\"C:\\\\Users\\\\yang_leng\\\\Desktop\\\\exe\"));\n\n            \/\/ Redirect input and output\n            processBuilder.redirectOutput(ProcessBuilder.Redirect.INHERIT);\n            processBuilder.redirectError(ProcessBuilder.Redirect.INHERIT);\n\n            \/\/ start process\n            Process process = processBuilder.start();\n\n            \/\/ Obtain output stream (if data needs to be input into the program)\n            OutputStream outputStream = process.getOutputStream();\n\n            \/\/ Waiting for the process to complete\n            int exitCode = process.waitFor();\n            System.out.println(\"Program execution completed, exit code:\" + exitCode);\n\n        } catch (IOException | InterruptedException e) {\n            e.printStackTrace();\n        }\n    }\n}<\/code><\/pre>\n\n\n\n<p>OCR exe \u5de5\u5177\u6267\u884c\u540e\u8fd4\u56de\u7684\u9519\u8bef\u7801\u4ee3\u7684\u542b\u4e49\uff1a<br>(1)\u6210\u529f: 0<br>(2)\u672a\u77e5\u9519\u8bef: 100<br>(3)License\u65e0\u6548: 101<br>(4)\u53c2\u6570\u9519\u8bef: 102<br>(5)GSDK\u521d\u59cb\u5316\u5931\u8d25: 103<br>(6)OCR\u5f15\u64ce\u76ee\u5f55\u9519\u8bef: 104<br>(7)OCR\u5f15\u64ce\u521d\u59cb\u5316\u5931\u8d25: 105<br>(8)\u6587\u6863\u52a0\u8f7d\u5931\u8d25: 106<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>GSDK v11 \u7684 OCR \u80fd\u529b\u901a\u8fc7\u72ec\u7acb\u7684ocr_win64.exe\u5de5\u5177\u652f\u6301\u591a\u8fdb\u7a0b\u3002\u7531\u4e8e\u8be5\u5de5\u5177\u4e3a\u53ef\u6267\u884c\u7a0b\u5e8f\uff0c [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[168],"class_list":["post-7197","post","type-post","status-publish","format-standard","hentry","category-gsdk","tag-ocr"],"pp_statuses_selecting_workflow":false,"pp_workflow_action":"current","pp_status_selection":"publish","_links":{"self":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7197"}],"version-history":[{"count":1,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7197\/revisions"}],"predecessor-version":[{"id":7198,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7197\/revisions\/7198"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}