how to convert into grayscale opencv

import cv2

# Reading color image as grayscale
gray = cv2.imread("color-img.png",0)

# Showing grayscale image
cv2.imshow("Grayscale Image", gray)

# waiting for key event
cv2.waitKey(0)

# destroying all windows
cv2.destroyAllWindows()

Are there any code examples left?
Create a Free Account
Unlock the power of data and AI by diving into Python, ChatGPT, SQL, Power BI, and beyond.
Sign up
Develop soft skills on BrainApps
Complete the IQ Test
Relative searches
how to convert an image to grayscale in opencv converting an image to grayscale without opencv opencv binary to grayscale grayscale to rgb opencv convert grayscale to rgb opencv grayscale conversion in python opencv convert grayscake to bgr opencv how to change image to grayscale in opencv python convert grayscale to binary image opencv python convert to grayscale opencv opencv convert image to grayscale python grayscale image opencv python opencv to greyscale opencv convert to grayscale c++ image grayscale in opencv grayscale image in opencv convmer timage to grayscal opencv opencv how is grayscale calculated grayscale opencv opencv to gray image opencv java convert to grayscale opencv to grayscale convert to gray in opencv cv2 to grayscale opencv grayscale to rgb image into grayscale in opencv opencv to grayscale python how to do grayscale using opencv cv2, convert to grayscale convert to grayscale opencv python converting to grayscale opencv python opencv python convert rgb to grayscale opencv convert from grayscale to rgb write grayscale image opencv opencv grayscale from grayscal to rgb opencv from rgb to grayscale opencv grayscale to color opencv opencv convert color to grayscale convert grayscacle opencv how to convert image to grayscale opencv convert image to grayscale opencv convert image to grayscale python opencv opencv convert grayscale to rgb cv2 convert to grayscale how to convert normal image to grayscale opencv convert image to grayscale opencv python how to convert an image to grayscale in cv2 grayscale image python opencv not working how to convert image into grayscale opencv cvtColor image gray converting an image to grey scale in opencv opencv make grayscale how to apply grayscale on b and g in python opencv converting image to grayscale in python cv2 gray scale how to convert image to grayscale in python opencv python grayscale convert color image to grayscale python how to convert image into grayscale convert pil image to grayscale grayscale image python opencv covert image to grayscale cv2 transform frame to gray scale cv2 gray scale image in open cv open cv to grey scale image turn image to grayscale cv2 color to gray opencv python convert image to greyscale python convert grayscale to rgb python with specific size opencv how to convert image into grayscale in python opencv color to grayscale convert to gray cv2 to gray opencv opencv color image to grayscale convert to grayscale glsk convert to grayscale python opencv read image and convert to grayscale grayscale image python cv2 opencv convert to grayscale cv2 to greyscale python how i can convert image to gray scal image using opencv opencv convert image to grayscale cv2 python gray opencv cvtcolor grayscale convert image to grayscale python rgb to grayscale python opencv convert to grayscale cv2 cv2 image grayscale python opencv grayscale example cv2 rgb to gray cv2.rgb tp gray make image grayscale opencv python opencv make image grayscale python opencv bgr to gray OpenCV grayscale python opencv python bgr to grayscale convert to grayscale python opencv convert rgb image to grayscale opencv python how to use grayscale in opencv python python opencv rgb to gray image to greyscale in python opencv transform image to gray transform image to grayscale opencv cv color to grayscale cv2 turn image to grayscale opencv python grayscale image to color python opencv convert to grayscale cv2 grayscale cv2 convert image to grayscale python rgb to grayscale opencv convert image from color to grayscale opencv python convert image into grayscale python how to convert into grayscale opencv
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source