<< return to Pixycam.com

Quick one

Anyone can tell me why the x position and y position of the blocks have values from 0 to 319 and from 0 to 199 respectively? Those values are exactly the half of 640x400, the configured resolution in order to get 50 fps, but I wanted to know why the half. Maybe is a dumb question, so sorry in advance ;).
Thanks!
Roberto Laso

Good question! Pixy’s color algorithm does a simple color interpolation of the raw Bayer pixels and ends up with an effective resolution of 320x200. http://en.wikipedia.org/wiki/Bayer_filter So imagine the simplest way to get an RGB pixel from a Bayer pattern is to grab a square of 2x2 pixels — average the greens, and grab the red and blue to form a 24 bit color pixel.

Thanks a lot Rich, that was helpful. The only doubt I have is the number of bits for a pixel. I looked in the vision sensor datasheet and I read literally : " the sensor provides full-frame, sub-sampled 8-bit/10-bit images in raw RGB format". Does it mean that Pixy needs more bits for save the information after the color interpolation?

Thanks in advance!

Roberto

The Omnivision chip outputs 10 bits per raw Bayer pixel, but we’re dropping the 2 bottom bits for 8 bits per pixel. I’m not sure if that answers your question (?)