{"id":295,"date":"2026-11-02T12:04:58","date_gmt":"2026-11-02T04:04:58","guid":{"rendered":"http:\/\/laoke.pw\/?p=295"},"modified":"2026-11-02T12:04:58","modified_gmt":"2026-11-02T04:04:58","slug":"257-paperless-ngx-%e6%8a%8a%e5%ae%b6%e9%87%8c%e7%9a%84%e7%ba%b8%e8%b4%a8%e6%96%87%e4%bb%b6%e5%8f%98%e6%88%90%e8%83%bd%e5%85%a8%e6%96%87%e6%90%9c%e7%b4%a2%e7%9a%84%e7%94%b5%e5%ad%90","status":"publish","type":"post","link":"http:\/\/laoke.pw\/?p=295","title":{"rendered":"257 Paperless-ngx \u2014\u2014 \u628a\u5bb6\u91cc\u7684\u7eb8\u8d28\u6587\u4ef6\u53d8\u6210\u80fd\u5168\u6587\u641c\u7d22\u7684\u7535\u5b50\u6863\u6848"},"content":{"rendered":"<h2>\u4e00\u53e5\u8bdd\u5b9a\u4f4d<\/h2>\n<p>Paperless-ngx \u662f\u4e00\u5957\u81ea\u6258\u7ba1\u7684\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\uff0c\u628a\u626b\u63cf\u4ef6\u3001PDF\u3001\u624b\u673a\u62cd\u7684\u7eb8\u8d28\u6587\u4ef6\u7edf\u4e00\u6536\u8fdb\u6765\uff0c\u505a OCR \u5168\u6587\u8bc6\u522b\u3001\u6309\u89c4\u5219\u81ea\u52a8\u6253\u6807\u7b7e\uff0c\u4e4b\u540e\u9760\u5173\u952e\u8bcd\u5c31\u80fd\u7ffb\u51fa\u4e09\u5e74\u524d\u7684\u4fdd\u4fee\u5355\u3002<\/p>\n<h2>\u4e3a\u4ec0\u4e48\u9700\u8981\u5b83<\/h2>\n<p>\u7eb8\u8d28\u6587\u4ef6\u548c\u7535\u5b50\u6587\u4ef6\u7684\u5b58\u653e\u4e00\u76f4\u662f\u4e71\u7684\uff1a\u5408\u540c\u5728\u62bd\u5c49\uff0c\u53d1\u7968\u5728\u90ae\u7bb1\u9644\u4ef6\u91cc\uff0c\u4f53\u68c0\u62a5\u544a\u5728\u624b\u673a\u76f8\u518c\uff0c\u8bf4\u660e\u4e66\u4e0d\u77e5\u9053\u6254\u54ea\u53bb\u4e86\u3002\u771f\u8981\u7528\u7684\u90a3\u5929\uff0c\u9760\u56de\u5fc6\u52a0\u7ffb\u6587\u4ef6\u5939\uff0c\u5e73\u5747\u627e\u4e00\u4efd\u8d44\u6599\u8981\u82b1\u597d\u51e0\u5206\u949f\uff0c\u6700\u540e\u5f80\u5f80\u662f\u627e\u4e0d\u5230\u7136\u540e\u91cd\u65b0\u8981\u4e00\u4efd\u3002<\/p>\n<p>\u7f51\u76d8\u80fd\u5b58\u4f46\u4e0d\u80fd\u7406\u89e3\u5185\u5bb9\u3002\u4f60\u641c\u300c\u70ed\u6c34\u5668 \u4fdd\u4fee\u300d\uff0c\u5b83\u53ea\u4f1a\u5339\u914d\u6587\u4ef6\u540d\uff1b\u800c\u626b\u63cf\u51fa\u6765\u7684 PDF\uff0c\u6587\u4ef6\u540d\u901a\u5e38\u662f <code>IMG_20240312_001.pdf<\/code> \u8fd9\u79cd\uff0c\u641c\u4ec0\u4e48\u90fd\u641c\u4e0d\u5230\u3002\u6587\u4ef6\u540d\u662f\u7ed9\u4eba\u770b\u7684\uff0c\u626b\u63cf\u4eea\u4e0d\u8ba4\u5b57\u3002<\/p>\n<h2>\u6838\u5fc3\u80fd\u529b<\/h2>\n<ul>\n<li><strong>\u6536\u4ef6\u7bb1\u673a\u5236<\/strong>\uff1a\u628a\u6587\u4ef6\u4e22\u8fdb consume \u76ee\u5f55\uff0c\u6216\u8005\u4ece\u7f51\u9875\u4e0a\u4f20\u3001\u90ae\u4ef6\u8f6c\u53d1\u3001\u626b\u63cf\u4eea\u76f4\u63a5\u63a8\u8fc7\u6765\uff0c\u7cfb\u7edf\u81ea\u52a8\u5bfc\u5165\u5e76\u5f52\u6863\u3002<\/li>\n<li><strong>OCR \u5168\u6587\u68c0\u7d22<\/strong>\uff1a\u5bf9\u626b\u63cf\u4ef6\u505a\u6587\u5b57\u8bc6\u522b\uff0c\u7ed3\u679c\u5165\u5e93\uff0c\u641c\u4e2d\u6587\u548c\u82f1\u6587\u90fd\u80fd\u547d\u4e2d\u6b63\u6587\uff0c\u547d\u4e2d\u7247\u6bb5\u4f1a\u9ad8\u4eae\u3002<\/li>\n<li><strong>\u81ea\u52a8\u5206\u7c7b<\/strong>\uff1a\u6309\u6587\u4ef6\u540d\u3001\u5185\u5bb9\u5173\u952e\u8bcd\u3001\u6765\u6e90\u5199\u89c4\u5219\uff0c\u81ea\u52a8\u5339\u914d\u6807\u7b7e\u3001\u5bf9\u5e94\u65b9\uff08\u6bd4\u5982\u67d0\u5bb6\u4fdd\u9669\u516c\u53f8\uff09\u3001\u6587\u6863\u7c7b\u578b\uff08\u53d1\u7968\/\u5408\u540c\/\u62a5\u544a\uff09\u3002<\/li>\n<li><strong>\u89c4\u8303\u5f52\u6863<\/strong>\uff1a\u6587\u4ef6\u6309\u300c\u65e5\u671f &#8211; \u6807\u9898.pdf\u300d\u91cd\u547d\u540d\u5e76\u5206\u76ee\u5f55\u5b58\u653e\uff0c\u539f\u4ef6\u53ef\u4ee5\u4fdd\u7559\u53cc\u4efd\u3002<\/li>\n<li><strong>\u7248\u672c\u4e0e\u5ba1\u8ba1<\/strong>\uff1a\u540c\u4e00\u4efd\u6587\u6863\u80fd\u8ffd\u52a0\u65b0\u7248\u672c\uff0c\u8c01\u5728\u4ec0\u4e48\u65f6\u5019\u6539\u8fc7\u90fd\u6709\u8bb0\u5f55\u3002<\/li>\n<li><strong>\u6743\u9650\u4e0e\u5206\u4eab<\/strong>\uff1a\u652f\u6301\u591a\u7528\u6237\uff0c\u6309\u6807\u7b7e\u6216\u6587\u6863\u6388\u6743\uff0c\u53ef\u4ee5\u751f\u6210\u5e26\u6709\u6548\u671f\u7684\u5206\u4eab\u94fe\u63a5\u3002<\/li>\n<\/ul>\n<h2>\u5b9e\u6d4b\u4f53\u9a8c<\/h2>\n<p>\u90e8\u7f72\u8d70 Docker Compose\uff0c\u5b98\u65b9\u7ed9\u4e86\u73b0\u6210\u7684 yml \u6587\u4ef6\uff0c\u4e00\u6761 <code>docker compose up -d<\/code> \u5c31\u80fd\u62c9\u8d77 Web \u670d\u52a1\u3001\u6570\u636e\u5e93\u3001Redis \u548c OCR \u670d\u52a1\uff0c\u9996\u6b21\u542f\u52a8\u5927\u7ea6 1 \u5230 2 \u5206\u949f\u3002\u6574\u5957\u6808\u5e38\u9a7b\u5185\u5b58 800MB \u5230 1.5GB\uff0c\u8dd1\u5728 2C2G \u7684\u5c0f\u673a\u5668\u4e0a\u504f\u7d27\uff0c\u52a0 1 \u5230 2GB swap \u4f1a\u7a33\u4e00\u4e9b\u3002<\/p>\n<p>\u5bfc\u5165\u901f\u5ea6\uff1a\u4e00\u9875 300dpi \u7684\u7eaf\u6587\u5b57\u626b\u63cf\u4ef6\uff0cOCR \u5927\u7ea6 2 \u5230 4 \u79d2\u3002\u4e00\u6b21\u4e22 50 \u4efd PDF \u8fdb\u53bb\uff0c\u5341\u6765\u5206\u949f\u5904\u7406\u5b8c\uff0c\u754c\u9762\u4e0a\u80fd\u770b\u5230\u300c\u5f85\u5904\u7406 \/ \u5df2\u5b8c\u6210\u300d\u7684\u961f\u5217\u3002<\/p>\n<p>\u771f\u6b63\u7684\u4ef7\u503c\u5728\u641c\u7d22\uff1a\u8f93\u5165\u300c\u53d1\u7968 2023 \u91d1\u989d\u300d\uff0c\u80fd\u76f4\u63a5\u5b9a\u4f4d\u5230\u6b63\u6587\u91cc\u51fa\u73b0\u7684\u90a3\u4e00\u884c\uff0c\u5e76\u9ad8\u4eae\u4e0a\u4e0b\u6587\uff0c\u800c\u4e0d\u662f\u7ed9\u4f60\u4e00\u5806\u6587\u4ef6\u8ba9\u4f60\u81ea\u5df1\u70b9\u5f00\u7ffb\u3002\u8fd9\u5957\u4f53\u9a8c\u662f\u7f51\u76d8\u52a0\u6587\u4ef6\u5939\u6c38\u8fdc\u7ed9\u4e0d\u4e86\u7684\u3002<\/p>\n<p>\u5751\u4e5f\u8bf4\u6e05\u695a\uff1a\u4e2d\u6587\u8bc6\u522b\u5fc5\u987b\u989d\u5916\u88c5 <code>tesseract-ocr-chi-sim<\/code> \u8bed\u8a00\u5305\uff0c\u4e0d\u88c5\u7684\u8bdd\u4e2d\u6587\u5168\u90e8\u53d8\u6210\u4e71\u7801\uff0c\u8fd9\u4e00\u6b65\u5f88\u591a\u4eba\u5361\u4f4f\u3002\u53e6\u5916\u624b\u5199\u4f53\u8bc6\u522b\u7387\u5f88\u4f4e\uff0c\u522b\u5bf9\u533b\u751f\u7684\u5904\u65b9\u5355\u62b1\u671f\u5f85\u3002<\/p>\n<h2>\u9002\u5408\u8c01<\/h2>\n<ul>\n<li>\u6709\u5927\u91cf\u7968\u636e\u3001\u5408\u540c\u3001\u4f53\u68c0\u62a5\u544a\u9700\u8981\u957f\u671f\u5f52\u6863\u7684\u5bb6\u5ead\u6216\u81ea\u7531\u804c\u4e1a\u8005<\/li>\n<li>\u5c0f\u578b\u5de5\u4f5c\u5ba4\uff0c\u9700\u8981\u6309\u5ba2\u6237\u548c\u9879\u76ee\u5f52\u6863\u5408\u540c\u4e0e\u53d1\u7968<\/li>\n<li>\u5df2\u7ecf\u5728\u8dd1 NAS \u6216\u5bb6\u7528\u670d\u52a1\u5668\u3001\u4e60\u60ef\u7528 Docker \u7684\u4eba<\/li>\n<\/ul>\n<h2>\u9700\u8981\u6ce8\u610f\u7684\u5730\u65b9<\/h2>\n<ul>\n<li>\u5b83\u4e0d\u662f\u88c5\u5b8c\u5c31\u80fd\u7528\u7684\u6d88\u8d39\u7ea7\u8f6f\u4ef6\uff0c\u5f97\u61c2 Docker\u3001\u7aef\u53e3\u6620\u5c04\u3001\u76ee\u5f55\u6302\u8f7d\u8fd9\u51e0\u4ef6\u4e8b\u3002<\/li>\n<li>\u5907\u4efd\u5fc5\u987b\u81ea\u5df1\u89e3\u51b3\u3002\u6587\u6863\u5e93\u5c31\u662f\u4e00\u5806\u6587\u4ef6\u52a0\u4e00\u4e2a\u6570\u636e\u5e93\uff0c\u4e24\u8005\u8981\u4e00\u8d77\u5907\u4efd\uff0c\u53ea\u62f7\u6587\u4ef6\u4e0d\u62f7\u5e93\uff0c\u6807\u7b7e\u548c\u89c4\u5219\u5168\u4e22\u3002<\/li>\n<li>OCR \u6709\u8bed\u8a00\u5305\u95e8\u69db\uff0c\u4e2d\u6587\u3001\u65e5\u6587\u90fd\u8981\u5355\u72ec\u88c5\uff0c\u88c5\u9519\u7248\u672c\u4e0d\u4f1a\u62a5\u9519\uff0c\u53ea\u4f1a\u8bc6\u522b\u5931\u8d25\u3002<\/li>\n<li>\u79fb\u52a8\u7aef\u53ea\u6709\u7f51\u9875\u548c\u7b2c\u4e09\u65b9\u5ba2\u6237\u7aef\uff0c\u626b\u7801\u4e0a\u4f20\u7684\u6d41\u7545\u5ea6\u4e0d\u5982\u5546\u4e1a App\u3002<\/li>\n<li>\u626b\u63cf\u8d28\u91cf\u51b3\u5b9a\u4e00\u5207\uff1a\u6b6a\u659c\u3001\u9634\u5f71\u3001\u4f4e\u5206\u8fa8\u7387\u4f1a\u8ba9\u8bc6\u522b\u7387\u65ad\u5d16\u5f0f\u4e0b\u8dcc\uff0c\u524d\u7f6e\u7684\u626b\u63cf\u6216\u62cd\u7167\u8d28\u91cf\u6bd4\u8f6f\u4ef6\u672c\u8eab\u66f4\u91cd\u8981\u3002<\/li>\n<\/ul>\n<h2>\u5c0f\u7ed3<\/h2>\n<p>Paperless-ngx \u89e3\u51b3\u7684\u4e0d\u662f\u300c\u5b58\u300d\u7684\u95ee\u9898\uff0c\u800c\u662f\u300c\u627e\u300d\u7684\u95ee\u9898\u3002\u82b1\u4e00\u4e2a\u4e0b\u5348\u642d\u73af\u5883\uff0c\u6362\u6765\u7684\u662f\u4ee5\u540e\u6bcf\u6b21\u627e\u7968\u636e\u4ece\u300c\u7ffb\u62bd\u5c49\u4e94\u5206\u949f\u300d\u53d8\u6210\u300c\u641c\u4e09\u79d2\u949f\u300d\u3002\u4ee3\u4ef7\u662f\u8981\u81ea\u5df1\u7ef4\u62a4\u670d\u52a1\u5668\u548c\u5907\u4efd\u2014\u2014\u613f\u610f\u4ed8\u8fd9\u4e2a\u4ee3\u4ef7\uff0c\u5b83\u5728\u8fd9\u4e2a\u4ef7\u4f4d\u4e0a\u6ca1\u6709\u66ff\u4ee3\u54c1\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Paperless-ngx \u662f\u4e00\u5957\u81ea\u6258\u7ba1\u7684\u6587\u6863\u7ba1\u7406\u7cfb\u7edf\uff0c\u628a\u626b\u63cf\u4ef6\u3001PDF\u3001\u624b\u673a\u62cd\u7684\u7eb8\u8d28\u6587\u4ef6\u7edf\u4e00\u6536\u8fdb\u6765\uff0c\u505a OCR \u5168\u6587\u8bc6\u522b\u3001\u6309\u89c4\u5219\u81ea\u52a8\u6253\u6807\u7b7e\uff0c\u4e4b\u540e\u9760\u5173\u952e\u8bcd\u5c31\u80fd\u7ffb\u51fa\u4e09\u5e74\u524d\u7684\u4fdd\u4fee\u5355\u3002<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[2],"tags":[],"class_list":["post-295","post","type-post","status-publish","format-standard","hentry","category-2"],"_links":{"self":[{"href":"http:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/295","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=295"}],"version-history":[{"count":0,"href":"http:\/\/laoke.pw\/index.php?rest_route=\/wp\/v2\/posts\/295\/revisions"}],"wp:attachment":[{"href":"http:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=295"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=295"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/laoke.pw\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=295"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}