how do I upload an Image (ndarray) on to server? [closed]

asked 2018-03-20 01:31:07 -0500

Santhosh1 gravatar image

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.

edit retag flag offensive reopen merge delete

Closed for the following reason question is off-topic or not relevant by berak
close date 2018-03-20 02:56:10.080645


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 gravatar imageberak ( 2018-03-20 02:55:47 -0500 )edit

@berak Thank You for the guidance. After using imencode() the image type is in ndarray. 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.

Santhosh1 gravatar imageSanthosh1 ( 2018-03-21 06:38:25 -0500 )edit

no, again, this is the off-topic part, and you HAVE to do your own research here

berak gravatar imageberak ( 2018-03-21 07:21:23 -0500 )edit