KR960001753B1 - Directionally characteristic recognition system by binary image - Google Patents

Directionally characteristic recognition system by binary image Download PDF

Info

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
Application number
KR1019880009050A
Other languages
Korean (ko)
Other versions
KR890004253A (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 소니 가부시끼가이샤
Publication of KR890004253A publication Critical patent/KR890004253A/en
Application granted granted Critical
Publication of KR960001753B1 publication Critical patent/KR960001753B1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/0002Inspection of images, e.g. flaw detection
    • G06T7/0004Industrial image inspection
    • G06T7/001Industrial image inspection using an image reference approach
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30108Industrial image inspection
    • G06T2207/30164Workpiece; Machine component

Abstract

내용 없음.No content.

Description

2치 화상처리에 의한 방향성 식별장치Directional identification device by binary image processing

제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, numeral 12 denotes a ROM in which a BIOS and the like are written, numeral 13 denotes a RAM, and in this RAM 13, For example, as shown in FIG. 2, the program of the identification processing, the master data, the data to be identified at the time of identification execution, and the like are accessed, and a part of the work storage area of the CPU 11 is accessed. do. Thus, these memories 12 and 13 are connected to the CPU 11 via the system bus 19.

또한, (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 bus 19 via an FDC 24, and a keyboard 22 and The joystick 23 is connected to the bus 19 via the interface 25. In the floppy disk 29 of the FDD 21, programs 100 and 200 of the flowcharts shown in FIGS. 3 and 4 are saved as programs for identification processing.

또다시, (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 camera 41, and the signal Sy is supplied to the binarization circuit 31. In this case, the signal is set to the "0" level (back level) when it is on the white level side than the predetermined threshold level, and the binary signal Sb is set to the "1" level (black level) when it is on the black level side than the threshold level. Is supplied to the frame memory 32.

이 프레임 메모리(32)는, 신호 Sb의 1프레임 몫을, 512화소×512화소의 분해능으로 기억하는 것이며, 메모리(32)로의 신호 Sb의 로드는, DMA 제어기(33)에 의해 신호 Sb의 수평 및 수직동기에 동기하여 DMA 전송에 의해 행해진다.The frame memory 32 stores one frame share of the signal Sb at a resolution of 512 pixels x 512 pixels, and the load of the signal Sb into the memory 32 is horizontally performed by the DMA controller 33. And DMA transfer in synchronization with vertical synchronization.

또한, (34)는 문자 메모리, (35)는 문자 제너레이터를 도시하고, 메모리(34)는, 말하자면 V-RAM의 구성으로 되어, 이 메모리(34)에 문자 제너레이터(35)의 문자 코드가 로드됨으로써, 모니터 화면에 대응하는 문자, 숫자, 기호가 표시되는 것이다. 또다시, (36)은 커서 및 윈도우로서 표시되는 신호를 형성하는 제너레이터, (37)은 CRT 제어기를 도시하고, 이 제어기(37)에 의해 회로(32), (34) 내지 (36)가 제어됨과 동시에 그들의 출력신호가 합성되어서 모니터 디스플레이(42)에 공급되어, 소정의 표시가 행해진다.In addition, reference numeral 34 denotes a character memory, and reference numeral 35 denotes a character generator, and the memory 34 has a configuration of a V-RAM, that is, a character code of the character generator 35 is loaded into the memory 34. Thus, letters, numbers, and symbols corresponding to the monitor screen are displayed. Again, 36 is a generator which forms a signal displayed as a cursor and a window, 37 shows a CRT controller, which is controlled by circuits 32, 34 to 36 by this controller 37. At the same time, their output signals are synthesized and supplied to the monitor display 42 to perform a predetermined display.

또한, 제5도 내지 제14도는, 모니터 디스플레이(42)에 표시된 화상이며, 이것은 백색 및 흑색으로 2치화되어 있다.5 to 14 are images displayed on the monitor display 42, which are binarized into white and black.

그리고, 이 장치를 동작시키면, 플로피 디스크(29)에 세이브되어 있는 프로그램(100), (200)이 제2도에 도시하는 바와 같이 RAM(13)에 로드되어서 코맨드 대기로 된다.When the device is operated, the programs 100 and 200 stored in the floppy disk 29 are loaded into the RAM 13 as shown in FIG. 2, and the command waits.

거기에서, 키보드(22)에서 티칭모드를 지시하면, 프로그램(100)이 실행되어서 티칭이 행해진다.When the teaching mode is instructed by the keyboard 22, the program 100 is executed to teach.

즉, 프로그램(100)이 스타트하면, 스텝(101)에 있어서, 식별의 기준이 되는 마스터 부품의 화상이 카메라(41)에 의해 촬상되어, 이때의 신호 Sb의 1프레임이 메모리(32)에 DMA에 의해 기입된다. 또한, 이 기입된 신호 Sb가, CRT 제어기(37)에 의해 독출되어서 디스플레이(42)에 공급되어, 제5도에 도시하는 바와 같이 기준이 되는 마스터 패턴이 디스플레이 화면에 표시된다.That is, when the program 100 starts, in step 101, an image of the master component, which is the reference for identification, is picked up by the camera 41, and one frame of the signal Sb at this time is stored in the memory 32 by the DMA. Is written by. The written signal Sb is read out by the CRT controller 37 and supplied to the display 42, so that a reference master pattern is displayed on the display screen as shown in FIG.

이 도면에 있어서는, 마스터 부품으로서 임의의 방향을 향해서 배치되어, 또한, 일부에 돌기부를 갖는 원형의 부품이 촬상되어, 이것이 흑색의 동일한 형상의 마스터 패턴으로서 표시되어 있는 경우이다. 또한, 이 마스터 부품(마스터 패턴)의 수는 몇 개이든 좋으나, 이 도면에 있어서는 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 step 102, and in this step 102, when there are a plurality of master patterns, one of them is selected by the user's instruction.

다음에, 스텝(103)에 있어서, 스텝(102)에서 선택된 마스터 패턴의 중심이 계산되어, 제너레이터(35), (36)의 신호가 디스플레이(42)에 공급되어서 디스플레이 화면에는 제6도에 도시하는 바와 같이, 스텝(103)으로 산출한 중심위치에, 이 중심위치를 도시하는 중심마크 및 마스터 패턴 번호가 「+1」과 같이 표시된다.Next, in step 103, the center of the master pattern selected in step 102 is calculated, and the signals of generators 35 and 36 are supplied to the display 42, as shown in FIG. As described above, the center mark and the master pattern number showing the center position are displayed in the center position calculated in step 103 as "+1".

다음으로, 처리는 스텝(104)으로 진행하고, 이 스텝(104)에 있어서 판정점의 설정처리가 행해진다. 즉, 제너레이터(35), (36)의 신호에 의해 디스플레이 화면에는 제7도에 도시하는 바와 같이 X자형의 커서 및 판정점 번호가 표시됨과 함께, 그 표시위치는 죠이스틱(23)의 조작에 따라서 임의로 변경되어서 판정점이 설정된다.Next, the process proceeds to step 104, in which the determination point setting process is performed. That is, an X-shaped cursor and a determination point number are displayed on the display screen by the signals of the generators 35 and 36, and the display position is changed in accordance with the operation of the joystick 23. As shown in FIG. It is changed arbitrarily and a decision point is set.

이 경우, 판정점은, 중심을 기준으로 하여, 방향성을 인식하는데 의의가 있는 점에 설정된다. 이로 인하여 이 도면에 있어서는 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 step 105, as shown in FIG. 8, a straight line connecting the center "X1" and the first determination point "X1" set in step 104 is the master pattern ( It is set to the direction line (reference line) which shows the direction of the master component, and this direction line is displayed.

단, 실제로는, 스텝(104)에서 판정점「X1」을 설정할 때, 중심「+1」과, 판정점「X1」을 연결하는 직선이, 이 마스터 패턴의 방향을 도시하는 방향선으로 되도록, 판정점「+1」을 설정하고 있는 것이다.In practice, however, when setting the determination point "X1" in step 104, the straight line connecting the center "+1" and the determination point "X1" becomes a direction line which shows the direction of this master pattern, The determination point "+1" is set.

이어서, 처리는 스텝(106)으로 나아가, 이 스텝(106)에 있어서, 스텝(104)에 있어서 설정한 판정점「X1」내지「X3」의 흑백정보가 계산 및 판정되어, 그 판정 결과가 제9도에 도시하는 바와 같이 표시된다.Subsequently, the process proceeds to step 106, and in this step 106, the black and white information of the determination points " X1 " to " X3 " set in step 104 is calculated and determined, and the determination result is determined. It is displayed as shown in 9 degrees.

즉, 이 도면에 있어서, 좌상의 숫자가 그 판정 결과를 도시하는 것으로 제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 step 106 is correct is displayed on the display 42, and the question is asked. When an error is inputted by the keyboard 22, the process returns to step 104, the resetting of the determination points " X1 " to " X3 " and subsequent processing are repeated, and when the input is correct, the processing is stepped. Proceed to 108.

그리고, 이 스텝(108)에 있어서, 마스터 패턴의 중심을 기준점으로 하는 판정점「X1」내지「X3」의 상대적인 극좌표의 데이터, 즉, 중심을 원점으로 함과 동시에, 이 원점을 지나는 수평축(수평우방향)을 기준축으로 하는 극좌표가 설정되어, 이 극좌표에 있어서 판정점「X1」내지「X3」의 거리 및 각도의 데이터가 RAM(13)에 위치데이터로서 등록되어, 다음에 스텝(109)에 있어서, 스텝(106)에 있어서의 판정결과(흑백정보)가 마스터 데이터로서 RAM(13)에 등록되어, 프로그램(100)을 종료한다.In step 108, the data of the relative polar coordinates of the determination points " X1 " to " X3 " which is the reference point as the center of the master pattern, that is, the center is the origin, and the horizontal axis passing through this origin (horizontal Polar coordinates with the reference axis as the reference axis is set, and data of the distances and angles of the determination points " X1 " to " X3 " are registered as position data in the RAM 13 in this polar coordinate. In step 106, the determination result (black and white information) in step 106 is registered in the RAM 13 as master data, and the program 100 ends.

이상으로 의해 마스터 패턴의 티칭을 종료하여, 장치는 또다시 코맨드 대기로 된다.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 program 200 is executed to recognize the orientation of the target component.

즉, 프로그램(200)이 스타트하면, 스텝(201)에 있어서 방향성의 인식의 대상이 되는 부품에 대한 2치신호 Sb의 1프레임이 DMA에 의해 메모리(32)에 기입이 된다. 또한, 이 기입된 신호 Sb가, CRT 제어기(37)에 의해 독출이 되어서 디스플레이(42)에 공급되어, 제5도와 같이, 대상이 되는 부품의 패턴이 디스플레이 화면에 표시된다.That is, when the program 200 starts, in step 201, one frame of the binary signal Sb for the component that is the object of directional recognition is written to the memory 32 by DMA. The written signal Sb is read out by the CRT controller 37 and supplied to the display 42, and the pattern of the target component is displayed on the display screen as shown in FIG.

이어서, 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 generator 36, and the display position of the joystick 23 is changed. It changes arbitrarily according to an operation, and the range used as recognition object in the display screen is set. In this case, some patterns may be displayed within this recognition range.

다음으로, 스텝(203)에 있어서, 스텝(202)으로 설정된 윈도우내의 1개의 대상패턴이 선택되어, 스텝(204)에 있어서, 스텝(203)에서 선택된 대상패턴의 중심이 계산되어, 또다시, 스텝(205)에 있어서 그 대상패턴에 대해서, 중심을 기준점으로 하여 상대좌표가 설정되어, 즉, 중심을 원점으로 하여, 이 원점을 통하는 수평축을 기준축으로 하는 극좌표가 설정된다.Next, in step 203, one target pattern in the window set in step 202 is selected, and in step 204, the center of the target pattern selected in step 203 is calculated, again, In step 205, relative coordinates are set for the target pattern with the center as the reference point, that is, the polar coordinates with the horizontal axis through this origin as the reference axis, with the center as the origin.

그래서, 이어서 스텝(206)에 있어서, 스텝(108)에 의해 RAM(13)에 등록되어 있던 위치데이터가 독출되어, 이 위치데이터가 스텝(205)에서 설정된 좌표계에 적용되어서 판정점「X1」내지「X3」의 절대좌표가 계산되어, 이어서 스텝(207)에 있어서, 스텝(206)에서 구한 판정점 「X1」내지 「X3」에 대해서 그 흑백정보, 즉, 대상 데이터가 메모리(32)의 신호 Sb에서 계산된다.Then, in step 206, the position data registered in the RAM 13 is read out in step 108, and the position data is applied to the coordinate system set in step 205 to determine the decision point "X1" to The absolute coordinate of "X3" is calculated, and then, in step 207, the black-and-white information, that is, the target data is the signal of the memory 32 for the determination points "X1" to "X3" obtained in step 206. Calculated at Sb.

그리고, 스텝(208)에 있어서, 스텝(207)으로 산출한 대상 데이터가 RAM(13)에 등록되어 있는 마스터 데이터와 비교되어, 마스터 데이터와 일치되었을 때에는, 처리는 스텝(209)으로 진행, 이 스텝(209)에 있어서 중심에서 판정점「X1」을 보았을 때의 각도(기준축에 대한 각도)가 계산되어, 이 각도가 해당하는 부품의 방향을 인식한 결과로서 제10도에 도시하는 바와 같이 디스플레이 화면에 표시된다.In step 208, when the target data calculated in step 207 is compared with the master data registered in the RAM 13, and the master data matches the master data, the process proceeds to step 209. In step 209, the angle (angle with respect to the reference axis) when the determination point "X1" is viewed from the center is calculated, and as shown in FIG. 10 as a result of recognizing the direction of the component to which this angle corresponds. Is displayed on the display screen.

제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 step 210, whether or not recognition has been performed for all of the target patterns, and if it is performed for all (figure 10), the program 200 is terminated and not performed for all. At that time, the next target pattern is selected in step 211, and the process returns to step 204.

또한, 스텝(208)에 있어서, 대상 데이터가 마스터 데이터와 일치하지 아니할때에는, 처리는 스텝(221)으로 나아가, 이 스텝(221)에 있어서, 대상패턴에 대한 극좌표의 기준축이 360°를 초과하지 아니하였는가 어떤가 첵크되어, 초과하지 아니한때에는, 처리는 스텝(222)으로 진행, 이 스텝(222)에 있어서, 대상패턴에 대한 극좌표의 기준축이, 원점(중심)을 중심으로 소정의 각도 α°만큼 회전되어(따라서, 판정점「X1」내지「X3」이 상대적으로 -α°만큼 회전된 것으로 된다), 이어서 처리는 스텝(206)으로 되돌아간다.In step 208, when the target data does not coincide with the master data, the process proceeds to step 221, and in this step 221, the reference axis of the polar coordinate with respect to the target pattern exceeds 360 °. If it is checked or not exceeded, the process proceeds to step 222, in which the reference axis of the polar coordinate with respect to the target pattern is a predetermined angle α around the origin (center). It is rotated by degrees (thus, the judgment points " X1 " to " X3 " are rotated relatively by -α degrees), and then the process returns to step 206.

따라서, 대상 데이터와 마스터 데이터가 일치할때까지, 스텝(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 step 209, the angle of the determination point "X1" with respect to the reference axis at that time, that is, the angle of the target component is displayed.

또한, 스텝(221)에 있어서, 기준축의 각도가 360°를 초과하였을 때에는, 스텝(231)에 의해 대상 데이터가 마스터 패턴과 일치하지 아니하였음이 디스플레이(42)에 표시되어서부터 스텝(210)으로 진행한다.In step 221, when the angle of the reference axis exceeds 360 °, the display 42 indicates that the target data did not coincide with the master pattern by step 231, and then proceeds to step 210. FIG. Proceed.

이와같이하여, 대상이 되는 부품의 방향성이 인식 혹은 식별된다.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 steps 103 and 204.

다음으로, 판정점에 대한 흑색, 백색의 판정법에 대해서 설명을 하자.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 binarization circuit 31, the threshold level may be arbitrarily set by the user.

또다시, 마스터 데이터는, 다음회의 판정에 구비하여 플롭피 디스크(29)의 쎄이브하여 두어도 좋고, 혹은 대상 데이터를 디스크(29)에 쎄이브하여 두고, 이것을 통계처리함으로써 문제점을 찾는 데이터등으로 하여 사용할 수도 있다. 또한, 죠이스틱(23) 대신에 키보드(22)의 커서키나 마우스등도 사용할 수 있다.Again, the master data may be saved in the floppy disk 29 in the next determination, or the target data may be saved on the disk 29, and the data may be statistically processed to find a problem. It can also be used. In addition, instead of the joystick 23, the cursor keys, the mouse, etc. of the keyboard 22 can also be used.

본 발명에 의하면, 중심을 중심으로 하여 상대좌표를 회전시켜가는 방식이므로, 종래의 타원근사에 의한 관성주축 계산방식에서는 계산이 아니되는 방향성을 인식할 수 있고, 미묘한 방향성도 인식이 된다. 또한, 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)

방향성의 식별의 기준이 되는 마스터 패턴 및 방향성의 식별의 대상이 되는 대상패턴의 비디오 신호를 2치화 신호로 변환하는 2치화 회로와, 상기 2치신호를 기억하는 프레임 메모리와, 상기 마스터 패턴에 대해서 상대좌표의 원점 및 기준축을 설정하는 수단과, 상기 마스터 패턴의 화상을 표시하고 있는 화면위의 임의의 위치에, 커서를 설정하는 설정수단과, 상기 마스터 패턴의 2치신호중, 상기 설정수단에 의해 설정된 커서위치에 대응하는 신호로부터, 그 커서위치의 흑백정보를 마스터 데이터로 하여 등록하는 수단과, 상기 대상패턴에 대해서 상대좌표의 원점 및 기준축을 설정하는 수단과, 상기 대상패턴의 2치신호중, 상기 커서 위치에 대응하는 신호로부터, 그 커서위치의 흑백정보를 대상 데이터로 하여 인출하는 수단과, 이 대상 데이터와, 상기 마스터 데이터를 비교하는 비교수단과, 이 비교수단의 비교출력에 의거하여 상기 식별의 대상이 되는 대상패턴의 방향성을 출력하도록 한 것을 특징으로 하는 2치 화상처리에 의한 방향성 식별장치.A binarization circuit for converting a video signal of a master pattern as a reference for directional identification and a target pattern as a target for directional identification to a binary signal, a frame memory for storing the binary signal, and the master pattern Means for setting the origin and reference axis of the relative coordinates, setting means for setting the cursor at an arbitrary position on the screen displaying the image of the master pattern, and the setting means among the binary signals of the master pattern. Means for registering black and white information of the cursor position as master data from a signal corresponding to the set cursor position, means for setting the origin and reference axis of relative coordinates for the target pattern, and binary signals of the target pattern, Means for withdrawing black and white information of the cursor position as the target data from the signal corresponding to the cursor position, the target data, and the image; Direction identification device according to the comparison means for comparing the master data and a comparison output binary image processing, it characterized in that the direction of the target so as to output a pattern that is the subject of the identification on the basis of this comparison means.
KR1019880009050A 1987-08-14 1988-07-20 Directionally characteristic recognition system by binary image KR960001753B1 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

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