I'm working on a project where I need to measure the size of a 2D object on a flat surface from an image. I have total freedom to create a reference with any shape and size.

The camera I am using is the raspberry pi cam.

My question is simple: what is the best reference to use?


Ended up using this thanks to Peter K..

  • $\begingroup$ Added some more info :) $\endgroup$ – Daniel Severo Apr 6 '16 at 13:48

The usual way to do this is to form a calibration plate. One way to form a calibration plate is to place known-shaped "fiducials" in a known-sized array on the surface where you want to do the measurement.

Then, knowing the measurements of the calibration plate, you can count pixels and do a map from pixels in each direction (possibly in each area of the image) to real-world measurements.

You also need to know that your camera will always be in a fixed location relative to the measurement surface, and that the lighting is good enough for you to pick up the external shape of the object.

An example of one possible calibration plate is below.

enter image description here

  • $\begingroup$ Sorry I took so long. Thanks for the help! This was definitely the initial push I needed to refine my research. :D $\endgroup$ – Daniel Severo Apr 18 '16 at 22:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.