Search code examples
matlabwebcamsensors

Sensor size of webcam


Using the calibration methods (Matlab or OpenCV), one can find the focal length of a webcam. I am wondering if there is anyway to measure the sensor size of a webcam as well?

Thanks


Solution

  • it is pixel size * resolution

    resolution is nothing but image width * height in pixels

    in general pixel size is written at the specs of the camera; if you dont know, then pinhole camera model

    f / (distance to object in mm) = (object length in pixels) * (pixel size in mm) / (object length in mm)
    

    may help you calculate that. you should use an object with known size and at a precise distance to use the formula.