[Answered ]-Read Image present in Django Model

1👍

by default django store file or image path.. not a file

so you should get your file path + your url and use for example wget lib to get it after that you can use it

example:

import cv2, wget
image_url = 'server_url + link_from_query'
filename = wget.download(image_url)
np_image = cv2.imread(filename)
👤Hashem

Leave a comment