1 | initial version |
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.