JP2530660B2 - Image processing device - Google Patents

Image processing device

Info

Publication number
JP2530660B2
JP2530660B2 JP62186043A JP18604387A JP2530660B2 JP 2530660 B2 JP2530660 B2 JP 2530660B2 JP 62186043 A JP62186043 A JP 62186043A JP 18604387 A JP18604387 A JP 18604387A JP 2530660 B2 JP2530660 B2 JP 2530660B2
Authority
JP
Japan
Prior art keywords
data
image
data table
numerical
stored
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 - Lifetime
Application number
JP62186043A
Other languages
Japanese (ja)
Other versions
JPS6429981A (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 Electric Works Co Ltd
Original Assignee
Matsushita Electric Works 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 Matsushita Electric Works Ltd filed Critical Matsushita Electric Works Ltd
Priority to JP62186043A priority Critical patent/JP2530660B2/en
Publication of JPS6429981A publication Critical patent/JPS6429981A/en
Application granted granted Critical
Publication of JP2530660B2 publication Critical patent/JP2530660B2/en
Anticipated expiration legal-status Critical
Expired - Lifetime legal-status Critical Current

Links

Landscapes

  • Image Analysis (AREA)

Description

【発明の詳細な説明】 〔技術分野〕 本発明は、対象物を撮像した画像を処理する画像処理
装置に関するものである。
Description: TECHNICAL FIELD The present invention relates to an image processing apparatus that processes an image of an object.

〔背景技術〕[Background technology]

従来、対象物を撮像した画像を処理するこの種の画像
処理装置Yは、第6図に示すように対象物Xを撮像する
撮像装置1と、撮像装置1から出力される画像データを
数値データとして処理する画像データ処理部2とで構成
されていた。しかしながら、このような従来例にあって
は、毎回、撮像された画像を処理して得られる数値デー
タ(巾、長さ、面積、位置データなど)や判定結果をそ
の都度出力するようになっていたので、複数回の撮像に
よって得られる画像の数値データの演算を行った画像処
理データを得る場合には、外部に複数回の撮像画像の数
値データを蓄えるデータテーブル10と、外部データ処理
部11を具備した外部演算処理装置Zを設ける必要があ
り、両装置Y,Z間でデータ授受を行うためのインターフ
ェース部をそれぞれ必要とする上、別々に演算処理を行
うことになるので、構成が複雑になってコストが高くな
るという問題があった。
Conventionally, an image processing apparatus Y of this type that processes an image of an object is an image capturing apparatus 1 that captures an object X as shown in FIG. 6, and image data output from the image capturing apparatus 1 is numerical data. And the image data processing unit 2 which processes as. However, in such a conventional example, the numerical data (width, length, area, position data, etc.) obtained by processing the captured image and the determination result are output each time. Therefore, when obtaining the image processing data obtained by calculating the numerical data of the images obtained by multiple times of imaging, the data table 10 for storing the numerical data of the multiple times of captured images and the external data processing unit 11 are provided. It is necessary to provide an external arithmetic processing unit Z equipped with the above, which requires an interface unit for exchanging data between the two devices Y and Z, and the arithmetic processing is performed separately, so the configuration is complicated. However, there was a problem that the cost became high.

〔発明の目的〕[Object of the Invention]

本発明は上記の点に鑑みて為されたものであり、その
目的とするところは、複数回の撮像画像のデータ処理を
行うことができ、構成が簡単でコストが安い画像処理装
置を提供することにある。
The present invention has been made in view of the above points, and an object thereof is to provide an image processing apparatus that can perform data processing of captured images a plurality of times, has a simple configuration, and is inexpensive. Especially.

〔発明の開示〕[Disclosure of Invention]

(構 成) 本発明は、対象物を撮像して対象物の画像データを得
る撮像手段と、前記撮像手段より出力される画像データ
から数値データを求める画像データ処理手段と、少なく
とも前記画像データ処理手段から出力される数値データ
を記憶する第1のデータテーブルと、前記第1のデータ
テーブルの記憶内容が転送され記憶するとともに転送さ
れた記憶内容が前記第1のデータテーブルに代入される
第2のデータテーブルと、前記第1のデータテーブルの
数値データ若しくは第1及び第2のデータテーブルの数
値データを比較演算して演算データを得るとともに得ら
れた演算データを前記第1のデータテーブルに記憶する
演算処理手段とを備え、前記画像データ処理手段は、前
記撮像手段から画像データが出力されるごとに前記第1
のデータテーブルに記憶された数値データを最新の数値
データに更新する処理を行ない、前記演算処理手段は、
前記撮像手段から画像データが出力されるごとに前記更
新前に第1のデータテーブルに記憶された数値データを
前記第2のデータテーブルに転送して第2のデータテー
ブルの記憶内容を更新する処理と、更新された前記第2
のデータテーブルの記憶内容を更新後の前記第1のデー
タテーブルに代入する処理と、代入後に前記第1のデー
タテーブルに記憶されている複数回分の画像データの出
力に対応した複数の数値データ及び複数の演算データに
対して比較演算を行って最新の演算データを得るととも
に得られた演算データを前記第1のデータテーブルに記
憶する処理とを行うものであり、前記第1のデータテー
ブルには最新の数値データ及び最新の演算データを含
み、複数回に渡って撮像され得られた複数の画像データ
に対応する複数の数値データ及び複数の演算データによ
り、複数回の撮像画像の処理結果を用いた処理を行うこ
とができ、構成が簡単でコストが安い画像処理装置の提
供が可能となるものである。
(Structure) The present invention includes an image pickup means for picking up an image of an object to obtain image data of the object, an image data processing means for obtaining numerical data from image data output from the image pickup means, and at least the image data processing. A first data table for storing numerical data output from the means; and a second data table for storing and storing the storage content of the first data table and substituting the transferred storage content for the first data table. Data table and the numerical data of the first data table or the numerical data of the first and second data tables are compared and calculated to obtain calculated data, and the calculated data obtained is stored in the first data table. The image data processing means is configured to perform the first processing every time image data is output from the imaging means.
Performing a process of updating the numerical data stored in the data table of the latest numerical data, the arithmetic processing means,
A process of transferring the numerical data stored in the first data table before the update to the second data table and updating the storage content of the second data table each time the image data is output from the imaging unit. And the updated second
Processing for substituting the stored contents of the data table in the first data table after updating, and a plurality of numerical data corresponding to the output of the image data for a plurality of times stored in the first data table after the substituting and A comparison operation is performed on a plurality of operation data to obtain the latest operation data, and the operation data obtained is stored in the first data table. Uses the processing results of multiple captured images, including the latest numerical data and the latest calculation data, and the multiple numerical data and multiple calculation data corresponding to the multiple image data obtained by imaging multiple times. It is possible to provide an image processing apparatus that can perform the required processing, has a simple configuration, and is inexpensive.

(実施例1) 第1図は本発明一実施例を示すもので、対象物Xを撮
像して対象物Xの画像データを得る撮像手段たる撮像装
置1と、撮像装置1より出力される画像データから数値
データを求める画像データ処理手段たる画像データ処理
部2と、少なくとも画像データ処理部2から出力される
数値データを記憶する第1のデータテーブル4aと、この
第1のデータテーブル4aの記憶内容が転送され記憶する
とともに転送された記憶内容が第1のデータテーブル4a
に代入される第2のデータテーブル4bと、第1のデータ
テーブル4aの数値データ若しくは第1及び第2のデータ
テーブル4a,4bの数値データを比較演算して演算データ
を得るとともに得られた演算データを第1のデータテー
ブル4aに記憶する演算処理手段たる演算処理部3とを備
え、画像データ処理部2は、撮像装置1から画像データ
が出力される(第1図中の処理、以下同じ)ごとに第
1のデータテーブル4aに記憶された数値データを最新の
数値データに更新する処理(処理)を行ない、演算処
理部3は撮像装置1から画像データが出力されるごとに
前記更新前に第1のデータテーブル4aに記憶された数値
データを第2のデータテーブル4bに転送して第2のデー
タテーブル4bの記憶内容を更新する処理(処理)と、
更新された第2のデータテーブル4bの記憶内容を更新後
の第1のデータテーブル4aに代入する処理(処理)
と、代入後に第1のデータテーブル4aに記憶されている
複数回分の画像データの出力に対応した複数の数値デー
タ及び複数の演算データに対して比較演算を行って最新
の演算データを得るとともに得られた演算データを第1
のデータテーブル4aに記憶する処理(処理)とを行
うものである。但し、第1図における「今回の数値デー
タ」及び「今回の演算データ」とは最新の数値データ若
しくは最新の演算データ並びに前回以前の数値データ若
しくは前回以前の演算データを含む数値データ群及び演
算データ群を示し、同じく「前回の数値データ」及び
「前回の演算データ」とは最新の数値データ若しくは最
新の演算データを除く前回以前の各データ群を示してい
る(第2図参照)。
(Embodiment 1) FIG. 1 shows an embodiment of the present invention, in which an image pickup device 1 as an image pickup means for picking up an image of an object X to obtain image data of the object X, and an image output from the image pickup device 1. An image data processing unit 2 which is an image data processing means for obtaining numerical data from data, a first data table 4a for storing at least numerical data output from the image data processing unit 2, and a storage of the first data table 4a. The contents are transferred and stored, and the transferred contents are the first data table 4a.
The second data table 4b assigned to the and the numerical data of the first data table 4a or the numerical data of the first and second data tables 4a, 4b are compared and obtained to obtain the operation data and the obtained operation. The image data processing unit 2 is provided with an arithmetic processing unit 3 as an arithmetic processing unit for storing data in the first data table 4a, and the image data processing unit 2 outputs image data from the image pickup apparatus 1 (processing in FIG. ) Each time the numerical data stored in the first data table 4a is updated to the latest numerical data, and the arithmetic processing unit 3 outputs the image data from the imaging device 1 before the update. A process of transferring the numerical data stored in the first data table 4a to the second data table 4b and updating the stored contents of the second data table 4b;
Processing for substituting the updated storage contents of the second data table 4b into the updated first data table 4a (processing)
Then, after the substitution, a comparison operation is performed on a plurality of numerical data and a plurality of operation data corresponding to the output of the image data for a plurality of times stored in the first data table 4a to obtain and obtain the latest operation data. First calculated data
Processing (processing) stored in the data table 4a. However, “current numerical data” and “current calculated data” in FIG. 1 are the latest numerical data or the latest calculated data, numerical data before the previous time, or a numerical data group including the calculated data before the previous time and the calculated data. Similarly, "previous numerical data" and "previous calculation data" indicate the latest numerical data or each data group before the last time excluding the latest calculation data (see FIG. 2).

以下、実施例の動作について説明する。いま、対象物
Xを撮像装置1にて撮像して得られる画像データを、画
像データ処理部2にて演算して対象物Xの寸法データ
(例えば、巾データ)のような数値データを求める点に
ついては従来例と全く同様である。本実施例において
は、第1のデータテーブル4aに最新の数値データを含む
過去複数回分の数値データを連続して記憶させるととも
に、第2のデータテーブル4bには前回の数値データから
の連続した過去複数回分の数値データを記憶させ、これ
らの連続した複数回分の数値データを加算処理させるよ
うにしている。
The operation of the embodiment will be described below. Now, the image data obtained by picking up the image of the object X by the image pickup device 1 is calculated by the image data processing unit 2 to obtain numerical data such as dimension data (for example, width data) of the object X. Is completely the same as the conventional example. In the present embodiment, the first data table 4a continuously stores numerical data for the past multiple times including the latest numerical data, and the second data table 4b stores consecutive past numerical data. Numerical data for a plurality of times is stored, and these consecutive numerical data for a plurality of times are added.

いま、第2図は、巾データA,B,C,Dが順次得られた場
合における第1及び第2のデータテーブル4a,4bの記憶
内容の更新手順を示しており、点線矢印は第1のデータ
テーブル4aから第2のデータテーブル4bへの全データの
転送、実線矢印は第2のデータテーブル4bから第1のデ
ータテーブル4aへのデータ代入による転送を示してい
る。なお、C51〜C54は今回の数値データ、OC51〜OC54は
前回の数値データを示している。まず、1回目の検査ス
タートが入ったときには、両データテーブル4a,4bは空
の状態であり、取り込まれた画像データをデータ処理し
て得られる数値データ(巾データ)AがC51に入る。
Now, FIG. 2 shows a procedure for updating the stored contents of the first and second data tables 4a, 4b when the width data A, B, C, D are sequentially obtained, and the dotted arrow indicates the first Of all the data from the data table 4a to the second data table 4b, and the solid arrow shows the transfer of data from the second data table 4b to the first data table 4a. It should be noted that C51 to C54 indicate the present numerical data, and OC51 to OC54 indicate the previous numerical data. First, when the first inspection is started, both data tables 4a and 4b are empty, and numerical data (width data) A obtained by data processing of the captured image data is stored in C51.

次に、2回目の検査スタートが入ると、今回得られた
最新の数値データBによって第1のデータテーブル4aの
C51の内容が書き換えられる前に、現在C51に記憶されて
いる前回の数値データAが第2のデータテーブル4bのOC
51に転送され、その後で、最新の数値データBがC51に
入り、さらに、C52=OC51の代入式に従って第2のデー
タテーブル4bのOC51に転送された前回の数値データAが
第1のデータテーブル4aのC52に入る。以下、同様にし
て検査スタートが入る毎に、画像データテーブルのデー
タ処理、第1及び第2のデータテーブル4a,4bの更新
(代入、転送)が繰り返され、第1のデータテーブル4a
上のC51〜C54には最新の数値データD、前回数値データ
C及び前々回数値データB等を含む4回の連続した数値
データが記憶されている。
Next, when the second inspection is started, the latest numerical data B obtained this time causes the first data table 4a
Before the contents of C51 are rewritten, the previous numerical data A currently stored in C51 is OC of the second data table 4b.
The latest numerical data A transferred to 51, then the latest numerical data B enters C51, and the previous numerical data A transferred to OC51 of the second data table 4b according to the substitution formula of C52 = OC51 is the first data table. Enter C52 on 4a. Thereafter, every time the inspection is started in the same manner, the data processing of the image data table and the updating (substitution, transfer) of the first and second data tables 4a and 4b are repeated, and the first data table 4a
In the upper C51 to C54, four consecutive numerical data including the latest numerical data D, the previous numerical data C, the two-preceding numerical value data B, etc. are stored.

一方、演算処理部3では、この数値データC51〜C54を
加算した演算データを求め、第1のデータテーブル4aに
記憶させるようになっており、この演算データは検査誤
差の少ない巾データとして利用される。
On the other hand, in the arithmetic processing unit 3, the arithmetic data obtained by adding the numerical data C51 to C54 is obtained and stored in the first data table 4a, and this arithmetic data is used as width data with little inspection error. It

しかして、本発明にあっては、撮像装置1より出力さ
れる画像データから数値データを求める画像データ処理
部2と、少なくとも画像データ処理部2から出力される
数値データを記憶する第1のデータテーブル4aと、この
第1のデータテーブル4aの記憶内容が転送され記憶する
とともに転送された記憶内容が第1のデータテーブル4a
に代入される第2のデータテーブル4bと、第1のデータ
テーブル4aの数値データ若しくは第1及び第2のデータ
テーブル4a,4bの数値データを比較演算して演算データ
を得るとともに得られた演算データを第1のデータテー
ブル4aに記憶する演算処理部3とを備え、画像データ処
理部2が、撮像装置1から画像データが出力されるごと
に第1のデータテーブル4aに記憶された数値データを最
新の数値データに更新する処理を行ない、演算処理部3
が、撮像装置1から画像データが出力されるごとに前記
更新前に第1のデータテーブル4aに記憶された数値デー
タを第2のデータテーブル4bに転送して第2のデータテ
ーブル4bの記憶内容を更新する処理と、更新された第2
のデータテーブル4bの記憶内容を更新後の第1のデータ
テーブル4aに代入する処理と、代入後に第1のデータテ
ーブル4aに記憶されている複数回分の画像データの出力
に対応した複数の数値データ及び複数の演算データに対
して比較演算を行って最新の演算データを得るとともに
得られた演算データを第1のデータテーブル4aに記憶す
る処理とを行うようにしたので、従来例のように外部演
算処理装置Zを用いることなく複数回の撮像画像の処理
結果を用いた処理を行うことができ、データ入出力用の
インターフェース回路を必要としない上、両処理部2,3
を同一のCPUを用いて形成することができ、構成が簡単
でコストが安い画像処理装置を実現できることになる。
なお、第1のデータテーブル4aと第2のデータテーブル
4bとの間の数値データや演算データの転送・代入の処理
は、両処理部2,3を形成するCPUが実行するようにすれば
よい。
Therefore, according to the present invention, the image data processing unit 2 for obtaining numerical data from the image data output from the image pickup apparatus 1, and the first data storing at least the numerical data output from the image data processing unit 2 The storage contents of the table 4a and the first data table 4a are transferred and stored, and the transferred storage contents are stored in the first data table 4a.
The second data table 4b assigned to the and the numerical data of the first data table 4a or the numerical data of the first and second data tables 4a, 4b are compared and obtained to obtain the operation data and the obtained operation. Numerical data stored in the first data table 4a each time the image data processing unit 2 outputs image data from the image pickup apparatus 1 and an arithmetic processing unit 3 that stores data in the first data table 4a. Is updated to the latest numerical data, and the arithmetic processing unit 3
However, each time the image data is output from the image pickup apparatus 1, the numerical data stored in the first data table 4a before the updating is transferred to the second data table 4b to store the stored contents in the second data table 4b. And the second updated
Processing for substituting the stored contents of the data table 4b into the updated first data table 4a, and a plurality of numerical data corresponding to the output of the image data for a plurality of times stored in the first data table 4a after the substitution Also, the comparison calculation is performed on a plurality of calculation data to obtain the latest calculation data and the obtained calculation data is stored in the first data table 4a. It is possible to perform processing using the processing results of the captured images a plurality of times without using the arithmetic processing unit Z, no interface circuit for data input / output is required, and both processing units 2, 3
Can be formed using the same CPU, and an image processing apparatus with a simple configuration and low cost can be realized.
In addition, the first data table 4a and the second data table
The CPU forming the two processing units 2 and 3 may execute the processing of transferring and substituting numerical data and operation data with the 4b.

また、一般に用いられる加減乗除演算や論理演算だけ
を使い、従来では回数分のデータバッファと時系列デー
タ処理を用いて行っていた処理、例えば、本実施例のよ
うに前回の数値データ及び演算データと最新の数値デー
タ及び演算データとの和を求めるのに、従来では前回の
数値データ及び演算データを格納するデータバッファ
と、前回の数値データ及び演算データを探し出して差を
求める処理が必要であったが、本実施例では、第1のデ
ータテーブル4aに第2のデータテーブル4bの前回の数値
データ或いは演算データを代入・転送することにより、
前回の数値データ及び演算データを最新の数値データ及
び演算データとして取り扱うことができ、通常の減算処
理にてその差を求めることができる。
In addition, using only commonly used addition / subtraction / multiplication / division operations and logical operations, processing that has conventionally been performed by using a data buffer for the number of times and time series data processing, for example, the previous numerical data and calculation data as in this embodiment In order to obtain the sum of the latest numerical data and the calculated data, the data buffer that stores the previous numerical data and the calculated data and the process that finds the previous numerical data and the calculated data and calculates the difference are conventionally required. However, in the present embodiment, by substituting and transferring the previous numerical value data or operation data of the second data table 4b into the first data table 4a,
The previous numerical data and the calculated data can be treated as the latest numerical data and the calculated data, and the difference can be obtained by the normal subtraction processing.

(実施例2) 第3図は、他の実施例を示すもので、実施例1と同様
の画像処理装置において、数値データや演算データを判
定基準テーブル5aを参照して得られる所定値と比較して
判定するデータ判定処理部5を設けるとともに、判定結
果論理演算部6を設けたものであり、第1及び第2のデ
ータテーブル4a,4bには、それぞれ最新及び前回の数値
データおよび演算データが記憶されるとともに、判定結
果および論理演算結果も記憶されるようになっている。
すなわち、本実施例では演算処理部3、データ判定処理
部5及び判定結果論理演算部6が演算処理手段に該当
し、これらは同一のCPUにて形成することが可能であ
る。なお、本実施例では、データ判定処理部5にて製品
(対象物X)の良品‘1'、不良品‘0'を判定しており、
判定結果論理演算部6では、前回の判定結果と今回の判
定結果との論理積を求めている、したがって、この論理
演算結果によって良否を判断することにより、確実な良
否判定が行えることになる。
(Embodiment 2) FIG. 3 shows another embodiment. In an image processing apparatus similar to that of Embodiment 1, numerical data and calculation data are compared with predetermined values obtained by referring to the judgment reference table 5a. The determination result logical operation unit 6 is provided in addition to the data determination processing unit 5 that determines the latest and previous numerical data and arithmetic data, respectively, in the first and second data tables 4a and 4b. Is stored, the determination result and the logical operation result are also stored.
That is, in the present embodiment, the arithmetic processing unit 3, the data determination processing unit 5, and the determination result logical operation unit 6 correspond to the arithmetic processing means, and these can be formed by the same CPU. In this embodiment, the data determination processing unit 5 determines whether the product (target X) is a good product “1” or a defective product “0”.
The judgment result logical operation unit 6 obtains the logical product of the previous judgment result and the present judgment result. Therefore, by judging the quality according to this logical operation result, a reliable judgment can be made.

以下、実施例の動作について説明する。第4図はデー
タ判定処理および論理演算処理の動作を示すフローチャ
ートであり、S21は判定結果、D1は論理演算結果であ
り、前に「O」を付したOS21、OD1は前回の結果であ
る。いま、検査スタートが入ると、第1のデータテーブ
ル4aの全内容を第2のデータテーブル4bに転送し、前回
データを記憶する第2のデータテーブル4bを更新する。
The operation of the embodiment will be described below. FIG. 4 is a flow chart showing the operation of the data determination processing and the logical operation processing, S21 is the determination result, D1 is the logical operation result, and OS21 and OD1 that are preceded by "O" are the previous results. Now, when the inspection starts, the entire contents of the first data table 4a are transferred to the second data table 4b, and the second data table 4b storing the previous data is updated.

次に、取り込まれた画像データのデータ処理を行って
数値データC21を求め、第1のデータテーブル4aに記憶
させる。次に、数値データの代入、演算を行って得られ
る演算データを第1のデータテーブル4aに記憶させる。
続いて、数値データC21を所定の判定基準MIN,MAXと比較
し、合格(MIN<C21<MAX)ならばS21=‘1'とし、不合
格(C21<MINあるいはC21>MAX)ならばS21=‘0'と
し、この判定結果S21を第1のデータテーブル4aに記憶
させる。最後に、判定結果S21、OS21の代入、論理演算
(本実施例では論理積)を行いその論理演算結果D1を第
1のデータテーブル4aに記憶させて検査スタート待ちの
状態に戻る。
Next, the captured image data is processed to obtain numerical data C21, which is stored in the first data table 4a. Next, the operation data obtained by substituting the numerical data and performing the operation is stored in the first data table 4a.
Subsequently, the numerical data C21 is compared with predetermined judgment criteria MIN and MAX, and if pass (MIN <C21 <MAX), S21 = '1', and if fail (C21 <MIN or C21> MAX), S21 = It is set to "0", and this determination result S21 is stored in the first data table 4a. Finally, the determination results S21 and OS21 are substituted, logical operation (logical product in this embodiment) is performed, the logical operation result D1 is stored in the first data table 4a, and the state is returned to the state of waiting for the inspection start.

(実施例3) 第5図は、さらに他の実施例の動作説明図であり、判
定結果S21を反転したS21を演算入力とし、連続複数回の
論理演算結果D1〜D4を第1及び第2のデータテーブル4
a,4bに記憶させておき、論理演算結果D1〜D4をさらに論
理演算(本実施例では論理積演算)し、演算結果をD5と
して第1及び第2のデータテーブル4a,4bに記憶させる
ようにしたものであり、第1及び第2のデータテーブル
4a,4bの更新動作は実施例1と同様であるので説明を省
略する。
(Embodiment 3) FIG. 5 is a diagram for explaining the operation of still another embodiment, in which S21, which is an inversion of the determination result S21, is used as the operation input, and the continuous multiple times of logical operation results D1 to D4 are given as the first and second operations. Data table 4
The logical operation results D1 to D4 are further logically operated (logical product operation in this embodiment), and the operation result is stored as D5 in the first and second data tables 4a and 4b. And the first and second data tables
The updating operation of 4a and 4b is the same as that of the first embodiment, and the description thereof will be omitted.

ここに、画像処理装置によって製造ラインの監視をし
ている場合には、上述のようにして得られた演算結果D5
が‘1'になったときには、不良品(S21=‘1')が連続
(実施例では4個連続)して発生する異常を示している
ので、D5が‘1'になったときに直ちに製造ラインを止め
るように制御される。
Here, when the production line is monitored by the image processing device, the calculation result D5 obtained as described above is obtained.
Indicates that the defective product (S21 = “1”) is continuously generated (four in the embodiment), so immediately when D5 becomes “1”. Controlled to stop the production line.

上記構成によれば、上記画像処理装置を製造ラインの
監視に用い、工程上の重大なトラブルを検出するために
所定回数以上不良が連続したことを検出するような場
合、従来では特別に連続する不良品の数をカウントする
装置を必要とするが、本実施例では、第2のデータテー
ブル4bから第1のデータテーブル4aへの前回の数値デー
タ及び演算データの代入・転送をN−2回繰り返すこと
により、N回分全ての判定結果(演算データ)を最新の
判定結果(演算データ)として扱え、通常の論理和を求
める処理により不良品の連続する重大トラブルを検出す
ることができる。
According to the above configuration, when the image processing apparatus is used for monitoring the production line and it is detected that a defect has continued a predetermined number of times or more in order to detect a serious trouble in a process, conventionally, it is particularly continuous. Although a device for counting the number of defective products is required, in the present embodiment, the substitution and transfer of the previous numerical data and operation data from the second data table 4b to the first data table 4a is performed N-2 times. By repeating the processing, the judgment results (calculation data) of all N times can be treated as the latest judgment results (calculation data), and continuous serious troubles of defective products can be detected by the process of obtaining a normal logical sum.

〔発明の効果〕〔The invention's effect〕

本発明は上述のように、対象物を撮像して対象物の画
像データを得る撮像手段と、前記撮像手段より出力され
る画像データから数値データを求める画像データ処理手
段と、少なくとも前記画像データ処理手段から出力され
る数値データを記憶する第1のデータテーブルと、前記
第1のデータテーブルの記憶内容が転送され記憶すると
ともに転送された記憶内容が前記第1のデータテーブル
に代入される第2のデータテーブルと、前記第1のデー
タテーブルの数値データ若しくは第1及び第2のデータ
テーブルの数値データを比較演算して演算データを得る
とともに得られた演算データを前記第1のデータテーブ
ルに記憶する演算処理手段とを備え、前記画像データ処
理手段は、前記撮像手段から画像データが出力されるご
とに前記第1のデータテーブルに記憶された数値データ
を最新の数値データに更新する処理を行ない、前記演算
処理手段は、前記撮像手段から画像データが出力される
ごとに前記更新前に第1のデータテーブルに記憶された
数値データを前記第2のデータテーブルに転送して第2
のデータテーブルの記憶内容を更新する処理と、更新さ
れた前記第2のデータテーブルの記憶内容を更新後の前
記第1のデータテーブルに代入する処理と、代入後に前
記第1のデータテーブルに記憶されている複数回分の画
像データの出力に対応した複数の数値データ及び複数の
演算データに対して比較演算を行って最新の演算データ
を得るとともに得られた演算データを前記第1のデータ
テーブルに記憶する処理とを行うものであり、前記第1
のデータテーブルには最新の数値データを及び最新の演
算データを含み、複数回に渡って撮像され得られた複数
の画像データに対応する複数の数値データ及び複数の演
算データにより、複数回の撮像画像の処理結果を用いた
処理を行うことができ、構成が簡単でコストが安い画像
処理装置を提供することができるという効果がある。
The present invention, as described above, includes an image pickup means for picking up an image of an object to obtain image data of the object, an image data processing means for obtaining numerical data from image data output from the image pickup means, and at least the image data processing. A first data table for storing numerical data output from the means; and a second data table for storing and storing the storage content of the first data table and substituting the transferred storage content for the first data table. Data table and the numerical data of the first data table or the numerical data of the first and second data tables are compared and calculated to obtain calculated data, and the calculated data obtained is stored in the first data table. The image data processing means is configured to perform the first data processing every time the image data is output from the imaging means. A process of updating the numerical data stored in the table to the latest numerical data is performed, and the arithmetic processing unit is stored in the first data table before the updating each time image data is output from the imaging unit. Transfer the numerical data to the second data table
Processing for updating the storage content of the data table, the processing for assigning the updated storage content of the second data table to the updated first data table, and the storage for the first data table after the substitution The plurality of numerical data corresponding to the output of the image data for a plurality of times and the plurality of calculation data are compared to obtain the latest calculation data, and the obtained calculation data is stored in the first data table. And a process of storing the first
The data table of includes the latest numerical data and the latest calculation data, and the plurality of numerical data and the plurality of calculation data corresponding to the plurality of image data obtained by imaging the plurality of times provide a plurality of imaging times. There is an effect that it is possible to provide an image processing apparatus that can perform processing using an image processing result, has a simple configuration, and is inexpensive.

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

第1図は本発明一実施例のブロック回路図、第2図は同
上の動作説明図、第3図は他の実施例のブロック回路
図、第4図は同上の動作説明図、第5図はさらに他の実
施例の動作説明図、第6図は従来例のブロック回路図で
ある。 1は撮像装置、2は画像データ処理部、3は演算処理
部、4aは第1のデータテーブル、4bは第2のデータテー
ブル、5はデータ判定処理部である。
FIG. 1 is a block circuit diagram of one embodiment of the present invention, FIG. 2 is an operation explanatory diagram of the same as above, FIG. 3 is a block circuit diagram of another embodiment, FIG. 4 is an operation explanatory diagram of the same as above, and FIG. Is an operation explanatory view of yet another embodiment, and FIG. 6 is a block circuit diagram of a conventional example. Reference numeral 1 is an image pickup device, 2 is an image data processing unit, 3 is a calculation processing unit, 4a is a first data table, 4b is a second data table, and 5 is a data determination processing unit.

Claims (1)

(57)【特許請求の範囲】(57) [Claims] 【請求項1】対象物を撮像して対象物の画像データを得
る撮像手段と、前記撮像手段より出力される画像データ
から数値データを求める画像データ処理手段と、少なく
とも前記画像データ処理手段から出力される数値データ
を記憶する第1のデータテーブルと、前記第1のデータ
テーブルの記憶内容が転送され記憶するとともに転送さ
れた記憶内容が前記第1のデータテーブルに代入される
第2のデータテーブルと、前記第1のデータテーブルの
数値データ若しくは第1及び第2のデータテーブルの数
値データを比較演算して演算データを得るとともに得ら
れた演算データを前記第1のデータテーブルに記憶する
演算処理手段とを備え、前記画像データ処理手段は、前
記撮像手段から画像データが出力されるごとに前記第1
のデータテーブルに記憶された数値データを最新の数値
データに更新する処理を行ない、前記演算処理手段は、
前記撮像手段から画像データが出力されるごとに前記更
新前に第1のデータテーブルに記憶された数値データを
前記第2のデータテーブルに転送して第2のデータテー
ブルの記憶内容を更新する処理と、更新された前記第2
のデータテーブルの記憶内容を更新後の前記第1のデー
タテーブルに代入する処理と、代入後に前記第1のデー
タテーブルに記憶されている複数回分の画像データの出
力に対応した複数の数値データ及び複数の演算データに
対して比較演算を行って最新の演算データを得るととも
に得られた演算データを前記第1のデータテーブルに記
憶する処理とを行うことを特徴とする画像処理装置。
1. An image pickup means for picking up an image of an object to obtain image data of the object, an image data processing means for obtaining numerical data from image data output from the image pickup means, and at least output from the image data processing means. Data table for storing numerical data to be stored, and a second data table for transferring and storing the storage content of the first data table and substituting the transferred storage content for the first data table And numerical data in the first data table or numerical data in the first and second data tables are compared and calculated to obtain calculated data, and the calculated data is stored in the first data table. The image data processing means includes the first means each time the image data is output from the imaging means.
Performing a process of updating the numerical data stored in the data table of the latest numerical data, the arithmetic processing means,
A process of transferring the numerical data stored in the first data table before the update to the second data table and updating the storage content of the second data table each time the image data is output from the imaging unit. And the updated second
Processing for substituting the stored contents of the data table in the first data table after updating, and a plurality of numerical data corresponding to the output of the image data for a plurality of times stored in the first data table after the substituting and An image processing apparatus, comprising: performing a comparison operation on a plurality of operation data to obtain the latest operation data; and storing the obtained operation data in the first data table.
JP62186043A 1987-07-24 1987-07-24 Image processing device Expired - Lifetime JP2530660B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62186043A JP2530660B2 (en) 1987-07-24 1987-07-24 Image processing device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62186043A JP2530660B2 (en) 1987-07-24 1987-07-24 Image processing device

Publications (2)

Publication Number Publication Date
JPS6429981A JPS6429981A (en) 1989-01-31
JP2530660B2 true JP2530660B2 (en) 1996-09-04

Family

ID=16181398

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62186043A Expired - Lifetime JP2530660B2 (en) 1987-07-24 1987-07-24 Image processing device

Country Status (1)

Country Link
JP (1) JP2530660B2 (en)

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS59149555A (en) * 1983-02-15 1984-08-27 Toshiba Corp Picture reprocessing device

Also Published As

Publication number Publication date
JPS6429981A (en) 1989-01-31

Similar Documents

Publication Publication Date Title
JPH03256485A (en) Motion vector detecting circuit
JP2530660B2 (en) Image processing device
JPH10304384A (en) Motion vector detecting device/method
JP3611224B2 (en) Core position / orientation detector
JPH03195922A (en) Detecting apparatus for degree of congestion
JP2001175866A (en) Device and method for image process inspection
JPH07101460B2 (en) Code detector
JP2804406B2 (en) Pulse measuring device
JPH03167407A (en) Apparatus for inspecting deviation of display pattern
JP3076391B2 (en) Overflow processing circuit
KR100267879B1 (en) A vision system of a equipment for manufacturing a semiconductor
JPH06171760A (en) Depalletization
JPS60262265A (en) Inventory controller
JPS63213039A (en) Fault analysis system for diagnosing device
JPS61881A (en) Method and device for picture inspection
JPH03226097A (en) Alarm collection system in equipment
JPH04248683A (en) Motion detection device
JPH03154934A (en) Method for detecting file transfer error
JPH05205074A (en) Data collecting system for information processing system
JPH04358236A (en) Data processor
JPS6057570A (en) Data accumulating device
JPH11136000A (en) Data collecting method for mounting electronic component, electronic component mounting device, and a system for controlling mounting of electronic component
JPS63221487A (en) Threshold level detector
JPH06195441A (en) Method for preserving and transferring image data of visual sensor
JPH05342138A (en) Input/output synchronization controller