KR20120074702A - Diagonal scan method for fast edge detection - Google Patents

Diagonal scan method for fast edge detection Download PDF

Info

Publication number
KR20120074702A
KR20120074702A KR1020100136621A KR20100136621A KR20120074702A KR 20120074702 A KR20120074702 A KR 20120074702A KR 1020100136621 A KR1020100136621 A KR 1020100136621A KR 20100136621 A KR20100136621 A KR 20100136621A KR 20120074702 A KR20120074702 A KR 20120074702A
Authority
KR
South Korea
Prior art keywords
image
image data
lcd
mask
camera
Prior art date
Application number
KR1020100136621A
Other languages
Korean (ko)
Other versions
KR101218637B1 (en
Inventor
박숙형
Original Assignee
(주)동아엘텍
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by (주)동아엘텍 filed Critical (주)동아엘텍
Priority to KR1020100136621A priority Critical patent/KR101218637B1/en
Publication of KR20120074702A publication Critical patent/KR20120074702A/en
Application granted granted Critical
Publication of KR101218637B1 publication Critical patent/KR101218637B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/40Extracting pixel data from image sensors by controlling scanning circuits, e.g. by modifying the number of pixels sampled or to be sampled
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V10/00Arrangements for image or video recognition or understanding
    • G06V10/40Extraction of image or video features
    • G06V10/44Local feature extraction by analysis of parts of the pattern, e.g. by detecting edges, contours, loops, corners, strokes or intersections; Connectivity analysis, e.g. of connected components
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N25/00Circuitry of solid-state image sensors [SSIS]; Control thereof
    • H04N25/60Noise processing, e.g. detecting, correcting, reducing or removing noise
    • H04N25/68Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects
    • H04N25/683Noise processing, e.g. detecting, correcting, reducing or removing noise applied to defects by defect estimation performed on the scene signal, e.g. real time or on the fly detection

Abstract

PURPOSE: A diagonal scan method for outline detection is provided to shorten time for analyzing large image data by replacing an inspection with eyes with an image processing technique. CONSTITUTION: Image data of an image are inputted wherein the image is incident through a lens of a camera. A mask is selected. The mask is used when the inputted image data are scanned. Image data are diagonally scanned using the selected mask(S2). When image data are arranged in M x N matrix on a plane, the image data are diagonally scanned from an upper left side to a lower right side.

Description

윤곽선 검출을 위한 대각선 스캔방법{DIAGONAL SCAN METHOD FOR FAST EDGE DETECTION}DIAGONAL SCAN METHOD FOR FAST EDGE DETECTION

본 발명은 영상처리분야에서 윤곽선 검출 기술에 관한 것으로, 더욱 상세하게는 영상을 수집하는 카메라의 렌즈 왜곡에 의한 영향을 최소화할 수 있는 윤곽선 검출을 위한 대각선 스캔 방법에 관한 것이다.
The present invention relates to an edge detection technique in the field of image processing, and more particularly, to a diagonal scanning method for edge detection that can minimize the effects of lens distortion of a camera collecting an image.

디스플레이 산업(LCD, OLED, PDP 등)의 생산 현장에서는 생산된 디스플레이 패널을 작업자가 육안으로 검사하는 공정이 있는데, LCD 기술발전으로 인하여 검사해야 할 LCD 사이즈가 점점 증대되고 고 해상도로 변해 감에 따라 작업자에 의한 육안검사가 어려운 상황에 도달하고 있다. 즉, 생산된 LCD패널의 오류를 검출하는 과정에서 점등이 된 LCD의 화면을 계속 보고 있으면 작업자의 눈이 피로하게 되어 생산성이 저하되고, 각각의 개인차(숙련도 등)로 인해 오류 검출의 신뢰성이 떨어지는 문제점이 있다. 따라서 규격화된 수치를 이용하여 오류 검출에 대하여 신뢰성을 높이는 동시에 생산 라인에서의 LCD 장비 생산성을 증대하기 위해서는 카메라(Camera)를 이용한 영상 처리 검사기가 필수적으로 요구된다.In the production sites of the display industry (LCD, OLED, PDP, etc.), there is a process of visually inspecting the produced display panels by the operator. As the LCD technology advances, the size of the LCD to be inspected increases and the resolution becomes higher and higher. Visual inspection by the worker has reached a difficult situation. In other words, if the user keeps watching the screen of the LCD which is lit in the process of detecting the error of the produced LCD panel, the worker's eyes are tired and productivity is lowered, and the reliability of error detection is inferior due to individual differences (skills). There is a problem. Therefore, in order to increase the reliability of error detection using standardized values and increase the productivity of LCD equipment in a production line, an image processing inspector using a camera is required.

영상 처리 검사기를 사용하여 영상을 수집하기 위해서는 카메라가 필수적으로 요구되는데, 카메라는 이미지 센서(CCD 센서 등)와 렌즈(Lens)의 특성으로 인하여 수집된 영상에 왜곡이 발생하게 된다. 예컨대, Full HD LCD 모델을 기준으로 볼 때 대략 2,073,600 (1920x1080)개의 픽셀(Pixel)을 검출하여야 하고, 30 Inch LCD를 기준으로 약 200만개 Pixel의 Size는 약 363㎛×363㎛ 이고, 1개의 Pixel은 3개의 Sub Pixel을 가지고 있다. 따라서 적어도 카메라의 CCD Cell과 LCD의 Sub-Pixel이 1:1 매칭되려면 Camera의 CCD Cell은 약 600만개의 화소를 가지고 있어야 하고, 1:1 매칭이 되지 않도록 최소 화소 분할인 4분할로 계산을 한다면 요구되는 CCD의 Cell은 적어도 600만 X 4분할 = 2,400만 화소(Resolution)를 갖는 CCD를 필요로 한다. 이렇게 되면 적어도 8bit Gray Level을 이용한 Data라 가정하여도 약 24M Bytes(2,073,600x12)의 대용량 데이터를 분석해야 한다.In order to collect an image using an image processing inspector, a camera is essential. In the camera, distortion occurs in the collected image due to characteristics of an image sensor (CCD sensor, etc.) and a lens. For example, based on the Full HD LCD model, approximately 2,073,600 (1920x1080) pixels should be detected, and the size of approximately 2 million pixels based on 30 inch LCD is about 363㎛ × 363㎛ and one pixel. Has three Sub Pixels. Therefore, at least the CCD cell of the camera and the sub-pixels of the LCD must have about 6 million pixels for 1: 1 matching, and if the calculation is performed with 4 divisions, which is the minimum pixel division, to prevent 1: 1 matching, The required cell of the CCD requires a CCD with at least 6 million x 4 divisions = 24 million pixels. In this case, a large amount of data of about 24M Bytes (2,073,600x12) should be analyzed even if data using at least 8 bit gray level is assumed.

한편, 카메라 렌즈(Lens)의 가장자리 왜곡에 따른 위치 및 형태를 바꿀 때 사용하는 영상 처리 기술로는 'Image warping' 기법이 있다. 그런데 Image warping 기법을 사용하여 위치 및 형태 변형을 주게 된다면 Image warping시에 처리하는 실수형 연산으로 인하여 원본 Image가 훼손되고, 많은 계산 시간이 소요된다. 또한 실수형 연산 처리가 빠른 그래픽 카드의 GPU를 사용하기 때문에 프로그래망(Programming)하기도 복잡한 문제점을 내포하고 있다. 이러한 문제점으로 인해 아직까지는 최첨단 자동생산설비로 이루어진 LCD라인에서 작업자의 눈을 이용한 품질 검사 구간이 있을 수 밖에 없다. Meanwhile, an image warping technique is used as an image processing technique used to change the position and shape according to the edge distortion of the camera lens (Lens). However, if the position and shape transformation is given by using image warping technique, the original image is damaged due to the real-time operation that is processed during image warping, and it takes a lot of computation time. Programming also involves complex problems because it uses the graphics card's GPU for fast real-world computation. Due to these problems, there is still a quality inspection section using the operator's eyes in the LCD line consisting of the most advanced automatic production facilities.

본 발명은 상기와 같은 문제점을 해결하기 위해 제안된 것으로, 본 발명의 목적은 디스플레이 검사 분야에서 작업자에 의한 육안검사를 영상처리기술로 대체할 수 있도록 대용량 이미지 데이터의 분석시간을 개선할 수 있게 하는 윤곽선 검출을 위한 대각선 스캔방법을 제공하는 것이다.
The present invention has been proposed to solve the above problems, and an object of the present invention is to improve the analysis time of a large amount of image data to replace the visual inspection by the operator in the field of display inspection with image processing technology It is to provide a diagonal scanning method for detecting the contour.

상기와 같은 목적을 달성하기 위하여 본 발명의 방법은, 카메라의 렌즈를 통해 입사된 영상의 이미지 데이터를 입력하는 단계; 입력된 이미지 데이터를 스캔할 때 적용할 마스크를 선택하는 단계; 및 선택된 마스크를 사용하여 이미지 데이터를 대각선 방향으로 스캔하는 단계를 포함하는 것을 특징으로 한다.In order to achieve the above object, the method of the present invention comprises the steps of: inputting image data of an image incident through the lens of the camera; Selecting a mask to be applied when scanning the input image data; And scanning the image data diagonally using the selected mask.

상기 마스크는

Figure pat00001
이거나
Figure pat00002
인 것을 특징으로 하고,The mask is
Figure pat00001
Or
Figure pat00002
Characterized by

상기 대각선 방향으로 스캔하는 단계는 평면상에 M×N 매트릭스 형태로 이미지 데이터가 배열되어 있을 때, 좌상측에서부터 우하측으로 순차적으로 진행하면서 우상측에서 좌하측으로 대각선 방향으로 스캔하는 것이다.The step of scanning in the diagonal direction is scanning diagonally from the upper right side to the lower left side while sequentially proceeding from the upper left side to the lower right side when the image data is arranged in the M × N matrix form on the plane.

본 발명에 따르면 카메라 렌즈에 의한 왜곡을 최소화하면서 윤곽선을 검출하고 특징점을 추출하여 Object(LCD Pixel)의 특성을 얻어 라벨링(Labeling)을 하고, 기존에 저장되어 있는 기준 영상과 비교하여 LCD Pixel의 오류를 추출할 수 있다. 따라서 본 발명은 디스플레이 분야에서 작업자에 의한 육안검사를 영상 처리 기술로 대체할 수 있게 한다.According to the present invention, the contour is detected while minimizing the distortion by the camera lens, and the feature points are extracted to obtain the characteristics of the object (LCD pixel) and labeling, and the error of the LCD pixel compared to the previously stored reference image. Can be extracted. Therefore, the present invention makes it possible to replace visual inspection by the operator in the display field with image processing technology.

또한 본 발명에 따르면 대각선 스캔시에 마스크를 사용함으로써 영상 처리에 소요되는 시간을 대폭 줄일 수 있다.
According to the present invention, the time required for image processing can be greatly reduced by using a mask during diagonal scan.

도 1은 본 발명이 적용되는 카메라에 사용는 CCD의 예.
도 2는 CCD 화면에서 발생되는 모아레 현상의 예,
도 3은 CCD 카메라를 통한 영상획득에서 렌즈의 영향을 설명하기 위해 도시한 도면,
도 4는 렌즈의 왜곡과 카메라 포지션 오류를 설명하기 위한 도면,
도 5는 본 발명에 따른 대각선 Scan의 예,
도 6은 본 발명에 따른 영상 처리 검사기의 개략도,
도 7은 본 발명에 따라 영상을 처리하는 전체 절차를 도시한 순서도,
도 8은 본 발명에 따른 대각선 Scan시 사용되는 Mask의 윤곽선 방향 검증 예이다.
1 is an example of a CCD used in the camera to which the present invention is applied.
2 is an example of moiré phenomenon occurring on a CCD screen;
3 is a view for explaining the effect of the lens in the image acquisition through the CCD camera,
4 is a view for explaining a lens distortion and camera position error,
5 is an example of a diagonal scan according to the present invention;
6 is a schematic diagram of an image processing inspector according to the present invention;
7 is a flowchart illustrating an overall procedure for processing an image according to the present invention;
8 is an example of verifying the contour direction of a mask used in a diagonal scan according to the present invention.

본 발명과 본 발명의 실시에 의해 달성되는 기술적 과제는 다음에서 설명하는 본 발명의 바람직한 실시예들에 의하여 보다 명확해질 것이다. 다음의 실시예들은 단지 본 발명을 설명하기 위하여 예시된 것에 불과하며, 본 발명의 범위를 제한하기 위한 것은 아니다.The technical problems achieved by the present invention and the practice of the present invention will be more clearly understood by the preferred embodiments of the present invention described below. The following examples are merely illustrative of the present invention and are not intended to limit the scope of the present invention.

도 1은 본 발명이 적용되는 카메라에 사용는 이미지 센서(CCD)의 예이고, 도 2는 CCD 화면에서 발생되는 모아레 현상의 예이다.1 is an example of an image sensor (CCD) used in a camera to which the present invention is applied, and FIG. 2 is an example of a moiré phenomenon occurring on a CCD screen.

먼저, 본 발명은 CCD의 특성과 카메라 렌즈(Camera Lens)의 특성, 그리고 TFT-LCD의 특징을 잘 고려하여야 하므로 TFT-LCD 및 TFT-LCD의 영상을 획득하기 위한 카메라의 대용량 CCD와 Lens의 특성을 이해할 필요가 있다.First, the present invention should consider the characteristics of the CCD, the characteristics of the camera lens (Camera Lens), and the characteristics of the TFT-LCD well, so the characteristics of the large-capacity CCD and lens of the camera to obtain the image of the TFT-LCD and TFT-LCD Need to understand.

카메라에 사용되는 CCD 이미지 센서는 도 1에 도시된 바와 같이, 광 다이오드의 집합체인 CCD에서 빛의 알갱이(Photon)의 양에 따라 전자가 생김으로써 화면을 이루는 이미지 정보가 만들어 진다. 이러한 특성으로 인하여 LCD 화면을 검사할 때, 도 2와 같은 모아레 현상이 발생한다. 즉, LCD Pixel의 격자 모양과 CCD의 광 다이오드가 1:1로 겹치게 되면 Photon의 전하가 한쪽으로 치우치게 되면서 물결 무늬가 겹쳐서 생기는 간섭 무늬(Interference fringe)가 발생한다. 이 간섭 무늬(Interference fringe)는 전기적인 신호로 만드는 과정에서 생기는 허상으로 이를 해결해야 하는 방법으로는 LCD Pixel의 배율 확대가 필수적이다. 배율을 확대하면 검사할 수 있는 영역은 좁아지는 반면, 검사해야 할 대상은 늘어나 이미지 데이터(Image data)의 대 용량화가 일어날 수 밖에 없다. In the CCD image sensor used in the camera, as shown in FIG. 1, electrons are generated according to the amount of photon of light in the CCD, which is a collection of photodiodes, thereby forming image information forming a screen. Due to this characteristic, the moiré phenomenon as shown in FIG. 2 occurs when the LCD screen is inspected. That is, when the lattice shape of the LCD pixel and the photodiode of the CCD overlap one to one, the charge of the photon is biased to one side, and an interference fringe generated by the overlapping of wave patterns occurs. This interference fringe is a virtual image generated in the process of making an electrical signal. To solve this problem, magnification of the LCD pixel is essential. Increasing the magnification narrows the area that can be inspected, while increasing the number of objects to be inspected, which inevitably leads to a large capacity of the image data.

또한 LCD 이미지 데이터(Image Data)를 분석하기 위하여 배율을 확대하여야 하고, LCD의 R, G, B Sub-Pixel을 입력받기 위하여 CCD의 칼라 필터(Color filter)를 사용하게 된다면 R, G, B 24bit Row file로 만들어 계산해야 한다. 그렇게 되면 CCD의 4개 Pixel(R, G, B, G)이 하나의 Pixel로 동작하기 때문에 이미지 데이터 파일(Image Data File)의 사이즈(Size)는 12배 {4(CCD의 4개 Pixel) x 3(LCD의 Sub-Pixel)}만큼 커지는 문제점이 발생하게 된다. 이에 본 발명의 실시예에서는 칼라 필터(Color filter)를 사용하지 않고, 순수 그레이 레벨(Gray Level)만으로 R, G, B를 검토한다. In addition, the magnification must be enlarged to analyze LCD image data, and if the color filter of CCD is used to receive the LCD's R, G, and B sub-pixels, R, G, B 24bit It needs to be calculated as a row file. Then, the size of the image data file is 12 times {4 (4 pixels of CCD) x because 4 pixels (R, G, B, G) of the CCD operate as one pixel. 3 (Sub-Pixel of the LCD)} as large as the problem occurs. Therefore, in the embodiment of the present invention, R, G, and B are examined only with pure gray levels without using a color filter.

도 3은 CCD 카메라를 통한 영상 획득에서 렌즈의 영향을 설명하기 위해 도시한 도면이다.3 is a diagram for explaining the effect of the lens in the image acquisition by the CCD camera.

카메라의 렌즈 특성을 살펴보면, 이미지의 배율을 확대하여 넓은 영역을 검사하고자 할 때에는 넓은 구경의 렌즈(Lens)를 사용하게 된다. 도 3과 같이 렌즈의 중심을 통과하는 상의 중앙부와 렌즈의 모서리 부분을 지나는 상의 가장자리 부분이 렌즈의 특성으로 인하여 그 위치나 상이 왜곡되는 현상이 생긴다. 이러한 문제점을 해결하기 위하여 이미지 프로세싱(Image processing)의 Image warping 기법을 사용하여야 하나, 이 기법을 사용하게 되면 실수형 연산으로 인하여 대용량의 데이터(Data)를 처리하데 시간이 오래 걸리고, 원본 이미지도 훼손된다. 이에 본 발명에서는 대각선 스캔 방식을 이용한다. 또한 도 3의 객체(Object)가 전체적으로 같은 휘도를 나타내더라도 필름(Film)쪽에 맺혀지는 상의 휘도는 렌즈(Lens) 통하여 이동한 빛의 양에 따라 틀려지게 된다. LCD의 정 중간 휘도와 가장자리 휘도의 차이는 Gray 0~255 기준으로 100정도까지 나타난다. 하지만 윤곽선을 검출할 때 측정되는 기울기 값은 위치에 상관없이 일정하다.Looking at the characteristics of the lens of the camera, when the magnification of the image to examine a large area to use a wide aperture lens (Lens). As shown in FIG. 3, the position and image of the center portion of the image passing through the center of the lens and the edge portion of the image passing through the edge of the lens are distorted due to the characteristics of the lens. In order to solve this problem, Image warping method of image processing should be used, but this method takes a long time to process large data due to real operation, and damages the original image. do. Accordingly, the present invention uses a diagonal scan method. In addition, even though the object of FIG. 3 has the same luminance as a whole, the luminance of the image formed on the film side is changed according to the amount of light moved through the lens. The difference between the center brightness and the edge brightness of LCD is about 100 at Gray 0 ~ 255. However, the slope value measured when detecting the contour is constant regardless of the position.

한편, 태양빛에 반사되어 보여지는 일반적인 사물과 다르게 TFT LCD의 경우 LED나 CCFL 광원이 액정을 통과하여 보여진다. 이 액정은 보통 60Hz의 동작 속도로 반응한다. 그런데 TFT LCD는 직류를 사용하여 같은 전압을 계속 걸어 주게 되면 액정이 계속 같은 방향으로 서 있고 극성을 따라서 액정 패널이 한쪽으로 몰려 버리게 됨으로 더 이상 액정이 작동을 안 하는 '액정 열화 현상'이라는 문제점이 발생한다. 그래서 LCD Panel의 위와 아래에 전압을 걸어 줄 때 계속적으로 +, -를 바꾸어 걸어 줌으로 '액정 열화 현상'문제를 해결한다. 예를 들자면 액정이 45도만큼 기울이고 싶으면 좌로 45도, 다음 Frame에서는 우로 45도 바꿔 주도록 전압을 계속 바꾸어주도록 TFT-LCD는 설계되어 있다. 이 때 극성이 같은 전압을 주어야 하는데, 캡이 있는 기생축전용량 때문에 좌우 같은 각도로 맞추기가 쉽지 않아 화면이 깜박거리는 것처럼 느껴진다. 이와 같이 LCD 화면에서 나오는 빛의 세기가 일정하지 않고 시간에 따라 주기적으로 변하므로 사용자에게 빛의 깜박거림이 느껴지는 현상을 플리커(Flicker)라 한다.On the other hand, unlike the general object seen reflected by the sunlight, in the case of TFT LCD, LED or CCFL light source is seen through the liquid crystal. This liquid crystal usually responds at an operating speed of 60 Hz. However, the problem is that the liquid crystal deterioration phenomenon that the liquid crystal does not work anymore because the TFT LCD keeps applying the same voltage by direct current and the liquid crystal keeps standing in the same direction and the liquid crystal panel is pushed to one side along the polarity. Occurs. Therefore, it solves the 'liquid crystal deterioration' problem by continuously changing + and-when applying voltage on the LCD panel. For example, TFT-LCD is designed to continuously change the voltage so that the liquid crystal can be tilted by 45 degrees and 45 degrees to the left and 45 degrees to the right in the next frame. At this time, the same polarity should be applied. Because of the parasitic capacitance with the cap, it is not easy to adjust the angle from the left and right, which makes the screen flicker. As such, the intensity of light emitted from the LCD screen is not constant but changes periodically with time, so that a flicker of light is felt by the user.

이러한 플리커(Flicker)로 인하여 LCD의 모든 위치에 있는 픽셀(Pixel)에서 동시에 빛을 발산하는 것이 아니기 때문에 카메라의 노출 시간을 충분히 설정하여야만 한다. 예컨대, 60 Hz로 구동하는 TFT-LCD는 카메라 노출 시간을 적어도 33ms(60Hz = 16.6ms인데 좌, 우측으로 기울기 때문에 16.6 x 2 = 33.3 ms) 이상의 노출을 필요로 한다.Because of this flicker, the camera does not emit light at the same time in all pixels of the LCD, so the exposure time of the camera must be set sufficiently. For example, a TFT-LCD driving at 60 Hz requires an exposure of at least 33 ms (16.6 x 2 = 33.3 ms) since the camera exposure time is at least 33 ms (60 Hz = 16.6 ms but tilted left and right).

하지만 R, G, B Sub-Pixel로 이루어진 LCD 픽셀(Pixel)의 특성으로 인하여 노출 시간이 많아 진다면 Green 빛이 밝기 때문에 밝은 빛에서 퍼짐 현상이 발생하고, 이로 인해 분석하기 힘든 이미지 데이터를 얻을 수 있다. 그러므로 충분한 테스트를 통하여 적정한 카메라 노출 시간을 확보하여야 한다. However, if the exposure time increases due to the characteristics of the LCD pixel composed of R, G, and B sub-pixels, green light spreads out from bright light due to the brightness, which may result in difficult to analyze image data. . Therefore, adequate testing should ensure proper camera exposure time.

도 4는 렌즈의 왜곡과 카메라 포지션 오류를 설명하기 위한 도면이고, 도 5는 본 발명에 따른 대각선 Scan 방식을 도시한 도면이다.4 is a diagram illustrating a lens distortion and a camera position error, and FIG. 5 illustrates a diagonal scan method according to the present invention.

LCD 픽셀의 위치가 카메라 렌즈의 왜곡으로 도 4a와 같이 오목해지던가 위치 설정에 대한 오류로 인하여 상의 각도가 약간 변경되면, 도 4b와 같이 검사하려는 상의 위치가 변하게 되고, 이와 같은 상태에서 수직/수평으로 스캔하면 순서대로 픽셀을 검사할 수 없게 된다. 따라서 본 발명에서는 도 5a 및 도 5b와 같이 이미지 데이터를 대각선 방향으로 스캔하여 렌즈의 왜곡에 따라 상의 위치가 변경이 되더라도 순서대로 픽셀을 찾는 것이 가능하게 된다.If the position of the LCD pixel is concave as shown in FIG. 4A due to the distortion of the camera lens or the angle of the image is slightly changed due to an error in positioning, the position of the image to be inspected is changed as shown in FIG. Scanning with will make it impossible to inspect the pixels in order. Accordingly, in the present invention, as shown in FIGS. 5A and 5B, image data may be scanned in a diagonal direction, and pixels may be sequentially searched even if the position of the image changes according to the distortion of the lens.

도 5a 및 도 5b를 참조하면, x,y 축 평면상에 M×N 매트릭스 형태로 이미지 데이터가 배열되어 있을 때 좌상측에서부터 우하측으로 순차적으로 진행하면서 대각선 방향으로 스캔한다. 즉, 도 5a와 같이 1,2,3,4,5,6,7,8,9... 순으로 가면서 화살표와 같이 우상측에서 좌하측으로 대각선 방향으로 스캔이 이루어진다. 5A and 5B, when image data is arranged in an M × N matrix form on the x and y axis planes, scanning is performed in a diagonal direction while sequentially proceeding from the upper left side to the lower right side. That is, as shown in FIG. 5A, the scan is performed in the diagonal direction from the upper right side to the lower left side as shown by the arrow in the order of 1,2,3,4,5,6,7,8,9.

앞서 살펴 본 바와 같이 LCD의 정중간의 이미지와 모서리 부분의 이미지가 실질적으로는 같으나 10M Pixel급 이상의 CCD를 사용하는 카메라는 렌즈의 구경이 크기 때문에 상이 CCD에 맺혔을 경우 상의 크기 및 형태에 왜곡이 생기며, 상의 휘도 또한 다르게 나타난다. 왜곡된 상을 보정하다 보면 픽셀(Pixel)의 위치에 영향을 미치게 되고, 휘도를 보정하게 되면 실제 휘도가 문제가 되는 픽셀(Pixel)의 오류를 검출하는데 어려움이 발생하게 된다. 또한 노이즈에 대한 부분을 정리하다 보면 원본 데이터에 수정이 가해졌기 때문에 각각의 픽셀(Pixel)정보의 신뢰성이 떨어진다. As described above, the image between the center of the LCD and the image of the corner is substantially the same, but the camera using the CCD of 10M Pixel or more has a large aperture of the lens, which causes distortion in the size and shape of the image when the image is formed on the CCD. The brightness of the, phase is also different. Correcting the distorted image affects the position of the pixel, and correcting the luminance causes difficulty in detecting an error of the pixel, in which the actual luminance is a problem. In addition, when the noise is summarized, since the original data is modified, the reliability of each pixel information is inferior.

따라서 본 발명에서는 원본 데이터를 이용하여 찾고자 하는 객체(Object; 즉, LCD의 Pixel)부터 검출한 뒤, 각 Object의 특징(위치, 크기, 평균 휘도, 최대 휘도) 등을 잘 조합하여 휘도에 마스킹(Masking)하는 방법을 사용한다.Therefore, in the present invention, the original data is detected from an object (ie, the pixel of the LCD) to be searched for, and then the characteristics (position, size, average luminance, maximum luminance) of each object are well combined to mask the luminance ( Masking method is used.

대각선 스캔(Scan)시에 윤곽선을 검출하는 알고리즘은 대각선 방향으로 Scan이 이루어지기 때문에 다음 수학식1 또는 수학식2와 같은 Mask를 사용하여 Scan시의 속도를 높여 시간을 줄이는 방법을 사용하도록 한다.The algorithm for detecting contours during diagonal scans is performed in the diagonal direction so that a method such as Equation 1 or Equation 2 is used to reduce the time by increasing the speed at the time of scanning.

Figure pat00003
Figure pat00003

Figure pat00004
Figure pat00004

종래의 1차 미분 연산을 사용하면 X축과 Y축 방향으로 모두 14번 이상의 연산이 필요하고, 2차 미분 연산을 사용했을 경우에도 총 9번의 연산 처리가 요구되었으나 본 발명에 따라 수학식1 또는 수학식2의 마스크를 사용한다면 2번 또는 3번의 연산으로 처리할 수 있어 계산의 효율을 높일 수 있다. When the conventional first derivative is used, more than 14 calculations are required in both the X and Y directions, and even when the second derivative is used, a total of nine calculations are required. If the mask of Equation 2 is used, it can be processed by two or three operations, thereby increasing the efficiency of the calculation.

또한 목표(Target)가 되는 객체(Object)를 찾는 부분이기 때문에 기존의 윤곽선 알고리즘을 적용할 필요가 없고, 좌에서 우측, 상에서 하측 방향으로 객체(Object)를 스캔(Scan)하기 때문에 아래쪽으로 경계선을 찾는 목적으로 수학식1 또는 수학식2와 같은 Mask를 제안한다. Also, since it is a part that finds the target object, there is no need to apply the existing contour algorithm, and it scans the object downward from left to right and top to bottom. For the purpose of finding, we propose a mask like Equation 1 or Equation 2.

도 6은 본 발명이 적용되는 영상 처리 검사기의 개략도이고, 도 7은 본 발명에 따라 영상을 처리하는 전체 절차를 도시한 흐름도이며, 도 8은 본 발명에 따른 대각선 Scan시 사용되는 Mask의 윤곽선 방향 검증 예이다.6 is a schematic diagram of an image processing inspector to which the present invention is applied, and FIG. 7 is a flowchart illustrating an entire process of processing an image according to the present invention, and FIG. 8 is a contour direction of a mask used in a diagonal scan according to the present invention. This is an example of verification.

본 발명이 적용되는 영상 처리 검사기는 도 6에 도시된 바와 같이, 검사 대상인 LCD(10)를 촬영하여 이미지 데이터를 수집하는 카메라(20)와, 카메라(20)로부터 입력된 영상의 이미지 데이터를 대각선 스캔하는 대각선 스캔모듈(30)과, 대각선 스캔에 의해 구해진 데이터들을 처리하여 윤곽선을 검출하는 윤곽선 검출모듈(40)과, 검출된 객체(픽셀)의 크기 형태 등을 추출하는 특징점 추출모듈(50)과, 추출된 특징점을 이용하여 검사대상의 결점을 판단하는 판단모듈(60)로 구성된다. 대각선 스캔모듈(30)은 이미지 데이터를 입력받는 영상입력부(32)와, 스캔시 적용할 마스크를 선택하는 마스크 선택부(34)와, 선택된 마스크로 이미지 데이터를 대각선 방향으로 스캔하는 스캔부(36)로 이루어진다.As illustrated in FIG. 6, the image processing inspector to which the present invention is applied is diagonally formed by dividing the image data of an image input from the camera 20 and a camera 20 for capturing image data by capturing the LCD 10 as an inspection object. Diagonal scan module 30 for scanning, contour detection module 40 for detecting the contour by processing the data obtained by the diagonal scan, and feature point extraction module 50 for extracting the size of the detected object (pixel), etc. And a determination module 60 for determining defects of the inspection target by using the extracted feature points. The diagonal scan module 30 includes an image input unit 32 for receiving image data, a mask selecting unit 34 for selecting a mask to be applied during scanning, and a scanning unit 36 for scanning image data in a diagonal direction with the selected mask. )

도 7을 참조하면, 카메라로 영상 데이터를 획득한 후 마스크를 사용하여 대각선 Scan으로 윤곽선이 추출될 때까지 스캔(Scan)한다(S1,S2). 스캔시에 본 발명에 따라 제안하는 대각선 방향 마스킹(Masking) 연산자를 사용하도록 한다. 윤곽선이 추출되면, 윤곽선 방향으로 최대값을 얻도록 하고, 최대값 주변으로 기울기가 급격하게 변하는 점을 연결하여 윤곽선을 완성한다(S3,S4). 윤곽선이 완성이 되면 해당 객체(Object; Pixel)의 Size, 형태 등을 검토하도록 하고, 모든 객체(Object)를 얻으면 픽셀(Pixel) 개수를 확인하여 포인트 결점(Point Defect Error)을 찾도록 한다(S5,S6).Referring to FIG. 7, image data is acquired by a camera and then scanned until a contour is extracted by a diagonal scan using a mask (S1 and S2). When scanning, use the diagonal masking operator proposed in accordance with the present invention. When the contour is extracted, the maximum value is obtained in the direction of the contour, and the contour is completed by connecting the points where the slope rapidly changes around the maximum value (S3, S4). When the outline is completed, the size and shape of the object are reviewed, and when all objects are obtained, the point number is found by checking the number of pixels (S5). S6).

도 8은 여러 형태의 객체(Object)를 본 발명에 따라 제안하는 Mask 방법을 이용하여 검출 시 스캔(Scan)되는 형태를 묘사한 것이다. 위에서 아래 방향, 우측에서 좌측 방향으로 이동하며 스캔(Scan)되는 방식을 통하여 Mask 연산자도 같은 방향으로 연산이 될 수 있도록 만들었다. FIG. 8 illustrates a form in which various types of objects are scanned when detected by using a mask method proposed according to the present invention. The Mask operator can be operated in the same direction by scanning while moving from top to bottom and right to left.

도 8을 참조하면, 사각형, 원, 대각선1, 대각선2의 방향으로 연산이 이루어지는 것을 알 수 있다.
Referring to Figure 8, it can be seen that the operation is made in the direction of the rectangle, circle, diagonal 1, diagonal 2.

이상에서 본 발명은 도면에 도시된 일 실시예를 참고로 설명되었으나, 본 기술분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다.
The present invention has been described above with reference to one embodiment shown in the drawings, but those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom.

10: 검사대상 20: 카메라
30: 대각선 스캔모듈 40: 윤곽선 검출모듈
50: 특징점 추출모듈 60: 판단모듈
10: inspection target 20: camera
30: diagonal scan module 40: contour detection module
50: feature extraction module 60: judgment module

Claims (4)

카메라의 렌즈를 통해 입사된 영상의 이미지 데이터를 입력하는 단계;
입력된 이미지 데이터를 스캔할 때 적용할 마스크를 선택하는 단계; 및
선택된 마스크를 사용하여 이미지 데이터를 대각선 방향으로 스캔하는 단계를 포함하는 것을 특징으로 하는 윤곽선 검출을 위한 대각선 스캔방법.
Inputting image data of an image incident through a lens of a camera;
Selecting a mask to be applied when scanning the input image data; And
And scanning the image data in a diagonal direction using the selected mask.
제1항에 있어서, 상기 마스크는
Figure pat00005
인 것을 특징으로 하는 윤곽선 검출을 위한 대각선 스캔방법.
The method of claim 1, wherein the mask is
Figure pat00005
Diagonal scanning method for contour detection, characterized in that.
제1항에 있어서, 상기 마스크는
Figure pat00006
인 것을 특징으로 하는 윤곽선 검출을 위한 대각선 스캔방법.
The method of claim 1, wherein the mask is
Figure pat00006
Diagonal scanning method for contour detection, characterized in that.
제1항에서 상기 대각선 방향으로 스캔하는 단계는
평면상에 M×N 매트릭스 형태로 이미지 데이터가 배열되어 있을 때, 좌상측에서부터 우하측으로 순차적으로 진행하면서 우상측에서 좌하측으로 대각선 방향으로 스캔하는 것을 특징으로 하는 윤곽선 검출을 위한 대각선 스캔방법.
The step of scanning in the diagonal direction of claim 1
A diagonal scanning method for contour detection, characterized by scanning diagonally from the upper right side to the lower left side while sequentially proceeding from the upper left side to the lower right side when the image data is arranged in a M × N matrix form on a plane.
KR1020100136621A 2010-12-28 2010-12-28 Diagonal scan method for fast edge detection KR101218637B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020100136621A KR101218637B1 (en) 2010-12-28 2010-12-28 Diagonal scan method for fast edge detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020100136621A KR101218637B1 (en) 2010-12-28 2010-12-28 Diagonal scan method for fast edge detection

Publications (2)

Publication Number Publication Date
KR20120074702A true KR20120074702A (en) 2012-07-06
KR101218637B1 KR101218637B1 (en) 2013-01-04

Family

ID=46708787

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020100136621A KR101218637B1 (en) 2010-12-28 2010-12-28 Diagonal scan method for fast edge detection

Country Status (1)

Country Link
KR (1) KR101218637B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101384784B1 (en) * 2012-12-31 2014-04-21 창원대학교 산학협력단 Methods for detecting optimal position for mobile device
US9734591B2 (en) 2014-09-02 2017-08-15 Samsung Electronics Co., Ltd. Image data processing method and electronic device supporting the same

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11100352B2 (en) 2018-10-16 2021-08-24 Samsung Electronics Co., Ltd. Convolutional neural network for object detection

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100220833B1 (en) * 1996-10-30 1999-09-15 전주범 The target tracking method for video phone
JP4058368B2 (en) * 2003-03-27 2008-03-05 ジーイー・メディカル・システムズ・グローバル・テクノロジー・カンパニー・エルエルシー Ultrasonic diagnostic equipment
KR20070095079A (en) * 2006-03-20 2007-09-28 에이치아이엘(주) The edge trace method for angiocardiography using least squares method

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101384784B1 (en) * 2012-12-31 2014-04-21 창원대학교 산학협력단 Methods for detecting optimal position for mobile device
US9734591B2 (en) 2014-09-02 2017-08-15 Samsung Electronics Co., Ltd. Image data processing method and electronic device supporting the same

Also Published As

Publication number Publication date
KR101218637B1 (en) 2013-01-04

Similar Documents

Publication Publication Date Title
US7978903B2 (en) Defect detecting method and defect detecting device
KR101958634B1 (en) Apparatus and Method for Mura Defect Detection of Display Device
US8428334B2 (en) Inspection System
CN109872309B (en) Detection system, method, device and computer readable storage medium
CN105335963A (en) Edge defect detection method and apparatus
CN111474177A (en) Liquid crystal screen backlight foreign matter defect detection method based on computer vision
JP2004294202A (en) Defect detection method and device of screen
JPWO2010146733A1 (en) Display panel defect inspection method and defect inspection apparatus
KR102009740B1 (en) Apparatus for inspecting of display panel and method thereof
KR101876908B1 (en) Enhancement method for location accuracy of display panel defect
JP4143660B2 (en) Image analysis method, image analysis apparatus, inspection apparatus, image analysis program, and computer-readable recording medium
KR101261016B1 (en) method and apparatus for automatic optical inspection of flat panel substrate
KR101980755B1 (en) Apparatus for automatic inspection of the color difference mura for the display panel and method for the same
KR101068356B1 (en) Method for inspecting defect of the Pixels in display panel device by image
KR20120074702A (en) Diagonal scan method for fast edge detection
JP2009036582A (en) Inspection method, inspection device and inspection program of plane display panel
CN114529500A (en) Defect inspection method for display substrate
KR20140082333A (en) Method and apparatus of inspecting mura of flat display
KR101426487B1 (en) Apparatus for inspecting of display panel and method thereof
JPH11257937A (en) Defect inspecting method
US7330580B2 (en) System and method for inspecting an LCD panel
KR20140082335A (en) Method and apparatus of inspecting mura of flat display
JP4743230B2 (en) Appearance inspection method and appearance inspection apparatus
JP4822468B2 (en) Defect inspection apparatus, defect inspection method, and pattern substrate manufacturing method
JP2008096302A (en) Defect inspection device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20151228

Year of fee payment: 4

FPAY Annual fee payment

Payment date: 20170126

Year of fee payment: 5

FPAY Annual fee payment

Payment date: 20171228

Year of fee payment: 6