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

Using the calibration.txt file in Python #14

Open
iamlegolas opened this issue Nov 27, 2016 · 3 comments
Open

Using the calibration.txt file in Python #14

iamlegolas opened this issue Nov 27, 2016 · 3 comments

Comments

@iamlegolas
Copy link

Once the calibration is done, can we use the calibration.txt file in Python? I need to use the Caffe framework to detect objects and project onto their real world coordinates.

If that's not a possibility, can we call a bunch of processing functions from Pythin scripts? For example I use Python to detect objects using Caffe and then send their coordinates from the Kinect image to the Processing sketch that converts them to real world coordinates and sends them back?

@genekogan

@genekogan
Copy link
Owner

yes i think in theory, but you'll need to replicate the matrix multiplication. the equations are from this blog.

as far as the second idea, processing is just java so you could compile it into a binary for the JVM (like from within eclipse) and i think there are ways of calling it from python. the engineering for all this might be a bit tedious though.

@iamlegolas
Copy link
Author

Thanks for the prompt response, @genekogan! I've, however, decided to go with a more convenient approach. Since I need both programs on the same computer, I'm going to create a server on the Python side and a client on the processing side to communicate.

Thought I'd post this here... Might help someone some day...

@genekogan
Copy link
Owner

yes, this is a good approach i think. i was also going to suggest using OSC for the communication.

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

No branches or pull requests

2 participants