<< return to Pixycam.com

Angle

Hello to the community. I have a project with pixy and arduino. I want to determine the depth of a ball. how can i do this ? the angle provided from pixy is reffered to which point?

Hello John,
Pixy is not a depth camera, but you can use what’s called a “ground plane assumption” to infer the distance to an object. That is, if you point Pixy at the ground at say a 45 degree angle, objects that are on the ground will be lower in the image if they are closer to Pixy and objects that are farther from Pixy will be higher in the image.

You can also use the size of the object to determine the distance. (Pixy will provide you with the width and height of the detected object in the image.)

Regarding the angle, this only works with color codes:

http://cmucam.org/projects/cmucam5/wiki/Using_Color_Codes

Hope this helps!

Edward