JPS633243B2 - - Google Patents

Info

Publication number
JPS633243B2
JPS633243B2 JP53025429A JP2542978A JPS633243B2 JP S633243 B2 JPS633243 B2 JP S633243B2 JP 53025429 A JP53025429 A JP 53025429A JP 2542978 A JP2542978 A JP 2542978A JP S633243 B2 JPS633243 B2 JP S633243B2
Authority
JP
Japan
Prior art keywords
signal
pattern
binarized
frame
function
Prior art date
Legal status (The legal status 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 status listed.)
Expired
Application number
JP53025429A
Other languages
Japanese (ja)
Other versions
JPS54118859A (en
Inventor
Nobuyuki Akyama
Mitsuyoshi Koizumi
Yoshimasa Ooshima
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hitachi Ltd
Original Assignee
Hitachi Ltd
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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP2542978A priority Critical patent/JPS54118859A/en
Publication of JPS54118859A publication Critical patent/JPS54118859A/en
Publication of JPS633243B2 publication Critical patent/JPS633243B2/ja
Granted legal-status Critical Current

Links

Description

【発明の詳細な説明】 本発明は極めてコントラストの低いパターン内
の目標パターン位置を高精度で認識する装置に関
するものである。
DETAILED DESCRIPTION OF THE INVENTION The present invention relates to an apparatus for recognizing a target pattern position within a pattern with extremely low contrast with high accuracy.

テレビジヨン(以下TVと略記する)カメラで
検出されたコントラストの低いパターン信号の2
値化には、パターン信号の差分信号を用いた2値
化法が従来から使用されている。第1図は従来技
術による差分信号2値化法の説明図で、第1−a
図はコントラストの低いパターンの映像を示す
図、第1−b図はパターンの映像の電気信号を示
す図、第1−c,d図は2値化信号7を得る道程
を示す図である。第1−a図で1はTVカメラで
検出されたコントラストの低いパターンの映像で
ある。
2 of low contrast pattern signals detected by a television (hereinafter abbreviated as TV) camera
Conventionally, a binarization method using a difference signal of a pattern signal has been used for digitization. FIG. 1 is an explanatory diagram of the differential signal binarization method according to the prior art.
The figure shows an image of a pattern with low contrast, FIG. 1-b shows the electric signal of the pattern image, and FIGS. 1-c and 1-d show the process of obtaining the binarized signal 7. In Figure 1-a, 1 is an image of a pattern with low contrast detected by a TV camera.

走査線2の電気信号3は第1−b図のようにな
つており、これを2値化するのに第1−c図に示
す4のような差分信号を作り、これに閾値5,6
をかけて第1−d図に示す2値化信号7を作る方
法が知られている。信号処理回路の一例を第2−
a図に示す。第2−b図はTV信号と遅延信号を
示す図、第2−c図は2値化信号を形成する道程
を示す図、第2−d図は2値化信号を示す図、第
2−e図は2値化すべき有効領域を示す図であ
る。
The electrical signal 3 of the scanning line 2 is as shown in Figure 1-b, and in order to binarize it, a differential signal 4 as shown in Figure 1-c is created, and thresholds 5 and 6 are applied to this.
A method is known in which the binarized signal 7 shown in FIG. 1-d is generated by multiplying the An example of a signal processing circuit is shown in Part 2-
Shown in Figure a. Figure 2-b is a diagram showing a TV signal and a delayed signal, Figure 2-c is a diagram showing the process of forming a binary signal, Figure 2-d is a diagram showing a binary signal, and Figure 2-c is a diagram showing the process of forming a binary signal. Figure e is a diagram showing an effective area to be binarized.

第2−a図においてTV信号8は増幅器9で増
幅された後遅延線10で一定時間遅延し、増幅器
11で増幅される。TV信号8と遅延信号12と
の差は増幅器13で増幅され第2−c図に示すご
とき16のような差分信号が作られる。これに閾
値14,15をかけコンパレータ17で2値化し
た後、フリツプフロツプ19に導き、閾値14で
得られた2値化信号をセツト信号、閾値15で得
られた2値化信号をリセツト信号とすれば、第2
−a図に示すごとき20のような2値化信号が得
られる。なお第2−e図に示す18は2値化すべ
き有効領域の信号である。
In FIG. 2-a, the TV signal 8 is amplified by an amplifier 9, delayed for a certain period of time by a delay line 10, and then amplified by an amplifier 11. The difference between the TV signal 8 and the delayed signal 12 is amplified by an amplifier 13 to produce a differential signal 16 as shown in FIG. 2-c. This is multiplied by thresholds 14 and 15 and binarized by comparator 17, and then led to flip-flop 19, where the binarized signal obtained by threshold 14 is used as a set signal, and the binarized signal obtained by threshold 15 is used as a reset signal. Then, the second
A binarized signal such as 20 as shown in figure -a is obtained. Note that 18 shown in FIG. 2-e is a signal in an effective area to be binarized.

しかし本方式には次のような欠点がある。第1
−a図で走査線19のように、走査線上に25の
ような走査線と平行なパターンがあると、第1−
e図に示す電気信号20のようにパターンの境界
が不明確になり、第1−f図に示す差分信号21
の出力信号が小さくなる点が生ずる。これに閾値
22と23をかけて2値化すると、第1−g図に
示す2値化信号24のようになり、正確に2値化
の行われない部分が生じてしまう。
However, this method has the following drawbacks. 1st
- If there is a pattern parallel to the scanning line 25 on the scanning line, such as scanning line 19 in the figure 1-a,
The boundaries of the pattern become unclear as in the electrical signal 20 shown in Figure e, and the difference signal 21 shown in Figures 1-f.
A point occurs where the output signal of becomes small. When this signal is binarized by multiplying it by the threshold values 22 and 23, it becomes a binarized signal 24 shown in FIG. 1-g, and some parts are not binarized accurately.

一般に上述のような2値化法(差分信号2値化
法と呼ぶ)で得られた2値化パターン26は第3
−a図のようになり、27〜31のようなヒゲが
生ずるという欠点があつた。
Generally, the binarization pattern 26 obtained by the above-mentioned binarization method (referred to as the differential signal binarization method) is the third
The result was as shown in Figure 2-a, and there was a drawback that whiskers such as those shown in numbers 27 to 31 were generated.

次に第3−a図の2値化パターン内から目標と
する円形パターンの座標を求める従来方式を説明
する。第3−b図は求めようとする円形パターン
32であり、これを辞書パターンとしてTV画面
中をくまなく走査し、TV画面中で最もマツチン
グの良い座標位置を求める所謂パターンマツチン
グ法が使用されている。
Next, a conventional method for determining the coordinates of a target circular pattern from within the binarized pattern shown in FIG. 3-a will be described. Fig. 3-b shows the circular pattern 32 to be found, and a so-called pattern matching method is used to scan the entire TV screen using this as a dictionary pattern and find the coordinate position with the best matching on the TV screen. ing.

この従来の方式ではTV画面を例えば320×240
サンプルし、辞書パターンも64×64サンプルした
メモリを使用するため、膨大なメモリが必要とさ
れる欠点がある。
In this conventional method, the TV screen is, for example, 320 x 240.
Since it uses 64x64 sampled memory for dictionary patterns, it has the disadvantage of requiring a huge amount of memory.

本発明の目的は上記した従来技術の欠点をなく
し、低コントラストパターン信号を2値化し、2
値化信号パターンの中から目的とするパターンを
抽出し、その座標を高精度で認識する小規模パタ
ーン位置認識装置を提供することにある。
The purpose of the present invention is to eliminate the above-mentioned drawbacks of the prior art, to binarize a low contrast pattern signal, and to
An object of the present invention is to provide a small-scale pattern position recognition device that extracts a target pattern from digitized signal patterns and recognizes its coordinates with high accuracy.

上記目的を達成するため本発明は先ずTV画面
のサンプリングを粗くして粗位置認識を行う。例
えばTV画面を40×30サンプルし、辞書パターン
も8×8サンプルにすれば、パターンマツチング
回路は後述するように極めて小規模になる。この
回路により目的とするパターンの大体の位置を認
識する。次にこの粗位置を中心として、一定の大
きさの枠を設け、この枠の部分で前述した差分信
号2値化回路のフリツプフロツプをリセツトす
る。これにより第3図27〜31に示したような
ヒゲを枠の部分で消すことが出来る。
To achieve the above object, the present invention first performs coarse position recognition by coarsely sampling the TV screen. For example, if the TV screen is sampled at 40 x 30 and the dictionary pattern is also sampled at 8 x 8, the pattern matching circuit will be extremely small as will be described later. This circuit recognizes the approximate position of the target pattern. Next, a frame of a certain size is set around this coarse position, and the flip-flop of the differential signal binarization circuit described above is reset in this frame. As a result, the whiskers as shown in FIGS. 3, 27 to 31 can be erased in the frame area.

目的とするパターンの精位置はこの枠内で、パ
ターンの境界を利用して求めるものである。
The precise position of the target pattern is found within this frame using the pattern boundaries.

以下図面に基づいて本発明を詳しく説明する。
第4図は本発明の一実施例として液晶表子素子の
パターン位置合せ法を説明する図である。図に於
いて液晶表示素子を組み立てる際には、上板ガラ
ス33上の位置合せマーク35,36と、下板ガ
ラス34上の位置合せマーク37,38を正確に
位置合せして、2枚の板ガラスを貼り合せる必要
がある。39,40はマークを真上から照明する
為のランプであり、照明されたマークは対物レン
ズ41,42で拡大されTVカメラで撮像され
る。
The present invention will be explained in detail below based on the drawings.
FIG. 4 is a diagram illustrating a pattern alignment method for liquid crystal display elements as an embodiment of the present invention. In the figure, when assembling the liquid crystal display element, align the alignment marks 35 and 36 on the upper glass plate 33 and the alignment marks 37 and 38 on the lower glass plate 34 accurately, and then assemble the two glass plates. It needs to be pasted. Reference numerals 39 and 40 denote lamps for illuminating the mark from directly above, and the illuminated mark is magnified by objective lenses 41 and 42 and imaged by a TV camera.

第5−a図は液晶パターンの拡大図である。位
置合せマーク48は丸印とする。水平走査線50
によつて検出されるTV信号51を第5−b図に
示す。液晶パターンは極めて薄いネサ膜で形成さ
れる為、TVカメラで検出された時のコントラス
トは極めて低い。また液晶表示素子用板ガラスは
2枚を位置合せすることが目的であるから、予め
2枚の板ガラスを接近させておいてから、TVカ
メラでマークを検出する。そのため上側マークを
検出している時には下側パターンが、逆に下側マ
ークを検出している時には上側パターンがゴース
トとして残り、TV信号に大きなうねりが重畳さ
れる。その結果第5−b図に示すごときTV信号
51のような信号が検出される。
Figure 5-a is an enlarged view of the liquid crystal pattern. The alignment mark 48 is a circle. horizontal scanning line 50
The TV signal 51 detected by the is shown in FIG. 5-b. Since the liquid crystal pattern is formed using an extremely thin Nesa film, the contrast when detected by a TV camera is extremely low. Furthermore, since the purpose of the glass plates for liquid crystal display elements is to align the two glass plates, the marks are detected with a TV camera after the two glass plates are brought close to each other in advance. Therefore, when the upper mark is detected, the lower pattern remains as a ghost, and conversely, when the lower mark is detected, the upper pattern remains as a ghost, resulting in large undulations being superimposed on the TV signal. As a result, a signal such as a TV signal 51 as shown in FIG. 5-b is detected.

ここで位置合せマークとして円形パターンを使
用した理由は次の通りである。液晶パターンはレ
ジストを印刷で形成するが、この際円形パターン
が最も精度良く形成出来るからである。第6図に
上板ガラス又は下板ガラス上の円形パターンの粗
位置を認識するための粗パターンマツチング回路
を示す。TVカメラ52の出力は差分回路53で
差分信号が作られ、これに54で閾値をかけて2
値化した後フリツプフロツプ回路55で映像信号
を2値化する。56は2値化有効領域の設定信号
である。57はパターンマツチング回路である。
本回路は粗パターンマツチングを行うもので、
TV画面のサンプリングは40×30サンプルと粗
い。従つてシフトレジスタは40bitのシリアルイ
ン、シリアルアウトシフトレジスタを7個使用す
れば良い。またパターンマツチングには8bitシリ
アルイン、パラレルアウトシフトレジスタ8個を
使用し、辞書パターンには8×8bitメモリを使用
し、8×8シフトレジスタと8×8bitメモリとの
排他的ORをとり、出力が最小となる点を求めれ
ばパターンマツチングが完了する。このようにし
て粗位置認識が完了する。
The reason for using a circular pattern as the alignment mark here is as follows. The liquid crystal pattern is formed by printing a resist, and this is because a circular pattern can be formed with the highest accuracy. FIG. 6 shows a coarse pattern matching circuit for recognizing the coarse position of a circular pattern on the top glass or the bottom glass. A difference signal is created from the output of the TV camera 52 in a difference circuit 53, and this is multiplied by a threshold value in 54 to yield 2
After being converted into a value, the flip-flop circuit 55 converts the video signal into a binary value. 56 is a setting signal for a binarization effective area. 57 is a pattern matching circuit.
This circuit performs coarse pattern matching.
TV screen sampling is coarse at 40 x 30 samples. Therefore, it is sufficient to use seven 40-bit serial-in/serial-out shift registers. In addition, eight 8-bit serial-in, parallel-out shift registers are used for pattern matching, an 8 x 8 bit memory is used for dictionary patterns, and exclusive OR is performed between the 8 x 8 shift register and the 8 x 8 bit memory. Pattern matching is completed by finding the point where the output is minimum. In this way, rough position recognition is completed.

第7図は2値化映像65と粗パターンマツチン
グによつて求められた粗認識位置66を示してい
る。この粗認識位置66を中心として一定の大き
さの枠67を発生させて、68の位置でフリツプ
フロツプにリセツトをかける。即ち第6図のリセ
ツト信号発生回路63で、リセツト位置68の信
号に相当するリセツト信号64を発生させてフリ
ツプフロツプをリセツトすれば、第7図の68の
位置で2値化信号はすべて「0」になる。
FIG. 7 shows a binarized image 65 and a coarse recognition position 66 determined by rough pattern matching. A frame 67 of a certain size is generated around this rough recognition position 66, and the flip-flop is reset at position 68. That is, if the reset signal generating circuit 63 in FIG. 6 generates the reset signal 64 corresponding to the signal at the reset position 68 to reset the flip-flop, all the binary signals at the position 68 in FIG. 7 become "0". become.

例えば第7図の69のようなヒゲもリセツト位
置68でリセツトされるため、目的とする円形パ
ターンに影響を及ぼすことはない。第8図は第7
図中の枠67の部分を拡大した図である。同図に
おいて枠67内に於いて円形パターンの精中心位
置を求める。粗認識位置66の座標を(x1、y1
とする。また枠67の大きさをm×mサンプルと
する。始めにx方向の精中心座標の求め方を述べ
る。
For example, whiskers such as 69 in FIG. 7 are also reset at the reset position 68, so that they do not affect the intended circular pattern. Figure 8 is the 7th
This is an enlarged view of a portion of the frame 67 in the figure. In the figure, the precise center position of the circular pattern is found within the frame 67. The coordinates of the rough recognition position 66 are (x 1 , y 1 )
shall be. Further, the size of the frame 67 is assumed to be m×m samples. First, we will describe how to obtain the fine center coordinates in the x direction.

枠67に於いて、m/2サンプル目の走査線73 に着目して、これと円形パターンとの交点a、b
を求める。この時にはTV画面を精サンプル
(320×240サンプル)して求める。x方向の精中
心座標はa+b/2である。
In the frame 67, focus on the m/2 sample scanning line 73 and find the intersections a and b between this and the circular pattern.
seek. At this time, the TV screen is sampled (320 x 240 samples). The fine center coordinates in the x direction are a+b/2.

次にx座標がa+b/2サンプル目である垂直線 72に着目して、これと円形パターンとの交点
c、dを求める。y方向の精中心座標はc+d/2 である。
Next, focusing on the vertical line 72 whose x coordinate is the a+b/2nd sample, the intersection points c and d between this and the circular pattern are determined. The fine center coordinate in the y direction is c+d/2.

本方式では円形パターンの境界を用いて、円形
パターンの精中心を求めるため、水平走査線がヒ
ゲ27等に邪魔されないことが必要である。
In this method, the boundaries of the circular pattern are used to find the fine center of the circular pattern, so it is necessary that the horizontal scanning line is not obstructed by whiskers 27 or the like.

そのため68でフリツプフロツプをリセツトし
ているので、枠67の中に、外部からヒゲが侵入
して来る恐れがなく、検出に関し、高い信頼性が
確保されている。
Therefore, since the flip-flop is reset at 68, there is no fear that whiskers will enter the frame 67 from the outside, and high reliability in detection is ensured.

以上説明したごとく本発明によれば、従来自動
位置検出が困難であつた液晶表示素子のような低
コントラストパターンの位置認識が、小規模な電
気回路で高精度で行えるようになり次の効果が生
じる。
As explained above, according to the present invention, the position recognition of low-contrast patterns such as those of liquid crystal display elements, for which automatic position detection was difficult in the past, can be performed with high precision using a small-scale electric circuit, and the following effects can be achieved. arise.

(1) 粗・精切換形パターン検出方式の採用によ
り、従来のパターンマツチング回路に必要であ
つたシフトレジスタ(320bit×63本)が粗パタ
ーンマツチング用回路シフトレジスタ(40bit
×7本)と大幅に低減した。
(1) By adopting a coarse/fine switching type pattern detection method, the shift register (320 bits x 63 lines) required for conventional pattern matching circuits has been replaced with a coarse pattern matching circuit shift register (40 bits).
x7).

(2) 精位置検出にパターン境界検出方式を採用し
たことにより、±1サンプル以内の位置認識精
度が得られるようになつた。
(2) By adopting a pattern boundary detection method for precise position detection, it has become possible to obtain position recognition accuracy within ±1 sample.

(3) フリツプフロツプリセツト方式の発明により
位置認識不良が皆無になつた。
(3) With the invention of the flip-flop preset method, position recognition errors have been completely eliminated.

【図面の簡単な説明】[Brief explanation of the drawing]

第1a〜g図は従来技術による差分信号2値化
法の説明図、第2a〜e図は従来技術による差分
信号2値化回路、第3a,b図は従来技術による
差分信号2値化パターンの説明図、第4図は本発
明の一実施例としてとり上げた液晶表示素子パタ
ーン位置合せ法の説明図、第5図は位置合せパタ
ーン近傍の拡大図、第6図は本発明によるパター
ン位置認識回路の説明図、第7図はパターンの精
中心位置認識法の説明図、第8図は第7図中の枠
67の部分を拡大した図である。 8:TV信号、10:遅延線、9,11,1
3:増幅器、12:遅延信号、14,15:閾
値、16:差分信号、19:フリツプフロツプ、
20:2値化信号。
Figures 1a to 1g are explanatory diagrams of a differential signal binarization method according to the prior art, Figures 2a to e are differential signal binarization circuits according to the prior art, and Figures 3a and b are differential signal binarization patterns according to the prior art. FIG. 4 is an explanatory diagram of a liquid crystal display element pattern alignment method taken up as an embodiment of the present invention, FIG. 5 is an enlarged view of the vicinity of the alignment pattern, and FIG. 6 is a diagram showing pattern position recognition according to the present invention. FIG. 7 is an explanatory diagram of the circuit, FIG. 7 is an explanatory diagram of a method for recognizing the fine center position of a pattern, and FIG. 8 is an enlarged view of the frame 67 in FIG. 8: TV signal, 10: Delay line, 9, 11, 1
3: amplifier, 12: delayed signal, 14, 15: threshold, 16: difference signal, 19: flip-flop,
20: Binarized signal.

Claims (1)

【特許請求の範囲】[Claims] 1 被2値化パターンからTVカメラを用いて電
気信号に変換し、この電気信号の被2値化信号パ
ターンの原映像信号と、これを一定時間遅延させ
た遅延映像信号との差をとつた差分信号を作り、
該差分信号の振幅の上下に振幅の基準位置から一
定の固定閾値を設け、前記差分信号を整形し、こ
の整形信号をフリツプフロツプに入れて被2値化
信号パターンの映像信号を2値化する機能を有す
る機構と前記被2値化信号パターンの2値化信号
を用いて、粗パターンマツチングにより、被2値
化パターン中の目標パターン中心の粗位置を認識
する機能を有する機構と、上記粗中心位置を中心
として被2値化パターン中に一定の大きさの枠を
設け、該枠の前縁位置で前記差分信号2値化回路
のフリツプフロツプをリセツトする機能を有する
機構と上記枠内で被2値化パターン中の目標パタ
ーン中心の精位置を認識する機能を有する機構と
から構成することを特徴とするパターン位置認識
装置。
1 Convert the binarized pattern into an electrical signal using a TV camera, and calculate the difference between the original video signal of the binarized signal pattern of this electrical signal and a delayed video signal that is delayed by a certain period of time. Create a differential signal,
A function of setting fixed fixed threshold values above and below the amplitude of the difference signal from a reference amplitude position, shaping the difference signal, and inputting the shaped signal into a flip-flop to binarize the video signal of the signal pattern to be binarized. a mechanism having a function of recognizing the coarse position of the center of a target pattern in the pattern to be binarized by coarse pattern matching using the binarized signal of the signal pattern to be binarized; A frame of a certain size is provided in the pattern to be binarized around the center position, and a mechanism having a function of resetting the flip-flop of the differential signal binarization circuit at the leading edge position of the frame and a frame are provided within the frame. 1. A pattern position recognition device comprising: a mechanism having a function of recognizing the precise position of the center of a target pattern in a binarized pattern.
JP2542978A 1978-03-08 1978-03-08 Pattern position recognition apparatus Granted JPS54118859A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2542978A JPS54118859A (en) 1978-03-08 1978-03-08 Pattern position recognition apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2542978A JPS54118859A (en) 1978-03-08 1978-03-08 Pattern position recognition apparatus

Publications (2)

Publication Number Publication Date
JPS54118859A JPS54118859A (en) 1979-09-14
JPS633243B2 true JPS633243B2 (en) 1988-01-22

Family

ID=12165717

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2542978A Granted JPS54118859A (en) 1978-03-08 1978-03-08 Pattern position recognition apparatus

Country Status (1)

Country Link
JP (1) JPS54118859A (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS6354680A (en) * 1986-08-26 1988-03-09 Canon Inc Position detector
JP2965155B2 (en) * 1988-03-09 1999-10-18 東京エレクトロン株式会社 Positioning method
JPH0565257U (en) * 1991-07-02 1993-08-31 キューピー株式会社 Hangers for hanging products

Also Published As

Publication number Publication date
JPS54118859A (en) 1979-09-14

Similar Documents

Publication Publication Date Title
JPS6236635B2 (en)
US4209257A (en) Apparatus for detecting defects in patterns
JP3357210B2 (en) Automatic focus detection method
JPH07118440B2 (en) Electronic beam drawing device
JPH06307826A (en) Mask inspection device
JP2001519959A (en) Method and apparatus for obtaining image information of a surface structure
JPS633243B2 (en)
EP0031973A2 (en) Object measuring arrangement
JP3269170B2 (en) Electronic component position detection method
JPH0443204B2 (en)
JP3098847B2 (en) Component recognition method
CN110838135A (en) PCB bare board image registration method
JPH07151514A (en) Superposition accuracy measuring method and measuring device
JP2625429B2 (en) Image processing method
JPH061189B2 (en) Object information processing device
JP2765924B2 (en) Printing screen with mesh, automatic position detection method therefor, screen printing method and apparatus therefor
JP2512879B2 (en) Pattern detection device
JP3775787B2 (en) Automatic focus detection method and apparatus
JPH11239952A (en) Alignment detector
JPS597320A (en) Detector for amount of out of focus
JPS61122788A (en) Leading position detector of electronic parts
SU811299A1 (en) Graphic image reading-out device
RU2081439C1 (en) Method of discrimination of objects
JPS6037731A (en) Reduced projection type exposure device
JPS63147283A (en) Pattern detecting method