環境python3.5.2
まずインストール
pip install pillow
test.py
from PIL import Image
import io
from urllib.request import urlopen
file =io.BytesIO(urllib.request.urlopen('画像のurl').read())
img = Image.open(file)
img.show()
Go to list of users who liked
More than 5 years have passed since last update.
環境python3.5.2
まずインストール
pip install pillow
from PIL import Image
import io
from urllib.request import urlopen
file =io.BytesIO(urllib.request.urlopen('画像のurl').read())
img = Image.open(file)
img.show()
Register as a new user and use Qiita more conveniently
Go to list of users who liked