Ask Your Question

Revision history [back]

What performance do you need? The absolute simplest way would be to create one program that reads from the camera and writes the images to a folder on the RAM (ramdisk). Your two programs check this folder and process images. You can use file-properties or the filename to encode the time stamp of the image. Other approaches would be the usage of ROS (ros.org) but that's rather overkill if you can't use it also for other problems.

You could also create full UDP or TCP sockets and send the image. The cv::Mat has a member called data which contains the raw pixel information. But you'd have to implement your own schema to transfer the image type, size and similar stuff.