Microscope calibration overlays... What's the best approach?
DIY microscope kits such as https://www.kickstarter.com/projects/publiclab/the-community-microscope-kit , 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.
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: https://youtu.be/fnmG-ueE_3k. (Best viewed at full screen to see the screen overlay.)
A known reference is imaged and stored.
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: https://publiclab.org/notes/amirberAgain/01-12-2018/python-and-opencv-to-analyze-microscope-slide-images-of-airborne-particleshttps://publiclab.org/notes/MaggPi/06-05-2018/usb-webcam-vs-raspberry-pi-v2-field-of-view-fov-comparison-community-microscope-initial-evaluation-2 Software posted at: https://github.com/MargaretAN9/Peggy/blob/master/Pi Camera/videooverlayfinal.py