Here’s the code I used:
import requests
from PIL import Image
import io
import cv2
response = requests.get(df1.URL[0]).content
im = Image.open(io.BytesIO(response))
The image is very large. Is there a way to fasten things? EDIT: I don't want to save image on disk. I just want to read it on the fly.