Ask Your Question

Revision history [back]

Why not just make that a python function?

def sample(img, retImg): retImg = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY) return retImg