Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP3529640B2 - Image data recognition method and apparatus - Google Patents
[go: Go Back, main page]

JP3529640B2 - Image data recognition method and apparatus - Google Patents

Image data recognition method and apparatus

Info

Publication number
JP3529640B2
JP3529640B2 JP26323998A JP26323998A JP3529640B2 JP 3529640 B2 JP3529640 B2 JP 3529640B2 JP 26323998 A JP26323998 A JP 26323998A JP 26323998 A JP26323998 A JP 26323998A JP 3529640 B2 JP3529640 B2 JP 3529640B2
Authority
JP
Japan
Prior art keywords
image data
width
thinning
start position
new
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 - Fee Related
Application number
JP26323998A
Other languages
Japanese (ja)
Other versions
JP2000099724A (en
Inventor
正雄 長本
靖司 水岡
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.)
Panasonic Corp
Panasonic Holdings Corp
Original Assignee
Panasonic Corp
Matsushita Electric Industrial Co 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 Panasonic Corp, Matsushita Electric Industrial Co Ltd filed Critical Panasonic Corp
Priority to JP26323998A priority Critical patent/JP3529640B2/en
Publication of JP2000099724A publication Critical patent/JP2000099724A/en
Application granted granted Critical
Publication of JP3529640B2 publication Critical patent/JP3529640B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)
  • Image Processing (AREA)
  • Supply And Installment Of Electrical Components (AREA)

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、電子機器に使用さ
れる電子部品実装基板の製造に関し、特に、実装される
対象物の形状や設置位置を認識処理する撮像手段の画像
データ認識方法及びその装置に関するものである。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to the manufacture of electronic component mounting boards used in electronic equipment, and more particularly, to an image data recognizing method of an image pickup means for recognizing the shape and installation position of an object to be mounted and its method. It relates to the device.

【0002】[0002]

【従来の技術】従来の画像データ認識方法について、画
像データを格子状に間引いて検出する方法の原理を示す
図8に基づいて説明する。図8において、1は画像デー
タの認識範囲の窓枠、2は画像データより対象物4を認
識するために検出する各点3の開始位置である開始点、
4′は他の対象物である。この方法の特徴は、窓枠1内
の画像データに対し全画素を検出するのではなく、開始
点2から任意の画素数を間引き幅nの各点3毎に検出を
X方向,Y方向に行うことで、全画素の画像データを検
出する場合に比べ、画素を間引いて検出するために高速
に検出することができ、かつ画像処理も高速に行うこと
ができるというものである。
2. Description of the Related Art A conventional image data recognition method will be described with reference to FIG. 8 which shows the principle of a method of thinning out image data in a grid pattern and detecting it. In FIG. 8, 1 is a window frame of a recognition range of image data, 2 is a start point which is a start position of each point 3 detected for recognizing an object 4 from the image data,
4'is another object. The feature of this method is not to detect all the pixels in the image data in the window frame 1, but to detect an arbitrary number of pixels from the starting point 2 for each point 3 of the thinning width n in the X and Y directions. By doing so, as compared with the case of detecting the image data of all the pixels, it is possible to detect the pixels by thinning them out, so that the detection can be performed at high speed, and the image processing can be performed at high speed.

【0003】[0003]

【発明が解決しようとする課題】しかしながら、このよ
うな従来の画像データ認識方法は、認識されるパターン
においては、図8に示す対象物4′のように、対象物の
サイズが小さくなるに従って画像データを検出する各点
3の間引き幅nも細かくしなければならず、その結果と
して検出数が増えるため検出する時間も長くなるという
問題があった。
However, according to such a conventional image data recognition method, in the recognized pattern, as the size of the object becomes smaller, as in the object 4'shown in FIG. There has been a problem that the thinning width n of each point 3 for detecting data has to be made fine, and as a result, the number of detections increases and the detection time also increases.

【0004】本発明は、前記従来技術の問題を解決する
ことに指向するものであり、対象物の形状が小さく認識
されるパターンが細かくなっても、その対象となるパタ
ーンに対応して、検出位置をずらすことによってその検
出数を最小限に抑えて高速に行い、かつ高い信頼性を有
する画像データ認識方法及びその装置を提供することを
目的とする。
The present invention is directed to solving the above-mentioned problems of the prior art, and even if a pattern in which the shape of an object is recognized small is fine, it is detected in correspondence with the target pattern. It is an object of the present invention to provide an image data recognition method and a device therefor, which are performed at high speed by minimizing the number of detections by shifting the position and have high reliability.

【0005】[0005]

【課題を解決するための手段】この目的を達成するため
に、本発明に係る画像データ認識方法および画像データ
認識装置は、形状やその位置を認識するために対象物の
映像信号を取り込む撮像手段と、映像信号を変換,蓄積
した画像データを間引いて検出処理する認識手段とを備
え、対象物の形状や設置方向に応じて画像データの間引
き幅や開始位置を設定することを特徴とする。
In order to achieve this object, an image data recognizing method and an image data recognizing apparatus according to the present invention include an image pickup means for taking in a video signal of an object for recognizing a shape and its position. And a recognition means for converting the video signal and thinning out the accumulated image data for detection processing, and setting the thinning width and the starting position of the image data according to the shape and the installation direction of the object.

【0006】また、画像データ認識装置は、画像データ
に対して認識する窓枠を設定し、対象物の形状や設置方
向に応じて画像データの間引き幅nを設定する手段と、
窓枠内で開始位置より一方向に間引き幅nの間隔で画像
データを順次検出するデータ検出手段と、開始位置の一
方向に間引き幅n分の1の間隔を加算し、一方向と直交
する他方向に間引き幅nの間隔を加算し、新たな開始
位置を求める手段と、一方向の新たな開始位置と開始位
置との間隔が間引き幅nとなるまで、新たな開始位置を
求める手段と新たな開始位置からデータ検出手段による
処理を繰り返し、新たな開始位置と開始位置との間隔が
間引き幅nのときに一方向が前記開始位置で、他方向に
間引き幅nの間隔を加算した新たな開始位置とする手段
と、その手段による処理を他方向に窓枠外まで繰り返す
手段とを備えることを特徴とする。
Further, the image data recognizing device sets a window frame for recognizing the image data, and sets a thinning width n of the image data in accordance with the shape and installation direction of the object,
Data detection means for sequentially detecting image data at intervals of a thinning width n in one direction from the start position within the window frame, and an interval of 1 / n thinning width n in the one direction of the start position are added , and are orthogonal to the one direction. by adding the distance between the decimation width n in the other direction, means for determining a new starting position, until the distance between the starting position and a new starting position in one direction the decimation width n, means for determining a new starting position Just repeat processing by the data detector from a new starting position and, the distance between the starting position and a new starting position
When the thinning width is n, one direction is the start position and the other direction is
It is characterized by comprising means for setting a new start position obtained by adding the intervals of the thinning width n, and means for repeating the processing by the means to the outside of the window frame in the other direction.

【0007】また、前記画像データの間引き幅nを設定
する手段に、対象物の形状や設置方向に応じて一方向,
他方向のどちらに対して細かく検出処理するか判定を行
う手段を備えたことを特徴とする。
Further, the means for setting the thinning width n of the image data is provided with one direction depending on the shape and installation direction of the object.
It is characterized in that it is provided with means for making a determination as to which of the other directions the detection processing is to be performed in detail.

【0008】また、前記画像データの間引き幅nを設定
する手段に、画像データを認識する窓枠を複数の領域に
分割し、分割した領域毎に対象物の形状や設置方向に応
じて一方向,他方向のどちらに対して細かく検出処理す
るか判定を行う手段を備えるように構成したものであ
る。
In the means for setting the thinning width n of the image data, a window frame for recognizing the image data is divided into a plurality of areas, and each divided area is unidirectional depending on the shape and installation direction of the object. , And a means for making a determination as to which of the other directions the detection processing is to be performed in detail.

【0009】前記のように構成される装置の画像データ
認識方法によれば、形状やその位置を認識するために対
象物の映像信号を取り込み、映像信号を変換,蓄積した
画像データを間引いて検出する処理において、対象物の
形状や設置方向に応じて画像データの間引き幅や開始位
置を設定するために、画像データに対して認識する窓枠
の設定と、対象物の形状や設置方向に応じて画像データ
の間引き幅nを設定して、窓枠内で開始位置より一方向
に間引き幅nの間隔で画像データを順次検出する処理
と、開始位置の一方向に間引き幅n分の1の間隔を加算
、一方向と直交する他方向に間引き幅nの間隔を加算
、新たな開始位置を求める処理によって、その新た
な開始位置から一方向に間引き幅nの間隔でデータ検出
することを新たな開始位置と開始位置との間隔が間引き
幅nとなるまで繰り返し、新たな開始位置と開始位置と
の間隔が間引き幅nのときに一方向が前記開始位置で、
他方向が間引き幅nの間隔を加算した新たな開始位置よ
行い、さらに窓枠外まで他方向に繰り返すことで、対
象物の形状が細かくなっても間引いた検出位置をずらす
ことで検出数増やすことなく認識できる。
According to the image data recognition method of the apparatus configured as described above, a video signal of an object is taken in order to recognize the shape and its position, the video signal is converted, and the accumulated image data is thinned out and detected. In the processing, in order to set the thinning width and the start position of the image data according to the shape and installation direction of the object, the window frame that is recognized for the image data is set Setting the thinning width n of the image data to sequentially detect the image data in the window frame in one direction at intervals of the thinning width n; Add interval
And, by adding the distance between the decimation width n in the other direction orthogonal to the one direction, the process of obtaining a new starting position, to the data detected at intervals of the decimating from a new starting position in one direction width n new Repeatedly until the interval between the different start positions becomes the thinning width n, and new start positions and start positions are obtained.
When the interval is a thinning width n, one direction is the start position,
The other direction is a new start position that is the sum of the intervals of the thinning width n.
Ri conducted further to the window outside the frame is repeated in the other direction, it can be recognized without increasing the number of detections by shifting a detection position at which the shape is thinned even become finer object.

【0010】また、前記画像データの間引き幅nを設定
する工程において、対象物の形状や設置方向に応じて一
方向,他方向のどちらに対して細かく検出処理するか判
定を行うことで、対象物に合わせた検出処理を選択でき
る。
Further, in the step of setting the thinning width n of the image data, the object is determined by finely detecting one direction or the other direction according to the shape and installation direction of the object. The detection process can be selected according to the object.

【0011】また、前記画像データの間引き幅nを設定
する工程において、画像データを認識する窓枠を複数の
領域に分割し、分割した領域毎に対象物の形状や設置方
向に応じて一方向,他方向のどちらに対して細かく検出
処理するか判定を行うことで、窓枠内の対象物に合わせ
領域を分割し、その領域内の対象物に合わせた検出処理
を選択できる。
In the step of setting the thinning width n of the image data, the window frame for recognizing the image data is divided into a plurality of areas, and each divided area is unidirectional depending on the shape and installation direction of the object. By determining which of the other directions the detection processing is to be performed finely, the matching area is divided into the objects in the window frame, and the detection processing matched to the objects in the area can be selected.

【0012】[0012]

【発明の実施の形態】以下、図面を参照して本発明にお
ける実施の形態を詳細に説明する。図1は本発明の実施
の形態における画像データ認識装置の構成を示す概略図
である。図1において、4は認識される対象物、5は対
象物4を照明する照明手段、6は対象物4を撮影し映像
信号を出力するカメラ、7はカメラ6からの映像信号を
デジタル化して画像データに変換するA/D変換部、8
は画像データを格納する画像メモリ部、9は蓄積された
画像データから対象物4を認識するための画像データを
検出する画像データ検出部、10はA/D変換部7,画
像メモリ部8および画像データ検出部9を制御する制御
部である。
BEST MODE FOR CARRYING OUT THE INVENTION Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a schematic diagram showing a configuration of an image data recognition device according to an embodiment of the present invention. In FIG. 1, 4 is an object to be recognized, 5 is an illuminating means for illuminating the object 4, 6 is a camera that shoots the object 4 and outputs a video signal, and 7 is a digital signal of the video signal from the camera 6. A / D converter for converting to image data, 8
Is an image memory unit for storing image data, 9 is an image data detection unit for detecting image data for recognizing the object 4 from the accumulated image data, 10 is an A / D conversion unit 7, an image memory unit 8 and The control unit controls the image data detection unit 9.

【0013】図1に示す画像データ認識装置は、対象物
4を撮影し映像信号を取得する照明手段5とカメラ6か
らなる撮像手段と、A/D変換部7,画像メモリ部8,
画像データ検出部9,制御部10からなる認識手段によ
り、取得した映像信号を変換した画像データから対象物
4の対象となるパターンを検出するものである。
The image data recognition apparatus shown in FIG. 1 includes an image pickup means composed of an illumination means 5 for photographing an object 4 and obtaining a video signal, a camera 6, an A / D conversion section 7, an image memory section 8,
The recognition means composed of the image data detection unit 9 and the control unit 10 detects the target pattern of the target object 4 from the image data obtained by converting the acquired video signal.

【0014】(実施の形態1)図2は本発明の実施の形
態1における画像データ認識方法の動作を示すフローチ
ャートである。また、図3は本実施の形態1における画
像データ認識方法の原理を説明する図で、1は対象物4
のパターンを認識する範囲の窓枠、2は窓枠1内の対象
のパターンを検出する開始位置となる開始点、3は対象
パターンを検出するため間引きされた各点、4は対象
物、4′は他の対象物である。
(First Embodiment) FIG. 2 is a flow chart showing the operation of the image data recognition method according to the first embodiment of the present invention. Further, FIG. 3 is a diagram for explaining the principle of the image data recognition method according to the first embodiment, and 1 is an object 4
In the range in which the pattern is recognized, 2 is a start point at which the target pattern in the window frame 1 is detected, 3 is each point thinned out to detect the target pattern, 4 is the object, 4 ′ Is another object.

【0015】次に、本実施の形態1の動作を図2のフロ
ーチャートに基づいて図3を参照しながら説明する。ま
ず、窓枠1内の対象物のパターンを検出するため、開始
点2と、一方向としてX方向,他方向としてY方向への
パターン検出する各点3の間引き幅nを設定する。この
とき、窓枠1内にある対象物4,4′のX方向,Y方向
に対するパターンの幅平均より間引き幅nを決定する
(S1)。さらに、対象物のX方向のパターン幅の最小
値とY方向のパターン幅の最小値を比較し、パターン幅
の最小値の小さい方向を間引き幅nで検出する各点3の
新たな開始点2′として、それをずらす方向と幅(先に
求めた間引き幅n分の1)を設定する(S2)。
Next, the operation of the first embodiment will be described based on the flowchart of FIG. 2 with reference to FIG. First, in order to detect the pattern of the object in the window frame 1, the starting point 2 and the thinning width n of each point 3 for detecting the pattern in the X direction as one direction and the Y direction as the other direction are set. At this time, the thinning width n is determined from the average width of the patterns of the objects 4, 4'in the window frame 1 in the X and Y directions (S1). Further, a new starting point 2 of each point 3 for comparing the minimum value of the pattern width in the X direction of the object and the minimum value of the pattern width in the Y direction and detecting the direction having the smallest minimum pattern width with the thinning width n As ′, the direction and width (1 / nth of the thinning width obtained earlier) for shifting it are set (S2).

【0016】画像データの検出において、例えば、X方
向のパターン幅の最小値がY方向より小さいとき、開始
点2から検出する各点3は、間引き幅nの間隔でX方向
の列に対し窓枠1を超えるまで検出処理を行う(S
3)。次に、この画像データの検出において、新たな開
始位置と開始位置との間隔が間引き幅となるm列目の
検出が行われたか否かを確認する(S4)。この処理S
4において、1列目の検出であれば、次の2列目は開始
点をX方向に1/n、Y方向にn移動した点3を第2の
開始点2′として開始位置をずらし(S5)、処理S3
を行う。
In the detection of image data, for example, when the minimum value of the pattern width in the X direction is smaller than the Y direction, each point 3 detected from the start point 2 is windowed to the column in the X direction at intervals of the thinning width n. The detection process is performed until the frame 1 is exceeded (S
3). Then, in the detection of the image data, a new open
It is confirmed whether or not the m-th row in which the interval between the start positions is the thinning width n is detected (S4). This process S
4, if the first column is detected, the next second column shifts the starting position with the starting point moved by 1 / n in the X direction and n in the Y direction as the second starting point 2 '( S5), processing S3
I do.

【0017】処理S4において、列目のときには、Y
方向に検出する点3(新たに求めた開始点)が窓枠1よ
り外れていないか確認を行い(S6)、外れていないと
き(No)、次の列目の開始点を、X方向において前
記の1列目と同じ位置で、Y方向においてn移動した開
始点2″の位置にずらし(S7)、処理S3を行う。ま
た、処理S6において、Y方向に検出する点3が窓枠1
より外れているとき(Yes)、画像データの検出を終
了する。
In the process S4, when the m-th column is selected, Y
It is confirmed whether or not the point 3 to be detected in the direction (newly obtained start point) is out of the window frame 1 (S6), and when it is not out (No), the start point of the next m column is set in the X direction. In the same position as in the above-mentioned first column, the position is moved to the position of the starting point 2 ″ moved by n in the Y direction (S7), and the process S3 is performed. 1
When it is further deviated (Yes), the detection of the image data is ended.

【0018】このように、検出する点3の位置を対象物
4′のパターン幅の最小値を有する方向に開始点2をず
らして検出することにより、その検出する点3を増やす
ことなく、図3に示すように対象物4′を認識すること
ができる。
As described above, by detecting the position of the point 3 to be detected by shifting the starting point 2 in the direction having the minimum pattern width of the object 4 ', the number of points 3 to be detected can be increased without increasing the number of points. The object 4'can be recognized as shown in FIG.

【0019】(実施例)また、本実施の形態1における
実施例について説明する。実施の形態1の説明において
は、図2に示す処理S2により設定される開始点2をず
らす方向及び幅が実施されるのはX方向(X方向のパタ
ーン幅の最小値がY方向より小さい)としたが、ここで
はY方向の場合について、図4に示す画像データ認識方
法の原理を説明する図を参照しながら説明する。また、
図2に示すフローチャートの処理S3以降で括弧にて記
載されているものと読み代えたものである。
(Example) An example of the first embodiment will be described. In the description of the first embodiment, the direction and width for shifting the starting point 2 set by the process S2 shown in FIG. 2 are executed in the X direction (the minimum value of the pattern width in the X direction is smaller than the Y direction). However, here, the case of the Y direction will be described with reference to the diagram for explaining the principle of the image data recognition method shown in FIG. Also,
This is replaced with what is described in parentheses in and after step S3 of the flowchart shown in FIG.

【0020】本実施例は、図2のフローチャートの処理
S2までは同一であるが、画像データの検出を行う処理
S3において、開始点2から検出する各点3は、間引く
幅nの間隔でY方向の行に窓枠1を超えるまで検出処理
を行う(S3)。画像データの検出において、新たな開
始位置と開始位置との間隔が間引き幅となるm行目の
検出を行っているか否かを確認する(S4)。この処理
S4において、1行目の検出であれば、次の2行目は開
始点をY方向に1/n、X方向にn移動した点3を第2
の開始点2′として開始位置をずらし(S5)、処理S
3を行う。
This embodiment is the same up to the process S2 in the flowchart of FIG. 2, but in the process S3 for detecting image data, each point 3 detected from the start point 2 is Y with an interval of a thinning width n. The detection processing is performed until the line in the direction exceeds the window frame 1 (S3). A new development in image data detection
It is confirmed whether or not the m-th row in which the interval between the start positions is the thinning width n is detected (S4). In this processing S4, if the first line is detected, the second line moves to the second point by moving the start point 1 / n in the Y direction and n in the X direction.
The start position is shifted as the start point 2'of (S5), and the process S
Do 3.

【0021】処理S4において、行目のときには、X
方向に検出する点3が窓枠1より外れていないか確認を
行い(S6)、外れていないとき(No)、次の行目
の開始点をY方向において、前記の1行目と同じ位置
で、Y方向にn移動した開始点2″の位置にずらし(S
7)、処理S3を行う。また、処理S6において、X方
向に検出する点3が窓枠1より外れているとき(Ye
s)、画像データの検出を終了する。
In the process S4, when the m-th line, X
It is confirmed whether or not the point 3 detected in the direction is out of the window frame 1 (S6), and when it is not out (No), the start point of the next m-th line is the same as the above-mentioned first line in the Y direction. Position, shift to the position of the starting point 2 ″ moved n in the Y direction (S
7), processing S3 is performed. Further, in the process S6, when the point 3 detected in the X direction is out of the window frame 1 (Ye
s), detection of image data is ended.

【0022】ここで、より具体的な例として、図5に示
す画像データ認識方法を説明する図を用いて、間引き幅
n=2としたときの動作を説明する。窓枠1内の第1の
開始点2から間引き幅n=2の間隔でX方向の列に窓枠
1を超えるまで検出する。2列目において、X方向に1
/n(1/2),Y方向にn(2)移動した点3を第2
の開始点2′として前記と同様に検出を行う。新たな開
始位置と開始位置との間隔が間引き幅nとなる開始点
は、間引き幅n=2であることから第1の開始点2と同
じ位置の開始点2″となる。図5に示すように、検出位
が全検出を行うときに比べ、高速に検出することが可
能となる。
As a more specific example, the operation when the thinning width n = 2 will be described with reference to the diagram for explaining the image data recognition method shown in FIG. Detection is performed in a row in the X direction from the first start point 2 in the window frame 1 at intervals of a thinning width n = 2 until the window frame 1 is exceeded. In the second row, 1 in the X direction
/ N (1/2), the second point 3 moved n (2) in the Y direction
The detection is performed in the same manner as described above as the starting point 2'of. New development
Since the thinning width n = 2, the starting point at which the interval between the start position and the starting position is the thinning width n is the starting point 2 ″ at the same position as the first starting point 2. As shown in FIG. , it is possible to detect position base ratio when performing full detection, to detect at high speed.

【0023】(実施の形態2)図6は本発明の実施の形
態2における画像データ認識方法の動作を示すフローチ
ャートである。また、図7は本実施の形態2における画
像データ認識方法の原理を説明する図である。ここで、
実施の形態1を示す図3と同じ構成要件のもには同一の
符号を付してこれを示す。図7において、1は窓枠、2
は開始点、3は点、11,12,13,14は窓枠1を
分割した各分割領域である。
(Second Embodiment) FIG. 6 is a flow chart showing the operation of the image data recognition method according to the second embodiment of the present invention. FIG. 7 is a diagram for explaining the principle of the image data recognition method according to the second embodiment. here,
The same constituent elements as those in FIG. 3 showing the first embodiment are designated by the same reference numerals. In FIG. 7, 1 is a window frame, 2
Is a start point, 3 is a point, and 11, 12, 13, and 14 are divided areas obtained by dividing the window frame 1.

【0024】次に、本実施の形態2の動作を図6のフロ
ーチャートに基づいて図7を参照し説明する。まず、窓
枠1内の対象物のパターンを検出するため、対象物のパ
ターンの幅平均や最小値、及びその配置からいくつかの
領域に分割する。本実施の形態2では4つの領域11,
12,13,14に分割する(S11)。分割された1
つの領域において、例えば、領域11に開始点2とX方
向,Y方向へのパターン検出する各点3の間引き幅nを
設定する(S12)。さらに、領域11内の対象物の
X,Y方向のパターン幅の最小値を比較し小さい方に、
間引き幅nで検出する各点3の新たな開始点の位置とし
て、それをずらす方向と幅を設定する(S13)。
Next, the operation of the second embodiment will be described based on the flowchart of FIG. 6 with reference to FIG. First, in order to detect the pattern of the target object in the window frame 1, the pattern is divided into several regions based on the average width and minimum value of the pattern of the target object and the arrangement thereof. In the second embodiment, four areas 11,
It is divided into 12, 13, and 14 (S11). Divided 1
In one area, for example, the thinning width n in the area 11 is set to the starting point 2 and each point 3 for pattern detection in the X and Y directions (S12). Further, the minimum values of the pattern widths in the X and Y directions of the object in the area 11 are compared, and the smaller one is
As the position of the new start point of each point 3 detected by the thinning width n, the direction and width for shifting it are set (S13).

【0025】ここで、画像データの検出において、X方
向のパターン幅の最小値がY方向より小さいとき、開始
点2から検出する各点3は、間引き幅nの間隔でX方向
の列に対し領域11を超えるまで検出処理を行う(S1
4)。次に、この画像データの検出において、新たな開
始位置と開始位置との間隔が間引き幅となるm列目の
検出が行われたか否かを確認する(S15)。この処理
S15において、1列目の検出であれば、次の2列目は
開始点をX方向に1/n、Y方向にn移動した点3を第
2の開始点2′として開始位置をずらし(S16)、処
理S14を行う。
Here, in the detection of image data, when the minimum value of the pattern width in the X direction is smaller than that in the Y direction, each point 3 detected from the start point 2 is separated from the row in the X direction at intervals of the thinning width n. The detection process is performed until the area 11 is exceeded (S1).
4). Then, in the detection of the image data, a new open
It is confirmed whether or not the m-th row in which the interval between the start positions is the thinning width n is detected (S15). In this processing S15, if the first column is detected, the next second column has a start position which is 1 / n in the X direction and n moved in the Y direction as the second start point 2'and the start position. Shifting (S16) and processing S14 are performed.

【0026】処理S15において、列目のときには、
Y方向に検出する点が領域11より外れていないか確認
を行い(S17)、外れていないとき(No)、次の
列目の開始点を、X方向において前記の1列目(初期の
位置)と同じ位置で、Y方向においてn移動した開始点
2″の位置にずらし(S18)、処理S14を行う。
In the process S15, in the m-th column,
It is confirmed whether or not the point to be detected in the Y direction is out of the area 11 (S17), and when it is not out (No), the next m
The starting point of the column is shifted to the position of the starting point 2 ″ moved n times in the Y direction at the same position as the first column (initial position) in the X direction (S18), and the process S14 is performed.

【0027】また、処理S17において、Y方向に検出
する点3(新たに求めた開始点)が領域11より外れて
いるとき(Yes)、窓枠1内に検出する未処理の領域
があるか否か確認する(S19)。処理S19にて未処
理の領域が有るとき(Yes)、次の領域の検出処理を
行うため(S20)、処理S12を行う。処理S19に
て未処理の領域がないとき(No)、画像データの検出
を終了する。
In step S17, when the point 3 to be detected in the Y direction (newly obtained starting point) is out of the area 11 (Yes), is there an unprocessed area to be detected in the window frame 1? It is confirmed whether or not (S19). When there is an unprocessed area in the processing S19 (Yes), the processing S12 is executed to detect the next area (S20). When there is no unprocessed area in the process S19 (No), the detection of the image data ends.

【0028】本実施の形態2においても、実施の形態1
の実施例と同様に、開始点を細かくずらす方向としてX
方向とY方向を入れ替えた検出を行うことは可能であ
り、その説明は重複するためここでは省略する。
Also in the second embodiment, the first embodiment
In the same way as in the embodiment of X,
It is possible to perform the detection in which the direction and the Y direction are interchanged, and the description thereof will be duplicated and will not be repeated here.

【0029】以上のことから、窓枠1内の検出を行う分
割領域ごとに、その領域内の対象物のパターンに合わせ
て、開始点2を細かくずらす方向を設定でき、検出する
点を増やすことなくその正確な処理を行うことが可能と
なり、さらに、対象物のパターンに合った間引き幅nを
個々に設定することもでき、より高速に正確な画像デー
タを検出処理することができる。
From the above, for each divided area in the window frame 1 to be detected, the direction in which the starting point 2 is finely shifted can be set in accordance with the pattern of the object in that area, and the number of points to be detected can be increased. The precise processing can be performed without any need, and the thinning width n that matches the pattern of the object can be set individually, and the accurate image data can be detected at a higher speed.

【0030】[0030]

【発明の効果】以上説明したように、本発明によれば、
画像データを間引いて検出する場合において、対象物の
パターンの形状が細かくなっても検出数を最小限に抑え
るため、対象物に合わせて検出を行う開始点の位置を細
かくずらすことで、対象のパターンの細かさに対応し
て、高速で、かつ信頼性の高い検出処理を行うことがで
きる。また、検出する窓枠を複数の領域に分割すること
により、その対象物の配置等を加味した間引き幅や開始
点を細かくずらす方向を領域毎に選択することができ、
より効率的で信頼性の高い画像データの検出処理を行う
ことができるという効果を奏する。
As described above, according to the present invention,
When detecting thinned image data, even if the shape of the pattern of the target object becomes fine, the number of detections is minimized.Therefore, by finely shifting the position of the starting point for detection according to the target object, High-speed and highly reliable detection processing can be performed according to the fineness of the pattern. Further, by dividing the window frame to be detected into a plurality of regions, it is possible to select a direction in which the thinning width or the starting point is finely shifted in consideration of the arrangement of the target object for each region,
The present invention has an effect of enabling more efficient and highly reliable detection processing of image data.

【図面の簡単な説明】[Brief description of drawings]

【図1】本発明の実施の形態における画像データ認識装
置の構成を示す概略図
FIG. 1 is a schematic diagram showing a configuration of an image data recognition device according to an embodiment of the present invention.

【図2】本発明の実施の形態1における画像データ認識
方法の動作を示すフローチャート
FIG. 2 is a flowchart showing the operation of the image data recognition method according to the first embodiment of the present invention.

【図3】本発明の実施の形態1における画像データ認識
方法の原理を説明する図
FIG. 3 is a diagram illustrating the principle of an image data recognition method according to the first embodiment of the present invention.

【図4】本発明の実施の形態1の実施例における画像デ
ータ認識方法の原理を説明する図
FIG. 4 is a diagram illustrating the principle of the image data recognition method in the example of the first embodiment of the present invention.

【図5】本発明の実施の形態1における具体的な画像デ
ータ認識方法を説明する図
FIG. 5 is a diagram illustrating a specific image data recognition method according to the first embodiment of the present invention.

【図6】本発明の実施の形態2における画像データ認識
方法の動作を示すフローチャート
FIG. 6 is a flowchart showing the operation of the image data recognition method according to the second embodiment of the present invention.

【図7】本発明の実施の形態2における画像データ認識
方法の原理を説明する図
FIG. 7 is a diagram illustrating the principle of the image data recognition method according to the second embodiment of the present invention.

【図8】従来の画像データ認識方法の原理を説明する図FIG. 8 is a diagram illustrating the principle of a conventional image data recognition method.

【符号の説明】[Explanation of symbols]

1 窓枠 2,2′,2″ 開始点 3 点 4,4′ 対象物 5 照明手段 6 カメラ 7 A/D変換部 8 画像メモリ部 9 画像データ検出部 10 制御部 1 window frame 2,2 ', 2 "starting point 3 points 4,4 'object 5 Lighting means 6 cameras 7 A / D converter 8 Image memory section 9 Image data detector 10 Control unit

フロントページの続き (58)調査した分野(Int.Cl.7,DB名) G06T 1/00 300 G06T 3/40 H05K 13/08 Front page continuation (58) Fields surveyed (Int.Cl. 7 , DB name) G06T 1/00 300 G06T 3/40 H05K 13/08

Claims (6)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】 形状やその位置を認識するために対象物
の映像信号を取り込み、前記映像信号を変換,蓄積した
画像データを間引いて検出する処理において、前記対象
物の形状や設置方向に応じて前記画像データの間引き幅
や開始位置を設定する画像データ認識方法であって、 前記画像データに対して認識する窓枠を設定し、前記対
象物の形状や設置方向に応じて前記画像データの間引き
幅nを設定する工程と、前記窓枠内で開始位置より一方
向に前記間引き幅nの間隔で画像データを順次検出する
データ検出の工程と、前記開始位置の一方向に前記間引
き幅n分の1の間隔を加算し、前記一方向と直交する他
方向に前記間引き幅nの間隔を加算して、新たな開始位
置を求める工程と、前記一方向の新たな開始位置と前記
開始位置との間隔が間引き幅nとなるまで、前記新たな
開始位置を求める工程と前記新たな開始位置から前記デ
ータ検出の工程を繰り返し、前記新たな開始位置と前記
開始位置との間隔が間引き幅nのときに一方向が前記開
始位置で、他方向が前記間引き幅nの間隔を加算した新
たな開始位置とする工程と、該工程を他方向に前記窓枠
外まで繰り返す工程とから成る ことを特徴とする画像デ
ータ認識方法。
1. In a process of capturing a video signal of an object for recognizing a shape or its position, converting the video signal, and thinning out and storing accumulated image data, the processing is performed depending on the shape or installation direction of the object. An image data recognition method for setting a thinning width and a start position of the image data by setting a window frame for recognizing the image data,
Decimation of the image data according to the shape and installation direction of the elephant
One of the step of setting the width n and the start position in the window frame
Image data is sequentially detected at intervals of the thinning width n.
Data detection process and thinning out in one direction of the starting position
The interval of 1 / nth of the width n is added to make it orthogonal to the one direction.
The new start position is added by adding the interval of the thinning width n in the direction.
Position, and a new start position in the one direction and
Until the interval with the start position becomes the thinning width n, the new
From the step of obtaining the starting position and the new starting position,
Repeat the data detection process to
When the distance from the start position is the thinning width n
At the start position, the new direction is obtained by adding the interval of the thinning width n in the other direction.
The step of setting the shelf start position and the step in the other direction
A method of recognizing image data, which comprises the step of repeating the process to the outside .
【請求項2】記画像データの間引き幅nを設定する
工程において、対象物の形状や設置方向に応じて一方
向,他方向のどちらに対して細かく検出処理するか判定
を行うことを特徴とする請求項1記載の画像データ認識
方法。
2. A process for setting a thinning-out width n of the previous SL image data, whereas according to the shape and installation direction of the object
Judges whether to perform fine detection processing in one direction or another direction
Image data recognizing method according to claim 1, wherein the performing.
【請求項3】 前記画像データの間引き幅nを設定する
工程において、画像データを認識する窓枠を複数の領域
に分割し、分割した領域毎に対象物の形状や設置方向に
応じて一方向,他方向のどちらに対して細かく検出処理
するか判定を行うことを特徴とする請求項記載の画像
データ認識方法。
3. A window frame for recognizing image data in a plurality of areas in the step of setting a thinning width n of the image data.
2. The image data recognition according to claim 1 , wherein the image data recognition is performed by dividing each of the divided areas into one direction and the other direction and finely performing detection processing according to the shape and installation direction of the object. Method.
【請求項4】 形状やその位置を認識するために対象物
の映像信号を取り込む撮像手段と、前記映像信号を変
換,蓄積した画像データを間引いて検出処理する認識手
段とを有し、前記対象物の形状や設置方向に応じて前記
画像データの間引き幅や開始位置を設定する画像データ
認識装置であって、 前記画像データに対して認識する窓枠を設定し、前記対
象物の形状や設置方向に応じて 前記画像データの間引き
幅nを設定する手段と、前記窓枠内で開始位置より一方
向に前記間引き幅nの間隔で画像データを順次検出する
データ検出手段と、前記開始位置の一方向に前記間引き
幅n分の1の間隔を加算し、前記一方向と直交する他方
向に前記間引き幅nの間隔を加算して、新たな開始位置
を求める手段と、前記一方向の新たな開始位置と前記開
始位置との間隔が間引き幅nとなるまで、前記新たな開
始位置を求める手段と前記新たな開始位置からデータ検
出手段による処理を繰り返し、前記新たな開始位置と前
記開始位置との間隔が間引き幅nのときに一方向が前記
開始位置で、他方向に前記間引き幅nの間隔を加算した
新たな開始位置とする手段と、該手段による処理を他方
向に前記窓枠外まで繰り返す手段とを備えたことを特徴
とする画像データ認識装置
4. An object for recognizing a shape and its position
Image capturing means for capturing the video signal of
In other words, a recognizer that thins out the accumulated image data and performs detection processing.
And a step, depending on the shape and installation direction of the object
Image data to set thinning width and start position of image data
A recognition device, which sets a recognition window frame for the image data,
A means for setting the thinning width n of the image data according to the shape and installation direction of the elephant, and one of the means from the start position in the window frame.
Image data is sequentially detected at intervals of the thinning width n.
Data detection means and the thinning out in one direction of the start position
The other of which the interval of width 1 / n is added and which is orthogonal to the one direction
To the new start position.
And a new starting position in the one direction and the opening
The new opening is performed until the distance from the start position becomes the thinning width n.
A means for determining the starting position and data detection from the new starting position
The processing by the output means is repeated until the new start position and the previous position are reached.
When the distance from the start position is the thinning width n, one direction is
At the start position, the interval of the thinning width n is added in the other direction.
The means for setting a new start position and the processing by the means
Images data recognition device you characterized in that a means for repeating the direction to the window outside the frame.
【請求項5】 前記画像データの間引き幅nを設定する
手段に、対象物の形状や設置方向に応じて一方向,他方
向のどちらに対して細かく検出処理するか判定を行う手
段を備えたことを特徴とする請求項4記載の画像データ
認識装置。
5. A thinning width n of the image data is set.
Depending on the shape and installation direction of the object, one direction, the other
A method to determine which direction to perform fine detection processing
The image data recognition device according to claim 4 , further comprising a step .
【請求項6】記画像データの間引き幅nを設定する
手段に、画像データを認識する窓枠を複数の領域に分割
し、分割した領域毎に対象物の形状や設置方向に応じて
一方向,他方向のどちらに対して細かく検出処理するか
判定を行う手段を備えたことを特徴とする請求項記載
の画像データ認識装置。
6. A means for setting a thinning-out width n of the previous SL image data, the image data recognizing window frame into a plurality of areas divided
Then, according to the shape and installation direction of the object for each divided area
Whether to detect finely in one direction or in the other direction
The image data recognition device according to claim 4, further comprising means for making a determination .
JP26323998A 1998-09-17 1998-09-17 Image data recognition method and apparatus Expired - Fee Related JP3529640B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP26323998A JP3529640B2 (en) 1998-09-17 1998-09-17 Image data recognition method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP26323998A JP3529640B2 (en) 1998-09-17 1998-09-17 Image data recognition method and apparatus

Publications (2)

Publication Number Publication Date
JP2000099724A JP2000099724A (en) 2000-04-07
JP3529640B2 true JP3529640B2 (en) 2004-05-24

Family

ID=17386719

Family Applications (1)

Application Number Title Priority Date Filing Date
JP26323998A Expired - Fee Related JP3529640B2 (en) 1998-09-17 1998-09-17 Image data recognition method and apparatus

Country Status (1)

Country Link
JP (1) JP3529640B2 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100419781C (en) * 2005-10-05 2008-09-17 三菱电机株式会社 Image recognition device
JP4670664B2 (en) 2005-10-05 2011-04-13 三菱電機株式会社 Image recognition device
JP6026854B2 (en) * 2012-11-05 2016-11-16 リコーエレメックス株式会社 Image processing system and image processing method

Also Published As

Publication number Publication date
JP2000099724A (en) 2000-04-07

Similar Documents

Publication Publication Date Title
KR100792283B1 (en) Automatic tracking device and method of moving object
US4491962A (en) Method of determining an optimum threshold for obtaining binary image signal for use in a pattern recognition system
US6766054B1 (en) Segmentation of an object from a background in digital photography
JP3529640B2 (en) Image data recognition method and apparatus
JP2811909B2 (en) Image processing device
JPH07220026A (en) Image processing apparatus and method
US6445811B1 (en) Fingerprint image processing device and fingerprint image processing method
JPH08111599A (en) Positioning method and device
JP2003086919A (en) Pattern inspection equipment
JP3679958B2 (en) License plate recognition device
JPH05199443A (en) Focused position detecting device for electronic camera
JPH10283482A (en) Moving target detection device and detection method
JP2889410B2 (en) Image recognition device
JPH0674972B2 (en) Pattern defect detector
JPH06168331A (en) Patter matching method
JP2675807B2 (en) Imaging device
JP3274132B2 (en) How to create a reference pattern for visual inspection
JP2000003444A (en) Pattern matching method
JP3342171B2 (en) Component position recognition method and position recognition device
JP2818644B2 (en) Micro shape detector
JP2000276597A (en) Matching method and device
JPH0354385B2 (en)
JP3386491B2 (en) Automatic focusing method
JPH08235493A (en) Vehicle number reader
JP2948331B2 (en) Pattern recognition device

Legal Events

Date Code Title Description
A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20031204

TRDD Decision of grant or rejection written
A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

Effective date: 20040224

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20040225

R150 Certificate of patent or registration of utility model

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20080305

Year of fee payment: 4

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20090305

Year of fee payment: 5

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20100305

Year of fee payment: 6

LAPS Cancellation because of no payment of annual fees