{"id":7204,"date":"2025-12-03T13:35:37","date_gmt":"2025-12-03T05:35:37","guid":{"rendered":"https:\/\/support.fuxinsoft.cn\/?p=7204"},"modified":"2025-12-26T17:09:39","modified_gmt":"2025-12-26T09:09:39","slug":"%e5%9c%a8docker%e4%b8%ad%e4%bd%bf%e7%94%a8ocr%e5%8a%9f%e8%83%bd%e7%9a%84%e6%b3%a8%e6%84%8f%e4%ba%8b%e9%a1%b9%e5%92%8c%e9%85%8d%e7%bd%ae%e8%a6%81%e6%b1%82","status":"publish","type":"post","link":"https:\/\/support.fuxinsoft.cn\/?p=7204","title":{"rendered":"\u5728docker\u4e2d\u4f7f\u7528OCR\u529f\u80fd\u7684\u6ce8\u610f\u4e8b\u9879\u548c\u914d\u7f6e\u8981\u6c42"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">1.\u5b89\u88c5\u4e2d\u6587\u5305<br>apt-get update<br>apt-get install language-pack-zh-hans<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">2.\u6709\u7684\u7cfb\u7edf\u63d0\u793a\u6ca1\u6709\u6b64\u5b89\u88c5\u5305\uff0c\u53ef\u80fd\u7cfb\u7edf\u5df2\u7ecf\u652f\u6301\u4e2d\u6587\u8bed\u8a00\u73af\u5883\uff0c\u6240\u4ee5\u76f4\u63a5\u914d\u7f6e\u8bed\u8a00\u73af\u5883\uff1a<br>dpkg-reconfigurelocales\uff08\u9009\u62e9487zh_CN.UTF-8)<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">locale-a   \uff08\u67e5\u770b\u662f\u5426\u6709zh_CN.UTF-8\uff09<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">3.\u8bbe\u7f6e\u73af\u5883\u53d8\u91cf\uff1a<br>echo -e &#8220;export LANG=\\&#8221;zh_CN.UTF-8\\&#8221;&#8221;&gt;&gt; \/etc\/bash.bashrc<br>echo -e &#8220;export LANGUAGE=\\&#8221;zh_CN.UTF-8\\&#8221;&#8221; &gt;&gt; \/etc\/bash.bashrc<br>docker restart<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">4.docker\u8fd0\u884c\u65f6\u5efa\u8bae\u5206\u914d\u7684Tmpfssize\uff1a<br>swap\u5927\u5c0f\u548c tmpfs \u5927\u5c0f\u7684\u9002\u5f53\u7cfb\u7edf\u8981\u6c42\u5b9a\u4e49\u5982\u4e0b\uff1a<br>tmpfs \u5927\u5c0f- 4GB + 1GB<em>*(\u6838\u5fc3\u6570\u91cf\uff09 <\/em><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><em>swap\u5927\u5c0f &#8211; 4GB + 1GB<\/em>(\u6838\u5fc3\u6570\u91cf)\u3002<br>\u5bf9\u4e8e docker \u5bb9\u5668\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u4ee5\u4e0b\u9644\u52a0\u53c2\u6570\uff08\u7528\u4e8e docker run \u547d\u4ee4\uff09\uff1a\uff0d-shm-size [SIZE]<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><\/p>\n","protected":false},"excerpt":{"rendered":"<p>1.\u5b89\u88c5\u4e2d\u6587\u5305apt-get updateapt-get install language-pack-zh-h [&hellip;]<\/p>\n","protected":false},"author":31,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[77],"tags":[1205,168],"class_list":["post-7204","post","type-post","status-publish","format-standard","hentry","category-gsdk","tag-docker","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\/7204","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\/31"}],"replies":[{"embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7204"}],"version-history":[{"count":3,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7204\/revisions"}],"predecessor-version":[{"id":7274,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=\/wp\/v2\/posts\/7204\/revisions\/7274"}],"wp:attachment":[{"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7204"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7204"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/support.fuxinsoft.cn\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7204"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}