Skip to content

Instantly share code, notes, and snippets.

@Praveen76
Created April 16, 2022 04:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Praveen76/3b0447d92a411d1e54467aa34a3694cd to your computer and use it in GitHub Desktop.
Save Praveen76/3b0447d92a411d1e54467aa34a3694cd to your computer and use it in GitHub Desktop.
grayscale=cv.cvtColor(img,cv.COLOR_BGR2GRAY)
cv.imshow('Gray Scale Image',grayscale)
cv.imwrite('GrayScaleImage.jpg',grayscale)
cv.waitKey()
cv.destroyAllWindows()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment