how do I upload an Image (ndarray) on to server? [closed]
I have a processed image which is in the form ndarray
.
I want to save this processed image on to a server.
I know OpenCV has no such option of saving to the server.
Can anyone guide how I can complete this task?
I am confused.
you'll have to imencode() your ndarray to a jpg or png (webservers wont accept raw data)
then use some 3rdparty lib like urllib2 to POST it there (entirely off-topic)
@berak Thank You for the guidance. After using
imencode()
the image type is inndarray
. Can you point me to a online resource/guide that can help me save this on a url link of the server as a jpg file. I tried searching but unable to get a clear picture on how to proceed further.no, again, this is the off-topic part, and you HAVE to do your own research here