arr = np.asarray(bytearray(req.read()), dtype=np.uint8)
img = cv2.imdecode(arr, -1)
cv2.imshow('lalala', img)
if cv2.waitKey() & 255 == 27:
    quit()
How can i read an image from an internet url in python cv2 , scikit image and mahotas?