Color variation for industrial part
Hi SwapnilBhole
Again, the same as https://discuss.luxonis.com/d/2624-crack-detection-using-oak-d-pro-poe/2.
You should be able to train a model that recognizes both cracks as well as discoloration as a defect.
Thanks,
Jaka
@jakaskerl Is there any algorithm using image processing that can useful for discoloration as a defect.
I will try using deep learning, but, just wanted to know, how this can be done using image processing.
Thresholding
Color Thresholding: If the discoloration is of a specific color, you can isolate that color using color thresholding. For example, if the defect is a specific shade of red, you can set thresholds to capture just those red tones.
Adaptive Thresholding: Useful when lighting conditions vary across different parts of the image.Histogram Analysis
Analyze the color histogram of the image to identify significant deviations in color distribution. This can be effective if the discoloration affects the color distribution noticeably.
Clustering
Techniques like K-means clustering can be used to segment the image based on color or intensity. This can help in isolating regions with discoloration.
Thanks,
Jaka
jakaskerl Thanks. I will try