JPH0225704A - Detecting device for rotational position and direction of object - Google Patents

Detecting device for rotational position and direction of object

Info

Publication number
JPH0225704A
JPH0225704A JP17382988A JP17382988A JPH0225704A JP H0225704 A JPH0225704 A JP H0225704A JP 17382988 A JP17382988 A JP 17382988A JP 17382988 A JP17382988 A JP 17382988A JP H0225704 A JPH0225704 A JP H0225704A
Authority
JP
Japan
Prior art keywords
image
area
center
rotational position
projection
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.)
Granted
Application number
JP17382988A
Other languages
Japanese (ja)
Other versions
JPH0672771B2 (en
Inventor
Tatsuo Yamamura
山村 辰男
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP17382988A priority Critical patent/JPH0672771B2/en
Publication of JPH0225704A publication Critical patent/JPH0225704A/en
Publication of JPH0672771B2 publication Critical patent/JPH0672771B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

PURPOSE:To stably detect a rotational position and a direction of an object by deriving the center of an image from projection data of the image and deriving the center of gravity of the image in a limited area in which said center of the image is an origin. CONSTITUTION:An image of an object which has been brought to image pickup by a television camera 1 is converted to a binary image corresponding to a gradation level by an A/D converting part 2 and stored in an image memory 4. X and Y projection detectors 3, 3A detect projection values in the horizontal X and the vertical Y directions from the binary image and store them. A microprocessor 9 derives tip coordinates XS, YS and terminal coordinates XE, YE of the object from X and Y projection data, and calculates the center coordinate C of the object. Subsequently, with regard to a pattern P in an internal area A shown by an area generator 5, primary moments XM, YM are derived by X and Y primary moment detecting parts 6, 6A, and an area value S is derived by an area detecting part 7, and by the processor 9, the center of gravity G of P is operated from XM and YM. Next, a straight line for connecting G and C is extracted, and from its inclination theta, a rotational position or a direction of the object is detected.

Description

【発明の詳細な説明】 〔産業上の利用分計〕 この発明は、テレビカメラの如き撮像装置により対象物
を撮像し、画素毎に2値化して得られる2値化画儂を処
理してその位置、方向を検出する検出装置に関する。
[Detailed Description of the Invention] [Industrial Applications] This invention captures an image of an object using an imaging device such as a television camera, and processes the resulting binarized image by binarizing each pixel. The present invention relates to a detection device that detects its position and direction.

〔従来の技術〕[Conventional technology]

従来、対象物を撮像し、その回転位置、方向を求めるも
のとして、例えば画像の重心を求め、この重心を通る慣
性主軸として求めるものが知られている。
BACKGROUND ART Conventionally, as a method for capturing an image of an object and determining its rotational position and direction, for example, a method is known in which the center of gravity of the image is determined and the principal axis of inertia passing through this center of gravity is determined.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

しかしながら、上記方式では慣性主軸をX(水平)軸、
Y(垂直)軸に関する二次モーメント値から算出するよ
うにしているため、対象物の画像が局所的に変動すると
主軸方向が大幅に狂ってしまい、方向検出を安定に行な
うことが困難となる。
However, in the above method, the principal axis of inertia is the X (horizontal) axis,
Since the calculation is performed from the second-order moment value regarding the Y (vertical) axis, if the image of the object changes locally, the principal axis direction will be significantly deviated, making it difficult to stably detect the direction.

また、慣性主軸の演算処理が複雑になる、等の問題があ
る。
In addition, there are problems such as the calculation processing of the principal axis of inertia becoming complicated.

したがって、この発明は対象物の位置、方向を簡単な演
算で、高速かつ安定に検出することを目的とする。
Therefore, it is an object of the present invention to detect the position and direction of an object quickly and stably using simple calculations.

〔課題を解決するための手段〕[Means to solve the problem]

対象物を撮像し画素毎に2値化して得られる画像信号の
水平、垂直方向の射影値をそれぞれ検出する射影検出部
と、前記画像信号に対して所定の画像観測領域を設定す
る領域設定部と、その設定領域内で着目画像の水平、垂
直軸に関する一次モーメント値と面積値を検出するモー
メント・面積検l1thlW6と、前記射影検出部から
の出力にもとづき対象物の中心位11t−演算すると\
もに、前記モーメント・面積検出部からの出力にもとづ
き着目画像の重心位置を演算する演算処理部とを設け、
該重心位置と前記中心位置とを結ぶ直線の傾きから対象
物の回転位置、方向を検出する。
a projection detection unit that detects the horizontal and vertical projection values of an image signal obtained by imaging an object and binarizing each pixel; and an area setting unit that sets a predetermined image observation area for the image signal. , a moment/area detector l1thlW6 that detects the first-order moment value and area value regarding the horizontal and vertical axes of the image of interest within the set area, and the center position 11t of the object based on the output from the projection detector.
and an arithmetic processing unit that calculates the position of the center of gravity of the image of interest based on the output from the moment/area detection unit,
The rotational position and direction of the object are detected from the inclination of the straight line connecting the center of gravity and the center position.

〔作用〕[Effect]

画像の射影データから画像中心を求め、これを原点とす
る限定された領域内におけるWJ儂の重心を求めること
により、対象物の外形が安定している限りは内部のパタ
ーンに局所的な変動があってもその部分を避けることが
できるようにし、安定に回転位置、方向を検出できるよ
うにする。また、二次モーメントの演算が不要となるの
で、演算処理が簡単となり、高速化される。
By determining the image center from the image projection data and determining the WJ's center of gravity within a limited area with this as the origin, local fluctuations in the internal pattern can be avoided as long as the external shape of the object is stable. Even if there is a rotational position and direction, it is possible to avoid that part and stably detect the rotational position and direction. Furthermore, since the calculation of the second moment is not necessary, the calculation process becomes simpler and faster.

〔実施例〕〔Example〕

第1図はこの発明の実施例を示すブロック図、第2図は
第1図の動作を具体的に説明するための説明図である。
FIG. 1 is a block diagram showing an embodiment of the invention, and FIG. 2 is an explanatory diagram specifically explaining the operation of FIG. 1.

なお、第1図において、1はテレビカメラの如き撮像装
置、2はアナログ/ディジタル(A/D )変換部、3
,3AはX、Y射影検出部、4は画像メモリ、5はエリ
ア発生部、6゜6AはX、Y−次モーメント検出部、7
は面積検出部、8は入/出力(ilo)インタフェイス
部、9はマイクロプロセッサの如き演算処fIA部、1
゜は午−ボードである。
In FIG. 1, 1 is an imaging device such as a television camera, 2 is an analog/digital (A/D) converter, and 3 is an image pickup device such as a television camera.
, 3A is an X, Y projection detection unit, 4 is an image memory, 5 is an area generation unit, 6°6A is an X, Y-th moment detection unit, 7
8 is an input/output (ILO) interface section; 9 is an arithmetic processing fIA section such as a microprocessor; 1
゜ is the afternoon board.

以下、第1図および第2図1に参照して説明する。The following description will be made with reference to FIG. 1 and FIG. 2.

人/D変換部2はテレビカメラ1で撮像された対象物の
映偉を、その濃淡レベルに応じて2値のII!1gNに
変換する。2値画儂は画像メモリ4に記憶される。X、
Y射影検出部3.3人は2値−儂から水平(X)、垂直
(Y)方向の射影(投影)値を検出し、記憶する。第2
図では、図示の如きパターンに対するX、Y射影データ
がPX m PYとして示されている。マイクロプロセ
ッサ9はこのX、Y射影データから対象物のX、Y先端
座標X8゜Y8j5よびX、Y終端座標X。、Yつを求
め、しかる後、X、Yの各先端、終端座標より次式の如
き演算をして、対象物の中心座標C(Xo e Yo 
)を算出する。
The person/D converter 2 converts the image of the object imaged by the television camera 1 into binary II! according to its gray level. Convert to 1gN. The binary image is stored in the image memory 4. X,
Y projection detection unit 3.3 detects and stores projection values in the horizontal (X) and vertical (Y) directions from the binary value -I. Second
In the figure, X, Y projection data for the pattern shown is shown as PX m PY. The microprocessor 9 calculates the X, Y tip coordinates X8°Y8j5 and the X, Y end coordinates X of the object from this X, Y projection data. , Y, and then calculate the center coordinates of the object C (Xo e Yo
) is calculated.

xo −−(Xs+ X、) yo−−(y、+y、) こ\で、対象物の中心Cに対し、対象物の内部パターン
を包含する内部エリ、ア(画1#観測領域)に関する情
報が、キーボードlOおよびi10インタ7エイス部8
t−介してエリア発生部5に予め設定されているので、
第2図の例ではエリア発生部5から符号人で示す如きエ
リア情報が出力される。内部エリアA内の内部パターン
Pについて、X−次モーメント検出部6はX軸に関する
一次モーメントXMt−検出し、Y−次モーメント検出
部6人は同様にY軸に関する一次モーメントYつを検出
する。また、面積演算W17は内部パターンPの面積値
(8)を検出する。マイクロプロセッサ9は、X、Y軸
に関する一次モーメント宛、YMおよび面積値Sより、
次式の如く内部パターンの重心G(宛e YG ) f
t演算する。
xo --(Xs+ However, the keyboard lO and i10 interface 7 eighth part 8
Since it is preset in the area generation section 5 via t-,
In the example shown in FIG. 2, the area generation section 5 outputs area information as indicated by the code number. Regarding the internal pattern P in the internal area A, the X-order moment detection section 6 detects a first-order moment XMt about the X-axis, and the six Y-order moment detection sections similarly detect Y first-order moments about the Y-axis. Furthermore, the area calculation W17 detects the area value (8) of the internal pattern P. The microprocessor 9 calculates the first moments about the X and Y axes, YM, and the area value S.
The center of gravity G (to e YG ) f of the internal pattern as shown in the following formula
Calculate t.

亮−X、 / S YG−YM/S その後、内部パターンの重心Gと、先に求められた中心
座標Cとを結ぶ直線を抽出し、その傾き(θ)から対象
物の回転位置または方向を検出する。なお、上記では内
部パターンPとして複雑な形状のものを例として示した
が、単純な形状のものでも良いことは勿論である。
Ryo - To detect. Note that although the internal pattern P has a complex shape as an example in the above example, it goes without saying that it may also have a simple shape.

〔発明の効果〕〔Effect of the invention〕

この発明によれば、対象物の外形データから対象物中心
を求め、これに対応する内部エリアt−設定して内部パ
ターンの重心を求め、両者を結ぶ直編の傾き(角度θ)
から回転位置、方向を求めるようにしたので、@像変動
に対しても余り影vIヲ受けることなく、安定かつ正確
に回転位置、方向ft検出することができる。また、演
算処理もX。
According to this invention, the center of the object is determined from the external shape data of the object, the corresponding internal area t is set, the center of gravity of the internal pattern is determined, and the inclination (angle θ) of the straight stitch connecting the two is determined.
Since the rotational position and direction are determined from the rotational position and direction, the rotational position and direction ft can be detected stably and accurately without being affected much by image fluctuations. Also, the calculation processing is also X.

Y軸に関する一次モーメントまでで、主軸モーメント法
で必要なX、Y軸に関する二次モーメント。
Up to the first moment about the Y axis, the second moment about the X and Y axes required by the principal axis moment method.

XYモーメントなど複雑な処理が不要になり、高速化さ
れる。
Complex processing such as XY moments is no longer required, resulting in faster processing.

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

第1図はこの発明の実施例を示すブロック図、第2図は
その動作を具体的に説明するための説明図である。 符号説明 ■・・・・・・テレビカメラ、2・・・・・・A/D変
換部、3 。 3A・・・・・・射影検出部、4・・・・・・画儂メモ
リ、5・・・・・・エリア発生FM、6 、6A・・・
・・・X、Y−次モーメント検出部、7・・・・・・面
積検出品、8・・・・・・i10インタフェイス部、9
・・・・・・マイクロプロセッサ、10・・・・・・キ
ーボード
FIG. 1 is a block diagram showing an embodiment of the present invention, and FIG. 2 is an explanatory diagram specifically explaining its operation. Explanation of symbols■...Television camera, 2...A/D converter, 3. 3A...Projection detection section, 4...Picture memory, 5...Area generation FM, 6, 6A...
...
...Microprocessor, 10...Keyboard

Claims (1)

【特許請求の範囲】 対象物を撮像し画素毎に2値化して得られる画像信号の
水平、垂直方向の射影値をそれぞれ検出する射影検出部
と、 前記画像信号に対して所定の画像観測領域を設定する領
域設定部と、 その設定領域内で着目画像の水平、垂直軸に関する一次
モーメント値と面積値を検出するモーメント・面積検出
部と、 前記射影検出部からの出力にもとづき対象物の中心位置
を演算するとゝもに、前記モーメント・面積検出部から
の出力にもとづき着目画像の重心位置を演算する演算処
理部と、 を備え、該重心位置と前記中心位置とを結ぶ直線の傾き
から対象物の回転位置、方向を検出することを特徴とす
る対象物の回転位置、方向検出装置。
[Scope of Claims] A projection detection unit that detects the horizontal and vertical projection values of an image signal obtained by imaging an object and binarizing it for each pixel; and a predetermined image observation area for the image signal. a moment/area detection unit that detects the primary moment value and area value regarding the horizontal and vertical axes of the image of interest within the setting area; and a moment/area detection unit that detects the center of the object based on the output from the projection detection unit. an arithmetic processing unit that calculates the position of the center of gravity of the image of interest based on the output from the moment/area detection unit; A device for detecting the rotational position and direction of an object, characterized by detecting the rotational position and direction of the object.
JP17382988A 1988-07-14 1988-07-14 Rotational position / direction detector for target Expired - Lifetime JPH0672771B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP17382988A JPH0672771B2 (en) 1988-07-14 1988-07-14 Rotational position / direction detector for target

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP17382988A JPH0672771B2 (en) 1988-07-14 1988-07-14 Rotational position / direction detector for target

Publications (2)

Publication Number Publication Date
JPH0225704A true JPH0225704A (en) 1990-01-29
JPH0672771B2 JPH0672771B2 (en) 1994-09-14

Family

ID=15967928

Family Applications (1)

Application Number Title Priority Date Filing Date
JP17382988A Expired - Lifetime JPH0672771B2 (en) 1988-07-14 1988-07-14 Rotational position / direction detector for target

Country Status (1)

Country Link
JP (1) JPH0672771B2 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5705885A (en) * 1994-11-25 1998-01-06 Kabushiki Kaisha Toshiba Brazing structure for X-ray image intensifier
CN108955525A (en) * 2018-07-26 2018-12-07 广东工业大学 Perspective projection formula machine learning image data labeling system and method

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5705885A (en) * 1994-11-25 1998-01-06 Kabushiki Kaisha Toshiba Brazing structure for X-ray image intensifier
US6045427A (en) * 1994-11-25 2000-04-04 Kabushiki Kaisha Toshiba X-ray image intensifier and manufacturing method of the same
CN108955525A (en) * 2018-07-26 2018-12-07 广东工业大学 Perspective projection formula machine learning image data labeling system and method
CN108955525B (en) * 2018-07-26 2024-04-09 广东工业大学 Perspective projection type machine learning image data labeling system and method

Also Published As

Publication number Publication date
JPH0672771B2 (en) 1994-09-14

Similar Documents

Publication Publication Date Title
US6031941A (en) Three-dimensional model data forming apparatus
JP4811272B2 (en) Image processing apparatus and image processing method for performing three-dimensional measurement
JPH03294976A (en) Reference mark pattern detecting device
KR20200096426A (en) Moving body detecting device, moving body detecting method, and moving body detecting program
JPH1169342A (en) Image processing system for tracking intruding object
JPH1089960A (en) Three-dimensional image measuring method
JPH0225704A (en) Detecting device for rotational position and direction of object
US4984075A (en) Contour detecting apparatus
JP2001041725A (en) Shape measurement device
JP2775924B2 (en) Image data creation device
JP2005309782A (en) Image processor
JP3519239B2 (en) Object rotation angle detection method
JPH0341306A (en) Measuring apparatus of sectional area and volume
JPH02127393A (en) Object position detecting device
KR960001753B1 (en) Directionally characteristic recognition system by binary image
JPH0719291B2 (en) Appearance inspection device
JPS5927374A (en) Boundary line tracking circuit
JP2762724B2 (en) Appearance inspection device
JPH04255079A (en) Outline picture element data converter
JPH0666070B2 (en) Pattern processor
Chang et al. Moire image overlapping method for PCB inspection designator
JPS63223505A (en) Method and device for positioning
JPS60233503A (en) Position detecting method
JP2003016459A (en) Method for detecting visual field direction deviation
JPS62156077A (en) Detecting method for welding groove