Reputation: 139
So, I have a table. There will be some items on a table, let's say- oranges. There is a projector right above a table and kinect hanging on some angle (the position of kinect and table will never change).
I want to catch images from kinect every 1 second (easy), then search for oranges on it (easy) and then draw circles around oranges + put pink background on table using projector (some kind of AR, this is the hard part). How can I transform coordinates that I`ll get from Kinect so that projector puts image right on table? Thanks in advance.
Upvotes: 0
Views: 57
Reputation: 51863
I see two options. The first is to find the corners of the table in Kinect image and interpolate from that something like this:
The other one is create transform matrix representing either the projection plane or the projector itself and convert your 3D position local to kinect to the table or projector local coordinates.
Anyway these might get handy:
Upvotes: 1