Created
January 27, 2021 20:51
-
-
Save tiaplagata/b7f342868034728de5f8b0928f409741 to your computer and use it in GitHub Desktop.
get a word cloud mask into the correct format
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
# Create an array from the image you want to use as a mask | |
## Your file path will look different | |
rome_mask = np.array(Image.open('/Users/tiaplagata/Downloads/italy.jpg')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment