KR960001753B1 - Directionally characteristic recognition system by binary image - Google Patents
Directionally characteristic recognition system by binary image Download PDFInfo
- Publication number
- KR960001753B1 KR960001753B1 KR1019880009050A KR880009050A KR960001753B1 KR 960001753 B1 KR960001753 B1 KR 960001753B1 KR 1019880009050 A KR1019880009050 A KR 1019880009050A KR 880009050 A KR880009050 A KR 880009050A KR 960001753 B1 KR960001753 B1 KR 960001753B1
- Authority
- KR
- South Korea
- Prior art keywords
- pattern
- target
- master
- data
- setting
- Prior art date
Links
Images
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T7/00—Image analysis
- G06T7/0002—Inspection of images, e.g. flaw detection
- G06T7/0004—Industrial image inspection
- G06T7/001—Industrial image inspection using an image reference approach
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T2207/00—Indexing scheme for image analysis or image enhancement
- G06T2207/30—Subject of image; Context of image processing
- G06T2207/30108—Industrial image inspection
- G06T2207/30164—Workpiece; Machine component
Abstract
내용 없음.No content.
Description
제1도는 본 발명의 1예의 계통도.1 is a schematic diagram of an example of the present invention.
제2도는 내지 제15도는 그것의 설명을 위한 도면.2 to 15 are views for explanation thereof.
* 도면의 주요부분에 대한 부호의 설명* Explanation of symbols for main parts of the drawings
31 : 2치화 회로 32 : 프레임 메모리31: Binarization Circuit 32: Frame Memory
34 : 문자 메모리 41 : 카메라34: character memory 41: camera
본 발명은 2치화상처리에 의한 방향성 식별장치에 관한 것이다.The present invention relates to an apparatus for discriminating directionality by binary image processing.
본 발명은 2치화상처리에 의한 방향성 식별장치에 있어, 대상의 예를들면 중심을 기준점으로 하는 것과 동시에, 이 기준점에서 본 특이점을 식별의 판정점으로 함으로써, 대칭성이 있는 대상에 대해서도 그 방향성을 식별할 수 있도록한 것이다.According to the present invention, in the directional identification device using binary image processing, by using the center as a reference point, for example, the singular point seen from this reference point as the determination point for identification, the directionality of the symmetric object can be achieved. It is to be identified.
2치화상처리에 의해 전기부품등의 방향성(대상을 이루는 부품이 어떠한 방향으로 놓여져 있는가)을 식별하는 방법으로서, 타원근사에 의한 관성주축 계산방식이 있다.As a method of identifying the directionality (in which direction the parts constituting the object are placed) of electrical parts, etc., by binary image processing, there is an inertial spindle calculation method by elliptic approximation.
그러나, 이 방법에서는, 가늘고 긴 부품에 대해서는 매우 정밀하게 계산이 되나, 2차 모우멘트에 의한 계산방식이므로, 제5도에 도시하는 바와 같이, 정방형이나 원형등에 가까운 부품, 즉, 점대칭성의 강한 부품에 대해서는 방향성을 정확하게 계산할 수 없다.However, in this method, very long parts are calculated very precisely, but since they are calculated by secondary moments, as shown in FIG. 5, parts close to squares or circles, that is, strong point symmetry, are shown. Orientation cannot be calculated accurately for parts.
또한, 타원근사를 위해, +90°내지 -90°의 범위에서만이 방향성이 계산되지 않고, 방향성의 정역의 인식이 아니된다.In addition, for the elliptic approximation, only in the range of + 90 ° to -90 °, the directionality is not calculated, and the recognition of the directional range of directionality is not.
본 발명은, 이들의 문제점을 해결하려는 것이다.The present invention is intended to solve these problems.
이로 인하여, 본 발명에 있어서는, 방향성의 식별의 기준이 되는 마스터 패턴 및 방향성의 식별의 대상이 되는 대상패턴의 비디오 신호를 2치신호로 변환하는 2치화 회로와, 상기 2치신호를 기억하는 프레임 메모리와, 상기 마스터 패턴에 대해서 상대좌표의 원점 및 기준축을 설정하는 수단과, 상기 마스터 패턴의 화상을 표시하고 있는 화면상의 임의의 위치에, 커서를 설정하는 설정수단과, 상기 마스터 패턴의 2치신호중, 상기 설정수단에 의해 설정된 커서위치에 대응하는 신호로부터, 그 커서위치의 흑백정보를 마스터 데이터로서 등록하는 수단과, 상기 대상패턴에 대해서 상대좌표의 원점 및 기준축을 설정하는 수단과, 상기 대상패턴의 2치신호중, 상기 커서위치에 대응하는 신호로부터, 그 커서위치의 흑백정보를 대상 데이터로 하여 인출하는 수단과, 이 대상 데이터와, 상기 마스터 데이터를 비교하는 비교수단과, 이 비교수단의 비교출력에 의거하여 상기 식별의 대상으로 하는 대상패턴의 방향성을 출력하도록한 2치화상처리에 의한 방향성 식별장치로 하는 것이다.For this reason, in the present invention, a binarization circuit for converting a video signal of a master pattern, which is a reference for directional identification, and a target pattern, which is a target of directional identification, into a binary signal, and a frame for storing the binary signal. Means for setting a reference point and a reference axis of relative coordinates with respect to the memory, the master pattern, setting means for setting a cursor at an arbitrary position on a screen displaying an image of the master pattern, and binary values of the master pattern. Among the signals, means for registering black and white information of the cursor position as master data from a signal corresponding to the cursor position set by the setting means, means for setting the origin and reference axis of relative coordinates for the target pattern, and the target The number of out-of-pattern binary signals from the signal corresponding to the cursor position to be used as black and white information of the cursor position as the target data. And a directional identification device by binary image processing for outputting the directionality of the target pattern to be identified based on the comparison means for comparing the target data with the master data and the comparison output of the comparison means. It is.
점대칭성의 강한 것이라도 방향성이 인식된다.Directionality is recognized even if the point symmetry is strong.
제1도에 있어서, (11)은 이 장치의 동작을 제어하는 16비트의 CPU, (12)는 BIOS등이 기입되어 있는 ROM, (13)은 RAM을 도시하고, 이 RAM(13)에는, 예를들면 제2도에 도시하는 바와 같이, 식별처리의 프로그램, 마스터 데이터, 식별 실행시에 있어서 식별대상의 데이터등이 억세스됨과 동시에, 일부가 CPU(11)의 작업 기억영역(work area)으로 된다. 그래서, 이들 메모리(12), (13)는 시스템 버스(19)를 통해서 CPU(11)에 접속된다.In Fig. 1, reference numeral 11 denotes a 16-bit CPU which controls the operation of the apparatus,
또한, (21)은 FDD, (22)는 키보드, (23)은 죠이스틱을 도시하고, FDD(21)는 FDC(24)를 통해서 버스(19)에 접속되어 있음과 동시에, 키보드(22) 및 죠이스틱(23)은 인터페이스(25)를 통해서 버스(19)에 접속된다. 또한 FDD(21)의 플롭피 디스크(29)에는, 식별처리의 프로그램으로서, 제3도 및 제4도에 도시하는 플로우챠트의 프로그램(100), (200)이 세이브되어 있다.In addition, 21 denotes an FDD, 22 denotes a keyboard, 23 denotes a joystick, and an FDD 21 is connected to the
또다시, (41)은 기준이 되는 패턴 및 대상이 되는 패턴을 촬상하는 비디오 카메라를 도시하고, 이 카메라(41)에서 휘도신호 Sy가 인출되어, 이 신호 Sy가 2치화 회로(31)에 공급되어서 소정의 임계레벨보다도 백레벨쪽인 때에는 "0"레벨(백레벨)로 되며, 그 임계레벨보다도 흑레벨쪽인 때에는 "1"레벨(흑레벨)로 되는 2치신호 Sb로 되어, 이신호 Sb가 프레임 메모리(32)에 공급된다.Again, 41 shows a video camera which picks up a pattern as a reference and a pattern as an object, and the luminance signal Sy is extracted from the
이 프레임 메모리(32)는, 신호 Sb의 1프레임 몫을, 512화소×512화소의 분해능으로 기억하는 것이며, 메모리(32)로의 신호 Sb의 로드는, DMA 제어기(33)에 의해 신호 Sb의 수평 및 수직동기에 동기하여 DMA 전송에 의해 행해진다.The
또한, (34)는 문자 메모리, (35)는 문자 제너레이터를 도시하고, 메모리(34)는, 말하자면 V-RAM의 구성으로 되어, 이 메모리(34)에 문자 제너레이터(35)의 문자 코드가 로드됨으로써, 모니터 화면에 대응하는 문자, 숫자, 기호가 표시되는 것이다. 또다시, (36)은 커서 및 윈도우로서 표시되는 신호를 형성하는 제너레이터, (37)은 CRT 제어기를 도시하고, 이 제어기(37)에 의해 회로(32), (34) 내지 (36)가 제어됨과 동시에 그들의 출력신호가 합성되어서 모니터 디스플레이(42)에 공급되어, 소정의 표시가 행해진다.In addition,
또한, 제5도 내지 제14도는, 모니터 디스플레이(42)에 표시된 화상이며, 이것은 백색 및 흑색으로 2치화되어 있다.5 to 14 are images displayed on the
그리고, 이 장치를 동작시키면, 플로피 디스크(29)에 세이브되어 있는 프로그램(100), (200)이 제2도에 도시하는 바와 같이 RAM(13)에 로드되어서 코맨드 대기로 된다.When the device is operated, the
거기에서, 키보드(22)에서 티칭모드를 지시하면, 프로그램(100)이 실행되어서 티칭이 행해진다.When the teaching mode is instructed by the keyboard 22, the
즉, 프로그램(100)이 스타트하면, 스텝(101)에 있어서, 식별의 기준이 되는 마스터 부품의 화상이 카메라(41)에 의해 촬상되어, 이때의 신호 Sb의 1프레임이 메모리(32)에 DMA에 의해 기입된다. 또한, 이 기입된 신호 Sb가, CRT 제어기(37)에 의해 독출되어서 디스플레이(42)에 공급되어, 제5도에 도시하는 바와 같이 기준이 되는 마스터 패턴이 디스플레이 화면에 표시된다.That is, when the
이 도면에 있어서는, 마스터 부품으로서 임의의 방향을 향해서 배치되어, 또한, 일부에 돌기부를 갖는 원형의 부품이 촬상되어, 이것이 흑색의 동일한 형상의 마스터 패턴으로서 표시되어 있는 경우이다. 또한, 이 마스터 부품(마스터 패턴)의 수는 몇 개이든 좋으나, 이 도면에 있어서는 1개이다.In this figure, it is a case where the circular part arrange | positioned toward arbitrary directions as a master part, and a part which has a projection part in part is imaged, and this is displayed as the master pattern of the same shape of black. In addition, although the number of this master part (master pattern) may be sufficient, it is one in this figure.
이어서, 처리는 스텝(102)으로 나아가, 이 스텝(102)에 있어서, 마스터 패턴이 복수의 경우에는, 그중의 1개가 사용자의 지시에 의해 선택된다.Subsequently, the process proceeds to
다음에, 스텝(103)에 있어서, 스텝(102)에서 선택된 마스터 패턴의 중심이 계산되어, 제너레이터(35), (36)의 신호가 디스플레이(42)에 공급되어서 디스플레이 화면에는 제6도에 도시하는 바와 같이, 스텝(103)으로 산출한 중심위치에, 이 중심위치를 도시하는 중심마크 및 마스터 패턴 번호가 「+1」과 같이 표시된다.Next, in step 103, the center of the master pattern selected in
다음으로, 처리는 스텝(104)으로 진행하고, 이 스텝(104)에 있어서 판정점의 설정처리가 행해진다. 즉, 제너레이터(35), (36)의 신호에 의해 디스플레이 화면에는 제7도에 도시하는 바와 같이 X자형의 커서 및 판정점 번호가 표시됨과 함께, 그 표시위치는 죠이스틱(23)의 조작에 따라서 임의로 변경되어서 판정점이 설정된다.Next, the process proceeds to
이 경우, 판정점은, 중심을 기준으로 하여, 방향성을 인식하는데 의의가 있는 점에 설정된다. 이로 인하여 이 도면에 있어서는 3개의 판정점 「X1」내지「X3」이 설정이 됨과 함께, 제1의 판정점「X1」은, 마스터 패턴의 돌부에 설정되어, 제2 및 제3의 판정점「X2」,「X3」은 마스터 패턴의 원주방향으로 있어서, 판정점「X1」의 전후의 위치에 설정된 경우이다.In this case, the determination point is set at a point that is meaningful for recognizing the orientation based on the center. For this reason, in this figure, three determination points "X1" to "X3" are set, and the first determination point "X1" is set at the projection of the master pattern, and the second and third determination points " X2 "and" X3 "are the cases where it is set in the position before and behind determination point" X1 "in the circumferential direction of a master pattern.
다음에, 스텝(105)에 있어서, 제8도에 도시하는 바와 같이, 중심「X1」과, 스텝(104)에서 설정한 제1의 판정점「X1」을 연결하는 직선이, 이 마스터 패턴(마스터 부품)의 방향을 도시하는 방향선(기준선)에 설정되어, 이 방향선이 표시된다.Next, in
단, 실제로는, 스텝(104)에서 판정점「X1」을 설정할 때, 중심「+1」과, 판정점「X1」을 연결하는 직선이, 이 마스터 패턴의 방향을 도시하는 방향선으로 되도록, 판정점「+1」을 설정하고 있는 것이다.In practice, however, when setting the determination point "X1" in
이어서, 처리는 스텝(106)으로 나아가, 이 스텝(106)에 있어서, 스텝(104)에 있어서 설정한 판정점「X1」내지「X3」의 흑백정보가 계산 및 판정되어, 그 판정 결과가 제9도에 도시하는 바와 같이 표시된다.Subsequently, the process proceeds to
즉, 이 도면에 있어서, 좌상의 숫자가 그 판정 결과를 도시하는 것으로 제1번째(좌단)의 숫자는, 마스터 패턴 번호를 표시하고, 제2번째 내지 제4번째의 숫자가, 판정점「X1」내지「X3」의 판정결과를 도시하고, 이 숫자가 "0"인때는 판정점이 백색이며, "1"인때는 흑색임을 표시한다.That is, in this figure, the upper left number shows the determination result, the first (left) number indicates the master pattern number, and the second to fourth numbers indicate the determination point "X1. The judgment result of "-" X3 "is shown, and when this number is" 0 ", it shows that the judgment point is white, and when it is" 1 ", it is black.
다음으로, 처리는 스텝(107)으로 진행하여, 이 스텝(107)에 있어서, 스텝(106)의 판정결과 내지 표시 출력이 정확한가 아닌가를 묻는 문장이 디스플레이(42)에 표시되어, 이 물음에 대해서 키보드(22)에 의해 착오로 입력된때에는, 처리는 스텝(104)으로 되돌아가 판정점「X1」내지「X3」의 재설정 및 이후의 처리가 되풀이되어, 정확하다고 입력이 된때에는, 처리는 스텝(108)으로 나아간다.Next, the process proceeds to step 107, and in this step 107, a sentence asking whether the determination result or the display output of
그리고, 이 스텝(108)에 있어서, 마스터 패턴의 중심을 기준점으로 하는 판정점「X1」내지「X3」의 상대적인 극좌표의 데이터, 즉, 중심을 원점으로 함과 동시에, 이 원점을 지나는 수평축(수평우방향)을 기준축으로 하는 극좌표가 설정되어, 이 극좌표에 있어서 판정점「X1」내지「X3」의 거리 및 각도의 데이터가 RAM(13)에 위치데이터로서 등록되어, 다음에 스텝(109)에 있어서, 스텝(106)에 있어서의 판정결과(흑백정보)가 마스터 데이터로서 RAM(13)에 등록되어, 프로그램(100)을 종료한다.In
이상으로 의해 마스터 패턴의 티칭을 종료하여, 장치는 또다시 코맨드 대기로 된다.The teaching of the master pattern is completed by the above, and the apparatus is again waiting for a command.
거기에서, 키보드(22)에서 식별실행모드를 지시하면, 프로그램(200)이 실행되어서 대상이 되는 부품의 방향성의 인식이 행해진다.From there, when the identification execution mode is instructed by the keyboard 22, the
즉, 프로그램(200)이 스타트하면, 스텝(201)에 있어서 방향성의 인식의 대상이 되는 부품에 대한 2치신호 Sb의 1프레임이 DMA에 의해 메모리(32)에 기입이 된다. 또한, 이 기입된 신호 Sb가, CRT 제어기(37)에 의해 독출이 되어서 디스플레이(42)에 공급되어, 제5도와 같이, 대상이 되는 부품의 패턴이 디스플레이 화면에 표시된다.That is, when the
이어서, CPU(11)의 처리는 스텝(202)으로 나아가, 이 스텝(202)에 있어서 제너레이터(36)의 신호에 의해서 디스플레이 화면에 윈도우가 표시됨과 동시에, 그 표시위치가 죠이스틱크(23)의 조작에 따라서 임의로 변경이 되어, 디스플레이 화면내에 있어서 인식의 대상이 되는 범위가 설정된다. 이 경우, 이 인식범위내에, 대상이 되는 패턴이 몇 개 표시되어도 좋다.Subsequently, the processing of the CPU 11 proceeds to step 202, in which the window is displayed on the display screen by the signal of the
다음으로, 스텝(203)에 있어서, 스텝(202)으로 설정된 윈도우내의 1개의 대상패턴이 선택되어, 스텝(204)에 있어서, 스텝(203)에서 선택된 대상패턴의 중심이 계산되어, 또다시, 스텝(205)에 있어서 그 대상패턴에 대해서, 중심을 기준점으로 하여 상대좌표가 설정되어, 즉, 중심을 원점으로 하여, 이 원점을 통하는 수평축을 기준축으로 하는 극좌표가 설정된다.Next, in step 203, one target pattern in the window set in
그래서, 이어서 스텝(206)에 있어서, 스텝(108)에 의해 RAM(13)에 등록되어 있던 위치데이터가 독출되어, 이 위치데이터가 스텝(205)에서 설정된 좌표계에 적용되어서 판정점「X1」내지「X3」의 절대좌표가 계산되어, 이어서 스텝(207)에 있어서, 스텝(206)에서 구한 판정점 「X1」내지 「X3」에 대해서 그 흑백정보, 즉, 대상 데이터가 메모리(32)의 신호 Sb에서 계산된다.Then, in
그리고, 스텝(208)에 있어서, 스텝(207)으로 산출한 대상 데이터가 RAM(13)에 등록되어 있는 마스터 데이터와 비교되어, 마스터 데이터와 일치되었을 때에는, 처리는 스텝(209)으로 진행, 이 스텝(209)에 있어서 중심에서 판정점「X1」을 보았을 때의 각도(기준축에 대한 각도)가 계산되어, 이 각도가 해당하는 부품의 방향을 인식한 결과로서 제10도에 도시하는 바와 같이 디스플레이 화면에 표시된다.In
제10도에 있어서는, 테두리내에 있어서 좌측에 대상패턴의 번호가 표시도어, 그 우측에 인식한 각도가 표시되어 있다. 또한, 이때의 중심마크「+1」,「+2」및 방향선도 표시되어 있다.In Fig. 10, the number of the target pattern is displayed on the left side in the frame, and the recognized angle is displayed on the right side. In addition, the center marks "+1", "+2" and the direction lines at this time are also displayed.
그래서 다음에 스텝(210)에 있어서, 모든 대상패턴에 대해서 인식이 행해졌는가 아닌가가 첵크되어, 모두에 대해서 행해지고 있을 때에는(제10도), 프로그램(200)을 종료하여, 모두에 대해서 행해지고 있지 아니할 때에는, 스텝(211)에 의해 다음의 대상패턴이 선택되어서부터 스텝(204)으로 되돌아간다.Therefore, in
또한, 스텝(208)에 있어서, 대상 데이터가 마스터 데이터와 일치하지 아니할때에는, 처리는 스텝(221)으로 나아가, 이 스텝(221)에 있어서, 대상패턴에 대한 극좌표의 기준축이 360°를 초과하지 아니하였는가 어떤가 첵크되어, 초과하지 아니한때에는, 처리는 스텝(222)으로 진행, 이 스텝(222)에 있어서, 대상패턴에 대한 극좌표의 기준축이, 원점(중심)을 중심으로 소정의 각도 α°만큼 회전되어(따라서, 판정점「X1」내지「X3」이 상대적으로 -α°만큼 회전된 것으로 된다), 이어서 처리는 스텝(206)으로 되돌아간다.In
따라서, 대상 데이터와 마스터 데이터가 일치할때까지, 스텝(206) 내지 (208), (221), (222)가 되풀이 되어, 이때, 스텝(222)에 의해, 기준축이 α°씩 회전됨으로써 판정점「X1」내지「X3」의 위치가 대상패턴의 주위를 -α°씩 변경되어가게 된다.Therefore, steps 206 to 208, 221, and 222 are repeated until the target data and the master data coincide. At this time, the reference axis is rotated by α ° by the step 222. The positions of the determination points " X1 " to " X3 " are changed by -α degrees around the target pattern.
그리고, 대상 데이터와 마스터 데이터가 일치하였을 때에는, 상술하는 바와 같이, 스텝(209)에 의해 그때의 기준축에 대한 판정점「X1」의 각도, 즉 대상이 되어 있는 부품의 각도가 표시된다.When the target data and the master data coincide with each other, as described above, by
또한, 스텝(221)에 있어서, 기준축의 각도가 360°를 초과하였을 때에는, 스텝(231)에 의해 대상 데이터가 마스터 패턴과 일치하지 아니하였음이 디스플레이(42)에 표시되어서부터 스텝(210)으로 진행한다.In
이와같이하여, 대상이 되는 부품의 방향성이 인식 혹은 식별된다.In this way, the orientation of the target component is recognized or identified.
제11도 및 제12도는, 다른 부품에 대해서 제9도 및 제10도에 대응하여 도시하는 것으로, 제11도는, C자형의 링에 대해서 판정점「X1」내지「X3」을 설정하였을 때의 마스터 패턴을 도시하고, 제12도는, 그 마스터 패턴에 의거하여 대상패턴의 각도를 인식시킨 경우이다.11 and 12 show the other components corresponding to FIGS. 9 and 10, and FIG. 11 shows the case when the determination points "X1" to "X3" are set for the C-shaped ring. A master pattern is shown, and FIG. 12 is a case where the angle of the target pattern is recognized based on the master pattern.
제13도 및 제14도는 메터의 흔들림을 판독하는 경우로, 티이칭시(제13도), 지침에 대해서 판정점「X1」이 설정이 됨과 함께, 그 전후의 위치에 판정점「X2」,「X3」이 설정되어, 실행시(제14도), 그 지침의 흔들림의 각도가 표시된다. 단, 이 경우에는, 극좌표의 원점은 중심은 아니고, 스텝(103), (204)에 있어서 원점이 지침의 회전중심에 설정된다.13 and 14 are for reading the shaking of the meter. When teaching (Fig. 13), the determination point "X1" is set for the instruction, and the determination point "X2" at the front and rear positions thereof. "X3" is set, and at the time of execution (Fig. 14), the angle of shaking of the guideline is displayed. In this case, however, the origin of the polar coordinate is not the center, but the origin is set at the rotation center of the guide in
다음으로, 판정점에 대한 흑색, 백색의 판정법에 대해서 설명을 하자.Next, the black and white determination method with respect to a determination point is demonstrated.
비디오 카메라에 의해 촬상된 화상은, 제15도 a에 도시하는 바와 같이, 512화소×512화소의 크기로 분해함과 동시에, 각 화소마다 백레벨 혹은 흑레벨로 2치화한다. 그리고, 제15도 a에 굵은 선으로 감싸서 도시하는 바와 같이, 커서의 도시하는 화소를 중심으로 하는 3화소×3화소를, 판정점으로 보는 것으로(흑색·백색의 판단에 사용한다), 이 3화소×3화소에 대해서 제15도 b에 도시하는 가중치를 붙인다. 단, 이 가중치의 배분은 사용자가 임의로 설정하는 것이며, 그 총화는 100으로 한다.As shown in Fig. 15A, an image picked up by a video camera is decomposed into a size of 512 pixels x 512 pixels, and binarized to a white level or a black level for each pixel. And as shown in FIG. 15, wrapped with a thick line, 3 pixels x 3 pixels centered on the pixel shown by the cursor are regarded as a determination point (used for black / white determination). Weights shown in Fig. 15B are assigned to pixels x 3 pixels. However, the distribution of this weight is set by the user arbitrarily, and the sum total is 100.
그리고, 이제, 이 3화소×3화소가 예를들면 제15도 c에 도시하는 바와 같은 백색 및 흑색의 배분이었다면, 백색의 화소를 「0」, 흑색의 화소를 「1」로 하면, 제15도 c는 제15도 d와 같이 표시가 되므로, 커서를 표시하는 판정점(3화소×3화소의 에리어)에 대한 평가치 EV를,Then, if the three pixels x three pixels were white and black distribution as shown in FIG. 15C, for example, the white pixel is set to "0" and the black pixel is set to "1". Since FIG. C is displayed like FIG. 15 d, the evaluation value EV for the determination point (the area of 3 pixels x 3 pixels) displaying the cursor is
EV=5×0+10×0+5×0+10×0+40×1E V = 5 × 0 + 10 × 0 + 5 × 0 + 10 × 0 + 40 × 1
+10×1+5×1+10×1+5×1=70+ 10 × 1 + 5 × 1 + 10 × 1 + 5 × 1 = 70
와 같이 구한다.Obtain as
그리고, 이때 임계레벨 ETH을 사용자가 임의로 설정하여두고, 평가치 EV를 레벨 ETH와 비교하여, 그 비교결과에 의해 커서가 도시하는 판정점이 흑색인지 백색인지를 판정한다.At this time, the threshold level E TH is arbitrarily set by the user, and the evaluation value E V is compared with the level E TH to determine whether the determination point shown by the cursor is black or white based on the comparison result.
지금의 경우에는, EV=70이므로 ETH=60으로 설정했을 때는,In this case, E V = 70, so when E TH = 60,
EV>ETH E V > E TH
이므로, 커서의 도시하는 판정점은 "흑색"으로 판단한다. 또한, ETH=80으로 설정했을 때에는,Therefore, the determination point shown by the cursor is judged as "black". In addition, when E TH = 80 is set,
EV<ETH E V <E TH
이므로, 커서가 도시하는 판정점은 "백색"으로 판단한다.Therefore, the determination point shown by the cursor is judged to be "white".
이와같이하여, 본 발명에 의하면, 점대칭성이 강한 부품등에 대해서 그 방향성을 인식 혹은 식별이 가능하나, 이 경우, 특히 본 발명에 의하면, 중심을 중심으로 하여 상대좌표를 회전시켜가는 방식이므로, 종래의 타원근사에 의한 관성주축 계산방식에서는 계산이 안되는 방향성을 인식하고, 미묘한 방향성도 인식된다. 또한, 360°방향 모두 회전시키고 있으므로, 360°내의 1방향성을 인식할 수가 있고, 정방향·역방향도 식별이 된다.Thus, according to the present invention, the orientation can be recognized or identified with respect to a component having strong point symmetry, but in this case, in particular, according to the present invention, since the relative coordinates are rotated around the center, In the method of calculating the inertial axis by elliptic approximation, it recognizes the direction which cannot be calculated and also recognizes the subtle direction. In addition, since the rotation is performed in both 360 ° directions, one-directionality within 360 ° can be recognized, and forward and reverse directions are also identified.
또다시, 중심이외의 점을 좌표의 원점으로 함으로써, 대상물의 특이점이 중심을 통하는 반경위가 되는 경우나 중심이 변화하는 경우등 광범위하게 걸쳐서 효과를 발휘할 수 있고, 예를들면 상술하는 메터와 같이 원좌표의 경우에도 간단히 인식된다.In addition, by using a point other than the center as the origin of the coordinate, the effect can be exerted extensively such as when the singular point of the object becomes the radial position through the center or when the center changes, for example, as in the above-described meter. Even in the case of circular coordinates, it is simply recognized.
또한, 상술하는 바에 있어서, 마스터 데이터 및 대상 데이터의 처리를 할 때, 이것을 런렝스(run length) 코드화하여 두어도 좋고, 이것은 소프트웨어로 실현된다. 또한, 2치화 회로(31)에 있어서 임계레벨도 사용자에 의해 임의로 설정할 수 있도록 하여도 좋다.In addition, as mentioned above, when processing master data and target data, you may run-length-code this, and this is implemented by software. In the
또다시, 마스터 데이터는, 다음회의 판정에 구비하여 플롭피 디스크(29)의 쎄이브하여 두어도 좋고, 혹은 대상 데이터를 디스크(29)에 쎄이브하여 두고, 이것을 통계처리함으로써 문제점을 찾는 데이터등으로 하여 사용할 수도 있다. 또한, 죠이스틱(23) 대신에 키보드(22)의 커서키나 마우스등도 사용할 수 있다.Again, the master data may be saved in the
본 발명에 의하면, 중심을 중심으로 하여 상대좌표를 회전시켜가는 방식이므로, 종래의 타원근사에 의한 관성주축 계산방식에서는 계산이 아니되는 방향성을 인식할 수 있고, 미묘한 방향성도 인식이 된다. 또한, 360°방향 모두 회전시키고 있으므로, 360°내의 일방향성을 인식할 수가 있고, 정방향·역방향도 식별된다.According to the present invention, since the relative coordinates are rotated around the center, the conventional direction calculation method of the inertial spindle by elliptic approximation can recognize the direction which is not calculated, and the delicate direction can also be recognized. In addition, since all of the 360 ° directions are rotated, one-directionality within 360 ° can be recognized, and the forward and reverse directions are also identified.
또다시, 중심이외의 점을 좌표의 원점으로 함으로써, 대상물의 특이점이 중심을 통하는 반경위에 없는 경우나, 중심이 변화하는 경우등 광범위하게 걸쳐서 효과를 발휘할 수 있고, 예를들면 상술하는 메터와 같이 원좌표의 경우에도 간단히 인식된다.In addition, by using a point other than the center as the origin of the coordinates, the effect can be exerted over a wide range, such as when the singularity of the object is not on the radius through the center or when the center changes. For example, Even in the case of circular coordinates, it is simply recognized.
Claims (1)
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP62202778A JPS6446165A (en) | 1987-08-14 | 1987-08-14 | Directivity discriminating device applying binary image processing |
JP202778 | 1987-08-14 |
Publications (2)
Publication Number | Publication Date |
---|---|
KR890004253A KR890004253A (en) | 1989-04-21 |
KR960001753B1 true KR960001753B1 (en) | 1996-02-05 |
Family
ID=16463030
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
KR1019880009050A KR960001753B1 (en) | 1987-08-14 | 1988-07-20 | Directionally characteristic recognition system by binary image |
Country Status (2)
Country | Link |
---|---|
JP (1) | JPS6446165A (en) |
KR (1) | KR960001753B1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
AT502285B1 (en) | 2004-10-19 | 2008-12-15 | Gissing Gerhard | CIRCUIT RING WITH DOUBLE BOLTING DEVICE |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0724070B2 (en) * | 1984-08-10 | 1995-03-15 | 富士電機株式会社 | Placement determination device |
JPS6292079A (en) * | 1985-10-18 | 1987-04-27 | Hitachi Ltd | Visual device |
-
1987
- 1987-08-14 JP JP62202778A patent/JPS6446165A/en active Pending
-
1988
- 1988-07-20 KR KR1019880009050A patent/KR960001753B1/en not_active IP Right Cessation
Also Published As
Publication number | Publication date |
---|---|
JPS6446165A (en) | 1989-02-20 |
KR890004253A (en) | 1989-04-21 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US5093867A (en) | Candidate article recognition with assignation of reference points and respective relative weights | |
US5793901A (en) | Device and method to detect dislocation of object image data | |
US10430650B2 (en) | Image processing system | |
EP0112415B1 (en) | A method and apparatus for continuously updating a display of the coordinates of a light pen | |
JPS60167069A (en) | Pattern recognizer | |
JPH0810132B2 (en) | Target pattern rotation angle detection method | |
JPH0644292B2 (en) | Two-dimensional visual recognition device | |
US6320977B1 (en) | Method and apparatus for positional detection using pattern matching process | |
US5392364A (en) | Object inspection method employing selection of discerning features using mahalanobis distances | |
KR960001753B1 (en) | Directionally characteristic recognition system by binary image | |
JPH11167455A (en) | Hand form recognition device and monochromatic object form recognition device | |
US20210042576A1 (en) | Image processing system | |
KR960001752B1 (en) | Image recognition system by binary image processing | |
KR960001751B1 (en) | Image recognition system by binary image processing | |
KR20200096426A (en) | Moving body detecting device, moving body detecting method, and moving body detecting program | |
JPH0523464B2 (en) | ||
JPH05113315A (en) | Detecting method for center position of circular image data | |
JPH0731733B2 (en) | Rectangle detector | |
JPH0460525B2 (en) | ||
JPH02179401A (en) | Measuring method of object | |
JPS6041176A (en) | Pattern matching method | |
JPH06100448B2 (en) | Image pattern matching method and apparatus | |
JPH067390B2 (en) | Graphic analysis device | |
JPH0225704A (en) | Detecting device for rotational position and direction of object | |
JPH03282974A (en) | Method for inspecting character |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A201 | Request for examination | ||
G160 | Decision to publish patent application | ||
E701 | Decision to grant or registration of patent right | ||
GRNT | Written decision to grant | ||
FPAY | Annual fee payment |
Payment date: 20070131 Year of fee payment: 12 |
|
LAPS | Lapse due to unpaid annual fee |