convert into grayscale opencv js code example Example: cvtcoloer opencv toGray = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)