Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
JP7628418B2 - Gain adjustment method, information processing device, and imaging system - Google Patents
[go: Go Back, main page]

JP7628418B2 - Gain adjustment method, information processing device, and imaging system - Google Patents

Gain adjustment method, information processing device, and imaging system Download PDF

Info

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
Application number
JP2020188667A
Other languages
Japanese (ja)
Other versions
JP2022077709A (en
Inventor
晋一郎 中村
友浩 加藤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Komatsu Industries Corp
Original Assignee
Komatsu Industries Corp
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Komatsu Industries Corp filed Critical Komatsu Industries Corp
Priority to JP2020188667A priority Critical patent/JP7628418B2/en
Publication of JP2022077709A publication Critical patent/JP2022077709A/en
Application granted granted Critical
Publication of JP7628418B2 publication Critical patent/JP7628418B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

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.

特開2016-39473号公報JP 2016-39473 A 国際公開第2019/008855号International Publication No. 2019/008855

たとえばプレス機械では、金型が取り付けられるスライドが一定の周期で上下移動する。このように周期的に動作する部位を有する産業機械の動作をカメラで撮像する場合、カメラの撮像素子に入射する光量は、短い周期で連続的に変化する。 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.

プレスシステムの概略構成を表した図である。FIG. 1 is a diagram showing a schematic configuration of a press system. プレスシステムを構成する機器の接続関係を説明するための図である。FIG. 2 is a diagram for explaining the connection relationship of devices constituting the press system. カメラの機能的構成を表すブロック図である。FIG. 2 is a block diagram showing the functional configuration of the camera. 情報処理装置のハードウェア構成の例を表した図である。FIG. 1 illustrates an example of a hardware configuration of an information processing device. 情報処理装置で実施されるカメラのゲイン調整の処理の流れを説明するためのフロー図である。11 is a flowchart illustrating a process of adjusting gain of a camera performed by an information processing device. FIG. 出力画像の明るさの評価値の算出方法を説明するための図である。11 is a diagram for explaining a method of calculating an evaluation value of brightness of an output image. FIG. プレス機械本体のスライドが周期的に動作している状態でカメラによって撮像された画像を、情報処理装置のディスプレイに表示させた状態を表した図である。13 is a diagram showing an image captured by a camera while a slide of a press machine body is periodically operating, the image being displayed on a display of an information processing device. FIG. 明るさの評価値の変化を説明するためのグラフである。11 is a graph for explaining a change in the brightness evaluation value. 許容範囲が設定された後における、明るさの評価値の変化を説明するためのグラフである。13 is a graph illustrating a change in the brightness evaluation value after the allowable range is set. 許容範囲が設定された後における、明るさの評価値の変化を説明するための他のグラフである。13 is another graph illustrating the change in the brightness evaluation value after the allowable range is set. 図10の状態からの遷移後における、明るさの評価値の変化を説明するためのグラフである。11 is a graph for explaining a change in the brightness evaluation value after a transition from the state of FIG. 10 . 図5のステップS3の処理の流れの詳細を説明するためのフロー図である。FIG. 6 is a flowchart for explaining details of the process flow of step S3 in FIG. 5 . 情報処理装置の機能的構成を説明するためのブロック図である。FIG. 2 is a block diagram illustrating a functional configuration of an information processing device. カメラの撮像素子のRGBの各画素を表した図である。FIG. 2 is a diagram showing RGB pixels of an imaging element of a camera. データ補間を説明するための図である。FIG. 13 is a diagram for explaining data interpolation.

以下、実施形態について図に基づいて説明する。なお、以下の説明では、同一部品には、同一の符号を付している。それらの名称および機能も同じである。したがって、それらについての詳細な説明は繰り返さない。 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 press system 1 according to the present embodiment.

図1に示されるように、プレスシステム1は、コイルホルダ10と、レベラフィーダ20と、プレス機械30と、搬送コンベア40と、カメラ61,62とを備えている。プレス機械30は、プレス機械本体31と、プレスコントローラ32とを有する。プレス機械本体31は、本体フレーム311と、ベッド312と、ボルスタ313と、スライド314と、警告灯319とを備える。 As shown in FIG. 1, the press system 1 includes a coil holder 10, a straightener feeder 20, a press machine 30, a transport conveyor 40, and cameras 61 and 62. The press machine 30 includes a press machine body 31 and a press controller 32. The press machine body 31 includes a body frame 311, a bed 312, a bolster 313, a slide 314, and a warning light 319.

コイルホルダ10には、コイルが巻き付けられておりレベラフィーダ20を介してプレス機械本体31にコイルWが搬送される。本例においては、ワーク(材料,被加工部材)としてコイルWをプレス加工する場合について説明する。 A coil W is wound around the coil holder 10, and the coil W is transported to the press machine body 31 via the straightener feeder 20. In this example, we will explain the case where the coil W is pressed as the workpiece (material, workpiece).

レベラフィーダ20は、コイルホルダ10からプレス機械本体31に搬送するコイルの送り高さの位置を調整するとともにプレス機械本体31に対してコイルWを所定タイミングで搬送する。 The straightener feeder 20 adjusts the feed height position of the coil transported from the coil holder 10 to the press machine body 31, and transports the coil W to the press machine body 31 at a predetermined timing.

プレス機械本体31の本体フレーム311の略中央部には、スライド314が上下動自在に支持されている。スライド314に対する下方には、ベッド312上に取り付けられたボルスタ313が配置されている。スライド314の下面には、上金型316が装着される。ボルスタ313の上面には、下金型315が装着される。 A slide 314 is supported in the approximate center of the main body frame 311 of the press machine main body 31 so that it can move up and down freely. A bolster 313 attached to the bed 312 is disposed below the slide 314. An upper die 316 is attached to the underside of the slide 314. A lower die 315 is attached to the top surface of the bolster 313.

プレス機械本体31は、レベラフィーダ20から搬送されたコイルWに対して、加工パターンに従ってプレス加工する。プレス機械本体31は、上金型316と下金型315とから構成される金型に対応するコイルWを下金型315に位置させた後、上金型316をスライド314と共に降下させることにより、プレス加工を行う。 The press machine body 31 presses the coil W transported from the straightener feeder 20 according to the processing pattern. The press machine body 31 positions the coil W corresponding to the die consisting of an upper die 316 and a lower die 315 in the lower die 315, and then performs press processing by lowering the upper die 316 together with the slide 314.

プレスコントローラ32は、プレス機械本体31の動作を制御する装置である。プレスコントローラ32は、スライド314を周期的に上下に動作させる。これにより、上金型316も、スライド314の動作に従って周期的に上下に動作する。 The press controller 32 is a device that controls the operation of the press machine body 31. The press controller 32 periodically moves the slide 314 up and down. As a result, the upper die 316 also periodically moves up and down in accordance with the movement of the slide 314.

プレスコントローラ32は、プレス機械本体31を制御するために必要な各種データを入力するものであり、データを入力するためのスイッチやテンキー、および設定画面やプレス機械30から出力されるデータを表示する表示器を有している。 The press controller 32 is used to input various data necessary to control the press machine main body 31, and has switches and a numeric keypad for inputting data, as well as a setting screen and a display that displays data output from the press machine 30.

プレスコントローラ32は、CPU(Central Processing Unit)、高速数値演算プロセッサ、およびメモリ等を主体に構成され、決められた手順に従って入力データの算術演算および論理演算を行うコンピュータ装置と、指令電流を入出力する入出力インターフェイスとを備えて構成されている。 The press controller 32 is mainly composed of a CPU (Central Processing Unit), a high-speed numerical calculation processor, memory, etc., and is equipped with a computer device that performs arithmetic and logical operations on input data according to a set procedure, and an input/output interface that inputs and outputs command currents.

プレスコントローラ32のメモリは、ROM(Read Only Memory)、RAM(Random Access Memory)等の適宜な記憶媒体を含んで構成されている。このメモリは、プレスコントローラ32が各種の機能を実現するためのプログラムが格納されている。なお、当該メモリは、各種演算処理を実行するためのワーク領域としても用いられる。 The memory of the press controller 32 is configured to include appropriate storage media such as ROM (Read Only Memory) and RAM (Random Access Memory). This memory stores programs that enable the press controller 32 to realize various functions. The memory is also used as a work area for executing various calculation processes.

搬送コンベア40は、プレス機械本体31にてプレス加工により成形した成形品Pを、製品箱50に搬送する。なお、これに限定されず、次のプレス機械に成形品Pを搬送ロボット等を用いて搬送することも可能である。 The transport conveyor 40 transports the molded product P formed by pressing in the press machine body 31 to the product box 50. However, this is not limited to this, and it is also possible to transport the molded product P to the next press machine using a transport robot or the like.

警告灯319は、プレスコントローラ32に接続されている。警告灯319は、プレス機械本体31において異常が発生すると、プレスコントローラ32から送られてくる信号(異常を表すビット)に基づき、点灯するように構成されている。警告灯319は、たとえば、加工工程において異常が発生すると、赤色の光を点滅させる。なお、異常としては、プレス機械本体31の稼働停止、ワークのミスフィード等が挙げられる。 The warning light 319 is connected to the press controller 32. The warning light 319 is configured to light up based on a signal (a bit indicating an abnormality) sent from the press controller 32 when an abnormality occurs in the press machine body 31. For example, the warning light 319 flashes a red light when an abnormality occurs in the processing process. Examples of abnormalities include a stoppage of the press machine body 31, misfeeding of the workpiece, etc.

カメラ61,62は、プレス機械本体31によるコイルW(ワーク)の加工工程を動画撮影する。カメラ61,62による動画撮影によって得られた動画像データは、情報処理装置80(図2参照)のメモリに記憶される。 The cameras 61 and 62 capture video of the machining process of the coil W (workpiece) by the press machine body 31. The video data obtained by the video capture by the cameras 61 and 62 is stored in the memory of the information processing device 80 (see FIG. 2).

カメラ61,62は、たとえば、CCD(Charge Coupled Device)カメラである。カメラ61は、プレス機械本体31の外部空間に配置される。カメラ62は、たとえば、プレス機械本体31の内部空間(ワークの加工領域)に配置される。 Cameras 61 and 62 are, for example, CCD (Charge Coupled Device) cameras. Camera 61 is disposed in the external space of press machine body 31. Camera 62 is disposed, for example, in the internal space (workpiece machining area) of press machine body 31.

カメラ61は、下金型315と上金型316とスライド314とに加えて、搬送されるコイルWおよび成形品Pと、警告灯319とを被写体として含むように配置されている。 The camera 61 is positioned so that it captures as its subjects the coil W and molded product P being transported, as well as the lower mold 315, the upper mold 316, and the slide 314, and the warning light 319.

カメラ62は、下金型315と上金型316とスライド314とを被写体として含むように配置されている。カメラ62により、下金型315と上金型316とによるプレス加工の状態を撮像することができる。 The camera 62 is positioned so that it includes the lower die 315, the upper die 316, and the slide 314 as objects. The camera 62 can capture an image of the state of the press working performed by the lower die 315 and the upper die 316.

プレスシステム1では、カメラ61によってプレス工程全体の状態が撮像され、かつカメラ62によって加工状態の詳細が撮像される。 In press system 1, camera 61 captures images of the overall state of the press process, and camera 62 captures images of the processing state in detail.

なお、プレスシステム1のカメラの数は、2台に限定されるものではない。また、カメラの配置も、上記の配置に限定されるものではない。金型によるプレス加工の状態を撮像可能な構成であることが好ましい。また、プレス加工前後のコイルWおよび成形品Pを撮像可能な構成であることが好ましい。さらに、警告灯319を撮像可能な構成であることが好ましい。 The number of cameras in the press system 1 is not limited to two. The arrangement of the cameras is also not limited to the above arrangement. It is preferable that the configuration is capable of capturing images of the state of press processing using a mold. It is also preferable that the configuration is capable of capturing images of the coil W and the molded product P before and after press processing. It is also preferable that the configuration is capable of capturing images of the warning light 319.

プレスシステム1の各部は同期しており、一連の作業が順次連続して実行される。コイルホルダ10からコイルWがレベラフィーダ20を介してプレス機械本体31に搬送される。そして、プレス機械本体31でプレス加工され、加工されたワーク(成形品P)は搬送コンベア40により搬送される。上記一連の処理が繰り返される。 All parts of the press system 1 are synchronized, and a series of operations are performed in succession. The coil W is transported from the coil holder 10 to the press machine body 31 via the straightener feeder 20. It is then pressed in the press machine body 31, and the processed workpiece (molded product P) is transported by the transport conveyor 40. The above series of processes is repeated.

なお、上記プレスシステム1の構成は、一例であり、特に当該構成に限られるものではない。 Note that the configuration of the press system 1 described above is just an example and is not limited to this configuration.

図2は、プレスシステム1を構成する機器の接続関係を説明するための図である。
図2に示されるように、プレスシステム1は、カメラ61,62とプレス機械本体31とプレスコントローラ32とに加えて、ハブ70と、情報処理装置80とをさらに備えている。
FIG. 2 is a diagram for explaining the connection relationship of devices constituting the press system 1.
As shown in FIG. 2 , the press system 1 further includes a hub 70 and an information processing device 80 in addition to the cameras 61 and 62, the press machine main body 31, and the press controller 32.

カメラ61,62は、動画を撮像する。カメラ61,62は、ハブ70を介して情報処理装置80と通信可能に接続されている。カメラ61,62は、Ethernet(登録商標)のケーブル等のLAN(Local Area Network)ケーブルL1,L2によってハブ70に有線接続されている。 The cameras 61 and 62 capture video. The cameras 61 and 62 are communicatively connected to the information processing device 80 via the hub 70. The cameras 61 and 62 are wired to the hub 70 by LAN (Local Area Network) cables L1 and L2, such as Ethernet (registered trademark) cables.

カメラ61,62は、撮像により得られた動画像データを、ハブ70を介して情報処理装置80に逐次送信する。動画像データは、複数の画像フレームにより構成されている。各画像フレームは、タイムスタンプを含む。 The cameras 61 and 62 sequentially transmit the moving image data obtained by capturing images to the information processing device 80 via the hub 70. The moving image data is composed of multiple image frames. Each image frame includes a timestamp.

ハブ70は、たとえば、PoE(Power over Ethernet)に対応したスイッチングハブである。 Hub 70 is, for example, a switching hub that supports PoE (Power over Ethernet).

プレスコントローラ32は、ハブ70を介する通信経路とハブ70を介さない通信経路との2つの通信経路によって、情報処理装置80に接続している。プレスコントローラ32は、ハブ70を介さない通信経路によって、さらに警告灯319に接続されている。プレスコントローラ32は、ネットワークNWを介して、サーバ装置120と通信可能に構成されている。 The press controller 32 is connected to the information processing device 80 via two communication paths: one that goes through the hub 70 and one that does not go through the hub 70. The press controller 32 is further connected to a warning light 319 via a communication path that does not go through the hub 70. The press controller 32 is configured to be able to communicate with the server device 120 via the network NW.

詳しくは、プレスコントローラ32は、LANケーブルL4によってハブ70に有線接続されている。また、プレスコントローラ32は、ハブ70を介さずに、リアルタイム性の高いI/O(Input/Output)接続ケーブルL9によって、情報処理装置80と警告灯319に接続されている。 More specifically, the press controller 32 is wired to the hub 70 via a LAN cable L4. The press controller 32 is also connected to the information processing device 80 and the warning light 319 via a highly real-time I/O (Input/Output) connection cable L9, without going through the hub 70.

プレスコントローラ32は、プレス機械本体31の運転状態を表した運転情報を、LANケーブルL3,L4を利用し、ハブ70を介して情報処理装置80に逐次送信する。運転状態の一部は、たとえばプレス機械本体31に備えられたセンサ318によって検出される。 The press controller 32 sequentially transmits operating information indicating the operating state of the press machine body 31 to the information processing device 80 via the hub 70 using the LAN cables L3 and L4. Part of the operating state is detected, for example, by a sensor 318 provided in the press machine body 31.

運転情報は、時刻に関連付けられた情報である。運転情報は、少なくとも、各種の波形データと、各種の入出力信号データ(オン/オフ信号)と、基本情報とを含んでいる。 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 press machine body 31, the press controller 32 transmits a bit indicating the abnormality to the information processing device 80 and the warning light 319 via the I/O connection cable L9, without going through the hub 70.

情報処理装置80は、本例では、タブレット端末801と、クレードル802とを含む。タブレット端末801は、クレードル802に設置されている。タブレット端末801は、クレードル802を介して、ハブ70と、プレスコントローラ32とに通信可能に接続されている。クレードル802は、LANケーブルL3によってハブ70に有線接続されている。情報処理装置80は、ハブ70およびネットワークNWを介して、サーバ装置120にアクセス可能である。 In this example, the information processing device 80 includes a tablet terminal 801 and a cradle 802. The tablet terminal 801 is placed in the cradle 802. The tablet terminal 801 is communicatively connected to the hub 70 and the press controller 32 via the cradle 802. The cradle 802 is wired to the hub 70 by a LAN cable L3. The information processing device 80 can access the server device 120 via the hub 70 and the network NW.

情報処理装置80は、プレスコントローラ32から異常を表すビットを受信すると、当該ビットを受信した時刻(異常が発生した時刻)を含む予め定められた設定時間(以下、「設定時間Ts」と称する)の動画像データおよび運転情報を保護する。設定時間Tsとしては、一例として、異常が発生した時刻の直前の5秒間と、当該時刻の直後の15秒とすることができる。 When the information processing device 80 receives a bit indicating an abnormality from the press controller 32, it protects the video data and operation information for a predetermined set time (hereinafter referred to as the "set time Ts") that includes the time when the bit was received (the time when the abnormality occurred). As an example, the set time Ts can be 5 seconds immediately before the time when the abnormality occurred and 15 seconds immediately after that time.

ユーザは、保護された動画像データおよび運転情報を情報処理装置80で確認することにより、異常の内容とともに、異常が発生したときの動画像(映像)を確認することができる。 By checking the protected video data and driving information on the information processing device 80, the user can check the video (image) at the time the abnormality occurred as well as the details of the abnormality.

なお、タブレット端末801およびクレードル802の代わりに、情報処理装置80を、ラップトップ型、デスクトップ型のパーソナルコンピュータとしてもよい。 Instead of the tablet terminal 801 and the cradle 802, the information processing device 80 may be a laptop or desktop personal computer.

なお、プレス機械30は、本発明における「産業機械」の一例である。情報処理装置80は、本発明における「情報処理装置」の一例である。カメラ61,62は、本発明における「カメラ」の一例である。カメラ61,62と、情報処理装置80と、ハブ70とからなるシステム構成が、本発明における「撮像システム」の一例である。 The press machine 30 is an example of an "industrial machine" in the present invention. The information processing device 80 is an example of an "information processing device" in the present invention. The cameras 61 and 62 are an example of a "camera" in the present invention. The system configuration consisting of the cameras 61 and 62, the information processing device 80, and the hub 70 is an example of an "imaging system" in the present invention.

スライド314および上金型316は、本発明における「産業機械に含まれる周期的に動作する部位」の一例である。スライド314に上金型316が装着されていない状態では、スライド314および上金型316のうちスライド314のみが、本発明における「産業機械に含まれる周期的に動作する部位」の一例となる。 The slide 314 and the upper die 316 are an example of a "periodically operating part included in an industrial machine" in the present invention. When the upper die 316 is not attached to the slide 314, only the slide 314 out of the slide 314 and the upper die 316 is an example of a "periodically operating part included in an industrial machine" in the present invention.

<B.カメラの構成>
図3は、カメラ61,62の機能的構成を表すブロック図である。
<B. Camera Configuration>
FIG. 3 is a block diagram showing the functional configuration of the cameras 61 and 62.

図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 cameras 61 and 62 include a bandpass filter 604, a color filter 605, an image sensor 606, an analog signal processing unit 607, an A/D (Analog Digital) converter 608, a digital signal processing unit 609, a communication unit 610, a zoom driving unit 611, a focus driving unit 612, an aperture driving unit 613, an image sensor driving unit 614, a control unit 615, and an image pickup optical system 630. The analog signal processing unit 607 includes an AGC (Automatic Gain Control) circuit 670.

撮像光学系630は、ズームレンズ601と、フォーカスレンズ602と、絞りユニット603とを有する。ズームレンズ601は、光軸方向に移動して焦点距離を変更する。フォーカスレンズ602は、光軸方向に移動して焦点調節を行う。絞りユニット603は、光量を調整する。 The imaging optical system 630 has a zoom lens 601, a focus lens 602, and an aperture unit 603. The zoom lens 601 moves in the optical axis direction to change the focal length. The focus lens 602 moves in the optical axis direction to adjust the focus. The aperture unit 603 adjusts the amount of light.

撮像光学系630を通過した光は、バンドパスフィルタ604およびカラーフィルタ605を介して、撮像素子606上に被写体像を形成する。被写体像は、撮像素子606によって光電変換される。 Light passing through the imaging optical system 630 passes through the bandpass filter 604 and the color filter 605 to form a subject image on the imaging element 606. The subject image is photoelectrically converted by the imaging element 606.

撮像素子606から出力されたアナログ信号は、アナログ信号処理部607によってゲインの調整がなされる。ゲインの調整がなされたアナログ信号は、A/D変換器608によってデジタル信号に変換された後、デジタル信号処理部609に入力される。 The analog signal output from the image sensor 606 is subjected to gain adjustment by the analog signal processing unit 607. The analog signal with the gain adjustment is converted to a digital signal by the A/D converter 608 and then input to the digital signal processing unit 609.

デジタル信号処理部609では、デジタル撮像信号に対して各種画像処理を行って映像信号を生成する。映像信号は、通信部610を介して、情報処理装置80に出力される。詳細については後述するが、情報処理装置80は、通信部610を介して、制御部615に指示を送る。 The digital signal processing unit 609 performs various image processing on the digital imaging signal to generate a video signal. The video signal is output to the information processing device 80 via the communication unit 610. The information processing device 80 sends instructions to the control unit 615 via the communication unit 610, as will be described in detail later.

制御部615は、オートフォーカスでのピント制御の設定値、および露出制御の設定値の算出を行う。制御部615は、アナログ信号処理部607と、ズーム駆動部611と、フォーカス駆動部612と、絞り駆動部613と、撮像素子駆動部614とに対して設定値を指示する。 The control unit 615 calculates the setting values for focus control in autofocus and exposure control. The control unit 615 instructs the setting values to the analog signal processing unit 607, the zoom driving unit 611, the focus driving unit 612, the aperture driving unit 613, and the image sensor driving unit 614.

ズーム駆動部611は、制御部615からの指示に基づき、ズームレンズ601の位置を制御する。フォーカス駆動部612は、制御部615からの指示に基づき、フォーカスレンズ602の位置を制御する。絞り駆動部613は、制御部615からの指示に基づき、絞りユニット603の絞りを制御する。撮像素子駆動部614は、制御部615からの指示に基づき、撮像光学系630の光軸に対して撮像素子606を傾ける。 The zoom driver 611 controls the position of the zoom lens 601 based on instructions from the controller 615. The focus driver 612 controls the position of the focus lens 602 based on instructions from the controller 615. The aperture driver 613 controls the aperture of the aperture unit 603 based on instructions from the controller 615. The image sensor driver 614 tilts the image sensor 606 with respect to the optical axis of the imaging optical system 630 based on instructions from the controller 615.

アナログ信号処理部607について、さらに詳しく説明する。
アナログ信号処理部607は、AGC回路670を機能させるモードと、AGC回路670の機能を停止させるモードとを有する。
The analog signal processing section 607 will now be described in more detail.
The analog signal processing unit 607 has a mode in which the AGC circuit 670 is made to function and a mode in which the AGC circuit 670 is made to stop functioning.

アナログ信号処理部607は、制御部615からの指示により、AGC回路670を機能させたり、当該機能を停止させたりする。このような機能のオンおよびオフの切換指示は、カメラ61,62の操作部(図示せず)または情報処理装置80から行うことができる。 The analog signal processing unit 607 activates or deactivates the AGC circuit 670 in response to instructions from the control unit 615. Instructions to switch such functions on and off can be given from the operation units (not shown) of the cameras 61 and 62 or from the information processing device 80.

アナログ信号処理部607は、AGC回路670の機能を停止させているときには、予め指定されたゲインで、入力された信号を増幅または減衰させる。当該ゲインの指定は、情報処理装置80から可能である。また、当該ゲインの設定は、カメラ61の操作部に対するユーザ操作によっても可能である。 When the AGC circuit 670 is disabled, the analog signal processing unit 607 amplifies or attenuates the input signal with a pre-specified gain. The gain can be specified from the information processing device 80. The gain can also be set by a user operating the operation unit of the camera 61.

一方、AGC回路670が機能している場合(以下、「AGCモード」とも称する)には、AGC回路670は、入力された信号に基づき、ゲインを自動で調整する。AGC回路670は、ゲインを上げることにより、入力された信号を増幅する。これにより、AGC回路670は、出力される画像(映像)を明るくする。AGC回路670は、ゲインを下げることにより、入力された信号を減衰させる。これにより、AGC回路670は、出力される画像を暗くする。 On the other hand, when the AGC circuit 670 is functioning (hereinafter also referred to as "AGC mode"), the AGC circuit 670 automatically adjusts the gain based on the input signal. The AGC circuit 670 amplifies the input signal by increasing the gain. As a result, the AGC circuit 670 brightens the image (video) that is output. The AGC circuit 670 attenuates the input signal by decreasing the gain. As a result, the AGC circuit 670 darkens the image that is output.

AGC回路670は、ゲインを自動的に調整することにより、画像を適した明るさにする。このように、AGC回路670は、自動で画像の明るさを調整する機能(以下、「オートゲインコントロール」とも称する)を有する。 The AGC circuit 670 automatically adjusts the gain to give the image an appropriate brightness. In this way, the AGC circuit 670 has a function of automatically adjusting the brightness of the image (hereinafter also referred to as "auto gain control").

プレス機械30では、スライド314が一定の周期で上下移動する。このように周期的に動作する部位を有するプレス機械30の動作をカメラ61で撮像する場合、カメラ61の撮像素子606に入射する光量は、短い周期で連続的に変化する。しかしながら、オートゲインコントロールでは、このような光量の短時間の変化(明るさの変化)に追従したゲイン調整ができない。このため、本実施の形態では、AGC回路670によるオートゲインコントロールをオフ状態としておく。 In the press machine 30, the slide 314 moves up and down at a constant cycle. When the operation of the press machine 30, which has parts that operate periodically in this manner, is captured by the camera 61, the amount of light incident on the image sensor 606 of the camera 61 changes continuously in short cycles. However, the auto gain control cannot adjust the gain to follow such short-term changes in the amount of light (changes in brightness). For this reason, in this embodiment, the auto gain control by the AGC circuit 670 is kept in the off state.

さらに、プレス機械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 signal processing unit 607 amplifies or attenuates the input signal with the specified gain (fixed value).

詳細については後述するが、本例では、情報処理装置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 information processing device 80 to the control unit 615 via the communication unit 610. The control unit 615 sets the gain (value) instructed by the information processing device 80 in the analog signal processing unit 607. As a result, the analog signal processing unit 607 amplifies or attenuates the input signal with the gain instructed by the information processing device 80. In this way, in this example, the gain in the analog signal processing unit 607 is set by the information processing device 80.

ところで、上記のようにゲインを設定(固定)した場合、以下のような問題が生じる。たとえば、プレス機械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 cameras 61 and 62. Also, if the curtains in the building are closed even though they are normally open in the actual operating environment, "blackout" may occur in the images output from the cameras 61 and 62. Conversely, if the curtains in the building are opened even though they are normally closed in the actual operating environment, "whiteout" may occur in the images output from the cameras 61 and 62.

以下では、主として、このような「黒つぶれ」および「白飛び」といった現象の発生を抑制するための構成および処理を説明する。 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 information processing device 80. As shown in FIG.

図4に示されるように、情報処理装置80は、プロセッサ81と、メモリ82と、通信IF(Interface)83,84と、ディスプレイ85と、タッチパネル89とを備える。なお、ディスプレイ85と、タッチパネル89とで、タッチスクリーンが構成される。 As shown in FIG. 4, the information processing device 80 includes a processor 81, a memory 82, communication IFs (Interfaces) 83 and 84, a display 85, and a touch panel 89. The display 85 and the touch panel 89 form a touch screen.

メモリ82は、一例として、ROM(Read Only Memory)821と、RAM(Random Access Memory)822a,822bと、フラッシュメモリ823とを含む。なお、メモリ82は、フラッシュメモリ823の代わりに、あるいはフラッシュメモリ823に加えて、HDD(Hard Disc Drive)を含んでいてもよい。 The memory 82 includes, as an example, a read only memory (ROM) 821, random access memories (RAMs) 822a and 822b, and a flash memory 823. Note that the memory 82 may include a hard disk drive (HDD) instead of or in addition to the flash memory 823.

通信IF83は、ハブ70と通信するためのインターフェイスである。通信IF84は、プレスコントローラ32と通信するためのインターフェイスである。 The communication IF 83 is an interface for communicating with the hub 70. The communication IF 84 is an interface for communicating with the press controller 32.

プロセッサ81は、メモリ82に記憶されたオペレーティングシステムおよび各種のプログラムを実行する。プロセッサ81は、ディスプレイ85に各種の情報を表示させる(図6参照)。 The processor 81 executes the operating system and various programs stored in the memory 82. The processor 81 displays various information on the display 85 (see FIG. 6).

RAM822a,822bは、巡回メモリとも称されるメモリである。プロセッサ81は、RAM822aに動画像データを記憶させる。プロセッサ81は、RAM822bに上述した運転情報を記憶させる。 RAMs 822a and 822b are memories also called cyclic memories. The processor 81 stores video image data in the RAM 822a. The processor 81 stores the above-mentioned driving information in the RAM 822b.

プロセッサ81は、RAM822aの空き容量が不足すると最も古いデータを最新のデータで上書きする方式によって、カメラ61,62による動画撮影によって得られた動画像データをRAM822aに順次記憶する。プロセッサ81は、典型的には、RAM822aのメモリ領域を2つの領域に分けて、一方にカメラ61による動画像データを記憶させ、かつ他方にカメラ62による動画像データを記憶させる。 The processor 81 sequentially stores video data obtained by video shooting by the cameras 61 and 62 in the RAM 822a by overwriting the oldest data with the newest data when the free space in the RAM 822a is insufficient. The processor 81 typically divides the memory area of the RAM 822a into two areas, storing video data from the camera 61 in one area and video data from the camera 62 in the other area.

また、プロセッサ81は、RAM822bの空き容量が不足すると最も古いデータを最新のデータで上書きする方式によって、運転情報をRAM822bに順次記憶する。プロセッサ81は、典型的には、RAM822bのメモリ領域を複数の領域に分けて、運転情報に含まれる各種のデータを領域ごとに区分して記憶させる。 In addition, the processor 81 sequentially stores the driving information in the RAM 822b by overwriting the oldest data with the newest data when the free space in the RAM 822b is insufficient. The processor 81 typically divides the memory area of the RAM 822b into multiple areas and stores various types of data included in the driving information in separate areas.

なお、上記では、RAM822aとRAM822bとを備える構成であるが、これに限定されるものではない。プロセッサ81が1つのRAMにおけるメモリ空間の領域を区分して管理する構成の場合、RAMは1つでもよい。また、データ種別毎にRAMを設けてもよい。 In the above, the configuration includes RAM 822a and RAM 822b, but this is not limited to this. If the processor 81 is configured to manage areas of memory space in a single RAM by dividing them, then there may be only one RAM. Also, a RAM may be provided for each data type.

なお、プロセッサ81は、本発明における「プロセッサ」の一例である。
<D.ゲインの調整処理>
(d1.全体的な処理の流れ)
以下では、カメラ61,62のうち、カメラ61のゲイン調整を例に挙げて説明する。なお、カメラ62においてもカメラ61と同様のゲイン調整が行われるため、カメラ62のゲイン調整については繰り返し説明しない。
The processor 81 is an example of the "processor" of the present invention.
<D. Gain Adjustment Processing>
(d1. Overall processing flow)
In the following, an example of gain adjustment of the camera 61 will be described out of the cameras 61 and 62. Note that the same gain adjustment as that of the camera 61 is also performed in the camera 62, and therefore the gain adjustment of the camera 62 will not be described repeatedly.

図5は、情報処理装置80で実施されるカメラ61のゲイン調整の処理の流れを説明するためのフロー図である。 Figure 5 is a flow diagram for explaining the process flow of the gain adjustment of the camera 61 performed by the information processing device 80.

図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 camera 61 is set based on a user operation via the information processing device 80. The initial gain value in the analog signal processing unit 607 is set. The processing in step S1 corresponds to a pre-setting process of the gain by the user, taking into account the actual operating environment (brightness, etc.) of the press machine 30.

ステップS2において、情報処理装置80において、カメラ61の出力画像についての明るさの評価値の許容範囲が設定される。典型的には、情報処理装置80において、カメラ61の出力画像についての明るさの評価値の上限値と下限値とが設定される。 In step S2, the information processing device 80 sets an acceptable range for the brightness evaluation value for the output image of the camera 61. Typically, the information processing device 80 sets an upper limit and a lower limit for the brightness evaluation value for the output image of the camera 61.

「出力画像の明るさの評価値」とは、カメラ61のデジタル信号処理部609から出力される画像の明るさを示す値である。たとえば、出力画像の明るさの評価値は、画素値で規定される。 The "evaluation value of brightness of the output image" is a value indicating the brightness of the image output from the digital signal processing unit 609 of the camera 61. For example, the evaluation value of brightness of the output image is defined by pixel values.

カメラ61がカラー画像をモノクロ画像(典型的には、256階調のグレースケール画像)に変換し、モノクロの画像を情報処理装置80に出力する場合には、「出力画像の明るさの評価値」は、カメラ61の各有効画素の画素値に基づき規定される。この場合、「出力画像の明るさの評価値」は、本例では各有効画素の画素値の平均をとるため、0から255までの範囲内の数値となる。なお、カメラ61が、カラーフィルタ605を備えていない場合には、上記の変換処理は不要である。 When the camera 61 converts a color image into a monochrome image (typically a 256-level grayscale image) and outputs the monochrome image to the information processing device 80, the "evaluation value of brightness of the output image" is determined based on the pixel values of each effective pixel of the camera 61. In this case, the "evaluation value of brightness of the output image" is a value in the range of 0 to 255, since it is the average of the pixel values of each effective pixel in this example. Note that if the camera 61 does not have a color filter 605, the above conversion process is not necessary.

カメラ61がカラーの映像(典型的には、RGBのカラー画像)を出力する場合には、「出力画像の明るさの評価値」は、補間処理を行った後の画素値に基づき規定される。 When the camera 61 outputs a color image (typically an RGB color image), the "evaluation value of the brightness of the output image" is determined based on the pixel values after the interpolation process.

以下では、説明の便宜上、カメラ61がモノクロ画像を情報処理装置80に出力する場合を例に挙げて説明する。カメラ61がカラー画像を出力する場合については、変形例で説明する。 For ease of explanation, the following will be described using an example in which the camera 61 outputs a monochrome image to the information processing device 80. A case in which the camera 61 outputs a color image will be described in a modified example.

ステップS3において、ゲインの更新処理がなされる。詳しくは、情報処理装置80がゲインを調整し、調整後のゲインとなるように、カメラ61に指示を送る。なお、ステップS3の処理が、「黒つぶれ」および「白飛び」の発生を抑制するための処理に対応する。 In step S3, a gain update process is performed. More specifically, the information processing device 80 adjusts the gain and sends an instruction to the camera 61 to set the adjusted gain. The process in step S3 corresponds to a process for suppressing the occurrence of "blackout" and "whiteout."

以下では、図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 camera 61 is H, and the number of effective pixels in the horizontal direction (X direction) is W. In this case, the image sensor 606 of the camera 61 has H×W effective pixels. Also, in FIG. 6, the pixel value of each pixel is represented by d(i,j) (0≦i≦H-1, 0≦j≦W-1).

本例では、明るさの評価値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 camera 61 while the slide 314 of the press machine body 31 is operating periodically, displayed on the display 85 of the information processing device 80 (in this example, the display of the tablet terminal 801).

図7に示されているように、情報処理装置80は、ユーザ操作に基づき、カメラ61のゲインを調整するための画面890を表示する。情報処理装置80は、カメラ61によって撮像された画像(映像)に重畳した状態で、複数の画像860,870,880を表示する。 As shown in FIG. 7, the information processing device 80 displays a screen 890 for adjusting the gain of the camera 61 based on a user operation. The information processing device 80 displays a plurality of images 860, 870, and 880 superimposed on the image (video) captured by the camera 61.

画像860は、カメラ61のAGC回路670(図3参照)によるオートゲインコントロールをオンまたはオフにするためのプルダウンメニュー861と、ゲインを調整するためのスライダー862およびスピンボタン863とを含む。 Image 860 includes a pull-down menu 861 for turning on or off automatic gain control by the AGC circuit 670 (see FIG. 3) of the camera 61, and a slider 862 and a spin button 863 for adjusting the gain.

上述したように、本例では、オートゲインコントロールをオフにする必要があるため、プルダウンメニュー861によって、機能のオフを示す“Off”が選択されている。 As described above, in this example, the auto gain control needs to be turned off, so "Off" is selected in the pull-down menu 861, indicating that the function is off.

スライダー862およびスピンボタン863によってゲインの値が変更されると、情報処理装置80は、カメラ61のゲイン調整を行なう。情報処理装置80は、カメラ61のゲインが、スライダー862およびスピンボタン863によって変更された値となるように、カメラ61に指示を送る。 When the gain value is changed by the slider 862 and the spin button 863, the information processing device 80 adjusts the gain of the camera 61. The information processing device 80 sends an instruction to the camera 61 so that the gain of the camera 61 becomes the value changed by the slider 862 and the spin button 863.

情報処理装置80は、変更後のゲインでの、出力画像の明るさの評価値Mの最大値と最小値とを表示かつ記憶する。本例では、画像870に、最大値と最小値とが表示される。当該ゲインにおける最大値と最小値とは、ユーザによってゲインが別の値に変更されるまで更新され続ける。 The information processing device 80 displays and stores the maximum and minimum values of the brightness evaluation value M of the output image at the changed gain. In this example, the maximum and minimum values are displayed in the image 870. The maximum and minimum values at the gain are continuously updated until the gain is changed to a different value by the user.

情報処理装置80のユーザは、画面890を視認しつつ、ゲインを調整する。詳しくは、スライド314が上下することによる画像の明るさの変化を確認しつつ、ゲインを調整する。ユーザは、画面890に表示された画像の明るさが適切であると判断すると、設定ボタンを示す画像880を選択する。これにより、情報処理装置80は、画像880が選択されたときのゲインの値を、ゲインの初期値に設定する(図5のステップS1)。 The user of the information processing device 80 adjusts the gain while viewing the screen 890. More specifically, the user adjusts the gain while checking the change in brightness of the image caused by the up and down movement of the slide 314. When the user determines that the brightness of the image displayed on the screen 890 is appropriate, the user selects the image 880 indicating a setting button. This causes the information processing device 80 to set the gain value at the time the image 880 was selected to the initial gain value (step S1 in FIG. 5).

さらに、情報処理装置80は、画像880が選択されたときのゲインにおける最大値を明るさの評価値Mの許容範囲の上限値に設定し、かつ最小値を当該許容範囲の上限値に設定する(図5のステップS2)。 Furthermore, the information processing device 80 sets the maximum value of the gain when the image 880 is selected to the upper limit of the allowable range of the brightness evaluation value M, and sets the minimum value to the upper limit of the allowable range (step S2 in FIG. 5).

たとえば、ユーザがゲインを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 image 880 with the gain set to Gp, the information processing device 80 sets M1 to the upper limit value M_UL of the allowable range of the brightness evaluation value M and sets M2 to the lower limit value M_LL of the allowable range.

図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 camera 61 with the gain kept constant (for example, with the gain maintained at Gp), the information processing device 80 generates data D1 indicating periodic changes in the brightness evaluation value M based on the above formula (1). The waveform 901 is a graph representing the data D1. The data D1 is a record of the evaluation value M in chronological order.

波形901として示されているように、周期性を持って評価値Mが変化する理由は、スライド314が周期的に上下移動するためである。 As shown by waveform 901, the evaluation value M changes periodically because the slide 314 moves up and down periodically.

このようなデータ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 upper mold 316 and the lower mold 315 is replaced. This is because the appropriate tolerance range R differs depending on the shape of the mold.

(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 information processing device 80 generates data D2 indicating periodic changes in the brightness evaluation value M based on the above formula (1). Waveform 902 is a graph representing the data D2.

波形902にて示されているように、データD2の最大値M_MAXは、設定された許容範囲Rの上限値M_ULを下回っている。しかしながら、データD2の最小値M_MINも許容範囲Rの下限値M_LLを下回っている。 As shown in waveform 902, the maximum value M_MAX of data D2 is below the upper limit M_UL of the set tolerance range R. However, the minimum value M_MIN of data D2 is also below the lower limit M_LL of the tolerance range R.

このように、最小値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 press system 1 is in automatic operation, when the operator leaves the building in which the press system 1 is installed, the lighting in the building is turned off.

(ii)プレスシステム1が設置されている建屋のカーテンが実運用環境では通常開けられているにもかかわらず閉じられた場合。 (ii) If the curtain of the building in which the press system 1 is installed is closed even though it is normally open in an actual operating environment.

情報処理装置80は、データD2の最小値M_MINが許容範囲Rの下限値M_LLを下回っていると判断すると、カメラ61のゲインを上げるための指示をカメラ61に送る。 When the information processing device 80 determines that the minimum value M_MIN of the data D2 is below the lower limit M_LL of the allowable range R, it sends an instruction to the camera 61 to increase the gain of the camera 61.

情報処理装置80は、たとえば、予め定められた値(たとえば、1db)だけゲインの値を下げる指示をカメラ61に送る。あるいは、情報処理装置80は、ゲインの値そのものを、カメラ61に送ってもよい。また、情報処理装置80は、最小値M_MINと下限値M_LLとの差分の大きさに基づき、当該予め定められた値をまたはゲインの値そのものを決定してもよい。 For example, the information processing device 80 sends an instruction to the camera 61 to lower the gain value by a predetermined value (for example, 1 db). Alternatively, the information processing device 80 may send the gain value itself to the camera 61. Furthermore, the information processing device 80 may determine the predetermined value or the gain value itself based on the magnitude of the difference between the minimum value M_MIN and the lower limit value M_LL.

図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 information processing device 80 generates data D3 indicating periodic changes in the brightness evaluation value M based on the above formula (1). Waveform 903 is a graph representing the data D3.

波形903にて示されているように、データD3の最小値M_MINは、設定された許容範囲Rの下限値M_LLを上回っている。しかしながら、データD3の最大値M_MAXも許容範囲Rの上限値M_ULを上回っている。 As shown in waveform 903, the minimum value M_MIN of data D3 exceeds the lower limit M_LL of the set tolerance range R. However, the maximum value M_MAX of data D3 also exceeds the upper limit M_UL of the tolerance range R.

このように、最大値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 press system 1 is installed are opened even though they are normally closed in the actual operating environment.

情報処理装置80は、データD3の最大値M_MAXが許容範囲Rの上限値M_ULを上回っていると判断すると、カメラ61のゲインを下げるための指示をカメラ61に送る。 When the information processing device 80 determines that the maximum value M_MAX of the data D3 exceeds the upper limit value M_UL of the allowable range R, it sends an instruction to the camera 61 to lower the gain of the camera 61.

情報処理装置80は、たとえば、予め定められた値(たとえば、1db)だけゲインの値を上げる指示をカメラ61に送る。あるいは、情報処理装置80は、ゲインの値そのものを、カメラ61に送ってもよい。また、情報処理装置80は、最大値M_MAXと上限値M_ULとの差分の大きさに基づき、当該予め定められた値をまたはゲインの値そのものを決定してもよい。 For example, the information processing device 80 sends an instruction to the camera 61 to increase the gain value by a predetermined value (for example, 1 db). Alternatively, the information processing device 80 may send the gain value itself to the camera 61. Furthermore, the information processing device 80 may determine the predetermined value or the gain value itself based on the magnitude of the difference between the maximum value M_MAX and the upper limit value M_UL.

図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 information processing device 80 to the camera 61 in the state of Figure 10.

図11に示されるように、情報処理装置80は、上記の式(1)に基づき、明るさの評価値Mの周期的な変化を示すデータD4を生成する。波形904は、当該データD4をグラフとして表したものである。 As shown in FIG. 11, the information processing device 80 generates data D4 indicating periodic changes in the brightness evaluation value M based on the above formula (1). Waveform 904 is a graph representing the data D4.

波形904にて示されているように、データD4の最小値M_MINは、図10と同様に、設定された許容範囲Rの下限値M_LLを上回っている。データD4の最大値M_MAXは、図10とは異なり、許容範囲Rの上限値M_ULを下回っている。 As shown in waveform 904, the minimum value M_MIN of data D4 is greater than the lower limit M_LL of the set tolerance range R, as in FIG. 10. The maximum value M_MAX of data D4 is less than the upper limit M_UL of the tolerance range R, unlike FIG. 10.

このように、カメラ61のゲインを情報処理装置80から制御することにより、データD4の最小値M_MINと最大値M_MINとを、明るさの評価値Mの許容範囲R内に収めることが可能となる。 In this way, by controlling the gain of the camera 61 from the information processing device 80, it is possible to keep the minimum value M_MIN and maximum value M_MIN of the data D4 within the allowable range R of the brightness evaluation value M.

なお、上記では、説明の便宜上、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 information processing device 80 may repeatedly send a gain change instruction to the camera 61 until the minimum value M_MIN and maximum value M_MIN fall within the allowable range R.

なお、情報処理装置80は、図9の場合も上記と同様な処理を実行することにより、データの最小値M_MINと最大値M_MINとを明るさの評価値Mの許容範囲R内に収める。 In addition, the information processing device 80 performs the same process as described above in the case of FIG. 9 to bring the minimum value M_MIN and maximum value M_MIN of the data within the allowable range R of the brightness evaluation value M.

図11で示した状態に遷移した後も、情報処理装置80は、データの取得処理を続ける。情報処理装置80は、当該データの最小値M_MINと最大値M_MINとが明るさの評価値Mの許容範囲R内に収まっているかを監視する。情報処理装置80は、収まっていないと判断すると、上述したように、ゲインを変更する指示をカメラ61に再度送信する。 Even after transitioning to the state shown in FIG. 11, the information processing device 80 continues the data acquisition process. The information processing device 80 monitors whether the minimum value M_MIN and maximum value M_MIN of the data are within the allowable range R of the brightness evaluation value M. If the information processing device 80 determines that they are not within the allowable range R, as described above, it again transmits an instruction to change the gain to the camera 61.

このような処理により、情報処理装置80に記録される画像(映像)については、概ね、明るさの評価値Mが、設定された許容範囲Rに収まる。それゆえ、プレス機械本体31に以上が発生した場合において、情報処理装置80にて異常が発生したときの画像を確認する際において、当該画像が黒つぶれまたは白飛びの状態となっていることを防ぐことが可能となる。したがって、情報処理装置80によれば、異常発生時における動画像を利用した異常発生要件の解析処理を促進させることが可能となる。 By this processing, the brightness evaluation value M of the image (video) recorded in the information processing device 80 generally falls within the set allowable range R. Therefore, when the above occurs in the press machine main body 31, when checking the image at the time of the abnormality on the information processing device 80, it is possible to prevent the image from being in a state of crushed blacks or blown out highlights. Therefore, with the information processing device 80, it is possible to promote the analysis processing of the abnormality occurrence conditions using the moving image at the time of the abnormality occurrence.

図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 press machine body 31 is turned off after step S2 (FIG. 5), in step S101, an operator turns on the power supply of the press machine body 31. In step S102, imaging by the camera 61 is started. Note that an instruction to the camera 61 to start imaging may be an automatic instruction from the press controller 32, or an instruction based on a user operation on the information processing device 80. In step S103, the press machine body 31 is operated. As a result, the slide 314 to which the upper die 316 is attached moves up and down periodically.

ステップS104において、情報処理装置80は、カメラ61による撮像画像に基づき、明るさの評価値Mの周期的な変化を示したデータの取得を開始する。 In step S104, the information processing device 80 starts acquiring data showing periodic changes in the brightness evaluation value M based on the image captured by the camera 61.

ステップS105において、情報処理装置80は、判定タイミングとなったか否かを判断する。たとえば、情報処理装置80は、データの取得開始時刻または前回の判定タイミングから、所定の時間が経過したか否かを判定する。情報処理装置80は、所定の時間として、たとえばスライド314の上下移動の周期のN倍(たとえばNは2以上自然数)を用いることができる。情報処理装置80は、周期的に到来する判定タイミングとなったか否かを判断する。 In step S105, the information processing device 80 determines whether or not it is time to make a judgment. For example, the information processing device 80 determines whether or not a predetermined time has elapsed since the data acquisition start time or the previous judgment timing. The information processing device 80 can use, for example, N times the period of the up and down movement of the slide 314 (for example, N is a natural number equal to or greater than 2) as the predetermined time. The information processing device 80 determines whether or not it is time to make a judgment, which occurs periodically.

判定タイミングとなったと判断された場合(ステップ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 slide 314. The reason that the predetermined period Tp is at least one cycle of the up and down movement of the slide 314 is because it includes data for at least one bright state and one dark state.

判定タイミングとなっていないと判断された場合(ステップS105においてNO)、情報処理装置80は、処理をステップS105に戻す。 If it is determined that the judgment timing has not arrived (NO in step S105), the information processing device 80 returns the process to step S105.

ステップ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 information processing device 80 determines whether the maximum value M_MAX of the evaluation value M exceeds the upper limit value M_UL of the allowable range R. If it is determined that the maximum value M_MAX exceeds the upper limit value M_UL of the allowable range R (YES in step S107), the information processing device 80 performs control to lower the gain of the camera 61 in step S108. After step S108, the information processing device 80 advances the process to step S109.

最大値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 information processing device 80 determines whether the minimum value M_MIN of the evaluation value M is below the lower limit value M_LL of the tolerance range R.

最小値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 information processing device 80 controls to increase the gain of the camera 61 in step S111. After step S111, the information processing device 80 advances the process to step S109. If it is determined that the minimum value M_MIN is not below the lower limit value M_LL of the allowable range R (NO in step S110), the information processing device 80 advances the process to step S109.

ステップS109において、情報処理装置80は、プレス機械本体31の電源がオフされた否かを判断する。電源がオフされていないと判断された場合(ステップS109においてNO)、情報処理装置80は、処理をステップS105に戻す。電源がオフされたと判断された場合(ステップS109においてYES)、情報処理装置80は、ステップS3の処理を終了する。 In step S109, the information processing device 80 determines whether the power supply to the press machine body 31 has been turned off. If it is determined that the power supply has not been turned off (NO in step S109), the information processing device 80 returns the process to step S105. If it is determined that the power supply has been turned off (YES in step S109), the information processing device 80 ends the process of step S3.

なお、上記においては、ステップ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 press system 1 can be summarized as follows.

(1)情報処理装置80は、カメラ61(あるいはカメラ62)の出力画像についての明るさの評価値Mの許容範囲Rを記憶する。カメラ61は、少なくとも、プレス機械本体31に含まれる周期的に動作するスライド314および上金型316を撮像する。 (1) The information processing device 80 stores the allowable range R of the brightness evaluation value M for the output image of the camera 61 (or the camera 62). The camera 61 captures images of at least the periodically operating slide 314 and upper die 316 included in the press machine body 31.

情報処理装置80は、許容範囲Rが記憶された後のカメラ61による撮像に基づき、出力画像と、出力画像の明るさの評価値Mの周期的な変化を示したデータ(以下、データD)とを取得する。情報処理装置80は、データDから、上記動作の直近の1周期以上の所定期間Tpにおける明るさの評価値Mの最大値M_MAXおよび最小値M_MINを取得する。 The information processing device 80 acquires an output image and data (hereinafter, data D) showing periodic changes in the brightness evaluation value M of the output image based on the image captured by the camera 61 after the allowable range R has been stored. From the data D, the information processing device 80 acquires the maximum value M_MAX and minimum value M_MIN of the brightness evaluation value M during a predetermined period Tp of at least one cycle immediately preceding the above operation.

情報処理装置80は、最大値M_MAXが許容範囲Rに含まれていないことを条件に、カメラ61のゲインを調整する。情報処理装置80は、最大値M_MAXが許容範囲Rを上回っていることを条件に、カメラ61のゲインを現在の設定値から当該現在の設定値よりも低い値に変更する。 The information processing device 80 adjusts the gain of the camera 61 on condition that the maximum value M_MAX is not included in the allowable range R. The information processing device 80 changes the gain of the camera 61 from the current setting value to a value lower than the current setting value on condition that the maximum value M_MAX is higher than the allowable range R.

情報処理装置80は、最小値M_MINが許容範囲Rに含まれていないことを条件に、カメラ61のゲインを調整する。情報処理装置80は、最小値M_MINが許容範囲Rを下回っていることを条件に、カメラ61のゲインを現在の設定値から当該現在の設定値よりも高い値に変更する。 The information processing device 80 adjusts the gain of the camera 61 on the condition that the minimum value M_MIN is not included in the allowable range R. The information processing device 80 changes the gain of the camera 61 from the current setting value to a value higher than the current setting value on the condition that the minimum value M_MIN is below the allowable range R.

このような構成により、周期的に動作するスライドを有するプレスシステム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 information processing device 80 sets the acceptable range R of the brightness evaluation value M by the following process. As shown in FIG. 7, the information processing device 80 accepts gain adjustment based on a user operation while an output image is displayed on the display 85. After the gain adjustment based on the user operation has been performed, the information processing device 80 acquires an upper limit value M_UL and a lower limit value M_LL of the brightness evaluation value M. The information processing device 80 sets the numerical range between the upper limit value M_UL and the lower limit value M_LL as the acceptable range R.

<E.情報処理装置の機能的構成>
図13は、情報処理装置80の機能的構成を説明するためのブロック図である。
<E. Functional configuration of information processing device>
FIG. 13 is a block diagram for explaining the functional configuration of the information processing device 80. As shown in FIG.

図13に示されるように、情報処理装置80は、制御部810と、記憶部820と、通信部830と、操作部840と、表示部850とを備える。 As shown in FIG. 13, the information processing device 80 includes a control unit 810, a memory unit 820, a communication unit 830, an operation unit 840, and a display unit 850.

制御部810は、上限値設定部811と、上限値読出部812と、下限値設定部813と、下限値読出部814と、データ生成部815と、最大値取得部816と、最小値取得部817と、ゲイン変更指示部818と、表示制御部819とを含む。 The control unit 810 includes an upper limit setting unit 811, an upper limit reading unit 812, a lower limit setting unit 813, a lower limit reading unit 814, a data generating unit 815, a maximum value acquiring unit 816, a minimum value acquiring unit 817, a gain change instruction unit 818, and a display control unit 819.

制御部810は、情報処理装置80の各種の動作を制御する。制御部810は、プロセッサ81(図4)に対応する。詳しくは、制御部810は、プロセッサ81がメモリ82に記憶されたオペレーティングシステムおよび各種のプログラムを実行することにより、実現される。 The control unit 810 controls various operations of the information processing device 80. The control unit 810 corresponds to the processor 81 (FIG. 4). In detail, the control unit 810 is realized by the processor 81 executing the operating system and various programs stored in the memory 82.

記憶部820には、カメラ61,62による撮像により得られた画像データ(動画像データ)が記憶される。記憶部820は、メモリ82(図4)に対応する。 The storage unit 820 stores image data (movie image data) captured by the cameras 61 and 62. The storage unit 820 corresponds to the memory 82 (Figure 4).

操作部840は、ユーザ操作を受け付ける。たとえば、操作部840は、スライダー862(図7)を移動させる操作、スピンボタン863によってゲインの値が変更する操作等を受け付ける。操作部840は、受け付けた操作に応じた信号を制御部810に送る。操作部840は、タッチパネル89(図4)に対応する。 The operation unit 840 accepts user operations. For example, the operation unit 840 accepts an operation to move the slider 862 (FIG. 7), an operation to change the gain value using the spin button 863, etc. The operation unit 840 sends a signal corresponding to the accepted operation to the control unit 810. The operation unit 840 corresponds to the touch panel 89 (FIG. 4).

通信部830は、カメラ61,62等の外部機器と通信するためのインターフェイスである。通信部830は、通信IF83,84(図4)に対応する。 The communication unit 830 is an interface for communicating with external devices such as the cameras 61 and 62. The communication unit 830 corresponds to the communication IFs 83 and 84 (Figure 4).

表示部850は、各種の情報を表示する。表示部850は、ディスプレイ85(図4)に対応する。 The display unit 850 displays various information. The display unit 850 corresponds to the display 85 (Figure 4).

以下では、許容範囲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 camera 61 out of cameras 61 and 62.

(e1.許容範囲Rを設定する局面)
表示制御部819は、カメラ61から撮像により得られた画像データ(出力画像)を、表示部850に表示させる。また、表示制御部819は、図7に示したように、複数の画像860,870,880を出力画像に重畳させた状態で、表示部850に表示させる。
(e1. Setting the allowable range R)
The display control unit 819 causes the display unit 850 to display image data (output image) obtained by imaging from the camera 61. In addition, the display control unit 819 causes the display unit 850 to display a plurality of images 860, 870, and 880 in a state where the images are superimposed on the output image, as shown in FIG.

操作部840は、ユーザによるゲインの設定操作を受け付ける。カメラ61のゲインが、操作部840が受け付けた値となるように、制御部810は、通信部830を介してカメラ61に指示を送る。 The operation unit 840 accepts gain setting operations by the user. The control unit 810 sends instructions to the camera 61 via the communication unit 830 so that the gain of the camera 61 becomes the value accepted by the operation unit 840.

制御部810は、通信部830を介して、カメラ61から撮像により得られた画像データ(出力画像)を受信する。制御部810は、当該画像データを逐次、記憶部820に記憶させる。この場合、表示制御部819は、当該画像データを表示部850に表示させる。 The control unit 810 receives image data (output image) obtained by imaging from the camera 61 via the communication unit 830. The control unit 810 sequentially stores the image data in the storage unit 820. In this case, the display control unit 819 displays the image data on the display unit 850.

制御部810のデータ生成部815は、記憶部820に記憶された画像データに基づき、明るさの評価値Mを逐次算出し、出力画像の明るさの評価値Mの周期的な変化を示したデータDを生成する。データ生成部815は、生成されたデータDを記憶部820に記憶させる。 The data generation unit 815 of the control unit 810 sequentially calculates the brightness evaluation value M based on the image data stored in the storage unit 820, and generates data D that indicates the periodic change in the brightness evaluation value M of the output image. The data generation unit 815 stores the generated data D in the storage unit 820.

上限値設定部811は、記憶部820に記憶されたデータDに基づき、上限値M_ULを設定する。上限値設定部811は、データDの最大値を上限値M_ULに設定する。上限値設定部811は、設定された上限値M_ULを記憶部820に記憶させる。 The upper limit setting unit 811 sets the upper limit M_UL based on the data D stored in the memory unit 820. The upper limit setting unit 811 sets the maximum value of the data D to the upper limit M_UL. The upper limit setting unit 811 stores the set upper limit M_UL in the memory unit 820.

下限値設定部813は、記憶部820に記憶されたデータDに基づき、下限値M_LLを設定する。下限値設定部813は、データDの最小値を下限値M_LLに設定する。下限値設定部813は、設定された下限値M_LLを記憶部820に記憶させる。 The lower limit setting unit 813 sets the lower limit M_LL based on the data D stored in the memory unit 820. The lower limit setting unit 813 sets the minimum value of the data D to the lower limit M_LL. The lower limit setting unit 813 stores the set lower limit M_LL in the memory unit 820.

以上の処理により、情報処理装置80では、上限値M_ULと下限値M_LLとで規定される許容範囲Rが設定される。 By the above processing, the information processing device 80 sets an allowable range R defined by an upper limit value M_UL and a lower limit value M_LL.

(e2.許容範囲Rが設定された後の局面)
制御部810は、通信部830を介して、カメラ61から撮像により得られた画像データ(出力画像)を受信する。制御部810は、当該画像データを逐次、記憶部820に記憶させる。
(e2. Situation after the allowable range R is set)
The control unit 810 receives image data (output image) obtained by imaging from the camera 61 via the communication unit 830. The control unit 810 causes the storage unit 820 to store the image data one by one.

上限値読出部812は、記憶部820から上限値M_ULを読み出す。上限値読出部812は、読み出した上限値M_ULをゲイン変更指示部818に送る。 The upper limit reading unit 812 reads the upper limit value M_UL from the memory unit 820. The upper limit reading unit 812 sends the read upper limit value M_UL to the gain change instruction unit 818.

下限値読出部814は、記憶部820から下限値M_LLを読み出す。下限値読出部814は、読み出した下限値M_LLをゲイン変更指示部818に送る。 The lower limit reading unit 814 reads the lower limit value M_LL from the memory unit 820. The lower limit reading unit 814 sends the read lower limit value M_LL to the gain change instruction unit 818.

データ生成部815は、記憶部820に記憶された画像データに基づき、明るさの評価値Mを逐次算出し、出力画像の明るさの評価値Mの周期的な変化を示したデータDを生成する。データ生成部815は、生成されたデータDを記憶部820に記憶させる。 The data generation unit 815 sequentially calculates the brightness evaluation value M based on the image data stored in the storage unit 820, and generates data D that indicates the periodic change in the brightness evaluation value M of the output image. The data generation unit 815 stores the generated data D in the storage unit 820.

最大値取得部816は、判定タイミングが到来すると、現在のゲイン設定において、更新され続けているデータDにおける、明るさの評価値Mの最大値M_MAXを取得する。最大値取得部816は、当該データDから、直近の1周期(スライド314の動作周期)以上の所定期間Tpにおける明るさの評価値Mの最大値M_MAXを取得する。最大値取得部816は、取得された最大値M_MAXをゲイン変更指示部818に送る。 When the determination timing arrives, the maximum value acquisition unit 816 acquires the maximum value M_MAX of the brightness evaluation value M in the data D that is continually being updated under the current gain setting. The maximum value acquisition unit 816 acquires the maximum value M_MAX of the brightness evaluation value M in a predetermined period Tp that is equal to or greater than the most recent cycle (the operating cycle of the slide 314) from the data D. The maximum value acquisition unit 816 sends the acquired maximum value M_MAX to the gain change instruction unit 818.

最小値取得部817は、判定タイミングが到来すると、現在のゲイン設定において、更新され続けているデータDにおける、明るさの評価値Mの最小値M_MINを取得する。最小値取得部817は、当該データDから、上記所定期間Tpにおける明るさの評価値Mの最小値M_MINを取得する。最小値取得部817は、取得された最小値M_MINをゲイン変更指示部818に送る。 When the determination timing arrives, the minimum value acquisition unit 817 acquires the minimum value M_MIN of the brightness evaluation value M in the data D that is continually being updated at the current gain setting. The minimum value acquisition unit 817 acquires the minimum value M_MIN of the brightness evaluation value M in the above-mentioned predetermined period Tp from the data D. The minimum value acquisition unit 817 sends the acquired minimum value M_MIN to the gain change instruction unit 818.

ゲイン変更指示部818は、最大値M_MAXが上限値M_ULを上回っているか否かを判断する。また、ゲイン変更指示部818は、最小値M_MINが下限値M_LLを下回っているか否かを判断する。 The gain change instruction unit 818 determines whether the maximum value M_MAX is greater than the upper limit value M_UL. The gain change instruction unit 818 also determines whether the minimum value M_MIN is less than the lower limit value M_LL.

ゲイン変更指示部818は、最大値M_MAXが上限値M_ULを上回っていると判断した場合、通信部830を介して、カメラ61にゲイン変更指示を送る。具体的には、ゲイン変更指示部818は、カメラ61のゲインを下げる指示をカメラ61に送る。 When the gain change instruction unit 818 determines that the maximum value M_MAX is greater than the upper limit value M_UL, it sends a gain change instruction to the camera 61 via the communication unit 830. Specifically, the gain change instruction unit 818 sends an instruction to the camera 61 to lower the gain of the camera 61.

ゲイン変更指示部818は、最大値M_MINが下限値M_LLを下回っていると判断した場合、通信部830を介して、カメラ61にゲイン変更指示を送る。具体的には、ゲイン変更指示部818は、カメラ61のゲインを上げる指示をカメラ61に送る。 When the gain change instruction unit 818 determines that the maximum value M_MIN is below the lower limit value M_LL, it sends a gain change instruction to the camera 61 via the communication unit 830. Specifically, the gain change instruction unit 818 sends an instruction to the camera 61 to increase the gain of the camera 61.

<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 information processing device 80 may use only a partial region of the output image. Specifically, the information processing device 80 may perform the following process.

情報処理装置80は、カメラ61,62からの出力画像のうち周期的に動作する部位(スライド314)を含む一部領域(以下、「特定領域」とも称する)の画像の明るさの評価値Mの周期的な変化を示したデータDを取得する。特定領域は、オペレータ操作等に基づき予め指定されている。 The information processing device 80 acquires data D that indicates periodic changes in the image brightness evaluation value M of a partial area (hereinafter also referred to as a "specific area") that includes a periodically moving part (slide 314) from among the output images from the cameras 61 and 62. The specific area is designated in advance based on an operator operation, etc.

情報処理装置80は、当該特定領域の評価値Mの最大値を上限値M_ULとし、かつ最小値を下限値M_LLとて設定する。これにより、特定領域における許容範囲Rが設定される。 The information processing device 80 sets the maximum value of the evaluation value M of the specific region as the upper limit value M_UL and the minimum value as the lower limit value M_LL. This sets the allowable range R for the specific region.

その後、図5,図12に示したステップS3の処理において、情報処理装置80は、特定領域の画素値から算出された評価値Mに基づき、ゲインを上げる指示またはゲインを下げる指示をカメラ61に送ってもよい。 After that, in the processing of step S3 shown in Figures 5 and 12, the information processing device 80 may send an instruction to increase the gain or an instruction to decrease the gain to the camera 61 based on the evaluation value M calculated from the pixel values of the specific region.

このような処理によれば、出力画像のうち重要な箇所に着目した、ゲインの調整処理を行なうことができる。それゆえ、プレス機械本体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 press machine body 31, it is possible to obtain an image with a brightness that is more pleasing to the user.

(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 press machine body 31, it is possible to obtain an image with a brightness that is more pleasing to the user.

なお、上記特定領域の重みを一定とし、残りの領域の重みをゼロとした場合には、結果的に、第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 image sensor 606 of the camera 61. More specifically, it is a diagram showing the arrangement of colors (R, G, B) in the color filter 605.

図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 camera 61 performs data interpolation for pixel regions of G pixels and B pixels based on the pixel values of the surrounding R pixels. For example, the camera 61 (more specifically, the digital signal processing unit 609) estimates the pixel value of a G pixel from the R pixels above and below it.

これにより、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 camera 61 generates a G frame consisting of H x W G pixels and a B frame consisting of H x W B pixels.

上記の3種類のフレームを組み合わせることにより、表示用の1つのフレームが生成される。このように、カメラ61では、画素混合方式により色再現を行う。 A single frame for display is generated by combining the above three types of frames. In this way, camera 61 reproduces colors using a pixel mixing method.

この場合、情報処理装置80は、たとえば、評価値Mを以下の式(3)を用いて算出する。 In this case, the information processing device 80 calculates the evaluation value M, for example, using the following formula (3):

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 camera 61 is described as having RGB filters (primary color filters) as the color filter 605, but the color filter 605 may be a filter (complementary color filter) consisting of four colors: cyan (Cy), magenta (Mg), yellow (Y), and green (G). In this case, the evaluation value M can be calculated by using Cy, Mg, Y, and G instead of R, G, and B in equation (3).

(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 information processing device 80 may be configured to perform gain adjustment only when the maximum value M_MAX of the evaluation value M exceeds the upper limit value M_UL, or when the minimum value M_MIN of the evaluation value M falls below the lower limit value M_LL.

(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 information processing device 80 may adjust the gain so that at least one of the maximum value M_MAX and the minimum value M_MIN after the gain adjustment, selected (specified) by a user operation, falls within the allowable range R.

たとえば、黒つぶれよりも白飛びを防止したい場合には、オペレータは、ゲイン調整後の最大値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 information processing device 80 to prioritize regulation on the upper limit so that the maximum value M_MAX after gain adjustment falls within the allowable range R. Conversely, if it is desired to prevent black crush rather than white crush, the operator can set the information processing device 80 to prioritize regulation on the lower limit so that the minimum value M_MIN after gain adjustment falls within the allowable range R. Such operator operations can be realized via a user interface provided by the information processing device 80.

(6)第6の変形例
上記の実施の形態においては、周期的に動作する部位として、スライド314を例に挙げて説明したが、これに限定されるものではない。
(6) Sixth Modification In the above embodiment, the slide 314 is taken as an example of a part that moves periodically, but the present invention is not limited to this.

たとえば、プレス機器本体同士の間においてワーク(典型的には、仕掛品)を搬送する搬送装置(典型的には、上流側のプレス機器本体と下流側のプレス機器本体との間でワークの受け渡しを行うアーム型のロボット)は、周期的に動作する。それゆえ、カメラによって、当該搬送装置を撮像する局面に、上述したゲイン調整処理を適用できる。 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のユーザ操作に基づき、前記情報処理装置が、前記最大値および前記最小値の一方の値を選択するステップをさらに備え、
前記最大値および前記最小値のうちの少なくとも一方の値を取得するステップでは、少なくとも前記選択した値を取得し、
前記カメラのゲインを調整するステップでは、前記選択した値が前記許容範囲に含まれていないことを条件に、前記情報処理装置が、前記選択した値が前記許容範囲に含まれるように、前記カメラのゲインを調整する、請求項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.
JP2020188667A 2020-11-12 2020-11-12 Gain adjustment method, information processing device, and imaging system Active JP7628418B2 (en)

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)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Patent Citations (4)

* Cited by examiner, † Cited by third party
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