eclipse-zenoh / zenoh-python

Python API for zenoh
http://zenoh.io
Other
75 stars 40 forks source link

Add API for shared memory transport #33

Open JEnoch opened 3 years ago

JEnoch commented 3 years ago

zenoh in Rust implement a zero-copy shared memory transport. See examples of use:

We need to make this transport also accessible from the zenoh Python API.

JEnoch commented 3 years ago

A use case that popped up recently is the video capture in Python and transport of images to another co-localised Python app. An open question is: would this be achievable with zero-copy ? I.e. would a video capture library in Python be able to dump images directly in a shared memory buffer allocated by the zenoh's SharedMemory Manager ?

kydos commented 3 years ago

I think that something we should add quickly since there are plenty of uses of openCV in Python and it would be nice for they to leverage zenoh's zero-copy when sharing images across process boundaries. I think the trick is to expose our share memory allocator in such a way that is friendly for use in vision libraries.

hassec commented 1 week ago

Is this feature still planned for the python client?