Ask Your Question
0

Sending Mat over the web

asked 2017-06-12 05:56:35 -0500

Yasser Akram gravatar image

I need to send a Mat over the web (to ASP .net c# backend) Any ideas or ready examples?

edit retag flag offensive close merge delete

Comments

what is there, exactly, on the other end ? some kind of REST api ?

berak gravatar imageberak ( 2017-06-12 06:02:33 -0500 )edit

Yes. I'll be sending it with an HttpClient "POST".

Yasser Akram gravatar imageYasser Akram ( 2017-06-12 14:28:08 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
2

answered 2017-06-12 23:02:43 -0500

berak gravatar image

your webserver won't know, what a cv::Mat is, also you should probably encode / compress it, before sending it over the wire.

use imencode() or imwrite(), to save it as an image (to memory or disc), say as .png or .jpg, - then libcurl to send it to the server.

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2017-06-12 05:56:35 -0500

Seen: 292 times

Last updated: Jun 12 '17