Repository navigation
写下图片改由 DeepSeek 读的比较和结论 - #104
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
关联
Closes #102。改抓取节点另开任务,由我们来做。
改了什么
用 #74 的 9 张通知图片,比较本地的 RapidOCR 和让 DeepSeek(
deepseek-flash)直接读图。结论是换成 DeepSeek 切块读:认对的多 17 项,没有乱码和漏行。但同一张图每次读出的文字可能不同,所以抓取节点要存下读过的文件,文件没变就用上次的文字。怎么验证的
怎么比的
detail为high;提示词要求一字不差地照抄,不改字、不纠错、不补全,看不清的写 □结果
按官方的高峰价,切块送每张约 0.0032 美元,整张送约 0.0017 美元。RapidOCR 在限成 4 核的容器里每张约 18 秒(#74 实测)。整个实验调用 21 次,输入 8.8 万 token(2.2 万命中缓存),输出 2.4 万 token,按高峰价约 0.049 美元;实际是在低谷时段跑的,约一半。
认错的项
「乱码」是一眼能看出不对的;「像对的」是看着像真的值,最难发现;「拆开」「漏行」是原文被拆到两行或整行没了。
RapidOCR,19 项:
202/.../:).,go2)9月14日、9月17日、9月18日、9月21日、9月22日、9点9月14和日https://sise.uestc.edu.cn/xwtz/tzgg/ygk.htmhtps://sise.uestc.edu.cn/xwtz/tzgg/ygk.htmhttps://yz.chsi.com.cn/http://yz.chsi.com.cn/https://ssyjsbm.xmu.edu.cn/https://ssyjsbm.xmu.edu.cnhttps://ssyjsbm.xmu.edu.cn/、http://yz.chsi.com.cn/tm2:https://yzbm.uestc.edu.cn/logonhttps://yzbm.uestc.edu.cn/1ogonjsj_yjsjw@bupt.edu.cnjsj-yjsjw@bupt.edu.cnDeepSeek 整张送,18 项,全是像对的:
https://yjspt.xidian.edu.cn/gsapp/sys/wdyjsbm/entrance.dohttps://yjspt.xidian.edu.cn/gssapp/sys/wdyjsbm/entrance.dohttps://cs.xidian.edu.cn/yjsjy/dsjies.htmhttps://cs.xidian.edu.cn/szdw/jsml.htm,换成了别的页面2025-08-082025-06-08csejisuanji@126.comcsegsuamji@126.comhttps://yjsjy.uestc.edu.cn/gmis/jcsjgl/dsfc/index/#09,两处https://sise.uestc.edu.cn/gmis/jsgj/dsfc/index#/09和https://yjsy.uestc.edu.cn/gmis/jsgj/dsfc/index#/09https://yzbm.uestc.edu.cn/logon,两处https://yzbm.uestc.edu.cn/login9月17日8月17日rjss@uestc.edu.cnrjgczs@uestc.edu.cn,同一页上的另一个邮箱https://ssyjsbm.xmu.edu.cn/https://ssy.islw.xmu.edu.cn/http://www.scse.uestc.edu.cn/tzgg/ygk.htmhttp://www.sise.uestc.edu.cn/tzgg/yk.htm17:00两处、12:00、9:30、9:00DeepSeek 切块送,2 项,都是像对的:
https://cs.xidian.edu.cn/yjsjy/dsjies.htmhttps://cs.xidian.edu.cn/yjsjy/dsjjies.htmhttps://ssyjsbm.xmu.edu.cn/https://ssy.jsbm.xmu.edu.cn/切块再读一次:图片 2 和第一次一字不差,还是错在
dsjjies;图片 8 只是日程表里两行的换行不同,113 项里它的 24 项照样全对;图片 5 第一次读对的两处https://yzbm.uestc.edu.cn/logon,这次读成了https://yzb.uestc.edu.cn/logon。这三张再读一次输入有 97% 命中缓存,每张约 0.0017 美元。实验代码、图片和识别结果都没有提交。
影响
只改文档。抓取节点要跟着改:删掉 RapidOCR 和 ONNX Runtime,图片改由 DeepSeek 读,存下读过的文件,部署时容器多挂一个卷;在另开的任务里做。接口、MCP 工具、表结构都不变。