使用 python,我想下载一个给定 URL 的 Jpeg 图像并将其存储在 numpy
数组中以供以后处理。我应该使用什么库?
最佳答案
有许多库可用于此任务。我过去使用的一个来自 scikit-image
:
import skimage
image_filename = "http://example.com/example.jpg"
image_numpy = skimage.io.imread( image_filename )
关于python - 将给定 URL 的 Jpeg 图像下载到 numpy 数组中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59724255/