Automation solutions · Industrial IoT · Equipment & sensorsHo Chi Minh City, Vietnam · +84 394 469 461
Send your request ↗
EN ▾
Machine vision05/11/2026

Camera calibration: why a sharp image can still give wrong dimensions

Camera calibration: why a sharp image can still give wrong dimensions

A crisp photograph is not necessarily a precise measurement. To inspect holes, jar dimensions or part positions, you need to know how image coordinates map to real-world coordinates.

Hands-on references

OpenCV — Camera Calibration demonstrates checkerboard-based calibration, camera matrices, distortion coefficients and undistortion.

OpenCV — Camera Calibration Guide also discusses checkerboard, ChArUco and circle-grid targets.

Common error sources

Lens distortion: Features near frame edges may be displaced or scaled differently.

Perspective: The imaging scale depends on object depth and orientation for conventional perspective lenses.

Mechanical and processing variation: Camera movement, focus drift, part fixturing and edge-detection uncertainty all affect a measurement.

Practical calibration workflow

  1. Fix the camera, lens, focus, working distance and acquisition resolution.
  2. Use an accurately measured checkerboard or ChArUco target.
  3. Capture multiple target orientations spanning the image field.
  4. Estimate intrinsics and distortion using OpenCV.
  5. Undistort images and, for a planar inspection surface, compute an image-to-world mapping such as a homography.
  6. Verify dimensions using an independent reference artifact at several image locations.

Why a single pixel/mm factor is risky

A constant scale factor assumes controlled geometry. Tilting the part or changing its height violates that assumption with ordinary perspective lenses.

For tight tolerances, include pixel sampling, edge localisation, fixture repeatability and geometry in the error budget. Consider a telecentric lens where dimensional accuracy and height variation demand it.

Try this: Measure a reference at the center and corners, before and after calibration, then raise it slightly and quantify the change.

Sources: OpenCV Python calibration tutorial · OpenCV calibration guide.

Independent technical analysis; demos and media belong to their cited sources.

Cover image: Checkerboard calibration captures from Camera Calibration with PiCamera2/OpenCV.

Have a problem to solve?

Need advice on a solution or equipment for your production line?

Send us your current setup, specifications or requirements. Our engineers will discuss it with you and propose a suitable approach.

← Back to home