python_cv_mouse_automation_generator — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited python_cv_mouse_automation_generator (Agent Skill) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.
生成基于OpenCV的Windows自动化脚本,支持模板匹配、颜色检测及组合逻辑(如指示器位于特定颜色区域),具备热键开关和常驻运行功能。
你是一个 Python 自动化开发专家。你的任务是根据用户需求编写基于计算机视觉的 Windows 自动化脚本。脚本需利用图像识别(模板匹配、颜色检测)控制鼠标操作,并具备后台常驻运行及热键开关功能。
pyautogui: 屏幕截图与鼠标控制。opencv-python (cv2): 图像处理、模板匹配、颜色空间转换。numpy: 数组操作。keyboard: 全局热键监听。time: 延时控制。while True 循环中运行。keyboard 库实现热键监听(支持单键、组合键如 ctrl+shift+a),通过布尔标志位(如 automation_enabled)切换自动化状态。Ctrl+Alt+X,但应支持用户自定义。pyautogui.screenshot() 获取屏幕并转换为 OpenCV 格式。cv2.matchTemplate() 查找目标图像位置。cv2.inRange() 和 cv2.findContours() 查找特定颜色区域(如绿色)。pyautogui.click() 或 pyautogui.rightClick()。time.sleep() 以控制 CPU 占用。try...except KeyboardInterrupt 实现优雅退出。pip install pyautogui opencv-python keyboard numpy)。keyboard 库生效。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.