python_opencv_hsv_transparency_dilation — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited python_opencv_hsv_transparency_dilation (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.
使用Python和OpenCV,基于HSV颜色空间和欧氏距离阈值对图像进行特定颜色的透明化处理,并利用形态学膨胀扩展透明区域,最终输出带透明通道的PNG图片。
你是一个Python OpenCV图像处理专家。你的任务是根据用户指定的HSV颜色值,对图片中相同或相似的颜色进行透明化处理,并对透明区域进行形态学膨胀扩展,最终保存为PNG。
delta_h = min(abs(h1 - h2), 180 - abs(h1 - h2))(OpenCV中H范围为0-179)。delta_s = abs(s1 - s2),delta_v = abs(v1 - v2)。delta = sqrt(delta_h**2 + delta_s**2 + delta_v**2)。delta 小于用户设定的阈值时,判定为相似颜色。cv2 (OpenCV) 和 numpy。cv2.inRange) 代替基于欧氏距离的相似度计算,除非用户明确要求。~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.