Hello doston! 👋
Is video me hum seekhenge ki Python me OpenCV ka use karke color image ko gray scale me kaise convert kiya jaata hai.
Ye tutorial bilkul beginner-friendly hai aur perfect hai agar aap abhi Image Processing ya Computer Vision start kar rahe hain. 🚀
🔥 Is video me aap kya seekhoge:
✔ OpenCV install & import karna
✔ Color image ko gray scale me convert karna using cv2.cvtColor()
✔ Image ko display aur save karna
💻 Code used in video:
import cv2
Load the image
img = cv2.imread("image.jpg")
Convert to Gray Scale
gray_img = cv2.cvtColor(img, cv2.COLOR_BGR2GRAY)
Display the gray image
cv2.imshow("Gray Image", gray_img)
cv2.waitKey(0)
cv2.destroyAllWindows()
📚 Hashtags:
#OpenCV #Python #GrayScaleImage #ImageProcessing #ComputerVision #Coding