KR100883544B1 - Image tester capable of high speed position correction of image and method thereof - Google Patents
Image tester capable of high speed position correction of image and method thereof Download PDFInfo
- Publication number
- KR100883544B1 KR100883544B1 KR1020070080241A KR20070080241A KR100883544B1 KR 100883544 B1 KR100883544 B1 KR 100883544B1 KR 1020070080241 A KR1020070080241 A KR 1020070080241A KR 20070080241 A KR20070080241 A KR 20070080241A KR 100883544 B1 KR100883544 B1 KR 100883544B1
- Authority
- KR
- South Korea
- Prior art keywords
- histogram
- image
- line
- interval
- value
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/00002—Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for
- H04N1/00005—Diagnosis, testing or measuring; Detecting, analysing or monitoring not otherwise provided for relating to image data
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformation in the plane of the image
- G06T3/40—Scaling the whole image or part thereof
- G06T3/4015—Demosaicing, e.g. colour filter array [CFA], Bayer pattern
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T5/00—Image enhancement or restoration
- G06T5/40—Image enhancement or restoration by the use of histogram techniques
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/80—Analysis of captured images to determine intrinsic or extrinsic camera parameters, i.e. camera calibration
- G06T7/85—Stereo camera calibration
Abstract
영상의 고속 위치 보정이 가능한 영상 검사기 및 영상 검사 방법이 개시된다. 상기 영상 검사 방법은 입력 영상을 그레이 스케일로 변환하고, 변환된 상기 입력 영상을 라인 단위로 구분하여 라인별 히스토그램 값을 산출하고 산출된 라인별 히스토그램 값에 기초하여 제1 히스토그램을 생성하는 단계; 상기 제1 히스토그램을 제1 간격 단위로 분할하고, 분할된 제1 간격별로 라인별 히스토그램의 평균을 계산하고, 계산결과에 기초하여 제2 히스토그램을 생성하는 단계; 상기 제2 히스토그램을 제2 간격 단위로 분할하고, 분할된 제2 간격별 제2 히스토그램 값의 변화량을 검출하고, 검출 결과에 기초하여 제3 히스토그램을 생성하는 단계; 및 상기 제3 히스토그램과 미리 저장된 기준 히스토그램을 비교하고 비교결과에 기초하여 상기 입력 영상의 위치 에러 여부를 검출하는 단계를 포함하여 입력 영상의 검사시 2차원 영상을 1차원으로 처리하여 영상의 고속 위치 보정이 가능한 효과가 있다.Disclosed are an image inspector and an image inspection method capable of fast position correction of an image. The image inspection method may include converting an input image to gray scale, dividing the converted input image into line units, calculating a histogram value for each line, and generating a first histogram based on the calculated histogram value for each line; Dividing the first histogram by a first interval unit, calculating an average of the histograms per line for each of the divided first intervals, and generating a second histogram based on a calculation result; Dividing the second histogram by a second interval unit, detecting a change amount of the second histogram value for each divided second interval, and generating a third histogram based on a detection result; And comparing the third histogram with a previously stored reference histogram and detecting whether there is a position error of the input image based on a result of the comparison. There is an effect that can be corrected.
렌즈, 초점 Lens, focus
Description
본 발명은 출력 영상 검사 기술에 관한 것으로, 보다 상세하게는 영상의 고속 위치 보정이 가능한 영상 검사기 및 영상 검사 방법에 관한 것이다.The present invention relates to an output image inspection technique, and more particularly, to an image inspector and an image inspection method capable of fast position correction of an image.
컴퓨터 비전(computer vision)은 인공지능(artificial intelligence)의 한 분야로서, 상기 컴퓨터 비전의 목적은 어떤 영상에서 장면이나 특징 등을 이해하고 분석하는 것이다.Computer vision is a field of artificial intelligence, and the purpose of computer vision is to understand and analyze scenes, features, etc. in an image.
상기 컴퓨터 비전은 주로 영상에서 특정 물체의 인식, 인식된 특정 물체에 대한 분석 및 등록, 연속 영상에서 특정 물체의 추적 또는 특정 장면을 3차원 모델로 매핑(mapping)하는데 사용되는데, 이를 위해 영상의 패턴인식(pattern recognition), 영상 프로세싱, 그래프 이론(Graph Theory), 또는 인지 심리학(cognitive psychology) 등의 다양한 분야의 기술이 사용된다.The computer vision is mainly used to recognize a specific object in an image, to analyze and register a recognized specific object, to track a specific object in a continuous image, or to map a specific scene to a three-dimensional model. Techniques in various fields are used, such as pattern recognition, image processing, graph theory, or cognitive psychology.
특히, 상기 컴퓨터 비전 분야 중의 하나인 머신 비전(Machine Vision)은 컴퓨터가 자동으로 작업 공정 현장의 영상을 수신하고 감지(sensing) 및 해석하여 공정을 개선하는 인공지능 분야이다.In particular, machine vision, one of the computer vision fields, is an artificial intelligence field in which a computer automatically receives, senses, and interprets an image of a work process site to improve a process.
상기 컴퓨터는 상기 머신 비전에서 입력된 영상에서 특정 물체를 인식하는 경우 모형 매칭(template matching)을 사용하는데, 상기 모형 매칭은 영상에서 찾고자하는 모형(즉, 특정물체)가 어디에 위치하는가를 알아내는 방법이다.The computer uses template matching when recognizing a specific object in an image input from the machine vision, and the model matching is a method of determining where a model (that is, a specific object) to be found in the image is located. to be.
예컨대, 상기 컴퓨터는 인쇄 산업, 제지, 또는 필름 생산과 같이 고속으로 연속물체를 생산하는 산업 시스템에 이용되어 상기 모형 매칭을 통하여 원본 영상과 상기 산업 시스템에서 출력된 복사된 영상을 비교하고 비교결과에 기초하여 상기 복사된 영상의 품질검사(quality inspection)를 할 수 있다.For example, the computer is used in an industrial system for producing continuous objects at high speed, such as in the printing industry, papermaking, or film production, and compares the original image and the copied image output from the industrial system through the model matching and compares the result with the comparison result. On the basis of this, a quality inspection of the copied image may be performed.
상기 컴퓨터는 상기 모형 매칭을 통하여 사용자가 원하는 모형의 위치 또는 형상을 포함하는 원본 영상과 비교하여 상기 모형이 복사된 영상에서 얼마나 잘 일치하는지 측정할 수 있고 측정된 결과를 반영하여 상기 모형의 위치보정 또는 형상보정 등을 수행할 수 있다.The computer may measure how well the model matches the copied image by comparing the original image including the position or shape of the model desired by the model through the model matching, and correct the position of the model by reflecting the measured result. Alternatively, shape correction may be performed.
그러나 일반적으로 사용되는 상기 모형 매칭은 원본 영상과 복사된 영상의 비교시 영상을 2차원적으로 처리하여 연산을 수행하고 상기 복사된 영상의 픽셀을 조금씩 이동시켜 최적의 위치를 찾기 때문에 연산시간 및 매칭 시간이 많이 소모될 수 있다.However, the commonly used model matching performs computation by processing the image two-dimensionally when comparing the original image and the copied image, and finds the optimal position by moving the pixels of the copied image little by little. This can be time consuming.
따라서 본 발명이 이루고자 하는 기술적인 과제는 영상 검사시 2차원 영상을 1차원으로 히스토그램화하여 영상의 고속 위치 보정이 가능한 영상 검사기 및 영상 검사 방법을 제공하는 것이다.Accordingly, a technical problem to be achieved by the present invention is to provide an image inspector and an image inspection method capable of high-speed position correction of an image by histogramting a two-dimensional image in one dimension during image inspection.
상기 기술적 과제를 달성하기 위한 영상 검사 방법은 입력 영상을 그레이 스케일로 변환하고, 변환된 상기 입력 영상을 라인 단위로 구분하여 라인별 히스토그램 값을 산출하고 산출된 라인별 히스토그램 값에 기초하여 제1 히스토그램을 생성하는 단계; 상기 제1 히스토그램을 제1 간격 단위로 분할하고, 분할된 제1 간격별로 라인별 히스토그램의 평균을 계산하고, 계산결과에 기초하여 제2 히스토그램을 생성하는 단계; 상기 제2 히스토그램을 제2 간격 단위로 분할하고, 분할된 제2 간격별 제2 히스토그램 값의 변화량을 검출하고, 검출 결과에 기초하여 제3 히스토그램을 생성하는 단계; 및 상기 제3 히스토그램과 미리 저장된 기준 히스토그램을 비교하고 비교결과에 기초하여 상기 입력 영상의 위치 에러 여부를 검출하는 단계를 포함할 수 있다.In accordance with another aspect of the present invention, an image inspection method includes converting an input image to gray scale, dividing the converted input image by line, and calculating a histogram value for each line and a first histogram based on the calculated histogram value for each line. Generating a; Dividing the first histogram by a first interval unit, calculating an average of the histograms per line for each of the divided first intervals, and generating a second histogram based on a calculation result; Dividing the second histogram by a second interval unit, detecting a change amount of the second histogram value for each divided second interval, and generating a third histogram based on a detection result; And comparing the third histogram with a pre-stored reference histogram and detecting whether there is a position error of the input image based on a comparison result.
상기 라인 단위는, 수직 방향 또는 수평 방향 중에서 적어도 어느 하나의 방향을 기준으로 할 수 있다.The line unit may be based on at least one of the vertical direction and the horizontal direction.
상기 라인별 히스토그램 값은, 상기 라인 단위를 구성하는 픽셀들의 총 합 또는 평균일 수 있다.The histogram value for each line may be a total sum or an average of pixels constituting the line unit.
상기 영상 검사 방법은, 상기 비교결과에 기초하여 위치 보정 신호를 발생하는 단계를 더 포함하며, 상기 위치 보정 신호는 인쇄장치에 전송되고 상기 인쇄장치는 상기 위치 보정 신호에 응답하여 상기 입력 영상을 구성하는 피사체의 위치를 보정 할 수 있다.The image inspection method may further include generating a position correction signal based on the comparison result, wherein the position correction signal is transmitted to a printing apparatus and the printing apparatus configures the input image in response to the position correction signal. You can correct the position of the subject.
상기 제2 간격별 제2 히스토그램 값은, 상기 제2 간격 단위로 분할된 상기 제2 히스토그램의 구간들 중에서 어느 하나의 구간을 구성하는 히스토그램 값들의 합과 상기 어느 하나의 구간과 인접한 다른 하나의 구간을 구성하는 히스토그램 값들의 합의 차이 값에 기초하여 생성될 수 있다.The second histogram value for each second interval may include a sum of histogram values constituting any one of the sections of the second histogram divided by the second interval unit and another section adjacent to the one interval. It may be generated based on the difference value of the sum of the histogram values constituting the.
상기 기술적 과제를 달성하기 위한 영상 검사기는 입력 영상을 그레이 스케일로 변환하고, 변환된 상기 입력 영상을 라인 단위로 구분하여 라인별 히스토그램 값을 산출하고 산출된 라인별 히스토그램 값에 기초하여 제1 히스토그램을 생성하는 그레이 스케일 변환부; 상기 제1 히스토그램을 제1 간격 단위로 분할하고, 분할된 제1 간격별로 라인별 히스토그램의 평균을 계산하고, 계산결과에 기초하여 제2 히스토그램을 생성하는 블러링부; 상기 제2 히스토그램을 제2 간격 단위로 분할하고, 분할된 제2 간격별 제2 히스토그램 값의 변화량을 검출하고, 검출 결과에 기초하여 제3 히스토그램을 생성하는 에지 검출부; 및 상기 제3 히스토그램과 미리 저장된 기준 히스토그램을 비교하고 비교결과에 기초하여 상기 입력 영상의 위치 에러 여부를 검출하는 비교 판단부를 포함할 수 있다.In order to accomplish the above technical problem, an image inspector converts an input image to gray scale, calculates a histogram value for each line by dividing the converted input image by line units, and generates a first histogram based on the calculated histogram value for each line. A gray scale conversion unit to generate; A blurring unit for dividing the first histogram into units of a first interval, calculating an average of the histograms per line for each of the divided first intervals, and generating a second histogram based on a calculation result; An edge detector for dividing the second histogram by a second interval unit, detecting an amount of change in the second histogram value for each divided second interval, and generating a third histogram based on a detection result; And a comparison determiner configured to compare the third histogram with a previously stored reference histogram, and detect whether a position error of the input image is detected based on a comparison result.
상기 라인 단위는, 수직 방향 또는 수평 방향 중에서 적어도 어느 하나의 방향을 기준으로 할 수 있다.The line unit may be based on at least one of the vertical direction and the horizontal direction.
상기 라인별 히스토그램 값은, 상기 라인 단위를 구성하는 픽셀들의 총 합 또는 평균일 수 있다.The histogram value for each line may be a total sum or an average of pixels constituting the line unit.
상기 영상 검사기는, 상기 비교결과에 기초하여 위치 보정 신호를 발생하는 보정부를 더 포함하며, 상기 위치 보정 신호는 인쇄장치에 전송되고 상기 인쇄장치는 상기 위치 보정 신호에 응답하여 상기 입력 영상을 구성하는 피사체의 위치를 보정할 수 있다.The image inspector may further include a correction unit generating a position correction signal based on the comparison result, wherein the position correction signal is transmitted to a printing apparatus and the printing apparatus configures the input image in response to the position correction signal. You can correct the position of the subject.
상기 제2 간격별 제2 히스토그램의 변화량은, 상기 제2 간격 단위로 분할된 상기 제2 히스토그램의 구간들 중에서 어느 하나의 구간을 구성하는 히스토그램 값들의 합과 상기 어느 하나의 구간과 인접한 다른 하나의 구간을 구성하는 히스토그램 값들의 합의 차이 값에 기초하여 생성될 수 있다.The change amount of the second histogram for each second interval is a sum of histogram values constituting any one of the sections of the second histogram divided by the second interval unit and the other one adjacent to the one interval. It may be generated based on the difference value of the sum of the histogram values constituting the interval.
상기 기술적 과제를 달성하기 위한 머신 비전 시스템은 상기 영상 검사기를 포함할 수 있다.Machine vision system for achieving the technical problem may include the image inspector.
상기 기술적 과제를 달성하기 위한 제품의 품질검사(quality inspection)에 사용되는 카메라는 상기 영상 검사기를 포함할 수 있다.A camera used for quality inspection of a product for achieving the technical problem may include the image inspector.
상술한 바와 같이 본 발명에 따른 영상의 고속 위치 보정이 가능한 영상 검사기 및 영상 검사 방법은 영상 검사시 2차원 영상을 1차원으로 히스토그램화하여 영상의 고속 위치 보정이 가능한 효과가 있다.As described above, the image inspector and the image inspection method capable of high-speed position correction of an image according to the present invention have the effect of performing a high-speed position correction of an image by histogramting a two-dimensional image in one dimension during image inspection.
또한, 본 발명의 실시 예에 의한 영상의 고속 위치 보정이 가능한 영상 검사기 및 영상 검사 방법은 머신 비전 시스템(예컨대, 인쇄 산업, 제지, 또는 필름 생산과 같이 고속으로 연속물체를 생산하는 시스템)에 사용되어 완성된 제품의 품질검사(quality inspection)시 고속으로 에러를 검출하고 보정 할 수 있는 효과가 있다.In addition, an image inspector and an image inspection method capable of high-speed position correction of an image according to an embodiment of the present invention are used in a machine vision system (for example, a system for producing continuous objects at high speed such as printing industry, paper, or film production). Therefore, there is an effect of detecting and correcting errors at high speed during quality inspection of the finished product.
본 발명과 본 발명의 동작상의 이점 및 본 발명의 실시에 의하여 달성되는 목적을 충분히 이해하기 위해서는 본 발명의 바람직한 실시 예를 예시하는 첨부도면 및 첨부 도면에 기재된 내용을 참조하여야만 한다. 이하, 첨부한 도면을 참조하여 본 발명의 바람직한 실시 예를 설명함으로써, 본 발명을 상세히 설명한다. 각 도면에 제시된 동일한 참조부호는 동일한 부재를 나타낸다.In order to fully understand the present invention, the operational advantages of the present invention, and the objects achieved by the practice of the present invention, reference should be made to the accompanying drawings, which illustrate preferred embodiments of the present invention. Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. Like reference numerals in the drawings denote like elements.
도 1은 본 발명의 실시 예에 따른 영상 검사기의 블록도이고, 도 2는 도 1의 영상 검사기를 포함하는 머신 비전 시스템이고, 도 3은 도 1의 영상 검사기에 의해서 제1 내지 제4 히스토그램이 생성되는 과정을 설명하기 위한 도면이다.1 is a block diagram of an image inspector according to an exemplary embodiment of the present invention, FIG. 2 is a machine vision system including the image inspector of FIG. 1, and FIG. 3 shows the first to fourth histograms by the image inspector of FIG. 1. It is a figure for explaining the process which is produced | generated.
도 4는 도 1의 영상 검사기에 의해서 생성된 제1 및 제2 히스토그램이고, 도 5는 도 1의 영상 검사기에 의해서 생성된 제3 및 제4 히스토그램이고, 도 6은 도 1의 영상 검사기에 의해서 제5 및 제6 히스토그램이 생성되는 과정을 설명하기 위한 도면이다. 도 7은 도 1의 영상 검사기에 의해서 생성된 제5 및 제6 히스토그램이다. 4 shows first and second histograms generated by the image inspector of FIG. 1, FIG. 5 shows third and fourth histograms generated by the image inspector of FIG. 1, and FIG. 6 shows the histograms of FIG. FIG. 5 is a diagram for describing a process of generating fifth and sixth histograms. FIG. 7 is a fifth and a sixth histogram generated by the image inspector of FIG. 1.
도 1 내지 도 7을 참조하면, 품질검사(quality inspection)에 사용되는 카메라(5) 또는 머신 비전 시스템(3, 예컨대, 인쇄 산업, 제지, 또는 필름 생산과 같이 고속으로 연속물체를 생산하는 시스템)에 구현될 수 있는 영상 검사기(10)는 그레이 스케일 변환부(12), 블러링부(14), 에지 검출부(16), 비교 판단부(18), 및 보정부(19)를 포함할 수 있다.1 to 7, a
상기 영상 검사기(10)와 상기 영상 검사기(10)를 구성하는 그레이 스케일 변환부(12), 블러링부(14), 에지 검출부(16), 비교 판단부(18), 및 보정부(19) 각각은 하드웨어(H/W) 및/ 또는 소프트웨어(S/W)로 구현될 수 있다.Each of the
상기 그레이 스케일 변환부(12)는 입력 영상(22, 예컨대, 품질검사에 사용되는 카메라(5)에 의해서 촬영된 제품의 영상 또는 머신 비전 시스템(3) 내의 인쇄장치(20)에 의해서 인쇄된 영상)을 수신하고 수신된 입력 영상(22)을 그레이 스케일(gray scale)로 변환하고, 변환된 상기 입력 영상을 라인 단위(VL1 내지 VLn, HL1 내지 HLk)로 구분하여 라인별 히스토그램 값(P1 내지 Pk, Q1 내지 Qn)을 산출하고 산출된 라인별 히스토그램 값에 기초하여 적어도 하나의 히스토그램(24과 26)을 생성한다.The
예컨대, 상기 그레이 스케일 변환부(12)는 RGB 포맷의 입력 영상(22)을 RGB 값을 평균한 그레이스케일로 변환하고 상기 입력 영상(22)의 라인 단위별 픽셀들(예컨대, "HL1" 라인의 경우 a11 내지 a1n)의 합 각각을 계산하고 계산결과에 기초하여 적어도 하나의 히스토그램(24과 26)을 생성할 수 있다.For example, the
상기 라인 단위는, 수직 방향(VL1 내지 VLn) 또는 수평 방향(HL1 내지 HLk) 중에서 적어도 어느 하나의 방향을 기준으로 할 수 있고, 상기 라인별 히스토그램 값(P1 내지 Pk, Q1 내지 Qn)은 상기 라인 단위(VL1 내지 VLn, HL1 내지 HLk)를 구성하는 픽셀들의 총 합일 수 있다.The line unit may be based on at least one of the vertical directions VL1 to VLn or the horizontal directions HL1 to HLk, and includes the histogram values P 1 to P k and Q 1 to Q n for each line. ) May be the total sum of the pixels constituting the line units VL1 to VLn and HL1 to HLk.
예컨대, 상기 그레이 스케일 변환부(12)는 다수의 픽셀들로 구성된 입력 영상을 그레이 스케일로 변환하고 상기 입력 영상(22)의 수평방향의 라인들(HL1 내지 HLk) 각각의 픽셀들의 합을 라인별로 계산하고 계산결과에 기초하여 제1 히스토그램(24)을 생성하고, 상기 입력 영상의 수직방향의 라인들(VL1 내지 VLn) 각각의 픽 셀들의 합을 라인별로 계산하고 계산결과에 기초하여 제2 히스토그램(26)을 생성할 수 있다.For example, the
보다 상세하게는, 상기 그레이 스케일로 변환되는 픽셀 값이 "0" 부터 "255"인 경우 상기 그레이 스케일 변환부(12)는 상기 입력 영상(22)을 구성하는 수평방향의 라인들(HL1 내지 HLk) 각각을 구성하는 픽셀들(a11 내지 akn)의 합을 라인별로 계산하고 계산 결과와 상응하는 히스토그램 막대를 각각 생성하고, 생성된 히스토그램 막대들에 기초하여 제1 히스토그램(24)을 생성할 수 있다.In more detail, when the pixel value converted from the gray scale is “0” to “255”, the
또한, 상기 그레이 스케일 변환부(12)는 상기 입력 영상(22)을 구성하는 수직방향의 라인들(VL1 내지 VLn) 각각을 구성하는 픽셀들(a11 내지 akn)의 합을 라인별로 계산하고 계산결과에 상응하는 히스토그램 막대를 각각 생성하고, 생성된 히스토그램 막대들에 기초하여 제2 히스토그램(26)을 생성할 수 있다.In addition, the
상기 라인별 히스토그램 값(P1 내지 Pk, Q1 내지 Qn)은 라인별 픽셀들의 총 합일 수 있으나, 이에 한정되는 것은 아니다.The histogram values P 1 to P k and Q 1 to Q n for each line may be the total sum of pixels per line, but are not limited thereto.
본 발명의 다른 실시 예에 따른 상기 라인별 히스토그램 값(P1 내지 Pk, Q1 내지 Qn)은 라인별 픽셀들의 평균이나 가중치(weight)를 반영한 합이 될 수 있다. 여기서, 평균 값은 산술 평균, 기하평균, 조화평균, 가중 평균 등이 될 수 있다.The histogram values P 1 to P k and Q 1 to Q n for each line according to another exemplary embodiment of the present invention may be sums reflecting averages or weights of pixels per line. Here, the average value may be an arithmetic mean, geometric mean, harmonic mean, weighted average, and the like.
상기 블러링부(14)는 상기 그레이 스케일 변환부(12)에 의해서 생성된 적어도 하나의 히스토그램(24과 26)을 적어도 하나의 간격으로 분할하고 분할된 적어도 하나의 간격별로 라인별 히스토그램 값의 평균을 계산하고 계산결과에 기초하여 적어도 하나의 히스토그램(28과 30)을 생성한다.The
예컨대, 상기 블러링부(14)는 상기 제1 히스토그램(24)을 제1 간격 단위로 분할하고 분할된 제1 간격별로 라인별 히스토그램 값들의 평균을 계산하고 계산결과에 기초하여 제3 히스토그램(28)을 생성할 수 있다.For example, the blurring
예컨대, 상기 제1 히스토그램(24)의 총 간격이 "256"인 경우 상기 블러링부(14)는 상기 제1 히스토그램(24)을 제1 간격(예컨대, "2")으로 분할하고 분할된 제1 간격별로 상기 제1 간격(예컨대, "2")을 구성하는 라인별 히스토그램 값들의 평균을 계산하고 계산결과(PM1 내지 PMl)에 상응하는 히스토그램 막대를 각각 생성하고, 생성된 히스토그램 막대들에 기초하여 제3 히스토그램(28)을 생성할 수 있다.For example, when the total interval of the
또한, 상기 블러링부(14)는 상기 제2 히스토그램(26)을 제2 간격 단위로 분할하고 분할된 제2 간격별로 라인별 히스토그램 값들의 평균을 계산하고 계산결과에 기초하여 제4 히스토그램(30)을 생성할 수 있다.In addition, the blurring
예컨대, 상기 제2 히스토그램(26)의 총 간격이 "256"인 경우 상기 블러링부(14)는 상기 제2 히스토그램(26)을 제2 간격(예컨대, 2)으로 분할하고 분할된 제2 간격별로 상기 제2 간격(예컨대, "2")을 구성하는 라인별 히스토그램 값들의 평균을 계산하고 계산결과(QM1 내지 QMj)에 상응하는 히스토그램 막대를 각각 생성하고 생성된 히스토그램 막대들에 기초하여 제4 히스토그램(30)을 생성할 수 있다.For example, when the total interval of the
상기 제1 간격 단위와 제2 간격 단위는 서로 같거나 다르게 설정될 수 있다.The first interval unit and the second interval unit may be set equal to or different from each other.
상기 블러링부(14)에서 생성된 상기 제3 히스토그램(28)과 제4 히스토그램(30)은 상기 제1 히스토그램(24)과 상기 제2 히스토그램(26)에 비하여 블러링(blurring)화 된 영상이다.The
따라서, 입력 영상(22)에 포함된 노이즈(noise, 예컨대, 입력 영상(22) 자체에서 발생되는 영상 오차)는 제거 될 수 있으므로 영상 검사기(10)는 상기 입력 영상(22)에 포함된 피사체(예컨대, 도 2의 텍스트(TEXT))의 위치는 정확하게 보정될 수 있다.Accordingly, since the noise included in the input image 22 (eg, an image error generated in the
상기 에지 검출부(16)는 상기 블러링부(14)에서 생성된 적어도 하나의 히스토그램(28과 30)을 적어도 하나의 간격으로 분할하고 분할된 적어도 하나의 간격별 히스토그램 값의 변화량(H1 내지 Hl 또는 V1 내지 Vj)을 검출하고 검출 결과에 기초하여 적어도 하나의 히스토그램(32과 34)을 생성한다.The
예컨대, 상기 에지 검출부(16)는 상기 제3 히스토그램(28)을 제3 간격 단위(예컨대, "1")로 분할하고 분할된 제3 간격별 히스토그램 값의 변화량을 검출하고 검출 결과(H1 내지 Hl)에 기초하여 제5 히스토그램(32)을 생성할 수 있다.For example, the
보다 상세하게는, 상기 에지 검출부(16)는 상기 제1 간격과 대응되는 상기 제3 히스토그램(28)의 어느 하나의 구간에 대한 히스토그램 막대 생성시, 상기 제3 히스토그램(28)의 상기 제3 간격 단위로 분할된 구간들 중에서 상기 어느 하나의 구간을 구성하는 히스토그램 값들의 합과 상기 어느 하나의 구간과 인접한 다른 하 나의 구간을 구성하는 히스토그램 값들의 합의 차이 값(예컨대, H1, H1 = )을 상기 히스토그램 막대로서 생성할 수 있다. More specifically, the
이때 상기 제1 간격 단위와 상기 제3 간격 단위는 같을 수 있다.In this case, the first interval unit and the third interval unit may be the same.
또한, 상기 에지 검출부(16)는 상기 제4 히스토그램(30)을 제4 간격(예컨대, "1")으로 분할하고 분할된 제4 간격별 히스토그램 값의 변화량을 검출하고 검출 결과(V1 내지 Vj)에 기초하여 제6 히스토그램(34)을 생성할 수 있다.In addition, the
보다 상세하게는, 상기 에지 검출부(16)는 상기 제2 간격과 대응되는 상기 제4 히스토그램(30)의 어느 하나의 구간에 대한 히스토그램 막대 생성시, 상기 제4 히스토그램(30)의 상기 제4 간격 단위로 분할된 구간들 중에서 상기 어느 하나의 구간(V1)을 구성하는 히스토그램 값들의 합과 상기 어느 하나의 구간과 인접한 다른 하나의 구간(V2)을 구성하는 히스토그램 값들의 합의 차이 값(예컨대, V1, V1 = )을 상기 히스토그램 막대로서 생성할 수 있다. 이때 상기 제2 간격과 상기 제4 간격은 같을 수 있다.More specifically, the
상기 비교 판단부(18)는 상기 에지 검출부(16)에서 출력된 히스토그램(32와 34)과 기준 히스토그램을 비교하고 비교결과에 기초하여 상기 입력 영상(22)의 위치 에러 여부를 검출할 수 있다.The
상기 기준 히스토그램은 상기 원본 영상의 히스토그램은 상기 입력 영상(22) 의 위치 에러 여부를 검출하기 위한 기준이 되는 히스토그램으로서 사용자가 원하는 피사체(TEXT)의 위치를 포함하는 영상의 히스토그램이다.The reference histogram is a histogram that is a reference for detecting a position error of the
예컨대, 상기 기준 히스토그램은 제7 히스토그램(미도시)과 제8 히스토그램(미도시)을 포함할 수 있으며, 이때, 상기 비교 판단부(18)는 상기 제5 히스토그램(32)과 비교되는 원본 영상의 제7 히스토그램(미도시)를 비교하고 상기 제5 히스토그램(32)과 상기 제7 히스토그램(미도시)이 일치하는지 여부를 검출할 수 있다.For example, the reference histogram may include a seventh histogram (not shown) and an eighth histogram (not shown). In this case, the
또한, 상기 비교 판단부(18)는 상기 제6 히스토그램(34)과 비교되는 원본 영상의 제8 히스토그램(미도시)를 비교하고 상기 제6 히스토그램(34)과 상기 제8 히스토그램(미도시)이 일치하는지 여부를 검출할 수 있다.In addition, the
상기 보정부(19)는 상기 비교 판단부(18)의 비교결과에 기초하여 위치 보정 신호를 발생할 수 있다.The
상기 위치 보정 신호는 인쇄장치(20)가 상기 입력 영상(22)을 구성하는 피사체(TEXT, 즉, 상기 입력 영상(22)의 촬영 대상이 된 물체)의 위치를 이동시켜 상기 입력 영상(22)이 원본 영상과 일치되도록 하는 신호이다.The position correction signal causes the
또한, 상기 영상 검사기(10)가 인쇄장치(20) 내에 구현되는 경우 상기 위치 보정 신호는 피사체 이송부(미도시)에 전송될 수 있으며, 상기 피사체 이송부(미도시)는 상기 위치 보정 신호에 응답하여 상기 피사체의 위치를 이동시켜 상기 입력 영상(22)이 원본 영상과 일치되도록 할 수 있다.In addition, when the
즉, 본 발명의 실시 예에 따른 영상 검사기(10)는 2차원 입력 영상(22)을 적어도 하나의 축인 1차원으로 분리하여 원본 영상과 비교함으로써 고속으로 상기 입 력 영상(22)의 위치 에러 여부 및 위치 보상을 할 수 있는 효과가 있다.That is, the
또한, 본 발명의 실시 예에 따른 영상 검사기(10)는 반도체산업의 실리콘 제조, 인쇄업의 출판, 또는 철강업의 제철 등의 머신 비전 시스템에 사용되어 완성된 제품의 품질검사(quality inspection)시 고속으로 에러를 검출하고 보정 할 수 있는 효과가 있다.In addition, the
예컨대, 본 발명의 실시 예에 따른 영상 검사기(10)는 고속으로 작동하는 검사장치에 구현시 기존의 검사장치의 속도가 증가할 수 있으므로 카메라를 이용한 검사 기술을 사용하는 산업분야(예컨대, 인쇄 산업, 제지, 필름 생산과 같이 고속으로 연속물체를 생산하는 다양한 산업분야)의 활용성을 극대화할 수 있다.For example, the
도 8은 본 발명의 실시 예에 따른 영상 검사방법의 흐름도이다. 도 1 내지 도 8을 참조하면, 그레이 스케일 변환부(12)는 입력 영상(22)을 그레이 스케일로 변환하고, 변환된 상기 입력 영상을 라인 단위(예컨대, VL1 또는 HL1)로 구분하여 라인별(예컨대, VL1 내지 VLn, HL1 내지 HLk) 히스토그램 값(예컨대, P1 내지 Pk, Q1 내지 Qn)을 산출하고 산출된 라인별 히스토그램 값(P1 내지 Pk, Q1 내지 Qn)에 기초하여 제1 히스토그램(24와 26)을 생성한다(S10).8 is a flowchart of an image inspection method according to an exemplary embodiment. 1 to 8, the
블러링부(14)는 상기 제1 히스토그램을 제1 간격 단위로 분할하고, 분할된 제1 간격별로 라인별 히스토그램의 평균을 계산하고, 계산결과에 기초하여 제2 히스토그램(28과 30)을 생성한다(S12).The blurring
에지 검출부(16)는 상기 제2 히스토그램(28과 30)을 제2 간격 단위로 분할하 고, 분할된 제2 간격별 제2 히스토그램 값의 변화량(H1 내지 Hl 또는 V1 내지 Vj)을 검출하고, 검출 결과에 기초하여 제3 히스토그램(32와 34)을 생성한다(S14).The
상기 제3 히스토그램(32와 34)과 미리 저장된 기준 히스토그램을 비교하고 비교결과에 기초하여 상기 입력 영상(22)의 위치 에러 여부를 검출한다(S16).The
본 발명은 또한 컴퓨터로 읽을 수 있는 기록매체에 컴퓨터가 읽을 수 있는 코드로서 구현하는 것이 가능하다. 컴퓨터가 읽을 수 있는 기록매체는 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다.The invention can also be embodied as computer readable code on a computer readable recording medium. The computer-readable recording medium includes all kinds of recording devices in which data that can be read by a computer system is stored.
컴퓨터가 읽을 수 있는 기록매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크, 광 데이터 저장장치 등이 있으며, 또한 본 발명에 따른 영상 검사 방법을 수행하기 위한 프로그램 코드는 캐리어 웨이브(예를 들어, 인터넷을 통한 전송)의 형태로 전송될 수도 있다. Examples of computer-readable recording media include ROM, RAM, CD-ROM, magnetic tape, floppy disk, optical data storage device, and the like. The program code for performing the image inspection method according to the present invention may include a carrier wave ( For example, transmission via the Internet).
또한 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고 본 발명을 구현하기 위한 기능적인(functional) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The computer readable recording medium can also be distributed over network coupled computer systems so that the computer readable code is stored and executed in a distributed fashion. And functional programs, codes and code segments for implementing the present invention can be easily inferred by programmers in the art to which the present invention belongs.
본 발명은 도면에 도시된 일 실시 예를 참고로 설명되었으나 이는 예시적인 것에 불과하며, 본 기술 분야의 통상의 지식을 가진 자라면 이로부터 다양한 변형 및 균등한 타 실시예가 가능하다는 점을 이해할 것이다. 따라서, 본 발명의 진정한 기술적 보호 범위는 첨부된 등록청구범위의 기술적 사상에 의해 정해져야 할 것이다.Although the present invention has been described with reference to one embodiment shown in the drawings, this is merely exemplary, and those skilled in the art will understand that various modifications and equivalent other embodiments are possible therefrom. Therefore, the true technical protection scope of the present invention will be defined by the technical spirit of the appended claims.
본 발명의 상세한 설명에서 인용되는 도면을 보다 충분히 이해하기 위하여 각 도면의 간단한 설명이 제공된다.BRIEF DESCRIPTION OF THE DRAWINGS In order to better understand the drawings cited in the detailed description of the invention, a brief description of each drawing is provided.
도 1은 본 발명의 실시 예에 따른 영상 검사기의 블록도이다.1 is a block diagram of an image inspector according to an exemplary embodiment of the present invention.
도 2는 도 1의 영상 검사기를 포함하는 머신 비전 시스템이다.FIG. 2 is a machine vision system including the image inspector of FIG. 1.
도 3은 도 1의 영상 검사기에 의해서 제1 내지 제4 히스토그램이 생성되는 과정을 설명하기 위한 도면이다.FIG. 3 is a diagram for describing a process of generating first to fourth histograms by the image inspector of FIG. 1.
도 4는 도 1의 영상 검사기에 의해서 생성된 제1 및 제2 히스토그램이다.4 is first and second histograms generated by the image inspector of FIG. 1.
도 5는 도 1의 영상 검사기에 의해서 생성된 제3 및 제4 히스토그램이다.5 is a third and fourth histograms generated by the image inspector of FIG. 1.
도 6은 도 1의 영상 검사기에 의해서 제5 및 제6 히스토그램이 생성되는 과정을 설명하기 위한 도면이다.FIG. 6 is a diagram for describing a process of generating fifth and sixth histograms by the image inspector of FIG. 1.
도 7은 도 1의 영상 검사기에 의해서 생성된 제5 및 제6 히스토그램이다.FIG. 7 is a fifth and a sixth histogram generated by the image inspector of FIG. 1.
도 8은 본 발명의 실시 예에 따른 영상 검사방법의 흐름도이다.8 is a flowchart of an image inspection method according to an exemplary embodiment.
Claims (13)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070080241A KR100883544B1 (en) | 2007-08-09 | 2007-08-09 | Image tester capable of high speed position correction of image and method thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020070080241A KR100883544B1 (en) | 2007-08-09 | 2007-08-09 | Image tester capable of high speed position correction of image and method thereof |
Publications (2)
Publication Number | Publication Date |
---|---|
KR20090015695A KR20090015695A (en) | 2009-02-12 |
KR100883544B1 true KR100883544B1 (en) | 2009-02-13 |
Family
ID=40685223
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1020070080241A KR100883544B1 (en) | 2007-08-09 | 2007-08-09 | Image tester capable of high speed position correction of image and method thereof |
Country Status (1)
Country | Link |
---|---|
KR (1) | KR100883544B1 (en) |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101341379B1 (en) | 2012-09-11 | 2013-12-13 | 주식회사 에이에스티젯텍 | Continuous flying vision aligh system |
KR101685950B1 (en) | 2015-10-13 | 2016-12-14 | 백석대학교산학협력단 | CCTV recording system having self-diagnosis function |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100913218B1 (en) * | 2009-03-26 | 2009-08-24 | 삼성탈레스 주식회사 | Nuc lens alignment method |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960044022A (en) * | 1995-05-11 | 1996-12-23 | 이희종 | How to install different electronic parts |
KR19980052676A (en) * | 1996-12-24 | 1998-09-25 | 이종수 | Laser Marking Correction Device and Correction Method |
JP2003168118A (en) | 2001-11-29 | 2003-06-13 | Secom Co Ltd | Image processor and mobile body monitoring device |
KR20040061590A (en) * | 2002-12-31 | 2004-07-07 | 엘지.필립스 엘시디 주식회사 | method for testing pattern of liquid crystal display device |
-
2007
- 2007-08-09 KR KR1020070080241A patent/KR100883544B1/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR960044022A (en) * | 1995-05-11 | 1996-12-23 | 이희종 | How to install different electronic parts |
KR19980052676A (en) * | 1996-12-24 | 1998-09-25 | 이종수 | Laser Marking Correction Device and Correction Method |
JP2003168118A (en) | 2001-11-29 | 2003-06-13 | Secom Co Ltd | Image processor and mobile body monitoring device |
KR20040061590A (en) * | 2002-12-31 | 2004-07-07 | 엘지.필립스 엘시디 주식회사 | method for testing pattern of liquid crystal display device |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR101341379B1 (en) | 2012-09-11 | 2013-12-13 | 주식회사 에이에스티젯텍 | Continuous flying vision aligh system |
KR101685950B1 (en) | 2015-10-13 | 2016-12-14 | 백석대학교산학협력단 | CCTV recording system having self-diagnosis function |
Also Published As
Publication number | Publication date |
---|---|
KR20090015695A (en) | 2009-02-12 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US7697749B2 (en) | Stereo image processing device | |
JP4554316B2 (en) | Stereo image processing device | |
JP4429298B2 (en) | Object number detection device and object number detection method | |
JP5404263B2 (en) | Parallax calculation method and parallax calculation device | |
WO2015104898A1 (en) | Vehicle-surroundings recognition device | |
US8588521B2 (en) | Image processing apparatus and control method therefor | |
JP2001324305A (en) | Image correspondent position detector and range finder equipped with the same | |
JP5262705B2 (en) | Motion estimation apparatus and program | |
KR100883544B1 (en) | Image tester capable of high speed position correction of image and method thereof | |
TWI394097B (en) | Detecting method and system for moving object | |
US9077926B2 (en) | Image processing method and image processing apparatus | |
JP2018087732A (en) | Wire rope measurement device and method | |
CN111028263A (en) | Moving object segmentation method and system based on optical flow color clustering | |
JP4918615B2 (en) | Object number detection device and object number detection method | |
JPH11312243A (en) | Facial region detector | |
JP4595834B2 (en) | Motion vector detection method and apparatus | |
JP4674920B2 (en) | Object number detection device and object number detection method | |
KR102173244B1 (en) | Video stabilization system based on SURF | |
KR101300166B1 (en) | Apparatus and method for detecting iris | |
JP6809128B2 (en) | Image processing equipment, image processing methods, and image processing programs | |
JP2010041416A (en) | Image processing unit, image processing method, image processing program, and imaging apparatus | |
CN111062907A (en) | Homography transformation method based on geometric transformation | |
CN111062879B (en) | Image method for detecting involute in image | |
JP2006047252A (en) | Image processing unit | |
CN105809675A (en) | Two-dimensional image analyzing method and system |
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: 20130205 Year of fee payment: 5 |
|
FPAY | Annual fee payment |
Payment date: 20131231 Year of fee payment: 6 |
|
LAPS | Lapse due to unpaid annual fee |