Created
June 18, 2020 02:32
-
-
Save SamratSahoo/bd13ea81d75328011b8ef75d7aa5b62b to your computer and use it in GitHub Desktop.
OpenCV BGR to Grayscale
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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