1: I have below ok image.

and below is not ok image.

What are algorithm using image processing or deep learning I can try on this, so that I can make not ok image as defected image.

2: same part from backside. ok image

nok ok image

    @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.

      SwapnilBhole

      1. 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.

      2. 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.

      3. 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