What does enabling python bindings actually do?

asked 2013-12-13 11:56:04 -0600

Hi All,

I need a little help. Could someone tell me what enabling python binding actually does? I am trying to enable it on an Android build where they have stripped out all of the cmake stuff.

I am not even sure what the binding is. Is it a python file? Is it some source code changes to the native code?

I have cloned the repo and I have been trying to reverse engineer the cmake files but it seems to make a ton of tiny changes to other cmake files and the quest has consumed a lot of time.

I you have any ideas on how to attach this problem I would love to hear them too.

Thanks for your time,

David.

edit retag flag offensive close merge delete

Comments

I have managed to track some of this down. It appears that there are some python scripts that generate some header files which contain static functions. There is also a file called cv2.cpp that includes these header and that gets added two libopencv_core.so. I have not figured out how the scripts get involved or what they do exactly. I have only used ctypes to call native functions in the past so this is new to me.

David Moffatt gravatar imageDavid Moffatt ( 2013-12-14 13:54:40 -0600 )edit