-
Notifications
You must be signed in to change notification settings - Fork 385
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatic python bindings using Cppyy or similar system #332
Comments
I left the OpenVSLAM description as is and forgot about it. It is not a high priority for me. I am not sure what demand there is. |
Well im just using the python as a gluecode for opencv, depthai and some networking for me at least the native libs that do the heavy load and a fast modifiable python code is the most optimal approach. And considering that there is a lot people experimenting with computer vision and robotics that do primarily c and python it might be a nice thing to do. |
Hi, First of all I'm speaking from ignorance here: I don't know anything about Cppyy. But... I'm not sure if an automatic binding tool can generate bindings that work properly for a system like this. I've been doing some work on Python bindings for StellaVSLAM and it's not as straightforward as it would appear. For example, to run SLAM and the viewer together in Python, you need to create bindings that release the Python GIL. Otherwise the execution will be blocked. I'm not sure if that's something that Cppyy could infer. (also, the bindings I've been working on are still a work in progress, there's a lot of room for improvement, I'm still fairly new at this so any help or tips are appreciated) |
Wow thats a lot of work right there. Thank You very much. |
I can confirm that Python bindings would be useful to me. I'm working on combining Stella VSLAM with OpenCV and OpenMVS for dense reconstruction, and I could connect everything with Python and get my custom camera feed into Stella VSLAM if it had a Python API. |
What issue is the feature request related to?
I've noticed that in readme.md is a TODO for python bindings, i think that this is pretty easy to do now using numerous automatic binding solutions for c/cpp using python
Describe the solution you'd like
I'll probably try to create python bindings using pybind or cppyy as they are quite mature and used in few other projects, that might even allow to automate the binding process whenever new change will appear in the source code.
How to achieve this
Describe alternatives you've considered
ive found a list of possible binding generators for python and it is here https://github.com/jslee02/awesome-cpp-python-binding-generator
The text was updated successfully, but these errors were encountered: