WO1986001062A1 - Apparatus for correcting window data - Google Patents

Apparatus for correcting window data Download PDF

Info

Publication number
WO1986001062A1
WO1986001062A1 PCT/JP1985/000413 JP8500413W WO8601062A1 WO 1986001062 A1 WO1986001062 A1 WO 1986001062A1 JP 8500413 W JP8500413 W JP 8500413W WO 8601062 A1 WO8601062 A1 WO 8601062A1
Authority
WO
WIPO (PCT)
Prior art keywords
window
data
window data
command
cursor
Prior art date
Application number
PCT/JP1985/000413
Other languages
French (fr)
Japanese (ja)
Inventor
Mitsuo Hiraizumi
Hiroshi Sugimura
Fumikazu Terawaki
Original Assignee
Fanuc 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 Fanuc Ltd filed Critical Fanuc Ltd
Publication of WO1986001062A1 publication Critical patent/WO1986001062A1/en

Links

Classifications

    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/14Display of multiple viewports

Definitions

  • the present invention relates to a window data correction device for masking an unnecessary portion in a visual field in a visual sensor.
  • window data has been set by displaying a quantized image of a standard article on C2! T, and by setting the end point of the window area to be set.
  • Window data corresponding to the area defined by this specified point. For example, a method of storing "1" in the memory area, or by painting the window area white and the other areas black], puts 9 patterns in the field of view of the imaging device, This is performed by writing a signal obtained by binarizing the imaging signal into the window data setting memory.
  • the present invention has solved such a conventional problem, and an object of the present invention is to make it possible to correct window data once set by a simple operation.
  • the present invention uses a window data read from a window data setting memory 1 and an image pickup signal.
  • the window sensor stored in the window data setting memory 1 is applied to the visual sensor that obtains the window-processed imaging signal.
  • Window area display means 4 for graphically displaying the window area 2 indicated by the data on the display device 5, a force-sol movement key-5, and a force-sol movement Display according to key-5 operation
  • a force-sol display means 7 for displaying the force-sol at the display position of the device 3 and a command data for inputting command data relating to at least one of translation, rotation, enlargement, and reduction processing.
  • Window data correcting means 9 for correcting the window data in 1 is provided.
  • window area 2 indicated by the window data stored in the window data setting memory 1. 3 is displayed, and the force-sol. Key 5 is operated to move the force-sol. ⁇ into the window area.
  • Command data input means 8) For example, when a command to enlarge is input, the window area correction means 9 outputs a command to the window. The window data in the data setting memory 1 is enlarged accordingly. Similarly, window data is corrected in such a way by inputting a parallel movement command, rotation command, or reduction command.
  • FIG. 1 is an explanatory view of the configuration of the present invention
  • FIG. 2 is a block diagram of a main part of a visual sensor processing system having a window data correcting device of the present invention
  • FIG. Window area setting pattern FIG. 4 is an explanatory view of the operation of the present invention
  • FIG. 5 is a flowchart of the window correction processing.
  • BEST MODE FOR CARRYING OUT THE INVENTION FIG. 2 is a block diagram of a main part of a visual sensor processing system having a window data correcting device according to the present invention.
  • 12 is a converter for converting an image signal into a digital value
  • 13 is a binarized image represented by “1” and “0” by comparing the output of the AZD converter 12 with a reference value.
  • a binarization circuit 14 for generating a signal 14 inputs the output of the binarization circuit 13 to the serial / parallel converter 15 or the AND circuit 10 according to the level of the switching signal SEL 1
  • a switching circuit 17 selects the output of the serial / parallel converter 15 or the data from the data bus 18 in accordance with the level of the switching signal SEL2.
  • Frame memory for window data setting where the output of 17 is applied to the data input terminal, and 20 is the window A frame memory for storing an image signal. Both frame memories have the same address space.
  • Reference numeral 21 denotes an address generating circuit for generating an address of the vertical synchronizing signal and the horizontal synchronizing signal of the imaging device 10 and an address of the frame memories 19 and 20, and 22 corresponds to the level of the switching signal SEL.
  • the output circuit of the address generation circuit 21 is a switching circuit that outputs the address of the address noise 23 to the frame memories 19 and 20, and 24 is the switching signal.
  • the input buffer circuit, 30 is the CPU connected to the peripheral circuit by the data bus 18, address memory, and the control port-31.
  • 32 is the switching signal S.
  • Switching signal generation circuit that generates ⁇ LI to S ⁇ L5, 53 is a ROM for storing programs, etc., 54 is 2A used for arithmetic operations, etc., 35 is a numeric key, alphabet key Keyboard with multiple keys such as key, force, and so on, 30 is a CRT controller, 57 is a CRT, and 38 is a CPU that accesses the peripheral circuit.
  • An address decoder 39 for generating a selection signal when performing the operation is provided between the CPU 30 and the address generation circuit 21, and between 9 and 3 the start signal and the write end signal. It is a file circuit.
  • a frame selection memory 19, 2Q is provided with a light selection signal WZ ?.
  • the present invention relates to the above-mentioned improvement (1), but its operation will be sequentially described below to facilitate understanding of the present invention.
  • the window areas 50 to 52 to be set are colored white.
  • the pattern 55 having a black background is arranged such that each of the window regions 50 to 52 is located at a desired position in the field of view of the imaging device 11.
  • a window data setting command is inputted from the keyboard 55.
  • the output of 14 and the input of the switching circuit 17 are switched to the serial / parallel converter 15 side, the input of the switching circuit 22 is switched to the address generation circuit 21 side, and the frame memory 19 is switched. After transmitting the light signal W, the activation signal is transmitted to the address generation circuit 21.
  • the j? Address generation circuit 21 synchronizes with the synchronization signal sent to the imaging device 11 from the first address to the last address of the frame memory 19. Addresses are generated sequentially.
  • the image signal is converted into a digital amount by the image signal converter 12 of the pattern 53, and the signal is converted by the binarization circuit 13 into a win.
  • a doWn area 51 a binary imaging signal in Which?
  • the address generation circuit 21 When the address generation circuit 21 has sequentially generated an address from the start address to the end address of the frame memory 19, the address generation circuit 21 outputs the image capture end signal and the end signal. C and 30 notify the operator by illuminating a lamp (not shown) indicating the end of window data setting by recognizing this.
  • the keyboard 55 is used to modify the frame memory 19. Enter a command to display the content on the CPT57 screen.
  • the CPU 0 switches the input of the switching circuit 22 to the address bus 23 side, switches the CPU of the switching circuit 24 to the data bus 18 side, and sets the frame memory.
  • the contents of the input buffer circuit 20 are read] ?, which are sequentially transmitted to the CRT controller 50. Due to this operation, the window of the CRT 57 displays the window area 50 to 52 indicated by the window data stored in the frame memory 19 as shown in FIG. 4, for example. Is displayed graphically.
  • the operator corrects the window area while seeing this display.
  • the operator corrects the window area in the window area 50 to 52 stored in the frame memory 19.
  • the display of force-sol 00 is displayed at the display position corresponding to the value of the internal counter that is counted up by depressing the force-sol movement key. Is sent from the CPU 30 to the C2r controller-
  • X ⁇ , Y... indicates the window area in the Z direction.
  • Fig. 5 is a flowchart showing an example of the processing of the CP 30 when the above command is input.
  • the CPU determines whether the command is a parallel movement command, a rotation command, an enlargement / reduction command, and in the case of a parallel movement command, a force-solar command.
  • the memory location of the window area in the frame memory 19 specified by the command is translated in parallel by the specified amount of translation, and in the case of a rotation command, it is also indicated by force-sol. Moves the storage location of the window area to the location rotated by the commanded rotation angle. In the case of enlargement / reduction command, the storage location of the window area specified by force-sol is instructed. Enlarge according to the magnification.
  • the operation is to sequentially read the contents of the frame memory 19,9) to identify the initial storage location of the window data group indicated by the force-sol, Corrected from the storage location and the specified amount of translation, tillage angle, and magnification
  • the storage location exclusive for the later window data group is determined, and the switching circuit 17 is switched to the data bus 18 side to sequentially store the data in the storage location determined above. This is performed by inverting the original window data from "0" to "0".
  • the CPU 50 sets the CPU of the switching circuit 14 to the AND circuit 10 side and the input of the switching circuit 28 to the serial / parallel converter 27.
  • the switching circuit 22 is switched to the address generation circuit 21 and the switching circuit 24 is switched to the parallel serial converter 25, and the frame memory 20 is lighted.
  • The-signal is sent to the frame memory 19 and the start signal is sent to the address generation circuit 21.
  • the address generation circuit 21 sequentially generates addresses from the first address to the last address of the frame memories 19 and 20.
  • the binarized image signal of the target object imaged by the imaging signal is applied to one input of the AND circuit 10 via the switching circuit 14, and a frame is input to the other input.
  • the output of the memory 19 is converted to serial data by the parallel-serial converter 25 and window data is added.], And both are output by the AND circuit 10. AND of Then, only the binarized image signal in the window area is stored.] 9 Only the image-processed image signal is stored in the frame memory 20.
  • the switching circuit 22 is switched to the address bus 23 side, a read signal is transmitted to the frame memory 20, and the frame memory is output from the address bus 25.
  • the read address By sending the read address to the memory 20, the contents of the frame memory 20 are read by the CPU 5Q], and the read data is processed.
  • the set window area is displayed on the display device, and the force-solar is moved within the target window area, and the translation and rotation are performed.
  • a correction command such as enlargement or reduction, it is possible to correct any window data stored in the frame memory.

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Closed-Circuit Television Systems (AREA)
  • Image Analysis (AREA)
  • Image Processing (AREA)

Abstract

This invention is to easily correct window data that masks undesired portions in the visual field of a visual sensor. A memory (1) for setting window data stores window data that represents a window region (2). Window region display means (4) causes a display unit (3) to graphically display the window region (2) represented by the window data. Cursor display means (7) causes a cursor (6) to move to a position in compliance with the operation of cursor moving keys (5). Instruction data input means (8) produces instruction data related to such processing as parallel translation, turn, expansion and contraction. Window data correction means (9) corrects window data in the window data-setting memory (1) indicated by cursor (6) responsive to instruction data from instruction data input means (8).

Description

明 細 ウ ィ ン ド ウ デ - タ修正装置 技 術 分 野  Fine Window Data Correction Device Technical Field
本発明は、 視覚セ ンサ に おいて視野内の不要部分をマ ス クする ための ウ イ ン ドウ デ - タ の修正装置に関する。 背 景 技 術  The present invention relates to a window data correction device for masking an unnecessary portion in a visual field in a visual sensor. Background technology
従来、 部品の欠陥検査等の 目 的で、 画像の 自動処理が 行なわれている。 例えば、 ベ ル ト コ ンベア上を搬送され る物品の画像を取 ]?込み、 量子化.し、 細め処理等の前処 理、 更には輪郭抽出, 特徴抽出等の処理を行 つた後基 準デ - タ と の比較に よ ]9 欠陥の有無等を判定する も のが ある。 この よ う な シ ス テ ムでは、 視覚セ ン サ に よ ]9捉え た画像の う ち画像処理に不要な部分や不都合な部分を除 去するため、 ウ ィ ン ド ウ デ - タ設定用メ モ リ か ら読出 し たウ イ ン ドウ デ - タ と撮像信号との論理積を と る こ とに よ ]9 ゥ ィ ン ドウ領域内の画像のみを処理対象と する こ と が多い。  Conventionally, automatic processing of images has been performed for the purpose of defect inspection of parts and the like. For example, an image of an article conveyed on a belt conveyor is taken in, quantized, preprocessed such as thinning, and further processed after contour extraction and feature extraction. By comparing with the data] 9 There are some that judge the existence of defects. In such a system, depending on the visual sensor.] 9 To remove unnecessary or inconvenient parts from the captured image, By taking the logical product of the window data read from the memory and the imaging signal.] 9 の み Only the image in the window area is often processed.
従来、 ウ ィ ン ド ウ デ - タの設定は、 標準的 物品の量 子化画像を C 2!T上に表示させ、 設定し ょ う とする ウ ィ ン ドウ領域の端点を 力 - ソ ルで指定し、 こ の指定された点 で規定される領域に対応する ウイ ン ドウ デ - タ設定用メ モ リ の領域に例えば " 1 " を記憶する方法や、 或は、 ウ イ ン ド ウ領域を白色, 他の領域を黒色に塗 ] 9つぶ したバタ - ンを撮像装置の視野内に置き、 この撮像信号を 2 値化 した信号を前記ウ イ ン ドウ デ - タ設定用メ モ リ に書込む こ と で行なわれている。 Conventionally, window data has been set by displaying a quantized image of a standard article on C2! T, and by setting the end point of the window area to be set. Window data corresponding to the area defined by this specified point. For example, a method of storing "1" in the memory area, or by painting the window area white and the other areas black], puts 9 patterns in the field of view of the imaging device, This is performed by writing a signal obtained by binarizing the imaging signal into the window data setting memory.
と こ ろで、 ある ウ ィ ン ド ウ デ― タを上述の よ う な方法 で設定した後に、 その ウ ィ ン ド ウ デー タ を修正 しよ う と する場合、 従来は上述の よ う ¾設定操作を再度繰返す以 外に方法はな く、 ウ ィ ン ド ウ デー タ を容易に修正 し得 ¾ いと い う 問題点があった。 発 明 の 開 示  In this case, if a window data is set in the above-described manner and then the window data is to be modified, the conventional method is as described above. There was no other way but to repeat the setting operation again, and there was a problem that the window data could be easily modified. Disclosure of the invention
本発明は この よ う ¾従来の問題点を解決したも ので、 その 目的は、 一旦設定 したウ ィ ン ド ウ デ - タ を簡単な操 作で修正 し得る よ う にする こ とに ある。  The present invention has solved such a conventional problem, and an object of the present invention is to make it possible to correct window data once set by a simple operation.
本発明は上記問題点を解決する ために、 第 1 図に示す よ う に、 ウ ィ ン ド ウ デ― タ設定用 メ モ リ 1 か ら読出 した ウ イ ン ド ウ デー タ と撮像信号との論理積を と る こ と に よ ) ウ イ ン ドウ処理された撮像信号を得る視覚セ ン サに、 ウ イ ン ド ウ デー タ設定用 メ モ リ 1 に記憶された ウイ ン ド ゥ デ ー タ の示す ウ イ ン ド ウ領域 2 を表示装置 5 に グ ラ フ イ ツ ク表示する ウ ィ ン ド ウ領域表示手段 4 と、 力 - ソ ル 移動キ - 5 と、 力 - ソ ル移動キ - 5 の操作に応 じた表示 装置 3 の表示位置に 力 - ソ ル ό を窣示する 力 - ソ ル表示 手段 7 と、 平行移動, 回転, 拡大, 縮小の少な く と も一 つの処理に関する 指令デ - タ を入力するための指令デ - タ.入力手段 8 と、 こ の指令デ - タ入力手段 8 で入力され た指令デ - タ に応 じて 力 - ソ ル 6 が指示する ウ イ ン ドウ デー タ設定用メ モ リ 1 内の ウ ィ ン ド ウ デー タ を修正する ウ イ ン ドウ デー タ修正手段 9 と を設ける。 In order to solve the above problem, the present invention, as shown in FIG. 1, uses a window data read from a window data setting memory 1 and an image pickup signal. The window sensor stored in the window data setting memory 1 is applied to the visual sensor that obtains the window-processed imaging signal. Window area display means 4 for graphically displaying the window area 2 indicated by the data on the display device 5, a force-sol movement key-5, and a force-sol movement Display according to key-5 operation A force-sol display means 7 for displaying the force-sol at the display position of the device 3 and a command data for inputting command data relating to at least one of translation, rotation, enlargement, and reduction processing. Command data; input means 8; and window data setting memory designated by force-sol 6 in accordance with the command data input by the command data input means 8. Window data correcting means 9 for correcting the window data in 1 is provided.
ある ウ ィ ン ド ウ デー タ を修正する場合、 ウ ィ ン ド ウ デ — タ設定メ モ リ 1 に記憶された ウ ィ ン ド ウ デ ― タ の示す ウ ィ ン ド ウ 領域 2 を表示装置 3 に表示させ、 力 - ソ ル移 動キ - 5 を操作して 力 - ソ ル. ό をその ウイ ン ドウ領域内 に移動させる。 そ して、 指令デ - タ入力手段 8 よ ]) 例え ば拡大せよ との指令を'入力する と、 ウ ィ ン ド ウ領域修正 手段 9 に よ 力 - ソ ル ό が指示する ウイ ン ド ウ デ— タ設 定用 メ モ リ 1 内の ウ ィ ン ド ウ デ - タ がそれに応 じて拡大 される。 同様に、 平行移動指令, 回転指令, 縮小指令を 入力する こ と でウ イ ン ド ウ デー タ がその よ う に修正され る Ο 図 面 の 簡 単 説 明  To modify certain window data, display the window area 2 indicated by the window data stored in the window data setting memory 1. 3 is displayed, and the force-sol. Key 5 is operated to move the force-sol. に into the window area. Command data input means 8)] For example, when a command to enlarge is input, the window area correction means 9 outputs a command to the window. The window data in the data setting memory 1 is enlarged accordingly. Similarly, window data is corrected in such a way by inputting a parallel movement command, rotation command, or reduction command. [Simplified explanation of drawings]
第 1 図は本発明の構成説明図、 第 2 図は本発明の ウイ ン ド ウ デー タ修正装置を有する視覚セ ンサ処理 シス テ ム の要部 ブ ロ ッ ク図、 第 5 図は ウ ィ ン ド ウ領域設定用 パタ - ンの平面図、 第 4 図は本発明の動作説明図、 第 5 図は ウ ィ ン ド ウ修正処理の フ ロ — チ ヤ - ト である。 発明を実施する為の最良の形態 第 2 図は本発明の ウ イ ン ド ウ デー タ修正装置を有する 視覚セ ンサ処理シ ス テ ム の要部ブ ロ ッ ク図であ ]?、 11 は 等の撮像装置、 12 は撮像信号をディ ジタル値に変換 する 変換器、 13 は AZD変換器 12 の出力 と 基準値 と を比較 して "1 ","0" で表された 2 値化撮像信号を生成 する 2 値化回路、 14 は 2 値化回路 13 の出力を切換信号 SEL 1 の レ ベ ル に応じて、 シ リ ア ル パ ラ レル変換器 15 かア ン ド回路 10 に入力する切換回路、 17 は切換信号 SEL2 の レ ベ ルに応 じて シ リ ア ル パ ラ レ ル変換器 15 の 出力かデ - タ バ ス 18 からのデ - タ を選択する切換回路 1 は切換回路 17 の出力がデ - タ 入力端子に加わる ウイ ン ド ウ デー タ設定用の フ レ ー ム メ モ リ 、 20 は ウ ィ ン ド ゥ処理された画像信号を記憶する フ レ - ム メ モ リ で、 両 フ レ - ム メ モ リ は同一の ァ ド レス空間を有する。 21 は 撮像装置 10 の垂直同期信号, 水平同期信号と フ レ - ム メ モ リ 19,20 の ァ ド レ スを発生する ア ド レ ス発生回路、 22 は切換信号 SELる の レベ ル に応 じてァ ド レ ス発生回路 21 の出力ァ ド レ ス力 ァ ド レ ス ノ ス 23 のァ ド レ スを フ レ - ム メ モ リ 19,20 に出力する切換回路、 24 は切換信号 SELA の レ ベ ル に応 じて フ レ ー ム メ モ リ 19 の 出力をパ ラ レ ル シ リ ア ル変換器 25 か入力バ ッ フ ァ回路 20 に送 出する切換回路、 27 はパ ラ レ ル シ リ ア ル変換器 25 の 出力 と切換回路 14 の出力 との論理積を と るア ン ド回路FIG. 1 is an explanatory view of the configuration of the present invention, FIG. 2 is a block diagram of a main part of a visual sensor processing system having a window data correcting device of the present invention, and FIG. Window area setting pattern FIG. 4 is an explanatory view of the operation of the present invention, and FIG. 5 is a flowchart of the window correction processing. BEST MODE FOR CARRYING OUT THE INVENTION FIG. 2 is a block diagram of a main part of a visual sensor processing system having a window data correcting device according to the present invention. 12 is a converter for converting an image signal into a digital value, and 13 is a binarized image represented by “1” and “0” by comparing the output of the AZD converter 12 with a reference value. A binarization circuit 14 for generating a signal, 14 inputs the output of the binarization circuit 13 to the serial / parallel converter 15 or the AND circuit 10 according to the level of the switching signal SEL 1 A switching circuit 17 selects the output of the serial / parallel converter 15 or the data from the data bus 18 in accordance with the level of the switching signal SEL2. Frame memory for window data setting where the output of 17 is applied to the data input terminal, and 20 is the window A frame memory for storing an image signal. Both frame memories have the same address space. Reference numeral 21 denotes an address generating circuit for generating an address of the vertical synchronizing signal and the horizontal synchronizing signal of the imaging device 10 and an address of the frame memories 19 and 20, and 22 corresponds to the level of the switching signal SEL. The output circuit of the address generation circuit 21 is a switching circuit that outputs the address of the address noise 23 to the frame memories 19 and 20, and 24 is the switching signal. A switching circuit for sending the output of the frame memory 19 to the parallel serial converter 25 or the input buffer circuit 20 according to the level of SELA, and 27 is a switching circuit. AND circuit for performing an AND operation on the output of the real-time serial converter 25 and the output of the switching circuit 14
10 の出力が加わる シ リ ア ル パ ラ レ ル変換器、 28 は切 換信号 の レ ベ ル に応 じて シ リ ア ル パ ラ レ ル変換器A serial-parallel converter with 10 outputs added, 28 a serial-parallel converter according to the level of the switching signal
27 の出力デー タかデー タ パス 18 のデ ー タ を フ レ ー ム メ モ リ 20 のデ - タ入力端子に加える切換回路、 29 は フ レ ー ム メ モ リ 20 の出力デー タが加わる入力バ ッ フ ァ 回路、 30 はデー タ バ ス 18, ア ド レ ス ノ、' ス 23, コ ン ト 口 - ル パ ス 31 に よ 周辺回路と接続された CPU、 32は切 換信号 S^LI ~S^L5 を発生する切換信号発生回路、 53は プロ グラ ム等を記憶する ROM、 54 は演算用等に使用す る 2A 、 35 は数字キ ー 、 ア ル フ ァ ベ ッ ト キ ー , 力 - ソ ル移動キ -等の複数の キ - を有する キ - ボ - ド、 30 は CRT コ ン ト ロ ー ラ 、 57 は CRT 、 38 は CPU 30 が周辺回 路をァク セ スする際の選択信号を発生するァ ド レ ス デコ - ダ、 39 は CPU 30 と ア ド レ ス発生回路 21 と の間でや ]9 と ]3 される起動信号, 書込み終了信号のバッ ファ回路 である。 なお、 コ ン ト ロ ー ル ノく ス 31 から フ レ ー ム メ モ リ 19,2Q に ラ イ ト リ 一 ド選択信号 WZ ? が加えられて いる。 A switching circuit that applies 27 output data or data path 18 data to the frame memory 20 data input terminal, and 29 applies the frame memory 20 output data. The input buffer circuit, 30 is the CPU connected to the peripheral circuit by the data bus 18, address memory, and the control port-31. 32 is the switching signal S. Switching signal generation circuit that generates ^ LI to S ^ L5, 53 is a ROM for storing programs, etc., 54 is 2A used for arithmetic operations, etc., 35 is a numeric key, alphabet key Keyboard with multiple keys such as key, force, and so on, 30 is a CRT controller, 57 is a CRT, and 38 is a CPU that accesses the peripheral circuit. An address decoder 39 for generating a selection signal when performing the operation is provided between the CPU 30 and the address generation circuit 21, and between 9 and 3 the start signal and the write end signal. It is a file circuit. In addition, from the control node 31, a frame selection memory 19, 2Q is provided with a light selection signal WZ ?.
本シ ス テ ム の動作は大別 して次の 4 つに分け られる。 " (ό) The operation of this system is roughly divided into the following four. "(ό)
① ウ イ ン ド ウ デー タ の設定動作 ① Window data setting operation
② ウ ィ ン ド ウ デー タ の修正動作  ② Window data correction operation
③撮像信号の ウ イ ン ドウ処理動作  (3) Window processing of image signal
④ゥ ィ ン ド ウ処理された撮像信号の解析処理  解析 Analysis processing of windowed image signals
本発明は上記②の改良に関する ものであ るが、 本発明 の理解を容易にする ために以下順次その動作を説明する , ①ウ イ ン ドウ デ— タ の設定処理  The present invention relates to the above-mentioned improvement (1), but its operation will be sequentially described below to facilitate understanding of the present invention. (1) Window data setting processing
フ レ ー ム メ モ リ 19 に ウ ィ ン ド ウ デー タ を設定する場 合、 先ず第 3 図に示すよ う に、 設定 し ょ う とする ウ ィ ン ド ウ領域 50 ~52 を白色に し、 背景を黒色と したパ タ ー ン 55 を、 各々の ウ イ ン ドウ領域 50 ~ 52 が撮像装置 11 の視野内の所望の場所に位置する よ う に配置する。 そし て、 キ ー ボ - ド 55 から ウ ィ ン ドウ デー タ の設定指令を 入力する。 CKT30 はこの指令が入力される と、 切換回路 When setting window data in the frame memory 19, first, as shown in FIG. 3, the window areas 50 to 52 to be set are colored white. Then, the pattern 55 having a black background is arranged such that each of the window regions 50 to 52 is located at a desired position in the field of view of the imaging device 11. Then, a window data setting command is inputted from the keyboard 55. When this command is input, the switching circuit
14 の 出力と切換回路 17 の入力を シ リ アルパ ラ レル変換 器 15 側に、 切換回路 22 の入力をア ド レ ス発生回路 21 側にそれぞれ切換え、 ま た フ レ - ム メ モ リ 19 に ラ イ ト 信号 Wを送出 したの ち、 起動信号を ア ド レ ス発生回路 21 へ送出する。 これに よ j? ア ド レ ス発生回路 21 は撮像装 置 11 へ送出 している同期信号に同期して フ レ - ム メ モ リ 19 の先頭ァ ド レス か ら最終ァ ド レス ま でのァ ド レ ス を順次発生する。 パタ - ン 53 の撮像信号 変換器 12 でデ ィ ジ タ ル量に変換され且つ 2 値化回路 13 で ウ ィ ン ドウ領域 51: 〜 52 が " 1 " , 背景が " 0" とな る 2 値化撮像 信号が発生され、 これが切換回路 14 を介 して シ リ ア ル パ ラ レル変換器 15 に入力され、 こ こで 8 ビッ ト の並列 デ - タ に変換されて切換回路 17 を通して フ レ - ム メ モ リ 19 のデ - タ 端子に入力される。 そして、 このデ - タ がァ ド レ ス発生回路 21 で発生されたァ ド レ ス に順次記 憶される。 ア ド レ ス発生回路 21 は、 フ レ ー ム メ モ リ 19 の先頭番地か ら最終番地ま での ァ ド レ スを順次発生 し終 える と、 面像取 ]? 込み終了信号を び 30 に送出 し、 これ を認識する こ と で C び 30 は ウ イ ン ド ウ デ— タの設定終了 を図示 しない ラ ンプ等を点灯させてォペ レ - タ に通知す る O The output of 14 and the input of the switching circuit 17 are switched to the serial / parallel converter 15 side, the input of the switching circuit 22 is switched to the address generation circuit 21 side, and the frame memory 19 is switched. After transmitting the light signal W, the activation signal is transmitted to the address generation circuit 21. The j? Address generation circuit 21 synchronizes with the synchronization signal sent to the imaging device 11 from the first address to the last address of the frame memory 19. Addresses are generated sequentially. The image signal is converted into a digital amount by the image signal converter 12 of the pattern 53, and the signal is converted by the binarization circuit 13 into a win. A doWn area 51: a binary imaging signal in Which? 52 are "1" and the background is "0" is generated, and this is input to the serial / parallel converter 15 via the switching circuit 14, and Here, the data is converted into 8-bit parallel data and input to the data terminal of the frame memory 19 through the switching circuit 17. This data is sequentially stored in the address generated by the address generation circuit 21. When the address generation circuit 21 has sequentially generated an address from the start address to the end address of the frame memory 19, the address generation circuit 21 outputs the image capture end signal and the end signal. C and 30 notify the operator by illuminating a lamp (not shown) indicating the end of window data setting by recognizing this.
¾お、 ウ ィ ン ド ウ デー タ を上記と 別の方法で設定する こ と も 可能である。  ¾ It is also possible to set the window data in a different way from the above.
② ウ イ ン ド ウ デ— タ の修正動作 ② Window data correction operation
上述の よ う な操作で フ レ - ム メ モ リ 19 に一旦設定し たウ イ ン ドウ デー タ を修正するには、 先ずキ - ボ - ド 55 力 ら フ レ - ム メ モ リ 19 の内容を CPT57 の画面に表示す る指令を入力する。 CPUる 0 は この指令が入力される と、 切換回路 22 の入力をア ド レ ス バ ス 23 側に、 切換回路 24 の CPU を デー タ バ ス 18 側にそれぞれ切換える と共に、 フ レ ー ム メ モ リ 19 に リ ー ド信号 を送出 し、 フ レ ー ム メ モ リ 19 の内容を読出す為のア ド レ スを切換回路 22 を介 してフ レ - ム メ モ リ 19 に入力する。 そして、 入力 バッ フ ァ回路 20 の内容を読取 ]? これを CRT コ ン ト 口 - ラ 50 に順次送出する。 この動作に よ CRT57 の画面に は例えば第 4 図に示す よ う に、 フ レ - ム メ モ リ 19 に記 憶された ウ イ ン ド ウ デ― タ の示すウ イ ン ドウ領域 50〜52 がグ ラ フ ィ ッ ク表示される。 To correct the window data once set in the frame memory 19 by the operation as described above, first, the keyboard 55 is used to modify the frame memory 19. Enter a command to display the content on the CPT57 screen. When this command is input, the CPU 0 switches the input of the switching circuit 22 to the address bus 23 side, switches the CPU of the switching circuit 24 to the data bus 18 side, and sets the frame memory. Sends a read signal to the memory 19 and switches the address for reading the contents of the frame memory 19. To the frame memory 19 via. Then, the contents of the input buffer circuit 20 are read] ?, which are sequentially transmitted to the CRT controller 50. Due to this operation, the window of the CRT 57 displays the window area 50 to 52 indicated by the window data stored in the frame memory 19 as shown in FIG. 4, for example. Is displayed graphically.
次に、 オ ペ レー タはこの表示を見 が ら ウ ィ ン ド ウ 領 域を修正するのであるが、 フ レ - ム メ モ リ 19 に記憶さ れた ウ イ ン ドウ 領域 50~52 の内のどの ウ イ ン ドウ領域を 修正対象 とするかを指定するために、 キ - ボ - ド 35 の 力 - ソ ル移動キ - を操作して第 4 図に示す よ う に修正 し よ う とする ウ ィ ン ド ウ領域内に 力 - ソ ル 54 を移動する。 なお、 力 - ソ ル 00 の表示は、 力 - ソ ル移動キ - の押し 下げ等に よって カ ウ ン ト ア ッ プされる内部カ ウ ン タ の値 に対応した表示位置に 力 一 ソ ルを表示すべき信号を CPU 30 か ら C 2r コ ン ト 口 - ラ 30 へ送出する こ とで行なわれ O  Next, the operator corrects the window area while seeing this display. The operator corrects the window area in the window area 50 to 52 stored in the frame memory 19. In order to specify which window area in the target is to be corrected, operate the force of the keyboard 35-the move key as shown in Fig. 4 to make the correction. Move force-sol 54 into the window area. The display of force-sol 00 is displayed at the display position corresponding to the value of the internal counter that is counted up by depressing the force-sol movement key. Is sent from the CPU 30 to the C2r controller-
修正の仕方には平行移動, 回転, 拡大, 縮小の 4 つの モ - ドがあ ]? 、 修正内容に応 じて自 由に選択する こ とが でき る。 各モ - ドにおける指令は例えば次の よ う な フォ - マ ッ ト を使用する。  There are four modes of correction: translation, rotation, enlargement, and reduction.], And you can freely select according to the contents of the correction. The commands in each mode use the following format, for example.
平行移動 X ……, F …… Translation X ……, F ……
回 転 ROT 拡大, 縮小 MUL …… Rotation ROT Enlargement, reduction MUL ……
こ こ で、 X ······ , Y … は、 ウ イ ン ド ウ領域を Z方向 Here, X ·······, Y… indicates the window area in the Z direction.
( 画面右方向 ) に幾ら移動させるか、 : Γ方向 ( 画面上方 向 ) に幾 ら移動させるかを指定する コ - ドであ ]?、 ROT …… は ウ イ ン ドウ 領域の重心を 中心と して右方向に何度 回転させるかを指定する コ - ドであ 、 MIL …… は ウ イ ン ド ウ領域を何倍に拡大, 縮小するかを指定する コ - ド であ る。 この よ う な指令を入力する こ と で、 力 - ソ ルで 指定したウ ィ ン ド ウ 領域を修正する こ とができ る。 _ 第 5 図は上記指令が入力された際の CPび 3 0の処理の一 例を示すフ ロ ー チ ヤ - ト である。 CPUはキ ー ボ ー ド 3 5 か ら上記指令が入力される と、 その指令が平行移動指令 か, 回転指令か, 拡大, 縮小指令かを判別 し、 平行移動 指令の場合は 力 - ソ ル が指示する フ レ - ム メ モ リ 1 9 内 の ウイ ン ドウ領域の記憶場所を指令された平行移動量分 だけ平行移動 し、 回転指令の場合は同様に 力 - ソ ル で指 示された ウ イ ン ド ウ領域の記憶場所を指令された回転角 だけ回転した場所に移動 し、 拡大, 縮小指令の場合は力 - ソ ル で指示された ウ イ ン ドウ 領域の記憶場所を指令さ れた倍率に応 じて拡大する。 この よ う に動作は、 フ レ - ム メ モ リ 1 9 の内容を順次読取 ]9 、 力 - ソ ル で指示され たウ ィ ン ド ウ デ - タ群の当初の記憶場所を識別 し、 該記 憶場所と 指令された平行移動量, 回耘角, 倍率か ら修正 後の ウ ィ ン ド ウ デー タ 群の専有する記憶場所を求め、 切 換回路 17 をデ - タ バス 18 側に切換えて前記で求めた記 憶場所に のデ - タ を順次記憶 してい く と共に元の ゥ ィ ン ドウ デー タ を " か ら "0 " に反転させる こ と で行 ¾ われる。 (To the right of the screen) or: コ A code to specify how much to move in the (upward direction of the screen)], ROT… is centered on the center of gravity of the window area MIL …… is a code that specifies how many times the window area is enlarged or reduced. By entering such a command, the window area specified by the force-solar can be modified. _ Fig. 5 is a flowchart showing an example of the processing of the CP 30 when the above command is input. When the above command is input from the keyboard 35, the CPU determines whether the command is a parallel movement command, a rotation command, an enlargement / reduction command, and in the case of a parallel movement command, a force-solar command. The memory location of the window area in the frame memory 19 specified by the command is translated in parallel by the specified amount of translation, and in the case of a rotation command, it is also indicated by force-sol. Moves the storage location of the window area to the location rotated by the commanded rotation angle. In the case of enlargement / reduction command, the storage location of the window area specified by force-sol is instructed. Enlarge according to the magnification. In this way, the operation is to sequentially read the contents of the frame memory 19,9) to identify the initial storage location of the window data group indicated by the force-sol, Corrected from the storage location and the specified amount of translation, tillage angle, and magnification The storage location exclusive for the later window data group is determined, and the switching circuit 17 is switched to the data bus 18 side to sequentially store the data in the storage location determined above. This is performed by inverting the original window data from "0" to "0".
ま た、 フ レ - ム メ モ リ 19 に記憶された他の ウ ィ ン ド ゥ デ - タ を修正する場合には前述と 同じ操作を繰返す。 ③撮像信号の ウ イ ン ド ウ処理動作  To modify other window data stored in the frame memory 19, the same operation as described above is repeated. (3) Window processing operation of image signal
キ ー ボ - ド 35 から ウ ィ ン ド ウ処理指令を入力する と CPU50 は切換回路 14 の CPU をア ン ド回路 10 側に、 切 換回路 28 の入力を シ リ ア ルパ ラ レル変換器 27 側に、 切換回路 22 をァ ド レ ス発生回路 21 側に、 切換回路 24 をパ ラ レ ル シ リ ア ル変換器 25 側にそれぞれ切換え、 フ レ ー ム メ モ リ 20 に ラ イ ト 信-号を、 フ レ ー ム メ モ リ 19 に リ ― ド信号を送出 し、 ア ド レ ス発生回路 21 に起動信 号を送出する。 これに よ ]9 ア ド レ ス発生回路 21 は、 フ レ ー ム メ モ リ 19,20 の先頭ァ ド レ ス か ら最終ァ ド レ スま での ア ド レ ス を順次発生する。 撮像信号で撮像された対 象物体の 2 値化画像信号は、 切換回路 14 を介 してア ン ド回路 10 の一方の入力に加え られてお ]?、 他方の入力 には フ レ ー ム メ モ リ 19 の 出力をパ ラ レ ル シ リ ア ル変換 器 25 でシ リ ア ルデ - タに変換され ウ イ ン ドウ デー タ が加えられてお ]?、 このア ン ド回路 10 で両者の論理積 がと られて ウ イ ン ド ウ 領域内の 2 値化撮像信号のみがつ ま ]9 ウ イ ン ドウ処理された撮像信号のみが フ レ - ム メ モ リ 20 に記憶される。 When a window processing command is input from the keyboard 35, the CPU 50 sets the CPU of the switching circuit 14 to the AND circuit 10 side and the input of the switching circuit 28 to the serial / parallel converter 27. The switching circuit 22 is switched to the address generation circuit 21 and the switching circuit 24 is switched to the parallel serial converter 25, and the frame memory 20 is lighted. The-signal is sent to the frame memory 19 and the start signal is sent to the address generation circuit 21. [9] The address generation circuit 21 sequentially generates addresses from the first address to the last address of the frame memories 19 and 20. The binarized image signal of the target object imaged by the imaging signal is applied to one input of the AND circuit 10 via the switching circuit 14, and a frame is input to the other input. The output of the memory 19 is converted to serial data by the parallel-serial converter 25 and window data is added.], And both are output by the AND circuit 10. AND of Then, only the binarized image signal in the window area is stored.] 9 Only the image-processed image signal is stored in the frame memory 20.
④ウ イ ン ドウ処理された撮像信号の解析処理  解析 Analysis of windowed image signal
これは、 切換回路 22 をァ ド レ ス バ ス 23 側に切換え て、 フ レ ー ム メ モ リ 20 に リ ー ド信号 を送出 し、 ア ド レ ス バ ス 25 力 ら フ レ ー ム メ モ リ 20 に読出 しア ド レ ス を送出する こ とで フ レ — ム メ モ リ 20 の内容を CPU5Qが 読取 ]?、 この読取ったデ - タ を処理する こ とに よ 行る われる。  This means that the switching circuit 22 is switched to the address bus 23 side, a read signal is transmitted to the frame memory 20, and the frame memory is output from the address bus 25. By sending the read address to the memory 20, the contents of the frame memory 20 are read by the CPU 5Q], and the read data is processed.
以上説明 した よ う に、 本発明に よれば、 設定 した ウ イ ン ドウ領域を表示装置に表示させ、 対象とする ウ イ ン ド ゥ領域内に 力 - ソ ルを移動させ、 平行移動, 回転, 拡大 縮小と いった修正指令を入力するだけで、 フ レ - ム メ モ リ に記憶された任意の ウ イ ン ド ウ デ― タ を修正する こ と がで き る効果がある。  As described above, according to the present invention, the set window area is displayed on the display device, and the force-solar is moved within the target window area, and the translation and rotation are performed. By inputting a correction command such as enlargement or reduction, it is possible to correct any window data stored in the frame memory.

Claims

請 求 の 範 囲 ウ ィ ン ド ウ デー タ設定用メ モ リ か ら読出 した ウ ィ ン ド ゥ デー タ と撮像信号と の論理積を と る こ とに よ ]9 ウ イ ン ドウ 処理された撮像信号を得る視覚セ ンサにおける前記 ウ ィ ン ド ウ デ - · タ の修正装置において、 前記ウ ィ ン ド ウ デー タ設定用メ モ リ に記憶された ウ イ ン ド ウ デー タ の示 す ウ イ ン ドウ領域を表示装置にグラ フ ィ ッ ク表示する ゥ イ ン ト:ゥ領域表示手段と、 力 - ソ ル移動キ - と、 該カ - ソ ル移動キ - の操作に応 じた前記表示装置の表示位置に カ - ソ ルを表示する カ --ソ ル表示手段と、 平行移動, 回 転, 拡大, 縮小の少な く と も一つの処理に関する 指令デ - タ を入力するための指令デ - タ入力手段と、 該指令デ - タ 入力手段で入力された指令デ - タに応 じて前記力 - ソ ルが指示する前記 ウ イ ン ド ウ デー タ設定用 メ モ リ 内の ウ ィ ン ド ウ デ― タ を修正する ウ ィ ン ド ウ デ - タ修正手段 とを具備 したこ と を特徴と する ウイ ン ドウ デ— タ 修正装 Scope of the request Window data read from the window data setting memory and the logical product of the image signal and the imaging signal are taken.] 9 Window processing In the window data correction device of the visual sensor for obtaining the captured image signal, an indication of the window data stored in the window data setting memory is provided. The window area is graphically displayed on the display device. ゥ Int: ゥ In response to the operation of the area display means, the force-sol move key, and the cursor move key- Cursor display means for displaying a cursor at the display position of the display device, and command data relating to at least one of translation, rotation, enlargement, and reduction processing. Command data input means, and command data input by the command data input means. Window data correcting means for correcting window data in the window data setting memory designated by the force-solder; Window data correction equipment characterized by the following features:
PCT/JP1985/000413 1984-07-23 1985-07-22 Apparatus for correcting window data WO1986001062A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP15264084A JPS6130890A (en) 1984-07-23 1984-07-23 Correcting device of window data
JP59/152640 1984-07-23

Publications (1)

Publication Number Publication Date
WO1986001062A1 true WO1986001062A1 (en) 1986-02-13

Family

ID=15544818

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP1985/000413 WO1986001062A1 (en) 1984-07-23 1985-07-22 Apparatus for correcting window data

Country Status (2)

Country Link
JP (1) JPS6130890A (en)
WO (1) WO1986001062A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
DE4030964A1 (en) * 1990-10-01 1992-04-02 Happich Gmbh Gebr METHOD FOR PRODUCING A PLASTIC MOLDED PART

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5891492A (en) * 1981-11-27 1983-05-31 株式会社日立製作所 Control system of picture display
JPS58140786A (en) * 1982-02-16 1983-08-20 富士通株式会社 Graphic display control system

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5891492A (en) * 1981-11-27 1983-05-31 株式会社日立製作所 Control system of picture display
JPS58140786A (en) * 1982-02-16 1983-08-20 富士通株式会社 Graphic display control system

Also Published As

Publication number Publication date
JPS6130890A (en) 1986-02-13

Similar Documents

Publication Publication Date Title
JP2591292B2 (en) Image processing device and automatic optical inspection device using it
KR910000203B1 (en) Picture processing apparatus
WO1986001062A1 (en) Apparatus for correcting window data
JPH0313592B2 (en)
US4947444A (en) Image processing method and apparatus
JPS58217044A (en) Document editing device
JPS603060A (en) Collecting device for image contour
JP3538208B2 (en) Music score information input device
JPS6027084A (en) Window processing system of picture
JPS632118B2 (en)
JPS6314496B2 (en)
JPS60200375A (en) Template matching system
JPH07296154A (en) Image data recognition device
JPS59148975A (en) Editing device of pattern
JPH06324669A (en) Device and method for composite display control
JPH0311145B2 (en)
JP2864524B2 (en) Image processing device
JPH01102618A (en) Picture information input display device
JPS6238988A (en) Correction device for illuminance unevenness
JPH05165938A (en) Device and method for drawing
JPH10143673A (en) Picture processor
JPH04310997A (en) Image display device
JP2001022518A (en) Controller for computer
JPS6442779A (en) Device for dicriminating pattern by binary image processing
JPS61161088A (en) Picture processing device

Legal Events

Date Code Title Description
AK Designated states

Designated state(s): US

AL Designated countries for regional patents

Designated state(s): DE FR GB