vision.diff
Compares a current screenshot against a baseline to detect pixel changes, outputting change ratio and difference boxes; optionally runs OCR to list added or removed text.
Instructions
界面变化检测:当前截图 vs 基线的像素差异(变化占比+差异框);ocr=true 附文本增删
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ocr | No | true 时对两图各跑 OCR,返回文本集合差异 | |
| current | No | 对比图路径;缺省当场截图 | |
| baseline | No | 基线图路径;缺省用最近一次 vision.screenshot | |
| threshold | No | 像素差灰度阈值(0-255),低于视为噪声 |