Machine Vision & Industrial Inspection AI calculator
Camera Resolution Calculator
Check pixel sampling before specifying the camera for your smallest feature. You need field width, active pixel count, feature size and the validated pixel requirement.
What this calculator does
- Calculate object-space pixel size and check whether your specified feature spans the validated number of pixels.
Formula used
- Object-space pixel size = field width ÷ horizontal pixels
- Feature pixels = feature size × horizontal pixels ÷ field width
- Required horizontal pixels = ceil(field width × required feature pixels ÷ feature size)
- Sampling headroom = feature pixels − required feature pixels
Inputs explained
- Horizontal Field of View: Measured or calibrated field width at the part surface.
- Camera Horizontal Pixel Count: Active horizontal pixels after cropping or binning.
- Smallest Specified Feature: Minimum feature width from the inspection specification.
- Validated Pixels per Feature: Pixel span established by your application validation.
How to use the result
- Best suited to camera specification, inspection crop review.
- Pixel sampling alone does not establish optical resolution or detection reliability.
Common questions
- Should I use megapixels here? No. Enter active horizontal pixel count along the same axis as the field width, after cropping or binning.
- Does a smaller mm/px guarantee detection? No. It improves sampling, but poor contrast, focus or motion blur can still hide a defect.
- Where does the required pixel count come from? Use the pixel span demonstrated by validation for your feature and algorithm. The illustrative default is not a universal detection threshold.
- Why round required sensor pixels upward? The camera must provide a whole number of pixels. Rounding down could leave the specified feature below your sampling requirement.
Last reviewed 2026-10-23.