CN118570215B - A method for detecting edge collapse defects of optical wafers - Google Patents
A method for detecting edge collapse defects of optical wafers Download PDFInfo
- Publication number
- CN118570215B CN118570215B CN202411061659.8A CN202411061659A CN118570215B CN 118570215 B CN118570215 B CN 118570215B CN 202411061659 A CN202411061659 A CN 202411061659A CN 118570215 B CN118570215 B CN 118570215B
- Authority
- CN
- China
- Prior art keywords
- image
- area
- unit
- light
- light passing
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/02—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness
- G01B11/03—Measuring arrangements characterised by the use of optical techniques for measuring length, width or thickness by measuring coordinates of points
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01B—MEASURING LENGTH, THICKNESS OR SIMILAR LINEAR DIMENSIONS; MEASURING ANGLES; MEASURING AREAS; MEASURING IRREGULARITIES OF SURFACES OR CONTOURS
- G01B11/00—Measuring arrangements characterised by the use of optical techniques
- G01B11/26—Measuring arrangements characterised by the use of optical techniques for measuring angles or tapers; for testing the alignment of axes
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/95—Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/20—Image enhancement or restoration using local operators
- G06T5/30—Erosion or dilatation, e.g. thinning
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/70—Denoising; Smoothing
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/13—Edge detection
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/136—Segmentation; Edge detection involving thresholding
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/10—Segmentation; Edge detection
- G06T7/187—Segmentation; Edge detection involving region growing; involving region merging; involving connected component labelling
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/60—Analysis of geometric attributes
- G06T7/62—Analysis of geometric attributes of area, perimeter, diameter or volume
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/8851—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges
- G01N2021/8887—Scan or image signal processing specially adapted therefor, e.g. for scan signal adjustment, for detecting different kinds of defects, for compensating for structures, markings, edges based on image processing techniques
-
- G—PHYSICS
- G01—MEASURING; TESTING
- G01N—INVESTIGATING OR ANALYSING MATERIALS BY DETERMINING THEIR CHEMICAL OR PHYSICAL PROPERTIES
- G01N21/00—Investigating or analysing materials by the use of optical means, i.e. using sub-millimetre waves, infrared, visible or ultraviolet light
- G01N21/84—Systems specially adapted for particular applications
- G01N21/88—Investigating the presence of flaws or contamination
- G01N21/95—Investigating the presence of flaws or contamination characterised by the material or shape of the object to be examined
- G01N2021/9511—Optical elements other than lenses, e.g. mirrors
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Vision & Pattern Recognition (AREA)
- Immunology (AREA)
- Biochemistry (AREA)
- General Health & Medical Sciences (AREA)
- Analytical Chemistry (AREA)
- Pathology (AREA)
- Chemical & Material Sciences (AREA)
- Life Sciences & Earth Sciences (AREA)
- Health & Medical Sciences (AREA)
- Signal Processing (AREA)
- Geometry (AREA)
- Quality & Reliability (AREA)
- Image Analysis (AREA)
Abstract
Description
技术领域Technical Field
本发明涉及缺陷检测技术领域,特别涉及一种光通片崩边缺陷检测方法。The present invention relates to the technical field of defect detection, and in particular to a method for detecting edge collapse defects of a light-transmitting wafer.
背景技术Background Art
光通片又称光学薄膜片,其生产过程复杂且精密,在激光器、太阳能电池、光纤通信等诸多领域中扮演着重要的角色。崩边缺陷是指光通片在生产过程中由于切割不当或镀膜不均等原因,使其边缘出现一系列的,诸如剥落、裂纹或不均匀的边缘等问题,这种缺陷会导致产品性能下降,甚至使其无法正常使用。Optical film, also known as optical thin film, has a complex and precise production process and plays an important role in many fields such as lasers, solar cells, and optical fiber communications. Edge collapse refers to a series of problems such as peeling, cracks, or uneven edges on the edges of optical film due to improper cutting or uneven coating during the production process. This defect will lead to a decline in product performance and even make it unable to be used normally.
目前,光通片崩边缺陷的检测方法是工人通过使用显微镜检查每个光通片单元的边缘区域。由于一般的光通片包括多个光通片单元,每个光通片单元长度在1.4-2.5毫米之间,为此工人需使用10倍目镜,通过手动小幅度调整光通片位置,以观察每个光通片单元的缺陷情况,这一过程不仅耗时费力,还极易出现疏忽和错误。此外,传统的检测方法需要大量的人力资源和培训,导致人工检查成本居高不下。At present, the method of detecting the edge collapse defects of optical pass sheets is for workers to use a microscope to check the edge area of each optical pass sheet unit. Since a general optical pass sheet includes multiple optical pass sheet units, each optical pass sheet unit is between 1.4-2.5 mm in length, workers need to use a 10x eyepiece to manually adjust the position of the optical pass sheet in small increments to observe the defects of each optical pass sheet unit. This process is not only time-consuming and labor-intensive, but also prone to negligence and errors. In addition, traditional detection methods require a lot of human resources and training, resulting in high manual inspection costs.
因此,迫切需要提供一种高效、准确的崩边缺陷检测方法。这种方法可以显著提升光通片的生产质量,确保每个产品都达到高标准,同时减少对人工干预的需求,从而降低制造成本。这也有助于提高产品的可靠性,减少售后服务和产品召回的风险。Therefore, there is an urgent need to provide an efficient and accurate method for detecting chipping defects. This method can significantly improve the production quality of optical wafers, ensuring that each product meets high standards, while reducing the need for manual intervention, thereby reducing manufacturing costs. This also helps to improve product reliability and reduce the risk of after-sales service and product recalls.
发明内容Summary of the invention
针对现有技术中存在的技术问题,本发明的目的是:提供一种光通片崩边缺陷检测方法。In view of the technical problems existing in the prior art, the purpose of the present invention is to provide a method for detecting edge collapse defects of a light-transmitting wafer.
本发明的目的通过下述技术方案实现:一种光通片崩边缺陷检测方法,包括以下步骤:The purpose of the present invention is achieved through the following technical solution: A method for detecting edge collapse defects of a light-through sheet comprises the following steps:
S1、原始光通片图像获取步骤:首先,通过图像采集装置获取原始光通片图像,原始光通片图像中包含多个光通片单元图像;S1, step of acquiring an original light sheet image: first, acquiring an original light sheet image through an image acquisition device, wherein the original light sheet image includes a plurality of light sheet unit images;
S2、尺寸信息获取步骤:将步骤一获取的原始光通片图像转化为灰度图像,并进行高斯模糊处理,使用OpenCV4.5.1库中的Sobel算子对高斯模糊处理后的灰度图像进行边缘特征的提取,获取Sobel图像;对Sobel图像进行二值化处理,突出光通片单元边缘特征,以获取边缘二值化图像;之后对边缘二值化图像进行一次连通区域检测,进而去除边缘二值化图像中面积小于设定值的杂质区域,之后根据边缘查找算法获取边缘二值化图像中的边缘轮廓,再通过多边形逼近算法对边缘二值化图像中边缘轮廓进行多边形逼近,获取逼近轮廓;接着在逼近轮廓中选取凸四边形轮廓,通过获取凸四边形轮廓顶点坐标,计算凸四边形轮廓四个夹角余弦值的最大值并与设定余弦值范围进行对比,若凸四边形轮廓四个夹角余弦值的最大值在设定余弦值范围内,则判断凸四边形轮廓的形状接近矩形,从而筛选出形状接近矩形的凸四边形轮廓,并通过Opencv中的MinAreaRect算子获取筛选出的凸四边形轮廓的最小外接倾斜矩形,得到最小外接倾斜矩形四个顶点坐标,即根据四个顶点坐标获取合格光通片单元实际的长度和宽度以及旋转角度信息;S2, size information acquisition step: convert the original optical pass film image obtained in step 1 into a grayscale image, and perform Gaussian blur processing, use the Sobel operator in the OpenCV4.5.1 library to extract the edge features of the grayscale image after Gaussian blur processing, and obtain the Sobel image; binarize the Sobel image to highlight the edge features of the optical pass film unit to obtain the edge binary image; then perform a connected area detection on the edge binary image, and then remove the impurity area with an area smaller than the set value in the edge binary image, and then obtain the edge contour in the edge binary image according to the edge search algorithm, and then polygonize the edge contour in the edge binary image through the polygon approximation algorithm. shape approximation to obtain the approximated contour; then select a convex quadrilateral contour from the approximated contour, obtain the vertex coordinates of the convex quadrilateral contour, calculate the maximum value of the cosine values of the four angles of the convex quadrilateral contour and compare it with the set cosine value range, if the maximum value of the cosine values of the four angles of the convex quadrilateral contour is within the set cosine value range, then it is judged that the shape of the convex quadrilateral contour is close to a rectangle, thereby screening out convex quadrilateral contours with shapes close to rectangles, and obtain the minimum circumscribed tilted rectangle of the screened convex quadrilateral contour through the MinAreaRect operator in Opencv, and obtain the four vertex coordinates of the minimum circumscribed tilted rectangle, that is, obtain the actual length and width of the qualified optical pass unit and the rotation angle information according to the four vertex coordinates;
S3、预处理步骤:对步骤一获得的原始光通片图像进行预处理,将原始光通片图像向四周扩展,得到外扩图像;之后将外扩图像转换为二值化外扩图像,将像素分为前景像素和背景像素;接着进行一次开运算操作,减少二值化外扩图像中的噪点,以确保检测过程的准确性,获得去噪图像;S3, preprocessing step: preprocessing the original optical image obtained in step 1, expanding the original optical image to all sides to obtain an expanded image; then converting the expanded image into a binary expanded image, dividing the pixels into foreground pixels and background pixels; then performing an opening operation to reduce the noise in the binary expanded image to ensure the accuracy of the detection process and obtain a denoised image;
S4、光通片单元区域识别步骤:对步骤三获取的去噪图像进行连通区域检测;再根据步骤二计算的光通片单元的长宽信息计算合格光通片单元区域面积,通过乘以设定的面积比例,筛选出去噪图像中符合设定面积大小的连通区域;同时,对去噪图像进行一次Blob检测,筛选出去噪图像中所有接近合格光通片单元区域面积大小的Blob检测区域,进而得到光通片单元区域的中心位置坐标,中心位置坐标的X坐标加上步骤二获取的光通片单元长度的一半得到第一长值;中心位置坐标的X坐标减去步骤二获取的光通片单元长度的一半得到第二长值;中心位置坐标的Y坐标加上步骤二获取的光通片单元宽度的一半得到第一宽值;中心位置坐标的Y坐标减去步骤二获取的光通片单元宽度的一半得到第二宽值;若第一长值、第二长值、第一宽值或第二宽值超出在去噪图像中的原始光通片图像所在区域,则判断该光通片单元区域处于去噪图像边缘区域上并且为不完整光通片单元区域,去除去噪图像边缘区域上的不完整光通片单元区域;最后得到储存着由多个合格光通片单元区域组成的光通片单元组区域,之后按照索引在光通片单元组区域中逐个获取单个光通片单元所在区域;S4, the step of identifying the area of the optical pass sheet unit: performing a connected area detection on the denoised image obtained in step 3; then calculating the area of the qualified optical pass sheet unit area according to the length and width information of the optical pass sheet unit calculated in step 2, and screening out the connected areas in the denoised image that meet the set area size by multiplying by the set area ratio; at the same time, performing a Blob detection on the denoised image, screening out all Blob detection areas in the denoised image that are close to the area size of the qualified optical pass sheet unit area, and then obtaining the center position coordinates of the optical pass sheet unit area, and the X coordinate of the center position coordinates plus half of the length of the optical pass sheet unit obtained in step 2 to obtain the first length value; the X coordinate of the center position coordinates minus half of the length of the optical pass sheet unit obtained in step 2 to obtain to the second length value; the Y coordinate of the center position coordinate plus half of the width of the optical pass sheet unit obtained in step 2 obtains the first width value; the Y coordinate of the center position coordinate minus half of the width of the optical pass sheet unit obtained in step 2 obtains the second width value; if the first length value, the second length value, the first width value or the second width value exceeds the area where the original optical pass sheet image in the denoised image is located, it is determined that the optical pass sheet unit area is on the edge area of the denoised image and is an incomplete optical pass sheet unit area, and the incomplete optical pass sheet unit area on the edge area of the denoised image is removed; finally, an optical pass sheet unit group area consisting of a plurality of qualified optical pass sheet unit areas is obtained, and then the areas where the individual optical pass sheet units are located are obtained one by one in the optical pass sheet unit group area according to the index;
S5、光通片单元图像提取步骤:在步骤四获取的光通片单元组区域中按照索引逐个获取单个光通片单元所在区域,并创建光通片单元所在区域的最小外接矩形区域,再对此最小外接矩形区域进行膨胀操作,以确保最小外接矩形区域覆盖整个光通片单元,即得到光通片单元初步识别区域;之后利用光通片单元初步识别区域,提取外扩图像中包含的光通片单元图像部分,即获得第一次提取到的光通片单元图像;对第一次提取到的光通片单元图像进行二值化处理,以增强边缘特征,即获得二值化光通片单元图像;对二值化光通片单元图像进行连通区域检测与面积筛选,即得到最终光通片单元所在区域;之后,再对最终光通片单元所在区域创建最小外接矩形,即得到最终光通片单元外接矩形区域;之后利用最终光通片单元外接矩形区域,在第一次提取到的光通片单元图像中提取出最终光通片单元图像;S5, the step of extracting the image of the optical pass sheet unit: in the optical pass sheet unit group area obtained in step 4, the area where the single optical pass sheet unit is located is obtained one by one according to the index, and the minimum circumscribed rectangular area of the area where the optical pass sheet unit is located is created, and then the minimum circumscribed rectangular area is expanded to ensure that the minimum circumscribed rectangular area covers the entire optical pass sheet unit, that is, the preliminary identification area of the optical pass sheet unit is obtained; then, the optical pass sheet unit preliminary identification area is used to extract the optical pass sheet unit image part contained in the expanded image, that is, the optical pass sheet unit image extracted for the first time is obtained; the optical pass sheet unit image extracted for the first time is binarized to enhance the edge features, that is, the binary optical pass sheet unit image is obtained; the binary optical pass sheet unit image is connected to detect the area and screen the area, that is, the area where the final optical pass sheet unit is located is obtained; then, the minimum circumscribed rectangle is created for the area where the final optical pass sheet unit is located, that is, the final optical pass sheet unit circumscribed rectangular area is obtained; then, the final optical pass sheet unit circumscribed rectangular area is used to extract the final optical pass sheet unit image from the optical pass sheet unit image extracted for the first time;
S6、崩边检测步骤:计算步骤五中得到的最终光通片单元外接矩形区域的旋转角度,再根据步骤二计算的合格光通片单元实际的长度和宽度以及所设置的最小崩边值信息,对提取出来的最终光通片单元图像绘制测量矩形,检测最终光通片单元图像的边缘区域,利用形成的测量句柄计算最终光通片单元图像的长度,与步骤二得到的合格光通片单元实际的长度做对比,若小于设定范围值,判断为存在崩边并记录,重复检测整个光通片单元图像从而得到此光通片单元的崩边数量,如此按步骤五中的索引遍历所有光通片单元图像,进而判断每个光通片单元图像的崩边缺陷等级。S6, edge chipping detection step: calculate the rotation angle of the circumscribed rectangular area of the final optical pass unit obtained in step 5, and then draw a measurement rectangle for the extracted final optical pass unit image according to the actual length and width of the qualified optical pass unit calculated in step 2 and the set minimum edge chipping value information, detect the edge area of the final optical pass unit image, and use the formed measurement handle to calculate the length of the final optical pass unit image, and compare it with the actual length of the qualified optical pass unit obtained in step 2. If it is less than the set range value, it is determined that there is edge chipping and recorded, and the entire optical pass unit image is repeatedly detected to obtain the number of edge chips of this optical pass unit. In this way, all optical pass unit images are traversed according to the index in step 5, and the edge chipping defect level of each optical pass unit image is determined.
优选的,所述尺寸信息获取步骤包括:将原始光通片图像转化为灰度图像,并进行高斯模糊处理,之后使用OpenCV4.5.1库中的Sobel算子分别将高斯模糊后的灰度图像的X方向梯度图和Y方向梯度图转换为绝对值图像,并将高斯模糊后的灰度图像X方向梯度图和Y方向梯度图进行加权融合,生成总梯度图像,将总梯度图像分为前景和背景,突出高斯模糊后的灰度图像中各个光通片单元边缘区域特征,得到Sobel图像;再使用自适应阈值法将Sobel图像进行二值化,将Sobel图像分为边缘区域和非边缘区域,进而获取边缘二值化图像;Preferably, the size information acquisition step includes: converting the original optical pass sheet image into a grayscale image, and performing Gaussian blur processing, and then using the Sobel operator in the OpenCV4.5.1 library to convert the X-direction gradient map and the Y-direction gradient map of the grayscale image after Gaussian blur into absolute value images, and weightedly fusion the X-direction gradient map and the Y-direction gradient map of the grayscale image after Gaussian blur to generate a total gradient image, and divide the total gradient image into a foreground and a background, and highlight the edge area features of each optical pass sheet unit in the grayscale image after Gaussian blur to obtain a Sobel image; and then using an adaptive threshold method to binarize the Sobel image, and divide the Sobel image into an edge area and a non-edge area, and then obtain an edge binary image;
对边缘二值化图像进行一次连通区域检测,进而去除边缘二值化图像中面积小于设定值的杂质区域,其基本原理是:从边缘二值化图像左上角到右下角遍历图像像素,当遇到一个未被标记的前景像素,开始一个新的连通区域的标记;对于当前的前景像素,通过搜索其相邻像素来扩展该连通区域;若相邻像素也是前景像素并且未被标记,则会被标记为同一个连通区域;继续遍历图像的每个像素,直到所有的前景像素都被分配到相应的连通区域;Perform a connected region detection on the edge binary image, and then remove the impurity area whose area is smaller than the set value in the edge binary image. The basic principle is: traverse the image pixels from the upper left corner to the lower right corner of the edge binary image, and when encountering an unmarked foreground pixel, start marking a new connected region; for the current foreground pixel, expand the connected region by searching its adjacent pixels; if the adjacent pixel is also a foreground pixel and is not marked, it will be marked as the same connected region; continue to traverse each pixel of the image until all foreground pixels are assigned to the corresponding connected region;
最终,边缘二值化图像中的每个像素都包含一个特定面积大小的连通区域的标签,此标签用于识别各区域,进而去除边缘二值化图像中小于设定面积的杂质区域;Finally, each pixel in the edge binary image contains a label of a connected region of a specific size, which is used to identify each region and remove impurity regions smaller than the set area in the edge binary image.
之后根据边缘查找算法获取边缘二值化图像中的边缘轮廓,再对边缘二值化图像中边缘轮廓进行多边形逼近,获取逼近轮廓;接着在逼近轮廓中选取凸四边形轮廓,获取凸四边形轮廓顶点坐标;根据凸四边形轮廓顶点坐标互相计算夹角余弦值,通过计算相邻三个点,,形成的两个向量之间的夹角余弦值并选择最大值来判断获取到的凸四边形轮廓顶点坐标是否符合设定条件,即判断凸四边形的形状是否接近矩形,具体如下式:Then, the edge contour in the edge binary image is obtained according to the edge search algorithm, and then the edge contour in the edge binary image is approximated by polygon to obtain the approximated contour; then the convex quadrilateral contour is selected in the approximated contour to obtain the vertex coordinates of the convex quadrilateral contour; the cosine value of the angle is calculated based on the vertex coordinates of the convex quadrilateral contour, and the angle between the three adjacent points is calculated. , , The cosine value of the angle between the two vectors is formed and the maximum value is selected to determine whether the coordinates of the convex quadrilateral contour vertices obtained meet the set conditions, that is, to determine whether the shape of the convex quadrilateral is close to a rectangle, as shown in the following formula:
式中为凸四边形第i个顶点的x坐标值,为凸四边形第i个顶点的y坐标值,为凸四边形第i+1个顶点的x坐标值,为凸四边形第i+1个顶点的y坐标值,为凸四边形第i+2个顶点的x坐标值,为凸四边形第i+2个顶点的y坐标值,为向量和向量两向量的夹角,为第i个顶点与第i+1个顶点组成的向量值,为第i+1个顶点与第i+2个顶点组成的向量值,为计算得到的最大余弦值,若的值小于0.4,则认为该凸四边形的形状接近矩形,该凸四边形轮廓为合格光通片轮廓;In the formula is the x-coordinate value of the ith vertex of the convex quadrilateral, is the y coordinate value of the i-th vertex of the convex quadrilateral, is the x-coordinate value of the i+1th vertex of the convex quadrilateral, is the y coordinate value of the i+1th vertex of the convex quadrilateral, is the x-coordinate value of the i+2th vertex of the convex quadrilateral, is the y coordinate value of the i+2th vertex of the convex quadrilateral, For vector and vector The angle between two vectors, is the vector value composed of the i-th vertex and the i+1-th vertex, is the vector value composed of the i+1th vertex and the i+2th vertex, is the maximum cosine value calculated, if If the value of is less than 0.4, it is considered that the shape of the convex quadrilateral is close to a rectangle, and the contour of the convex quadrilateral is a qualified light pass sheet contour;
创建合格光通片轮廓的最小外接倾斜矩形,得到最小外接倾斜矩形四个顶点坐标,下式是通过最小外接倾斜矩形四个顶点坐标计算最小外接倾斜矩形的长度、宽度以及旋转角度公式:Create the minimum circumscribed tilted rectangle of the qualified light pass sheet outline and obtain the coordinates of the four vertices of the minimum circumscribed tilted rectangle. The following formula is used to calculate the length, width and rotation angle of the minimum circumscribed tilted rectangle through the coordinates of the four vertices of the minimum circumscribed tilted rectangle:
式中,为最小外接倾斜矩形长度,为最小外接倾斜矩形宽度,为最小外接倾斜矩形旋转角度,为最小外接倾斜矩形数量,为第个最小外接倾斜矩形第1个点即左上角点的x坐标值,为第个最小外接倾斜矩形第1个点即左上角的y坐标值,为第个最小外接倾斜矩形第2个点即右上角点的x坐标值,为第个最小外接倾斜矩形第2个点即右上角点的y坐标值,为第个最小外接倾斜矩形第3个点即右下角点的x坐标值,为第个最小外接倾斜矩形第3个点即右下角点的y坐标值;计算最小外接倾斜矩形的长度、宽度以及旋转角度信息得到对应的合格光通片单元的长宽、旋转角度信息,计算所得的最小外接倾斜矩形长度对应光通片单元的长度,计算所得的最小外接倾斜矩形宽度对应光通片单元的宽度,计算所得的最小外接倾斜矩形旋转角度对应光通片单元的旋转角度,根据识别到的光通片单元的长度、宽度以及旋转角度信息进行之后的崩边检测操作。In the formula, is the minimum circumscribed inclined rectangle length, is the minimum circumscribed oblique rectangle width, is the minimum circumscribed tilted rectangle rotation angle, is the minimum number of circumscribed inclined rectangles, For the The x-coordinate value of the first point of the smallest circumscribed tilted rectangle, which is the upper left corner. For the The y coordinate value of the first point of the smallest circumscribed tilted rectangle, which is the upper left corner. For the The x-coordinate value of the second point of the smallest circumscribed tilted rectangle, i.e. the upper right corner. For the The y coordinate value of the second point of the smallest circumscribed tilted rectangle, which is the upper right corner point. For the The x-coordinate value of the third point of the smallest circumscribed tilted rectangle, which is the lower right corner. For the The y coordinate value of the third point of the minimum circumscribed tilted rectangle, i.e., the lower right corner point; the length, width and rotation angle information of the minimum circumscribed tilted rectangle are calculated to obtain the length, width and rotation angle information of the corresponding qualified optical pass unit, and the length of the minimum circumscribed tilted rectangle is calculated. Corresponding length of the optical pass unit , the calculated minimum enclosing oblique rectangle width Corresponding to the width of the optical pass unit , the calculated minimum circumscribed tilted rectangle rotation angle Corresponding to the rotation angle of the optical channel unit The subsequent edge collapse detection operation is performed based on the length, width and rotation angle information of the identified optical pass unit.
优选的,所述预处理步骤包括:将原始光通片图像向四周扩展第一设定数量像素,获得外扩图像;Preferably, the preprocessing step includes: expanding the original light-through-sheet image by a first set number of pixels to obtain an outward-expanded image;
将外扩图像进行二值化操作,采取大津算法来分割外扩图像,使外扩图像前景和背景之间的类间方差最大化,从而得到将外扩图像分成前景和背景两个部分的阈值,该阈值将外扩图像分成前景和背景两个部分,最终获取二值化外扩图像。The outward-expanded image is binarized, and the Otsu algorithm is used to segment the outward-expanded image to maximize the inter-class variance between the foreground and background of the outward-expanded image, thereby obtaining a threshold for dividing the outward-expanded image into foreground and background. The threshold divides the outward-expanded image into foreground and background, and finally obtains a binary outward-expanded image.
优选的,所述开运算操作包括:将二值化外扩图像进行开运算操作,去除二值化外扩图像上存在的噪点或孔洞,包括以下步骤:先进行腐蚀操作,然后进行膨胀操作;腐蚀操作会使二值化外扩图像中的物体缩小,去除边界上的噪点;膨胀操作会使二值化外扩图像中的物体重新增长,并恢复到原始形状;通过这两个操作的组合,消除噪点并保持二值化外扩图像中的物体的整体形状,此步骤获得去除噪点或孔洞的去噪图像。Preferably, the opening operation includes: performing an opening operation on the binary expanded image to remove noise or holes on the binary expanded image, including the following steps: first performing an erosion operation and then performing an expansion operation; the erosion operation will shrink the objects in the binary expanded image and remove the noise on the boundary; the expansion operation will cause the objects in the binary expanded image to grow again and restore to their original shape; through the combination of these two operations, the noise is eliminated and the overall shape of the objects in the binary expanded image is maintained, and this step obtains a denoised image with noise or holes removed.
优选的,所述目标区域识别步骤包括:在外扩图像中将各个光通片单元所在区域提取出来,包括以下步骤:Preferably, the target area recognition step includes: extracting the area where each optical pass sheet unit is located in the external expansion image, including the following steps:
连通区域检测:对去噪图像进行连通区域检测,获取多个光通片单元区域;Connected region detection: Perform connected region detection on the denoised image to obtain multiple optical pass unit regions;
多个光通片单元区域选择:根据计算得到的光通片单元的长宽计算合格光通片单元区域面积,通过乘以设定的面积比例,筛选出去噪图像中面积大小在设定范围内的连通区域,即选择设定大小的合格光通片单元区域面积的区域,其中代表光通片单元的长度,代表光通片单元的宽度;Multiple light pass unit area selection: Calculate the qualified light pass unit area based on the calculated length and width of the light pass unit , by multiplying by the set area ratio, the connected areas in the denoised image whose area size is within the set range are screened out, that is, the area of the qualified optical pass unit area of the set size is selected, where Represents the length of the light channel unit, Represents the width of the optical pass unit;
去除图像边缘区域上的不完整光通片单元区域,包括以下步骤:Removing the incomplete light pass unit area on the edge area of the image includes the following steps:
使用Blob检测获取光通片单元坐标信息:Blob检测器对检测样式进行设定,使Blob检测器仅检测四边形样式的斑块,Blob检测器对检测面积进行设定,使Blob检测器筛除在设定面积大小范围外的斑块;使用配置完成的Blob检测器直接检测去噪图像,获得个筛选出的斑块,进而获得个光通片单元中心坐标;Use Blob detection to obtain the coordinate information of the light channel unit: the Blob detector sets the detection style so that the Blob detector only detects quadrilateral patches, and sets the detection area so that the Blob detector screens out patches outside the set area size range; use the configured Blob detector to directly detect the denoised image and obtain The selected plaques are then obtained The center coordinates of the light channel unit;
在去噪图像边缘区域上的不完整光通片单元区域的去除:通过个光通片单元中心坐标,结合步骤二获取的光通片单元长度和宽度,根据下面公式判断第i个光通片单元区域是否处于去噪图像边缘区域上:Removal of incomplete light-pass unit areas at the edge of the denoised image: The center coordinates of the light pass unit are combined with the length and width of the light pass unit obtained in step 2 to determine whether the i-th light pass unit area is on the edge area of the denoised image according to the following formula:
若,则认为第i个光通片单元区域不在去噪图像边缘区域上,其中,代表第i个光通片单元中心的x坐标,代表第i个光通片单元中心的y坐标,代表光通片单元的长度,代表光通片单元的宽度,代表光通片单元的旋转角度,L代表去噪图像长度,W代表去噪图像宽度,M代表进行像素外扩的设定数量;否则,认为该光通片单元区域处于去噪图像边缘区域上并且为不完整光通片单元区域,实际检测将在去噪图像边缘区域上的不完整光通片单元区域去除,即得到储存着由多个合格光通片单元区域组成的光通片单元组区域,之后按照索引在光通片单元组区域中逐个获取单个光通片单元所在区域。like , it is considered that the i-th optical pass unit area is not on the edge area of the denoised image, where , represents the x-coordinate of the center of the ith light channel unit, represents the y coordinate of the center of the i-th light channel unit, Represents the length of the light channel unit, Represents the width of the optical pass unit, Represents the rotation angle of the optical pass unit, L represents the length of the denoised image, W represents the width of the denoised image, and M represents the set number of pixels to be expanded; otherwise, it is considered that the optical pass unit area is on the edge area of the denoised image and is an incomplete optical pass unit area. The actual detection removes the incomplete optical pass unit area on the edge area of the denoised image, that is, the optical pass unit group area composed of multiple qualified optical pass unit areas is obtained, and then the area where the single optical pass unit is located is obtained one by one in the optical pass unit group area according to the index.
优选的,所述目标单元图像提取步骤包括:Preferably, the target unit image extraction step includes:
在光通片单元组区域中按照索引逐个获取每个光通片单元所在区域,并创建光通片单元所在区域的最小外接矩形区域;In the optical pass unit group area, the area where each optical pass unit is located is obtained one by one according to the index, and the minimum circumscribed rectangular area of the area where the optical pass unit is located is created;
对光通片单元最小外接矩形区域进行膨胀处理,将光通片单元外接矩形区域向四周扩展设定大小,获得光通片单元初步识别区域;The minimum circumscribed rectangular area of the optical pass unit is expanded, and the circumscribed rectangular area of the optical pass unit is expanded to a set size in all directions to obtain a preliminary identification area of the optical pass unit;
对光通片单元图像进行第一次提取,通过遍历外扩图像的每个像素,并将超出光通片单元初步识别区域的像素剔除掉,获得第一次提取到的光通片单元图像;The light pass unit image is extracted for the first time, by traversing each pixel of the external expansion image and removing the pixels beyond the initial identification area of the light pass unit, to obtain the light pass unit image extracted for the first time;
对第一次提取到的光通片单元图像进行二值化操作,使第一次提取到的光通片单元图像中的光通片单元调整为白色,背景调整为黑色,从而获得二值化光通片单元图像;Performing a binarization operation on the light pass sheet unit image extracted for the first time, so that the light pass sheet unit in the light pass sheet unit image extracted for the first time is adjusted to white, and the background is adjusted to black, thereby obtaining a binarized light pass sheet unit image;
连通区域检测:对二值化光通片单元图像进行连通区域检测,每个连通区域在二值化光通片单元图像中用不同的灰度值来表示,即获取包含单个光通片单元区域在内的多个连通区域;Connected region detection: Connected region detection is performed on the binary optical pass sheet unit image. Each connected region is represented by a different grayscale value in the binary optical pass sheet unit image, that is, multiple connected regions including a single optical pass sheet unit region are obtained;
单个光通片单元区域面积筛选:将得到的合格光通片单元区域面积乘以设定的第一面积比例,筛选出第一次提取到的光通片单元图像中在设定面积大小范围内的连通区域,即得到最终的光通片单元所在区域,之后将最终的光通片单元所在区域转换为最终光通片单元外接矩形区域;Screening of the area of a single optical pass unit: The area of a qualified optical pass unit is Multiplying by the set first area ratio, screening out the connected areas within the set area size range in the optical pass sheet unit image extracted for the first time, that is, obtaining the final optical pass sheet unit area, and then converting the final optical pass sheet unit area into the final optical pass sheet unit circumscribed rectangular area;
对光通片单元图像的第二次提取:通过遍历第一次提取到的光通片单元图像中的每个像素,并将在最终光通片单元外接矩形区域外的像素剔除掉,获得最终光通片单元图像。The second extraction of the light pass unit image: by traversing each pixel in the light pass unit image extracted for the first time, and removing the pixels outside the circumscribed rectangular area of the final light pass unit, the final light pass unit image is obtained.
优选的,所述崩边检测步骤包括:Preferably, the edge collapse detection step comprises:
获取最终光通片单元外接矩形区域的质心坐标位置:以最终光通片单元外接矩形区域左上角处为坐标原点,设最终光通片单元外接矩形区域内像素坐标为(x,y),总像素数为N;Get the centroid coordinate position of the final optic unit circumscribed rectangular area: take the upper left corner of the final optic unit circumscribed rectangular area as the coordinate origin, set the pixel coordinates in the final optic unit circumscribed rectangular area as (x, y), and the total number of pixels as N;
质心的 x 坐标:;The x-coordinate of the center of mass: ;
质心的 y 坐标:;The y coordinate of the center of mass: ;
其中,Σx 和 Σy 分别是所有像素的x坐标和y坐标之和;获得最终光通片单元外接矩形区域的质心坐标,表示最终光通片单元外接矩形区域的质心的x坐标,表示最终光通片单元外接矩形区域的质心的y坐标;Among them, Σx and Σy are the sum of the x-coordinate and y-coordinate of all pixels respectively; the centroid coordinates of the circumscribed rectangular area of the final light pass unit are obtained , The x-coordinate of the centroid of the circumscribed rectangular area of the final light-pass unit. The y coordinate of the centroid of the circumscribed rectangular area of the final light pass unit;
获取最终光通片单元外接矩形区域的旋转角度:计算最终光通片单元外接矩形区域的二阶协方差矩阵:Get the rotation angle of the final optic unit circumscribed rectangular area: Calculate the second-order covariance matrix of the final optic unit circumscribed rectangular area :
其中,,表示第i个像素在 x 方向上的离散程度;in, , represents the discrete degree of the i-th pixel in the x direction;
,表示第i个像素在 y 方向上的离散程度; , represents the discrete degree of the i-th pixel in the y direction;
,表示第i个像素在 x 和 y 方向上的协方差; , represents the covariance of the i-th pixel in the x and y directions;
计算上述协方差矩阵的特征值和与特征向量和,协方差矩阵的特征值表示了主轴的方差,表示了次轴的方差,而特征向量表示最终光通片单元外接矩形区域的长度的方向,表示了最终光通片单元外接矩形区域宽度的方向;方向参数是主特征值对应的特征向量的角度,若>,选择大特征值对应的特征向量计算角度:Calculate the eigenvalues of the above covariance matrix and With the eigenvector and , the eigenvalues of the covariance matrix represents the variance of the principal axis, represents the variance of the secondary axis, and the eigenvector Indicates the direction of the length of the circumscribed rectangular area of the final light pass unit, It represents the direction of the width of the circumscribed rectangular area of the final light pass unit; the direction parameter is the angle of the eigenvector corresponding to the main eigenvalue. > , choose a large eigenvalue The corresponding eigenvector Calculate the angle:
其中,是特征向量在x方向上的分量,是特征向量在y方向上的分量,为最终光通片单元外接矩形区域的长度的方向与X轴正方向之间的角度,范围为;in, is the eigenvector The component in the x direction, is the eigenvector The component in the y direction, It is the angle between the length of the rectangular area circumscribed by the final optical pass unit and the positive direction of the X axis, and the range is ;
设定容忍范围内的最小崩边宽度,分别计算最终光通片单元外接矩形区域长度与宽度方向上绘制测量矩形的数量:Set the minimum chipping width within the tolerance range , respectively calculate the number of measurement rectangles drawn in the length and width directions of the circumscribed rectangular area of the final light pass unit:
式中,代表光通片单元的长度,代表光通片单元的宽度,表示最终光通片单元外接矩形区域长度方向上绘制测量矩形数量的一半,表示最终光通片单元外接矩形区域宽度方向上绘制测量矩形数量的一半,,计算结果向下取余数。In the formula, Represents the length of the light channel unit, Represents the width of the optical pass unit, It means that half of the number of measurement rectangles are drawn in the length direction of the circumscribed rectangular area of the final optical pass unit. It means half of the number of measurement rectangles drawn in the width direction of the circumscribed rectangular area of the final optical pass unit. , The remainder of the calculation result is taken down.
优选的,当绘制长轴测量矩形时,以最终光通片单元外接矩形区域的质心坐标为原点,以为距离,沿着方向向两边做延伸找到两个目标像素点的位置坐标,其中一个目标像素点为第一目标像素点,第一目标像素点的位置坐标采用以下方法获得,设坐标点:(,):Preferably, when drawing the long axis measurement rectangle, the centroid coordinates of the circumscribed rectangular area of the final optical pass unit are used. As the origin, For distance, along The direction is extended to both sides to find the position coordinates of two target pixel points, one of which is the first target pixel point. The position coordinates of the first target pixel point are obtained by the following method. Set the coordinate point: ( , ):
另一个目标像素点为第二目标像素点,采用以下方法获得,设坐标点(,):Another target pixel is the second target pixel, which is obtained by the following method. Let the coordinate point ( , ):
其中,表示第一目标像素点的行坐标,表示第一目标像素点的列坐标,表示第二目标像素点的行坐标,表示第二目标像素点的列坐标,表示最终光通片单元外接矩形区域的质心的x坐标,表示最终光通片单元外接矩形区域的质心的y坐标,表示最终光通片单元外接矩形区域长度方向与X轴正方向之间的角度,表示目标像素点距离最终光通片单元外接矩形区域质心的距离,其值为:in, represents the row coordinate of the first target pixel, represents the column coordinates of the first target pixel, represents the row coordinate of the second target pixel, represents the column coordinates of the second target pixel, The x-coordinate of the centroid of the circumscribed rectangular area of the final light-pass unit. The y coordinate of the centroid of the circumscribed rectangular area of the final light pass unit, It represents the angle between the length direction of the circumscribed rectangular area of the final optical pass unit and the positive direction of the X axis. Indicates the distance between the target pixel and the centroid of the circumscribed rectangular area of the final light pass unit. Its value is:
其中代表最终光通片单元外接矩形区域长度方向上测量直线的线条索引值,为设定容忍范围内的最小崩边宽度;in Represents the line index value of the measurement line in the length direction of the circumscribed rectangular area of the final optical pass unit. The minimum chipping width within the set tolerance range;
然后,以第一目标像素点 (,)为中心,以为长,以设定容忍范围内的最小崩边宽度为宽,以为旋转角度,绘制第一测量矩形,创建第一测量句柄;同时,以第二目标像素点 (,)为中心,以为长,以为宽,以为旋转角度,绘制第二测量矩形,创建第二测量句柄。Then, take the first target pixel ( , ) as the center, is long to set the minimum chipping width within the tolerance range For width, Draw the first measurement rectangle to create the first measurement handle; at the same time, take the second target pixel point ( , ) as the center, For long, For width, For the rotation angle, draw a second measurement rectangle and create a second measurement handle.
优选的,执行崩边测量操作,采用20.11库中的算子,通过生成的第一测量句柄检测最终光通片单元图像(,)处垂直于此图像的相对边缘区域,通过第二测量句柄检测最终光通片单元图像(,)处垂直于此图像的相对边缘区域,分别计算边缘之间长度距离方向上的白色区域总长度,计算单元长度与检测边缘之间长度距离方向上的白色区域总长度的差值:Preferably, the edge collapse measurement operation is performed using 20.11 Library operator, detects the final optical pass unit image through the generated first measurement handle ( , ) is perpendicular to the relative edge area of this image, and the final optical pass unit image ( , ) is perpendicular to the relative edge area of this image, and the total length of the white area in the length distance direction between the edges is calculated respectively. , calculate the unit length The total length of the white area in the direction of the distance from the detected edge The difference :
若:,则认为此光通片单元存在崩边情况,其中为容忍范围内的最小崩边长度;like: , it is considered that the optical pass unit has edge collapse, where is the minimum chipping length within the tolerance range;
按照上述步骤遍历整个最终光通片单元图像,得到最终崩边结果;According to the above steps, the entire final light pass unit image is traversed to obtain the final edge collapse result;
将缺陷大小范围在≤Result<设定最小值设定为小缺陷;The defect size range is ≤Result<Set minimum value is set as a small defect;
将缺陷大小范围在设定最小值≤Result<设定中值设定为中等缺陷;The defect size range of the set minimum value ≤ Result < the set median value is set as a medium defect;
将缺陷大小范围在设定中值≤Result<设定最大值设定为大缺陷;The defect size range within the set median value ≤ Result < set maximum value is set as a large defect;
将检测到的小缺陷记录在第一数组中,将检测到的中等缺陷记录在第二数组中,将检测到的大缺陷记录在第三数组中;Recording detected small defects in a first array, recording detected medium defects in a second array, and recording detected large defects in a third array;
统计第一数组、第二数组以及第三数组中的缺陷数量;Counting the number of defects in the first array, the second array, and the third array;
若小缺陷的数量和中等缺陷数量分别少于设定值且大缺陷的数量为0个,则将崩边等级设为低级;If the number of small defects and the number of medium defects are less than the set values and the number of large defects is 0, the edge chipping level is set to low;
若小缺陷的数量和中等缺陷数量分别多于设定值且大缺陷的数量为0个,则将崩边等级设为中级;If the number of small defects and the number of medium defects are more than the set value and the number of large defects is 0, the edge chipping level is set to medium;
若存在大缺陷时,将崩边等级设为高级。If there are large defects, set the chipping level to high.
本发明相对于现有技术具有如下的优点:The present invention has the following advantages over the prior art:
1、检测精度高:通过使用高分辨率摄像头捕捉光通片边缘的微小变化,结合图像处理算法,本发明能够精确地识别崩边缺陷及其严重程度。1. High detection accuracy: By using a high-resolution camera to capture minute changes in the edge of the optical pass sheet and combining it with an image processing algorithm, the present invention can accurately identify edge collapse defects and their severity.
2、检测效率高:本发明通过一系列高效的图像处理步骤,如边缘特征提取、二值化处理、连通区域检测等,能够快速地完成对大量光通片单元的检测;与传统的人工检测相比,大大提高了检测效率,缩短了生产周期。2. High detection efficiency: The present invention can quickly complete the detection of a large number of optical fiber units through a series of efficient image processing steps, such as edge feature extraction, binarization processing, connected area detection, etc.; compared with traditional manual detection, it greatly improves the detection efficiency and shortens the production cycle.
3、灵活性和扩展性高:本发明的检测方法可以根据不同的生产需求和标准进行调整和优化;可以通过改变图像采集装置的参数或调整图像处理算法中的阈值来适应不同类型的光通片检测,具有良好的灵活性和扩展性。3. High flexibility and scalability: The detection method of the present invention can be adjusted and optimized according to different production requirements and standards; it can adapt to different types of optical film detection by changing the parameters of the image acquisition device or adjusting the threshold in the image processing algorithm, and has good flexibility and scalability.
4、本发明采用图像采集设备获取原始光通片图像。本发明可以自动识别光通片单元崩边缺陷以及其严重程度。本发明不仅可以在生产线上快速执行,还可以提供高度准确的结果,几乎消除人为错误。4. The present invention uses an image acquisition device to obtain the original optical film image. The present invention can automatically identify the optical film unit edge collapse defect and its severity. The present invention can not only be quickly executed on the production line, but also provide highly accurate results, almost eliminating human errors.
附图说明BRIEF DESCRIPTION OF THE DRAWINGS
图1为本发明的崩边检测流程图;FIG1 is a flow chart of edge collapse detection according to the present invention;
图2为本发明进行检测的光通片图像示例;FIG2 is an example of a light-through sheet image for detection according to the present invention;
图3为本发明进行Sobel算子二值化处理后的边缘二值化图像;FIG3 is an edge binarization image after Sobel operator binarization processing is performed in the present invention;
图4为本发明进行凸四边形是否为矩形判断的原理图;FIG4 is a schematic diagram showing the principle of determining whether a convex quadrilateral is a rectangle according to the present invention;
图5为本发明进行获取最小外接倾斜矩形顶点坐标图像;FIG5 is an image showing the coordinates of the vertices of the minimum circumscribed inclined rectangle obtained by the present invention;
图6为本发明进行合格光通片单元尺寸以及角度计算的原理图;FIG6 is a schematic diagram showing the principle of calculating the size and angle of a qualified optical pass sheet unit according to the present invention;
图7为本发明进行像素外扩后的光通片图像;FIG7 is an image of a light-through sheet after pixel expansion according to the present invention;
图8为本发明进行开运算去除噪点的光通片图像;FIG8 is a light-through image of the present invention after the opening operation is performed to remove noise;
图9为本发明进行连通区域面积筛选后的光通片单元区域图像;FIG9 is an image of a unit area of a light passage sheet after the connected area area screening is performed according to the present invention;
图10为本发明进行Blob检测后获取光通片单元中心坐标的图像;FIG10 is an image of the center coordinates of the light pass sheet unit obtained after Blob detection according to the present invention;
图11为本发明使用Blob检测后去除图像边界上不完整光通片单元区域后的图像;FIG11 is an image after removing the incomplete light pass sheet unit area on the image boundary after using Blob detection in the present invention;
图12为本发明得到的光通片单元组区域的图像;FIG12 is an image of the optical pass sheet unit group region obtained by the present invention;
图13为本发明进行第一次提取后的光通片单元图像;FIG13 is an image of a light-through sheet unit after the first extraction of the present invention;
图14为本发明对第一次提取后的光通片进行二值化后的图像;FIG14 is an image of the optical flux sheet after the first extraction after binarization according to the present invention;
图15为本发明进行第二次提取后的光通片单元图像;FIG15 is an image of a light-through sheet unit after the second extraction of the present invention;
图16为本发明获取测量矩形中心坐标的原理图;FIG16 is a schematic diagram of the principle of obtaining the center coordinates of the measurement rectangle of the present invention;
图17为本发明绘制测量矩形的原理图;FIG17 is a schematic diagram of a method for drawing a measurement rectangle according to the present invention;
图18为本发明对光通片单元进行绘制测量矩形的原理图。FIG. 18 is a schematic diagram showing the principle of drawing a measurement rectangle for a light pass sheet unit according to the present invention.
具体实施方式DETAILED DESCRIPTION
下面结合实施例及附图对本发明作进一步详细的描述,但本发明的实施方式不限于此。The present invention is further described in detail below in conjunction with embodiments and drawings, but the embodiments of the present invention are not limited thereto.
一种光通片崩边缺陷检测方法,包括以下步骤:A method for detecting edge collapse defects of a light-transmitting wafer comprises the following steps:
步骤1:原始光通片图像获取步骤:首先,通过图像采集装置获取原始光通片图像,原始光通片图像中包含多个光通片单元图像。这一步骤的关键是确保获得高质量的原始光通片图像,以便后续的处理能够准确分析光通片的特征。Step 1: Acquisition of original optical film image: First, the original optical film image is acquired through the image acquisition device, and the original optical film image contains multiple optical film unit images. The key to this step is to ensure that a high-quality original optical film image is obtained so that the subsequent processing can accurately analyze the characteristics of the optical film.
步骤2:尺寸信息获取步骤:将步骤1获取的原始光通片图像转化为灰度图像,并进行高斯模糊处理,之后使用OpenCV4.5.1库中的Sobel算子对高斯模糊处理后的灰度图像进行边缘特征的提取,获取Sobel图像;随即对Sobel图像进行二值化处理,突出光通片单元边缘特征,以获取边缘二值化图像。之后对边缘二值化图像进行一次连通区域检测,进而去除边缘二值化图像中面积小于设定值的杂质区域,之后根据边缘查找算法获取边缘二值化图像中的边缘轮廓,再通过多边形逼近算法,即使用Opencv中的ApproxPolyDP算子对边缘二值化图像中边缘轮廓进行多边形逼近,获取逼近轮廓;接着在逼近轮廓中选取凸四边形轮廓,通过获取凸四边形轮廓顶点坐标位置,计算凸四边形轮廓四个夹角余弦值的最大值并与设定余弦值范围进行对比,进而判断凸四边形的形状是否接近矩形,筛选出形状接近矩形的凸四边形轮廓,并通过Opencv中的MinAreaRect算子获取筛选出的凸四边形轮廓的最小外接倾斜矩形,得到最小外接倾斜矩形四个顶点坐标,即可根据四个顶点坐标获取合格光通片单元实际的长度尺寸和宽度尺寸以及旋转角度信息。Step 2: Size information acquisition step: Convert the original light pass sheet image obtained in step 1 into a grayscale image and perform Gaussian blur processing. Then use the Sobel operator in the OpenCV4.5.1 library to extract the edge features of the grayscale image after Gaussian blur processing to obtain a Sobel image; then binarize the Sobel image to highlight the edge features of the light pass sheet unit to obtain an edge binary image. Then, a connected area detection is performed on the edge binary image to remove the impurity area whose area is less than the set value in the edge binary image. Then, the edge contour in the edge binary image is obtained according to the edge search algorithm, and then the polygon approximation algorithm is used, that is, the ApproxPolyDP operator in Opencv is used to perform polygon approximation on the edge contour in the edge binary image to obtain the approximated contour; then, a convex quadrilateral contour is selected from the approximated contour, and the maximum value of the cosine value of the four angles of the convex quadrilateral contour is calculated by obtaining the vertex coordinate position of the convex quadrilateral contour and comparing it with the set cosine value range, so as to determine whether the shape of the convex quadrilateral is close to a rectangle, and the convex quadrilateral contour whose shape is close to a rectangle is screened out, and the minimum circumscribed inclined rectangle of the screened convex quadrilateral contour is obtained by the MinAreaRect operator in Opencv, and the four vertex coordinates of the minimum circumscribed inclined rectangle are obtained, and the actual length and width dimensions and rotation angle information of the qualified optical pass unit can be obtained according to the four vertex coordinates.
步骤3:预处理步骤:对步骤1获得的原始光通片图像进行预处理,首先为了使整张原始光通片图像轮廓更加清晰,降低误差,需将原始光通片图像向四周扩展100个像素(可根据实际需要灵活调整如:60个像素、71个像素、112个像素或120个像素等),得到外扩图像;之后将外扩图像转换为二值化外扩图像,将像素分为前景像素和背景像素。接着进行一次开运算操作(Opencv自带算法),减少二值化外扩图像中的噪点,以确保检测过程的准确性,获得去噪图像。Step 3: Preprocessing step: Preprocess the original optical image obtained in step 1. First, in order to make the outline of the entire original optical image clearer and reduce the error, the original optical image needs to be expanded by 100 pixels (which can be flexibly adjusted according to actual needs, such as 60 pixels, 71 pixels, 112 pixels or 120 pixels, etc.) to obtain an expanded image; then convert the expanded image into a binary expanded image, and divide the pixels into foreground pixels and background pixels. Then perform an open operation (Opencv's own algorithm) to reduce the noise in the binary expanded image to ensure the accuracy of the detection process and obtain a denoised image.
步骤4:光通片单元区域识别步骤:对步骤3获取的去噪图像进行连通区域检测;再根据步骤2计算的光通片单元的长宽信息计算合格光通片单元区域面积,通过乘以设定的面积比例,筛选出去噪图像中符合条件的连通区域,即选择设定大小的接近合格光通片单元区域面积的区域;同时,对去噪图像进行一次Blob检测,筛选出去噪图像中所有接近合格光通片单元区域面积大小的Blob检测区域,进而得到光通片单元区域的中心位置坐标,结合步骤2获取的光通片单元长宽信息(即:长度和宽度),可去除去噪图像边缘区域上的不完整光通片单元区域;具体为:根据中心位置的X坐标,分别加上以及减去步骤二获取的光通片单元长度的一半,同时根据中心位置的Y坐标,分别加上以及减去步骤二获取的光通片单元宽度的一半,判断得到的数值是否超出在去噪图像中的原始光通片图像所在区域,若超出在去噪图像中的原始光通片图像所在区域,则判断该光通片单元区域处于去噪图像边缘区域上并且为不完整光通片单元区域,去除去噪图像边缘区域上的不完整光通片单元区域;Step 4: Identification of the optical pass unit area: Perform a connected area detection on the denoised image obtained in step 3; calculate the area of the qualified optical pass unit area according to the length and width information of the optical pass unit calculated in step 2, and select the connected areas that meet the conditions in the denoised image by multiplying by the set area ratio, that is, select the area of the set size close to the area of the qualified optical pass unit area; at the same time, perform a Blob detection on the denoised image, and select all Blob detection areas in the denoised image that are close to the area size of the qualified optical pass unit area, and then obtain the center position coordinates of the optical pass unit area, combined with the length and width information of the optical pass unit obtained in step 2 (that is: length The incomplete optical pass sheet unit area on the edge area of the denoised image can be removed; specifically: according to the X coordinate of the center position, half of the length of the optical pass sheet unit obtained in step 2 is added and subtracted respectively, and at the same time, according to the Y coordinate of the center position, half of the width of the optical pass sheet unit obtained in step 2 is added and subtracted respectively, and it is judged whether the obtained value exceeds the area where the original optical pass sheet image in the denoised image is located. If it exceeds the area where the original optical pass sheet image in the denoised image is located, it is judged that the optical pass sheet unit area is on the edge area of the denoised image and is an incomplete optical pass sheet unit area, and the incomplete optical pass sheet unit area on the edge area of the denoised image is removed;
最后可得到储存着由多个合格光通片单元区域组成的不在图像边界上的光通片单元组区域,之后可按照索引在光通片单元组区域中逐个获取单个光通片单元所在区域。Finally, a light pass sheet unit group area which is not on the image boundary and is composed of a plurality of qualified light pass sheet unit areas can be obtained, and then the areas where single light pass sheet units are located can be obtained one by one in the light pass sheet unit group area according to the index.
步骤5:光通片单元图像提取步骤:在步骤4获取的光通片单元组区域中按照索引逐个获取单个光通片单元所在区域,并创建光通片单元所在区域的最小外接矩形区域,再对此最小外接矩形区域进行膨胀操作,以确保最小外接矩形区域覆盖整个光通片单元,即得到光通片单元初步识别区域;之后利用光通片单元初步识别区域,提取外扩图像中包含的光通片单元图像部分,即获得第一次提取到的光通片单元图像;对第一次提取到的光通片单元图像进行二值化处理,以增强边缘特征,即获得二值化光通片单元图像;对二值化光通片单元图像进行连通区域检测与面积筛选,即可得到最终光通片单元所在区域;之后,再对最终光通片单元所在区域创建最小外接矩形,即可得到最终光通片单元外接矩形区域;之后利用最终光通片单元外接矩形区域,在第一次提取到的光通片单元图像中提取出最终光通片单元图像。Step 5: Extraction step of the optical pass unit image: in the optical pass unit group area obtained in step 4, the area where the single optical pass unit is located is obtained one by one according to the index, and the minimum circumscribed rectangular area of the area where the optical pass unit is located is created, and then the minimum circumscribed rectangular area is expanded to ensure that the minimum circumscribed rectangular area covers the entire optical pass unit, that is, the preliminary identification area of the optical pass unit is obtained; then the optical pass unit preliminary identification area is used to extract the optical pass unit image part contained in the expanded image, that is, the optical pass unit image extracted for the first time is obtained; the optical pass unit image extracted for the first time is binarized to enhance the edge features, that is, the binary optical pass unit image is obtained; the binary optical pass unit image is connected to the area detection and area screening to obtain the final optical pass unit area; then, the minimum circumscribed rectangle is created for the area where the final optical pass unit is located to obtain the final optical pass unit circumscribed rectangular area; then, the final optical pass unit circumscribed rectangular area is used to extract the final optical pass unit image from the optical pass unit image extracted for the first time.
步骤6:崩边检测步骤:根据步骤5中得到的最终光通片单元外接矩形区域的旋转角度,再根据步骤2计算的合格光通片单元实际的长度尺寸和宽度尺寸以及所设置的最小崩边值信息,对提取出来的最终光通片单元图像绘制测量矩形,检测最终光通片单元图像的边缘区域,利用形成的测量句柄计算最终光通片单元图像对边白色区域的长度,与步骤2得到的合格光通片单元实际的长度尺寸做对比,若小于设定范围值,判断为存在崩边并记录,如此重复检测整个光通片单元图像从而得到该光通片单元的崩边数量,如此按步骤5中的索引遍历所有光通片单元图像,进而判断整个光通片图像的崩边缺陷等级。Step 6: Edge chipping detection step: According to the rotation angle of the circumscribed rectangular area of the final optical pass unit obtained in step 5, and according to the actual length and width dimensions of the qualified optical pass unit calculated in step 2 and the set minimum edge chipping value information, draw a measurement rectangle for the extracted final optical pass unit image, detect the edge area of the final optical pass unit image, and use the formed measurement handle to calculate the length of the opposite white area of the final optical pass unit image, and compare it with the actual length dimension of the qualified optical pass unit obtained in step 2. If it is less than the set range value, it is determined that there is an edge chipping and recorded. Repeat the detection of the entire optical pass unit image to obtain the number of edge chips of the optical pass unit. In this way, all optical pass unit images are traversed according to the index in step 5 to determine the edge chipping defect level of the entire optical pass image.
具体的:如图1所示,所述光通片崩边缺陷检测方法,所述原始光通片图像获取步骤1中,图像采集装置为一台装配高分辨率镜头的检测设备,可以清晰的采集高速运行状态下的原始光通片图像,如图2所示,整个光通片包括多个光通片单元;Specifically: As shown in FIG1 , in the optical sheet edge collapse defect detection method, in the original optical sheet image acquisition step 1, the image acquisition device is a detection device equipped with a high-resolution lens, which can clearly acquire the original optical sheet image in a high-speed running state. As shown in FIG2 , the entire optical sheet includes multiple optical sheet units;
所述尺寸信息获取步骤,步骤2对步骤1得到的原始光通片图像进行一次预处理,以获取光通片单元的长度、宽度以及倾斜角度信息,包括以下子步骤:The size information acquisition step, step 2, preprocesses the original optical sheet image obtained in step 1 to obtain the length, width and tilt angle information of the optical sheet unit, including the following sub-steps:
步骤2.1将原始光通片图像转化为灰度图像,并进行高斯模糊处理,之后使用OpenCV4.5.1库中的Sobel算子分别将高斯模糊后的灰度图像的X方向梯度图和Y方向梯度图转换为绝对值图像,并将高斯模糊后的灰度图像X方向梯度图和Y方向梯度图进行加权融合,生成总梯度图像,可将总梯度图像分为前景和背景,突出高斯模糊后的灰度图像中各个光通片单元边缘区域特征,得到Sobel图像;再使用自适应阈值法将Sobel图像进行二值化,将Sobel图像分为边缘区域和非边缘区域,进而获取边缘二值化图像,如图3所示。Step 2.1 converts the original optical filter image into a grayscale image and performs Gaussian blur processing. Then, the Sobel operator in the OpenCV4.5.1 library is used to convert the X-direction gradient map and the Y-direction gradient map of the grayscale image after Gaussian blur into absolute value images, and the X-direction gradient map and the Y-direction gradient map of the grayscale image after Gaussian blur are weighted fused to generate a total gradient image. The total gradient image can be divided into foreground and background, and the edge area features of each optical filter unit in the grayscale image after Gaussian blur are highlighted to obtain a Sobel image. Then, the Sobel image is binarized using the adaptive threshold method, and the Sobel image is divided into edge areas and non-edge areas, thereby obtaining an edge binary image, as shown in Figure 3.
步骤2.2对边缘二值化图像进行一次连通区域检测,进而去除边缘二值化图像中面积小于设定值的杂质区域,其基本原理是:从边缘二值化图像左上角到右下角遍历图像像素,当遇到一个未被标记的前景像素,开始一个新的连通区域的标记;对于当前的前景像素,通过搜索其相邻像素来扩展该连通区域;若相邻像素也是前景像素并且未被标记,则会被标记为同一个连通区域;继续遍历图像的每个像素,直到所有的前景像素都被分配到相应的连通区域;Step 2.2 performs a connected region detection on the edge binary image, and then removes the impurity region whose area is smaller than the set value in the edge binary image. The basic principle is: traverse the image pixels from the upper left corner to the lower right corner of the edge binary image, and when encountering an unmarked foreground pixel, start marking a new connected region; for the current foreground pixel, expand the connected region by searching its adjacent pixels; if the adjacent pixel is also a foreground pixel and is not marked, it will be marked as the same connected region; continue to traverse each pixel of the image until all foreground pixels are assigned to the corresponding connected region;
最终,边缘二值化图像中的每个像素都包含一个特定面积大小的连通区域的标签,此标签用于识别不同的区域,进而可以去除边缘二值化图像中小于设定面积的杂质区域。Finally, each pixel in the edge binary image contains a label of a connected region of a specific size, which is used to identify different regions, thereby removing impurity regions smaller than the set area in the edge binary image.
步骤2.3根据边缘查找算法获取边缘二值化图像中的边缘轮廓,再对边缘二值化图像中边缘轮廓进行多边形逼近,获取逼近轮廓;接着在逼近轮廓中选取凸四边形轮廓,获取凸四边形轮廓四个顶点坐标;Step 2.3: Obtain the edge contour in the edge binary image according to the edge search algorithm, and then perform polygonal approximation on the edge contour in the edge binary image to obtain the approximated contour; then select the convex quadrilateral contour in the approximated contour to obtain the coordinates of the four vertices of the convex quadrilateral contour;
根据凸四边形轮廓顶点坐标互相计算夹角余弦值,通过计算相邻三个点,,形成的两个向量之间的夹角余弦值并选择最大值来判断获取到的凸四边形轮廓顶点坐标是否符合要求,即判断凸四边形的形状是否接近矩形,如图4所示,为凸四边形第i个顶点的坐标,为凸四边形第i+1个顶点的坐标,为凸四边形第i+2个顶点的坐标,具体如下式:Calculate the cosine of the angle between the vertices of the convex quadrilateral contour by calculating the three adjacent points , , The cosine value of the angle between the two vectors is formed and the maximum value is selected to determine whether the coordinates of the convex quadrilateral contour vertices obtained meet the requirements, that is, to determine whether the shape of the convex quadrilateral is close to a rectangle, as shown in Figure 4. is the coordinate of the ith vertex of the convex quadrilateral, are the coordinates of the i+1th vertex of the convex quadrilateral, is the coordinate of the i+2th vertex of the convex quadrilateral, as follows:
式中为凸四边形第i个顶点的x坐标值,为凸四边形第i个顶点的y坐标值,为凸四边形第i+1个顶点的x坐标值,为凸四边形第i+1个顶点的y坐标值,为凸四边形第i+2个顶点的x坐标值,为凸四边形第i+2个顶点的y坐标值,为向量和向量两向量的夹角,第i个顶点与第i+1个顶点组成的向量值,为第i+1个顶点与第i+2个顶点组成的向量值,为计算得到的最大余弦值,若的值小于0.4,则认为该凸四边形的形状接近矩形,该凸四边形轮廓为合格光通片轮廓;In the formula is the x-coordinate value of the ith vertex of the convex quadrilateral, is the y coordinate value of the i-th vertex of the convex quadrilateral, is the x-coordinate value of the i+1th vertex of the convex quadrilateral, is the y coordinate value of the i+1th vertex of the convex quadrilateral, is the x-coordinate value of the i+2th vertex of the convex quadrilateral, is the y coordinate value of the i+2th vertex of the convex quadrilateral, For vector and vector The angle between two vectors, The vector value composed of the i-th vertex and the i+1-th vertex, is the vector value composed of the i+1th vertex and the i+2th vertex, is the maximum cosine value calculated, if If the value of is less than 0.4, it is considered that the shape of the convex quadrilateral is close to a rectangle, and the contour of the convex quadrilateral is a qualified light pass sheet contour;
步骤2.4创建合格光通片轮廓的最小外接倾斜矩形,如图5所示,得到最小外接倾斜矩形四个顶点坐标,下式是通过最小外接倾斜矩形四个顶点坐标计算最小外接倾斜矩形的长度、宽度以及旋转角度(即:计算光通片单元长度、宽度以及旋转角度)公式:Step 2.4 creates the minimum circumscribed tilted rectangle of the qualified light pass sheet outline, as shown in Figure 5, and obtains the coordinates of the four vertices of the minimum circumscribed tilted rectangle. The following formula is used to calculate the length, width and rotation angle of the minimum circumscribed tilted rectangle (i.e., calculate the length, width and rotation angle of the light pass sheet unit) through the coordinates of the four vertices of the minimum circumscribed tilted rectangle:
式中,为最小外接倾斜矩形长度,为最小外接倾斜矩形宽度,为最小外接倾斜矩形旋转角度,为最小外接倾斜矩形数量,为第个最小外接倾斜矩形第1个点即左上角点的x坐标值,为第个最小外接倾斜矩形第1个点即左上角的y坐标值,为第个最小外接倾斜矩形第2个点即右上角点的x坐标值,为第个最小外接倾斜矩形第2个点即右上角点的y坐标值,为第个最小外接倾斜矩形第3个点即右下角点的x坐标值,为第个最小外接倾斜矩形第3个点即右下角点的y坐标值;计算最小外接倾斜矩形的长度、宽度以及旋转角度信息得到对应的合格光通片单元的长宽、旋转角度信息,计算所得的最小外接倾斜矩形长度对应光通片单元的长度,计算所得的最小外接倾斜矩形宽度对应光通片单元的宽度,计算所得的最小外接倾斜矩形旋转角度对应光通片单元的旋转角度,如图6所示,为第个最小外接倾斜矩形第1个点即左上角点坐标,为第个最小外接倾斜矩形第2个点即右上角点坐标,为第个最小外接倾斜矩形第3个点即右下角点坐标,根据识别到的光通片单元的长度、宽度以及旋转角度信息进行之后的崩边检测操作。In the formula, is the minimum circumscribed inclined rectangle length, is the minimum circumscribed oblique rectangle width, is the rotation angle of the minimum circumscribed tilted rectangle, is the minimum number of circumscribed inclined rectangles, For the The x-coordinate value of the first point of the smallest circumscribed tilted rectangle, which is the upper left corner. For the The y coordinate value of the first point of the smallest circumscribed tilted rectangle, which is the upper left corner. For the The x-coordinate value of the second point of the smallest circumscribed tilted rectangle, i.e. the upper right corner. For the The y coordinate value of the second point of the smallest circumscribed tilted rectangle, which is the upper right corner point. For the The x-coordinate value of the third point of the smallest circumscribed tilted rectangle, which is the lower right corner. For the The y coordinate value of the third point of the minimum circumscribed tilted rectangle, that is, the lower right corner point; calculate the length, width and rotation angle information of the minimum circumscribed tilted rectangle to obtain the length, width and rotation angle information of the corresponding qualified optical pass unit, and calculate the length of the minimum circumscribed tilted rectangle Corresponding length of the optical pass unit , the calculated minimum enclosing oblique rectangle width Corresponding to the width of the optical pass unit , the calculated minimum circumscribed tilted rectangle rotation angle Corresponding to the rotation angle of the optical channel unit , as shown in Figure 6, For the The coordinates of the first point of the smallest circumscribed tilted rectangle, i.e. the upper left corner point. For the The coordinates of the second point of the smallest circumscribed tilted rectangle, i.e. the upper right corner point. For the The third point of the smallest circumscribed inclined rectangle, i.e., the lower right corner point coordinate, is used to perform subsequent edge collapse detection operations based on the length, width, and rotation angle information of the identified optical pass unit.
预处理步骤(即:图像预处理)包括以下子步骤:The preprocessing step (i.e. image preprocessing) includes the following sub-steps:
步骤3.1如图7所示,为使得拍摄到的原始光通片图像边界更加清晰明了,并且满足之后需要进行的连通区域检测,将步骤1中获取的原始光通片图像向四周扩展第一设定数量像素,如:100个像素(也可扩展60、70、75、82、90、105、112等数量的像素,具体可根据实际需要选择),最终获得外扩图像。Step 3.1 is shown in Figure 7. In order to make the boundary of the captured original optical path image clearer and meet the requirements of the connected area detection that needs to be performed later, the original optical path image obtained in step 1 is expanded to the surrounding area by a first set number of pixels, such as 100 pixels (it can also be expanded to 60, 70, 75, 82, 90, 105, 112, etc., which can be selected according to actual needs), and finally an expanded image is obtained.
步骤3.2将外扩图像进行二值化操作,因为光通片存在缺陷可能导致部分区域阴暗不明,故而采取大津算法(Otsu's method)来分割外扩图像,使外扩图像前景和背景之间的类间方差最大化,从而得到将外扩图像分成前景和背景两个部分的最佳阈值,该阈值可以将外扩图像分成前景和背景两个部分,最终获取二值化外扩图像。Step 3.2 performs a binarization operation on the outward-expanded image. Because defects in the optical film may cause some areas to be dark and unclear, the Otsu's method is used to segment the outward-expanded image to maximize the inter-class variance between the foreground and background of the outward-expanded image, thereby obtaining the optimal threshold for dividing the outward-expanded image into foreground and background. This threshold can divide the outward-expanded image into foreground and background, and finally obtain a binary outward-expanded image.
步骤3.3如图8所示,将二值化外扩图像进行开运算操作,去除二值化外扩图像上存在的噪点或孔洞,包括以下步骤:先进行腐蚀操作,然后进行膨胀操作。腐蚀操作会使二值化外扩图像中的物体缩小,去除边界上的噪点。膨胀操作会使二值化外扩图像中的物体重新增长,并恢复到原始形状。通过这两个操作的组合,能够消除噪点并保持二值化外扩图像中的物体的整体形状,此步骤可获得去除噪点或孔洞的去噪图像。Step 3.3, as shown in FIG8, performs an opening operation on the binary expanded image to remove noise or holes existing on the binary expanded image, including the following steps: first performing an erosion operation, and then performing an expansion operation. The erosion operation will shrink the objects in the binary expanded image and remove the noise on the boundary. The expansion operation will cause the objects in the binary expanded image to grow again and restore to their original shape. Through the combination of these two operations, the noise can be eliminated and the overall shape of the objects in the binary expanded image can be maintained. This step can obtain a denoised image with noise or holes removed.
光通片单元区域识别步骤4需要在外扩图像中将各个光通片单元所在区域识别出来,主要包括以下子步骤:The optical pass sheet unit area identification step 4 needs to identify the area where each optical pass sheet unit is located in the external expansion image, which mainly includes the following sub-steps:
步骤4.1进行连通区域检测:对去噪图像进行连通区域检测,获取多个光通片单元区域。Step 4.1 performs connected region detection: performs connected region detection on the denoised image to obtain multiple optical path unit regions.
步骤4.2如图9所示,进行多个光通片单元区域面积筛选:根据步骤2计算的光通片单元的长宽信息计算合格光通片单元区域面积,通过乘以设定的面积比例,筛选出去噪图像中符合条件()的连通区域,即选择设定大小的接近合格光通片单元区域面积的区域,其中代表光通片单元的长度,代表光通片单元的宽度。Step 4.2, as shown in FIG9 , performs area screening of multiple optical pass sheet units: the area of qualified optical pass sheet units is calculated according to the length and width information of the optical pass sheet units calculated in step 2 , by multiplying by the set area ratio, filter out the denoising images that meet the conditions ( ), that is, select an area of a set size close to the area of a qualified optical pass unit, where Represents the length of the light channel unit, Represents the width of the light channel unit.
步骤4.3如图10所示,使用Blob检测获取光通片单元坐标信息:Blob检测器对检测样式进行设定,使Blob检测器仅检测四边形样式的斑块;Blob检测器对检测面积进行设定,使Blob检测器筛除不在设定面积大小范围()内的斑块;使用配置完成的Blob检测器直接检测去噪图像,获得个筛选出的斑块,进而获得个光通片单元中心坐标。Step 4.3 As shown in FIG10 , Blob detection is used to obtain the coordinate information of the light channel unit: the Blob detector sets the detection pattern so that the Blob detector only detects the patches of quadrilateral pattern; the Blob detector sets the detection area so that the Blob detector screens out the patches that are not within the set area size range ( ) within the image; use the configured Blob detector to directly detect the denoised image and obtain The selected plaques are then obtained The center coordinates of the light channel unit.
步骤4.4如图11所示,在去噪图像边缘区域上的不完整光通片单元区域的去除:通过个光通片单元中心坐标,结合步骤二获取的光通片单元长宽,根据下面公式判断第i个光通片单元区域是否处于去噪图像边缘区域:Step 4.4 As shown in FIG11, the incomplete light channel unit area on the edge area of the denoised image is removed by The center coordinates of the light pass sheet unit are combined with the length and width of the light pass sheet unit obtained in step 2 to determine whether the i-th light pass sheet unit area is in the edge area of the denoised image according to the following formula:
若,则认为第i光通片单元区域不在去噪图像边缘区域内,其中,代表第i个光通片单元中心的x坐标,代表第i个光通片单元中心的y坐标,代表光通片单元的长度,代表光通片单元的宽度,代表光通片单元的旋转角度,L代表去噪图像长度,W代表去噪图像宽度,100代表上述进行像素外扩的设定数量(也可以为60、72、83、94、105、116等设定的数量像素,具体可根据实际需要选择);否则,认为该光通片单元区域处于去噪图像边缘区域上,实际检测将在去噪图像边缘区域的不完整光通片单元区域去除。like , then it is considered that the i-th optical pass unit area is not in the edge area of the denoised image, where , represents the x-coordinate of the center of the ith light channel unit, represents the y coordinate of the center of the i-th light channel unit, Represents the length of the light channel unit, Represents the width of the optical pass unit, represents the rotation angle of the optical pass sheet unit, L represents the length of the denoised image, W represents the width of the denoised image, and 100 represents the set number of pixels for the above-mentioned pixel expansion (it can also be 60, 72, 83, 94, 105, 116, etc., which can be selected according to actual needs); otherwise, it is considered that the optical pass sheet unit area is on the edge area of the denoised image, and the incomplete optical pass sheet unit area in the edge area of the denoised image will be removed in actual detection.
最终,如图12所示,即得到储存着由多个合格光通片单元区域组成的去噪图像边缘区域上的光通片单元组区域,之后可按照索引在光通片单元组区域中逐个获取单个光通片单元所在区域。Finally, as shown in FIG12 , a light pass sheet unit group area on the edge area of the denoised image composed of multiple qualified light pass sheet unit areas is obtained, and then the areas where individual light pass sheet units are located can be obtained one by one in the light pass sheet unit group area according to the index.
所述光通片单元图像提取步骤5可按照索引值,逐个获取单个光通片单元图像,检测主要包括以下子步骤:The light pass sheet unit image extraction step 5 can obtain individual light pass sheet unit images one by one according to the index value, and the detection mainly includes the following sub-steps:
步骤5.1在光通片单元组区域中按照索引逐个获取每个光通片单元所在区域,并创建光通片单元所在区域的最小外接矩形区域。Step 5.1 obtains the area where each light pass unit is located one by one according to the index in the light pass unit group area, and creates the minimum circumscribed rectangular area of the area where the light pass unit is located.
步骤5.2对光通片单元最小外接矩形区域进行膨胀处理,将光通片单元外接矩形区域向四周扩展设定大小,获得光通片单元初步识别区域。Step 5.2 performs expansion processing on the minimum circumscribed rectangular area of the optical pass unit, expands the circumscribed rectangular area of the optical pass unit to a set size in all directions, and obtains a preliminary identification area of the optical pass unit.
步骤5.3如图13所示,进行对光通片单元图像的第一次提取,通过遍历外扩图像的每个像素,并将超出光通片单元初步识别区域的像素剔除掉,获得第一次提取到的光通片单元图像。Step 5.3, as shown in FIG13 , performs the first extraction of the light-pass unit image by traversing each pixel of the expanded image and removing pixels beyond the initial identification area of the light-pass unit to obtain the light-pass unit image extracted for the first time.
步骤5.4如图14所示,对第一次提取到的光通片单元图像进行二值化操作,使第一次提取到的光通片单元图像中的光通片单元调整为白色,背景调整为黑色,从而获得二值化光通片单元图像。Step 5.4, as shown in FIG. 14 , performs a binarization operation on the light pass sheet unit image extracted for the first time, so that the light pass sheet units in the light pass sheet unit image extracted for the first time are adjusted to white and the background is adjusted to black, thereby obtaining a binary light pass sheet unit image.
步骤5.5进行连通区域检测:对二值化光通片单元图像进行连通区域检测,每个连通区域在二值化光通片单元图像中用不同的灰度值来表示,即获取包含单个光通片单元区域在内的多个连通区域。Step 5.5 performs connected region detection: performs connected region detection on the binary light pass sheet unit image, each connected region is represented by a different grayscale value in the binary light pass sheet unit image, that is, multiple connected regions including a single light pass sheet unit region are obtained.
步骤5.6进行单个光通片单元区域面积筛选:将得到的合格光通片单元区域面积乘以设定的第一面积比例(第一面积比例范围可选择),筛选出第一次提取到的光通片单元图像中在设定面积大小范围内的连通区域,即得到最终的光通片单元所在区域,之后将最终的光通片单元所在区域转换为最终光通片单元外接矩形区域。Step 5.6: Screen the area of a single light pass unit: Multiply by the set first area ratio (the first area ratio range can be selected ), filter out the connected areas within the set area size range in the optical pass sheet unit image extracted for the first time, that is, obtain the area where the final optical pass sheet unit is located, and then convert the area where the final optical pass sheet unit is located into the circumscribed rectangular area of the final optical pass sheet unit.
步骤5.7如图15所示,进行对光通片单元图像的第二次提取:通过遍历第一次提取到的光通片单元图像中的每个像素,并将在最终光通片单元外接矩形区域外的像素剔除掉,获得最终光通片单元图像。Step 5.7, as shown in FIG15 , performs a second extraction of the light pass unit image: by traversing each pixel in the light pass unit image extracted for the first time, and removing the pixels outside the circumscribed rectangular area of the final light pass unit, the final light pass unit image is obtained.
所述崩边检测步骤6对步骤5获得的最终光通片单元图像进行崩边检测,检测主要包括以下子步骤:The edge chipping detection step 6 performs edge chipping detection on the final optical pass sheet unit image obtained in step 5, and the detection mainly includes the following sub-steps:
步骤6.1获取最终光通片单元外接矩形区域的质心坐标位置:以最终光通片单元外接矩形区域左上角处为坐标原点,设最终光通片单元外接矩形区域内像素坐标为 (x,y),总像素数为N。Step 6.1 obtains the centroid coordinate position of the circumscribed rectangular area of the final light pass unit: the upper left corner of the circumscribed rectangular area of the final light pass unit is taken as the coordinate origin, and the pixel coordinates in the circumscribed rectangular area of the final light pass unit are set to (x, y), and the total number of pixels is N.
质心的 x 坐标:;The x-coordinate of the center of mass: ;
质心的 y 坐标:;The y coordinate of the center of mass: ;
其中,Σx 和 Σy 分别是所有像素的x坐标和y坐标之和。可获得最终光通片单元外接矩形区域的质心坐标,表示最终光通片单元外接矩形区域的质心的x坐标,表示最终光通片单元外接矩形区域的质心的y坐标。Among them, Σx and Σy are the sum of the x-coordinate and y-coordinate of all pixels respectively. The centroid coordinates of the circumscribed rectangular area of the final light-pass unit can be obtained , The x-coordinate of the centroid of the circumscribed rectangular area of the final light-pass unit. Indicates the y coordinate of the centroid of the circumscribed rectangular area of the final light pass unit.
步骤6.2获取最终光通片单元外接矩形区域与X轴正方向间的旋转角度:计算最终光通片单元外接矩形区域的二阶协方差矩阵:Step 6.2 Obtain the rotation angle between the circumscribed rectangular area of the final optical pass unit and the positive direction of the X axis: Calculate the second-order covariance matrix of the circumscribed rectangular area of the final optical pass unit :
其中,,表示第i个像素在 x 方向上的离散程度。in, , which indicates the discrete degree of the i-th pixel in the x direction.
,表示第i个像素在 y 方向上的离散程度。 , which indicates the discrete degree of the i-th pixel in the y direction.
,表示第i个像素在x和y方向上的协方差。 , represents the covariance of the i-th pixel in the x and y directions.
计算上述协方差矩阵的特征值和与特征向量和,协方差矩阵的特征值表示了主轴的方差,表示了次轴的方差,而特征向量表示最终光通片单元外接矩形区域的长度的方向,表示了最终光通片单元外接矩形区域宽度的方向;方向参数是主特征值对应的特征向量的角度,若>,选择大特征值对应的特征向量计算角度,即选择较大特征值对应的特征向量计算角度:Calculate the eigenvalues of the above covariance matrix and With the eigenvector and , the eigenvalues of the covariance matrix represents the variance of the principal axis, represents the variance of the secondary axis, and the eigenvector Indicates the direction of the length of the circumscribed rectangular area of the final light pass unit, It represents the direction of the width of the circumscribed rectangular area of the final light pass unit; the direction parameter is the angle of the eigenvector corresponding to the main eigenvalue. > , choose a large eigenvalue The corresponding eigenvector calculation angle, that is, choose the larger eigenvalue The corresponding eigenvector calculates the angle:
其中,是特征向量在x方向上的分量,是特征向量在y方向上的分量,为最终光通片单元外接矩形区域的长度的方向与X轴正方向之间的角度,范围为;in, is the eigenvector The component in the x direction, is the eigenvector The component in the y direction, It is the angle between the length of the rectangular area circumscribed by the final optical pass unit and the positive direction of the X axis, and the range is ;
步骤6.3设定容忍范围内的最小崩边宽度,分别计算最终光通片单元外接矩形区域长度与宽度方向上绘制测量矩形的数量:Step 6.3 Set the minimum chipping width within the tolerance range , respectively calculate the number of measurement rectangles drawn in the length and width directions of the circumscribed rectangular area of the final light pass unit:
式中,代表光通片单元的长度,代表光通片单元的宽度,表示最终光通片单元外接矩形区域长度方向上绘制测量矩形数量的一半,表示最终光通片单元外接矩形区域宽度方向上绘制测量矩形数量的一半,,计算结果向下取整数。In the formula, Represents the length of the light channel unit, Represents the width of the optical pass unit, It means that half of the number of measurement rectangles are drawn in the length direction of the circumscribed rectangular area of the final optical pass unit. It means half of the number of measurement rectangles drawn in the width direction of the circumscribed rectangular area of the final optical pass unit. , The calculation result is rounded down to an integer.
以绘制长轴测量矩形为例进行说明,如图16所示,以最终光通片单元外接矩形区域的质心坐标为原点,以为距离,沿着方向向两边做延伸找到两个目标像素点的位置坐标,两个目标像素点的位置坐标采用以下方法获得,其中一个目标像素点为第一目标像素点,第一目标像素点的位置坐标采用以下方式获得,设坐标点(,):Take drawing the long axis measurement rectangle as an example, as shown in Figure 16, the centroid coordinates of the circumscribed rectangular area of the final optical pass unit are As the origin, For distance, along The direction is extended to both sides to find the position coordinates of the two target pixel points. The position coordinates of the two target pixel points are obtained by the following method. One of the target pixel points is the first target pixel point. The position coordinates of the first target pixel point are obtained by the following method. Suppose the coordinate point ( , ):
另一个目标像素点为第二目标像素点,采用以下方法获得,设坐标点(,):Another target pixel is the second target pixel, which is obtained by the following method. Let the coordinate point ( , ):
其中,表示目标像素点的行坐标,表示目标像素点的列坐标,表示第二目标像素点的行坐标,表示第二目标像素点的列坐标,表示最终光通片单元外接矩形区域的质心的x坐标,表示最终光通片单元外接矩形区域的质心的y坐标,表示最终光通片单元外接矩形区域长度方向与X轴正方向之间的角度,表示目标像素点距离最终光通片单元外接矩形区域质心的距离,其值为:in, Represents the row coordinates of the target pixel, Represents the column coordinates of the target pixel, represents the row coordinate of the second target pixel, represents the column coordinates of the second target pixel, The x-coordinate of the centroid of the circumscribed rectangular area of the final light-pass unit. The y coordinate of the centroid of the circumscribed rectangular area of the final light pass unit, It represents the angle between the length direction of the circumscribed rectangular area of the final optical pass unit and the positive direction of the X axis. Indicates the distance between the target pixel and the centroid of the circumscribed rectangular area of the final light pass unit. Its value is:
其中,代表最终光通片单元外接矩形区域长度方向上测量直线的线条索引值;in , represents the line index value of the measurement straight line in the length direction of the circumscribed rectangular area of the final optical pass unit;
然后,如图17所示,以第一目标像素点 (,)为中心,以为长,以设定容忍范围内的最小崩边宽度为宽,以为旋转角度,绘制第一测量矩形,创建第一测量句柄;同时,以第二目标像素点 (,)为中心,以为长,以为宽,以为旋转角度,绘制第二测量矩形,创建第二测量句柄。Then, as shown in FIG. 17, the first target pixel point ( , ) as the center, is long to set the minimum chipping width within the tolerance range For width, Draw the first measurement rectangle to create the first measurement handle; at the same time, take the second target pixel point ( , ) as the center, For long, For width, For the rotation angle, draw a second measurement rectangle and create a second measurement handle.
步骤6.4执行崩边测量操作,如图18所示,采用20.11库中的算子,通过6.3步骤生成的第一测量句柄检测最终光通片单元图像(,)处垂直于此图像的相对边缘区域,通过第二测量句柄检测最终光通片单元图像(,)处垂直于此图像的相对边缘区域,分别计算边缘之间长距离方向上的白色区域总长度,计算单元长度与检测边缘之间长距离方向上的白色区域总长度的差值:Step 6.4 performs the edge collapse measurement operation, as shown in Figure 18, using 20.11 Library operator, detects the final optical pass sheet unit image through the first measurement handle generated in step 6.3 ( , ) is perpendicular to the relative edge area of this image, and the final optical pass unit image ( , ) is perpendicular to the relative edge area of this image, and the total length of the white area in the long distance direction between the edges is calculated. , calculate the unit length The total length of the white area in the long distance direction from the detected edge The difference :
若:,则认为此光通片单元存在崩边情况,其中为容忍范围内的最小崩边长度尺寸;like: , it is considered that the optical pass unit has edge collapse, where The minimum chipping length within the tolerance range;
步骤6.5按照步骤6.4遍历整个最终光通片单元图像,得到此光通片单元崩边检测结果;Step 6.5: traverse the entire final optical pass sheet unit image according to step 6.4 to obtain the edge collapse detection result of the optical pass sheet unit;
将缺陷大小范围在≤Result<设定最小值0.2mm设定为小缺陷;The defect size range is ≤Result<Set minimum value 0.2mm is set as a small defect;
将缺陷大小范围在设定最小值≤Result<设定中值0.4mm设定为中等缺陷;The defect size range of the set minimum value ≤ Result < the set median value 0.4mm is set as a medium defect;
将缺陷大小范围在设定中值≤Result<设定最大值0.5mm设定为大缺陷;The defect size range of the set median value ≤ Result < the set maximum value 0.5mm is set as a large defect;
将检测到的小缺陷记录在第一数组中,将检测到的中等缺陷记录在第二数组中,将检测到的大缺陷记录在第三数组中;Recording detected small defects in a first array, recording detected medium defects in a second array, and recording detected large defects in a third array;
统计第一数组、第二数组以及第三数组中的缺陷数量;Counting the number of defects in the first array, the second array, and the third array;
若小缺陷的数量少于10个和中等缺陷数量少于4个且大缺陷的数量为0个,则将该光通片单元崩边缺陷等级设为低级;If the number of small defects is less than 10, the number of medium defects is less than 4, and the number of large defects is 0, the edge collapse defect level of the optical pass unit is set to low;
若小缺陷的数量多于10个或中等缺陷数量多于4个,且大缺陷的数量为0个,则将该光通片单元崩边缺陷等级设为中级;If the number of small defects is more than 10 or the number of medium defects is more than 4, and the number of large defects is 0, the edge collapse defect level of the optical pass unit is set to medium;
若存在大缺陷时,则将该光通片单元崩边缺陷等级设为高级。If there is a large defect, the edge collapse defect level of the optical pass unit is set to high level.
具体的,将结果按照不同范围大小储存在崩边缺陷的三个数组中。这三个数组分别代表不同范围内的崩边缺陷。假设这三个数组分别为 Array1(第一数组)、Array2(第二数组)和Array3(第三数组)。记录每个数组的长度,以确定不同区域内的崩边缺陷数。在记录各个光通片单元的崩边情况时,可以使用这三个数组来表示不同区域内的崩边缺陷分布情况。例如,对于小缺陷,统计 Array1 中的缺陷数量;对于中等缺陷,统计 Array2 中的缺陷数量;对于大缺陷,统计 Array3 中的缺陷数量。Specifically, the results are stored in three arrays of edge collapse defects according to different range sizes. These three arrays represent edge collapse defects in different ranges. Assume that the three arrays are Array1 (first array), Array2 (second array) and Array3 (third array). Record the length of each array to determine the number of edge collapse defects in different areas. When recording the edge collapse of each optical pass unit, these three arrays can be used to represent the distribution of edge collapse defects in different areas. For example, for small defects, count the number of defects in Array1; for medium defects, count the number of defects in Array2; for large defects, count the number of defects in Array3.
如此地按照步骤6遍历步骤5获得的每个光通片单元图像,若该光通片单元存在崩边缺陷,记录该光通片单元中心坐标,并记录相应的崩边等级(即:记录存在崩边缺陷的光通片单元中心坐标与崩边等级);In this way, each image of the optical pass unit obtained in step 5 is traversed according to step 6. If the optical pass unit has a chipping defect, the center coordinates of the optical pass unit and the corresponding chipping level are recorded (that is, the center coordinates of the optical pass unit with the chipping defect and the chipping level are recorded);
为了验证上述光通片崩边缺陷检测方法的有效性,随机选择样品4片,包括小光通片单元2184片,崩边的光通片单元样品为394片。通过上述算法进行检测,统计崩边检测后的光通片单元的不良数量、不良率、准确率以及识别时间。统计结果如表1所示。In order to verify the effectiveness of the above-mentioned method for detecting the edge collapse of optical pass sheets, 4 samples were randomly selected, including 2184 small optical pass sheet units and 394 optical pass sheet unit samples with edge collapse. The above-mentioned algorithm was used for detection, and the defective number, defective rate, accuracy rate and recognition time of the optical pass sheet units after the edge collapse detection were counted. The statistical results are shown in Table 1.
表 1Table 1
如表1可知,本检测算法对光通片崩边检测的不良率为17.31%,准确率为95.93%,误检率为1.32%。其中,误检为非崩边情况错判为崩边;经检查分析,有部分样品在传动过程中出现轻微抖动,导致成像有部分畸变,被检测系统认定为畸变图像提前去除或者被误检为崩边图像。另外,本系统检测识别时间为27s左右,能够大大降低检测速度,满足实时性要求。As shown in Table 1, the defect rate of the detection algorithm for the edge collapse of the optical plate is 17.31%, the accuracy rate is 95.93%, and the false detection rate is 1.32%. Among them, the false detection of non-edge collapse is wrongly judged as edge collapse; after inspection and analysis, some samples have slight jitter during the transmission process, resulting in partial distortion of the image, which is identified by the detection system as a distorted image and removed in advance or mistakenly detected as an edge collapse image. In addition, the detection and recognition time of this system is about 27s, which can greatly reduce the detection speed and meet the real-time requirements.
上述实施例的说明只是用于理解本发明。应当指出,对于本领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以对本发明进行若干改进,这些改进也将落入本发明权利要求的保护范围内。The above embodiments are only used to understand the present invention. It should be noted that, for those skilled in the art, several improvements can be made to the present invention without departing from the principles of the present invention, and these improvements will also fall within the scope of protection of the claims of the present invention.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411061659.8A CN118570215B (en) | 2024-08-05 | 2024-08-05 | A method for detecting edge collapse defects of optical wafers |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202411061659.8A CN118570215B (en) | 2024-08-05 | 2024-08-05 | A method for detecting edge collapse defects of optical wafers |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN118570215A CN118570215A (en) | 2024-08-30 |
| CN118570215B true CN118570215B (en) | 2024-09-24 |
Family
ID=92469916
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN202411061659.8A Active CN118570215B (en) | 2024-08-05 | 2024-08-05 | A method for detecting edge collapse defects of optical wafers |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN118570215B (en) |
Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101925944A (en) * | 2008-01-29 | 2010-12-22 | 日东电工株式会社 | Manufacturing method of optical display unit and manufacturing system of optical display unit |
| CN114881915A (en) * | 2022-02-11 | 2022-08-09 | 西安电子科技大学 | Symmetry-based mobile phone glass cover plate window area defect detection method |
Family Cites Families (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN108364280B (en) * | 2018-01-03 | 2022-04-15 | 东南大学 | Method and equipment for automatically describing structural crack and accurately measuring width |
| CN113434072B (en) * | 2021-05-31 | 2022-06-07 | 浙江大学 | Mobile terminal application control identification method based on computer vision |
-
2024
- 2024-08-05 CN CN202411061659.8A patent/CN118570215B/en active Active
Patent Citations (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN101925944A (en) * | 2008-01-29 | 2010-12-22 | 日东电工株式会社 | Manufacturing method of optical display unit and manufacturing system of optical display unit |
| CN114881915A (en) * | 2022-02-11 | 2022-08-09 | 西安电子科技大学 | Symmetry-based mobile phone glass cover plate window area defect detection method |
Also Published As
| Publication number | Publication date |
|---|---|
| CN118570215A (en) | 2024-08-30 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN115082419B (en) | Blow-molded luggage production defect detection method | |
| CN115020267B (en) | Semiconductor surface defect detection method | |
| CN111292305A (en) | Improved YOLO-V3 metal processing surface defect detection method | |
| CN109977831A (en) | A kind of knob recognition methods based on Digital Image Processing | |
| CN114495098B (en) | Diaxing algae cell statistical method and system based on microscope image | |
| CN115018785A (en) | Tension detection method of hoisting wire rope based on visual vibration frequency recognition | |
| CN114004858B (en) | Method and device for identifying surface codes of aerial cables based on machine vision | |
| CN113723314A (en) | Sugarcane stem node identification method based on YOLOv3 algorithm | |
| CN109492647A (en) | A kind of power grid robot barrier object recognition methods | |
| CN119624961B (en) | Wafer surface defect detection method, equipment and storage medium based on machine vision | |
| Haoran et al. | Egg crack detection based on support vector machine | |
| CN114862802A (en) | Steel structure cutting control method based on image processing | |
| CN120047440B (en) | Method, device, equipment and medium for detecting surface cracks of aviation structural component | |
| CN116840241A (en) | Defect detection method on negative electrode surface of cylindrical dry battery based on machine vision | |
| CN118446965A (en) | Method, system, equipment and medium for detecting image defects of honeycomb core composite material | |
| CN118799314A (en) | A detection information processing method for wind power and photovoltaic power generation equipment | |
| CN119715554A (en) | Electric tricycle body spraying defect detection method and system based on machine vision | |
| CN115035110B (en) | Yarn hairiness quantitative detection method based on pit cutting and chain code tracking | |
| CN116433978A (en) | Automatic generation and automatic labeling method and device for high-quality flaw image | |
| CN114511851B (en) | Hairspring algae cell statistical method based on microscope image | |
| CN119963551A (en) | A fast detection method for data line appearance defects based on intelligent image recognition | |
| CN118688121B (en) | Lens detection system and detection method | |
| CN118570215B (en) | A method for detecting edge collapse defects of optical wafers | |
| CN119991544A (en) | Intelligent classification method and system for transmission line tension clamp defects based on two-dimensional images | |
| KR102498322B1 (en) | Apparatus and Method for Classifying States of Semiconductor Device based on Deep Learning |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PB01 | Publication | ||
| PB01 | Publication | ||
| SE01 | Entry into force of request for substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| GR01 | Patent grant | ||
| GR01 | Patent grant | ||
| EE01 | Entry into force of recordation of patent licensing contract |
Application publication date: 20240830 Assignee: YANTAI SUNNY HEXING ENVIRONMENT PROTECTION EQUIPMENT Co.,Ltd. Assignor: Yantai University Contract record no.: X2025980009037 Denomination of invention: A method for detecting edge breakage defects in optical chips Granted publication date: 20240924 License type: Common License Record date: 20250521 |
|
| EE01 | Entry into force of recordation of patent licensing contract |