<< return to Pixycam.com

Regocnize a small white and silver object

Hi

I have a very small object (3x6mm) in white with silver markings (please se attached image, where grey is silver).
The object will be moving horizontally from right to left (according to image), but I do not know which end is in the moving direction - the solid or the two smaller markings.

I’m hoping to be able to detect wich way the object is moving (or turning, if I stop the motion).
…the purpose is to send it in different directions based on the direction the object is being feeded.

Will I be able to do so with a pixy, and if so, could someone please help me determine how?
If not, does anyone have a suggestion to how I can achieve this?

NB.
Will be hooking it up with an Arduino.
The object will be moving (or be place) in an environment of my choise (though preferably in a shaped chute made of stainless steel) - I can control light ect.

Thank you very much!

Kind regards Taras

Hi Taras,

The object detection would work much better if the silver/gray areas were a brighter color since our algorithm is hue-based. Unfortunately that means black/white/gray won’t really work. If you really wanted to you could try altering our algorithm within the firmware to better suit your application.

As for determining the object direction, you should be getting three blocks from Pixy, representing the three colored areas. To determine which side is which, find the two blocks that have the same (or similar) x position (or y position if the object has a vertical orientation). Then compare that x position to the third block’s x position to know which side they are one. Does this make sense?

Good luck!

Scott

Hi Scott

Thanks alot!
Yes it makes sense.

Kind regards, Taras