Software Archive
Read-only legacy content
17061 Discussions

Sensor size and Pixel Size

Oluwasijibomi_O_
Beginner
641 Views
I would like to know the sensor size and the pixel size of the RealSense Camera. Does anyone know how I can find this information?
0 Kudos
1 Reply
samontab
Valued Contributor II
641 Views

You have QueryColorFocalLengthMM which gives you focal length in mm, and also QueryColorFocalLength, which gives you focal length in pixels.

With those two values you can get the size of a pixel in mm.

Or you could have more fun with trigonometry:

  1. Measure an object's width, in mm.
  2. Measure the object's distance to the camera, in mm. (Maybe use RealSense!).
  3. Look at the object with the camera you want to measure, and measure its width in number of pixels.
  4. The object width in pixels / the focal length in pixels = object width in mm / object distance in mm
0 Kudos
Reply