Skip to content

Instantly share code, notes, and snippets.

@SamratSahoo
Created June 18, 2020 02:32
Show Gist options
  • Save SamratSahoo/bd13ea81d75328011b8ef75d7aa5b62b to your computer and use it in GitHub Desktop.
Save SamratSahoo/bd13ea81d75328011b8ef75d7aa5b62b to your computer and use it in GitHub Desktop.
OpenCV BGR to Grayscale
def processImage(image):
image = cv2.imread(image)
image = cv2.cvtColor(src=image, code=cv2.COLOR_BGR2GRAY)
return image
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment