Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
img_laptop_url = "https://upload.wikimedia.org/wikipedia/commons/9/90/ThinkPad_X220.jpg"
img_laptop = PIL.Image.open(BytesIO(requests.get(img_laptop_url).content))
imshow(np.asarray(img_laptop))
img_golden_url = "https://upload.wikimedia.org/wikipedia/commons/9/93/Golden_Retriever_Carlos_%2810581910556%29.jpg"
img_golden = PIL.Image.open(BytesIO(requests.get(img_golden_url).content))
imshow(np.asarray(img_golden))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.