Repository navigation
test: 为照片用纸增加首份 PDF 区域保护评测 - #92
Merged
Merged
Conversation
背景:自动识别的横线可能不在用户指定的栏,预览与 PDF 一致也无法验证位置。 解决手段:生成合成纸并在同种子下对比直接交付与区域预检,记录首份成品、越界笔迹和保留栏。 收益:用可复跑的实际文件区分正确交付、错误交付和安全停止,不影响生产行为。
Owner
Author
第 1 轮:单看基线会漏掉什么先用 3 张不同的合成纸选择对齐检查,再在 6 张独立的合成纸上冻结规则试跑。遇到一张纸,字的基线平均只偏 0.316 px,但实际有 77 px 笔迹越过允许区。后来在当前版本的一张新纸上复现:0.269 px 的基线偏差,仍有 118 px 越界。 所以下一轮不把「横线贴合」当作充分条件。把基线误差、笔迹范围、保留印字拆成三项,另外核对首份 PDF 确实是那一版。已有照片验收指引仍保留,实验脚本不重复增加产品提示。 |
Owner
Author
第 2 轮:当前版本的六张留出纸复验
|
Reviewer's GuideDocumentation说明评测方法、复跑步骤及实测结果,并记录样例边界与验证条件。
Tests新增合成照片用纸的 MCP 对照实验,比较直接导出与区域预检,并检查首份 PDF、逐行可见墨迹、区域越界及受保护印字。
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
背景:照片评测仅检查位置与保护区域,布局正常的空白输出或缺行输出也可能达标。 解决手段:按四个目标行统计成图与底纸的可见差分,覆盖空白、逐行缺失与微弱噪声,并固定复跑依赖、更新结果入口。 收益:首份交付需要在每个目标行留下可见笔迹,评分条件和逐例结果都可独立复核。
SXP-Simon
marked this pull request as ready for review
December 1, 2026 20:44
|
Sorry @SXP-Simon, you've used your own review budget of 250,000 diff characters for the last 7 days. You can request another review in 5 days and 12 hours by commenting |
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.
为什么值得测
识别到横线不等于写进了指定的栏。笔迹也可能太大,即使字的基线贴着横线,仍盖到原有印字。这个脚本给出六张可重复生成的合成纸,用第一份实际 PDF 检查这些问题。
两条路怎么比
这只是实验脚本和说明,不改变用户默认流程。不假设真实 Agent 已能自己看图找到参考线。
实测
同一份输入和种子,在
bd144204和匹配的 Worker 上跑真实 MCP。首份合格 PDF 1/6 → 5/6;发出的不合格 PDF 5 → 0;调用 24 → 38。最后一张有冲突,停止,不计作正确交付。11 份实际 PDF 与各自的预览像素一致,正确性另由位置和保护区条件判断。复跑说明和数据。所有公开样例由脚本生成,不包含真实照片。没有合并或开启 CI。
Summary by Sourcery
为照片用纸增加可复现的首份 PDF 区域保护评测。
Enhancements:
Documentation:
Tests: