79791864

Date: 2025-10-16 07:04:05
Score: 1
Natty:
Report link

Based on your image and your code.This is some advice for you:

  1. lighting condition and image preprocessing: try Gamma correction to improve object lightness.

  2. Binary: do not using Sobel and try to cv2.threshold with Ostu.

  3. Blob analyze:you can filter the real defects by Blob's area,arclength,height,width and so on.It's easy for your solution that using cv2.boundingRect to get the roi of blobs,then calculate the mean of pixel gray of region.

Those printing defects which shown on your image,the average pixel value of the area where they are located will be significantly different from the background.

Reasons:
  • Long answer (-0.5):
  • No code block (0.5):
  • Low reputation (1):
Posted by: Akira