Python c++ binding Opencv 4

I want to save my preprocessed image to the shared memory using boost library C++ and access the same from my python code.

I tried with below tutorials, bv.cpp is not provided with opencv it seems.

https://docs.opencv.org/3.4.1/da/d49/tutorial_py_bindings_basics.html

Please assist me to solve the above mentioned problem.

Thanks and Regards,
Prabhakar M