KR100277364B1 - Missing defect automatic detection method and device - Google Patents

Missing defect automatic detection method and device Download PDF

Info

Publication number
KR100277364B1
KR100277364B1 KR1019980021112A KR19980021112A KR100277364B1 KR 100277364 B1 KR100277364 B1 KR 100277364B1 KR 1019980021112 A KR1019980021112 A KR 1019980021112A KR 19980021112 A KR19980021112 A KR 19980021112A KR 100277364 B1 KR100277364 B1 KR 100277364B1
Authority
KR
South Korea
Prior art keywords
image
value
missing
pixel
paper
Prior art date
Application number
KR1019980021112A
Other languages
Korean (ko)
Other versions
KR20000001066A (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 KR1019980021112A priority Critical patent/KR100277364B1/en
Publication of KR20000001066A publication Critical patent/KR20000001066A/en
Application granted granted Critical
Publication of KR100277364B1 publication Critical patent/KR100277364B1/en

Links

Classifications

    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/02Sewing machines having electronic memory or microprocessor control unit
    • D05B19/12Sewing machines having electronic memory or microprocessor control unit characterised by control of operation of machine
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B19/00Programme-controlled sewing machines
    • D05B19/006Control knobs or display means
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B69/00Driving-gear; Control devices
    • D05B69/10Electrical or electromagnetic drives
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05BSEWING
    • D05B69/00Driving-gear; Control devices
    • D05B69/30Details
    • DTEXTILES; PAPER
    • D05SEWING; EMBROIDERING; TUFTING
    • D05DINDEXING SCHEME ASSOCIATED WITH SUBCLASSES D05B AND D05C, RELATING TO SEWING, EMBROIDERING AND TUFTING
    • D05D2305/00Operations on the work before or after sewing
    • D05D2305/32Measuring
    • D05D2305/36Quality control

Abstract

본 발명은 미싱불량 자동검출방법 및 그 장치에 관한 것으로, 특히 포장지의 미싱시에 영상인식기법을 이용하여 미싱의 불량상태를 자동으로 검출하는 미싱불량 자동검출방법 및 그 장치에 관한 것이다. 본 발명의 미싱불량 자동검출방법은 미싱처리되는 포장지를 촬영하는 단계; 촬영된 영상을 캡쳐하여 정지영상을 형성하는 단계; 정지영상을 구성하는 각 픽셀들로부터 종이와 실을 구분하는 문턱값을 결정하는 단계; 문턱값과 각 픽셀들의 값에 따라 영상을 이진화하는 단계; 이진화된 영상으로부터 실에 해당하는 값을 검출하고 이 값이 연속적으로 검출되는 횟수에 따라서 실의 길이를 판단하여 포장지의 미싱불량여부를 판단하는 단계를 포함한다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a method for automatically detecting a missing defect and an apparatus thereof, and more particularly, to a method for automatically detecting a missing defect and a device for automatically detecting a defective state of a sewing machine by using an image recognition method when a wrapping paper is missing. Missing defective automatic detection method of the present invention comprises the steps of photographing the wrapping paper that is missing; Capturing a captured image to form a still image; Determining a threshold for distinguishing a paper and a thread from each pixel of the still image; Binarizing an image according to a threshold and a value of each pixel; Detecting a value corresponding to the yarn from the binarized image and determining the length of the yarn according to the number of times the value is continuously detected to determine whether the wrapping paper is missing.

Description

미싱불량 자동검출 방법 및 그 장치Missing defect automatic detection method and device

본 발명은 미싱불량 자동검출방법 및 그 장치에 관한 것으로, 특히 포장지의 미싱시에 영상인식기법을 이용하여 미싱의 불량상태를 자동으로 검출하는 미싱불량 자동검출 방법 및 그 장치에 관한 것이다.BACKGROUND OF THE INVENTION 1. Field of the Invention [0001] The present invention relates to a method for automatically detecting a missing defect and a device thereof, and more particularly, to a method for automatically detecting a missing defect and a device for automatically detecting a defective state by using an image recognition method when a wrapping paper is missing.

일반적으로, 자동미싱기가 포장지의 원단을 사용하여 포장지를 만들기 위하여 사용된다. 자동미싱기는 컨베이어 벨트를 통하여 이송되는 포장지 원단을 한 장씩 미싱하여 봉합한다. 그러나, 미싱중에 미싱용 바늘에 불량이 있거나, 장착된 실의 불량, 또는 포장지의 장력이 일정하지 않은 경우에는 정확한 미싱이 이루어질 수 없고 포장지에 대한 바느질이 일정한 간격으로 촘촘하게 형성되지않게되는 불량이 도 1 에 도시된 것처럼 발생한다.Generally, an automatic sewing machine is used to make a wrapping paper using the fabric of the wrapping paper. The automatic sewing machine seals and wraps the wrapping paper fabric transferred through the conveyor belt one by one. However, if the sewing needle is defective during sewing, or if the thread is not fixed, or if the tension of the wrapping paper is not constant, the sewing machine cannot be precisely formed and the sewing on the wrapping paper is not formed at regular intervals. Occurs as shown in 1.

따라서, 이렇게 바늘질이 불량으로 된 부분이 포장지상에 존재하면 특히 분말 형태의 내용물이 채워지는 경우에 운반 또는 보관중에 포장지 밖으로 내용물이 내용물이 새게되는 현상이 발생하게된다. 따라서, 이러한 문제점을 해결하기 위하여 종래에는 사람에 의존하여 포장지에 미싱이 정확히 이루어졌는가를 체크하였다. 그러나, 이러한 방식은 미싱불량을 정확히 체크할 수 없으며, 많은 양의 포장지가 자동으로 미싱될 때 이를 사람에만 의존하여 체크하는 것은 매우 부정확한 결과를 낳을 수 있다.Therefore, if the defective needle part is present on the packaging paper, the contents leak out of the packaging paper during transportation or storage, especially when the contents in powder form are filled. Therefore, in order to solve this problem, it was conventionally checked whether the sewing machine was correctly made on the wrapping paper depending on the person. However, this method does not accurately check for missing defects, and relying solely on people when a large amount of wrapping paper is automatically missing can result in very inaccurate results.

상기와 같은 문제점을 해결하기위하여 본 발명의 목적은 영상인식기법을 이용하여 자동으로 포장지의 미싱불량을 검출할 수 있는 미싱불량 자동검출방법을 제공하는 것이다.In order to solve the above problems, an object of the present invention is to provide a method for automatically detecting a missing defect that can automatically detect a missing defect of a wrapping paper by using an image recognition technique.

본 발명의 다른 목적은 상기의 미싱불량 자동검출방법을 이용하여 자동으로 포장지의 미싱불량을 검출할 수 있는 미싱불량 자동검출장치를 제공하는 것이다.Another object of the present invention is to provide a missing automatic detection device which can automatically detect the missing of the wrapping paper by using the above-mentioned automatic missing detection method.

상기와 같은 목적을 달성하기 위하여 본 발명에 따른 미싱불량 자동검출방법은Missing fault automatic detection method according to the present invention to achieve the above object is

미싱처리되는 포장지를 촬영하는 단계;Photographing the wrapping paper to be missed;

상기 촬영된 영상을 캡쳐하여 정지영상을 형성하는 단계;Capturing the captured image to form a still image;

상기 정지영상을 구성하는 각 픽셀들로부터 종이와 실을 구분하는 문턱값을 결정하는 단계;Determining a threshold value for distinguishing a paper and a thread from each pixel constituting the still image;

상기 문턱값과 각 픽셀들의 값에 따라 상기 영상을 이진화하는 단계;Binarizing the image according to the threshold and the value of each pixel;

상기 이진화된 영상으로부터 실에 해당하는 값을 검출하고 이 값의 연속적으로 검출되는 횟수에 따라서 실의 길이를 판단하여 포장지의 미싱불량여부를 판단하는 단계를 포함하는 것을 특징으로 한다.Detecting a value corresponding to the yarn from the binarized image and determining the length of the yarn in accordance with the number of times the value is detected continuously characterized in that it comprises the step of determining whether the wrapping paper missing.

또한, 본 발명에 따른 미싱불량 자동검출장치는In addition, the missing automatic detection device according to the present invention

포장지의 미싱상태를 촬영하기 위한 CCD 카메라;A CCD camera for photographing the missing state of the wrapping paper;

상기 카메라에서 촬영된 영상에서 정지영상을 캡쳐하기 위한 프레임 그래버;A frame grabber for capturing a still image from an image captured by the camera;

상기 프레임 그래버에서 출력된 정지영상을 수신하여 상기 정지영상을 구성하는 각 픽셀들로부터 종이와 실을 구분하는 문턱값을 결정하여 상기 문턱값과 각 픽셀들의 값에 따라 상기 영상을 이진화하고 상기 이진화된 영상으로부터 실에 해당하는 값을 검출하고 이 값의 연속적으로 검출되는 값에 따라서 실의 길이를 판단하여 포장지의 미싱불량여부를 판단하는 영상신호처리장치를 포함한다.Receiving a still image output from the frame grabber to determine a threshold value for distinguishing a paper and a thread from the pixels constituting the still image to binarize the image according to the threshold value and each pixel value And an image signal processing apparatus for detecting a value corresponding to the yarn from the image, and determining the length of the yarn according to the continuously detected value of the yarn to determine whether the wrapping paper is missing or not.

도 1 은 미싱이 불량으로 이루어진 경우의 예를 도시한 도. (그림 1)1 shows an example of a case where a sewing machine is made defective. (Figure 1)

도 2 는 본 발명에 따른 미싱불량 자동검출장치의 사용예를 개략적으로 도시한 도. (그림 2)2 is a view schematically showing an example of the use of the missing sewing automatic detection device according to the present invention. (Figure 2)

도 3a 및 도 3b 은 캡쳐된 영상 및 이 영상에 대응하는 픽셀별 분포를 도시한 히스토그램. (② 필요한 부분만 잘라냄의 아래에 있는 그림과 ③ 히스토그램작성에 해당하는 그림입니다)3A and 3B are histograms showing the captured image and the pixel-by-pixel distribution corresponding to the image. (The picture below ② cuts out only the necessary parts, and ③ corresponds to the histogram creation.)

도 4 는 이진화 처리가 이루어진 영상을 도시한 도. (④ 이진화처리의 아래에 있는 그림)4 is a view showing an image in which binarization processing has been performed. (④ below the binarization process)

*도면의 주요부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

10 ... 포장지 20 ... 이송부10 ... wrapping paper 20 ... transfer section

30 ... CCD 카메라 40 ... 조명부30 ... CCD camera 40 ... lighting unit

50 ... 프레임 그래버 60 ... 영상신호처리장치50 ... frame grabber 60 ... video signal processing device

이하, 첨부도면을 참조하여 본 발명에 따른 미싱불량 자동검출방법 및 이를 이용한 미싱불량 자동검출장치에 설명한다.Hereinafter, with reference to the accompanying drawings, a description will be given of a method for automatically detecting a missing defect and an apparatus for automatically detecting a missing defect using the same.

도 2 는 본 발명에 따른 미싱불량 자동검출장치의 사용예를 개략적으로 도시한 도이다. 도 2에서 10은 본 발명에서 미싱불량 여부가 검색되는 포장지, 20 은 포장지(10)를 이송하기 위하여 사용되는 이송부, 30 은 이송부(20)상에서 이송되는 포장지의 미싱부분을 촬영하기 위하여 CCD 카메라, 40 은 CCD 카메라(30)에 의하여 촬영되는 부분의 조명을 조절위한 조명부, 50 은 CCD 카메라(30)에서 찍인 영상을 캡쳐하기 위한 프레임 그래버이고 60 은 프레임 그래버로부터 전송된 영상을 분석하여 해당 포장지의 미싱불량 여부를 결정하기 위한 영상신호처리장치이다.2 is a view schematically showing an example of the use of the missing sewing automatic detection device according to the present invention. 2 to 10 is a CCD camera for photographing the missing part of the wrapping paper to be transported on the wrapping paper, 20 is a conveying part used to transport the wrapping paper 10, 30 is a conveying paper 20 is detected in the present invention, 40 is a lighting unit for adjusting the lighting of the portion photographed by the CCD camera 30, 50 is a frame grabber for capturing the image taken by the CCD camera 30 and 60 is the analysis of the image transmitted from the frame grabber It is an image signal processing device for determining whether or not missing.

상기와 같은 구성을 가지는 미싱불량 자동검출장치의 동작을 상세히 설명하면 다음과 같다.Referring to the operation of the missing automatic detection device having a configuration as described above in detail.

일정한 시간간격으로 로울러와 컨베이어벨트로 이루어진 이송부(20)에 의하여 이송되는 포장지(10)의 미싱된 부분, 예를 들면 포장지의 미싱부분을 포함하는 하단부을 CCD 카메라(30)가 촬영한다. CCD 카메라(30)는 흑백카메라를 사용하였고, 그 해상도는 768 × 493 픽셀이며 이는 240㎜ × 154㎜ 의 크기(32픽셀/㎝)에 해당한다.The CCD camera 30 photographs a lower end including a missing portion of the wrapping paper 10, for example, a wrapping paper, which is transported by the transporting unit 20 formed of a roller and a conveyor belt at regular time intervals. The CCD camera 30 used a black and white camera, the resolution of which is 768 x 493 pixels, which corresponds to a size of 240 mm x 154 mm (32 pixels / cm).

이렇게 CCD 카메라(30)에 의하여 포장지의 미싱부분이 촬영되면 촬영된 영상은 프레임 그래버(50)로 전송된다. 이 프레임 그래버(50)는 영상을 초당 2 프레임씩 캡쳐하여, 포장지 한 장을 두 번으로 나누어 처리한다. 본 발명에서는 프레임 그래버로 이스라엘의 바골드 전자의 VIP-103 Line을 사용하였다. 입출력포트는 8 비트로 이루어져있다.When the missing part of the wrapping paper is photographed by the CCD camera 30, the photographed image is transmitted to the frame grabber 50. The frame grabber 50 captures an image two frames per second, and divides one piece of wrapping paper into two processes. In the present invention, as a frame grabber, VIP-103 Line of Bargold Electronics of Israel was used. The I / O port consists of 8 bits.

프레임 그래버(50)에 캡쳐된 영상신호는 영상신호처리장치(60)로 입력된다. 영상신호처리장치는 입력된 영상신호로부터 포장지의 미싱부분중 실을 포함하는 부분만을 잘라낸다. 즉, 처음에 카메라에서 촬영된 영상의 크기는 768 × 493 픽셀이었으나 이를 768 × 50 픽셀인 240㎜ × 16㎜ 의 크기로 잘라낸다. 이는 실제 처리할 부분만을 잘라냄으로써 불필요한 부분에 대한 연산처리를 줄이고자 하는 것이다.The image signal captured by the frame grabber 50 is input to the image signal processing device 60. The video signal processing apparatus cuts out only the part including the thread among the missing parts of the wrapping paper from the input video signal. That is, the size of the image captured by the camera was initially 768 × 493 pixels, but it was cut out to a size of 240 mm × 16 mm, which is 768 × 50 pixels. This is to reduce the processing of unnecessary parts by cutting only the part to be processed.

상기에서와 같이 영상을 소정 크기로 잘라낸후에 이 디지털영상 데이터로부터 히스트그램을 작성한다. 프레임 그래버(50)부터 얻어지는 데이터는 8비트로 이루어져 있으므로 각 픽셀들은 28개, 즉 256개의 값으로 표시된다. 따라서 영상데이터들의 각 픽셀들은 0 내지 255 사이의 값을 가지고, 0 은 검정색을 255 는 백색을 나타낸다.As described above, a histogram is generated from the digital image data after the image is cut to a predetermined size. Since data obtained from the frame grabber 50 is composed of 8 bits, each pixel is represented by 2 8 , that is, 256 values. Therefore, each pixel of the image data has a value between 0 and 255, where 0 represents black and 255 represents white.

그러나, 영상데이터는 판독시의 상태, 즉 종이 또는 실의 색깔 또는 조명의 밝기 정도에 따라서 실과 종이부분의 픽셀값에 차이가 생긴다. 따라서, 종이와 실의 색깔을 구분할 수 있는 문턱값을 구해야한다. 이 값을 구하기 위하여는 전체 데이터들의 히스토그램을 작성하여 그 변환상태를 판단함으로써 문턱값을 결정할 수 있다.However, the image data differs in the pixel values of the yarn and the paper part depending on the state at the time of reading, that is, the color of the paper or yarn or the degree of brightness of the illumination. Therefore, the threshold for distinguishing the color of paper and thread should be obtained. To obtain this value, the threshold value can be determined by creating a histogram of all the data and determining the conversion state.

도 3a 및 도 3b 에 도시된 것처럼 히스토그램에 의하여 문턱값을 구하는 이유는 영상 데이터를 이용하여 실 마디의 길이를 측정하고자 하는 것이다. 도 3a 에 도시된 것처럼, 영상데이터에서 실부분은 밝게 종이부분은 어둡게 나타난다. 따라서 실에 해당하는 픽셀들의 값이 종이 부분의 픽셀들의 값보다 클 것이라고 예상할 수 있다. 그러나, 종이 부분의 값들이라도 한 개의 값만을 가지는 것이 아니라 대개 160 에서 190 정도사이의 다양한 값을 가지며, 실에 해당하는 픽셀들은 값이 195 이상을 가진다. 그러므로, 종이와 실들간의 값의 분포에 따라 종이와 실간의 변화지점인 문턱값을 사전에 결정하여야 하는 것이다.As shown in FIGS. 3A and 3B, the reason for obtaining a threshold value by a histogram is to measure the length of a real node using image data. As shown in Fig. 3A, in the image data, the real part appears bright and the paper part appears dark. Therefore, it can be expected that the value of the pixels corresponding to the yarn is larger than the value of the pixels of the paper portion. However, even the values of the paper part have not only one value but usually have various values between 160 and 190, and the pixels corresponding to the thread have a value of 195 or more. Therefore, according to the distribution of the values between the paper and the thread, the threshold value, which is the point of change between the paper and the thread, must be determined in advance.

따라서, 문턱값을 히스토그램에 따라서 결정하고, 이 결과에 따라 모든 픽셀의 값들을 문턱값과 비교하여 문턱값보다 큰 경우에는 255 로, 작은 경우에는 0 으로 맵핑을 한 후에 이진화된 값을 가지는 영상으로 변화시킨다. 즉, 도 3b 에서의 경우에는 문턱값이 195 로 설정되면, 이 값을 기준으로 픽셀들의 값을 0 또는 255 로 변환시킨다. 이러한 변환과정에 따라서 특정 픽셀의 값이 255 인 경우에는 실이 있는 부분, 반대로 0 인 경우에는 종이 부분으로 판별할 수 있다.Therefore, the threshold value is determined according to the histogram, and according to the result, all pixel values are compared with the threshold value and mapped to 255 when the value is larger than the threshold value, and to 0 when the value is smaller. Change. That is, in the case of FIG. 3B, when the threshold is set to 195, the pixel values are converted to 0 or 255 based on this value. According to this conversion process, when the value of a specific pixel is 255, it may be determined as a threaded part, or conversely, as 0, a paper part.

상기와 같이 문턱값을 결정하는 방법은 히스토그램에 의하여 결정하는 방법외에도 시행착오법(trial and error method)에 의하여 결정할 수 있다. 앞서에서와 같이 히스토그램에 이용한 방법은 히스토그램의 가로축이 0 내지 255 사이의 픽셀의 값을 나타내고 세로축은 주어진 픽셀값을 갖는 픽셀들의 개수를 나타낸다. 도 3b 에 도시된 것처럼 가우시안 분포형태를 띄는 것이 종이 부분이고, 그 오른쪽 부분이 실 부분을 나타낸다.The method of determining the threshold value as described above may be determined by a trial and error method in addition to the method determined by the histogram. As described above, the method used for the histogram indicates the number of pixels whose horizontal axis is between 0 and 255, and the vertical axis indicates the number of pixels having a given pixel value. As shown in FIG. 3B, the Gaussian distribution forms the paper part, and the right part represents the real part.

시행착오법에 의한 경우는 매번 사용자가 이 문턱값에 해당하는 값을 증가/감소시키고 화면상에 표시되는 영상신호의 처리결과를 보고서 최종적인 문턱값을 결정하는 것이다. 이때 사용자가 입력하는 문턱값이 낮은 경우에는 배경 부분에 흰 점들이 많이 나타나게 될 것이며, 그 입력 문턱값이 너무 높은 경우에는 실부분에 검은 점들이 나타나게 될 것이다. 그러므로, 여러 번의 시행착오를 통하여 정확한 문턱값을 설정한 후에 미싱불량의 여부를 정확하게 판별할 수 있다.In the case of the trial and error method, each time the user increases / decreases the value corresponding to this threshold value and determines the final threshold value by looking at the result of processing the video signal displayed on the screen. In this case, when the threshold value input by the user is low, a lot of white dots will appear in the background part, and when the input threshold value is too high, black dots will appear in the real part. Therefore, it is possible to accurately determine whether there is a missing machine after setting the correct threshold value through trial and error several times.

또한, 문턱값의 정확한 설정외에도 조명이 중요한 역할을 한다. 이진화를 정확히 수행하려면, 즉 이진화된 영상에서 종이 부분은 모두 검정색으로 나타나고 실 부분만이 흰색으로 나타나려면, 원본 영상에서 종이 부분의 픽셀값과 실 부분의 픽셀값의 차이가 커야한다. 그러므로 조명을 조정하여 이들 픽셀값의 차이가 커질 수 있도록 하는 것도 바람직하다. 또한, 조명부에서 비추어지는 빛도 포장지 전체에 균일하게 비추어져야한다.In addition to the correct setting of the threshold, lighting also plays an important role. In order to perform binarization correctly, that is, in order for all of the paper parts to appear black and only the real part to appear white in the binarized image, the difference between the pixel value of the paper part and the pixel value of the real part in the original image must be large. Therefore, it is also desirable to adjust the illumination so that the difference in these pixel values can be large. In addition, the light shining from the lighting unit should be uniformly shined on the whole wrapping paper.

상기에서와 같은 과정을 거쳐서 픽셀들이 0 과 255 의 값만을 가지는 이진화가 되면 도 4 에 도시된 것처럼 흰색과 검은색 만으로 이루어지는 이진화 영상이 얻어진다.When the pixels are binarized using only the values of 0 and 255 through the same process as described above, a binarized image of only white and black is obtained as shown in FIG. 4.

이진영상이 얻어지면 영상의 좌측상부부터 우측하부에 이르기까지 위에서 아래로 진행하고, 또한 왼쪽에서 오른쪽으로 스캔하면서 픽셀의 값을 검출하여 실의 길이를 잰다.When a binary image is obtained, it proceeds from the upper left to the lower right of the image, and also scans from left to right to detect the pixel value and measure the length of the yarn.

먼저, 실의 길이는 위에서 아래로 진행하면서 흰점이 있는가를 판단한다. 즉, 이진 영상의 픽셀들로 이루어지는 행렬에서 주어진 열에 대하여 행번호를 증가시키면서 픽셀의 값이 255인가를 확인한다. 이때 행번호를 증가시키면서 픽셀의 값이 255 인 경우가 발견되면 더 이상의 행에 대하여는 고려하지않고 다음(오른쪽) 열로 넘어가서 처음 행부터 순차적으로 증가시키면서 픽셀의 값을 체크한다. 상기에서는 실의 길이만을 판단하면 족하므로 실의 두께는 고려하지 않는다. 따라서, 주어진 열에서 255 의 값을 가지는 픽셀이 발견되면 다음 행의 값은 고려하지않고 다음 열로 넘어간다.First, the length of the yarn proceeds from top to bottom to determine whether there are white spots. That is, it is checked whether the pixel value is 255 while increasing the row number for a given column in a matrix of pixels of a binary image. At this time, if the pixel value is found to be 255 while increasing the row number, the pixel value is checked while sequentially increasing from the first row without moving to the next (right) column without considering further rows. In the above, only the length of the thread is determined, so the thickness of the thread is not considered. Thus, if a pixel with a value of 255 is found in a given column, the next row is skipped without considering the value in the next row.

이때, 처음에 나타나는 255 의 값을 가지는 픽셀의 열의 번호를 실의 시작점으로 설정하고 다음 열의 제일 처음 행으로 이동한다. 계속적으로 각 열에서 255 의 값을 가지는 픽셀에 존재하는가의 여부를 체크한다. 만약 특정 열에서 255의 값이 더 이상 발견되지 않으면 실의 끝난 것을 표시하는 것이므로 현재의 열의 값에서 이전에 발견된 시작점의 열의 번호를 뺀 값이 실의 길이(L)를 나타낸다.At this time, the column number of the pixel having the value of 255 that appears first is set as the starting point of the yarn, and then moved to the first row of the next column. It continuously checks to see if there is a pixel with a value of 255 in each column. If the value of 255 is no longer found in a particular column, it indicates the end of the thread, so the value of the current column minus the number of the column of the previously found starting point indicates the thread length (L).

이렇게 얻어진 실의 길이를 기준 길이와 비교한다. 그 비교값이 소정의 기준값보다 큰 경우에는 미싱불량으로 판정하고 그 결과를 사용자에게 알린다. 사용자는 불량으로 판정된 포장지를 제거하거나 재처리하도록 한다. 비교값이 기준값보다 작은 경우에는 미싱작업이 제대로 이루어진 것이므로 다음 열로 진행하여 앞서 기술된 과정을 다시 반복수행한다.The length of the yarn thus obtained is compared with the reference length. If the comparison value is larger than the predetermined reference value, it is determined as a missing machine and the user is notified of the result. The user can remove or reprocess the wrapping paper determined to be defective. If the comparison value is smaller than the reference value, the sewing work is done properly, so proceed to the next column and repeat the above process.

상기에서와 같이 본 발명에 따른 미싱불량 자동검출 방법 및 자동검출장치에 의하여 해당 포장지의 영상을 캡쳐하여 이 영상을 디지털화하고 이진화하여 각 픽셀들의 값으로부터 실의 길이를 측정하여 자동으로 포장지의 미싱불량을 검출함으로써 보다 정확하게 불량여부를 판단할 수 있게되어 작업을 정확하고 빠르게 처리할 수 있는 효과가 있다.As described above, by capturing the image of the wrapping paper by the automatic missing detection method and the automatic detecting device according to the present invention, the image is digitized and binarized to measure the length of the yarn from the value of each pixel, and thus, the sewing machine automatically fails the wrapping paper. By detecting this, it is possible to determine whether the defect is more accurate, there is an effect that can process the task accurately and quickly.

본 발명은 상기의 실시예를 참조하여 특별히 도시되고 기술되었지만, 이는 예시를 위하여 사용된 것이며 본 발명이 속하는 분야에서 통상의 지식을 가진 자라면 첨부된 청구범위에서 정의된 것처럼 발명의 정신 및 범위를 벗어남이 없이 다양한 수정을 할 수 있다.While the invention has been particularly shown and described with reference to the above embodiments, it has been used for the purpose of illustration and those of ordinary skill in the art, having the spirit and scope of the invention as defined in the appended claims. Various modifications can be made without departing.

Claims (9)

미싱처리되는 포장지를 촬영하는 단계;Photographing the wrapping paper to be missed; 상기 촬영된 영상을 캡쳐하여 정지영상을 형성하는 단계;Capturing the captured image to form a still image; 상기 정지영상을 구성하는 각 픽셀들로부터 종이와 실을 구분하는 문턱값을 결정하는 단계;Determining a threshold value for distinguishing a paper and a thread from each pixel constituting the still image; 상기 문턱값과 각 픽셀들의 값에 따라 상기 영상을 이진화하는 단계;Binarizing the image according to the threshold and the value of each pixel; 상기 이진화된 영상으로부터 실에 해당하는 값을 검출하고 이 값의 연속적으로 검출되는 횟수에 따라서 실의 길이를 판단하여 포장지의 미싱불량여부를 판단하는 단계를 포함하는 것을 특징으로 하는 미싱불량 검출방법.And detecting a value corresponding to a yarn from the binarized image, and determining a thread length according to the number of times the value is continuously detected. 제 1 항에 있어서, 상기 정지영상의 형성단계후에 상기 영상을 미싱부분만을 포함하도록 영상의 크기를 조절하는 단계를 더 포함하는 것을 특징으로 하는 미싱불량 검출방법.The method of claim 1, further comprising adjusting a size of the image to include only a missing portion of the image after the forming of the still image. 제 1 항 또는 제 2 항에 있어서, 상기 미싱불량여부 판단단계는The method of claim 1 or 2, wherein the determining whether the missing a) 행과 열로 이루어지는 상기 이진영상의 픽셀값들을 행단위로 이동하면서 해당 픽셀의 흰점을 표시하는 값인가의 여부를 체크하는 단계;a) checking whether the pixel value of the binary image consisting of rows and columns is a value indicating a white point of the pixel while moving the pixel value in a row unit; b) 상기 체크단계에서 흰점을 표시하는 픽셀이 발견되는 경우에는 처음의 발견위치의 열을 시작위치로 설정하는 단계;b) when the pixel indicating the white point is found in the checking step, setting a column of the first discovery position as a start position; c) 상기 열을 순차적으로 증가시키면서 흰점을 표시하는 픽셀이 발견되지 않으면 해당 위치의 열을 최종위치로 설정하는 단계;c) incrementing the column sequentially and setting the column at the corresponding position as the final position if no pixel indicating a white point is found; d) 상기 c)와 b) 단계에서 얻어진 최종위치와 시작위치에 따라 실의 길이에 해당하는 픽셀길이를 계산하고, 이 계산된 값을 소정의 기준값과 비교하여 미싱불량여부를 판단하는 단계를 포함하는 것을 특징으로 하는 미싱불량 자동검출방법.d) calculating the pixel length corresponding to the length of the yarn according to the final position and the starting position obtained in the steps c) and b), and comparing the calculated value with a predetermined reference value to determine whether there is a miss. Missing fault automatic detection method, characterized in that. 제 3 항에 있어서, 상기 d) 단계에서의 상기 계산값이 상기 기준값이하인 경우에는 미싱이 정상적으로 수행된 것으로, 상기 계산값이 상기 기준값보다 큰 경우에는 미싱이 불량으로 수행된 것으로 판단하는 것을 특징으로 하는 미싱불량 자동검출방법.4. The method of claim 3, wherein when the calculated value in step d) is less than or equal to the reference value, the sewing machine is normally performed. When the calculated value is larger than the reference value, it is determined that the sewing machine is performed poorly. Automatic detection method of missing sewing. 제 4 항에 있어서, 상기 d) 단계에서 미싱이 정상적으로 수행된 경우에는 상기 a) 단계로 진행하여 상기 단계들을 반복적으로 수행하며, 불량으로 수행된 경우에는 사용자에게 미싱상태가 불량임을 알리는 단계를 더 포함하는 것을 특징으로 하는 미싱불량 자동검출방법.The method of claim 4, wherein if the sewing is normally performed in step d), the process proceeds to step a) and repeatedly performs the steps. Missing failure automatic detection method comprising a. 포장지의 미싱상태를 촬영하기 위한 CCD 카메라CCD camera for taking pictures of the wrapping paper 상기 카메라에서 촬영된 영상에서 정지영상을 캡쳐하기 위한 프레임 그래버;A frame grabber for capturing a still image from an image captured by the camera; 상기 프레임 그래버에서 출력된 정지영상을 수신하여 상기 정지영상을 구성하는 각 픽셀들로부터 종이와 실을 구분하는 문턱값을 결정하여 상기 문턱값과 각 픽셀들의 값에 따라 상기 영상을 이진화하고 상기 이진화된 영상으로부터 실에 해당하는 값을 검출하고 이 값의 연속적으로 검출되는 값에 따라서 실의 길이를 판단하여 포장지의 미싱불량여부를 판단하는 영상신호처리장치를 포함하는 것을 특징으로 하는 미싱불량 자동검출장치.Receiving a still image output from the frame grabber to determine a threshold value for distinguishing a paper and a thread from the pixels constituting the still image to binarize the image according to the threshold value and each pixel value And a video signal processing device for detecting a value corresponding to a thread from an image and determining a thread length according to a value continuously detected based on the value. . 제 6 항에 있어서, 상기 미싱불량 검출장치는 상기 CCD 카메라에서 촬영되는 영상의 종이 부분과 실 부분의 픽셀값의 차이를 조절하기 위한 조명부를 더 포함하는 것을 특징으로 하는 미싱불량 자동검출장치The apparatus of claim 6, wherein the apparatus for detecting a missing defect further comprises an illumination unit for controlling a difference between pixel values of a paper part and a real part of an image photographed by the CCD camera. 제 6 항 또는 제 7 항에 있어서, 상기 영상신호처리장치는 상기 이진화된 영상으로부터 미싱불량의 여부를 결정하기 위하여The apparatus of claim 6 or 7, wherein the image signal processing apparatus is configured to determine whether a missing image is missing from the binarized image. a) 행과 열로 이루어지는 상기 이진영상의 픽셀값들을 행단위로 이동하면서 해당 픽셀의 흰점을 표시하는 값인가의 여부를 체크하고,a) moving the pixel values of the binary image consisting of rows and columns in units of rows and checking whether the white points of the pixels are displayed; b) 상기 체크단계에서 흰점을 표시하는 픽셀이 발견되는 경우에는 처음의 발견위치의 열을 시작위치로 설정하고,b) if a pixel indicating a white point is found in the checking step, the column of the first discovery position is set as a start position; c) 상기 열을 순차적으로 증가시키면서 흰점을 표시하는 픽셀이 발견되지 않으면 해당 위치의 열을 최종위치로 설정하고,c) increasing the columns sequentially and if no pixels indicating white spots are found, set the columns at the corresponding positions to the final positions, d) 상기 c) 와 b) 에서 얻어진 최종위치와 시작위치에 따라 실의 길이에 해당하는 픽셀길이를 계산하고, 이 계산된 값을 소정의 기준값과 비교하여 미싱불량여부를 판단하는 것을 특징으로 하는 미싱불량 자동검출장치.d) calculating the pixel length corresponding to the length of the yarn in accordance with the final position and the starting position obtained in c) and b), and comparing the calculated value with a predetermined reference value to determine whether or not there is a miss. Missing automatic detection device. 제 8 항에 있어서, 상기 영상신호처리장치는 상기 d) 에서 미싱이 정상적으로 수행된 경우에는 상기 a) 진행하여 상기 단계들을 반복적으로 수행하며, 불량으로 수행된 경우에는 사용자에게 미싱상태가 불량임을 알리는 것을 특징으로 하는 미싱불량 자동검출방법.The image signal processing apparatus of claim 8, wherein the image signal processing apparatus performs the steps a) and repeatedly performs the steps if the sewing machine is normally performed in d), and notifies the user that the sewing state is defective. Missing defect automatic detection method, characterized in that.
KR1019980021112A 1998-06-08 1998-06-08 Missing defect automatic detection method and device KR100277364B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019980021112A KR100277364B1 (en) 1998-06-08 1998-06-08 Missing defect automatic detection method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019980021112A KR100277364B1 (en) 1998-06-08 1998-06-08 Missing defect automatic detection method and device

Publications (2)

Publication Number Publication Date
KR20000001066A KR20000001066A (en) 2000-01-15
KR100277364B1 true KR100277364B1 (en) 2001-02-01

Family

ID=19538616

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019980021112A KR100277364B1 (en) 1998-06-08 1998-06-08 Missing defect automatic detection method and device

Country Status (1)

Country Link
KR (1) KR100277364B1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010015999A (en) * 2000-09-06 2001-03-05 윤은혁 The embroidery design's mending method of embroidered original textiles by using a computer and sewing machine
CN106133504A (en) * 2014-03-28 2016-11-16 世联股份有限公司 Defect detecting device

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06254280A (en) * 1990-10-29 1994-09-13 R Frankel Samuel Electronic sewing machine and bobbin for use thereon

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH06254280A (en) * 1990-10-29 1994-09-13 R Frankel Samuel Electronic sewing machine and bobbin for use thereon

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20010015999A (en) * 2000-09-06 2001-03-05 윤은혁 The embroidery design's mending method of embroidered original textiles by using a computer and sewing machine
CN106133504A (en) * 2014-03-28 2016-11-16 世联股份有限公司 Defect detecting device

Also Published As

Publication number Publication date
KR20000001066A (en) 2000-01-15

Similar Documents

Publication Publication Date Title
EP0264087B1 (en) Apparatus for detecting defects on bottle mouth with screw thread
JPH07332951A (en) Apparatus and method for inspecting image
KR100277364B1 (en) Missing defect automatic detection method and device
JP3871944B2 (en) Appearance inspection device
EP0443062A1 (en) Device for inspecting quality of printed matter and method thereof
JPH06258226A (en) Appearance inspection method for tablet
JP2001004339A (en) Illumination non-uniformity measuring method for picture recognition inspecting system and picture recognition inspecting method
KR20090121612A (en) Method and apparatus for automatic detecting quality defects for corrugated board
JPH10104076A (en) Method and system for inspecting mixture of foreign matter
JPH0658733A (en) Inspecting method of nonuniform section of glass bottle
JP3761313B2 (en) Tablet appearance inspection method, tablet appearance inspection device and blister sheet packaging machine
JPH06118026A (en) Method for inspecting vessel inner surface
JP2000266514A (en) Method and device for inspecting metallic sheet
JP2004286708A (en) Defect detection apparatus, method, and program
JP2756738B2 (en) Apparatus for visual inspection of semiconductor devices
JPH07260445A (en) Method and apparatus for inspecting lead frame automatically
JP3461128B2 (en) Appearance inspection method and device for stamped tablets
JP3190173B2 (en) Semiconductor device appearance inspection method and appearance inspection device
JP2818347B2 (en) Appearance inspection device
JP3412732B2 (en) Defect inspection method and apparatus
JP2001013079A (en) Method and apparatus for inspecting flaw
JP3216767B2 (en) Image processing device capable of level fluctuation correction
JPS62154076A (en) Picture processing method
JPH0544982B2 (en)
KR20000008597A (en) Clarity examination device of television

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: 20040930

Year of fee payment: 5

LAPS Lapse due to unpaid annual fee