Colorimetric analysis based automated alarm to indicate chemical process completion
Using Python3 and OpenCV to monitor solution colour frame-by-frame and trigger an alarm when a titration reaches completion.
Colorimetric analysis involves examining the colour of a solution in an image. This example demonstrates the technique during a titration process, where a titrant is added to an analyte.
Methodology
The approach leverages image processing to monitor solution colour and determine when titration reaches completion. The implementation uses Python3 and OpenCV to analyze video on a frame-by-frame basis. For each frame, the system samples an image kernel from a consistent location and calculates the average red, green and blue channel values.
Results
The resulting graph illustrates how the three colour components (red, green and blue) evolve over time. These colour variations in the solution enable activation of an alarm signal upon process completion.
Applications
Similar video-analytics techniques can be adapted to analyze other industrial processes or perform quality-control assessments on assembly lines.
Code availability
The implementation code is available on GitHub.