Opencv grayscale
Skill cxcscmu/SkillLearnBench/skills/b1-one-shot-claude-opus-4-6/video-object-counting/opencv-grayscale
Convert images from RGB/BGR to grayscale using OpenCV and save in-place.From its SKILL.md
npx -y skills add cxcscmu/SkillLearnBench --skill opencv-grayscaleAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
SKILL.md
0.5 KB, 121 tokens by cl100k_base, as published. Nobody here has run it
OpenCV Grayscale Conversion
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)
What ships with it
Read from the repository
Just SKILL.md. No reference files, no scripts.