manuscript-scan-orient-crop
安装方式
先用 Prompt 核对来源与依赖。也可下载安装包。
用 AI 助手安装
复制提示词,让助手先核对固定版本和依赖。
查看 Prompt收起 Prompt
先检查当前 Agent 是否已安装 SkillPI Skill Finder。如果尚未安装,请按官方仓库的说明安装并启用:https://github.com/Findskills/skillpi。然后使用 Skill Finder 打开此 SkillPI 详情页并定位 "manuscript-scan-orient-crop":https://skillpi.com/zh/skills/deepskill-4fbb658a642cc368f6895d4ce9c9535a4a2336a06256cd9845d6bc2c4a8dd11a。安装前核对上游来源和版本:https://skillhub.cn/skills/user_38a5ce71/zyjtif。来源不一致时停止并说明差异。核对通过后,用 Skill Finder 安装目标 Skill,并报告安装路径和来源版本。
来源与配置
skillhub.cn
配置方式待核实
请查看原始来源中的适用工具、依赖和权限要求。
安装实测待补充
针对包含交替正立和倒置 JPG 扫描页的稿件或书籍扫描文件夹,批量执行页面方向校正与页面区域裁剪并保留原始文件。可用样页(如“00007”)定义正确上下方向,裁去黑色扫描床背景或外来物,按编号子文件夹处理并生成处理后输出文件夹、日志及用于视觉质检的缩略图联系表。
介绍来源: third_party · user_38a5ce71 · 1.0.0 参考来源
SkillPi 解读
- 能完成的任务
- 翻译待完成,请参阅来源文档。
- 实测状态
- 未测试
文件浏览
Frontmatter
name: manuscript-scan-orient-crop
description: Process manuscript/book scan image folders containing JPG scans that alternate upright and upside-down, need page-orientation correction, and need cropping to the book/page surface while preserving originals. Use when asked to rotate inverted scan pages upright, use a sample page such as "00007" to define correct top/bottom orientation, crop black scan-bed background or foreign objects, batch-process numbered subfolders, create processed output folders, logs, and visual QA contact sheets.Manuscript Scan Orient Crop
Use this skill for batch cleanup of manuscript/book scan folders like numbered subfolders 1 to 22 containing Image_00001.jpg style scans.
Workflow
- Preserve originals. Never overwrite the source folder. Write processed files to a sibling folder, usually
<source>_处理后or<source>_processed. - Inspect before processing. Count folders/files, group by extension, and create a small contact sheet comparing sample originals and processed outputs. Use
00007-style user-provided examples as the ground truth for correct orientation. - Determine rotation policy.
- Default for this collection style: odd pages remain as scanned; even pages rotate 180 degrees.
- If the user says a folder is wrong, re-check that folder only. Do not assume all folders share the same exception.
- If the user gives a sample such as "
00007is correct; top blank margin is larger than bottom blank margin", use that visual rule to validate adjacent pages before applying changes.
- Crop after orientation. Crop to the book/page/manuscript surface, not the entire scan bed. Remove black background, labels, paper scraps, and obvious foreign objects where possible. Keep a small safety margin so page edges are not cut off.
- Validate. Confirm source and output file counts match for every subfolder. Generate a contact sheet for visual QA. Run an abnormal-size scan and inspect outliers before declaring done.
- Iterate narrowly. If a folder is reported wrong, reprocess that folder only and update the log for those files.
Reusable Script
Use scripts/process_manuscript_scans.py for the batch operation. It requires Python packages:
python -m pip install pillow opencv-python numpy
Typical run from the scan root:
python C:\Users\64533\.codex\skills\manuscript-scan-orient-crop\scripts\process_manuscript_scans.py --root . --rotate-policy even
Useful options:
--root <path>: source folder containing numbered subfolders.--output <path>: output folder. Default is sibling<root>_处理后.--folders 1 2 3: process only selected subfolders.--rotate-policy even|none: rotate even-numbered files 180 degrees, or rotate none.--preview-only: create contact sheets without writing processed output.--contact-sheet: write a visual QA contact sheet after processing.
For a folder-specific correction like “only folder 1, make it like 00007”, run only that folder with the chosen policy:
python C:\Users\64533\.codex\skills\manuscript-scan-orient-crop\scripts\process_manuscript_scans.py --root . --folders 1 --rotate-policy even --contact-sheet
QA Checklist
After processing, report:
- Output folder path.
- Total processed JPG count.
- Per-folder source/output count mismatch count.
- Error log status, if any.
- Contact sheet path.
- Any files manually inspected or left unchanged because they were already correct.
Keep temporary contact sheets only if they help the user verify the result; remove noisy test artifacts.
当前收录版本
1.0.0
质量评测
满分100 · 来自 SkillPi LAB 实验室的评测报告。
亮点
- 提供完整的手稿扫描图像处理闭环流程,涵盖方向校正、裁剪、批量处理与质量验证
亮点
- 触发描述清晰完整,覆盖多种使用变体,边界明确
亮点
- 结构清晰,步骤划分明确,包含端到端示例与完整 frontmatter
亮点
- 工具来源明确,参数正确,覆盖主要异常处理,不可逆操作有确认机制
取前四项原始分值的算术平均,四舍五入取整。可通过收录报告核对各项评分与说明,运行记录需单独查证。
正文静态检测
100 / 100 · skillpi-20261123-no-r3-v1
正文未命中当前规则。
分数仅反映正文中的规则命中,供使用前参考。附件与运行行为不在此评分范围内。
权限与使用前检查
根据当前主文档自动整理,命中内容可能是示例或防护说明;不是实际权限声明,也未覆盖附件、外部依赖或运行行为。
-
安装或获取外部依赖
使用官方来源并锁定版本,在隔离环境检查安装脚本。当前文档检查不覆盖后续下载的代码。
主文档提及 · 第 27 行
安全评级与访问范围
safe · 静态证据核验,不代表运行安全保证。
使用前请由宿主核对并授权实际文件读写、外部服务和联网目的地;本站的核验不会授予任何运行权限。
用户讨论
还没有已核实的点评。