Adjusting images automatically
Posted: 2011-06-21T09:24:49-07:00
Hello,
in a workflow I get pictures from a webcam that should be compared to some reference images. As the webcam angle might change due to "physical interference" (a.k.a. people bumping into the construction) I would like to adjust the image automatically before comparing it to others.
Two ways I thought about:
1) There is a yellow cross or something similar in the image. If there is a way I can get the coordinates of the edges of the cross, I could use the IM distort function for the right adjustments. But how do I get these coordinates? Histogram voodoo? (I'm using Ruby and RMagick at the moment, but this shouldn't be a limitation.)
2) I read about software for panorama stitching which works similarly. Maybe there is some command line tool that works for my use case? (The Photoshop function Auto-Align layers seems perfect but it can't be used in a command line tool or with two different images.)
Thanks in advance for any suggestion! (Maybe someone has a completely different idea?)
in a workflow I get pictures from a webcam that should be compared to some reference images. As the webcam angle might change due to "physical interference" (a.k.a. people bumping into the construction) I would like to adjust the image automatically before comparing it to others.
Two ways I thought about:
1) There is a yellow cross or something similar in the image. If there is a way I can get the coordinates of the edges of the cross, I could use the IM distort function for the right adjustments. But how do I get these coordinates? Histogram voodoo? (I'm using Ruby and RMagick at the moment, but this shouldn't be a limitation.)
2) I read about software for panorama stitching which works similarly. Maybe there is some command line tool that works for my use case? (The Photoshop function Auto-Align layers seems perfect but it can't be used in a command line tool or with two different images.)
Thanks in advance for any suggestion! (Maybe someone has a completely different idea?)