1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

【Colab】pillow画像取得をURLから直接行う

Posted at

まずPillowをColab上にインストール

pytohnコード
!pip install Pillow==7.0.0

#画像読み込み
これでとりあえず画像取得できる。

pytohnコード
from PIL import Image
import requests
import io

url = 'https://www.python.org/static/community_logos/python-logo-master-v3-TM.png'
img = Image.open(io.BytesIO(requests.get(url).content))
img

Colab URL

参考URL

1
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?