I have a link such as this https://www.da******.com/img.php?i=RzlRb1N5VEl5VUd2R1BGWEN0cStSdz09 that contains a photo. (I was told by the person who gave me the link not to publish it because they do not want it public and people possibly draining their server.) I have been trying to resize the image to 500x500 pixels via:
image = cv2.imread("https://www.dat*******.com/img.php?i=bXRRUERQMWJ2ZEtBMWZ4SkZOb3BaZz09")
image2 = cv2.resize(image(500,500))
However, I received the following error message:
AttributeError: 'NoneType' object has no attribute 'shape'
So, I guess it is not a valid picture file and the resize() function does not recognize it as an array. My source image is most likely empty and has not been read in properly. I am able to open the link in the browser and I have also attached jpg to the end to see if that works but the error message remains.
My question is the following: Is openCV allowed to manipulate images in resize() from a http link? Or does the picture have to be saved on your computer with a path indicating as such?