JP7628418B2 - Gain adjustment method, information processing device, and imaging system - Google Patents
Gain adjustment method, information processing device, and imaging system Download PDFInfo
- Publication number
- JP7628418B2 JP7628418B2 JP2020188667A JP2020188667A JP7628418B2 JP 7628418 B2 JP7628418 B2 JP 7628418B2 JP 2020188667 A JP2020188667 A JP 2020188667A JP 2020188667 A JP2020188667 A JP 2020188667A JP 7628418 B2 JP7628418 B2 JP 7628418B2
- Authority
- JP
- Japan
- Prior art keywords
- value
- camera
- information processing
- gain
- processing device
- 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.)
- Active
Links
- 230000010365 information processing Effects 0.000 title claims description 146
- 238000000034 method Methods 0.000 title claims description 52
- 238000003384 imaging method Methods 0.000 title claims description 23
- 238000011156 evaluation Methods 0.000 claims description 105
- 230000008859 change Effects 0.000 claims description 46
- 230000015654 memory Effects 0.000 claims description 30
- 230000000737 periodic effect Effects 0.000 claims description 20
- 238000012545 processing Methods 0.000 description 39
- 230000008569 process Effects 0.000 description 27
- 238000010586 diagram Methods 0.000 description 19
- 238000004891 communication Methods 0.000 description 18
- 230000005856 abnormality Effects 0.000 description 17
- 238000003860 storage Methods 0.000 description 10
- 230000004048 modification Effects 0.000 description 8
- 238000012986 modification Methods 0.000 description 8
- 230000003287 optical effect Effects 0.000 description 8
- 230000032258 transport Effects 0.000 description 8
- 238000004364 calculation method Methods 0.000 description 7
- 230000006870 function Effects 0.000 description 7
- 239000003086 colorant Substances 0.000 description 3
- 238000003754 machining Methods 0.000 description 2
- 238000004519 manufacturing process Methods 0.000 description 2
- 230000002093 peripheral effect Effects 0.000 description 2
- 230000007704 transition Effects 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 238000006243 chemical reaction Methods 0.000 description 1
- 230000000295 complement effect Effects 0.000 description 1
- 125000004122 cyclic group Chemical group 0.000 description 1
- 230000003247 decreasing effect Effects 0.000 description 1
- 238000005242 forging Methods 0.000 description 1
- 239000000463 material Substances 0.000 description 1
- 238000003825 pressing Methods 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 238000011144 upstream manufacturing Methods 0.000 description 1
Images
Landscapes
- Exposure Control For Cameras (AREA)
- Studio Devices (AREA)
Description
本開示は、カメラのゲイン調整方法、カメラのゲインを調整する情報処理装置、およびカメラと情報処理装置とを備える撮像システムに関する。 The present disclosure relates to a camera gain adjustment method, an information processing device that adjusts the camera gain, and an imaging system that includes a camera and an information processing device.
従来、特開2016-39473号公報に示すように、イベントの発生を示す情報を外部から受信したことを契機として、イベントが発生した時刻の前後所定時間に撮像手段が撮像した画像データを記憶手段に記憶させる装置が知られている。 As disclosed in JP 2016-39473 A, a device is known that, upon receiving information indicating the occurrence of an event from outside, stores image data captured by an imaging means at a predetermined time before and after the time the event occurred in a storage means.
また、国際公開第2019/008855号にも開示されているように、プレス機械等の産業機械(生産用機械)の動作をカメラで撮像し、異常が発生した時刻を含む予め定められた設定時間の動画像データを保護するシステムも知られている。 Also, as disclosed in International Publication No. 2019/008855, a system is known in which a camera captures the operation of an industrial machine (production machine) such as a press machine, and protects video data for a predetermined set period of time, including the time when an abnormality occurred.
さらに、適切な明るさの画像を出力するために動画の撮像中にゲインを自動調整するオートゲインコントロール(AGC:Automatic Gain Control)という機能を備えたカメラも知られている。 Furthermore, cameras are also known that have a function called automatic gain control (AGC), which automatically adjusts the gain during video capture in order to output images with appropriate brightness.
たとえばプレス機械では、金型が取り付けられるスライドが一定の周期で上下移動する。このように周期的に動作する部位を有する産業機械の動作をカメラで撮像する場合、カメラの撮像素子に入射する光量は、短い周期で連続的に変化する。 For example, in a press machine, the slide on which the die is attached moves up and down at a constant cycle. When capturing images of the operation of industrial machinery that has parts that move periodically like this with a camera, the amount of light entering the camera's imaging element changes continuously in short cycles.
しかしながら、オートゲインコントロールでは、このような光量の短時間の変化(明るさの変化)に追従したゲイン調整ができない。このような状況で、産業機械に異常が発生すると、ユーザがカメラによる撮像画像(映像)を後から確認したとしても、画像の「黒つぶれ」または画像の「白飛び」により、異常の原因を正確に判別できない状況が生じることがある。 However, auto gain control is unable to adjust the gain to follow such short-term changes in the amount of light (changes in brightness). In such a situation, when an abnormality occurs in industrial machinery, even if the user later checks the image (video) captured by the camera, the cause of the abnormality may not be accurately identified due to "crushed up shadows" or "blown out highlights" in the image.
本開示は、上記の問題点に鑑みなされたものであって、その目的は、周期的に動作する部位を有する産業機器の周囲環境に変化があったときでも、ユーザが許容できる明るさの画像を得ることが可能なゲイン調整方法、情報処理装置、および撮像システムを提供する。 The present disclosure has been made in consideration of the above problems, and its purpose is to provide a gain adjustment method, information processing device, and imaging system that can obtain an image with a brightness that is acceptable to the user, even when there is a change in the surrounding environment of an industrial device that has parts that operate periodically.
本開示のある局面に従うと、情報処理装置によるカメラのゲイン調整方法は、カメラの出力画像についての明るさの評価値の許容範囲を情報処理装置が記憶するステップを備える。カメラは、産業機械に含まれる周期的に動作する部位を撮像するものである。ゲイン調整方法は、許容範囲が記憶された後のカメラによる撮像に基づき、情報処理装置が、出力画像と、出力画像の明るさの評価値の周期的な変化を示したデータとを取得するステップと、情報処理装置が、データから、動作の直近の1周期以上の所定期間における明るさの評価値の最大値および最小値のうちの少なくとも一方の値を取得するステップと、取得した値が許容範囲に含まれていないことを条件に、情報処理装置が、カメラのゲインを調整するステップとをさらに備える。 According to an aspect of the present disclosure, a method for adjusting the gain of a camera by an information processing device includes a step in which the information processing device stores an acceptable range of a brightness evaluation value for an output image of the camera. The camera captures an image of a periodically operating part included in an industrial machine. The gain adjustment method further includes a step in which the information processing device acquires an output image and data indicating a periodic change in the brightness evaluation value of the output image based on the image captured by the camera after the acceptable range has been stored, a step in which the information processing device acquires from the data at least one of a maximum value and a minimum value of the brightness evaluation value for a predetermined period of one or more most recent cycles of the operation, and a step in which the information processing device adjusts the gain of the camera on condition that the acquired value is not within the acceptable range.
本開示の他の局面に従うと、カメラのゲインを調整する情報処理装置は、プロセッサと、カメラの出力画像についての明るさの評価値の許容範囲を記憶したメモリとを備える。カメラは、産業機械に含まれる周期的に動作する部位を撮像するものである。プロセッサは、許容範囲が記憶された後のカメラによる撮像に基づき、出力画像と、出力画像の明るさの評価値の周期的な変化を示したデータとを取得する。プロセッサは、データから、動作の直近の1周期以上の所定期間における明るさの評価値の最大値および最小値の少なくとも一方の値を取得する。プロセッサは、取得した値が許容範囲に含まれていないことを条件に、カメラのゲインを調整する。 According to another aspect of the present disclosure, an information processing device that adjusts the gain of a camera includes a processor and a memory that stores an acceptable range of a brightness evaluation value for an output image of the camera. The camera captures an image of a periodically operating part included in an industrial machine. The processor acquires an output image and data indicating a periodic change in the brightness evaluation value of the output image based on the image captured by the camera after the acceptable range has been stored. The processor acquires from the data at least one of the maximum and minimum values of the brightness evaluation value during a predetermined period of one or more cycles immediately preceding the operation. The processor adjusts the gain of the camera on the condition that the acquired value is not within the acceptable range.
本開示のさらに他の局面に従うと、撮像システムは、産業機械に含まれる周期的に動作する部位を撮像するカメラと、カメラのゲインを調整する情報処理装置とを備える。情報処理装置は、カメラの出力画像についての明るさの評価値の許容範囲を記憶している。情報処理装置は許容範囲が記憶された後のカメラによる撮像に基づき、出力画像と、出力画像の明るさの評価値の周期的な変化を示したデータとを取得する。情報処理装置は、データから、動作の直近の1周期以上の所定期間における明るさの評価値の最大値および最小値の少なくとも一方の値を取得する。情報処理装置は、取得した値が許容範囲に含まれていないことを条件に、カメラのゲインを調整する。 According to yet another aspect of the present disclosure, an imaging system includes a camera that captures an image of a periodically operating part included in an industrial machine, and an information processing device that adjusts the gain of the camera. The information processing device stores an acceptable range of a brightness evaluation value for an output image of the camera. The information processing device acquires an output image and data indicating a periodic change in the brightness evaluation value of the output image based on imaging by the camera after the acceptable range has been stored. The information processing device acquires, from the data, at least one of the maximum and minimum values of the brightness evaluation value during a predetermined period of one or more cycles immediately preceding the operation. The information processing device adjusts the gain of the camera on the condition that the acquired value is not within the acceptable range.
上記の開示によれば、周期的に動作する部位を有する産業機器の周囲環境に変化があったときでも、ユーザが許容できる明るさの画像を得ることが可能となる。 According to the above disclosure, it is possible to obtain images with brightness acceptable to the user even when there is a change in the surrounding environment of an industrial device that has parts that operate periodically.
以下、実施形態について図に基づいて説明する。なお、以下の説明では、同一部品には、同一の符号を付している。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。 The following describes the embodiment with reference to the drawings. In the following description, identical parts are given the same reference numerals. Their names and functions are also the same. Therefore, detailed descriptions of them will not be repeated.
また、以下の実施の形態では、産業機械(生産用機械)の一例として、鍛圧機械の一種であるプレス機械を有するプレスシステムを例に挙げて説明する。なお、産業機械は、プレスシステムに限定されるものではなく、たとえばプレス機械のスライドのように、周期的に動作する部位を備える機械であればよい。 In the following embodiments, a press system having a press machine, which is a type of forging machine, will be described as an example of industrial machinery (production machinery). Note that the industrial machinery is not limited to press systems, and may be any machine that has a part that operates periodically, such as the slide of a press machine.
<A.システム構成>
図1は、本実施の形態に係るプレスシステム1の概略構成を表した図である。
A. System Configuration
FIG. 1 is a diagram showing a schematic configuration of a
図1に示されるように、プレスシステム1は、コイルホルダ10と、レベラフィーダ20と、プレス機械30と、搬送コンベア40と、カメラ61,62とを備えている。プレス機械30は、プレス機械本体31と、プレスコントローラ32とを有する。プレス機械本体31は、本体フレーム311と、ベッド312と、ボルスタ313と、スライド314と、警告灯319とを備える。
As shown in FIG. 1, the
コイルホルダ10には、コイルが巻き付けられておりレベラフィーダ20を介してプレス機械本体31にコイルWが搬送される。本例においては、ワーク(材料,被加工部材)としてコイルWをプレス加工する場合について説明する。
A coil W is wound around the
レベラフィーダ20は、コイルホルダ10からプレス機械本体31に搬送するコイルの送り高さの位置を調整するとともにプレス機械本体31に対してコイルWを所定タイミングで搬送する。
The
プレス機械本体31の本体フレーム311の略中央部には、スライド314が上下動自在に支持されている。スライド314に対する下方には、ベッド312上に取り付けられたボルスタ313が配置されている。スライド314の下面には、上金型316が装着される。ボルスタ313の上面には、下金型315が装着される。
A
プレス機械本体31は、レベラフィーダ20から搬送されたコイルWに対して、加工パターンに従ってプレス加工する。プレス機械本体31は、上金型316と下金型315とから構成される金型に対応するコイルWを下金型315に位置させた後、上金型316をスライド314と共に降下させることにより、プレス加工を行う。
The
プレスコントローラ32は、プレス機械本体31の動作を制御する装置である。プレスコントローラ32は、スライド314を周期的に上下に動作させる。これにより、上金型316も、スライド314の動作に従って周期的に上下に動作する。
The
プレスコントローラ32は、プレス機械本体31を制御するために必要な各種データを入力するものであり、データを入力するためのスイッチやテンキー、および設定画面やプレス機械30から出力されるデータを表示する表示器を有している。
The
プレスコントローラ32は、CPU(Central Processing Unit)、高速数値演算プロセッサ、およびメモリ等を主体に構成され、決められた手順に従って入力データの算術演算および論理演算を行うコンピュータ装置と、指令電流を入出力する入出力インターフェイスとを備えて構成されている。
The
プレスコントローラ32のメモリは、ROM(Read Only Memory)、RAM(Random Access Memory)等の適宜な記憶媒体を含んで構成されている。このメモリは、プレスコントローラ32が各種の機能を実現するためのプログラムが格納されている。なお、当該メモリは、各種演算処理を実行するためのワーク領域としても用いられる。
The memory of the
搬送コンベア40は、プレス機械本体31にてプレス加工により成形した成形品Pを、製品箱50に搬送する。なお、これに限定されず、次のプレス機械に成形品Pを搬送ロボット等を用いて搬送することも可能である。
The
警告灯319は、プレスコントローラ32に接続されている。警告灯319は、プレス機械本体31において異常が発生すると、プレスコントローラ32から送られてくる信号(異常を表すビット)に基づき、点灯するように構成されている。警告灯319は、たとえば、加工工程において異常が発生すると、赤色の光を点滅させる。なお、異常としては、プレス機械本体31の稼働停止、ワークのミスフィード等が挙げられる。
The
カメラ61,62は、プレス機械本体31によるコイルW(ワーク)の加工工程を動画撮影する。カメラ61,62による動画撮影によって得られた動画像データは、情報処理装置80(図2参照)のメモリに記憶される。
The
カメラ61,62は、たとえば、CCD(Charge Coupled Device)カメラである。カメラ61は、プレス機械本体31の外部空間に配置される。カメラ62は、たとえば、プレス機械本体31の内部空間(ワークの加工領域)に配置される。
カメラ61は、下金型315と上金型316とスライド314とに加えて、搬送されるコイルWおよび成形品Pと、警告灯319とを被写体として含むように配置されている。
The
カメラ62は、下金型315と上金型316とスライド314とを被写体として含むように配置されている。カメラ62により、下金型315と上金型316とによるプレス加工の状態を撮像することができる。
The
プレスシステム1では、カメラ61によってプレス工程全体の状態が撮像され、かつカメラ62によって加工状態の詳細が撮像される。
In
なお、プレスシステム1のカメラの数は、2台に限定されるものではない。また、カメラの配置も、上記の配置に限定されるものではない。金型によるプレス加工の状態を撮像可能な構成であることが好ましい。また、プレス加工前後のコイルWおよび成形品Pを撮像可能な構成であることが好ましい。さらに、警告灯319を撮像可能な構成であることが好ましい。
The number of cameras in the
プレスシステム1の各部は同期しており、一連の作業が順次連続して実行される。コイルホルダ10からコイルWがレベラフィーダ20を介してプレス機械本体31に搬送される。そして、プレス機械本体31でプレス加工され、加工されたワーク(成形品P)は搬送コンベア40により搬送される。上記一連の処理が繰り返される。
All parts of the
なお、上記プレスシステム1の構成は、一例であり、特に当該構成に限られるものではない。
Note that the configuration of the
図2は、プレスシステム1を構成する機器の接続関係を説明するための図である。
図2に示されるように、プレスシステム1は、カメラ61,62とプレス機械本体31とプレスコントローラ32とに加えて、ハブ70と、情報処理装置80とをさらに備えている。
FIG. 2 is a diagram for explaining the connection relationship of devices constituting the
As shown in FIG. 2 , the
カメラ61,62は、動画を撮像する。カメラ61,62は、ハブ70を介して情報処理装置80と通信可能に接続されている。カメラ61,62は、Ethernet(登録商標)のケーブル等のLAN(Local Area Network)ケーブルL1,L2によってハブ70に有線接続されている。
The
カメラ61,62は、撮像により得られた動画像データを、ハブ70を介して情報処理装置80に逐次送信する。動画像データは、複数の画像フレームにより構成されている。各画像フレームは、タイムスタンプを含む。
The
ハブ70は、たとえば、PoE(Power over Ethernet)に対応したスイッチングハブである。
プレスコントローラ32は、ハブ70を介する通信経路とハブ70を介さない通信経路との2つの通信経路によって、情報処理装置80に接続している。プレスコントローラ32は、ハブ70を介さない通信経路によって、さらに警告灯319に接続されている。プレスコントローラ32は、ネットワークNWを介して、サーバ装置120と通信可能に構成されている。
The
詳しくは、プレスコントローラ32は、LANケーブルL4によってハブ70に有線接続されている。また、プレスコントローラ32は、ハブ70を介さずに、リアルタイム性の高いI/O(Input/Output)接続ケーブルL9によって、情報処理装置80と警告灯319に接続されている。
More specifically, the
プレスコントローラ32は、プレス機械本体31の運転状態を表した運転情報を、LANケーブルL3,L4を利用し、ハブ70を介して情報処理装置80に逐次送信する。運転状態の一部は、たとえばプレス機械本体31に備えられたセンサ318によって検出される。
The
運転情報は、時刻に関連付けられた情報である。運転情報は、少なくとも、各種の波形データと、各種の入出力信号データ(オン/オフ信号)と、基本情報とを含んでいる。 The operating information is information associated with time. The operating information includes at least various waveform data, various input/output signal data (on/off signals), and basic information.
また、プレスコントローラ32は、プレス機械本体31に異常が発生した場合、I/O接続ケーブルL9によって、ハブ70を介さずに、異常を表したビットを情報処理装置80と警告灯319とに送信する。
In addition, if an abnormality occurs in the
情報処理装置80は、本例では、タブレット端末801と、クレードル802とを含む。タブレット端末801は、クレードル802に設置されている。タブレット端末801は、クレードル802を介して、ハブ70と、プレスコントローラ32とに通信可能に接続されている。クレードル802は、LANケーブルL3によってハブ70に有線接続されている。情報処理装置80は、ハブ70およびネットワークNWを介して、サーバ装置120にアクセス可能である。
In this example, the
情報処理装置80は、プレスコントローラ32から異常を表すビットを受信すると、当該ビットを受信した時刻(異常が発生した時刻)を含む予め定められた設定時間(以下、「設定時間Ts」と称する)の動画像データおよび運転情報を保護する。設定時間Tsとしては、一例として、異常が発生した時刻の直前の5秒間と、当該時刻の直後の15秒とすることができる。
When the
ユーザは、保護された動画像データおよび運転情報を情報処理装置80で確認することにより、異常の内容とともに、異常が発生したときの動画像(映像)を確認することができる。
By checking the protected video data and driving information on the
なお、タブレット端末801およびクレードル802の代わりに、情報処理装置80を、ラップトップ型、デスクトップ型のパーソナルコンピュータとしてもよい。
Instead of the
なお、プレス機械30は、本発明における「産業機械」の一例である。情報処理装置80は、本発明における「情報処理装置」の一例である。カメラ61,62は、本発明における「カメラ」の一例である。カメラ61,62と、情報処理装置80と、ハブ70とからなるシステム構成が、本発明における「撮像システム」の一例である。
The press machine 30 is an example of an "industrial machine" in the present invention. The
スライド314および上金型316は、本発明における「産業機械に含まれる周期的に動作する部位」の一例である。スライド314に上金型316が装着されていない状態では、スライド314および上金型316のうちスライド314のみが、本発明における「産業機械に含まれる周期的に動作する部位」の一例となる。
The
<B.カメラの構成>
図3は、カメラ61,62の機能的構成を表すブロック図である。
<B. Camera Configuration>
FIG. 3 is a block diagram showing the functional configuration of the
図3に示されているように、カメラ61,62は、バンドパスフィルタ604と、カラーフィルタ605と、撮像素子606と、アナログ信号処理部607と、A/D(Analog Digital)変換器608と、デジタル信号処理部609と、通信部610と、ズーム駆動部611と、フォーカス駆動部612と、絞り駆動部613と、撮像素子駆動部614と、制御部615と、撮像光学系630とを備える。アナログ信号処理部607は、AGC(Automatic Gain Control)回路670を含む。
3, the
撮像光学系630は、ズームレンズ601と、フォーカスレンズ602と、絞りユニット603とを有する。ズームレンズ601は、光軸方向に移動して焦点距離を変更する。フォーカスレンズ602は、光軸方向に移動して焦点調節を行う。絞りユニット603は、光量を調整する。
The imaging
撮像光学系630を通過した光は、バンドパスフィルタ604およびカラーフィルタ605を介して、撮像素子606上に被写体像を形成する。被写体像は、撮像素子606によって光電変換される。
Light passing through the imaging
撮像素子606から出力されたアナログ信号は、アナログ信号処理部607によってゲインの調整がなされる。ゲインの調整がなされたアナログ信号は、A/D変換器608によってデジタル信号に変換された後、デジタル信号処理部609に入力される。
The analog signal output from the
デジタル信号処理部609では、デジタル撮像信号に対して各種画像処理を行って映像信号を生成する。映像信号は、通信部610を介して、情報処理装置80に出力される。詳細については後述するが、情報処理装置80は、通信部610を介して、制御部615に指示を送る。
The digital
制御部615は、オートフォーカスでのピント制御の設定値、および露出制御の設定値の算出を行う。制御部615は、アナログ信号処理部607と、ズーム駆動部611と、フォーカス駆動部612と、絞り駆動部613と、撮像素子駆動部614とに対して設定値を指示する。
The
ズーム駆動部611は、制御部615からの指示に基づき、ズームレンズ601の位置を制御する。フォーカス駆動部612は、制御部615からの指示に基づき、フォーカスレンズ602の位置を制御する。絞り駆動部613は、制御部615からの指示に基づき、絞りユニット603の絞りを制御する。撮像素子駆動部614は、制御部615からの指示に基づき、撮像光学系630の光軸に対して撮像素子606を傾ける。
The
アナログ信号処理部607について、さらに詳しく説明する。
アナログ信号処理部607は、AGC回路670を機能させるモードと、AGC回路670の機能を停止させるモードとを有する。
The analog
The analog
アナログ信号処理部607は、制御部615からの指示により、AGC回路670を機能させたり、当該機能を停止させたりする。このような機能のオンおよびオフの切換指示は、カメラ61,62の操作部(図示せず)または情報処理装置80から行うことができる。
The analog
アナログ信号処理部607は、AGC回路670の機能を停止させているときには、予め指定されたゲインで、入力された信号を増幅または減衰させる。当該ゲインの指定は、情報処理装置80から可能である。また、当該ゲインの設定は、カメラ61の操作部に対するユーザ操作によっても可能である。
When the
一方、AGC回路670が機能している場合(以下、「AGCモード」とも称する)には、AGC回路670は、入力された信号に基づき、ゲインを自動で調整する。AGC回路670は、ゲインを上げることにより、入力された信号を増幅する。これにより、AGC回路670は、出力される画像(映像)を明るくする。AGC回路670は、ゲインを下げることにより、入力された信号を減衰させる。これにより、AGC回路670は、出力される画像を暗くする。
On the other hand, when the
AGC回路670は、ゲインを自動的に調整することにより、画像を適した明るさにする。このように、AGC回路670は、自動で画像の明るさを調整する機能(以下、「オートゲインコントロール」とも称する)を有する。
The
プレス機械30では、スライド314が一定の周期で上下移動する。このように周期的に動作する部位を有するプレス機械30の動作をカメラ61で撮像する場合、カメラ61の撮像素子606に入射する光量は、短い周期で連続的に変化する。しかしながら、オートゲインコントロールでは、このような光量の短時間の変化(明るさの変化)に追従したゲイン調整ができない。このため、本実施の形態では、AGC回路670によるオートゲインコントロールをオフ状態としておく。
In the press machine 30, the
さらに、プレス機械30の実運用環境(明るさ等)を考慮して、ユーザがゲインを適切な値に事前設定(指定)する。したがって、アナログ信号処理部607では、指定されたゲイン(固定値)で、入力される信号の増幅処理または減衰処理が行われる。
Furthermore, the user pre-sets (specifies) the gain to an appropriate value, taking into account the actual operating environment (brightness, etc.) of the press machine 30. Therefore, the analog
詳細については後述するが、本例では、情報処理装置80から、ゲインの値を含むゲイン設定の指示が、通信部610を介して制御部615に送られる。制御部615は、情報処理装置80から指示されたゲイン(値)を、アナログ信号処理部607に設定する。これにより、アナログ信号処理部607は、情報処理装置80から指示されたゲインにて、入力される信号の増幅処理または減衰処理を行う。このように、本例では、アナログ信号処理部607におけるゲインが、情報処理装置80によって設定される。
Details will be described later, but in this example, a gain setting instruction including a gain value is sent from the
ところで、上記のようにゲインを設定(固定)した場合、以下のような問題が生じる。たとえば、プレス機械30の自動運転時において、プレス機械30が設置されている建屋からオペレータが退出する際に当該建屋内の照明がオフされた場合、カメラ61、62から出力される画像において「黒つぶれ」が生じるおそれがある。また、当該建屋のカーテンが実運用環境では通常開けられているにもかかわらず閉じられた場合には、カメラ61,62から出力される画像において「黒つぶれ」が生じるおそれがある。逆の態様として、当該建屋のカーテンが実運用環境では通常閉じられているにもかかわらず開けられた場合には、カメラ61,62から出力される画像において「白飛び」が生じるおそれがある。
However, when the gain is set (fixed) as described above, the following problems occur. For example, during automatic operation of the press machine 30, if the lights in the building in which the press machine 30 is installed are turned off when the operator leaves the building, "blackout" may occur in the images output from the
以下では、主として、このような「黒つぶれ」および「白飛び」といった現象の発生を抑制するための構成および処理を説明する。 Below, we will mainly explain the configuration and processing for suppressing the occurrence of such phenomena as "blackout" and "whiteout."
<C.情報処理装置のハードウェア構成>
図4は、情報処理装置80のハードウェア構成の例を表した図である。
<C. Hardware configuration of information processing device>
FIG. 4 is a diagram showing an example of a hardware configuration of the
図4に示されるように、情報処理装置80は、プロセッサ81と、メモリ82と、通信IF(Interface)83,84と、ディスプレイ85と、タッチパネル89とを備える。なお、ディスプレイ85と、タッチパネル89とで、タッチスクリーンが構成される。
As shown in FIG. 4, the
メモリ82は、一例として、ROM(Read Only Memory)821と、RAM(Random Access Memory)822a,822bと、フラッシュメモリ823とを含む。なお、メモリ82は、フラッシュメモリ823の代わりに、あるいはフラッシュメモリ823に加えて、HDD(Hard Disc Drive)を含んでいてもよい。
The
通信IF83は、ハブ70と通信するためのインターフェイスである。通信IF84は、プレスコントローラ32と通信するためのインターフェイスである。
The communication IF 83 is an interface for communicating with the
プロセッサ81は、メモリ82に記憶されたオペレーティングシステムおよび各種のプログラムを実行する。プロセッサ81は、ディスプレイ85に各種の情報を表示させる(図6参照)。
The
RAM822a,822bは、巡回メモリとも称されるメモリである。プロセッサ81は、RAM822aに動画像データを記憶させる。プロセッサ81は、RAM822bに上述した運転情報を記憶させる。
プロセッサ81は、RAM822aの空き容量が不足すると最も古いデータを最新のデータで上書きする方式によって、カメラ61,62による動画撮影によって得られた動画像データをRAM822aに順次記憶する。プロセッサ81は、典型的には、RAM822aのメモリ領域を2つの領域に分けて、一方にカメラ61による動画像データを記憶させ、かつ他方にカメラ62による動画像データを記憶させる。
The
また、プロセッサ81は、RAM822bの空き容量が不足すると最も古いデータを最新のデータで上書きする方式によって、運転情報をRAM822bに順次記憶する。プロセッサ81は、典型的には、RAM822bのメモリ領域を複数の領域に分けて、運転情報に含まれる各種のデータを領域ごとに区分して記憶させる。
In addition, the
なお、上記では、RAM822aとRAM822bとを備える構成であるが、これに限定されるものではない。プロセッサ81が1つのRAMにおけるメモリ空間の領域を区分して管理する構成の場合、RAMは1つでもよい。また、データ種別毎にRAMを設けてもよい。
In the above, the configuration includes RAM 822a and
なお、プロセッサ81は、本発明における「プロセッサ」の一例である。
<D.ゲインの調整処理>
(d1.全体的な処理の流れ)
以下では、カメラ61,62のうち、カメラ61のゲイン調整を例に挙げて説明する。なお、カメラ62においてもカメラ61と同様のゲイン調整が行われるため、カメラ62のゲイン調整については繰り返し説明しない。
The
<D. Gain Adjustment Processing>
(d1. Overall processing flow)
In the following, an example of gain adjustment of the
図5は、情報処理装置80で実施されるカメラ61のゲイン調整の処理の流れを説明するためのフロー図である。
Figure 5 is a flow diagram for explaining the process flow of the gain adjustment of the
図5に示されているように、ステップS1において、ゲインの初期値の設定がなされる。詳細については後述するが、ステップS1においては、情報処理装置80を介したユーザ操作に基づき、カメラ61のゲインの初期値が設定される。アナログ信号処理部607におけるゲインの初期値が設定される。なお、ステップS1の処理が、プレス機械30の実運用環境(明るさ等)を考慮した、ユーザによるゲインの事前設定処理に対応する。
As shown in FIG. 5, in step S1, the initial gain value is set. Details will be described later, but in step S1, the initial gain value of the
ステップS2において、情報処理装置80において、カメラ61の出力画像についての明るさの評価値の許容範囲が設定される。典型的には、情報処理装置80において、カメラ61の出力画像についての明るさの評価値の上限値と下限値とが設定される。
In step S2, the
「出力画像の明るさの評価値」とは、カメラ61のデジタル信号処理部609から出力される画像の明るさを示す値である。たとえば、出力画像の明るさの評価値は、画素値で規定される。
The "evaluation value of brightness of the output image" is a value indicating the brightness of the image output from the digital
カメラ61がカラー画像をモノクロ画像(典型的には、256階調のグレースケール画像)に変換し、モノクロの画像を情報処理装置80に出力する場合には、「出力画像の明るさの評価値」は、カメラ61の各有効画素の画素値に基づき規定される。この場合、「出力画像の明るさの評価値」は、本例では各有効画素の画素値の平均をとるため、0から255までの範囲内の数値となる。なお、カメラ61が、カラーフィルタ605を備えていない場合には、上記の変換処理は不要である。
When the
カメラ61がカラーの映像(典型的には、RGBのカラー画像)を出力する場合には、「出力画像の明るさの評価値」は、補間処理を行った後の画素値に基づき規定される。
When the
以下では、説明の便宜上、カメラ61がモノクロ画像を情報処理装置80に出力する場合を例に挙げて説明する。カメラ61がカラー画像を出力する場合については、変形例で説明する。
For ease of explanation, the following will be described using an example in which the
ステップS3において、ゲインの更新処理がなされる。詳しくは、情報処理装置80がゲインを調整し、調整後のゲインとなるように、カメラ61に指示を送る。なお、ステップS3の処理が、「黒つぶれ」および「白飛び」の発生を抑制するための処理に対応する。
In step S3, a gain update process is performed. More specifically, the
以下では、図6~図8に基づき、ステップS1およびステップS2の処理の詳細を説明する。さらに、図9~図12に基づき、ステップS3の処理の詳細を説明する。 The following describes the details of the processing in steps S1 and S2 with reference to Figures 6 to 8. Furthermore, the following describes the details of the processing in step S3 with reference to Figures 9 to 12.
(d2.ステップS1およびS2の詳細)
図6は、出力画像の明るさの評価値の算出方法を説明するための図である。なお、以下では、便宜上、「出力画像の明るさの評価値」を「明るさの評価値M」とも称する。
(d2. Details of steps S1 and S2)
6 is a diagram for explaining a method for calculating an evaluation value of brightness of an output image. Note that, hereinafter, for convenience, the "evaluation value of brightness of an output image" is also referred to as the "evaluation value M of brightness."
図6に示すように、カメラ61の有効画素の縦方向(Y方向)の個数がH個、横方向(X方向)の個数がW個とする。この場合、カメラ61の撮像素子606には、H×W個の有効画素が存在する。また、図6では、各画素の画素値を、d(i,j)で表している(0≦i≦H-1,0≦j≦W-1)。
As shown in FIG. 6, the number of effective pixels in the vertical direction (Y direction) of the
本例では、明るさの評価値Mを、以下の式(1)を用いて算出する。
M=ΣΣd(i,j)÷(H×W) … (1)
なお、式(1)のΣΣの項の計算では、iおよびjのすべての組み合わせの和をとる。すなわち、ΣΣの項の計算では、H×W個の画素の画素値の和(詳しくは、d(0,0)+d(0,1)+…+d(H-1,W-1))をとる。
In this example, the brightness evaluation value M is calculated using the following formula (1).
M=ΣΣd(i,j)÷(H×W)…(1)
In addition, in the calculation of the ΣΣ term in equation (1), the sum of all combinations of i and j is taken. In other words, in the calculation of the ΣΣ term, the sum of the pixel values of H×W pixels (more specifically, d(0,0)+d(0,1)+...+d(H-1,W-1)) is taken.
このように、式(1)では、全ての有効画素の画素値の平均値が算出される。8ビット表示の場合、各画素の画素値は、0以上255以下の自然数で表される。それゆえ、Mの値は、0以上255以下の値となる。 In this way, equation (1) calculates the average value of the pixel values of all valid pixels. In the case of an 8-bit display, the pixel value of each pixel is expressed as a natural number between 0 and 255. Therefore, the value of M is between 0 and 255.
なお、式(1)は、明るさの評価値Mの算出方法の一例であり、評価値Mの算出方法は式(1)に限定されるものではない。 Note that formula (1) is an example of a method for calculating the brightness evaluation value M, and the method for calculating the evaluation value M is not limited to formula (1).
図7は、プレス機械本体31のスライド314が周期的に動作している状態でカメラ61によって撮像された画像を、情報処理装置80のディスプレイ85(本例では、タブレット端末801のディスプレイ)に表示させた状態を表した図である。
Figure 7 shows an image captured by the
図7に示されているように、情報処理装置80は、ユーザ操作に基づき、カメラ61のゲインを調整するための画面890を表示する。情報処理装置80は、カメラ61によって撮像された画像(映像)に重畳した状態で、複数の画像860,870,880を表示する。
As shown in FIG. 7, the
画像860は、カメラ61のAGC回路670(図3参照)によるオートゲインコントロールをオンまたはオフにするためのプルダウンメニュー861と、ゲインを調整するためのスライダー862およびスピンボタン863とを含む。
上述したように、本例では、オートゲインコントロールをオフにする必要があるため、プルダウンメニュー861によって、機能のオフを示す“Off”が選択されている。
As described above, in this example, the auto gain control needs to be turned off, so "Off" is selected in the pull-
スライダー862およびスピンボタン863によってゲインの値が変更されると、情報処理装置80は、カメラ61のゲイン調整を行なう。情報処理装置80は、カメラ61のゲインが、スライダー862およびスピンボタン863によって変更された値となるように、カメラ61に指示を送る。
When the gain value is changed by the
情報処理装置80は、変更後のゲインでの、出力画像の明るさの評価値Mの最大値と最小値とを表示かつ記憶する。本例では、画像870に、最大値と最小値とが表示される。当該ゲインにおける最大値と最小値とは、ユーザによってゲインが別の値に変更されるまで更新され続ける。
The
情報処理装置80のユーザは、画面890を視認しつつ、ゲインを調整する。詳しくは、スライド314が上下することによる画像の明るさの変化を確認しつつ、ゲインを調整する。ユーザは、画面890に表示された画像の明るさが適切であると判断すると、設定ボタンを示す画像880を選択する。これにより、情報処理装置80は、画像880が選択されたときのゲインの値を、ゲインの初期値に設定する(図5のステップS1)。
The user of the
さらに、情報処理装置80は、画像880が選択されたときのゲインにおける最大値を明るさの評価値Mの許容範囲の上限値に設定し、かつ最小値を当該許容範囲の上限値に設定する(図5のステップS2)。
Furthermore, the
たとえば、ユーザがゲインをGpに設定したときの明るさの評価値Mの範囲の最大値がM1であり、かつ最小値がM2である場合において、ゲインをGpとした状態でユーザが画像880を選択すると、情報処理装置80は、M1を明るさの評価値Mの許容範囲の上限値M_ULに、M2を許容範囲の下限値M_LLに設定する。
For example, when the user sets the gain to Gp and the maximum value of the range of the brightness evaluation value M is M1 and the minimum value is M2, if the user selects
図8は、明るさの評価値Mの変化を説明するためのグラフである。
図8に示されるように、ゲインを一定にした状態(たとえば、ゲインをGpに維持した状態)でカメラ61による撮像が行なわれると、情報処理装置80は、上記の式(1)に基づき、明るさの評価値Mの周期的な変化を示すデータD1を生成する。波形901は、当該データD1をグラフとして表したものである。データD1は、評価値Mを時系列で記録したものである。
FIG. 8 is a graph for explaining the change in the brightness evaluation value M.
8, when an image is captured by the
波形901として示されているように、周期性を持って評価値Mが変化する理由は、スライド314が周期的に上下移動するためである。
As shown by
このようなデータD1が得られている状態で、ユーザが画像880(図7)を選択すると、データD1の最大値が許容範囲Rの上限値M_ULとして設定され、かつデータD1の最小値が許容範囲Rの下限値M_LLとして設定される。なお、許容範囲Rは、下限値M_LLから上限値M_ULまでの範囲である。 When such data D1 is obtained, if the user selects image 880 (Figure 7), the maximum value of data D1 is set as the upper limit value M_UL of the allowable range R, and the minimum value of data D1 is set as the lower limit value M_LL of the allowable range R. Note that the allowable range R ranges from the lower limit value M_LL to the upper limit value M_UL.
このような、ユーザインターフェイスを介したゲイン調整に基づく許容範囲Rの設定は、上金型316と下金型315とから構成される金型が交換される度に行なうことが好ましい。金型の形状によって、適切な許容範囲Rは異なるためである。
It is preferable to set the tolerance range R based on gain adjustment via the user interface in this manner every time the mold consisting of the
(d3.ステップS3の詳細)
図9は、許容範囲Rが設定された後における、明るさの評価値Mの変化を説明するためのグラフである。
(d3. Details of step S3)
FIG. 9 is a graph for explaining the change in the brightness evaluation value M after the allowable range R is set.
図9に示されるように、情報処理装置80は、上記の式(1)に基づき、明るさの評価値Mの周期的な変化を示すデータD2を生成する。波形902は、当該データD2をグラフとして表したものである。
As shown in FIG. 9, the
波形902にて示されているように、データD2の最大値M_MAXは、設定された許容範囲Rの上限値M_ULを下回っている。しかしながら、データD2の最小値M_MINも許容範囲Rの下限値M_LLを下回っている。
As shown in
このように、最小値M_MINが許容範囲Rの下限値M_LLを下回わる理由としては、たとえば以下のような場合が挙げられる。 In this way, the minimum value M_MIN may fall below the lower limit value M_LL of the allowable range R for the following reasons, for example:
(i)プレスシステム1の自動運転時において、プレスシステム1が設置されている建屋からオペレータが退出した際に、当該建屋内の照明がオフされた場合。
(i) When the
(ii)プレスシステム1が設置されている建屋のカーテンが実運用環境では通常開けられているにもかかわらず閉じられた場合。
(ii) If the curtain of the building in which the
情報処理装置80は、データD2の最小値M_MINが許容範囲Rの下限値M_LLを下回っていると判断すると、カメラ61のゲインを上げるための指示をカメラ61に送る。
When the
情報処理装置80は、たとえば、予め定められた値(たとえば、1db)だけゲインの値を下げる指示をカメラ61に送る。あるいは、情報処理装置80は、ゲインの値そのものを、カメラ61に送ってもよい。また、情報処理装置80は、最小値M_MINと下限値M_LLとの差分の大きさに基づき、当該予め定められた値をまたはゲインの値そのものを決定してもよい。
For example, the
図10は、許容範囲Rが設定された後における、明るさの評価値Mの変化を説明するための他のグラフである。 Figure 10 is another graph illustrating the change in the brightness evaluation value M after the acceptable range R is set.
図10に示されるように、情報処理装置80は、上記の式(1)に基づき、明るさの評価値Mの周期的な変化を示すデータD3を生成する。波形903は、当該データD3をグラフとして表したものである。
As shown in FIG. 10, the
波形903にて示されているように、データD3の最小値M_MINは、設定された許容範囲Rの下限値M_LLを上回っている。しかしながら、データD3の最大値M_MAXも許容範囲Rの上限値M_ULを上回っている。
As shown in
このように、最大値M_MAXが許容範囲Rの上限値M_ULを下回わる理由としては、たとえば、プレスシステム1が設置されている建屋のカーテンが実運用環境では通常閉じられているにもかかわらず開けられた場合が挙げられる。
In this way, the maximum value M_MAX may fall below the upper limit value M_UL of the tolerance range R if, for example, the curtains of the building in which the
情報処理装置80は、データD3の最大値M_MAXが許容範囲Rの上限値M_ULを上回っていると判断すると、カメラ61のゲインを下げるための指示をカメラ61に送る。
When the
情報処理装置80は、たとえば、予め定められた値(たとえば、1db)だけゲインの値を上げる指示をカメラ61に送る。あるいは、情報処理装置80は、ゲインの値そのものを、カメラ61に送ってもよい。また、情報処理装置80は、最大値M_MAXと上限値M_ULとの差分の大きさに基づき、当該予め定められた値をまたはゲインの値そのものを決定してもよい。
For example, the
図11は、図10の状態からの遷移後における、明るさの評価値Mの変化を説明するためのグラフである。詳しくは、図11は、図10の状態において情報処理装置80からカメラ61に対してゲインの値を下げる指示を送った後における、明るさの評価値Mの変化を説明するためのグラフである。
Figure 11 is a graph for explaining the change in the brightness evaluation value M after a transition from the state of Figure 10. In detail, Figure 11 is a graph for explaining the change in the brightness evaluation value M after an instruction to lower the gain value is sent from the
図11に示されるように、情報処理装置80は、上記の式(1)に基づき、明るさの評価値Mの周期的な変化を示すデータD4を生成する。波形904は、当該データD4をグラフとして表したものである。
As shown in FIG. 11, the
波形904にて示されているように、データD4の最小値M_MINは、図10と同様に、設定された許容範囲Rの下限値M_LLを上回っている。データD4の最大値M_MAXは、図10とは異なり、許容範囲Rの上限値M_ULを下回っている。
As shown in
このように、カメラ61のゲインを情報処理装置80から制御することにより、データD4の最小値M_MINと最大値M_MINとを、明るさの評価値Mの許容範囲R内に収めることが可能となる。
In this way, by controlling the gain of the
なお、上記では、説明の便宜上、1回のゲイン変更により、データD4の最小値M_MINと最大値M_MINとが明るさの評価値の許容範囲R内に収まる例を説明した。しかしながら、1回のゲイン変更では最小値M_MINと最大値M_MINとが許容範囲R内に収まらない場合には、情報処理装置80は、最小値M_MINと最大値M_MINとが許容範囲R内に収まるまで、ゲイン変更の指示をカメラ61に対して繰り返り送信すればよい。
In the above, for the sake of convenience, an example has been described in which the minimum value M_MIN and maximum value M_MIN of data D4 fall within the allowable range R of the brightness evaluation value with a single gain change. However, if the minimum value M_MIN and maximum value M_MIN do not fall within the allowable range R with a single gain change, the
なお、情報処理装置80は、図9の場合も上記と同様な処理を実行することにより、データの最小値M_MINと最大値M_MINとを明るさの評価値Mの許容範囲R内に収める。
In addition, the
図11で示した状態に遷移した後も、情報処理装置80は、データの取得処理を続ける。情報処理装置80は、当該データの最小値M_MINと最大値M_MINとが明るさの評価値Mの許容範囲R内に収まっているかを監視する。情報処理装置80は、収まっていないと判断すると、上述したように、ゲインを変更する指示をカメラ61に再度送信する。
Even after transitioning to the state shown in FIG. 11, the
このような処理により、情報処理装置80に記録される画像(映像)については、概ね、明るさの評価値Mが、設定された許容範囲Rに収まる。それゆえ、プレス機械本体31に以上が発生した場合において、情報処理装置80にて異常が発生したときの画像を確認する際において、当該画像が黒つぶれまたは白飛びの状態となっていることを防ぐことが可能となる。したがって、情報処理装置80によれば、異常発生時における動画像を利用した異常発生要件の解析処理を促進させることが可能となる。
By this processing, the brightness evaluation value M of the image (video) recorded in the
図12は、ステップS3の処理の流れの詳細を説明するためのフロー図である。
図12を参照して、ステップS2(図5)の後にプレス機械本体31の電源がオフされている場合には、ステップS101において、オペレータが、プレス機械本体31の電源をオンする。ステップS102において、カメラ61による撮像が開始される。なお、カメラ61への撮像開始指示は、プレスコントローラ32からの自動的な指示であっても、あるいは情報処理装置80に対するユーザ操作に基づく指示であってもよい。ステップS103において、プレス機械本体31が稼働する。これにより、上金型316が装着されたスライド314が周期的に上下移動する。
FIG. 12 is a flowchart for explaining the details of the process flow of step S3.
12, if the power supply of the
ステップS104において、情報処理装置80は、カメラ61による撮像画像に基づき、明るさの評価値Mの周期的な変化を示したデータの取得を開始する。
In step S104, the
ステップS105において、情報処理装置80は、判定タイミングとなったか否かを判断する。たとえば、情報処理装置80は、データの取得開始時刻または前回の判定タイミングから、所定の時間が経過したか否かを判定する。情報処理装置80は、所定の時間として、たとえばスライド314の上下移動の周期のN倍(たとえばNは2以上自然数)を用いることができる。情報処理装置80は、周期的に到来する判定タイミングとなったか否かを判断する。
In step S105, the
判定タイミングとなったと判断された場合(ステップS105においてYES)、ステップS106において、周期的な変化を示したデータから、判定タイミングの直近の1周期(動作周期)以上の所定期間Tpの明るさの評価値Mの最大値M_MAXと最小値M_MINとを取得する。詳しくは、所定期間Tpは、判定タイミングの直近の期間であって、かつ、スライド314の上下動作の1周期以上の期間である。所定期間Tpがスライド314の上下動作の1周期以上の期間である理由は、少なくとも、1回の明の状態と1回の暗の状態とのデータを含むためである。
If it is determined that the judgment timing has arrived (YES in step S105), in step S106, the maximum value M_MAX and minimum value M_MIN of the brightness evaluation value M for a predetermined period Tp that is at least one cycle (operation cycle) immediately preceding the judgment timing are obtained from the data showing the periodic change. In more detail, the predetermined period Tp is the period immediately preceding the judgment timing and is at least one cycle of the up and down movement of the
判定タイミングとなっていないと判断された場合(ステップS105においてNO)、情報処理装置80は、処理をステップS105に戻す。
If it is determined that the judgment timing has not arrived (NO in step S105), the
ステップS107において、情報処理装置80は、評価値Mの最大値M_MAXが許容範囲Rの上限値M_ULを上回っている否かを判断する。最大値M_MAXが許容範囲Rの上限値M_ULを上回っていると判断された場合(ステップS107においてYES)、情報処理装置80は、ステップS108において、カメラ61のゲインを下げる制御を行なう。情報処理装置80は、ステップS108の後、処理をステップS109に進める。
In step S107, the
最大値M_MAXが許容範囲Rの上限値M_ULを上回っていないと判断された場合(ステップS107においてNO)、ステップS110において、情報処理装置80は、評価値Mの最小値M_MINが許容範囲Rの下限値M_LLを下回っているか否かを判断する。
If it is determined that the maximum value M_MAX does not exceed the upper limit value M_UL of the tolerance range R (NO in step S107), in step S110, the
最小値M_MINが許容範囲Rの下限値M_LLを下回っていると判断された場合(ステップS110においてYES)、情報処理装置80は、ステップS111において、カメラ61のゲインを上げる制御を行なう。情報処理装置80は、ステップS111の後、処理をステップS109に進める。最小値M_MINが許容範囲Rの下限値M_LLを下回っていないと判断された場合(ステップS110においてNO)、情報処理装置80は、処理をステップS109に進める。
If it is determined that the minimum value M_MIN is below the lower limit value M_LL of the allowable range R (YES in step S110), the
ステップS109において、情報処理装置80は、プレス機械本体31の電源がオフされた否かを判断する。電源がオフされていないと判断された場合(ステップS109においてNO)、情報処理装置80は、処理をステップS105に戻す。電源がオフされたと判断された場合(ステップS109においてYES)、情報処理装置80は、ステップS3の処理を終了する。
In step S109, the
なお、上記においては、ステップS107の後にステップS110が実行される例を説明したが、これに限定されない。ステップS107とステップS110との判定の順序を入れ換えてもよい。 In the above, an example in which step S110 is executed after step S107 has been described, but this is not limiting. The order of the determinations in steps S107 and S110 may be reversed.
(d4.小括)
プレスシステム1にて実行される処理の一部を小括すると、以下のとおりである。
(d4. Summary)
Some of the processes executed by the
(1)情報処理装置80は、カメラ61(あるいはカメラ62)の出力画像についての明るさの評価値Mの許容範囲Rを記憶する。カメラ61は、少なくとも、プレス機械本体31に含まれる周期的に動作するスライド314および上金型316を撮像する。
(1) The
情報処理装置80は、許容範囲Rが記憶された後のカメラ61による撮像に基づき、出力画像と、出力画像の明るさの評価値Mの周期的な変化を示したデータ(以下、データD)とを取得する。情報処理装置80は、データDから、上記動作の直近の1周期以上の所定期間Tpにおける明るさの評価値Mの最大値M_MAXおよび最小値M_MINを取得する。
The
情報処理装置80は、最大値M_MAXが許容範囲Rに含まれていないことを条件に、カメラ61のゲインを調整する。情報処理装置80は、最大値M_MAXが許容範囲Rを上回っていることを条件に、カメラ61のゲインを現在の設定値から当該現在の設定値よりも低い値に変更する。
The
情報処理装置80は、最小値M_MINが許容範囲Rに含まれていないことを条件に、カメラ61のゲインを調整する。情報処理装置80は、最小値M_MINが許容範囲Rを下回っていることを条件に、カメラ61のゲインを現在の設定値から当該現在の設定値よりも高い値に変更する。
The
このような構成により、周期的に動作するスライドを有するプレスシステム1(詳しくは、プレス機械本体31)の周囲環境に変化があったときでも、ユーザが許容できる明るさの画像を得ることが可能となる。 This configuration makes it possible to obtain an image with a brightness acceptable to the user even when there is a change in the surrounding environment of the press system 1 (more specifically, the press machine main body 31) that has a periodically operating slide.
(2)情報処理装置80は、明るさの評価値Mの許容範囲Rを以下のような処理で設定する。情報処理装置80は、図7に示したように、ディスプレイ85に出力画像が表示された状態で、ユーザ操作に基づくゲイン調整を受け付ける。情報処理装置80は、当該ユーザ操作に基づくゲイン調整がなされた状態において、明るさの評価値Mの上限値M_ULと下限値M_LLとを取得する。情報処理装置80は、上限値M_ULと下限値M_LLとの間の数値範囲を、許容範囲Rに設定する。
(2) The
<E.情報処理装置の機能的構成>
図13は、情報処理装置80の機能的構成を説明するためのブロック図である。
<E. Functional configuration of information processing device>
FIG. 13 is a block diagram for explaining the functional configuration of the
図13に示されるように、情報処理装置80は、制御部810と、記憶部820と、通信部830と、操作部840と、表示部850とを備える。
As shown in FIG. 13, the
制御部810は、上限値設定部811と、上限値読出部812と、下限値設定部813と、下限値読出部814と、データ生成部815と、最大値取得部816と、最小値取得部817と、ゲイン変更指示部818と、表示制御部819とを含む。
The
制御部810は、情報処理装置80の各種の動作を制御する。制御部810は、プロセッサ81(図4)に対応する。詳しくは、制御部810は、プロセッサ81がメモリ82に記憶されたオペレーティングシステムおよび各種のプログラムを実行することにより、実現される。
The
記憶部820には、カメラ61,62による撮像により得られた画像データ(動画像データ)が記憶される。記憶部820は、メモリ82(図4)に対応する。
The
操作部840は、ユーザ操作を受け付ける。たとえば、操作部840は、スライダー862(図7)を移動させる操作、スピンボタン863によってゲインの値が変更する操作等を受け付ける。操作部840は、受け付けた操作に応じた信号を制御部810に送る。操作部840は、タッチパネル89(図4)に対応する。
The
通信部830は、カメラ61,62等の外部機器と通信するためのインターフェイスである。通信部830は、通信IF83,84(図4)に対応する。
The
表示部850は、各種の情報を表示する。表示部850は、ディスプレイ85(図4)に対応する。
The
以下では、許容範囲Rを設定する局面と、許容範囲Rが設定された後の局面とに分けて説明する。以下でも、説明の便宜上、カメラ61,62のうちカメラ61に着目して説明する。
In the following, the situation will be explained separately: when the allowable range R is set, and when the allowable range R has been set. For the sake of convenience, the following explanation will focus on
(e1.許容範囲Rを設定する局面)
表示制御部819は、カメラ61から撮像により得られた画像データ(出力画像)を、表示部850に表示させる。また、表示制御部819は、図7に示したように、複数の画像860,870,880を出力画像に重畳させた状態で、表示部850に表示させる。
(e1. Setting the allowable range R)
The
操作部840は、ユーザによるゲインの設定操作を受け付ける。カメラ61のゲインが、操作部840が受け付けた値となるように、制御部810は、通信部830を介してカメラ61に指示を送る。
The
制御部810は、通信部830を介して、カメラ61から撮像により得られた画像データ(出力画像)を受信する。制御部810は、当該画像データを逐次、記憶部820に記憶させる。この場合、表示制御部819は、当該画像データを表示部850に表示させる。
The
制御部810のデータ生成部815は、記憶部820に記憶された画像データに基づき、明るさの評価値Mを逐次算出し、出力画像の明るさの評価値Mの周期的な変化を示したデータDを生成する。データ生成部815は、生成されたデータDを記憶部820に記憶させる。
The
上限値設定部811は、記憶部820に記憶されたデータDに基づき、上限値M_ULを設定する。上限値設定部811は、データDの最大値を上限値M_ULに設定する。上限値設定部811は、設定された上限値M_ULを記憶部820に記憶させる。
The upper
下限値設定部813は、記憶部820に記憶されたデータDに基づき、下限値M_LLを設定する。下限値設定部813は、データDの最小値を下限値M_LLに設定する。下限値設定部813は、設定された下限値M_LLを記憶部820に記憶させる。
The lower
以上の処理により、情報処理装置80では、上限値M_ULと下限値M_LLとで規定される許容範囲Rが設定される。
By the above processing, the
(e2.許容範囲Rが設定された後の局面)
制御部810は、通信部830を介して、カメラ61から撮像により得られた画像データ(出力画像)を受信する。制御部810は、当該画像データを逐次、記憶部820に記憶させる。
(e2. Situation after the allowable range R is set)
The
上限値読出部812は、記憶部820から上限値M_ULを読み出す。上限値読出部812は、読み出した上限値M_ULをゲイン変更指示部818に送る。
The upper
下限値読出部814は、記憶部820から下限値M_LLを読み出す。下限値読出部814は、読み出した下限値M_LLをゲイン変更指示部818に送る。
The lower
データ生成部815は、記憶部820に記憶された画像データに基づき、明るさの評価値Mを逐次算出し、出力画像の明るさの評価値Mの周期的な変化を示したデータDを生成する。データ生成部815は、生成されたデータDを記憶部820に記憶させる。
The
最大値取得部816は、判定タイミングが到来すると、現在のゲイン設定において、更新され続けているデータDにおける、明るさの評価値Mの最大値M_MAXを取得する。最大値取得部816は、当該データDから、直近の1周期(スライド314の動作周期)以上の所定期間Tpにおける明るさの評価値Mの最大値M_MAXを取得する。最大値取得部816は、取得された最大値M_MAXをゲイン変更指示部818に送る。
When the determination timing arrives, the maximum
最小値取得部817は、判定タイミングが到来すると、現在のゲイン設定において、更新され続けているデータDにおける、明るさの評価値Mの最小値M_MINを取得する。最小値取得部817は、当該データDから、上記所定期間Tpにおける明るさの評価値Mの最小値M_MINを取得する。最小値取得部817は、取得された最小値M_MINをゲイン変更指示部818に送る。
When the determination timing arrives, the minimum
ゲイン変更指示部818は、最大値M_MAXが上限値M_ULを上回っているか否かを判断する。また、ゲイン変更指示部818は、最小値M_MINが下限値M_LLを下回っているか否かを判断する。
The gain
ゲイン変更指示部818は、最大値M_MAXが上限値M_ULを上回っていると判断した場合、通信部830を介して、カメラ61にゲイン変更指示を送る。具体的には、ゲイン変更指示部818は、カメラ61のゲインを下げる指示をカメラ61に送る。
When the gain
ゲイン変更指示部818は、最大値M_MINが下限値M_LLを下回っていると判断した場合、通信部830を介して、カメラ61にゲイン変更指示を送る。具体的には、ゲイン変更指示部818は、カメラ61のゲインを上げる指示をカメラ61に送る。
When the gain
<F.変形例>
(1)第1の変形例
上記の実施の形態では、出力画像の全領域を用いて、出力画像の明るさの評価値Mの周期的な変化を示したデータDを取得し、かつ当該データDに基づき許容範囲Rを設定した。しかしながら、これに限定されるものではない。たとえば、情報処理装置80は、出力画像の一部領域のみを用いてもよい。具体的には、情報処理装置80は、以下の処理を行なってもよい。
F. Modifications
(1) First Modification In the above embodiment, the entire region of the output image is used to obtain data D indicating periodic changes in the evaluation value M of the brightness of the output image, and the allowable range R is set based on the data D. However, this is not limited to this. For example, the
情報処理装置80は、カメラ61,62からの出力画像のうち周期的に動作する部位(スライド314)を含む一部領域(以下、「特定領域」とも称する)の画像の明るさの評価値Mの周期的な変化を示したデータDを取得する。特定領域は、オペレータ操作等に基づき予め指定されている。
The
情報処理装置80は、当該特定領域の評価値Mの最大値を上限値M_ULとし、かつ最小値を下限値M_LLとて設定する。これにより、特定領域における許容範囲Rが設定される。
The
その後、図5,図12に示したステップS3の処理において、情報処理装置80は、特定領域の画素値から算出された評価値Mに基づき、ゲインを上げる指示またはゲインを下げる指示をカメラ61に送ってもよい。
After that, in the processing of step S3 shown in Figures 5 and 12, the
このような処理によれば、出力画像のうち重要な箇所に着目した、ゲインの調整処理を行なうことができる。それゆえ、プレス機械本体31の周囲環境に変化があったときでも、ユーザにとってより好ましい明るさの画像を得ることが可能となる。
This type of processing allows the gain adjustment process to be performed with a focus on important parts of the output image. Therefore, even when there is a change in the environment around the
(2)第2の変形例
上記の実施の形態に示した式(1)の代わりに、以下の式(2)を用いて評価値Mを算出してもよい。
(2) Second Modification Instead of the formula (1) shown in the above embodiment, the evaluation value M may be calculated using the following formula (2).
M=ΣΣ(d(i,j)×w(i,j))÷(H×W) … (2)
w(i,j)は、重みである。式(2)のΣΣの項の計算においても、式(1)と同様に、iおよびjのすべての組み合わせの和をとる。すなわち、Σの計算では、H×W個の画素値の和(詳しくは、d(0,0)×w(0,0)+d(0,1)×w(0,1)+…+d(H-1,W-1)×w(H-1,W-1))をとる。
M=ΣΣ(d(i,j)×w(i,j))÷(H×W)…(2)
w(i,j) is a weight. In the calculation of the ΣΣ term in equation (2), the sum of all combinations of i and j is taken, as in equation (1). That is, in the calculation of Σ, the sum of H×W pixel values (more specifically, d(0,0)×w(0,0)+d(0,1)×w(0,1)+...+d(H-1,W-1)×w(H-1,W-1)) is taken.
たとえば、中心領域の画素の重みを周辺領域の画素の重みよりも大きくすることにより、評価値Mの算出の際に、中心領域の明るさが周辺領域の明るさよりも考慮される。特に、上述した特定領域(出力画像のうち周期的に動作する部位を含む一部領域)の重みを残りの領域の重みよりも大きくすることにより、出力画像のうち重要な箇所に着目した、ゲインの調整処理を行なうことができる。それゆえ、プレス機械本体31の周囲環境に変化があったときでも、ユーザにとってより好ましい明るさの画像を得ることが可能となる。
For example, by weighting the pixels in the central region greater than the pixels in the peripheral regions, the brightness of the central region is taken into consideration more than the brightness of the peripheral regions when calculating the evaluation value M. In particular, by weighting the specific region (a portion of the output image that includes a part that operates periodically) greater than the weighting of the remaining regions, it is possible to perform gain adjustment processing that focuses on important parts of the output image. Therefore, even when there is a change in the environment surrounding the
なお、上記特定領域の重みを一定とし、残りの領域の重みをゼロとした場合には、結果的に、第1の変形例と同一の処理となる。 Note that if the weight of the specific region is set to a constant value and the weight of the remaining regions is set to zero, the result will be the same as the first modified example.
(3)第3の変形例
上記の実施の形態においては、モノクロ画像の場合の評価値Mの算出方法を説明した。以下では、カラー画像の場合の評価値Mの算出方法を説明する。具体的には、出力画像がRGB画像である場合の評価値Mの算出方法を説明する。
(3) Third Modification In the above embodiment, a method for calculating the evaluation value M in the case of a monochrome image has been described. Below, a method for calculating the evaluation value M in the case of a color image will be described. Specifically, a method for calculating the evaluation value M in the case where the output image is an RGB image will be described.
以下では、便宜上、赤(R)のフィルタが適用されている画素を「Rの画素」と、緑(G)のフィルタが適用されている画素を「Gの画素」と、青(B)のフィルタが適用されている画素を「Bの画素」とも称する。 For convenience, in the following, pixels to which a red (R) filter is applied will be referred to as "R pixels", pixels to which a green (G) filter is applied will be referred to as "G pixels", and pixels to which a blue (B) filter is applied will be referred to as "B pixels".
図14は、カメラ61の撮像素子606のRGBの各画素を表した図である。詳しくは、カラーフィルタ605における色(R,G,B)の配置を表した図である。
Figure 14 is a diagram showing each of the RGB pixels of the
図14に示されるように、RGBの色の配置は、緑(G)が一つおきに配置されるベイヤー型となっている。なお、配置の型は一例であって、ベイヤー型に限定されるもではない。たとえば、配置の型は、緑(G)だけの列が一列おきにできるものであってもよい。 As shown in FIG. 14, the RGB color arrangement is a Bayer type in which green (G) is arranged alternately. Note that this arrangement type is just one example and is not limited to the Bayer type. For example, the arrangement type may be one in which there are rows of only green (G) every other row.
赤(R)の画素の画素値は、R(i,j+1)等のRで始まる記号で表記されている。Gの画素の画素値は、G(i,j)等のGで始まる記号で表記されている。Bの画素の画素値は、B(i+1,j)等のBで始まる記号で表記されている。人の目は緑の成分に対する感度が高いため、Gの画素が、Rの画素およびBの画素よりも多くなっている。なお、上述したように、iは、0以上H-1以下の自然数である。jは、0以上W-1以下の自然数である。 The pixel value of a red (R) pixel is represented by a symbol beginning with R, such as R(i,j+1). The pixel value of a G pixel is represented by a symbol beginning with G, such as G(i,j). The pixel value of a B pixel is represented by a symbol beginning with B, such as B(i+1,j). Because the human eye is highly sensitive to the green component, there are more G pixels than R and B pixels. As mentioned above, i is a natural number between 0 and H-1. j is a natural number between 0 and W-1.
図15は、データ補間を説明するための図である。詳しくは、図15は、Rの画素のデータ補間を説明するための図である。 Figure 15 is a diagram for explaining data interpolation. In detail, Figure 15 is a diagram for explaining data interpolation of R pixels.
図15に示されるように、カメラ61は、Gの画素およびBの画素の画素領域に関しては、周囲のRの画素の画素値に基づき、データ補間を行なう。たとえば、カメラ61(詳しくは、デジタル信号処理部609)は、Gの画素では、上下のRの画素から画素値を推測する。
As shown in FIG. 15, the
これにより、Gの画素およびBの画素の画素領域に、Rの画素値が対応付けられる。これにより、H×W個のRの画素からなるRのフレームが生成される。同様の処理により、カメラ61では、H×W個のGの画素からなるGのフレームと、H×W個のBの画素からなるBのフレームとを生成する。
As a result, the R pixel value is associated with the pixel area of the G pixels and B pixels. This generates an R frame consisting of H x W R pixels. Through similar processing, the
上記の3種類のフレームを組み合わせることにより、表示用の1つのフレームが生成される。このように、カメラ61では、画素混合方式により色再現を行う。
A single frame for display is generated by combining the above three types of frames. In this way,
この場合、情報処理装置80は、たとえば、評価値Mを以下の式(3)を用いて算出する。
In this case, the
M=(ΣΣR(i,j)÷(H×W)+ΣΣG(i,j)÷(H×W)+ΣΣB(i,j)÷(H×W))÷3 … (3)
なお、式(3)のΣΣの項の計算では、式(1)と同様に、iおよびjのすべての組み合わせの和をとる。式(3)では、8ビット表示の場合、式(1)と同様に、Mの値は0以上255以下の値となる。
M=(ΣΣR(i,j)÷(H×W)+ΣΣG(i,j)÷(H×W)+ΣΣB(i,j)÷(H×W))÷3... (3)
In addition, in the calculation of the ΣΣ term in equation (3), the sum of all combinations of i and j is taken, as in equation (1). In equation (3), in the case of 8-bit representation, the value of M is between 0 and 255, as in equation (1).
なお、式(3)は、明るさの評価値Mの算出方法の一例であり、評価値Mの算出方法は式(3)に限定されるものではない。 Note that formula (3) is an example of a method for calculating the brightness evaluation value M, and the method for calculating the evaluation value M is not limited to formula (3).
また、上記の実施の形態においては、カメラ61が、カラーフィルタ605としてRGBのフィルタ(原色フィルタ)を備える構成を例に挙げて説明したが、カラーフィルタ605は、シアン(Cy)、マゼンタ(Mg)、黄(Y)、緑(G)の4色からなるフィルタ(補色フィルタ)であってもよい。この場合における評価値Mは、式(3)において、R,G,Bの代わりに、Cy,Mg,Y,Gを用いた演算によって算出すればよい。
In the above embodiment, the
(4)第4の変形例
上記の実施の形態においては、図12に示すように、評価値Mの最大値M_MAXが上限値M_ULを上回った場合と、評価値Mの最小値M_MINが下限値M_LLを下回った場合との両方において、ゲイン調整が実行された(ステップS108,S111)。
(4) Fourth Modification In the above embodiment, as shown in FIG. 12, gain adjustment was performed both when the maximum value M_MAX of the evaluation value M exceeded the upper limit value M_UL and when the minimum value M_MIN of the evaluation value M fell below the lower limit value M_LL (steps S108, S111).
しかしながら、必ずしもこれに限定されず、評価値Mの最大値M_MAXが上限値M_ULを上回った場合、および評価値Mの最小値M_MINが下限値M_LLを下回った場合のいずれか一方の場合のみ、ゲイン調整を行うように、情報処理装置80を構成してもよい。
However, this is not necessarily limited to the above, and the
(5)第5の変形例
たとえば、評価値Mの最大値M_MAXが上限値M_ULを上回り、かつ、評価値Mの最小値M_MINが下限値M_LLを下回る場合も想定される。また、評価値Mの最大値M_MAXが上限値M_ULを上回った場合にゲインを下げると、評価値Mの最小値M_MINが下限値M_LLを下回ってしまう状況も起こり得る。反対に、評価値Mの最小値M_MINが下限値M_LLを下回った場合にゲインを上げると、評価値Mの最大値M_MAXが上限値M_ULを上回ってしまう状況も起こり得る。
(5) Fifth Modification For example, a case is assumed in which the maximum value M_MAX of the evaluation value M exceeds the upper limit value M_UL and the minimum value M_MIN of the evaluation value M falls below the lower limit value M_LL. In addition, if the gain is lowered when the maximum value M_MAX of the evaluation value M exceeds the upper limit value M_UL, a situation may occur in which the minimum value M_MIN of the evaluation value M falls below the lower limit value M_LL. Conversely, if the gain is increased when the minimum value M_MIN of the evaluation value M falls below the lower limit value M_LL, a situation may occur in which the maximum value M_MAX of the evaluation value M exceeds the upper limit value M_UL.
このような場合に対処すべく、情報処理装置80は、ゲイン調整後の最大値M_MAXおよび最小値M_MINのうちの少なくとも、ユーザ操作によって選択(指定)された一方が、許容範囲Rに収まるように、ゲインの調整を行ってもよい。
To deal with such cases, the
たとえば、黒つぶれよりも白飛びを防止したい場合には、オペレータは、ゲイン調整後の最大値M_MAXが許容範囲Rに収まるように上限値側の規制を優先する設定を、情報処理装置80に対して行えばよい。反対に、白飛びよりも黒つぶれを防止したい場合には、オペレータは、ゲイン調整後の最小値M_MINが許容範囲Rに収まるように下限値側の規制を優先する設定を、情報処理装置80に対して行えばよい。このようなオペレータ操作は、情報処理装置80が提供するユーザインターフェイスを介して実現し得る。
For example, if it is desired to prevent white blowout rather than black crush, the operator can set the
(6)第6の変形例
上記の実施の形態においては、周期的に動作する部位として、スライド314を例に挙げて説明したが、これに限定されるものではない。
(6) Sixth Modification In the above embodiment, the
たとえば、プレス機器本体同士の間においてワーク(典型的には、仕掛品)を搬送する搬送装置(典型的には、上流側のプレス機器本体と下流側のプレス機器本体との間でワークの受け渡しを行うアーム型のロボット)は、周期的に動作する。それゆえ、カメラによって、当該搬送装置を撮像する局面に、上述したゲイン調整処理を適用できる。 For example, a conveying device (typically an arm-type robot that transfers the work between an upstream press body and a downstream press body) that conveys a work (typically a work in progress) between press bodies operates periodically. Therefore, the above-mentioned gain adjustment process can be applied to situations where the conveying device is imaged by a camera.
今回開示された実施の形態は例示であって、上記内容のみに制限されるものではない。本発明の範囲は特許請求の範囲によって示され、特許請求の範囲と均等の意味および範囲内でのすべての変更が含まれることが意図される。 The embodiments disclosed herein are illustrative and are not limited to the above. The scope of the present invention is defined by the claims, and is intended to include all modifications within the scope and meaning equivalent to the claims.
1 プレスシステム、10 コイルホルダ、20 レベラフィーダ、30 プレス機械、31 プレス機械本体、32 プレスコントローラ、40 搬送コンベア、50 製品箱、61,62 カメラ、70 ハブ、80 情報処理装置、85 ディスプレイ、120 サーバ装置、311 本体フレーム、312 ベッド、313 ボルスタ、314 スライド、315 下金型、316 上金型、318 センサ、319 警告灯、601 ズームレンズ、602 フォーカスレンズ、603 ユニット、604 バンドパスフィルタ、605 カラーフィルタ、606 撮像素子、630 撮像光学系、801 タブレット端末、802 クレードル、860,870,880 画像、861 プルダウンメニュー、862 スライダー、863 スピンボタン、890 画面、901,902,903,904 波形、L1,L2,L3,L4 LANケーブル、L9 接続ケーブル、NW ネットワーク、P 成形品、W コイル。 1 Press system, 10 Coil holder, 20 Straightener feeder, 30 Press machine, 31 Press machine body, 32 Press controller, 40 Transport conveyor, 50 Product box, 61, 62 Camera, 70 Hub, 80 Information processing device, 85 Display, 120 Server device, 311 Body frame, 312 Bed, 313 Bolster, 314 Slide, 315 Lower die, 316 Upper die, 318 Sensor, 319 Warning light, 601 Zoom lens, 602 Focus lens, 603 Unit, 604 Band pass filter, 605 Color filter, 606 Imaging element, 630 Imaging optical system, 801 Tablet terminal, 802 Cradle, 860, 870, 880 Image, 861 Pull-down menu, 862 Slider, 863 Spin button, 890 Screen, 901, 902, 903, 904 waveform, L1, L2, L3, L4 LAN cable, L9 connection cable, NW network, P molded product, W coil.
Claims (14)
前記カメラの出力画像についての明るさの評価値の許容範囲を前記情報処理装置が記憶するステップを備え、前記カメラは、産業機械に含まれる周期的に動作する部位を撮像するものであり、
前記許容範囲が記憶された後の前記カメラによる撮像に基づき、前記情報処理装置が、前記出力画像と、前記出力画像の明るさの評価値の周期的な変化を示したデータとを取得するステップと、
前記情報処理装置が、前記データから、前記動作の直近の1周期以上の所定期間における前記明るさの評価値の最大値および最小値のうちの少なくとも一方の値を取得するステップと、
前記取得した値が前記許容範囲に含まれていないことを条件に、前記情報処理装置が、前記カメラのゲインを調整するステップとをさらに備える、ゲイン調整方法。 A camera gain adjustment method using an information processing device, comprising:
a step of storing an allowable range of an evaluation value of brightness for an output image of the camera by the information processing device, the camera capturing an image of a periodically operating part included in an industrial machine,
a step in which the information processing device acquires the output image and data indicating a periodic change in an evaluation value of brightness of the output image based on an image captured by the camera after the allowable range has been stored;
The information processing device acquires, from the data, at least one of a maximum value and a minimum value of the brightness evaluation value during a predetermined period of one or more cycles immediately preceding the operation;
The gain adjustment method further comprises a step of adjusting a gain of the camera by the information processing device on condition that the acquired value is not within the allowable range.
前記カメラのゲインを調整するステップでは、前記最小値が前記許容範囲を下回っていることを条件に、前記ゲインを現在の設定値から前記現在の設定値よりも高い値に変更する、請求項1に記載のゲイン調整方法。 the one value being the minimum value,
2. The gain adjustment method according to claim 1, wherein in the step of adjusting the gain of the camera, the gain is changed from a current setting value to a value higher than the current setting value on condition that the minimum value is below the allowable range.
前記カメラのゲインを調整するステップでは、前記最大値が前記許容範囲を上回っていることを条件に、前記ゲインを現在の設定値から前記現在の設定値よりも低い値に変更する、請求項1に記載のゲイン調整方法。 the one value being the maximum value,
2. The gain adjustment method according to claim 1, wherein in the step of adjusting the gain of the camera, the gain is changed from a currently set value to a value lower than the currently set value on condition that the maximum value is greater than the allowable range.
前記最大値および前記最小値のうちの少なくとも一方の値を取得するステップでは、少なくとも前記選択した値を取得し、
前記カメラのゲインを調整するステップでは、前記選択した値が前記許容範囲に含まれていないことを条件に、前記情報処理装置が、前記選択した値が前記許容範囲に含まれるように、前記カメラのゲインを調整する、請求項1に記載のゲイン調整方法。 The method further includes a step of selecting one of the maximum value and the minimum value based on a first user operation,
In the step of obtaining at least one of the maximum value and the minimum value, obtaining at least the selected value;
2. The gain adjustment method according to claim 1, wherein in the step of adjusting the gain of the camera, on condition that the selected value is not included in the acceptable range, the information processing device adjusts the gain of the camera so that the selected value is included in the acceptable range.
前記出力画像と、前記出力画像の明るさの評価値の周期的な変化を示したデータとを取得するステップでは、前記データとして、前記一部領域の画像の明るさの評価値の周期的な変化を示したデータを取得する、請求項1から4のいずれか1項に記載のゲイン調整方法。 the acceptable range is a range of evaluation values of brightness of an image of a partial region of the output image that includes the part,
5. A gain adjustment method according to claim 1, wherein in the step of acquiring the output image and data indicating a periodic change in an evaluation value of the brightness of the output image, data indicating a periodic change in an evaluation value of the brightness of the image of the partial area is acquired as the data.
ディスプレイに前記出力画像が表示された状態で、第2のユーザ操作に基づくゲイン調整を受け付けるステップと、
前記第2のユーザ操作に基づくゲイン調整がなされた状態において、前記明るさの評価値の上限値と下限値とを取得するステップと、
前記上限値と前記下限値との間の数値範囲を、前記許容範囲に設定するステップとを含む、請求項1から5のいずれか1項に記載のゲイン調整方法。 The step of storing an allowable range of the brightness evaluation value includes:
receiving a gain adjustment based on a second user operation while the output image is displayed on a display;
acquiring an upper limit value and a lower limit value of the brightness evaluation value in a state in which gain adjustment based on the second user operation has been performed;
The gain adjustment method according to claim 1 , further comprising the step of: setting a numerical range between the upper limit value and the lower limit value as the allowable range.
前記部位は、金型と、前記金型が取付けられるスライドとであり、
前記明るさの評価値の許容範囲を記憶するステップでは、前記金型が交換される度に、前記第2のユーザ操作に基づくゲイン調整を受け付ける、請求項6に記載のゲイン調整方法。 the industrial machine is a press machine,
The part is a die and a slide to which the die is attached,
The gain adjustment method according to claim 6 , wherein in the step of storing the allowable range of the brightness evaluation value, the gain adjustment based on the second user operation is accepted every time the mold is replaced.
プロセッサと、
前記カメラの出力画像についての明るさの評価値の許容範囲を記憶したメモリとを備え、前記カメラは、産業機械に含まれる周期的に動作する部位を撮像するものであり、
前記プロセッサは、
前記許容範囲が記憶された後の前記カメラによる撮像に基づき、前記出力画像と、前記出力画像の明るさの評価値の周期的な変化を示したデータとを取得し、
前記データから、前記動作の直近の1周期以上の所定期間における前記明るさの評価値の最大値および最小値の少なくとも一方の値を取得し、
前記取得した値が前記許容範囲に含まれていないことを条件に、前記カメラのゲインを調整する、情報処理装置。 An information processing device that adjusts a gain of a camera,
A processor;
a memory that stores an allowable range of an evaluation value of brightness for an output image of the camera, the camera capturing an image of a periodically operating part included in an industrial machine,
The processor,
acquiring the output image and data indicating a periodic change in an evaluation value of brightness of the output image based on an image captured by the camera after the allowable range has been stored;
From the data, at least one of a maximum value and a minimum value of the evaluation value of the brightness during a predetermined period of at least one cycle immediately preceding the operation is obtained;
The information processing device adjusts a gain of the camera on condition that the acquired value is not within the allowable range.
前記プロセッサは、前記最小値が前記許容範囲を下回っていることを条件に、前記ゲインを現在の設定値から前記現在の設定値よりも高い値に変更する、請求項8に記載の情報処理装置。 the one value being the minimum value,
The information processing apparatus according to claim 8 , wherein the processor changes the gain from a current setting value to a value higher than the current setting value on condition that the minimum value is lower than the allowable range.
前記プロセッサは、前記最大値が前記許容範囲を上回っていることを条件に、前記ゲインを現在の設定値から前記現在の設定値よりも低い値に変更する、請求項8に記載の情報処理装置。 the one value being the maximum value,
The information processing apparatus according to claim 8 , wherein the processor changes the gain from a current setting value to a value lower than the current setting value on condition that the maximum value is greater than the allowable range.
第1のユーザ操作に基づき、前記最大値および前記最小値の一方の値を選択し、
前記最大値および前記最小値のうちの少なくとも前記選択した値を取得し、
前記選択した値が前記許容範囲に含まれていないことを条件に、前記選択した値が前記許容範囲に含まれるように、前記カメラのゲインを調整する、請求項8に記載の情報処理装置。 The processor,
selecting one of the maximum value and the minimum value based on a first user operation;
obtaining at least the selected value of the maximum value and the minimum value;
The information processing apparatus according to claim 8 , further comprising: adjusting a gain of the camera such that the selected value is included in the acceptable range on condition that the selected value is not included in the acceptable range.
前記プロセッサは、前記データとして、前記一部領域の画像の明るさの評価値の周期的な変化を示したデータを取得する、請求項8から11のいずれか1項に記載の情報処理装置。 the acceptable range is a range of evaluation values of brightness of an image of a partial region of the output image that includes the part,
The information processing apparatus according to claim 8 , wherein the processor acquires, as the data, data indicating a periodic change in an evaluation value of brightness of the image of the partial region.
前記情報処理装置は、前記ディスプレイに前記出力画像が表示された状態で、ゲイン調整のための第2のユーザ操作を受け付け、
前記プロセッサは、
前記第2のユーザ操作に基づくゲイン調整がなされた状態において、前記明るさの評価値の上限値と下限値とを取得し、
前記上限値と前記下限値との間の数値範囲を、前記許容範囲に設定する、請求項8から12のいずれか1項に記載の情報処理装置。 Further equipped with a display,
the information processing device accepts a second user operation for gain adjustment while the output image is displayed on the display;
The processor,
obtaining an upper limit value and a lower limit value of the brightness evaluation value in a state in which the gain adjustment based on the second user operation has been performed;
The information processing apparatus according to claim 8 , wherein a numerical range between the upper limit value and the lower limit value is set as the allowable range.
産業機械に含まれる周期的に動作する部位を撮像するカメラと、
前記カメラのゲインを調整する情報処理装置とを備え、
前記情報処理装置は、
前記カメラの出力画像についての明るさの評価値の許容範囲を記憶しており、
前記許容範囲が記憶された後の前記カメラによる撮像に基づき、前記出力画像と、前記出力画像の明るさの評価値の周期的な変化を示したデータとを取得し、
前記データから、前記動作の直近の1周期以上の所定期間における前記明るさの評価値の最大値および最小値の少なくとも一方の値を取得し、
前記取得した値が前記許容範囲に含まれていないことを条件に、前記カメラのゲインを調整する、撮像システム。 1. An imaging system, comprising:
A camera that captures an image of a periodically operating part included in an industrial machine;
an information processing device for adjusting a gain of the camera;
The information processing device includes:
A tolerance range for an evaluation value of brightness of an output image of the camera is stored,
acquiring the output image and data indicating a periodic change in an evaluation value of brightness of the output image based on an image captured by the camera after the allowable range has been stored;
From the data, at least one of a maximum value and a minimum value of the evaluation value of the brightness during a predetermined period of at least one cycle immediately preceding the operation is obtained;
and adjusting a gain of the camera on condition that the acquired value is not within the tolerance range.
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020188667A JP7628418B2 (en) | 2020-11-12 | 2020-11-12 | Gain adjustment method, information processing device, and imaging system |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| JP2020188667A JP7628418B2 (en) | 2020-11-12 | 2020-11-12 | Gain adjustment method, information processing device, and imaging system |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| JP2022077709A JP2022077709A (en) | 2022-05-24 |
| JP7628418B2 true JP7628418B2 (en) | 2025-02-10 |
Family
ID=81706676
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| JP2020188667A Active JP7628418B2 (en) | 2020-11-12 | 2020-11-12 | Gain adjustment method, information processing device, and imaging system |
Country Status (1)
| Country | Link |
|---|---|
| JP (1) | JP7628418B2 (en) |
Families Citing this family (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN115835027B (en) * | 2022-11-16 | 2025-08-01 | 浙江大华技术股份有限公司 | Light supplementing lamp switch control method, device and equipment of image pickup equipment |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008290126A (en) | 2007-05-25 | 2008-12-04 | Komatsu Ltd | Industrial machine control device and control method |
| US20190034889A1 (en) | 2017-07-26 | 2019-01-31 | Square, Inc. | Cryptocurrency Payment Network |
| JP2019016055A (en) | 2017-07-04 | 2019-01-31 | コマツ産機株式会社 | Machine system and control method |
| JP2019122492A (en) | 2018-01-12 | 2019-07-25 | オリンパス株式会社 | Endoscope device, and operation method and program of endoscope device |
-
2020
- 2020-11-12 JP JP2020188667A patent/JP7628418B2/en active Active
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP2008290126A (en) | 2007-05-25 | 2008-12-04 | Komatsu Ltd | Industrial machine control device and control method |
| JP2019016055A (en) | 2017-07-04 | 2019-01-31 | コマツ産機株式会社 | Machine system and control method |
| US20190034889A1 (en) | 2017-07-26 | 2019-01-31 | Square, Inc. | Cryptocurrency Payment Network |
| JP2019122492A (en) | 2018-01-12 | 2019-07-25 | オリンパス株式会社 | Endoscope device, and operation method and program of endoscope device |
Also Published As
| Publication number | Publication date |
|---|---|
| JP2022077709A (en) | 2022-05-24 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR101450200B1 (en) | Motion detecting device, motion detecting method, imaging device, and monitoring system | |
| US8081233B2 (en) | Imaging device and imaging method | |
| CN101964874B (en) | Image processing apparatus and image processing method | |
| US8665343B2 (en) | Image processing apparatus, image processing method, program, and recording medium | |
| JP4329125B2 (en) | White balance control method, white balance control device, and imaging device | |
| TWI859433B (en) | Video camera and method for assessing ambient light level during video acquisition with the same | |
| US7852400B2 (en) | Image pickup apparatus having a movably controllable neutral-density filter | |
| US12177573B2 (en) | Information processing apparatus, information processing method, and storage medium | |
| US20070189752A1 (en) | Photography apparatus, photography method, and photography program | |
| US6757020B1 (en) | Detecting/setting the on/off state of a display in a video camera with manual and automatic function | |
| JP7628418B2 (en) | Gain adjustment method, information processing device, and imaging system | |
| JP4468276B2 (en) | Digital camera | |
| JP2006324834A (en) | Imaging apparatus and imaging method | |
| US20210297573A1 (en) | Imaging device, control method, and storage medium | |
| JP2012142823A (en) | Display controller, imaging apparatus and display control program | |
| JP2015186155A (en) | Electronic apparatus | |
| JP3730630B2 (en) | Imaging apparatus and imaging method | |
| JP4141716B2 (en) | Television monitoring system | |
| KR101427651B1 (en) | Apparatus and method for adjusting face detection processing speed in digital image processing device | |
| JP7426396B2 (en) | Imaging device | |
| JP3992476B2 (en) | Image processing device | |
| JP4239219B2 (en) | Auto white balance adjustment method and apparatus | |
| JP2018137762A (en) | Electronics | |
| JP4353813B2 (en) | Exposure control device | |
| JP2014220762A (en) | Imaging apparatus |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| A625 | Written request for application examination (by other person) |
Free format text: JAPANESE INTERMEDIATE CODE: A625 Effective date: 20231012 |
|
| A977 | Report on retrieval |
Free format text: JAPANESE INTERMEDIATE CODE: A971007 Effective date: 20240829 |
|
| A131 | Notification of reasons for refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A131 Effective date: 20241001 |
|
| TRDD | Decision of grant or rejection written | ||
| A01 | Written decision to grant a patent or to grant a registration (utility model) |
Free format text: JAPANESE INTERMEDIATE CODE: A01 Effective date: 20250121 |
|
| A61 | First payment of annual fees (during grant procedure) |
Free format text: JAPANESE INTERMEDIATE CODE: A61 Effective date: 20250129 |
|
| R150 | Certificate of patent or registration of utility model |
Ref document number: 7628418 Country of ref document: JP Free format text: JAPANESE INTERMEDIATE CODE: R150 |