Last active
September 20, 2021 01:52
-
-
Save letthedataconfess/6dd7a9fe34188c5c90738190f383d6e2 to your computer and use it in GitHub Desktop.
opencv part 1
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
img = cv.imread('zebra.jpg',0) | |
hist = cv.calcHist([img],[0],None,[256],[0,256]) | |
plt.hist(img.ravel(),256,[0,256]) | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment