Skip to content

Instantly share code, notes, and snippets.

@letthedataconfess
Created September 20, 2021 16:28
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/c7f7476c676f3a2bb631012ddd90710b to your computer and use it in GitHub Desktop.
Save letthedataconfess/c7f7476c676f3a2bb631012ddd90710b to your computer and use it in GitHub Desktop.
img = cv2.imread("zebra.jpg")
#print(img.shape)
img = cv2.cvtColor(img, cv2.COLOR_BGR2RGB)
half = cv2.resize(img, (0,0), fx = 0.5, fy = 0.5)
plt.imshow(half)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment