JPS62269489A - Vision system - Google Patents

Vision system

Info

Publication number
JPS62269489A
JPS62269489A JP11230186A JP11230186A JPS62269489A JP S62269489 A JPS62269489 A JP S62269489A JP 11230186 A JP11230186 A JP 11230186A JP 11230186 A JP11230186 A JP 11230186A JP S62269489 A JPS62269489 A JP S62269489A
Authority
JP
Japan
Prior art keywords
processor
task
picture
processing
state
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
JP11230186A
Other languages
Japanese (ja)
Other versions
JP2552452B2 (en
Inventor
Hajime Kishi
甫 岸
Atsushi Watanabe
淳 渡辺
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.)
Fanuc Corp
Original Assignee
Fanuc Corp
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 Fanuc Corp filed Critical Fanuc Corp
Priority to JP61112301A priority Critical patent/JP2552452B2/en
Publication of JPS62269489A publication Critical patent/JPS62269489A/en
Application granted granted Critical
Publication of JP2552452B2 publication Critical patent/JP2552452B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Numerical Control (AREA)
  • Manipulator (AREA)
  • Closed-Circuit Television Systems (AREA)

Abstract

PURPOSE:To attain the simultaneous processes of picture information from plural cameras by one picture processor, by processing the picture information to be processed from a camera interface simultaneously under a multitask type operating system. CONSTITUTION:An operation, such that a picture from a camera #1 is stored on a picture memory 5 through a camera interface 3, and a picture processing only hardware 4, etc., separated from a processor 6 is performed in the WAIT state of a task #1. After completing the above work, the picture processing only hardware 4 sends an interruption signal representing the fact of the completion to the processor 6. By the interruption signal, a task #2 is set at a READY state again, and the execution of an application program 2 is interrupted, and the task #1 is set at a Running state again. The processor 6 executes an object recognizing macro instruction that is the next in struction to the input instruction of an application program 1. In such way, plural application programs can be executed simultaneously by one processor.

Description

【発明の詳細な説明】 (産業上の利用分野) 本発明は、複数の画像情報を処理し、その処理結果に従
ってロボットなどを制御するビジョンシステムに関する
DETAILED DESCRIPTION OF THE INVENTION (Field of Industrial Application) The present invention relates to a vision system that processes a plurality of image information and controls a robot or the like according to the processing results.

(従来の技術) 従来のビジョンシステムでは、1つのビジョンシステム
で1つの画像処理だけが行なわれていた。第6図に示す
ビジョンシステムでロボットの制御を行なうためには、
複数のカメラと、各カメラ毎に専用の画像処理装置とが
接続されているために、n種類の画像処理をするにはn
個の同様な画像処理装置を必要としていた。
(Prior Art) In conventional vision systems, only one image process is performed in one vision system. In order to control the robot with the vision system shown in Figure 6,
Since multiple cameras and dedicated image processing devices are connected to each camera, it takes n to process n types of images.
This required multiple similar image processing devices.

(発明が解決しようとする問題点) このために従来のビジョンシステムのコストは高くなり
、またシステム全体は大きなものとなっていた。
(Problems to be Solved by the Invention) For this reason, the cost of conventional vision systems has increased, and the entire system has become large.

本発明は、複数のカメラからの画像情報を1つの画像処
理装置で同時に処理するに好適で、かつ新規なビジョン
システムを提供し、ビジョンシステムの低廉化および小
型化を図ることを目的としている。
An object of the present invention is to provide a novel vision system suitable for simultaneously processing image information from a plurality of cameras with one image processing device, and to reduce the cost and size of the vision system.

(問題点を解決するための手段) 本発明は、複数のカメラと、これらカメラで撮像された
画像情報を取込むカメラインタフェースと、このカメラ
インタフェースからの処理すべき画像情報をマルチタス
ク型オペレーティングシステムの下で同時に処理する画
像処理1〜段とをJt備していることを特徴とするビジ
ョンシステムによって、前記のような従来技術の問題点
を解決するものである。
(Means for Solving the Problems) The present invention includes a plurality of cameras, a camera interface that takes in image information captured by these cameras, and a multitasking operating system that processes the image information to be processed from the camera interface. The above-mentioned problems of the prior art are solved by a vision system characterized by comprising image processing stages 1 to 1 which perform simultaneous processing under the following conditions.

(作用) 本発明においては、複数のカメラからの画像情報を1つ
の画像処理装置で同時に処理するようになっているので
、処理時間に無駄を生じさせずにビジョンシステムの低
廉化、小型化を達成することができる。
(Function) In the present invention, since image information from multiple cameras is processed simultaneously by one image processing device, the cost and size of the vision system can be reduced without wasting processing time. can be achieved.

(実施例) 以下、図により本発明の一実施例について説明する。(Example) Hereinafter, one embodiment of the present invention will be described with reference to the drawings.

第1図は、本発明のビジョンシステムのシステム構成を
示す図で、第2図乃至第5図は、複数の画像情報をマル
チタスク型オペレーティングシステムの制御の下で同時
に処理するための手段を説明する図である。
FIG. 1 is a diagram showing the system configuration of the vision system of the present invention, and FIGS. 2 to 5 illustrate means for simultaneously processing a plurality of image information under the control of a multitasking operating system. This is a diagram.

第1図において、ビジョンシステム1は、複数のカメラ
#l乃至#nと画像処理装置2を具備している。画像処
理装置2は、複数のカメラ#l乃至#nと接続されてい
るカメラインターフェース3と、該カメラインターフェ
ース3に接続され、カメラインターフェース3からの画
像情報の前処理、例えば2値化処理を行なうための画像
処理専用ハードウェア4と、画像処理専用ハードウェア
4に接続され、カメラ#1乃至#nからの処理すべき画
像情報を格納するための画像メモリ5と、複数のカメラ
#l乃至#nからの複数の画像を夫々処理する複数のア
プリケーションプログラム、およびマルチタスク型オペ
レーティングシステムを格納しているメモリ7と、該メ
モリ7に格納されているマルチタスク型オペレーティン
グシステムにより制御され、メモリ7に格納されている
アプリケーションプログラムに従って、画像処理専用ハ
ードウェア4からの画像情報の処理を行なうプロセッサ
6と、該プロセッサ6に接続され、プロセッサ6の動作
を監視したりプロセッサの動作を外部から制御するため
のキーボードディスプレイ装置9と、プロセンサ6から
の処理結果を対象機械、例えばロポントllに!j−え
るための出力インターフェースlOとからなる。
In FIG. 1, a vision system 1 includes a plurality of cameras #l to #n and an image processing device 2. As shown in FIG. The image processing device 2 includes a camera interface 3 connected to a plurality of cameras #l to #n, and is connected to the camera interface 3, and performs preprocessing of image information from the camera interface 3, for example, binarization processing. an image memory 5 connected to the image processing hardware 4 for storing image information to be processed from cameras #1 to #n, and a plurality of cameras #l to #n; a memory 7 storing a plurality of application programs each processing a plurality of images from n and a multitasking operating system; A processor 6 that processes image information from the image processing hardware 4 according to a stored application program, and a processor 6 that is connected to the processor 6 to monitor the operation of the processor 6 and to control the operation of the processor from the outside. The processing results from the keyboard display device 9 and the ProSensor 6 are sent to the target machine, such as Roponto II! j - output interface lO for output.

第2図は、画像メモ95の画像情報格納領域の配置を示
している。各画像情報格納領域には、各カメラ#1乃至
#nに対応するアドレスが付されている。
FIG. 2 shows the arrangement of image information storage areas of the image memo 95. Each image information storage area is assigned an address corresponding to each camera #1 to #n.

第3図は、メモリ7に格納されているアプリケーション
プログラムと、タスク管理ブロックとを示しており、ア
プリケーションプログラムl乃至nは、複数のカメラ#
1乃至#nに対応させた数だけある。複数のアプリケー
ションプログラムl乃至nは、例えば、カメラ#l乃至
#nを動作させ、撮像された画像情報を画像メモリ5内
の対応する画像情報格納領域に格納するための入力命令
と、画像メモリ5内に格納された画像情報を呼び出して
物体を認識するための物体認識マクロ命令と、対象機械
即ちロポッ)11を制御するための出力命令とからなる
FIG. 3 shows the application programs and task management blocks stored in the memory 7, and the application programs l to n are stored in the memory 7.
There are as many numbers as correspond to 1 to #n. The plurality of application programs l to n include, for example, input instructions for operating cameras #l to #n and storing captured image information in corresponding image information storage areas in the image memory 5; It consists of an object recognition macro command for calling up image information stored in the computer to recognize an object, and an output command for controlling the target machine (ropot) 11.

マルチタスク型オペレーティングシステムでは、これら
のアプリケーションプログラム1乃至nを夫々タスク#
1乃至#nとしてタスクの割当てを予め行なっていく。
In a multitasking operating system, each of these application programs 1 to n is assigned a task #.
Tasks 1 to #n are allocated in advance.

各タスク#l乃至#nの状態は、第3図に示すようなタ
スク管理ブロック(TCB)によって監視されている。
The status of each task #l to #n is monitored by a task management block (TCB) as shown in FIG.

TCB 1はタスク#lの状態を監視し、TCB2はタ
スク#2の状態を監視している。
TCB 1 monitors the status of task #1, and TCB 2 monitors the status of task #2.

なお、タスク#l乃至#nには優先度がつけられている
ものとする。
It is assumed that tasks #l to #n are prioritized.

第4図は、タスクの状態遷移図であり、タスクの状態に
は、RE^口Y状態、Runn ing状態、WAIT
状態がある。REAoY状IKjとはプロセッサ割当て
時間の分配待ちの状態、Runn ing状態とは、R
EA[)Y状態のときにプロセッサ割当て時間の分配が
なされ、アプリケーションプログラムを実行している状
態であり、アプリケーションプログラム中入出力命令ま
たはマクロ命令を実行するときには−AIT状態に遷移
し、優先度の高いタスクがREADY状態になったとき
には、優先度の高いタスクがRunning状態になり
、自らはREADY状態になる。また、WAIT状態は
、事象の終了を待っている状態、例えば入力命令の終了
を待っている状態であり、入力命令実行中は、プロセッ
サ6はカメラの画像撮像処理が終わるまでアイドル状態
となるの〒、他のタスクをRunn ing状態にして
他タスクのアプリケーションプログラムを実行すること
ができる。
FIG. 4 is a state transition diagram of a task, and the task states include the RE^口Y state, the Running state, and the WAIT state.
There is a condition. The REAoY state IKj is the state of waiting for allocation of processor allocation time, and the Running state is the R
When in the EA[)Y state, the processor allocation time is distributed and the application program is executed.When an input/output instruction or a macro instruction in the application program is executed, it transitions to the -AIT state and the priority is When a task with a higher priority becomes a READY state, the task with a higher priority becomes a Running state, and the task itself becomes a READY state. Further, the WAIT state is a state in which an event is being completed, for example, an input command is being completed, and while the input command is being executed, the processor 6 remains in an idle state until the image capturing process of the camera is completed. 〒, it is possible to put other tasks into the Running state and execute the application programs of the other tasks.

WAIT状態において入力命令が終了すると、タスクは
READY状態に遷移する。
When the input command is completed in the WAIT state, the task transitions to the READY state.

第5図は、以上のタスクの管理状態を簡単に説明するも
のである。初めに、タスク#1と#2とはともにREA
DY状態にあるものとする。タスク#Iの方がタスク#
2よりも優先度が高い場合には、■タスク#1をRun
n ing状態にする。これによってプロセッサ6はア
プリケーションプログラムlの実行を開始する。■アプ
リケーションプログラムlの実行中、入力命令に当たる
と、■タスク#1をWAI↑状態にし、タスク#2をR
unning状態にする。タスク#lがWAIT状態の
ときには、カメラ#1からの画像をカメラインターフェ
ース3、画像処理専用ハードウェア4を介して画像メモ
リ5に格納する等の、プロセッサ6とは切離された作業
が行なわれる。この作業が終了すると、画像処理専用ハ
ードウェア4は終了した旨の割込み信号をプロセッサ6
に送る。この割込み信号によって、■タスクa 2を再
びREArlY状態にしてアプリケーションプログラム
2の実行を中断し、■タスク#1を再びRunning
状態にする。プロセンサ6は、アプリケーションプログ
ラム1の入力命令の次の命令である物体認識マクロ命令
を実行する。
FIG. 5 briefly explains the management status of the tasks described above. First, tasks #1 and #2 are both REA
Assume that it is in the DY state. Task #I is better than task #
If the priority is higher than 2, ■ Run task #1.
ning state. As a result, the processor 6 starts executing the application program l. ■During the execution of application program l, when an input command is encountered, ■task #1 is set to WAI↑ state and task #2 is set to R.
Put it in the unning state. When the task #l is in the WAIT state, work that is separate from the processor 6 is performed, such as storing the image from the camera #1 into the image memory 5 via the camera interface 3 and the image processing dedicated hardware 4. . When this work is completed, the image processing dedicated hardware 4 sends an interrupt signal to the processor 6 indicating that the work has been completed.
send to By this interrupt signal, ■ Put task a 2 into the REArlY state again, interrupt the execution of application program 2, and ■ Put task #1 into Running again.
state. The prosensor 6 executes an object recognition macro command that is the next command after the input command of the application program 1.

このように、マルチタスク型オペレーティングシステム
の制御のドで、アプリケーションプログラムl乃至nに
夫々タスクを割当てて、1つのタスクがWAIT状fl
’+のときに他のタスクを実行させることによって、複
数のアプリケーションプログラムを1つのプロセッサで
あたかも同時に実行しているかの如くに画像処理ができ
る。
In this way, under the control of the multitasking operating system, tasks are assigned to each of the application programs l to n, and one task is placed in a WAIT state.
By executing other tasks when '+' is present, image processing can be performed as if multiple application programs were being executed simultaneously by one processor.

(発明の効果) 以」二1本発明によれば、複数の処理されるべき画像情
報をマルチタスク型オペレーティングシステムの制御の
下で同時処理することができるので、プロセッサの遊び
時間をなくシ迅速な処理の可能な低度で小型化の新規な
ビジョンシステムを提供できる。
(Effects of the Invention) According to the present invention, a plurality of pieces of image information to be processed can be processed simultaneously under the control of a multitasking operating system, thereby eliminating processor idle time and speeding up processing. It is possible to provide a new low-level and compact vision system that is capable of high-performance processing.

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

第1図は、本発明のビジョンシステムのシステノ1、構
成を示す図、第2図は、画像メモリの画像情報格納領域
の配置を示す図、第3図は、マルチタスク型オペレーテ
ィングシステムのタスク管理を説明するための図、第4
図は、タスクの状態遷移を示す図、第5図は、タスク管
理の動作を説明するための図、第6図は、従来のビジョ
ンシステムのシステム構成図である。 1・・・ビジョンシステム、2・・・画像処理装置、3
・・・カメラインタフェース、4・・・画像処理専用/
\−ドウェア、6・・・プロセッサ、11・・・ロボッ
ト。 特許出願人  ファナック株式会社 代  理  人   弁理士  辻     實■ L        −1 (I L−−〜−−−−」 3図
Fig. 1 is a diagram showing the configuration of system 1 of the vision system of the present invention, Fig. 2 is a diagram showing the arrangement of the image information storage area of the image memory, and Fig. 3 is task management of the multitasking operating system. Diagram for explaining, No. 4
5 is a diagram showing the state transition of a task, FIG. 5 is a diagram for explaining the operation of task management, and FIG. 6 is a system configuration diagram of a conventional vision system. 1... Vision system, 2... Image processing device, 3
...Camera interface, 4...Image processing only/
\-ware, 6...processor, 11...robot. Patent applicant Fanuc Co., Ltd. Representative Patent attorney Minoru Tsuji

Claims (1)

【特許請求の範囲】[Claims] 複数のカメラと、これらカメラで撮像された画像情報を
取込むカメラインタフェースと、このカメラインタフェ
ースからの処理すべき画像情報をマルチタスク型オペレ
ーティングシステムの下で同時に処理する画像処理手段
とを具備していることを特徴とするビジョンシステム。
The system includes a plurality of cameras, a camera interface that takes in image information captured by these cameras, and an image processing means that simultaneously processes the image information to be processed from the camera interface under a multitasking operating system. A vision system characterized by:
JP61112301A 1986-05-16 1986-05-16 Vision system Expired - Fee Related JP2552452B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP61112301A JP2552452B2 (en) 1986-05-16 1986-05-16 Vision system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP61112301A JP2552452B2 (en) 1986-05-16 1986-05-16 Vision system

Publications (2)

Publication Number Publication Date
JPS62269489A true JPS62269489A (en) 1987-11-21
JP2552452B2 JP2552452B2 (en) 1996-11-13

Family

ID=14583254

Family Applications (1)

Application Number Title Priority Date Filing Date
JP61112301A Expired - Fee Related JP2552452B2 (en) 1986-05-16 1986-05-16 Vision system

Country Status (1)

Country Link
JP (1) JP2552452B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012074045A (en) * 2011-10-19 2012-04-12 Panasonic Electric Works Sunx Co Ltd Image inspection system

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5126412A (en) * 1974-08-29 1976-03-04 Sanyo Electric Co KANSHISOCHI
JPS57188187A (en) * 1981-05-14 1982-11-19 Mitsubishi Electric Corp Television monitoring, recording and reproducing device
JPS61179693A (en) * 1985-02-04 1986-08-12 Mitsubishi Electric Corp Still picture transmitting device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5126412A (en) * 1974-08-29 1976-03-04 Sanyo Electric Co KANSHISOCHI
JPS57188187A (en) * 1981-05-14 1982-11-19 Mitsubishi Electric Corp Television monitoring, recording and reproducing device
JPS61179693A (en) * 1985-02-04 1986-08-12 Mitsubishi Electric Corp Still picture transmitting device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2012074045A (en) * 2011-10-19 2012-04-12 Panasonic Electric Works Sunx Co Ltd Image inspection system

Also Published As

Publication number Publication date
JP2552452B2 (en) 1996-11-13

Similar Documents

Publication Publication Date Title
EP0709777A2 (en) Method of and apparatus for debugging multitask programs
EP1189137A1 (en) Interruption managing device and interruption managing method
CN100382033C (en) Computer system
JPS62269489A (en) Vision system
JPH02210542A (en) Execution control system for virtual computer system
JPH05108380A (en) Data processing system
JPS63636A (en) Task control system
JPH0433130A (en) Multi-chip constituting method
JP2790472B2 (en) Multiple conversation processing control method
JPH0311431A (en) Overlay system
JPS62219061A (en) Control system for multiprocessor
JPS59146387A (en) Stack control system of multiprocessing
JP3022848B2 (en) Multitask task switching method and real-time operating system
JPH02211575A (en) Multi-processor type information processor
JP3098325B2 (en) Failure information storage method
JPH02113363A (en) Time slice controlling system for multiprocessor system
JPH0495137A (en) Context switching method for operating system
JPS6027950A (en) Preferential dispatch control system
JPS6273335A (en) Stack control system
JPH05173810A (en) Task management method
JPS63128442A (en) Control device for cyclic start task
JPH08212088A (en) Information processor and communication processor
JPH04155532A (en) Task switching system
JPS6146532A (en) Microprogram control circuit
JPS58155588A (en) Processing system of logical swap out

Legal Events

Date Code Title Description
R250 Receipt of annual fees

Free format text: JAPANESE INTERMEDIATE CODE: R250

LAPS Cancellation because of no payment of annual fees