Defect detection algorithm - Sandblasting
16 views (last 30 days)
I'm currently creating an algorithm to detect incorrectly sandblasted components via image.
I've separated the component from the background, but need to detect the defect (depicted by more "sparkly bits"). I assume that I could compare the quantity of white pixels ("sparkly bits") with a healthy component in order to detect the defect. How can i measure the quantity of white pixels?
This may be a broad question but any direction would be greatly appreciated.
Tarunbir Gambhir on 17 Mar 2021
I recommend you use different morphological operations to process this information from images. I also suggest you go through the following examples for more information on how to use these functions.