OpenCV Grayscale Conversion

SkillMedia

Convert images from RGB/BGR to grayscale using OpenCV and save in-place.

Available today. Use it from your connected AI after setup.

Connect ahel once, and every AI you use reads what you have installed.

Then ask your AI: use the OpenCV Grayscale Conversion skill

What this skill tells your AI

The instructions your AI receives, as published by cxcscmu/skilllearnbench in skills/b1-one-shot-claude-opus-4-6/video-object-counting/opencv-grayscale/SKILL.md and read by ahel’s review.

Code

import cv2

img = cv2.imread("input.png")
gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
cv2.imwrite("input.png", gray)  # overwrite in-place

Batch conversion

import cv2
import glob

for f in sorted(glob.glob("/root/keyframes_*.png")):
    img = cv2.imread(f)
    gray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
    cv2.imwrite(f, gray)

Signals

GitHub stars
83
Forks
5
Last commit
Jul 2026
Advanced
Catalog kind
skill
Gateway key
opencv-grayscale
Source
github.com/cxcscmu/skilllearnbench