long-screenshot-reader

Long Screenshot Reader: When an image is too long or text is too small, automatically slice the long image into multiple segments and enlarge/recognize each segment in turn, enabling region-by-region magnified reading of long screenshots or hard-to-read text.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "long-screenshot-reader" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-649287d8120719781b79577d02857425116dc35b7d864e990d230bc10df9fa18. Verify the upstream source and version against https://skillhub.cn/skills/user_fdb72718/long-screenshot-reader before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Long Screenshot Reader: When an image is too long or text is too small, automatically slice the long image into multiple segments and enlarge/recognize each segment in turn, enabling region-by-region magnified reading of long screenshots or hard-to-read text.

0 Downloads

Introduction source: third_party · user_fdb72718 · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Inputs and outputs
Translation pending; see source documentation.
Software, accounts and paid services
Translation pending; see source documentation.
Limits and differences
Translation pending; see source documentation.
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: long-screenshot-reader
description: "长图阅读器 - 当图片太长导致文字看不清时,自动将长图切片成多个片段,逐段放大识别,相当于放大看每个区域。触发词:长图、截图文字看不清、识别长截图、放大看图、切片阅读。当用户发送截图或图片并反映看不清、文字太小、太长时使用此技能。"
version: "1.0.0"
author: WorkBuddy AI
agent_created: true

长图阅读器 (Long Screenshot Reader)

功能描述

将长截图自动切片成多个片段(每屏一张),逐段识别文字内容,解决长图文字太小看不清的问题。

触发条件

当用户提到以下情况时自动触发:

  • "截图太长看不清"
  • "长图文字识别"
  • "放大看图"
  • "切片阅读"
  • 用户发送图片后说"看不清""文字太小"

使用流程

1. 接收图片

当用户发送图片时,获取图片的本地路径。

2. 切片处理

运行切片脚本:

python "$SKILL_DIR/scripts/slice_and_read.py" "<图片路径>"

可选参数:

  • [切片高度] - 每个切片的高度(像素),默认 1080
  • [重叠像素] - 切片之间的重叠区域,避免文字被切断,默认 100

示例:

# 使用默认参数(1080px高度,100px重叠)
python "$SKILL_DIR/scripts/slice_and_read.py" "D:/screenshots/long_pic.png"

# 自定义参数(1440px高度,200px重叠)
python "$SKILL_DIR/scripts/slice_and_read.py" "D:/screenshots/long_pic.png" 1440 200

3. 解析切片结果

脚本会输出 JSON 格式的结果,包含:

  • success: 是否成功
  • slice_count: 切片数量
  • slices: 切片文件路径列表

4. 逐片阅读

使用 Read 工具逐个读取切片文件,识别其中的文字内容。

重要:每个切片单独读取,相当于"放大"看该区域。

5. 拼接结果

将所有切片的识别结果按顺序排列,拼接成完整内容返回给用户。

技术细节

切片策略

  • 默认切片高度:1080px(Full HD 高度)
  • 重叠区域:100px(避免文字被切断)
  • 自动检测:如果图片高度 <= 切片高度,不切片直接返回原图

输出格式

脚本输出 JSON:

{
  "success": true,
  "original": "原始图片路径",
  "slice_count": 5,
  "slices": [
    "切片1路径",
    "切片2路径",
    ...
  ]
}

示例对话

用户:[发送长截图] 这张图太长,文字看不清,帮我识别一下

AI 响应:

  1. 检测到长截图,运行切片脚本
  2. 切片完成(例如 5 个片段)
  3. 逐片读取识别
  4. 拼接结果返回

注意事项

  1. 图片格式:支持 PNG、JPG、JPEG、BMP、GIF
  2. 切片存储:切片保存在原图所在目录的 _slices 子文件夹
  3. 临时文件:切片文件可以安全删除,建议处理后清理
  4. 中文识别:依赖 AI 多模态能力,确保模型支持中文

依赖项

  • Pillow:图片处理库
    • 安装:pip install Pillow
    • 验证:python -c "from PIL import Image; print('OK')"

故障排除

问题:Pillow 未安装

错误信息:ModuleNotFoundError: No module named 'PIL'

解决方案:

pip install Pillow

问题:切片后识别结果不准确

可能原因:

  • 图片分辨率过低
  • 文字字体特殊
  • 背景复杂

建议:

  • 截图时尽量使用更高分辨率
  • 确保文字清晰
  • 避免背景干扰

问题:图片路径包含中文或特殊字符

解决方案:

  • 脚本已支持 Unicode 路径
  • 确保使用双引号包裹路径

更新日志

v1.0.0 (2026-07-01)

  • 初始版本
  • 支持自动切片长截图
  • 支持自定义切片高度和重叠区域
  • JSON 格式输出

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value80/100

Highlights

  • 解决长截图文字看不清的实际痛点,具有明确使用场景
  • 支持自定义切片参数,适应不同分辨率需求
Trigger Precision85/100

Highlights

  • 触发词覆盖全面,包含多种用户表达变体
  • 边界清晰,能有效识别目标场景
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 显式章节 Reported severity: Minor

    文档结构完整但缺少显式的 When to Use 章节标题

    Recommendation: 建议在 frontmatter 后增加 When to Use 章节,明确说明适用场景

Highlights

  • Phase/步骤清晰,包含完整的执行流程
  • 提供端到端示例和故障排除指引
Execution Reliability85/100

Highlights

  • 工具来源明确(Pillow),参数配置合理
  • 覆盖主要异常场景并提供解决方案
Evidence Verifiability (mean of the first four)85/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 112, 123

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Translation pending; see source documentation.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.