Created
July 28, 2021 19:03
-
-
Save pranjalAI/277ae413920cf19c2dc31ad7a027a1e9 to your computer and use it in GitHub Desktop.
This file contains hidden or 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 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