KinectProjectorToolkit icon indicating copy to clipboard operation
KinectProjectorToolkit copied to clipboard

Using the calibration.txt file in Python

Open iamlegolas opened this issue 8 years ago • 3 comments

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

iamlegolas avatar Nov 27 '16 11:11 iamlegolas

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.

genekogan avatar Nov 27 '16 12:11 genekogan

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...

iamlegolas avatar Nov 27 '16 15:11 iamlegolas

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

genekogan avatar Nov 27 '16 21:11 genekogan