What is the fast enough way (about 40~50Hz) to send large data (RGB image data: 320*240*3) from c++ process to python process (and small size of float data from python to c++) on Linux? Note: the two processes are running at the same PC.
I have tried:

UDP
shared memory

For UDP:
The message to be sent is larger than the UDP message constrain (65535), so directly using sendto() will get error: Message too long. And I also doubt whether it is a fast way (about 40~50Hz is ok).
For shared memory:
Shared memory seems to be a fast way to send image from c++ to c++. But since there is no pointer in python, I do not find a way to read and write data in shared memory.
So is there a fast way to do IPC things above? Or maybe a good way to read and write unsigned char and float type values to shared memory in python?
you can combine both applications memory with tools like swig.
also you can use namedpipe
How to send LARGE data from c++ to python in a fast way on Linux?