screen-icon-finder
Installation
SKILL.md
Screen Icon Finder
通过 OpenCV 模板匹配,在屏幕截图或任意图片中精确查找目标图标位置。
核心脚本
find_icon.py — 查找 + 标记
import cv2
import numpy as np
import sys
def find_icon(small_path, big_path=None, threshold=0.75, scale_min=0.3, scale_max=2.0, scale_steps=35):
"""
在大图中查找小图,支持多尺度匹配和 NMS 去重。