Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Last active September 20, 2021 01:52
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 letthedataconfess/6dd7a9fe34188c5c90738190f383d6e2 to your computer and use it in GitHub Desktop.
Save letthedataconfess/6dd7a9fe34188c5c90738190f383d6e2 to your computer and use it in GitHub Desktop.
opencv part 1
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