Projector-Camera sync code on github

As you might know, I have finally tested my idea to use my old drawTriangles() snippet for projector perspective reconstruction from webcam video. The thing is that, unless you duct-tape your webcam to projector, there is significant difference in perspective between projector and webcam that needs to be compensated in one way or another before you could use webcam to do something like this:

or

So I borrowed this projector from Denis Radin and wrote a wrapper around webcam and math and shit that is now hosted on github. There you get a sprite that waits for Ctrl+Space to show 4 white arrows for a second, and then you mark those arrows in webcam image. When you’re done, Ctrl+Space again to hide it. Using this “calibration” info, your code gets corresponding region of webcam video automatically transformed into rectangle – the way your projector would see it, if it was a webcam itself. What you do with that image next is up to you; I’ve included flashlight “painting” example above as well as basic edge highlighting example.

2 Responses to “Projector-Camera sync code on github”


  1. 1 Kiril June 13, 2012 at 21:57

    Really very impressive work. Thanks for sharing.
    I’m curious to know what are the barriers one has to overcome, if one wishes to create a more responsive/real-time feedback?


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Old stuff

June 2012
M T W T F S S
« May   Oct »
 123
45678910
11121314151617
18192021222324
252627282930  

Oh, btw…


Follow

Get every new post delivered to your Inbox.

%d bloggers like this: