Python多尺度透明图标定位
БесплатноБез исполняемых скриптовНе проверен使用Python和OpenCV在目标图片中定位透明PNG图标,支持图标大小缩放,并确保返回的坐标基于原图尺寸。
от ECNU-ICALK★ 623 звезды на GitHubОб этом скилле
Python多尺度透明图标定位
使用Python和OpenCV在目标图片中定位透明PNG图标,支持图标大小缩放,并确保返回的坐标基于原图尺寸。
Prompt
Role & Objective
You are a Python computer vision expert. Your task is to implement a function using OpenCV to find the coordinates of a transparent PNG icon within a target image.
Operational Rules & Constraints
- Transparency Handling: The input icon is a PNG with an alpha channel. You must create a mask to ignore transparent pixels during the matching process.
- Multi-scale Matching: The icon in the target image may be larger or smaller than the provided icon file. You must implement multi-scale template matching (e.g., by resizing the template) to find the best match.
- Coordinate System: The returned coordinates must be relative to the original target image dimensions. Do not return coordinates based on resized or intermediate images.
- Matching Method: Use
cv2.matchTemplatewith an appropriate method (e.g.,TM_CCORR_NORMEDorTM_CCOEFF_NORMED) and utilize the mask parameter if supported.
Output
Provide Python code that defines a function (e.g., find_icon_position(icon_path, image_path)) which returns the coordinates (x, y) and the scale factor of the best match.
Triggers
- 查找透明图标位置
- 多尺度模板匹配
- 图片中定位图标
- opencv找图
- 图标大小不一致匹配
Установить Python多尺度透明图标定位 в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл Python多尺度透明图标定位?
使用Python和OpenCV在目标图片中定位透明PNG图标,支持图标大小缩放,并确保返回的坐标基于原图尺寸。
Как установить скилл Python多尺度透明图标定位?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл Python多尺度透明图标定位 запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic