View on GitHub

Automated Optical Measurement

Software solution for workpiece dimensional control

Machine vision application in workpiece dimensional control

Software solution was developed as a part of the automated measurement system. System is explained in detail in master’s thesis Machine vision application in workpieces dimensional control.

Summary

In the first section of the thesis, an automated visual inspection system for O-ring measurement is proposed. Measured O-ring features are also defined. Optical system components, calibration and setup are described. Measurement system software solution, developed using the Python programming language and the open-source software, is also introduced. Instructions for using software solution graphical interface are composed, and the algorithms for calibration, measurement and digital image preprocessing are defined.

The second part of thesis presents methods for measuring the O-ring using micrometer and the optical measurement system. The capability of each system is analyzed using the Six Sigma methodology. Optical measurement system sensitivity to the calibration is examined. Automated and manual measurement systems were compared by means of repeatability and reproducibility and intraclass correlation coefficient. Finally, the measures to increase the quality of the optical measurement system are proposed.

Getting started

  1. Install Python 3.6+ and all Prerequisites
  2. Connect Basler USB 3.0 Camera for image grabbing (exactly this type of camera is necessary for parameter control using pypylon)
  3. Run script main.py

Content

Structure:

Prerequisites

Drivers:

Python modules:

Video example

Example usage:

Measurement system analysis

Simple R script measurement_system_analysis.R for optical system capability analysis is located in folder measurement_analysis. Folder also contains input data in .csv format and output images.

R Libraries

Following R libraries are required to run script:

License

This project is licensed under the BSD 3-Clause License - see the LICENSE.md file for details