JPS621085A - Picture segmenting device - Google Patents

Picture segmenting device

Info

Publication number
JPS621085A
JPS621085A JP60140797A JP14079785A JPS621085A JP S621085 A JPS621085 A JP S621085A JP 60140797 A JP60140797 A JP 60140797A JP 14079785 A JP14079785 A JP 14079785A JP S621085 A JPS621085 A JP S621085A
Authority
JP
Japan
Prior art keywords
window
pattern
image
frame
recognized
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.)
Pending
Application number
JP60140797A
Other languages
Japanese (ja)
Inventor
Kazuo Mikami
和夫 三上
Suguru Ishihara
石原 英
Hiroshi Nakamoto
浩 中本
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.)
Omron Corp
Original Assignee
Omron Tateisi Electronics Co
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 Omron Tateisi Electronics Co filed Critical Omron Tateisi Electronics Co
Priority to JP60140797A priority Critical patent/JPS621085A/en
Publication of JPS621085A publication Critical patent/JPS621085A/en
Pending legal-status Critical Current

Links

Landscapes

  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)
  • Manipulator (AREA)

Abstract

PURPOSE:To attain the segmentation of an object picture with simple hard constitution by producing a window pattern along an area within a frame and fetching only the picture input corresponding to a window area. CONSTITUTION:A TV camera 1 photographs an object 2 to be recognized and a synchronizing separator 3 delivers video signals to a binary-coding circuit 5. A mode changeover switch SW is set at the learning mode side for image pick-up of only a frame body 4 of a pallet, etc. Thus a window pattern WP is stored in a window memory 6. Then the SW is set at the measurement mode side for image pick-up of both the body 4 and the object 2. Thus an input pattern Pi including the picture patterns P1 and P2 of the object 2 and the body 4 is obtained. The pattern WP is read out of the memory 6 and applied to a gate circuit 12 as the input to be given to the other side. Then only the constitution data on the pattern P1 included in a window area (w) is sent to a black picture element detecting circuit 13.

Description

【発明の詳細な説明】 〈発明の技術分野〉 この発明は、例えば物体を画像化して認識する視覚認識
技術に関連し、殊にこの発明は、画像入力に対しウィン
ドウを設定して特定領域内の画像のみを選定して取り込
むための画像切出し装置に関する。
DETAILED DESCRIPTION OF THE INVENTION Technical Field of the Invention The present invention relates to a visual recognition technology that recognizes an object by converting it into an image, for example. The present invention relates to an image cutting device for selecting and capturing only images.

〈発明の概要〉 この発明は、被認識物体が枠内領域に位置するような場
合に、まず前記枠のモデルを撮像して枠内領域に沿うウ
ィンドウパターンを生成した後、つぎに被認識物体を枠
とともに撮像して入力すると同時にウィンドウパターン
を読み出してウィンドウ領域に対応する画像入力のみを
取り込むように構成したものであり、これにより簡易な
ハード構成をもって高速で物体画像の切出しを可能とし
た。
<Summary of the Invention> In the present invention, when an object to be recognized is located in a frame area, first, a model of the frame is imaged to generate a window pattern along the frame area, and then a window pattern is generated along the frame area. The system is configured to capture and input the image of the object along with the frame, and at the same time read out the window pattern and capture only the image input corresponding to the window area.This makes it possible to cut out object images at high speed with a simple hardware configuration.

〈発明の背景〉 例えばパレット等の枠体内に被認識物体を収納して搬送
するシステムに視覚認識技術を導入するような場合、前
記被認識物体の画像のみを切り出した後に、その画像の
面積や重心等を計測して、物体認識のための照合処理に
移行させる必要がある。この場合に従来は、被認識物体
を含む枠体の全体をテレビカメラで撮像し、第5図に示
す如く、被認識物体の画像パターンP+ と、枠体の画
像パターンP2との間にウィンドウ領域Wを設定し、こ
のウィンドウを用いて被認識物体の画像パターンP、の
みを切り出していた。ところがこの方式の場合、ウィン
ドウの設定に複雑なハード構成を必要とし、また−ウィ
ンドウ設定に時間がかかるばかりでなく、枠体の画像パ
ターンP2と被認識物体の画像パターンP1との間の間
隙が狭いと、複雑な形状のウィンドウを設定することが
困難である等の問題があった。
<Background of the Invention> For example, when visual recognition technology is introduced into a system that stores and transports objects to be recognized in a frame such as a pallet, after cutting out only the image of the object to be recognized, It is necessary to measure the center of gravity, etc., and move on to matching processing for object recognition. In this case, conventionally, the entire frame including the object to be recognized is imaged with a television camera, and as shown in FIG. 5, a window area is created between the image pattern P+ of the object to be recognized and the image pattern P2 of the frame. W is set, and this window is used to cut out only the image pattern P of the object to be recognized. However, in this method, a complicated hardware configuration is required to set the window, and not only does it take time to set the window, but the gap between the image pattern P2 of the frame and the image pattern P1 of the object to be recognized is large. If the window is narrow, there are problems such as difficulty in setting a window with a complicated shape.

〈発明の目的〉 この発明は、上記問題を解消するためのものであって、
簡易なハード構成をもって、しかも高速に任意形状のウ
ィンドウを設定して物体画像を切出し得る画像切出し装
置を提供することを目的とする。
<Object of the invention> This invention is intended to solve the above problems,
It is an object of the present invention to provide an image cutting device which has a simple hardware configuration and can cut out an object image by setting a window of an arbitrary shape at high speed.

〈発明の構成および効果〉 上記目的を達成するため、この発明では、枠内領域に位
置する被認識物体を、前記枠と一体に画像化した後、被
認識物体の画像のみを切り出すための装置において、前
記枠のモデルを撮像して枠内領域に沿うウィンドウパタ
ーンを生成するためのウィンドウパターン生成手段と、
生成されたウィンドウパターンを記憶させるためのパタ
ーン記憶手段と、枠内領域に位置する被認識物体を枠と
一体に撮像して入力すると同時に前記記憶手段よりウィ
ンドウパターンを読み出して、ウィンドウパターンの領
域に対応する画像入力のみを取り込むための画像取込み
手段とを具備させることにした。
<Configuration and Effects of the Invention> In order to achieve the above object, the present invention provides an apparatus for image-forming an object to be recognized located in a frame area integrally with the frame, and then cutting out only an image of the object to be recognized. a window pattern generation means for capturing an image of the model of the frame and generating a window pattern along the area within the frame;
a pattern storage means for storing the generated window pattern; and a pattern storage means for capturing and inputting an image of the object to be recognized located in the area within the frame together with the frame, and at the same time reading out the window pattern from the storage means and storing the image in the area of the window pattern. It was decided to include an image capture means for capturing only the corresponding image input.

この発明によれば、簡易なハード構成をもってしかも高
速にウィンドウの設定が可能であり、また枠体の画像パ
ターンと被認識物体の画像パターンとの間の間隙が狭く
ても、複雑な形状のウィンドウを設定でき、物体画像の
正確な切出しが可能である等、発明目的を達成した顕著
な効果を奏する。
According to this invention, it is possible to set a window at high speed with a simple hardware configuration, and even if the gap between the image pattern of the frame and the image pattern of the object to be recognized is narrow, a window with a complex shape can be set. can be set, and it is possible to accurately cut out an object image, achieving the remarkable effects of achieving the purpose of the invention.

〈実施例の説明〉 第1図は、この発明にかかる画像切出し装置の回路構成
例を示す。図示例において、テレビカメラ1は、静止ま
たは移動中の被認識物体2を例えば上方より撮像し、飛
越走査にかかる画像出力(第2図(11に示す)を同期
分離回路3へ送出する。被認識物体2は、パレット等の
枠体4の枠内領域に収納配置されており、この装置例に
おいて、枠体を含む全体の画像入カバターンP、(第5
図に示す)を求めた後、これに後記のウィンドウを設定
することにより、被認識物体の画像パターンP1のみを
切り出す。
<Description of Embodiments> FIG. 1 shows an example of the circuit configuration of an image cutting device according to the present invention. In the illustrated example, the television camera 1 images a stationary or moving object 2 from above, for example, and sends an image output (shown in FIG. 2 (11)) related to interlaced scanning to the synchronization separation circuit 3. The recognition object 2 is housed in a frame area of a frame body 4 such as a pallet, and in this device example, the entire image-containing cover turn P including the frame body,
After determining the image pattern (shown in the figure), a window described later is set thereto, thereby cutting out only the image pattern P1 of the object to be recognized.

前記同期分離回路3は、画像出力より水平同期信号HD
、垂直同期信号VD、奇数フィールド信号OD(第2図
(2)に示す)、クロック信号CK(第2図(4)に示
す)等を分離し、ビデオ信号VDiを2値化回路4へ出
力する。2値化回路4は、第2図(3)に示す如く、ビ
デオ信号VDiに対し一定のスレシュホールドレベルT
Hを設定し、ビデオ信号VDiの奇数フィールドにつき
白黒2値化して2値パターンを形成出力する。
The synchronization separation circuit 3 receives a horizontal synchronization signal HD from the image output.
, vertical synchronization signal VD, odd field signal OD (shown in FIG. 2 (2)), clock signal CK (shown in FIG. 2 (4)), etc., and outputs the video signal VDi to the binarization circuit 4. do. As shown in FIG. 2 (3), the binarization circuit 4 sets a constant threshold level T to the video signal VDi.
H is set, and the odd fields of the video signal VDi are converted into black and white binarized to form a binary pattern and output.

2値化回路5には、モード切換スイッチSWを介してウ
ィンドウメモリ6が接続してあり、モード切換スイッチ
SWを学習モード側aにセットしてパレット等の枠体4
のみを撮像するとき、ウィンドウメモリ6に例えば第3
図に示すウィンドウパターンWPが格納され、またモー
ド切換スイッチSWを計測モード側すにセットして枠体
4とともに被認識物体2を撮像するとき、前記第5図に
示す入カバターンP、が生成される。この実施例の場合
、各パターンは縦横256ビツトの画像範囲に組み立て
られるものであり、第3図および第5図では、斜線部分
が黒画素、斜線以外の部分が白画素を、それぞれ表して
いる。
A window memory 6 is connected to the binarization circuit 5 via a mode changeover switch SW, and when the mode changeover switch SW is set to the learning mode side a, a frame 4 such as a pallet etc.
When capturing only the third image, for example, the third
When the window pattern WP shown in the figure is stored and the mode selector switch SW is set to the measurement mode side to image the object 2 to be recognized together with the frame 4, the input cover turn P shown in FIG. 5 is generated. Ru. In the case of this embodiment, each pattern is assembled into an image range of 256 bits in length and width, and in FIGS. 3 and 5, the shaded areas represent black pixels, and the areas other than the shaded areas represent white pixels, respectively. .

尚第1図中、水平カウンタ7および垂直カウンタ8は、
ウィンドウパターンWPの読み書きに際し、ウィンドウ
メモリ6内の画素位置をアドレス指定する。またゲート
回路9,10は、奇数フィールド信号ODやクロック信
号CKで開閉制御され、書込み制御信号Wや読出し制御
信号Rをウィンドウメモリ6へ供給する。更にゲート回
路11は奇数フィールド信号ODで開閉制御され、クロ
ック信号CKを水平カウンタ7および垂直カウンタ8へ
夫々供給する。
In FIG. 1, the horizontal counter 7 and the vertical counter 8 are
When reading and writing the window pattern WP, pixel positions within the window memory 6 are addressed. Gate circuits 9 and 10 are controlled to open and close by odd field signal OD and clock signal CK, and supply write control signal W and read control signal R to window memory 6. Furthermore, gate circuit 11 is controlled to open and close by odd field signal OD, and supplies clock signal CK to horizontal counter 7 and vertical counter 8, respectively.

前記モード切換スイッチSWの計測モードb側には、ゲ
ート回路12を介して、パターンにおける黒画素を検知
するための黒画素検知回路13が接続してあり、また前
記ゲート回路12の他入力側には、前記ウィンドウメモ
リ6の読出し出力が接続されている。
A black pixel detection circuit 13 for detecting black pixels in the pattern is connected to the measurement mode b side of the mode changeover switch SW via a gate circuit 12. is connected to the readout output of the window memory 6.

このゲート回路12は、入カバターンP、に対し、ウィ
ンドウメモリ6に格納されたウィンドウパターンWPを
設定するためのものであって、従って前記黒画素検知回
路13は、ウィンドウパターンWPのウィンドウ領域W
内に含まれる入カバターンP1の黒画素、すなわち被認
識物体2にかかる入カバターンP、(第4図に示す)を
構成する黒画素を検知して、その検知信号を画素カウン
タ14へ送出する。画素カウンタ14は黒画素検知回路
13の出力(黒画素数)を計数するもので、この画素カ
ウンタ14の計数データは、水平ブランキング期間毎に
1 / O(Input / 0utput )ボート
15を介してCP U (Central Proce
ssing Unit) 16に取り込まれ、CPU1
6は取り込んだ計数データの累積値(パターンの面積に
相当する)を算出して出力する。
This gate circuit 12 is for setting the window pattern WP stored in the window memory 6 for the input cover pattern P, and therefore the black pixel detection circuit 13 is for setting the window pattern WP stored in the window memory 6 for the input cover pattern P.
The black pixels of the input cover turn P1 included in the recognition object 2, that is, the black pixels constituting the input cover turn P (shown in FIG. 4) on the object to be recognized 2, are detected and the detection signal is sent to the pixel counter 14. The pixel counter 14 counts the output (black pixel number) of the black pixel detection circuit 13, and the count data of this pixel counter 14 is sent via the 1/O (Input/0putput) port 15 every horizontal blanking period. CPU (Central Process)
ssing Unit) 16, and CPU1
6 calculates and outputs the cumulative value (corresponding to the area of the pattern) of the captured count data.

なお図中、F ROM (Programmable 
 ReadOnly  Memory ) 17は一連
のプログラムを格納し、またR A M (Rando
m  Access  Memory) 18は各種デ
ータの格納する他、処理実行のためのワークエリアを有
する。またゲート回路19はCPU16に対し割込み信
号INTを発生させる回路であり、オア回路20は画素
力ウンタエ4をリセットする回路である。更に表示部2
1は、前記黒画素数の累積演算結果を表示し、設定スイ
ッチ22は各種しきい値等を設定する。
In addition, in the figure, F ROM (Programmable
ReadOnly Memory) 17 stores a series of programs, and RAM (Rando Memory) 17 stores a series of programs.
m Access Memory) 18 not only stores various data but also has a work area for processing execution. Further, the gate circuit 19 is a circuit that generates an interrupt signal INT to the CPU 16, and the OR circuit 20 is a circuit that resets the pixel power counter 4. Furthermore, display section 2
1 displays the cumulative calculation result of the number of black pixels, and a setting switch 22 sets various threshold values and the like.

しかしてモード切換スイッチSWを学習モードa側にセ
ットした後、被認識物体2を除いた状態の枠体4をテレ
ビカメラlで撮像すると、ビデオ信号VD、の最初の奇
数フィールドにつき2値化処理が実行されて枠体4のみ
の画像パターンが生成され、このパターンはウィンドウ
メモリ6に第3図に示すウィンドウパターンWPとして
格納される。
After setting the mode changeover switch SW to the learning mode a side, when the frame 4 with the recognized object 2 removed is imaged by the television camera l, the first odd field of the video signal VD is binarized. is executed to generate an image pattern of only the frame 4, and this pattern is stored in the window memory 6 as a window pattern WP shown in FIG.

つぎにモード切換スイッチSWを計測モードb側に切り
換えた後、枠体4上の枠内に位置させた被認識物体2を
テレビカメラlで撮像すると、ビデオ信号VD、の最初
の奇数フィールドにつき2値化処理が行われて、第5図
に示すような、被認識物体2の画像パターンP、と、枠
体4の画像パターンP2とを含む入カバターンPiが生
成される。この入カバターンP1はゲ−+−回路12に
入力されるが、これと同時にウィンドウメモリ6より前
記ウィンドウパターンWPが読み出されて、ゲート回路
12へ他方の入力として与えられ、これによりウィンド
ウ領域W内に含まれる入カバターンP1、すなわち被認
識物体2にかかる画像パターンP1の構成データのみが
ゲート回路12を通過して黒画素検知回路13へ送られ
ることになる。
Next, after switching the mode changeover switch SW to the measurement mode b side, when the object 2 to be recognized positioned within the frame on the frame body 4 is imaged by the television camera l, two images are captured for each first odd field of the video signal VD. The value processing is performed to generate an input cover turn Pi including an image pattern P of the object to be recognized 2 and an image pattern P2 of the frame 4 as shown in FIG. This input cover pattern P1 is input to the gate circuit 12, but at the same time, the window pattern WP is read out from the window memory 6 and given as the other input to the gate circuit 12, thereby causing the window area W Only the input pattern P1 included in the image pattern P1, that is, the configuration data of the image pattern P1 related to the object to be recognized 2 passes through the gate circuit 12 and is sent to the black pixel detection circuit 13.

かくして黒画素検知回路13は、ウィンドウ領域W内に
含まれる黒画素を検知し、つぎの画素カウンタ14がそ
の検知信号を入力して黒画素数を計数する。そして奇数
フィールドにおける水平同期信号HDの各時間タイミン
グで、CPUI 6に対し割込み信号INTが発生し、
CPU16はこの水平同期期間において、画素カウンタ
14の計数データを取り込んでその累積演算を実行する
。この1水平走査ライン毎の演算、処理が繰返し実行さ
れることにより、被認識物体2にかかる画像パターンP
lの構成黒画素総数(パターンP、の面積に相当する)
が算出され、その演算結果が表示部21等へ出力される
ものである。
In this way, the black pixel detection circuit 13 detects black pixels included in the window area W, and the next pixel counter 14 receives the detection signal and counts the number of black pixels. Then, at each time timing of the horizontal synchronization signal HD in the odd field, an interrupt signal INT is generated to the CPUI 6,
During this horizontal synchronization period, the CPU 16 takes in the count data of the pixel counter 14 and executes its cumulative calculation. By repeating this calculation and processing for each horizontal scanning line, the image pattern P on the object to be recognized 2 is
Total number of black pixels constituting l (corresponds to the area of pattern P)
is calculated, and the calculation result is output to the display unit 21 or the like.

なお上記実施例では、ウィンドウ領域W内を白画素とし
たウィンドウパターンWPをウィンドウメモリ6に格納
しているが、これに限らず、ウィンドウ領域W内を黒画
素としたウィンドウパターンをウィンドウメモリ6に格
納してもよく、この場合はゲート回路12としてアンド
回路を用いることになる。
In the above embodiment, the window pattern WP with white pixels inside the window area W is stored in the window memory 6, but the present invention is not limited to this, and a window pattern with black pixels inside the window area W can be stored in the window memory 6. It may be stored, and in this case, an AND circuit is used as the gate circuit 12.

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

第1図はこの発明にかかる画像切出し装置の回路ブロッ
ク図、第2図は第1図の回路の信号波形を示すタイムチ
ャート、第3図ウィンドウパターンを示す図、第4図は
ウィンドウ設定状態を示す図、第5図は入カバターンを
示す図である。 1・・・・テレビカメラ   5・・・・2値化回路6
・・・・ウィンドウメモリ 12・・・・ゲート回路1
6・・・・CPU
FIG. 1 is a circuit block diagram of an image cutting device according to the present invention, FIG. 2 is a time chart showing signal waveforms of the circuit in FIG. 1, FIG. 3 is a diagram showing window patterns, and FIG. 4 is a diagram showing window setting states. The figure shown in FIG. 5 is a diagram showing an input cover turn. 1...TV camera 5...Binarization circuit 6
...Window memory 12...Gate circuit 1
6...CPU

Claims (2)

【特許請求の範囲】[Claims] (1)枠内領域に位置する被認識物体を、前記枠と一体
に画像化した後、被認識物体の画像のみを切り出すため
の装置であって、 前記枠のモデルを撮像して枠内領域に沿うウィンドウパ
ターンを生成するためのウィンドウパターン生成手段と
、 生成されたウィンドウパターンを記憶させるためのパタ
ーン記憶手段と、 枠内領域に位置する被認識物体を枠と一体に撮像して入
力すると同時に前記記憶手段よりウィンドウパターンを
読み出して、ウィンドウパターンの領域に対応する画像
入力のみを取り込むための画像取込み手段とを具備して
成る画像切出し装置。
(1) A device for image-forming an object to be recognized located in a region within a frame, integrally with the frame, and then cutting out only an image of the object to be recognized, which images a model of the frame and images the region within the frame. a window pattern generation means for generating a window pattern along the frame; a pattern storage means for storing the generated window pattern; An image cutting device comprising: image capturing means for reading a window pattern from the storage means and capturing only an image input corresponding to an area of the window pattern.
(2)前記ウィンドウパターン生成手段は、テレビカメ
ラと、入力画像を2値化する2値化回路とを含んで成る
画像切出し装置。
(2) An image cutting device in which the window pattern generation means includes a television camera and a binarization circuit that binarizes an input image.
JP60140797A 1985-06-26 1985-06-26 Picture segmenting device Pending JPS621085A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60140797A JPS621085A (en) 1985-06-26 1985-06-26 Picture segmenting device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60140797A JPS621085A (en) 1985-06-26 1985-06-26 Picture segmenting device

Publications (1)

Publication Number Publication Date
JPS621085A true JPS621085A (en) 1987-01-07

Family

ID=15276963

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60140797A Pending JPS621085A (en) 1985-06-26 1985-06-26 Picture segmenting device

Country Status (1)

Country Link
JP (1) JPS621085A (en)

Similar Documents

Publication Publication Date Title
US5621825A (en) Image processor, image processing method and apparatus applying same
US20060274177A1 (en) Image processing apparatus
JPS621085A (en) Picture segmenting device
JPH0633361Y2 (en) Image reader
JPH10240856A (en) Code reader
KR100387197B1 (en) Apparatus and method for performing high speed vision inspection
JP2853219B2 (en) Vehicle detection device
JP2748860B2 (en) Digital converter
JP3798746B2 (en) Smooth automatic tracking shooting method
JPS63288373A (en) Detecting method for edge line and trough line in case of image processing
JPH0129643Y2 (en)
JPH0353390A (en) Outline discriminating device for moving body
JPH0385681A (en) Picture processor
JPS60263272A (en) Two-dimensional vision recognizing device
JPS5824971A (en) Picture mask device
JPS61292507A (en) Rotary deviation detector
JPS61294306A (en) Detector for rotation deviation
JPH02228776A (en) Picture processor
JPH08107492A (en) Subject classification device
JPH08292017A (en) Sectional form sorting device
JP2004061382A (en) Passing object height measuring instrument
JPS6365347A (en) Singular point detecting method by image processing
JPH04874A (en) Hand blur detection circuit
JPS625514B2 (en)
JPS60262288A (en) 2-dimensional visual recognizer