This paper proposes a visual inspection algorithm based on OpenCV to address the issue of bubbles in polarizers during attachment, which has the potential to reduce yield and reliability due to hardware, attachment parameters, and material characteristics. An industrial camera is used to capture real-time images of flexible OLED panels that already have attached polarizers. The captured images are subjected to grayscale conversion and median filtering to remove noise. Edge detection is then performed using the Canny operator and binary processing to mark the bubble edges. The bubble edge area is filled, and the area of the bubble is calculated, with larger bubbles filtered out. Comparative experiments demonstrate that this visual inspection algorithm based on OpenCV can achieve reliable detection results even under uneven illumination and severe reflection conditions. The proposed algorithm has significant value in addressing the issue of bubbles in polarizer attachment and can be applied in industrial production.
|