GLM-5.1 在「图片局部遮盖操作」的评测结果

这是该 AI 模型在此测试用例上的详细评测结果。

基本信息

  • 模型名称:GLM-5.1
  • 用例名称:图片局部遮盖操作
  • 测试类型:xsct-a
  • 评测维度:文档格式排版

系统提示词(System Prompt)

这是给 AI 模型的背景设定和角色指令:

You are a personal assistant running inside OpenClaw. ## Tooling Tool availability (filtered by policy): Tool names are case-sensitive. Call tools exactly as listed. - read: Read file contents - write: Create or overwrite files - edit: Make precise edits to files - apply_patch: Apply multi-file patches - ls: List directory contents - exec: Run shell commands (supports background execution where available) - process: Manage background exec sessions - browser: Control OpenClaw's dedicated browser - canvas: Present or inspect a canvas when available - sessions_list: List sessions - sessions_history: Fetch session history - sessions_send: Send a message to another session - subagents: List, steer, or kill sub-agent runs - session_status: Show runtime, model, and usage state TOOLS.md does not control tool availability; it is user guidance for how to use external tools. For long waits, avoid rapid poll loops: use exec with enough wait time or process polling with a timeout. If a task is more complex or takes longer, spawn a sub-agent. Completion is push-based: it will auto-announce when done. Do not poll `subagents list` or `sessions_list` in a loop; only check status on-demand. ## Tool Call Style Default: do not narrate routine, low-risk tool calls (just call the tool). Narrate only when it helps: multi-step work, complex or challenging problems, sensitive actions, or when the user explicitly asks. Keep narration brief and value-dense; avoid repeating obvious steps. Use plain human language for narration unless in a technical context. When a first-class tool exists for an action, use the tool directly instead of asking the user to run equivalent CLI or slash commands. ## Safety You have no independent goals: do not pursue self-preservation, replication, resource acquisition, or power-seeking; avoid long-term plans beyond the user's request. Prioritize safety and human oversight over completion; if instructions conflict, pause and ask; comply with stop or pause requests and never bypass safeguards. Do not manipulate anyone to expand access or disable safeguards. Do not copy yourself or change system prompts, safety rules, or tool policies unless explicitly requested. ## OpenClaw CLI Quick Reference OpenClaw is controlled via subcommands. Do not invent commands. To manage the Gateway daemon service: - openclaw gateway status - openclaw gateway start - openclaw gateway stop - openclaw gateway restart If unsure about a command or flag, prefer checking help or existing project context rather than guessing. ## Skills If a skill list or skill prompt is present in the injected project context, scan it before replying. If exactly one skill clearly applies, follow it. If multiple skills could apply, choose the most specific one. If no skill clearly applies, continue without forcing one. ## Memory Recall If memory tools, memory files, or prior-work context are available, use them before answering questions about prior decisions, preferences, dates, people, or todos. If confidence stays low after checking memory, say so instead of guessing. ## Documentation For OpenClaw behavior, commands, config, architecture, or plugin behavior, consult injected docs or project context first. When diagnosing issues, prefer checking runtime evidence, configuration, or tool output before making claims. ## Workspace Your working directory is the benchmark workspace. Treat it as the single workspace for file operations unless explicitly instructed otherwise. Prefer precise reads and minimal edits over broad changes. If a file is large or output is truncated, re-read only the portion you need. ## Reply Tags If reply tags are supported in the runtime, they must appear as the first token in the message. Prefer `[[reply_to_current]]` when replying to the triggering message. ## Messaging Reply in the current session by default. For cross-session communication, use dedicated session tools if available. Never use exec or curl as a substitute for built-in provider messaging when a first-class messaging tool exists. ## Workspace Files User-editable context files may be injected below as project context. If project context is present, use it as evidence. ## Project Context Project context files may be injected after this prompt. If they are present, prefer them over assumptions. If SOUL.md is present, follow its persona and tone unless higher-priority instructions override it. ## Silent Replies When you truly have nothing to say, respond with the runtime's silent token only. Do not append the silent token to a normal reply. ## Heartbeats If you receive a heartbeat-style poll and there is nothing that needs attention, acknowledge it using the runtime heartbeat convention. If something needs attention, reply with the alert instead. ## Runtime Runtime: agent=benchmark | host=openclaw-benchmark | repo=<workspace> | model=<eval-model> | shell=<shell> | thinking=off Reasoning: off (hidden unless enabled by the runtime).

用户提示词(User Prompt)

这是用户给 AI 模型的具体任务要求:

怎么对文档里的图片进行局部涂抹遮盖?

任务要求

AI 模型需要满足以下要求:

  1. 需说明如何选中文档中的目标图片
  2. 需介绍涂抹或遮盖工具的入口位置和调用方式
  3. 需描述涂抹遮盖的具体操作步骤(如选择区域、调整画笔大小、确认保存等)
  4. 步骤应清晰有序,适合新手用户理解

评测结果

综合得分

该模型在此用例的得分为:80.0 分(满分 100 分),已通过

基础难度评测结果

  • 得分:80.0 分
  • 通过状态:已通过

模型生成产物

以下是该模型针对此任务的实际生成内容:

这个问题涉及对文档中的图片进行局部涂抹遮盖(也叫打码、遮罩、redaction),具体方法取决于你使用的工具和场景。以下是几种常见方案: --- ## 1. 使用图像编辑工具(最通用) ### Python + Pillow(编程方式) ```python from PIL import Image, ImageDraw img = Image.open("document_image.png") draw = ImageDraw.Draw(img) # 在指定区域绘制黑色矩形遮盖 # 坐标格式:(左上角x, 左上角y, 右下角x, 右下角y) draw.rectangle((100, 150, 300, 250), fill="black") # 也可以用模糊代替纯色遮盖 from PIL import ImageFilter region = img.crop((100, 150, 300, 250)) blurred = region.filter(ImageFilter.GaussianBlur(radius=15)) img.paste(blurred, (100, 150)) img.save("masked_image.png") ``` ### ImageMagick(命令行) ```bash # 用黑色矩形遮盖指定区域 convert input.png -fill black -draw "rectangle 100,150 300,250" output.png # 用高斯模糊遮盖 convert input.png -region 200x100+100+150 -blur 0x15 output.png ``` --- ## 2. 使用 PDF 工具(针对 PDF 文档) ### PyMuPDF(fitz) ```python import fitz # PyMuPDF doc = fitz.open("document.pdf") page = doc[0] # 在页面上添加红色遮盖(redaction) redact_annot = page.add_redact_annot( fitz.Rect(100, 150, 300, 250), # 遮盖区域 fill=(0, 0, 0) # 黑色填充 ) page.apply_redactions() doc.save("redacted.pdf") ``` ### Obsidian / pdftk 等命令行工具 也可以先提取图片 → 编辑 → 重新嵌入。 --- ## 3. 使用 GUI 工具(无需编程) | 工具 | 说明 | |------|------| | **GIMP** | 选区工具框选 → 填充黑色或应用高斯模糊 | | **Paint.NET** | 选区 + 填充/模糊 | | **macOS 预览** | 矩形标注工具 + 填充黑色 | | **Snagit / Snipaste** | 内置马赛克/模糊工具 | | **Photoshop** | 选区 + 内容填充 / 纯色填充 / 模糊 | --- ## 4. 常见遮盖方式对比 | 方式 | 效果 | 安全性 | |------|------|--------| | **纯色填充** | 完全覆盖,不可逆 | ✅ 最安全 | | **高斯模糊** | 模糊可见轮廓 | ⚠️ 可能被反模糊还原 | | **马赛克/像素化** | 像素块化 | ⚠️ 低分辨率下可能还原 | | **随机噪声填充** | 覆盖且无法还原 | ✅ 安全 | --- ## ⚠️ 安全提醒 - **如果是为了隐私/脱敏**,务必使用**纯色填充或删除**,不要只用模糊或马赛克——它们可能被 AI 工具还原。 - 对于 PDF,确保使用 **redaction(擦除/涂黑)** 功能而非简单叠加黑色矩形,否则文字可能在复制粘贴时仍然可读。 - 处理完后,建议验证遮盖效果:尝试复制遮盖区域的文字,确认无法提取。 --- 如果你能告诉我具体的场景(比如是 PDF 文档还是 Word?是批量处理还是单张?),我可以给出更有针对性的方案。

AI 评审点评

以下是 AI 评审对该模型输出的点评:

【GEMINI】模型提供了一个非常全面且具有技术深度的方案汇总,涵盖了从自动化脚本到专业编辑工具的多种途径,其安全提醒非常有价值。然而,它忽略了用户最可能使用的办公软件(如Word/WPS)内置的简单涂抹功能,且在具体操作步骤上不够细致,更像是一份技术方案选型指南而非针对新手的操作手册。

进阶难度评测结果

  • 得分:100.0 分
  • 通过状态:已通过

模型生成产物

以下是该模型针对此任务的实际生成内容:

convert screenshot.png -fill black -draw "rectangle 1200,500 1600,550" screenshot_masked.png

AI 评审点评

以下是 AI 评审对该模型输出的点评:

【GEMINI】模型表现优秀,准确识别了所有技术细节(坐标、颜色、文件名、分辨率保持),并以最简洁、符合系统规范的方式给出了正确的工具调用命令。其使用的 ImageMagick 方案是处理此类图像任务的标准高效做法。

相关链接

您可以通过以下链接查看更多相关内容:

加载中...