Ok, so I have a projector that would be projecting a powerpoint presentation or something similar onto a wall. Above the projector, there is a digital camcorder recording the projection (and the presenters laser pointer). The presenter would be using a laser pointer to point things out on the projector. I want to be able to determine the coordinates of the laser pointer in relation to the original image.
I would have two images to compare (The image being projected vs. the image being recorded. The image being recorded, however, is likely to be blurrier or slightly off center from the actual image)
So far, here is what I have:
I took a screenshot from a powerpoint presentation, then saved it as a 500x375 gif. I took this file and blurred it, then brightened or darkened or chagned the contrast in it. From here I have two images that simulate what it could really be (except for the allignment issues). My program will find the drawn in laser pointer... but it takes a few second per frame which isnt ideal...
I first have it comparing a pixel on each of the pictures to determine how much brighter or darker the other image is. I then correct for that. Next, I pixelate both images. Then subtract them from each other, and end up with a purple dot on a white page where the laser pointer is.
It is the pixelating that takes the longest, and it does not work without doing it...
Also, can anyone think of a way to tell if one of the images is more blurred then the other? If that were possible, then I could just find a degree that it was blurred by, and correct on the other one, which would be faster than pixelating...
Thanks,
-Nate
I would have two images to compare (The image being projected vs. the image being recorded. The image being recorded, however, is likely to be blurrier or slightly off center from the actual image)
So far, here is what I have:
I took a screenshot from a powerpoint presentation, then saved it as a 500x375 gif. I took this file and blurred it, then brightened or darkened or chagned the contrast in it. From here I have two images that simulate what it could really be (except for the allignment issues). My program will find the drawn in laser pointer... but it takes a few second per frame which isnt ideal...
I first have it comparing a pixel on each of the pictures to determine how much brighter or darker the other image is. I then correct for that. Next, I pixelate both images. Then subtract them from each other, and end up with a purple dot on a white page where the laser pointer is.
It is the pixelating that takes the longest, and it does not work without doing it...
Also, can anyone think of a way to tell if one of the images is more blurred then the other? If that were possible, then I could just find a degree that it was blurred by, and correct on the other one, which would be faster than pixelating...
Thanks,
-Nate