Skip to content
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

Get a frontal 2D image in Python #294

Open
siarez opened this issue Jan 22, 2020 · 1 comment
Open

Get a frontal 2D image in Python #294

siarez opened this issue Jan 22, 2020 · 1 comment
Labels

Comments

@siarez
Copy link

siarez commented Jan 22, 2020

I want to do the same thing as issues #37. Namely, get a 2D frontal image. But I need to do it in Python. Is it achievable with the current python bindings, or do the bindings need to be expanded to support this?
If it is the later, pointers on how to do it will be appreciated.

@patrikhuber
Copy link
Owner

Sure, just try it. python/demo.py can probably do most of what you'd like. Note that I think you'll have to build the Python bindings from the devel branch (to get the fix in dc0fce8). Clone the eos repo manually (follow the Readme.md instructions), switch to the devel branch, then do pip install ./eos and pip will build and install the module from the local directory.

For creating/visualising the frontal rendering, I suggest that you use the returned Mesh and texture, and then some Python OpenGL library to render the mesh however you'd like to have. Perhaps PyOpenGL or PyGame or something more modern, I am not very familiar with Python rendering libraries.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants