<< return to Pixycam.com

Determining Distance

Hi,

I am working with the pixy camera and trying to figure out a way for the pixy camera to be able to determine the Distance of an object given the height and width. Is there a way for the distance to be determined using the area?? If so, how is it possible to determine the distance?? Thank you

Hey B,

if you know how large the object is, and you’re using a fixed set of unique objects whose sizes are known, you could infer distance based on area. Otherwise, there’s no built-in way to do this using Pixy. You could try using an ultrasonic rangefinder and integrating that data in your program.

Hope this helps!

Best,
Jesse