Public Lab Research note

Microscope calibration overlays… What’s the best approach?

by MaggPi |

Read more:

Research question

Microscope calibration overlays… What’s the best approach?


DIY microscope kits such as , seek to develop tools that are ‘affordable and simple as possible while still providing great microscopic images’. One option to simplify microscopic measurement is to create overlays that provide a scale reference.

Microscope calibration procedures typically use a very small ruler of a known length that will permit an accurate comparison for additional measurements. For example:

Using computer vision techniques it is possible to measure the ruler and display calibration references directly on a video display. The advantages of video overlay is that the viewer can see a reference scale and image at the same time.

Overlay Example

To demonstrate how a reference overlay could be used to assist microscopic measurements, computer vision software (opencv) was used to measure a calibrated ruler and then display a grid pattern.

A video run thru is at: (Best viewed at full screen to see the screen overlay.)

Step 1

A known reference is imaged and stored.

Slide1.JPG Step 2. A computer program reads the image and prompts the user to input scale information from the reference image. The software automatically computes a scale ratio which is used to create a grid overlay. (Note that the microscopic objective and camera resolution cannot be changed from step 1.)


Step 3. New object is now inserted on the microscope stage and is compared with the grid overlay. The user can now easily scale the image as well as determine the total measurement area.


Note that the grid is square on the video display but rectangular when the image is converted to jpg format. The jpg grid measurement scale is consistent with the image scale.


This slide below demonstrates different type of overlay patterns.


Since there is wide range of techniques and display option available, this note request advice on best possible design and calibration methods.

-What is the best way to measure the reference and pass the data to the computer generated overlay? -What type of overlay should be generated? Color? Pattern? Live video or stored on image? -Should a grid be used at all? Would it be better to just generate a scale and insert on the image?

Note that I could also use computer vision to count the number of ruler divisions automatically. I didn’t want to program this step until other calibration reference options were considered.
The goal is to calibrate without the cost of a purchased reference.


The picture below attempts to use the side markings of a 5 dollar bill as a calibration reference. The irregular shapes would probably prevent any accurate measurements.


Related posts: Software posted at:

@warren, @icarito, @amirberAgain

calibration raspberry-pi microscope opencv gsoc-2018 community-microscope community-microscope-prototyping


I LOVE this!!!! Fantastic!!! ⚡⚡

You must be logged in to comment.