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.

Please assist me to solve the above mentioned problem.

Thanks and Regards,
Prabhakar M