image recogniton?

Almar Klein almar.klein at gmail.com
Wed Jan 7 10:06:08 EST 2009


2009/1/7 Li Han <lihang9999 at gmail.com>

> On 1月7日, 上午4时14分, J Kenneth King <ja... at agentultra.com> wrote:
> > I'm curious as to what application the solution to this problem is
> > practical for all of its difficulty?
> Sorry, I oversimplified the question because of my poor english. It is
> an analog compass whose value we need to read  into the computer every
> second. We use a video camera keep shooting it, and the compass and
> camera are  fixed.
> --
> Li Han
>
> --
> http://mail.python.org/mailman/listinfo/python-list
>

The compass of the needle looks like a line. Lines can be best detected
using second order (Gaussian) derivatives.
scipy.ndimage.gaussian_filter provides a filter you can use for that.

Then maybe PCA to find the direction of the needle, and you're done!
There's probably more to it (there always is), but this might get you
started.

  Almar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090107/3036ad21/attachment.html>


More information about the Python-list mailing list