The rust detection algorithm uses colour based image processing technique to detect and segment the region of metal affected by rust. I developed this code for my friend who was studying the effect of a solution on different metals to preventing rusting.
Using the algorithm, it was easy to compare the number of pixels corresponding to rusted area of metal. Since the arrangement of camera while taking the image is fixed, comparison directly in terms of pixels will work well.
- Clone this repo to your local machine using
https://github.com/kaustubh-Beta/Rust-detection-algorithmm.git
The code is written in Python (
Python3
) You need the following libraries
- numpy
- OpenCV