将给定URL的Jpeg图像下载到numpy数组中

问题描述 投票:-1回答:1

[使用python,我想下载一个给定URL的Jpeg图像,并将其存储在numpy数组中以供以后处理。我应该使用哪个库?

python image numpy url jpeg
1个回答
0
投票

有许多库可用于此任务。我过去使用的是scikit-image

from skimage import io

image_filename = "http://example.com/example.jpg"
image_numpy = skimage.io.imread( image_filename )
© www.soinside.com 2019 - 2024. All rights reserved.