Shop OBEX P1 Docs P2 Docs Learn Events
Is there a way to take a picture and detect where a circle-like object is located? — Parallax Forums

Is there a way to take a picture and detect where a circle-like object is located?

I would like to add a simple recognition camera to my Propeller 2 project.

  1. This camera should take a rough predetermined sized picture every so-many-minutes.
  2. The image should be scanned for a round object (algorithem).
  3. It should return coordinates of the circle-center within the set picture area when a round object is detected.

Regards,

Comments

  • Hi
    I once used one of these cheap esp-32-cameras to detect the position of a red marble. It is relatively simple and fast to calculate the average position of pixels of a known color which is otherwise not present in the picture. I converted the rgb of all pixels first to hue values for easy comparison. It is not even necessary to have the whole picture in Ram for this, as you can calculate on the fly.

    So perhaps you can ensure, that the circle has got a certain distinct color?

    As far as I know, for pattern recognition, the first step would be to convert the picture to edges.
    Christof

Sign In or Register to comment.