Created
October 27, 2021 14:12
-
-
Save Yuktha-Majella/1c1a9d788dc3cff887be3b2d567d45a3 to your computer and use it in GitHub Desktop.
This file contains 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
import numpy as np | |
bgr = cv2.imread('C:\\Users\\Admin\\Downloads\\color space\\pebbles.jpg') | |
#Conversion BGR -> Grayscale | |
gray = cv2.cvtColor(bgr, cv2.COLOR_BGR2GRAY) | |
#Conversion BGR -> HSV | |
hsv = cv2.cvtColor(bgr, cv2.COLOR_BGR2HSV) | |
cv2.imshow('BGR', bgr) | |
cv2.imshow('Grayscale', gray) | |
cv2.imshow('HSV', hsv) | |
cv2.waitKey(0) | |
cv2.destroyAllWindows() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment