Skip to content

Instantly share code, notes, and snippets.

@tiaplagata
Created January 27, 2021 20:51
Show Gist options
  • Save tiaplagata/b7f342868034728de5f8b0928f409741 to your computer and use it in GitHub Desktop.
Save tiaplagata/b7f342868034728de5f8b0928f409741 to your computer and use it in GitHub Desktop.
get a word cloud mask into the correct format
# 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