Skip to content

Instantly share code, notes, and snippets.

@pranjalAI
Created July 28, 2021 19:03
Show Gist options
  • Save pranjalAI/277ae413920cf19c2dc31ad7a027a1e9 to your computer and use it in GitHub Desktop.
Save pranjalAI/277ae413920cf19c2dc31ad7a027a1e9 to your computer and use it in GitHub Desktop.
import mahotas
import mahotas.demos
import numpy as np
from pylab import imshow, gray, show
from os import path
photo = mahotas.demos.load('luispedro', as_grey=True)
photo = photo.astype(np.uint8)
gray()
imshow(photo)
show()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment