I've tried this
from PIL import Image
import requests
im = Image.open(requests.get('http://images.cocodataset.org/train2017/000000000086.jpg', stream=True).raw)
img = cv.imread('im.jpg')
print(img)
This works but print(img) prints "None". Also, shouldn't it be cv.imread(im)(doing that gives an error).
when i do
plt.imshow(img)
it gives an error
Image data of dtype object cannot be converted to float