技巧精选

开发者用三个 MiniCPM 模型搭本地记账智能体,自校验 OCR 识别结果

精选理由

这个项目把 OCR 做成了"读—打分—重读"的闭环,识别错了自己能发现并纠正,比单次 OCR 输出靠谱不少。单张 RTX 3060 就能跑,数据不上传,做本地财务或票据处理的开发者可以直接拿去改。

OpenBMB 社区开发者 DogukanUrker 构建了一个完全本地运行的记账智能体,组合三个 MiniCPM 模型实现收据识别的自我校验:MiniCPM-V 4.7 负责决定查看和验证哪些区域,MiniCPM-OCR 1.0 逐区域读取文字,MiniCPM-OCR Jev 对每次读取结果打分。

正文

实际测试中,智能体曾把收据上的"COCONUT JELLY"误读为"COCONUT SLEET",Jev 给出 0.29 的低分,触发智能体放大重读并成功纠正。除文字识别外,智能体还会核算金额加总,把不确定字段标记为需人工复核。在降质处理的 CORD-v2 收据测试集上,所有未被标记复核的 60 个总额全部正确。

整套方案在单张 RTX 3060 上运行,显存占用 10.2GB,财务文档全程不出本机。代码和模型已开源在 GitHub 与 Hugging Face,对担心数据外泄、又没有高端显卡的小微企业记账场景是一个可落地的参考实现。

原文 · OpenBMB

You snap a photo of a receipt and ask AI to update your ledger. But what if it misreads an item, misses a digit, or gets the total wrong? 🧾

Community developer @DogukanUrker built a local bookkeeping agent that checks its own work using three MiniCPM models.

🧠 MiniCPM-V 4.7 decides where to look and what to verify. 👀 MiniCPM-OCR 1.0 reads individual receipt regions. 🔍 MiniCPM-OCR Jev scores each reading and helps identify better candidates.

In one real test, the agent misread "COCONUT JELLY" as "COCONUT SLEET." Jev gave it a score of just 0.29, prompting the agent to zoom in and read again — successfully correcting the error.

The agent also checks the math and flags uncertain fields for human review. On degraded CORD-v2 receipts, all 60 totals accepted without a review flag were correct.

And your financial documents? They never need to leave your device. All three models run locally on a single RTX 3060, using just 10.2GB of VRAM.🤗

💻 GitHub: http://github.com/OpenBMB/MiniCPM-V http://github.com/OpenBMB/MiniCPM-OCR

🤗 Hugging Face: http://huggingface.co/openbmb/MiniCPM-V-4.7-35B-A3B http://huggingface.co/openbmb/MiniCPM-OCR-1.0 http://huggingface.co/openbmb/MiniCPM-OCR-Jev

产业坐标与信源核验

本条情报归属 AITOP「技巧」核心栏目,重点聚焦中国 AI 产业与国产大模型生态。在跨区域产业观察坐标中,该动态直接关联「AI 开发者工具链、Coding Agent 与工程化实践」研究主线,反映出当前技术演进与商业落地的最新风向。涉及核心实体与技术议题包括:MiniCPM、OpenBMB、OCR、智能体,读者可通过下方标签进入对应专题页查阅历史脉络与关联对比。

信源核验说明:本文原始线索采编自「OpenBMB」(@OpenBMB),经 AITOP 多维评分管线结构化提炼。