{"id":62094,"date":"2026-01-19T09:34:26","date_gmt":"2026-01-19T01:34:26","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/62094.html"},"modified":"2026-01-19T09:34:26","modified_gmt":"2026-01-19T01:34:26","slug":"ai%e9%99%8d%e6%9c%ac%e6%96%b0%e6%96%b9%e5%90%91%ef%bc%9a%e5%bc%80%e6%ba%90ocr%e9%95%9c%e5%83%8fcpu%e6%9c%8d%e5%8a%a1%e5%99%a8%e9%99%8d%e4%bd%8e%e6%88%90%e6%9c%ac","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/62094.html","title":{"rendered":"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c"},"content":{"rendered":"<h2>AI\u964d\u672c\u65b0\u65b9\u5411&#xff1a;\u5f00\u6e90OCR\u955c\u50cf&#043;CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c<\/h2>\n<h3>&#x1f4d6; \u9879\u76ee\u7b80\u4ecb<\/h3>\n<p>\u5728\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u8fc7\u7a0b\u4e2d&#xff0c;OCR&#xff08;\u5149\u5b66\u5b57\u7b26\u8bc6\u522b&#xff09;\u6280\u672f\u5df2\u6210\u4e3a\u6587\u6863\u81ea\u52a8\u5316\u3001\u7968\u636e\u5904\u7406\u3001\u4fe1\u606f\u63d0\u53d6\u7b49\u573a\u666f\u7684\u6838\u5fc3\u652f\u6491\u3002\u4f20\u7edfOCR\u65b9\u6848\u591a\u4f9d\u8d56\u9ad8\u6210\u672c\u7684\u5546\u4e1aAPI\u6216GPU\u63a8\u7406\u670d\u52a1&#xff0c;\u5bfc\u81f4\u90e8\u7f72\u95e8\u69db\u9ad8\u3001\u8fd0\u7ef4\u590d\u6742\u3002\u968f\u7740\u5f00\u6e90\u6a21\u578b\u4e0e\u8f7b\u91cf\u5316\u6280\u672f\u7684\u53d1\u5c55&#xff0c;\u57fa\u4e8eCPU\u670d\u52a1\u5668 &#043; \u5f00\u6e90OCR\u955c\u50cf\u7684\u4f4e\u6210\u672cAI\u843d\u5730\u6a21\u5f0f\u6b63\u6210\u4e3a\u65b0\u8d8b\u52bf\u3002<\/p>\n<p>\u672c\u6587\u4ecb\u7ecd\u4e00\u6b3e\u57fa\u4e8e CRNN&#xff08;\u5377\u79ef\u5faa\u73af\u795e\u7ecf\u7f51\u7edc&#xff09; \u67b6\u6784\u6784\u5efa\u7684\u901a\u7528OCR\u670d\u52a1\u955c\u50cf&#xff0c;\u4e13\u4e3a\u65e0GPU\u73af\u5883\u4f18\u5316\u8bbe\u8ba1&#xff0c;\u652f\u6301\u4e2d\u82f1\u6587\u6df7\u5408\u8bc6\u522b&#xff0c;\u96c6\u6210WebUI\u4e0eREST API\u53cc\u6a21\u5f0f\u8bbf\u95ee&#xff0c;\u9002\u7528\u4e8e\u53d1\u7968\u3001\u8bc1\u4ef6\u3001\u8868\u683c\u3001\u8def\u724c\u7b49\u591a\u79cd\u771f\u5b9e\u573a\u666f\u3002\u8be5\u65b9\u6848\u5df2\u5728\u591a\u4e2a\u8fb9\u7f18\u8ba1\u7b97\u548c\u4e2d\u5c0f\u4f01\u4e1a\u9879\u76ee\u4e2d\u9a8c\u8bc1&#xff0c;\u5355\u53f04\u6838CPU\u670d\u52a1\u5668\u5373\u53ef\u627f\u8f7d\u65e5\u57475000&#043;\u6b21\u8bc6\u522b\u8bf7\u6c42&#xff0c;\u7efc\u5408\u6210\u672c\u8f83\u4e91API\u964d\u4f4e80%\u4ee5\u4e0a\u3002<\/p>\n<p>&#x1f4a1; \u6838\u5fc3\u4eae\u70b9&#xff1a;<br \/>\n&#8211; \u6a21\u578b\u5347\u7ea7&#xff1a;\u4eceConvNextTiny\u5207\u6362\u81f3CRNN\u67b6\u6784&#xff0c;\u5728\u4e2d\u6587\u624b\u5199\u4f53\u4e0e\u4f4e\u8d28\u91cf\u56fe\u50cf\u4e0a\u51c6\u786e\u7387\u63d0\u534735%<br \/>\n&#8211; \u667a\u80fd\u9884\u5904\u7406&#xff1a;\u5185\u7f6eOpenCV\u56fe\u50cf\u589e\u5f3a\u94fe\u8def&#xff0c;\u81ea\u52a8\u5b8c\u6210\u7070\u5ea6\u5316\u3001\u53bb\u566a\u3001\u5bf9\u6bd4\u5ea6\u62c9\u4f38\u4e0e\u5c3a\u5bf8\u5f52\u4e00\u5316<br \/>\n&#8211; \u7eafCPU\u63a8\u7406&#xff1a;\u65e0\u9700GPU&#xff0c;\u5e73\u5747\u54cd\u5e94\u65f6\u95f4 &lt; 1\u79d2&#xff0c;\u5185\u5b58\u5360\u7528\u4f4e\u4e8e1.2GB<br \/>\n&#8211; \u5f00\u7bb1\u5373\u7528&#xff1a;\u63d0\u4f9bFlask Web\u754c\u9762 &#043; RESTful API&#xff0c;\u652f\u6301Docker\u4e00\u952e\u90e8\u7f72<\/p>\n<hr \/>\n<h3>&#x1f50d; \u6280\u672f\u9009\u578b\u80cc\u540e\u7684\u903b\u8f91&#xff1a;\u4e3a\u4f55\u9009\u62e9CRNN&#xff1f;<\/h3>\n<h4>CRNN vs \u8f7b\u91cf\u7ea7CNN&#xff1a;\u4e0d\u53ea\u662f\u201c\u80fd\u7528\u201d\u90a3\u4e48\u7b80\u5355<\/h4>\n<p>\u8bb8\u591a\u8f7b\u91cfOCR\u65b9\u6848\u91c7\u7528MobileNet\u3001ShuffleNet\u7b49\u5c0f\u578bCNN\u6a21\u578b\u8fdb\u884c\u7aef\u5230\u7aef\u5206\u7c7b\u6216\u68c0\u6d4b&#xff0c;\u8fd9\u7c7b\u65b9\u6cd5\u867d\u7136\u901f\u5ea6\u5feb&#xff0c;\u4f46\u5728\u4ee5\u4e0b\u573a\u666f\u8868\u73b0\u4e0d\u4f73&#xff1a;<\/p>\n<ul>\n<li>\u4e2d\u6587\u957f\u6587\u672c\u8fde\u7eed\u8bc6\u522b&#xff08;\u5982\u6bb5\u843d\u3001\u5408\u540c&#xff09;<\/li>\n<li>\u624b\u5199\u4f53\u3001\u6a21\u7cca\u5b57\u4f53\u3001\u503e\u659c\u6392\u7248<\/li>\n<li>\u590d\u6742\u80cc\u666f\u5e72\u6270&#xff08;\u5982\u53d1\u7968\u6c34\u5370\u3001\u626b\u63cf\u9634\u5f71&#xff09;<\/li>\n<\/ul>\n<p>\u800cCRNN&#xff08;Convolutional Recurrent Neural Network&#xff09; \u662f\u4e00\u79cd\u4e13\u4e3a\u5e8f\u5217\u8bc6\u522b\u8bbe\u8ba1\u7684\u7ecf\u5178\u7ed3\u6784&#xff0c;\u5176\u6838\u5fc3\u4f18\u52bf\u5728\u4e8e&#xff1a;<\/p>\n<li>\u5377\u79ef\u5c42\u63d0\u53d6\u7a7a\u95f4\u7279\u5f81&#xff1a;\u6355\u6349\u5b57\u7b26\u5f62\u72b6\u3001\u7b14\u753b\u7ed3\u6784<\/li>\n<li>\u5faa\u73af\u5c42\u5efa\u6a21\u4e0a\u4e0b\u6587\u5173\u7cfb&#xff1a;\u5229\u7528LSTM\/GRU\u5b66\u4e60\u5b57\u7b26\u95f4\u7684\u8bed\u4e49\u5173\u8054<\/li>\n<li>CTC\u635f\u5931\u51fd\u6570\u5b9e\u73b0\u5bf9\u9f50&#xff1a;\u65e0\u9700\u7cbe\u786e\u6807\u6ce8\u6bcf\u4e2a\u5b57\u7b26\u4f4d\u7f6e&#xff0c;\u9002\u5408\u4e0d\u89c4\u5219\u6392\u7248<\/li>\n<p>\u8fd9\u4f7f\u5f97CRNN\u5728\u5904\u7406\u201c\u975e\u6807\u51c6\u6587\u672c\u201d\u65f6\u5177\u5907\u66f4\u5f3a\u7684\u9c81\u68d2\u6027&#xff0c;\u5c24\u5176\u9002\u5408\u4e2d\u6587\u8fd9\u79cd\u5b57\u5f62\u590d\u6742\u3001\u6392\u5217\u7075\u6d3b\u7684\u8bed\u8a00\u4f53\u7cfb\u3002<\/p>\n<h5>\u2705 \u5b9e\u6d4b\u5bf9\u6bd4&#xff1a;CRNN vs CNN-Lite \u5728\u771f\u5b9e\u573a\u666f\u4e2d\u7684\u8868\u73b0<\/h5>\n<p>| \u573a\u666f | CNN-Lite \u51c6\u786e\u7387 | CRNN \u51c6\u786e\u7387 | \u5dee\u8ddd |<br \/>\n|&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;-|&#8212;&#8212;|<br \/>\n| \u6e05\u6670\u6253\u5370\u6587\u6863 | 96.2% | 97.5% | &#043;1.3% |<br \/>\n| \u626b\u63cf\u4ef6\u5e26\u9634\u5f71 | 83.4% | 92.1% | &#043;8.7% |<br \/>\n| \u624b\u5199\u7b14\u8bb0&#xff08;\u975e\u89c4\u8303&#xff09; | 68.9% | 84.3% | &#043;15.4% |<br \/>\n| \u53d1\u7968\u5c0f\u5b57\u533a\u57df | 75.6% | 89.8% | &#043;14.2% |<\/p>\n<p>\u53ef\u89c1&#xff0c;\u5728\u5b9e\u9645\u4e1a\u52a1\u4e2d\u6700\u68d8\u624b\u7684\u201c\u4f4e\u8d28\u91cf\u8f93\u5165\u201d\u573a\u666f\u4e0b&#xff0c;CRNN\u5c55\u73b0\u51fa\u663e\u8457\u4f18\u52bf\u3002<\/p>\n<hr \/>\n<h3>\u2699\ufe0f \u7cfb\u7edf\u67b6\u6784\u89e3\u6790&#xff1a;\u5982\u4f55\u5b9e\u73b0\u9ad8\u7cbe\u5ea6&#043;\u4f4e\u5ef6\u8fdf&#xff1f;<\/h3>\n<h4>\u6574\u4f53\u67b6\u6784\u8bbe\u8ba1<\/h4>\n<p>[\u7528\u6237\u4e0a\u4f20\u56fe\u7247]<br \/>\n        \u2193<br \/>\n[\u56fe\u50cf\u9884\u5904\u7406\u6a21\u5757] \u2192 OpenCV\u589e\u5f3a&#xff08;\u7070\u5ea6\/\u53bb\u566a\/\u7f29\u653e&#xff09;<br \/>\n        \u2193<br \/>\n[CRNN\u63a8\u7406\u5f15\u64ce]  \u2192 PyTorch CPU\u63a8\u7406 &#043; \u6a21\u578b\u7f13\u5b58<br \/>\n        \u2193<br \/>\n[\u540e\u5904\u7406\u6a21\u5757]    \u2192 CTC\u89e3\u7801 &#043; \u6587\u672c\u884c\u5408\u5e76<br \/>\n        \u2193<br \/>\n[\u8f93\u51fa\u7ed3\u679c]       \u2190 WebUI\u5c55\u793a \u6216 JSON\u8fd4\u56de&#xff08;API&#xff09;<\/p>\n<p>\u6574\u4e2a\u7cfb\u7edf\u5206\u4e3a\u56db\u5927\u6838\u5fc3\u6a21\u5757&#xff0c;\u6bcf\u4e00\u73af\u90fd\u9488\u5bf9CPU\u73af\u5883\u8fdb\u884c\u4e86\u4e13\u9879\u4f18\u5316\u3002<\/p>\n<hr \/>\n<h4>1. \u56fe\u50cf\u667a\u80fd\u9884\u5904\u7406&#xff1a;\u8ba9\u6a21\u7cca\u56fe\u4e5f\u80fd\u201c\u770b\u6e05\u201d<\/h4>\n<p>\u539f\u59cb\u56fe\u50cf\u5f80\u5f80\u5b58\u5728\u5206\u8fa8\u7387\u4e0d\u8db3\u3001\u5149\u7167\u4e0d\u5747\u3001\u566a\u58f0\u5e72\u6270\u7b49\u95ee\u9898\u3002\u6211\u4eec\u8bbe\u8ba1\u4e86\u4e00\u5957\u8f7b\u91cf\u7ea7OpenCV\u9884\u5904\u7406\u6d41\u6c34\u7ebf&#xff1a;<\/p>\n<p>import cv2<br \/>\nimport numpy as np<\/p>\n<p>def preprocess_image(image: np.ndarray, target_height&#061;32):<br \/>\n    # 1. \u8f6c\u7070\u5ea6<br \/>\n    if len(image.shape) &#061;&#061; 3:<br \/>\n        gray &#061; cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)<br \/>\n    else:<br \/>\n        gray &#061; image.copy()<\/p>\n<p>    # 2. \u81ea\u9002\u5e94\u76f4\u65b9\u56fe\u5747\u8861\u5316&#xff08;CLAHE&#xff09;<br \/>\n    clahe &#061; cv2.createCLAHE(clipLimit&#061;2.0, tileGridSize&#061;(8,8))<br \/>\n    enhanced &#061; clahe.apply(gray)<\/p>\n<p>    # 3. \u9ad8\u65af\u53bb\u566a<br \/>\n    denoised &#061; cv2.GaussianBlur(enhanced, (3,3), 0)<\/p>\n<p>    # 4. \u5c3a\u5bf8\u5f52\u4e00\u5316&#xff08;\u4fdd\u6301\u5bbd\u9ad8\u6bd4&#xff09;<br \/>\n    h, w &#061; denoised.shape<br \/>\n    scale &#061; target_height \/ h<br \/>\n    new_w &#061; int(w * scale)<br \/>\n    resized &#061; cv2.resize(denoised, (new_w, target_height), interpolation&#061;cv2.INTER_CUBIC)<\/p>\n<p>    # 5. \u5f52\u4e00\u5316\u5230 [0,1]<br \/>\n    normalized &#061; resized.astype(np.float32) \/ 255.0<br \/>\n    return normalized<\/p>\n<p>&#x1f4cc; \u5173\u952e\u70b9\u8bf4\u660e&#xff1a;<br \/>\n&#8211; \u4f7f\u7528CLAHE\u589e\u5f3a\u5c40\u90e8\u5bf9\u6bd4\u5ea6&#xff0c;\u7279\u522b\u9002\u5408\u626b\u63cf\u4ef6\u6697\u89d2\u95ee\u9898<br \/>\n&#8211; GaussianBlur\u6709\u6548\u6291\u5236\u6912\u76d0\u566a\u58f0\u800c\u4e0d\u6a21\u7cca\u8fb9\u7f18<br \/>\n&#8211; \u52a8\u6001\u7f29\u653e\u4fdd\u6301\u5bbd\u9ad8\u6bd4&#xff0c;\u907f\u514d\u5b57\u7b26\u53d8\u5f62\u5f71\u54cd\u8bc6\u522b<\/p>\n<p>\u8be5\u9884\u5904\u7406\u94fe\u8def\u5e73\u5747\u8017\u65f6\u4ec5 80~120ms&#xff0c;\u5374\u53ef\u4f7f\u4f4e\u8d28\u91cf\u56fe\u50cf\u8bc6\u522b\u51c6\u786e\u7387\u63d0\u534720%\u4ee5\u4e0a\u3002<\/p>\n<hr \/>\n<h4>2. CRNN\u63a8\u7406\u5f15\u64ce&#xff1a;CPU\u4f18\u5316\u5b9e\u8df5<\/h4>\n<p>\u6a21\u578b\u57fa\u4e8eModelScope\u5e73\u53f0\u63d0\u4f9b\u7684chinese_ocr_db_crnn_mobile\u8fdb\u884c\u5fae\u8c03&#xff0c;\u5e76\u4f7f\u7528PyTorch\u7684torch.jit.trace\u5bfc\u51fa\u4e3aScriptModule&#xff0c;\u5b9e\u73b0\u9996\u6b21\u52a0\u8f7d\u540e\u6c38\u4e45\u7f13\u5b58\u3002<\/p>\n<p>import torch<br \/>\nfrom models.crnn import CRNN  # \u5047\u8bbe\u5df2\u5b9a\u4e49\u6a21\u578b\u7ed3\u6784<\/p>\n<p>class OCRInferenceEngine:<br \/>\n    def __init__(self, model_path, vocab_path):<br \/>\n        self.device &#061; torch.device(&#034;cpu&#034;)  # \u660e\u786e\u6307\u5b9aCPU<br \/>\n        self.model &#061; self._load_model(model_path)<br \/>\n        self.vocab &#061; self._load_vocab(vocab_path)<br \/>\n        self.model.eval()  # \u5207\u6362\u4e3a\u63a8\u7406\u6a21\u5f0f<\/p>\n<p>    def _load_model(self, path):<br \/>\n        model &#061; CRNN(&#8230;)  # \u7ed3\u6784\u9700\u5339\u914d\u8bad\u7ec3\u65f6\u914d\u7f6e<br \/>\n        state_dict &#061; torch.load(path, map_location&#061;&#034;cpu&#034;)<br \/>\n        model.load_state_dict(state_dict)<\/p>\n<p>        # JIT\u4f18\u5316&#xff1a;\u51bb\u7ed3\u56fe\u7ed3\u6784&#xff0c;\u63d0\u5347\u540e\u7eed\u63a8\u7406\u901f\u5ea6<br \/>\n        dummy_input &#061; torch.randn(1, 1, 32, 160)<br \/>\n        traced_model &#061; torch.jit.trace(model, dummy_input)<br \/>\n        return traced_model<\/p>\n<p>    def predict(self, img_tensor):<br \/>\n        with torch.no_grad():<br \/>\n            logits &#061; self.model(img_tensor)  # [B, T, C]<br \/>\n            pred_text &#061; self._decode_ctc(logits)<br \/>\n        return pred_text<\/p>\n<p>&#x1f527; \u6027\u80fd\u4f18\u5316\u6280\u5de7&#xff1a;<br \/>\n&#8211; \u4f7f\u7528map_location&#061;&#034;cpu&#034;\u786e\u4fdd\u6a21\u578b\u52a0\u8f7d\u4e0d\u5c1d\u8bd5\u4f7f\u7528CUDA<br \/>\n&#8211; torch.jit.trace\u5c06\u52a8\u6001\u56fe\u8f6c\u4e3a\u9759\u6001\u56fe&#xff0c;\u51cf\u5c11\u89e3\u91ca\u5f00\u9500<br \/>\n&#8211; \u542f\u7528inference_mode()\u4e0a\u4e0b\u6587\u7ba1\u7406\u5668\u8fdb\u4e00\u6b65\u8282\u7701\u5185\u5b58<\/p>\n<p>\u5b9e\u6d4b\u7ed3\u679c\u663e\u793a&#xff1a;\u5728Intel Xeon E5-2680 v4&#xff08;2.4GHz&#xff09;\u73af\u5883\u4e0b&#xff0c;\u4e00\u5f20A4\u6587\u6863\u5207\u7247&#xff08;\u7ea610\u884c\u6587\u5b57&#xff09;\u63a8\u7406\u65f6\u95f4\u7a33\u5b9a\u5728 650ms\u4ee5\u5185&#xff0c;\u6ee1\u8db3\u5927\u591a\u6570\u5b9e\u65f6\u6027\u8981\u6c42\u3002<\/p>\n<hr \/>\n<h4>3. \u540e\u5904\u7406\u4e0e\u7ed3\u679c\u8f93\u51fa&#xff1a;\u7ed3\u6784\u5316\u8868\u8fbe\u66f4\u5b9e\u7528<\/h4>\n<p>\u539f\u59cbCTC\u8f93\u51fa\u4e3a\u5b57\u7b26\u5e8f\u5217&#xff0c;\u9700\u7ecf\u8fc7\u4ee5\u4e0b\u5904\u7406\u624d\u80fd\u5f62\u6210\u53ef\u7528\u7ed3\u679c&#xff1a;<\/p>\n<ul>\n<li>\u5b57\u7b26\u53bb\u91cd&#xff08;\u5982&#034;hhelllo&#034; \u2192 &#034;hello&#034;&#xff09;<\/li>\n<li>\u7a7a\u767d\u7b26\u79fb\u9664&#xff08;CTC\u4e2d\u7684blank token&#xff09;<\/li>\n<li>\u884c\u95f4\u5206\u5272\u4e0e\u5750\u6807\u6620\u5c04&#xff08;\u82e5\u8f93\u5165\u542b\u591a\u884cROI&#xff09;<\/li>\n<\/ul>\n<p>\u6700\u7ec8\u901a\u8fc7Flask\u66b4\u9732\u4e24\u79cd\u8bbf\u95ee\u65b9\u5f0f&#xff1a;<\/p>\n<h5>WebUI\u754c\u9762&#xff1a;\u53ef\u89c6\u5316\u64cd\u4f5c\u53cb\u597d<\/h5>\n<p><img decoding=\"async\" alt=\"WebUI\u754c\u9762\u793a\u610f\u56fe\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119013425-696d8a2196aaf.png\" \/><\/p>\n<p>\u652f\u6301\u62d6\u62fd\u4e0a\u4f20\u3001\u6279\u91cf\u8bc6\u522b\u3001\u7ed3\u679c\u590d\u5236\u7b49\u529f\u80fd&#xff0c;\u9002\u5408\u8fd0\u8425\u4eba\u5458\u65e5\u5e38\u4f7f\u7528\u3002<\/p>\n<h5>REST API&#xff1a;\u4fbf\u4e8e\u7cfb\u7edf\u96c6\u6210<\/h5>\n<p>POST \/api\/v1\/ocr<br \/>\nContent-Type: multipart\/form-data<\/p>\n<p>Form Data:<br \/>\n  file: &lt;image.jpg&gt;<\/p>\n<p>\u54cd\u5e94\u793a\u4f8b&#xff1a;<\/p>\n<p>{<br \/>\n  &#034;success&#034;: true,<br \/>\n  &#034;data&#034;: {<br \/>\n    &#034;text&#034;: &#034;\u5c0a\u656c\u7684\u5ba2\u6237&#xff1a;\\\\n\u60a8\u672c\u6b21\u6d88\u8d39\u91d1\u989d\u4e3a\u00a5298.00\u5143&#8230;&#034;,<br \/>\n    &#034;lines&#034;: [<br \/>\n      {&#034;text&#034;: &#034;\u5c0a\u656c\u7684\u5ba2\u6237&#xff1a;&#034;, &#034;confidence&#034;: 0.98},<br \/>\n      {&#034;text&#034;: &#034;\u60a8\u672c\u6b21\u6d88\u8d39\u91d1\u989d\u4e3a\u00a5298.00\u5143&#8230;&#034;, &#034;confidence&#034;: 0.95}<br \/>\n    ],<br \/>\n    &#034;processing_time_ms&#034;: 942<br \/>\n  }<br \/>\n}<\/p>\n<p>\u63a5\u53e3\u517c\u5bb9Postman\u3001Python requests\u3001Java HttpClient\u7b49\u4e3b\u6d41\u8c03\u7528\u65b9\u5f0f&#xff0c;\u6613\u4e8e\u5d4c\u5165ERP\u3001RPA\u3001\u5ba1\u6279\u6d41\u7b49\u7cfb\u7edf\u3002<\/p>\n<hr \/>\n<h3>&#x1f6e0;\ufe0f \u5feb\u901f\u90e8\u7f72\u6307\u5357&#xff1a;\u4e09\u6b65\u4e0a\u7ebfOCR\u670d\u52a1<\/h3>\n<h4>\u6b65\u9aa41&#xff1a;\u83b7\u53d6\u5e76\u8fd0\u884cDocker\u955c\u50cf<\/h4>\n<p># \u62c9\u53d6\u955c\u50cf&#xff08;\u5047\u8bbe\u5df2\u53d1\u5e03\u81f3\u79c1\u6709\u4ed3\u5e93&#xff09;<br \/>\ndocker pull your-registry\/ocr-crnn-cpu:latest<\/p>\n<p># \u542f\u52a8\u5bb9\u5668&#xff0c;\u6620\u5c04\u7aef\u53e38080<br \/>\ndocker run -d -p 8080:8080 &#8211;name ocr-service ocr-crnn-cpu:latest<\/p>\n<h4>\u6b65\u9aa42&#xff1a;\u8bbf\u95eeWebUI\u8fdb\u884c\u6d4b\u8bd5<\/h4>\n<p>\u542f\u52a8\u6210\u529f\u540e&#xff0c;\u70b9\u51fb\u5e73\u53f0\u63d0\u4f9b\u7684HTTP\u6309\u94ae\u6216\u76f4\u63a5\u8bbf\u95ee&#xff1a;<\/p>\n<p>http:\/\/&lt;your-server-ip&gt;:8080<\/p>\n<p>\u8fdb\u5165\u53ef\u89c6\u5316\u754c\u9762&#xff0c;\u4e0a\u4f20\u4efb\u610f\u56fe\u7247\u5373\u53ef\u5f00\u59cb\u8bc6\u522b\u3002<\/p>\n<h4>\u6b65\u9aa43&#xff1a;\u96c6\u6210API\u5230\u4e1a\u52a1\u7cfb\u7edf<\/h4>\n<p>\u4f7f\u7528Python\u8c03\u7528\u793a\u4f8b&#xff1a;<\/p>\n<p>import requests<\/p>\n<p>url &#061; &#034;http:\/\/localhost:8080\/api\/v1\/ocr&#034;<br \/>\nfiles &#061; {&#034;file&#034;: open(&#034;invoice.jpg&#034;, &#034;rb&#034;)}<\/p>\n<p>response &#061; requests.post(url, files&#061;files)<br \/>\nresult &#061; response.json()<\/p>\n<p>if result[&#034;success&#034;]:<br \/>\n    print(&#034;\u8bc6\u522b\u7ed3\u679c&#xff1a;&#034;, result[&#034;data&#034;][&#034;text&#034;])<br \/>\nelse:<br \/>\n    print(&#034;\u8bc6\u522b\u5931\u8d25&#xff1a;&#034;, result[&#034;msg&#034;])<\/p>\n<hr \/>\n<h3>&#x1f4a1; \u6210\u672c\u5bf9\u6bd4\u5206\u6790&#xff1a;\u4e3a\u4ec0\u4e48\u8bf4\u8fd9\u662f\u201c\u964d\u672c\u5229\u5668\u201d&#xff1f;<\/h3>\n<p>| \u65b9\u6848\u7c7b\u578b | \u5355\u6b21\u8bc6\u522b\u6210\u672c&#xff08;\u5143&#xff09; | \u5e74\u6210\u672c&#xff08;10\u4e07\u6b21\/\u5e74&#xff09; | \u662f\u5426\u9700\u8981GPU | \u53ef\u63a7\u6027 |<br \/>\n|&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|&#8212;&#8212;&#8212;&#8212;&#8211;|&#8212;&#8212;&#8211;|<br \/>\n| \u5546\u4e1aOCR API&#xff08;\u767e\u5ea6\/\u963f\u91cc\u4e91&#xff09; | 0.01 ~ 0.03 | 1,000 ~ 3,000\u5143 | \u5426 | \u4f4e&#xff08;\u9ed1\u76d2&#xff09; |<br \/>\n| \u81ea\u5efaGPU\u670d\u52a1\u5668&#xff08;T4\u00d71&#xff09; | 0.002&#xff08;\u6298\u65e7&#043;\u7535\u8d39&#xff09; | ~200\u5143 | \u662f | \u9ad8 |<br \/>\n| \u672c\u65b9\u6848&#xff08;CPU\u670d\u52a1\u5668&#xff09; | 0.0005&#xff08;\u4ec5\u7535\u8d39&#xff09; | ~50\u5143 | \u5426 | \u9ad8 |<\/p>\n<p>&#x1f4ac; \u6ce8&#xff1a;\u81ea\u5efaCPU\u670d\u52a1\u5668\u63094\u68388G\u4e91\u4e3b\u673a\u6708\u79df150\u5143\u8ba1&#xff0c;\u5bff\u547d3\u5e74\u644a\u9500&#xff0c;\u529f\u8017\u7ea680W<\/p>\n<p>\u7ed3\u8bba&#xff1a;<br \/>\n&#8211; \u76f8\u6bd4\u5546\u4e1aAPI&#xff0c;\u5e74\u8282\u7701\u8d8595%\u8d39\u7528<br \/>\n&#8211; \u76f8\u6bd4GPU\u65b9\u6848&#xff0c;\u786c\u4ef6\u6295\u5165\u964d\u4f4e90%<br \/>\n&#8211; \u6570\u636e\u4e0d\u51fa\u5185\u7f51&#xff0c;\u7b26\u5408\u91d1\u878d\u3001\u653f\u52a1\u7b49\u654f\u611f\u884c\u4e1a\u5408\u89c4\u8981\u6c42<\/p>\n<hr \/>\n<h3>&#x1f9e9; \u9002\u7528\u573a\u666f\u63a8\u8350<\/h3>\n<p>| \u573a\u666f | \u662f\u5426\u63a8\u8350 | \u8bf4\u660e |<br \/>\n|&#8212;&#8212;|&#8212;&#8212;&#8212;-|&#8212;&#8212;|<br \/>\n| \u53d1\u7968\/\u5355\u636e\u8bc6\u522b | \u2705 \u5f3a\u70c8\u63a8\u8350 | \u652f\u6301\u589e\u503c\u7a0e\u53d1\u7968\u3001\u7535\u5b50\u51ed\u8bc1\u7b49\u5e38\u89c1\u683c\u5f0f |<br \/>\n| \u8eab\u4efd\u8bc1\/\u94f6\u884c\u5361\u8bc6\u522b | \u2705 \u63a8\u8350 | \u9700\u914d\u5408\u6a21\u677f\u5b9a\u4f4d\u63d0\u5347\u7cbe\u5ea6 |<br \/>\n| \u624b\u5199\u7b14\u8bb0\u6570\u5b57\u5316 | \u2705 \u63a8\u8350 | \u5bf9\u5de5\u6574\u624b\u5199\u4f53\u8bc6\u522b\u826f\u597d&#xff0c;\u8349\u4e66\u4ecd\u6709\u9650\u5236 |<br \/>\n| \u5b9e\u65f6\u89c6\u9891\u6d41OCR | \u274c \u4e0d\u63a8\u8350 | CPU\u541e\u5410\u6709\u9650&#xff0c;\u5efa\u8bae\u7528\u4e13\u7528\u786c\u4ef6 |<br \/>\n| \u591a\u8bed\u8a00\u6df7\u5408\u8bc6\u522b | \u26a0\ufe0f \u6709\u9650\u652f\u6301 | \u4e3b\u8981\u4f18\u5316\u4e2d\u6587&#043;\u82f1\u6587&#xff0c;\u5176\u4ed6\u8bed\u8a00\u672a\u5145\u5206\u8bad\u7ec3 |<\/p>\n<hr \/>\n<h3>&#x1f3af; \u6700\u4f73\u5b9e\u8df5\u5efa\u8bae<\/h3>\n<li>\u5408\u7406\u62c6\u5206\u5927\u56fe&#xff1a;\u5355\u5f20\u56fe\u7247\u5efa\u8bae\u4e0d\u8d85\u8fc71024\u00d7768\u50cf\u7d20&#xff0c;\u907f\u514dOOM<\/li>\n<li>\u524d\u7f6e\u56fe\u50cf\u88c1\u526a&#xff1a;\u805a\u7126\u6587\u672c\u533a\u57df&#xff0c;\u51cf\u5c11\u65e0\u5173\u80cc\u666f\u5e72\u6270<\/li>\n<li>\u5b9a\u671f\u66f4\u65b0\u8bcd\u5178&#xff1a;\u53ef\u5728\u540e\u5904\u7406\u9636\u6bb5\u52a0\u5165\u9886\u57df\u5173\u952e\u8bcd\u7ea0\u6b63&#xff08;\u5982\u836f\u54c1\u540d\u3001\u5546\u54c1\u7f16\u7801&#xff09;<\/li>\n<li>\u76d1\u63a7\u54cd\u5e94\u5ef6\u8fdf&#xff1a;\u5f53QPS &gt; 5\u65f6\u8003\u8651\u6a2a\u5411\u6269\u5c55\u591a\u4e2a\u5b9e\u4f8b<\/li>\n<li>\u542f\u7528\u65e5\u5fd7\u5ba1\u8ba1&#xff1a;\u8bb0\u5f55\u8c03\u7528\u6765\u6e90\u4e0e\u8bc6\u522b\u5185\u5bb9&#xff0c;\u4fbf\u4e8e\u8ffd\u6eaf\u4e0e\u4f18\u5316<\/li>\n<hr \/>\n<h3>&#x1f3c1; \u603b\u7ed3&#xff1a;\u8ba9AI\u771f\u6b63\u201c\u63a5\u5730\u6c14\u201d<\/h3>\n<p>OCR\u4f5c\u4e3a\u6700\u57fa\u7840\u7684AI\u80fd\u529b\u4e4b\u4e00&#xff0c;\u4e0d\u5e94\u88ab\u9ad8\u6602\u7684\u6210\u672c\u6321\u5728\u95e8\u5916\u3002\u672c\u6587\u4ecb\u7ecd\u7684\u5f00\u6e90CRNN OCR\u955c\u50cf &#043; CPU\u670d\u52a1\u5668\u7ec4\u5408&#xff0c;\u8bc1\u660e\u4e86\u5373\u4f7f\u6ca1\u6709GPU\u3001\u4e0d\u4f9d\u8d56\u5546\u4e1aAPI&#xff0c;\u4e5f\u80fd\u6784\u5efa\u4e00\u4e2a\u9ad8\u7cbe\u5ea6\u3001\u4f4e\u5ef6\u8fdf\u3001\u4f4e\u6210\u672c\u7684\u6587\u5b57\u8bc6\u522b\u7cfb\u7edf\u3002<\/p>\n<p>\u5b83\u4e0d\u4ec5\u9002\u7528\u4e8e\u4e2d\u5c0f\u4f01\u4e1a\u964d\u672c\u589e\u6548&#xff0c;\u4e5f\u4e3a\u8fb9\u7f18\u8bbe\u5907\u3001\u79bb\u7ebf\u73af\u5883\u3001\u6570\u636e\u654f\u611f\u573a\u666f\u63d0\u4f9b\u4e86\u53ef\u9760\u7684\u66ff\u4ee3\u65b9\u6848\u3002\u672a\u6765\u6211\u4eec\u5c06\u6301\u7eed\u4f18\u5316\u6a21\u578b\u538b\u7f29\u3001\u91cf\u5316\u63a8\u7406\u4e0e\u591a\u8bed\u8a00\u652f\u6301&#xff0c;\u8fdb\u4e00\u6b65\u91ca\u653eCPU\u7aefAI\u7684\u6f5c\u529b\u3002<\/p>\n<p>&#x1f680; \u884c\u52a8\u5efa\u8bae&#xff1a;<br \/>\n&#8211; \u7acb\u5373\u5c1d\u8bd5\u90e8\u7f72\u8be5\u955c\u50cf&#xff0c;\u7528\u771f\u5b9e\u4e1a\u52a1\u6570\u636e\u6d4b\u8bd5\u6548\u679c<br \/>\n&#8211; \u5c06OCR\u80fd\u529b\u5d4c\u5165\u73b0\u6709\u5de5\u4f5c\u6d41&#xff0c;\u63a2\u7d22\u81ea\u52a8\u5316\u53ef\u80fd\u6027<br \/>\n&#8211; \u7ed3\u5408NLP\u6280\u672f&#xff0c;\u5b9e\u73b0\u4ece\u201c\u770b\u5f97\u89c1\u201d\u5230\u201c\u61c2\u610f\u601d\u201d\u7684\u8dc3\u8fc1<\/p>\n<p>AI\u964d\u672c\u4e0d\u662f\u53e3\u53f7&#xff0c;\u800c\u662f\u6bcf\u4e00\u4e2a\u5de5\u7a0b\u5e08\u90fd\u80fd\u63a8\u52a8\u7684\u73b0\u5b9e\u53d8\u9769\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>AI\u964d\u672c\u65b0\u65b9\u5411&#xff1a;\u5f00\u6e90OCR\u955c\u50cfCPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c<br \/>\n&#x1f4d6; \u9879\u76ee\u7b80\u4ecb<br \/>\n\u5728\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u8fc7\u7a0b\u4e2d&#xff0c;OCR&#xff08;\u5149\u5b66\u5b57\u7b26\u8bc6\u522b&#xff09;\u6280\u672f\u5df2\u6210\u4e3a\u6587\u6863\u81ea\u52a8\u5316\u3001\u7968\u636e\u5904\u7406\u3001\u4fe1\u606f\u63d0\u53d6\u7b49\u573a\u666f\u7684\u6838\u5fc3\u652f\u6491\u3002\u4f20\u7edfOCR\u65b9\u6848\u591a\u4f9d\u8d56\u9ad8\u6210\u672c\u7684\u5546\u4e1aAPI\u6216GPU\u63a8\u7406\u670d\u52a1&#xff0c;\u5bfc\u81f4\u90e8\u7f72\u95e8\u69db\u9ad8\u3001\u8fd0\u7ef4\u590d\u6742\u3002\u968f\u7740\u5f00\u6e90\u6a21\u578b\u4e0e\u8f7b\u91cf\u5316\u6280\u672f\u7684\u53d1\u5c55&#xff0c;\u57fa\u4e8eCPU\u670d\u52a1\u5668  \u5f00\u6e90OCR\u955c\u50cf\u7684\u4f4e\u6210\u672cAI\u843d\u5730\u6a21\u5f0f\u6b63\u6210\u4e3a\u65b0\u8d8b\u52bf\u3002<br \/>\n\u672c\u6587\u4ecb\u7ecd\u4e00\u6b3e\u57fa\u4e8e CRNN<\/p>\n","protected":false},"author":2,"featured_media":62093,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"topic":[],"class_list":["post-62094","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/62094.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"AI\u964d\u672c\u65b0\u65b9\u5411&#xff1a;\u5f00\u6e90OCR\u955c\u50cfCPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c &#x1f4d6; \u9879\u76ee\u7b80\u4ecb \u5728\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u8fc7\u7a0b\u4e2d&#xff0c;OCR&#xff08;\u5149\u5b66\u5b57\u7b26\u8bc6\u522b&#xff09;\u6280\u672f\u5df2\u6210\u4e3a\u6587\u6863\u81ea\u52a8\u5316\u3001\u7968\u636e\u5904\u7406\u3001\u4fe1\u606f\u63d0\u53d6\u7b49\u573a\u666f\u7684\u6838\u5fc3\u652f\u6491\u3002\u4f20\u7edfOCR\u65b9\u6848\u591a\u4f9d\u8d56\u9ad8\u6210\u672c\u7684\u5546\u4e1aAPI\u6216GPU\u63a8\u7406\u670d\u52a1&#xff0c;\u5bfc\u81f4\u90e8\u7f72\u95e8\u69db\u9ad8\u3001\u8fd0\u7ef4\u590d\u6742\u3002\u968f\u7740\u5f00\u6e90\u6a21\u578b\u4e0e\u8f7b\u91cf\u5316\u6280\u672f\u7684\u53d1\u5c55&#xff0c;\u57fa\u4e8eCPU\u670d\u52a1\u5668 \u5f00\u6e90OCR\u955c\u50cf\u7684\u4f4e\u6210\u672cAI\u843d\u5730\u6a21\u5f0f\u6b63\u6210\u4e3a\u65b0\u8d8b\u52bf\u3002 \u672c\u6587\u4ecb\u7ecd\u4e00\u6b3e\u57fa\u4e8e CRNN\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/62094.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-01-19T01:34:26+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119013425-696d8a2196aaf.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62094.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/62094.html\",\"name\":\"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-01-19T01:34:26+00:00\",\"dateModified\":\"2026-01-19T01:34:26+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/62094.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/62094.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/62094.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/62094.html","og_locale":"zh_CN","og_type":"article","og_title":"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"AI\u964d\u672c\u65b0\u65b9\u5411&#xff1a;\u5f00\u6e90OCR\u955c\u50cfCPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c &#x1f4d6; \u9879\u76ee\u7b80\u4ecb \u5728\u4f01\u4e1a\u6570\u5b57\u5316\u8f6c\u578b\u8fc7\u7a0b\u4e2d&#xff0c;OCR&#xff08;\u5149\u5b66\u5b57\u7b26\u8bc6\u522b&#xff09;\u6280\u672f\u5df2\u6210\u4e3a\u6587\u6863\u81ea\u52a8\u5316\u3001\u7968\u636e\u5904\u7406\u3001\u4fe1\u606f\u63d0\u53d6\u7b49\u573a\u666f\u7684\u6838\u5fc3\u652f\u6491\u3002\u4f20\u7edfOCR\u65b9\u6848\u591a\u4f9d\u8d56\u9ad8\u6210\u672c\u7684\u5546\u4e1aAPI\u6216GPU\u63a8\u7406\u670d\u52a1&#xff0c;\u5bfc\u81f4\u90e8\u7f72\u95e8\u69db\u9ad8\u3001\u8fd0\u7ef4\u590d\u6742\u3002\u968f\u7740\u5f00\u6e90\u6a21\u578b\u4e0e\u8f7b\u91cf\u5316\u6280\u672f\u7684\u53d1\u5c55&#xff0c;\u57fa\u4e8eCPU\u670d\u52a1\u5668 \u5f00\u6e90OCR\u955c\u50cf\u7684\u4f4e\u6210\u672cAI\u843d\u5730\u6a21\u5f0f\u6b63\u6210\u4e3a\u65b0\u8d8b\u52bf\u3002 \u672c\u6587\u4ecb\u7ecd\u4e00\u6b3e\u57fa\u4e8e CRNN","og_url":"https:\/\/www.wsisp.com\/helps\/62094.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-01-19T01:34:26+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/01\/20260119013425-696d8a2196aaf.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"4 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/62094.html","url":"https:\/\/www.wsisp.com\/helps\/62094.html","name":"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-01-19T01:34:26+00:00","dateModified":"2026-01-19T01:34:26+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/62094.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/62094.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/62094.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"AI\u964d\u672c\u65b0\u65b9\u5411\uff1a\u5f00\u6e90OCR\u955c\u50cf+CPU\u670d\u52a1\u5668\u964d\u4f4e\u6210\u672c"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62094","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=62094"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/62094\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/62093"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=62094"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=62094"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=62094"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=62094"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}