JP2021027490A - Image processing device, imaging device, imaging system, control method of the image processing device, and program - Google Patents

Image processing device, imaging device, imaging system, control method of the image processing device, and program Download PDF

Info

Publication number
JP2021027490A
JP2021027490A JP2019144828A JP2019144828A JP2021027490A JP 2021027490 A JP2021027490 A JP 2021027490A JP 2019144828 A JP2019144828 A JP 2019144828A JP 2019144828 A JP2019144828 A JP 2019144828A JP 2021027490 A JP2021027490 A JP 2021027490A
Authority
JP
Japan
Prior art keywords
detection
gradation number
image
gradations
gradation
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.)
Pending
Application number
JP2019144828A
Other languages
Japanese (ja)
Inventor
純也 水谷
Junya Mizutani
純也 水谷
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.)
Canon Inc
Original Assignee
Canon Inc
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 Canon Inc filed Critical Canon Inc
Priority to JP2019144828A priority Critical patent/JP2021027490A/en
Publication of JP2021027490A publication Critical patent/JP2021027490A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Studio Devices (AREA)
  • Image Analysis (AREA)

Abstract

To provide a technique for enabling the reduction of a data size of an imaging image, while suppressing an influence for a subject detection accuracy.SOLUTION: An image processing device comprises: setting means of setting a detection processing of a subject to an imaging image; detection means of executing the set detection processing from the imaging image; gradation number control means of determining a gradation number of the imaging image after the reduction of the gradation number in accordance with a type of the set detection processing and a detection result of the detection processing, and converting the imaging image into the determined gradation number; and output means of outputting the imaging image obtained by converting the gradation number and the detection result when the detection processing is executed by the detection means.SELECTED DRAWING: Figure 1

Description

本願は、画像処理装置、撮像装置、撮像システム、画像処理装置の制御方法、及び、プログラムに関する。 The present application relates to an image processing device, an imaging device, an imaging system, a control method of the image processing device, and a program.

ネットワークカメラによる定常撮像という状況において、撮像画像のデータサイズが大きい場合は、ネットワークカメラから外部装置への画像(映像)のネットワーク配信に負荷が掛かり、フレームレートの低下等の品質劣化が発生する。これに対して、画像の階調数を削減することによって撮像画像のデータサイズを低減させ、配信負荷を軽減させるアプローチが提案されている。 In the situation of constant imaging by a network camera, if the data size of the captured image is large, the network distribution of the image (video) from the network camera to the external device is overloaded, and quality deterioration such as a decrease in frame rate occurs. On the other hand, an approach has been proposed in which the data size of the captured image is reduced by reducing the number of gradations of the image and the distribution load is reduced.

特許文献1は、撮像環境の照度に応じて、画像の階調数を動的に制御することで、画像のノイズ量を抑制し、同時に画像を配信する際のデータサイズを低減する方法を開示する。特許文献2は、被写体の動き量の大きさに着目して、動き量の大きい領域に対して階調数を削減することで撮像画像のデータサイズを低減する技術を開示する。 Patent Document 1 discloses a method of suppressing the amount of noise in an image and simultaneously reducing the data size when delivering the image by dynamically controlling the number of gradations of the image according to the illuminance of the imaging environment. To do. Patent Document 2 discloses a technique for reducing the data size of a captured image by reducing the number of gradations in a region where the amount of movement is large, focusing on the amount of movement of the subject.

特開2017-135554号公報JP-A-2017-135554 特開2012-73971号公報Japanese Unexamined Patent Publication No. 2012-73971

しかしながら、上述の従来技術では、階調数の削減によって被写体の検出精度に影響が生ずるおそれがある。特に、検出精度への影響度合いは、設定されている検出方法の種別に応じて異なるため、検出方法の種別に応じた階調数の制御が求められる。 However, in the above-mentioned conventional technique, the reduction of the number of gradations may affect the detection accuracy of the subject. In particular, since the degree of influence on the detection accuracy differs depending on the type of the set detection method, it is required to control the number of gradations according to the type of the detection method.

そこで、本発明は、被写体検出精度に対する影響を抑制しつつ、撮像画像のデータサイズを低減可能にするための技術を提供する。 Therefore, the present invention provides a technique for reducing the data size of a captured image while suppressing the influence on the subject detection accuracy.

上記課題を解決するための発明は、画像処理装置であって、
撮像画像に対して行う被写体の検出処理を設定する設定手段と、
前記撮像画像から、前記設定された検出処理を実行する検出手段と、
前記設定された検出処理の種別と、前記検出処理の検出結果に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御手段と、
前記階調数が変換された前記撮像画像と、前記検出手段により前記検出処理が実行された場合の検出結果とを出力する出力手段と
を備え、
前記階調数制御手段は、
前記設定手段により前記検出処理が設定されなかった場合、及び、前記設定された検出処理を実行して検出結果が得られなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定手段により前記検出処理が設定された場合であって、かつ、前記設定された検出処理を実行して前記所定の検出結果が得られた場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定する。
The invention for solving the above problems is an image processing apparatus.
Setting means for setting subject detection processing for captured images, and
A detection means that executes the set detection process from the captured image, and
The number of gradations of the captured image after the number of gradations is reduced is determined according to the set type of detection processing and the detection result of the detection processing, and the image is converted to the determined gradation number. Key control means and
The image pickup image to which the number of gradations is converted and the output means for outputting the detection result when the detection process is executed by the detection means are provided.
The gradation number control means
When the detection process is not set by the setting means, or when the set detection process is executed and the detection result is not obtained, the first gradation number is reduced after the gradation number is reduced. Determine the number of gradations,
It is larger than the first gradation number when the detection process is set by the setting means and when the set detection process is executed and the predetermined detection result is obtained. The second gradation number is determined to be the gradation number after the gradation number reduction.

本発明によれば、被写体検出精度に対する影響を抑制しつつ、撮像画像のデータサイズを低減することができる。 According to the present invention, it is possible to reduce the data size of the captured image while suppressing the influence on the subject detection accuracy.

実施形態に係る撮像システムの構成例を示すブロック図。The block diagram which shows the structural example of the imaging system which concerns on embodiment. 実施形態に係る画像処理部の機能構成の一例を示す図、及び、撮像装置のハードウェア構成の一例を示す図。The figure which shows an example of the functional structure of the image processing part which concerns on embodiment, and the figure which shows an example of the hardware structure of an image pickup apparatus. 実施形態に係る検出処理の種別と階調数との関係を説明するためのテーブル。A table for explaining the relationship between the type of detection processing and the number of gradations according to the embodiment. 実施形態に係るガンマテーブルの一例を示す図。The figure which shows an example of the gamma table which concerns on embodiment. 実施形態に係る処理の一例を示すフローチャート。The flowchart which shows an example of the process which concerns on embodiment. 実施形態に係る処理の他の一例を示すフローチャート。The flowchart which shows another example of the process which concerns on embodiment.

以下、添付図面を参照して実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る発明を限定するものではない。実施形態には複数の特徴が記載されているが、これらの複数の特徴の全てが発明に必須のものとは限らず、また、複数の特徴は任意に組み合わせられてもよい。さらに、添付図面においては、同一若しくは同様の構成に同一の参照番号を付し、重複した説明は省略する。 Hereinafter, embodiments will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the invention according to the claims. Although a plurality of features are described in the embodiment, not all of the plurality of features are essential to the invention, and the plurality of features may be arbitrarily combined. Further, in the attached drawings, the same or similar configurations are designated by the same reference numbers, and duplicate description is omitted.

[実施形態1]
以下、添付の図面を参照して、実施形態1における撮像システムの構成及び処理の流れについて説明する。まず、発明の第1の実施形態に係る撮像システムの構成について、図1のブロック図を用いて説明する。図1は、発明の実施形態1に係る撮像システムの構成例を示すブロック図である。図1において、撮像システム100は、撮像装置110、情報処理装置120、表示装置130がネットワーク140を介して相互に接続されて構成されている。図1に示した撮像システム100の構成要素は、あくまで一例であって、これら以外の構成要素が更に追加されても良い。以下、各構成要素について説明する。
[Embodiment 1]
Hereinafter, the configuration and processing flow of the imaging system according to the first embodiment will be described with reference to the attached drawings. First, the configuration of the imaging system according to the first embodiment of the invention will be described with reference to the block diagram of FIG. FIG. 1 is a block diagram showing a configuration example of an imaging system according to a first embodiment of the present invention. In FIG. 1, the imaging system 100 is configured such that an imaging device 110, an information processing device 120, and a display device 130 are connected to each other via a network 140. The components of the imaging system 100 shown in FIG. 1 are merely examples, and components other than these may be further added. Hereinafter, each component will be described.

撮像装置110は、光学系111、撮像部112、制御部113、画像処理部114、操作部115、表示部116及び通信部117を有することができる。 The image pickup apparatus 110 may include an optical system 111, an image pickup section 112, a control section 113, an image processing section 114, an operation section 115, a display section 116, and a communication section 117.

光学系111は、像倍率を決定するズームレンズと、焦点位置を調整するフォーカスレンズ、撮像する光の波長域を制限する透過フィルタの少なくとも一つを備える。光学系111は、レンズを移動させるためのモータ等の所定の駆動機構を含み、当該駆動機構は制御部113からの指示に応じて動作が制御される。 The optical system 111 includes at least one of a zoom lens that determines the image magnification, a focus lens that adjusts the focal position, and a transmission filter that limits the wavelength range of the light to be imaged. The optical system 111 includes a predetermined drive mechanism such as a motor for moving the lens, and the operation of the drive mechanism is controlled in response to an instruction from the control unit 113.

撮像部112は、撮像素子、現像処理部、符号化部等を含むことができる。撮像素子は、撮像面に結像された光像を光電変換して得られたアナログ画像信号をデジタル画像信号に変換して出力するようにA/D変換器を含んで構成することができる。現像処理部は、撮像センサから出力されたデジタル画像信号に対して、例えば、ディベイヤ処理、ガンマ補正処理、階調変換処理等の現像処理を実施することができる。現像処理は、RGB形式のデータからYUV等の形式に変換する処理を含むことができる。符号化部では、現像処理部が出力したデジタル画像信号を圧縮・符号化して、画像データを生成する。画像圧縮方式は、例えば、H.264、H.265、MJPEGまたはJPEGなどの規格に基づくことができる。さらに、mp4やavi形式などを含む任意の形式の画像データを生成しても良い。撮像部112では、例えば、1秒間に30フレーム分の画像を取得して、監視領域の30fpsの動画像(ライブ映像)を取得することが可能である。 The image pickup unit 112 can include an image pickup element, a development processing unit, a coding unit, and the like. The image pickup device can be configured to include an A / D converter so as to convert an analog image signal obtained by photoelectric conversion of an optical image formed on an image pickup surface into a digital image signal and output the signal. The development processing unit can perform development processing such as debayer processing, gamma correction processing, and gradation conversion processing on the digital image signal output from the image sensor. The development process can include a process of converting RGB format data into a format such as YUV. The coding unit compresses and encodes the digital image signal output by the development processing unit to generate image data. The image compression method can be based on a standard such as H.264, H.265, MJPEG or JPEG. Further, image data in any format including mp4 and avi formats may be generated. The imaging unit 112 can acquire, for example, an image for 30 frames per second and acquire a moving image (live image) of 30 fps in the monitoring area.

制御部113は、撮像装置110の画角や撮像方向、フレームレート、取得する画像の種類等の撮像条件を調整する。撮像条件の調整は、ユーザからの指示に応じて実行することもできるし、撮像装置110に予め記憶された設定値に応じて行うこともできる。ユーザから指示を行う場合は、ネットワーク150を介して情報処理装置120や表示装置130から行なってもよいし、直接、撮像装置110の操作部115を介して行ってもよい。また、制御部113は、情報処理装置120や表示装置130から送信される命令に応じて、撮像開始/終了など撮像部112の制御を行うこともできる。 The control unit 113 adjusts imaging conditions such as the angle of view, imaging direction, frame rate, and type of image to be acquired of the imaging device 110. The adjustment of the imaging conditions can be performed according to an instruction from the user, or can be performed according to a set value stored in advance in the imaging device 110. When the user gives an instruction, the instruction may be given from the information processing device 120 or the display device 130 via the network 150, or may be given directly through the operation unit 115 of the image pickup device 110. Further, the control unit 113 can also control the image pickup unit 112 such as start / end of imaging in response to a command transmitted from the information processing device 120 or the display device 130.

画像処理部114は、検出種別の設定を受け付ける処理、設定された検出種別に応じた階調数の決定処理、設定された検出種別に応じて撮像画像から被写体等を検出する処理等の画像処理を行う。その他、撮像画像において被写体の動きを検出することができる。 The image processing unit 114 performs image processing such as processing for accepting the setting of the detection type, processing for determining the number of gradations according to the set detection type, and processing for detecting the subject or the like from the captured image according to the set detection type. I do. In addition, the movement of the subject can be detected in the captured image.

操作部115は、ボタン、キー、ダイヤル、タッチパネル等のユーザインタフェースであって、撮像装置110に対する設定入力、指示入力を受け付ける。操作部115は、撮像装置110に接続されたコンソール端末として構成されてもよい。表示部116は、所定の設定画面を表示したり、撮像画像を表示したりするディスプレイである。通信部117は、撮像部112が撮像して生成した画像や、検出処理の結果等をネットワーク140経由で、情報処理装置120、表示装置130等に送信するための通信インタフェースである。通信部117は、例えば、NFSやCIFSなどのネットワークファイルシステム、または、UDPやTCPなどのネットワーク通信プロトコルを使用して、通信相手との間でデータのやり取りの調整を行う。また、通信部117は、情報処理装置120や表示装置130から撮像装置110を制御するための設定情報や命令を受信し、制御部113に供給する。制御部113は、その設定情報や命令に従って撮像装置110の動作を制御する。 The operation unit 115 is a user interface such as a button, a key, a dial, and a touch panel, and receives setting input and instruction input for the image pickup apparatus 110. The operation unit 115 may be configured as a console terminal connected to the image pickup apparatus 110. The display unit 116 is a display for displaying a predetermined setting screen or displaying a captured image. The communication unit 117 is a communication interface for transmitting an image imaged and generated by the image pickup unit 112, a result of detection processing, and the like to the information processing device 120, the display device 130, and the like via the network 140. The communication unit 117 coordinates the exchange of data with the communication partner by using, for example, a network file system such as NFS or CIFS, or a network communication protocol such as UDP or TCP. Further, the communication unit 117 receives setting information and commands for controlling the image pickup device 110 from the information processing device 120 and the display device 130, and supplies them to the control unit 113. The control unit 113 controls the operation of the image pickup apparatus 110 according to the setting information and the command.

記憶部118は、制御部113により管理される、光学系111や撮像部112の制御情報や撮像条件に関する情報、制御プログラム等を記憶したり、画像処理部114における処理に用いられる情報や、処理結果を記憶したりする。撮像部112からの撮像画像、画像処理部114による画像処理後の画像を蓄積すると共に、画像処理部114における画像解析処理(被写体等の検出処理)の処理結果を記憶する。その他、記憶部118は、制御部113が撮像装置110の動作を制御するための各種プログラムを記憶すると共に、ワークエリアとして機能する。 The storage unit 118 stores control information of the optical system 111 and the imaging unit 112, information on imaging conditions, a control program, etc. managed by the control unit 113, and information used for processing in the image processing unit 114, and processing. Memorize the results. The image captured by the image capturing unit 112 and the image processed by the image processing unit 114 are accumulated, and the processing result of the image analysis processing (detection processing of the subject or the like) in the image processing unit 114 is stored. In addition, the storage unit 118 stores various programs for the control unit 113 to control the operation of the image pickup apparatus 110, and also functions as a work area.

情報処理装置120は、制御部121、記憶部122、画像処理部123、操作部124、表示部125、通信部126を含んで構成される。制御部121は、情報処理装置120の各部の動作を制御する。制御部121は、撮像システム100に接続されている撮像装置110の動作及び設定を管理することができる。撮像システム100には複数台の撮像装置110を接続することができ、制御部121は、各撮像装置110の種類、設置場所、設置環境、撮像パラメータ等に関する情報を管理する。制御部121は、撮像装置110に対して設定する撮像パラメータを選択して、通信部126を介して撮像装置110に送信し、撮像条件を設定することができる。また、撮像装置110に対して設定した撮像パラメータや、設置場所、設置環境等の撮像条件に関する情報を、記憶部122に記憶して管理することができる。これらの撮像条件に関する情報は、一度取得して保存した後も、適宜更新することができる。例えば、撮像装置110から定期的に送信される画像を解析して、撮像装置110の設置場所における撮像条件(例えば、照度等)に変化があった場合には、制御部121は撮像条件に関する情報を更新することができる。 The information processing device 120 includes a control unit 121, a storage unit 122, an image processing unit 123, an operation unit 124, a display unit 125, and a communication unit 126. The control unit 121 controls the operation of each unit of the information processing device 120. The control unit 121 can manage the operation and setting of the image pickup apparatus 110 connected to the image pickup system 100. A plurality of imaging devices 110 can be connected to the imaging system 100, and the control unit 121 manages information regarding the type, installation location, installation environment, imaging parameters, and the like of each imaging device 110. The control unit 121 can select an imaging parameter to be set for the imaging device 110 and transmit it to the imaging device 110 via the communication unit 126 to set the imaging conditions. In addition, information on imaging conditions such as an imaging parameter set for the imaging apparatus 110 and an installation location and an installation environment can be stored and managed in the storage unit 122. The information regarding these imaging conditions can be appropriately updated even after being acquired and saved once. For example, when an image periodically transmitted from the imaging device 110 is analyzed and the imaging conditions (for example, illuminance, etc.) at the installation location of the imaging device 110 change, the control unit 121 provides information on the imaging conditions. Can be updated.

記憶部122は、撮像装置110から受信した画像データを記憶したり、画像処理部123における処理に用いられる情報や、処理結果を記憶したりする。また、制御部121により管理される撮像条件に関する情報等を記憶することができる。 The storage unit 122 stores image data received from the image pickup apparatus 110, information used for processing in the image processing unit 123, and processing results. In addition, it is possible to store information and the like regarding imaging conditions managed by the control unit 121.

画像処理部123は、撮像装置110から受信した画像に対して所定の画像処理や解析処理を行って、処理結果を出力する。例えば、受信した画像に対し、撮像装置110で検出された被写体が存在する領域を識別するための枠を重畳するといった加工処理を行うことができる。また、受信画像に対して被写体を検出する処理を実行することもできる。 The image processing unit 123 performs predetermined image processing and analysis processing on the image received from the image pickup apparatus 110, and outputs the processing result. For example, it is possible to perform processing processing such as superimposing a frame for identifying an area in which a subject detected by the image pickup apparatus 110 exists on the received image. It is also possible to execute a process of detecting a subject on the received image.

操作部124は、情報処理装置120の操作者からの操作を受け付けることができる。具体的に、撮像装置110、情報処理装置120の設定を変更するための操作を受け付けることができ、キーボード、マウス、各種操作ボタン、タッチパネル等を含むことができる。撮像装置110がネットワーク140に複数台接続されている場合、操作部124により、1つの画面で複数台分の画像データを表示部125に表示するための指示入力を行うことができる。また、画面上で1つの画像データを選択して、その画像データを表示部125に表示するための指示入力を行うこともできる。また、各種設定情報を設定、変更するための指示入力を行うことができる。さらには、本実施形態に対応する画像解析処理の結果に対する評価を入力することができる。 The operation unit 124 can receive an operation from the operator of the information processing device 120. Specifically, it can accept operations for changing the settings of the image pickup device 110 and the information processing device 120, and can include a keyboard, a mouse, various operation buttons, a touch panel, and the like. When a plurality of image pickup devices 110 are connected to the network 140, the operation unit 124 can input instructions for displaying the image data of the plurality of image devices on the display unit 125 on one screen. It is also possible to select one image data on the screen and input instructions for displaying the image data on the display unit 125. In addition, it is possible to input instructions for setting and changing various setting information. Further, it is possible to input an evaluation for the result of the image analysis processing corresponding to the present embodiment.

表示部125は、撮像装置110から取得した撮像画像を表示出力する他、情報処理装置120における各種処理の設定情報、情報処理装置120における処理結果を表示するための画面、あるいは、撮像装置110の設定情報や撮像パラメータ等を設定、変更するための設定用画面、通知出力のための画面の表示を行うことができる。また、表示部125は、画像出力の他、音声出力を行う機能を有していてもよい。表示部125は、ディスプレイ等の表示装置と、当該表示装置における表示を制御する表示制御部とで構成することができる。また、ディスプレイは情報処理装置120の外部に設置され、情報処理装置120と接続して利用する形態であってもよい。 In addition to displaying and outputting the captured image acquired from the image pickup device 110, the display unit 125 displays and outputs setting information of various processes in the information processing device 120, a screen for displaying the processing result in the information processing device 120, or the image pickup device 110. It is possible to display a setting screen for setting and changing setting information and imaging parameters, and a screen for notification output. Further, the display unit 125 may have a function of outputting audio in addition to image output. The display unit 125 can be composed of a display device such as a display and a display control unit that controls the display on the display device. Further, the display may be installed outside the information processing device 120 and may be used by connecting to the information processing device 120.

通信部126は、撮像装置110から送信される画像を受信する。また、通信部126は、情報処理装置120のユーザが操作部124や表示部125を使用して設定した設定情報や制御情報、配信命令を撮像装置110に送信することができる。さらに、情報処理装置120で画像を解析処理した結果(上記通知を含む)をネットワーク140に接続された表示装置130に出力することができる。 The communication unit 126 receives the image transmitted from the image pickup apparatus 110. Further, the communication unit 126 can transmit the setting information, the control information, and the distribution command set by the user of the information processing device 120 using the operation unit 124 and the display unit 125 to the image pickup device 110. Further, the result of image analysis processing by the information processing device 120 (including the above notification) can be output to the display device 130 connected to the network 140.

表示装置130は、撮像装置110が撮像する画像を表示するとともに、情報処理装置120から受信した各種の画像解析結果を出力することができる。また、撮像装置110で撮像する撮像条件・撮像パラメータを指示・変更するためのユーザインタフェースを提供したり、配信された映像を表示したりすることもできる。情報処理装置120の表示部125を表示装置130として構成してもよい。 The display device 130 can display the image captured by the image pickup device 110 and output various image analysis results received from the information processing device 120. It is also possible to provide a user interface for instructing / changing the imaging conditions / imaging parameters to be captured by the imaging device 110, and to display the distributed video. The display unit 125 of the information processing device 120 may be configured as the display device 130.

ネットワーク140は、LANやインターネット等のIPベースの通信が可能な通信回線である。ネットワーク140は、有線/無線の形態を問わず、用途や目的に応じて、必要な形態の通信回線が実装される。撮像装置110は、指定された撮像条件に従ってライブ映像を撮像し、得られた画像データをネットワーク140経由で各装置に配信することができる。 The network 140 is a communication line capable of IP-based communication such as LAN and the Internet. In the network 140, regardless of the form of wire / wireless, a communication line in a required form is mounted according to the application and purpose. The image pickup apparatus 110 can capture a live image according to a designated imaging condition and distribute the obtained image data to each apparatus via the network 140.

図1に示す撮像システム100の構成において、撮像装置110の台数は1台以上の任意の数とすることができ、台数に限定はない。情報処理装置120及び表示装置130は、単一の装置により実現される場合だけでなく、それぞれ複数の装置が協働して各機能を実現してもよい。 In the configuration of the imaging system 100 shown in FIG. 1, the number of imaging devices 110 can be any number of one or more, and the number is not limited. The information processing device 120 and the display device 130 may be realized not only by a single device but also by a plurality of devices working together to realize each function.

次に図2(A)を参照して、本実施形態に対応する画像処理部114の機能構成について説明する。画像処理部114は、本実施形態に特有の機能として階調数制御部1141、検出部1142及び検出種別設定部1143とを有する。 Next, with reference to FIG. 2A, the functional configuration of the image processing unit 114 corresponding to the present embodiment will be described. The image processing unit 114 has a gradation number control unit 1141, a detection unit 1142, and a detection type setting unit 1143 as functions peculiar to the present embodiment.

階調数制御部1141は、検出種別設定部1143によって設定された検出方法の種別に応じて、検出部1142における検出処理対象の画像の階調数を決定し、当該階調数に従って画像の各画素値を変換する。階調数は、検出部1142における検出精度を劣化させないように決定する。 The gradation number control unit 1141 determines the gradation number of the image to be detected by the detection unit 1142 according to the type of the detection method set by the detection type setting unit 1143, and each of the images is determined according to the gradation number. Convert the pixel value. The number of gradations is determined so as not to deteriorate the detection accuracy in the detection unit 1142.

検出部1142は、検出種別設定部1143によって設定された検出種別に応じて、処理対象の画像について被写体等の検出を行い、被写体の含まれる領域の情報や、被写体の種別、被写体画像等を出力する。検出種別設定部1143は、操作部115を介して受け付けた検出方法の種別を検出部1142に設定する。 The detection unit 1142 detects a subject or the like for the image to be processed according to the detection type set by the detection type setting unit 1143, and outputs information on the area including the subject, the type of the subject, the subject image, and the like. To do. The detection type setting unit 1143 sets the type of the detection method received via the operation unit 115 in the detection unit 1142.

以下、検出種別設定部1143を介して検出部1142における検出処理の種別が設定された場合、設定された検出処理の種別に応じて、画像の階調数を階調数制御部1141が決定し、撮像画像の階調数の変換を行う場合を説明する。 Hereinafter, when the type of detection processing in the detection unit 1142 is set via the detection type setting unit 1143, the gradation number control unit 1141 determines the number of gradations of the image according to the set detection processing type. , The case of converting the number of gradations of the captured image will be described.

次に、図2(B)を参照して、本実施形態に対応する各装置のハードウェア構成について説明する。以下では、撮像装置110の概略構成の例を説明するが、情報処理装置120、表示装置130も同様或いは同等のハードウェア構成として構成しても良い。但し、図2(B)では、光学系111及び撮像部112のハードウェア構成を省略している。 Next, with reference to FIG. 2B, the hardware configuration of each device corresponding to the present embodiment will be described. Hereinafter, an example of the schematic configuration of the image pickup apparatus 110 will be described, but the information processing apparatus 120 and the display apparatus 130 may also be configured as the same or equivalent hardware configuration. However, in FIG. 2B, the hardware configuration of the optical system 111 and the imaging unit 112 is omitted.

図2(B)において、CPU200は、制御部113として動作することができ、ハードディスク装置(以下、HDと呼ぶ)205に格納されているアプリケーションプログラム、オペレーティングシステム(OS)や制御プログラム等を実行し、RAM202にプログラムの実行に必要な情報、ファイル等を一時的に格納する制御を行う。また、画像処理部114として動作することも可能であって、撮像部112から提供された画像の加工や解析処理等を実行する。さらには、インタフェース(I/F)208を介した外部の情報処理装置120や表示装置130とのデータ送受信を制御する。 In FIG. 2B, the CPU 200 can operate as the control unit 113 and executes an application program, an operating system (OS), a control program, etc. stored in the hard disk device (hereinafter referred to as HD) 205. , RAM 202 is controlled to temporarily store information, files, etc. necessary for executing the program. It is also possible to operate as the image processing unit 114, and execute processing, analysis processing, and the like of the image provided by the imaging unit 112. Further, it controls data transmission / reception with an external information processing device 120 or a display device 130 via the interface (I / F) 208.

ROM201は、内部に基本I/Oプログラムの他、所定の処理を実行するアプリケーションプログラム等の各種データを記憶する。RAM202は各種データを一時記憶し、CPU200の主メモリ、ワーク領域等として機能する。また、情報処理装置120から受信した情報を一時的に記憶する。外部記憶ドライブ203は、記録媒体へのアクセスを実現するための外部記憶ドライブであり、撮像部112において撮像された画像をメディア(記録媒体)204に記憶したり、メディア204に記憶されたプログラム等を本コンピュータシステムにロードしたりすることができる。尚、メディア204は、例えば、CD−ROM、CD−R、CD−RW、DVD、Blu−ray(登録商標)、SDカード、ICメモリカード、メモリスティック等を利用することができる。 The ROM 201 internally stores various data such as an application program that executes a predetermined process in addition to the basic I / O program. The RAM 202 temporarily stores various data and functions as a main memory, a work area, or the like of the CPU 200. In addition, the information received from the information processing device 120 is temporarily stored. The external storage drive 203 is an external storage drive for realizing access to the recording medium, and stores the image captured by the imaging unit 112 in the medium (recording medium) 204, a program stored in the media 204, or the like. Can be loaded into this computer system. As the media 204, for example, a CD-ROM, a CD-R, a CD-RW, a DVD, a Blu-ray (registered trademark), an SD card, an IC memory card, a memory stick, or the like can be used.

ハードディスク装置205は、本実施形態では大容量メモリとして機能するHD(ハードディスク)を用いている。HD205には、アプリケーションプログラム、OS、制御プログラム、関連プログラム等が格納される。なお、ハードディスクの代わりに、フラッシュ(登録商標)メモリ等の不揮発性記憶装置を用いても良い。ROM201、RAM202及びハードディスク装置205を、記憶部118として機能するように構成することができる。 In the present embodiment, the hard disk device 205 uses an HD (hard disk) that functions as a large-capacity memory. The HD205 stores an application program, an OS, a control program, a related program, and the like. A non-volatile storage device such as a flash (registered trademark) memory may be used instead of the hard disk. The ROM 201, RAM 202, and hard disk device 205 can be configured to function as the storage unit 118.

指示入力装置206は、キー、ボタン、タッチパネル等がこれに相当し、操作部115として機能する。出力装置207は、指示入力装置206から入力されたコマンドや、それに対する応答出力等を出力する。出力装置207にはディスプレイ等を含むことができる。出力装置207はスピーカー等の音声出力装置を更に含むことができる。システムバス209は、撮像装置110内のデータの流れを司る。 The instruction input device 206 corresponds to a key, a button, a touch panel, etc., and functions as an operation unit 115. The output device 207 outputs a command input from the instruction input device 206, a response output to the command, and the like. The output device 207 may include a display or the like. The output device 207 can further include an audio output device such as a speaker. The system bus 209 controls the flow of data in the image pickup apparatus 110.

インタフェース(以下、I/Fという)208は、通信部117として機能することで、外部装置とのデータのやり取りを仲介する役割を果たす。具体的に、I/F208は、無線通信モジュールを含むことができ、当該モジュールはアンテナシステム、RF送受信器、1つ以上の増幅器、同調器、1つ以上の発振器、デジタル信号プロセッサ、CODECチップセット、加入者識別モジュールカード、メモリなどを含む、周知の回路機構を含むことができる。また、有線接続のための有線通信モジュールを含むことができる。有線通信モジュールは1つ以上の外部ポートを介して他のデバイスとの通信を可能とする。また、データを処理する様々なソフトウェアコンポーネントを含むことができる。外部ポートは、イーサーネット、USBやIEEE1394等を介して、直接的に、又はネットワークを介して間接的に他のデバイスと結合する。尚、以上の各装置と同等の機能を実現するソフトウェアにより、ハードウェア装置の代替として構成することもできる。 The interface (hereinafter referred to as I / F) 208 functions as a communication unit 117 to play a role of mediating the exchange of data with an external device. Specifically, the I / F 208 can include a wireless communication module, which includes an antenna system, an RF transmitter / receiver, one or more amplifiers, a tuner, one or more oscillators, a digital signal processor, a CODEC chipset. , A well-known circuit mechanism, including a subscriber identification module card, memory, and the like. It can also include a wired communication module for wired connections. Wired communication modules allow communication with other devices via one or more external ports. It can also include various software components that process the data. The external port couples with other devices, either directly or indirectly via a network, via Ethernet, USB, IEEE 1394, etc. It should be noted that the software that realizes the same functions as each of the above devices can be configured as a substitute for the hardware device.

本実施形態に対応する処理を実行するために対応するプログラムを動作させる度に、既にプログラムがインストールされているHD205からRAM202にロードするようにしてもよい。また、本実施形態に係るプログラムをROM201に記録しておき、これをメモリマップの一部をなすように構成し、直接CPU200で実行することも可能である。さらに、メディア204から対応プログラム及び関連データを直接RAM202にロードして実行させることもできる。 Every time the corresponding program is operated to execute the process corresponding to the present embodiment, the program may be loaded from the HD 205 to the RAM 202 in which the program is already installed. It is also possible to record the program according to this embodiment in ROM 201, configure it to form a part of the memory map, and execute it directly on the CPU 200. Further, the corresponding program and related data can be directly loaded into the RAM 202 from the media 204 and executed.

次に、本実施形態に係る撮像システム100における検出処理の詳細を説明する。本実施形態において検出部1142が実行する検出処理は、大きく2つの検出アルゴリズムに基づいて区分される。1つ目は、背景差分を評価する第1の検出アルゴリズムであり、2つ目は撮像された被写体の特徴量を評価する第2の検出アルゴリズムである。 Next, the details of the detection process in the imaging system 100 according to the present embodiment will be described. The detection process executed by the detection unit 1142 in the present embodiment is roughly classified based on two detection algorithms. The first is a first detection algorithm that evaluates background subtraction, and the second is a second detection algorithm that evaluates the feature amount of an imaged subject.

一般的に背景差分による第1の検出アルゴリズムは、注目被写体の存在・不存在、あるいは、動作を検出する方法であり、例えば置き去り検出、持ち去り検出、侵入・通過検出などの被写体検出処理において利用される。これらの検出処理を第1の被写体検出処理と呼ぶ。第1の被写体検出処理では、背景画像と呼ばれる基準画像と、撮像された画像における輝度の差分(以降、輝度差と呼ぶ)を評価して、所定の輝度差を満たすかどうかで、撮像画像内における注目被写体の存在・不存在や、注目被写体における所定の動作を検出することができる。 Generally, the first detection algorithm based on background subtraction is a method of detecting the presence / absence or movement of a subject of interest, and is used in subject detection processing such as abandonment detection, take-away detection, and intrusion / passage detection. Will be done. These detection processes are called the first subject detection process. In the first subject detection process, the difference in brightness between the reference image called the background image and the captured image (hereinafter referred to as the brightness difference) is evaluated, and whether or not a predetermined brightness difference is satisfied is determined in the captured image. It is possible to detect the presence / absence of the subject of interest and a predetermined operation of the subject of interest.

次に、撮像された被写体の特徴量を評価する第2の検出アルゴリズムは、撮像されている被写体が検出対象の被写体であるかどうかを評価する。第2の検出アルゴリズムは、例えば、人体や車両等のオブジェクト検出、顔認証等の同種の被写体に対する識別を目的とした第2の被写体検出処理において利用される。第2の被写体検出処理においては、特徴量の評価に基づき検出対象の被写体であるかを判定する基準として、特徴量の評価方法に応じた所定の輝度差を用いる。第2の被写体検出処理においては、所定の特徴量を有する被写体(特定の人物、或いは、特定の車両等)が撮像画像中に含まれる場合に、当該被写体を検出することができる。 Next, the second detection algorithm for evaluating the feature amount of the captured subject evaluates whether or not the captured subject is the subject to be detected. The second detection algorithm is used in, for example, a second subject detection process for the purpose of identifying an object of the same type such as a human body or a vehicle, face recognition, or the like. In the second subject detection process, a predetermined luminance difference according to the feature amount evaluation method is used as a criterion for determining whether or not the subject is a detection target based on the feature amount evaluation. In the second subject detection process, when a subject having a predetermined feature amount (a specific person, a specific vehicle, or the like) is included in the captured image, the subject can be detected.

上記2つの検出処理を比較すると、第1の種別の検出処理における輝度差よりも、特徴量の評価等、被写体の識別に用いられる第2の種別の検出処理における輝度差の方が、検出に必要な輝度差は小さい傾向にある。本実施形態では、階調数を制御することにより撮像画像のデータサイズを低減可能とするものであるが、特徴量を評価する第2の種別の検出処理の方が画素の階調数の削減による影響を強く受けるといえる。 Comparing the above two detection processes, the difference in brightness in the second type of detection process used for identifying the subject, such as the evaluation of the feature amount, is more detected than the difference in brightness in the first type of detection process. The required brightness difference tends to be small. In the present embodiment, the data size of the captured image can be reduced by controlling the number of gradations, but the second type of detection processing for evaluating the feature amount reduces the number of gradations of pixels. It can be said that it is strongly influenced by.

このように検出処理の種別に応じて必要な輝度差は異なるため、本実施形態では検出処理の種別に応じて、必要な階調数を個々に用意する。ここで、本実施形態において諧調数とは、1つの画素値を表現する範囲、或いは、画素値が取りえる段階数として表現される。例えば、1画素を0から255までの値により表現する場合、256(8ビット)が階調数となる。本実施形態では、256を基準の階調数とする。 As described above, since the required luminance difference differs depending on the type of detection processing, in the present embodiment, the required number of gradations is individually prepared according to the type of detection processing. Here, in the present embodiment, the gradation number is expressed as a range in which one pixel value is expressed or a number of steps in which the pixel value can be taken. For example, when one pixel is represented by a value from 0 to 255, 256 (8 bits) is the number of gradations. In this embodiment, 256 is set as a reference gradation number.

次に、本実施形態における、検出処理の種別と階調数との関係を、図3を参照して説明する。図3は、被写体検出処理の種別と設定される階調数との関係を示すテーブル300である。当該テーブル300は例えば記憶部118に保持しておくことができる。検出種別には、上述の第1の被写体検出処理から置き去り検出、持ち去り検出、侵入・通過検出を、第2の被写体検出処理から、オブジェクト検出、顔認証を例として示す。 Next, the relationship between the type of detection process and the number of gradations in the present embodiment will be described with reference to FIG. FIG. 3 is a table 300 showing the relationship between the type of subject detection processing and the set number of gradations. The table 300 can be stored in, for example, a storage unit 118. Examples of the detection type include abandonment detection, take-away detection, and intrusion / passage detection from the first subject detection process described above, and object detection and face recognition from the second subject detection process.

本実施形態では階調調整前の元の階調数を基準階調数の256とし、階調数削減後の階調数のうちデータサイズの低減を目的とした第1の階調数を60とする。第1の階調数を適用することにより、ビット数換算では1画素を表現するビット数を8ビットから6ビットまで、2ビット分低減することが可能となる。このような第1の階調数の画像では、階調数削減によりデータサイズを低減できる一方、画素間の輝度差が不十分である場合には画像に含まれる所定の被写体の存在を検出・判定することが困難となり、検出精度が低下してしまう。そこで、本実施形態では、検出対象の被写体の種別、換言すると、実行する検出処理の種別に応じて階調数削減後の階調数を第1の階調数よりも増加させた第2の階調数に設定する。 In the present embodiment, the original gradation number before gradation adjustment is set to 256 as the reference gradation number, and the first gradation number for the purpose of reducing the data size among the gradation numbers after the gradation number reduction is 60. And. By applying the first number of gradations, it is possible to reduce the number of bits representing one pixel from 8 bits to 6 bits by 2 bits in terms of the number of bits. In such an image with the first gradation number, the data size can be reduced by reducing the gradation number, but when the brightness difference between pixels is insufficient, the presence of a predetermined subject included in the image is detected. It becomes difficult to judge, and the detection accuracy is lowered. Therefore, in the present embodiment, the second gradation number after the gradation number reduction is increased from the first gradation number according to the type of the subject to be detected, in other words, the type of the detection process to be executed. Set to the number of gradations.

第1の階調数を60とした場合、第2の階調数は少なくとも第1の階調数よりも大きい値である一方で、データサイズの削減効果を維持するために基準の階調数256よりも小さい値とする。図3の例では、置き去り検出を80、持ち去り検出を80、侵入・通過検出を100、オブジェクト検出を150、顔認証を200としているが、これらの設定値はあくまで一例であって、これに限定されるものではない。 When the first gradation number is 60, the second gradation number is at least a value larger than the first gradation number, while the reference gradation number is maintained in order to maintain the effect of reducing the data size. The value shall be smaller than 256. In the example of FIG. 3, the abandonment detection is 80, the take-away detection is 80, the intrusion / passage detection is 100, the object detection is 150, and the face recognition is 200. However, these setting values are just examples. It is not limited.

階調数制御を画像に適用する場合、ガンマカーブの値域を制御する。図4は、ガンマカーブの値域と第1の階調数と第2の階調数との大小関係を表したグラフ400の一例である。図4において、第1の階調数に設定した場合のガンマカーブ401(点線)に対し、第2の階調数に設定した場合のガンマカーブ402(実線)の方が、出力輝度の範囲が大きくなっている。図4に示す第2の階調数に対応するガンマカーブは一例であり、検出種別に応じたガンマカーブを設定することができる。階調数の変換は、設定されたガンマカーブに基づいて実行する。 When applying gradation control to an image, the range of the gamma curve is controlled. FIG. 4 is an example of a graph 400 showing the magnitude relationship between the range of the gamma curve, the number of first gradations, and the number of second gradations. In FIG. 4, the output luminance range of the gamma curve 402 (solid line) when the second gradation number is set is larger than that of the gamma curve 401 (dotted line) when the first gradation number is set. It's getting bigger. The gamma curve corresponding to the second number of gradations shown in FIG. 4 is an example, and the gamma curve can be set according to the detection type. The conversion of the number of gradations is executed based on the set gamma curve.

次に、第1の階調数および第2の階調数について、具体的な値を決定する方法を説明する。第1の階調数および第2の階調数は、予め決められた固定値(以降、プリセットと呼ぶ)であっても、ユーザのマニュアル入力で決められても良いし、また、第2の階調数は、検出された(或いは、検出すべき)被写体に応じて動的に算出されてもよい。プリセットの場合、検出処理の種別に応じて一意に階調数が用意されていてもよいし、多様なシーンに対応させる為に、第2の階調数に対して、複数のレベルを設けることでシーンに応じた値をユーザに選択させる態様となってもよい。ユーザにマニュアル入力させる場合を考えると、入力方法は、ユーザインタフェース上でスライドバーによって入力する態様でも良いし、直接数値を入力する態様でもよい。また、撮像装置110の外装等に取り付けられたボタン等の操作部115を利用して値を設定してもよい。 Next, a method of determining specific values for the first gradation number and the second gradation number will be described. The first gradation number and the second gradation number may be predetermined fixed values (hereinafter referred to as presets), may be determined manually by the user, or may be determined by the user's manual input. The number of gradations may be dynamically calculated according to the detected (or to be detected) subject. In the case of a preset, the number of gradations may be uniquely prepared according to the type of detection processing, or a plurality of levels are provided for the second number of gradations in order to correspond to various scenes. In this mode, the user may be allowed to select a value according to the scene. Considering the case where the user manually inputs, the input method may be a mode of inputting by a slide bar on the user interface or a mode of directly inputting a numerical value. Further, the value may be set by using the operation unit 115 such as a button attached to the exterior of the image pickup apparatus 110.

また、被写体に応じて動的に算出する場合、画像処理部114は、動体領域を抽出するための機能構成ブロックを更に有することができる。当該動体領域抽出により、動きのある被写体が撮像された場合に、画像を動体領域とそれ以外の背景領域に分離することができる。この動体領域を注目被写体が撮像された領域(以降、被写体領域)として、被写体領域と背景領域の輝度を個別に評価する。このとき得られる被写体領域と背景領域の輝度差が、検出に必要な所定の輝度差となるように、第2の階調数を設定することができる。また、当該設定方法は、第2の階調数を予め設定する場合にも利用できる。例えば、検出対象の被写体、及び、当該被写体が検出される領域を予め想定して得られる仮想的な被写体領域と背景領域との輝度差を算出し、当該輝度差に基づいて第2の階調数を設定することができる。このとき、想定からのずれを補償するように、輝度差には一定の範囲を与えておくことができる。 Further, in the case of dynamically calculating according to the subject, the image processing unit 114 can further have a functional configuration block for extracting a moving object region. By extracting the moving object region, when a moving subject is captured, the image can be separated into a moving object region and a background region other than the moving object region. The brightness of the subject area and the background area is evaluated individually, using this moving object area as the area where the subject of interest is captured (hereinafter referred to as the subject area). The second number of gradations can be set so that the brightness difference between the subject area and the background area obtained at this time becomes a predetermined brightness difference required for detection. The setting method can also be used when the second gradation number is set in advance. For example, the brightness difference between the subject to be detected and the virtual subject area and the background area obtained by assuming the area where the subject is detected is calculated in advance, and the second gradation is calculated based on the brightness difference. You can set the number. At this time, a certain range can be given to the luminance difference so as to compensate for the deviation from the assumption.

また、シーンやユーザの設定に応じて、設定される第2の階調数を調整する機能を更に有することができる。例えば、撮像環境の照度が低い(暗い)場合(以降、低照度と呼ぶ)では、撮像環境が明るい時に比べて画像のコントラストが低下することが考えられる。そのため、本実施形態では、撮像環境の照度を評価するための照度推定の機能構成を追加することができる。この場合、推定された照度に応じて、検出部1142の検出精度を劣化させないような第2の階調数を設定する。 Further, it is possible to further have a function of adjusting the set second gradation number according to the scene and the user's setting. For example, when the illuminance of the imaging environment is low (dark) (hereinafter referred to as low illuminance), the contrast of the image may be lower than when the imaging environment is bright. Therefore, in the present embodiment, it is possible to add a functional configuration of illuminance estimation for evaluating the illuminance of the imaging environment. In this case, a second number of gradations is set according to the estimated illuminance so as not to deteriorate the detection accuracy of the detection unit 1142.

ここで照度推定は、例えば、光センサなどの外側センサからの出力値や、撮像装置110における露光量と画像の輝度情報とに基づいて行うことができる。具体的な処理として、照度推定によって得られた環境照度が所定の閾値を下回った場合、図3に示すような所定の係数(+10%=1.10)を第2の階調数に掛けることで照度を補正することができる。また、これ以外にも、照度から第2の階調数を決定する関数やテーブルが与えられてもよい。 Here, the illuminance estimation can be performed based on, for example, the output value from an outer sensor such as an optical sensor, the exposure amount in the image pickup apparatus 110, and the brightness information of the image. As a specific process, when the environmental illuminance obtained by illuminance estimation falls below a predetermined threshold value, a predetermined coefficient (+ 10% = 1.10) as shown in FIG. 3 is multiplied by the second gradation number. The illuminance can be corrected with. In addition to this, a function or a table for determining the second gradation number from the illuminance may be given.

また、第2の階調数が設定された後の画像も、撮像環境の変化によって検出漏れが生ずる可能性が考えられる。そのため撮像システム100では、検出漏れの問題を考慮して、検出部1142における検出精度とデータサイズ低減のいずれを優先するかを、ユーザに選択させる態様であってもよい。この場合、検出精度を優先するモードでは第2の階調数を大きくし、データサイズ低減を優先するモードでは第2の階調数を小さくしてもよい。このとき、図4に示すように、検出精度を優先する場合は+5%の係数(1.05)を掛けるようにし、データサイズを優先する場合には−5%の係数(0.95)を掛けるようにしてもよい。これらの所定の係数は任意の値とすることができ、固定値でも、ユーザのマニュアル入力によって決定する値でもよい。 Further, it is considered that the image after the second gradation number is set may also be missed due to the change in the imaging environment. Therefore, in the imaging system 100, in consideration of the problem of detection omission, the user may select whether to prioritize the detection accuracy or the data size reduction in the detection unit 1142. In this case, the second gradation number may be increased in the mode in which the detection accuracy is prioritized, and the second gradation number may be decreased in the mode in which the data size reduction is prioritized. At this time, as shown in FIG. 4, when the detection accuracy is prioritized, a coefficient of + 5% (1.05) is multiplied, and when the data size is prioritized, a coefficient of -5% (0.95) is applied. You may hang it. These predetermined coefficients can be arbitrary values, and may be fixed values or values determined by manual input by the user.

次に、図5のフローチャートを参照して、本実施形態に対応する撮像装置110における処理の流れを説明する。 Next, the flow of processing in the image pickup apparatus 110 corresponding to the present embodiment will be described with reference to the flowchart of FIG.

まず、S501において、検出種別設定部1143が検出種別を設定する。撮像装置110のユーザは操作部115を介して検出種別を設定することができる。例えば、本実施形態では、置き去り検出、持ち去り検出、侵入・通過検出、オブジェクト検出及び顔認証の中から少なくとも1つの検出種別を選択して、設定することができる。また、検出種別を選択せず、被写体検出処理は行わずに監視区域を撮像して画像を出力するだけの設定としてもよい。このときユーザは、検出精度を優先するモードと、データサイズを優先するモードとのいずれかを追加で選択することができる。当該情報はモード選択情報として記憶部118に保持される。 First, in S501, the detection type setting unit 1143 sets the detection type. The user of the image pickup apparatus 110 can set the detection type via the operation unit 115. For example, in the present embodiment, at least one detection type can be selected and set from left-behind detection, take-away detection, intrusion / passage detection, object detection, and face recognition. Further, the setting may be such that the detection type is not selected and the monitoring area is imaged and the image is output without performing the subject detection process. At this time, the user can additionally select either a mode in which the detection accuracy is prioritized or a mode in which the data size is prioritized. The information is stored in the storage unit 118 as mode selection information.

次に、S502において、階調数制御部1141は、記憶部118に記憶された情報に基づき、検出種別設定部1143により検出種別が設定されたか否かを判定する。もし、検出種別が設定されないと判定されると処理はS503に進む。S503において、階調数制御部1141は階調数を第1の階調数に決定し、撮像画像の階調変換処理を行う。階調変換処理は、決定された第1の階調数に基づくガンマカーブに基づき実行する。このとき、階調数制御部1141は、撮像画像がRGBの場合には、RGBの各色成分について階調変換を行い、YUV変換をした後であれば輝度画像のみ、或いは、YUVの各成分に対して階調変換を行う。階調変換処理を行った後、処理はS508に進む。 Next, in S502, the gradation number control unit 1141 determines whether or not the detection type is set by the detection type setting unit 1143 based on the information stored in the storage unit 118. If it is determined that the detection type is not set, the process proceeds to S503. In S503, the gradation number control unit 1141 determines the gradation number to be the first gradation number, and performs gradation conversion processing of the captured image. The gradation conversion process is executed based on the gamma curve based on the determined first gradation number. At this time, when the captured image is RGB, the gradation number control unit 1141 performs gradation conversion for each color component of RGB, and after YUV conversion, only the luminance image or each component of YUV is used. On the other hand, gradation conversion is performed. After performing the gradation conversion process, the process proceeds to S508.

検出種別が設定されたと判定されると処理はS504に進む。S504において階調数制御部1141は、設定された検出種別と、図3に示すテーブル300の登録情報に基づいて、第2の階調数から階調数を決定する。例えば、置き去り検出が選択されていた場合には、第2の階調数として80を選択する。また、例えば、侵入・通過検出と、オブジェクト検出のように複数の検出種別が選択された場合、検出に必要な所定の輝度差を実現するための階調数のうち、より大きな諧調数を選択する。 When it is determined that the detection type has been set, the process proceeds to S504. In S504, the gradation number control unit 1141 determines the gradation number from the second gradation number based on the set detection type and the registration information of the table 300 shown in FIG. For example, when the abandonment detection is selected, 80 is selected as the second gradation number. Further, for example, when a plurality of detection types such as intrusion / passage detection and object detection are selected, a larger gradation number is selected from the number of gradations for realizing a predetermined luminance difference required for detection. To do.

続くS505では、階調数制御部1141はS501において保持されたモード選択情報と、図3のテーブル300の登録情報とに基づいて、S504で選択された階調数の補正を行う。また、撮像環境における照度と当該テーブル300の登録情報とに基づき照度補正用の係数を用いた上述の照度補正を行う。 In the subsequent S505, the gradation number control unit 1141 corrects the gradation number selected in S504 based on the mode selection information held in S501 and the registration information in the table 300 of FIG. Further, the above-mentioned illuminance correction using the coefficient for illuminance correction is performed based on the illuminance in the imaging environment and the registration information of the table 300.

続くS506において階調数制御部1141は、補正後の階調数に基づき、撮像画像の階調変換処理を行う。階調変換処理は、設定された階調数に基づくガンマカーブに基づき実行する。階調数制御部1141は、撮像画像がRGBの場合には、RGBの各色成分について階調変換を行い、YUV変換をした後であれば輝度画像のみ、或いは、YUVの各成分に対して階調変換を行う。 In the subsequent S506, the gradation number control unit 1141 performs gradation conversion processing of the captured image based on the corrected gradation number. The gradation conversion process is executed based on the gamma curve based on the set number of gradations. When the captured image is RGB, the gradation number control unit 1141 performs gradation conversion for each color component of RGB, and after YUV conversion, only the luminance image or the floor for each component of YUV. Perform key conversion.

続くS507において、検出部1142が階調変換後の画像において、S501において設定された検出種別に対応する被写体検出処理を行う。続くS508では、階調変換後の画像及び検出された被写体の情報を含む検出結果を出力する。当該画像及び被写体情報は通信部117からネットワーク140を介して情報処理装置120や表示装置130に送信される。 In the subsequent S507, the detection unit 1142 performs subject detection processing corresponding to the detection type set in S501 on the image after gradation conversion. In the following S508, the detection result including the image after the gradation conversion and the information of the detected subject is output. The image and subject information are transmitted from the communication unit 117 to the information processing device 120 and the display device 130 via the network 140.

以上に説明した実施形態に対応する処理によれば、撮像画像のデータサイズを低減し、画像を配信する際の配信負荷の軽減に貢献しつつ、画像から所望の被写体等を検出する処理を実行する設定がなされた場合は、検出精度を劣化させない階調数に設定することができる。ここで、本実施形態では設定された検出処理の種別に応じた階調数を用意するので、検出処理の精度を確保しつつも、検出処理の種別に応じてデータサイズを可能な限り削減できる。 According to the process corresponding to the embodiment described above, the process of detecting a desired subject or the like from the image is executed while reducing the data size of the captured image and contributing to the reduction of the distribution load when the image is distributed. When the setting is made, the number of gradations can be set so as not to deteriorate the detection accuracy. Here, in the present embodiment, since the number of gradations is prepared according to the set type of detection processing, the data size can be reduced as much as possible according to the type of detection processing while ensuring the accuracy of the detection processing. ..

[実施形態2]
実施形態1では、検出種別が設定された場合には、実際に所望の被写体等が検出されているかどうかにかかわらず、階調数が第2の階調数に維持されることとなる。例えば、監視領域に被写体が存在していない場合、或いは、被写体に変化がない場合には、有意な検出結果が得られないため、単に撮像対象の領域を撮像していることと変わりがない。このように被写体について有意な情報が検出されることがない状況下では、撮像画像を第1の階調数で出力しても検出精度に関わる問題は生じえない。むしろ、データサイズを第2の階調数に基づく大きさに維持しなければならない理由もないため、データサイズを更に低減できる余地が残されているといえる。
[Embodiment 2]
In the first embodiment, when the detection type is set, the number of gradations is maintained at the second number of gradations regardless of whether or not a desired subject or the like is actually detected. For example, when there is no subject in the monitoring area, or when there is no change in the subject, no significant detection result can be obtained, so that there is no difference from simply photographing the area to be imaged. In such a situation where no significant information about the subject is detected, even if the captured image is output with the first gradation number, the problem related to the detection accuracy cannot occur. Rather, there is no reason why the data size must be maintained at a size based on the second number of gradations, so it can be said that there is room for further reduction of the data size.

そこで本実施形態では、撮像画像内で被写体検出に関する情報を更に参照して階調数を決定する。例えば、画像処理部114内に動き検出部の機能構成を更に追加し、当該動き検出部により被写体の動きを検出したタイミングで、第2の階調数に設定する。これにより、被写体が存在し、検出処理を実行すべきタイミングにおいて階調数を第2の階調数として検出精度を確保する一方で、被写体が存在していない場合には第1の階調数を維持してより高いデータサイズ低減効果を実現する。 Therefore, in the present embodiment, the number of gradations is determined by further referring to the information related to subject detection in the captured image. For example, the functional configuration of the motion detection unit is further added to the image processing unit 114, and the second gradation number is set at the timing when the motion of the subject is detected by the motion detection unit. As a result, the detection accuracy is ensured by setting the number of gradations as the second gradation number at the timing when the subject exists and the detection process should be executed, while the first gradation number when the subject does not exist. Achieve a higher data size reduction effect.

画像処理部114内の動き検出部は、画角内に撮像された被写体の動きを検出する部であり、例えば処理対象のフレーム画像と背景画像との差分や、フレーム間差分に基づき、差分が閾値以上であるか否かに基づいて被写体の存在、或いは、動きを検出することができる。また、画像処理部114内でなく、例えば撮像部112に含まれる符号化部からフレーム間の動き情報を取得して判定してもよい。いずれの場合においても、動き検出処理自体は公知の技術であるので、更なる詳細は省略する。 The motion detection unit in the image processing unit 114 is a unit that detects the movement of the subject captured within the angle of view. For example, the difference is based on the difference between the frame image to be processed and the background image and the difference between frames. The presence or movement of the subject can be detected based on whether or not the value is equal to or greater than the threshold value. Further, the motion information between frames may be acquired and determined not from the image processing unit 114 but from the coding unit included in the image pickup unit 112, for example. In either case, since the motion detection process itself is a known technique, further details will be omitted.

本実施形態に対応する処理においては、図5のフローチャートのS502において、設定の有無に追加して、被写体の動きがあるかどうかに更に基づいて分岐先を決定することができる。具体的に、検出種別が設定されている場合であっても、撮像画像において被写体の動きが検出されない場合には、処理はS503に進み、階調数は第1の階調数に設定されて階調変換が行われる。一方、検出種別が設定され、かつ、撮像画像において被写体の動きが検出された場合には、処理はS504に進み、階調数は第2の階調数に設定される。 In the process corresponding to the present embodiment, in S502 of the flowchart of FIG. 5, the branch destination can be determined based on whether or not there is movement of the subject in addition to the presence or absence of the setting. Specifically, even when the detection type is set, if the movement of the subject is not detected in the captured image, the process proceeds to S503 and the gradation number is set to the first gradation number. Gradation conversion is performed. On the other hand, when the detection type is set and the movement of the subject is detected in the captured image, the process proceeds to S504 and the number of gradations is set to the second number of gradations.

以上の本実施形態によれば、撮像画像に被写体が存在しない、或いは、被写体に変化がない状況下では第1の階調数を選択することでデータサイズを低減しつつ、被写体が存在する、或いは、被写体に変化がある状況下では設定された検出種別に応じた階調数を選択することで検出精度を確保することができる。これにより、データサイズをより効率的に低減することができる。 According to the above embodiment, in a situation where the subject does not exist in the captured image or the subject does not change, the subject exists while reducing the data size by selecting the first gradation number. Alternatively, when there is a change in the subject, the detection accuracy can be ensured by selecting the number of gradations according to the set detection type. Thereby, the data size can be reduced more efficiently.

[実施形態3]
上述の2つの実施形態においては、階調数を決定し階調変換した後に検出処理を行う構成について説明した。当該構成においては、検出部1142による検出精度に影響を与えないように階調数を制御しつつ、データサイズの削減を図ることとした。また、モード選択や低照度の場合等について、諧調値を補正することで検出漏れの防止の処理を講じているものの、撮像シーンやカメラの状態によっては、階調数が削減されたことに起因する検出漏れが依然として回避できないおそれもある。これに対し本実施形態では、処理の順序を変更し、検出部1142で画像を解析して検出処理を行った後に、階調数制御部1141で階調数制御を行う構成とすることで上記のような状況に対処する。
[Embodiment 3]
In the above two embodiments, a configuration in which the detection process is performed after determining the number of gradations and converting the gradations has been described. In this configuration, the data size is reduced while controlling the number of gradations so as not to affect the detection accuracy by the detection unit 1142. In addition, in the case of mode selection and low illuminance, although the processing to prevent detection omission is taken by correcting the gradation value, it is caused by the reduction in the number of gradations depending on the imaging scene and the state of the camera. There is still a risk that omission of detection will still be unavoidable. On the other hand, in the present embodiment, the order of processing is changed, the image is analyzed by the detection unit 1142, the detection processing is performed, and then the gradation number control unit 1141 controls the gradation number. Deal with situations like.

具体的に本実施形態においても、実施形態1と同様、検出種別設定部1143により検出種別が設定された場合、設定された検出種別に応じた画像の階調数を、階調数制御部1141によって撮像画像の階調数として設定する。その前提において、階調数制御に起因する検出漏れを低減するために階調数の設定と検出処理の順序を入れ替える。 Specifically, also in the present embodiment, as in the first embodiment, when the detection type is set by the detection type setting unit 1143, the gradation number of the image according to the set detection type is set to the gradation number control unit 1141. Is set as the number of gradations of the captured image. On that premise, the order of the gradation number setting and the detection process is changed in order to reduce the detection omission caused by the gradation number control.

次に、図6のフローチャートを参照して、本実施形態に対応する撮像装置110における処理の流れを説明する。図6のフローチャートにおいて図5と同内容の処理を行う工程に対しては、対応する工程番号を付している。当該工程については説明を適宜省略する。 Next, the flow of processing in the image pickup apparatus 110 corresponding to the present embodiment will be described with reference to the flowchart of FIG. In the flowchart of FIG. 6, a corresponding process number is assigned to the process of performing the same processing as that of FIG. The description of the process will be omitted as appropriate.

S501において検出種別設定部1143が検出種別の設定を受け付けた後、S502において検出種別の設定が行われたと判定されると、処理はS601に進む。S601において、検出部1142は、階調変換前の撮像画像(階調数:256)について、S501において設定された検出種別に対応する被写体検出処理を行う。続くS602では、検出部1142は、検出処理の結果として所定の検出結果が得られたかどうかを判定する。ここで所定の検出結果とは、検出処理における有意な検出結果を意味する。例えば、置き去り検出であれば、オブジェクト(人物、物体、車両等)が監視空間内に置き去りにされたことを検出したことをいう。また、持ち去り検出であれば、監視空間内に存在していたオブジェクトが持ち去られたことを検出したことをいう。また、侵入・通過検出であれば、監視空間内に人物や車両が侵入、あるいは、通過したことを検出したことを言う。更に、オブジェクト検出や顔認証の場合、特定の人物、車両等が同定されたことをいう。一方、所定の検出結果が得られない場合とは、当該有意な検出結果が得られなかったことを意味する。 After the detection type setting unit 1143 accepts the detection type setting in S501, if it is determined in S502 that the detection type has been set, the process proceeds to S601. In S601, the detection unit 1142 performs subject detection processing corresponding to the detection type set in S501 for the captured image (number of gradations: 256) before gradation conversion. In the following S602, the detection unit 1142 determines whether or not a predetermined detection result is obtained as a result of the detection process. Here, the predetermined detection result means a significant detection result in the detection process. For example, in the case of abandonment detection, it means that an object (person, object, vehicle, etc.) is detected to be left behind in the monitoring space. In the case of take-away detection, it means that the object that existed in the monitoring space has been taken away. In the case of intrusion / passage detection, it means that a person or vehicle has invaded or passed through the monitoring space. Furthermore, in the case of object detection or face recognition, it means that a specific person, vehicle, etc. has been identified. On the other hand, when a predetermined detection result cannot be obtained, it means that the significant detection result was not obtained.

所定の検出結果が得られたと判定された場合、処理はS504に進み、所定の検出結果が得られなかったと判定された場合S503に進む。以降は図5との関連で実施形態1において説明したのと同様の処理を行う。但し、S507における検出処理はS601において既に実施済みであるので省略する。 If it is determined that a predetermined detection result has been obtained, the process proceeds to S504, and if it is determined that a predetermined detection result has not been obtained, the process proceeds to S503. After that, the same processing as described in the first embodiment is performed in relation to FIG. However, since the detection process in S507 has already been performed in S601, it is omitted.

このようにして、本実施形態では階調変換を行う前の下の階調数の画像において被写体検出を行うので、検出漏れを防止することができる。また、検出部1142が所定の被写体を検出しない場合にデータサイズ低減のために第1の階調数が設定され、検出部1142が所定の被写体を検出した場合に設定された検出種別に応じた第2の階調数が設定される。ここで、検出を先に行っているため、第1の階調数に一律に変換してもよいが、被写体が検出された場合には当該所定の被写体の視認性を確保するため、第1の階調数まで落とさずに、検出される被写体の種類に応じた検出種別ごとの第2の階調数に変更する。これにより、被写体が検出された場合には被写体の視認性を確保しつつもデータサイズを効率的に低減することができる。なお、データサイズを優先するモードが選択されていた場合には、被写体が検出された場合であっても階調数を第1の階調数まで落としてもよい。 In this way, in the present embodiment, the subject is detected in the image having the lower gradation number before the gradation conversion is performed, so that the detection omission can be prevented. Further, when the detection unit 1142 does not detect a predetermined subject, the first number of gradations is set to reduce the data size, and the detection type is set according to the detection type set when the detection unit 1142 detects the predetermined subject. A second number of gradations is set. Here, since the detection is performed first, it may be uniformly converted to the first gradation number, but when a subject is detected, the first is to ensure the visibility of the predetermined subject. The number of gradations is changed to the second number of gradations for each detection type according to the type of the detected subject without reducing the number of gradations. As a result, when a subject is detected, the data size can be efficiently reduced while ensuring the visibility of the subject. When the mode in which the data size is prioritized is selected, the number of gradations may be reduced to the first number of gradations even when the subject is detected.

以上の本実施形態によれば、階調数を変換する前の元の撮像画像において検出処理を行い、その結果に応じて階調数を切り替えるようにする。これにより、被写体検出漏れを防止しつつ、効率的にデータサイズを低減することが可能となる。 According to the above embodiment, the detection process is performed on the original captured image before the gradation number is converted, and the gradation number is switched according to the result. This makes it possible to efficiently reduce the data size while preventing omission of subject detection.

[実施形態4]
上述の実施形態1から3においては、設定された検出種別に応じた検出処理を撮像装置110側で実行していた。しかし、検出処理に高負荷な演算を要する場合には、撮像装置110側に高品質なプロセッサを搭載する必要がある。さもなくば、検出処理に計算リソースの多くが割かれることとなり、結果としてフレームレートの低下等の配信負荷が増大してしまうおそれがある。そこで、本実施形態では、実施形態1及び2において説明した撮像画像に対する検出処理を情報処理装置120側で実行することとし、撮像装置110における演算負荷の低減を図る。
[Embodiment 4]
In the above-described first to third embodiments, the detection process according to the set detection type is executed on the image pickup apparatus 110 side. However, when a high-load calculation is required for the detection process, it is necessary to mount a high-quality processor on the image pickup apparatus 110 side. Otherwise, most of the calculation resources will be devoted to the detection process, and as a result, the distribution load such as a decrease in the frame rate may increase. Therefore, in the present embodiment, the detection process for the captured image described in the first and second embodiments is executed on the information processing apparatus 120 side, and the calculation load on the imaging apparatus 110 is reduced.

本実施形態に対応する処理では、図5のフローチャートにおけるS507の処理を情報処理装置120側で実行すると共に、S508においては階調数を変換した後の画像のみを通信部117からネットワーク140を介して情報処理装置120に送信する。情報処理装置120は、撮像装置110から撮像画像を受信すると、画像処理部123において、階調変換後の画像において、S501において設定された検出種別に対応する被写体検出処理を行う。なお、設定された検出種別の情報は、画像と共に撮像装置110から受信してもよいし、処理の開始時に必要な設定情報を撮像装置110から受信しておいてもよい。また、検出種別についての設定情報が撮像装置110から取得できなかった場合には、検出処理を省略してもよい。 In the process corresponding to the present embodiment, the process of S507 in the flowchart of FIG. 5 is executed on the information processing apparatus 120 side, and in S508, only the image after the gradation number is converted is transmitted from the communication unit 117 via the network 140. Is transmitted to the information processing apparatus 120. When the information processing device 120 receives the captured image from the image pickup device 110, the image processing unit 123 performs subject detection processing corresponding to the detection type set in S501 on the image after gradation conversion. The set detection type information may be received from the image pickup apparatus 110 together with the image, or the setting information required at the start of the process may be received from the image pickup apparatus 110. Further, if the setting information about the detection type cannot be acquired from the image pickup apparatus 110, the detection process may be omitted.

本実施形態によれば、撮像装置110と情報処理装置120との間において配信される画像のデータサイズを低減しつつ、撮像装置110側における演算負担を軽減することができる。また、情報処理装置120側では、設定された検出処理の種別に応じた階調数の画像を取得して検出処理を行うことで、データサイズを削減しつつも検出処理の精度を確保することができる。 According to the present embodiment, it is possible to reduce the calculation load on the image pickup apparatus 110 side while reducing the data size of the image distributed between the image pickup apparatus 110 and the information processing apparatus 120. Further, on the information processing apparatus 120 side, the accuracy of the detection process is ensured while reducing the data size by acquiring the image of the number of gradations according to the set type of the detection process and performing the detection process. Can be done.

発明は上記実施形態に制限されるものではなく、発明の精神及び範囲から離脱することなく、様々な変更及び変形が可能である。従って、発明の範囲を公にするために請求項を添付する。 The invention is not limited to the above embodiments, and various modifications and modifications can be made without departing from the spirit and scope of the invention. Therefore, a claim is attached to make the scope of the invention public.

(その他の実施例)
本発明は、上述の実施形態の1以上の機能を実現するプログラムを、ネットワーク又は記憶媒体を介してシステム又は装置に供給し、そのシステム又は装置のコンピュータにおける1つ以上のプロセッサがプログラムを読出し実行する処理でも実現可能である。また、1以上の機能を実現する回路(例えば、ASIC)によっても実現可能である。
(Other Examples)
The present invention supplies a program that realizes one or more functions of the above-described embodiment to a system or device via a network or storage medium, and one or more processors in the computer of the system or device reads and executes the program. It can also be realized by the processing to be performed. It can also be realized by a circuit (for example, ASIC) that realizes one or more functions.

100:撮像システム、110:撮像装置、120:情報処理装置、130:表示装置、140:ネットワーク 100: Imaging system, 110: Imaging device, 120: Information processing device, 130: Display device, 140: Network

Claims (16)

画像処理装置であって、
撮像画像に対して行う被写体の検出処理を設定する設定手段と、
前記設定された検出処理の種別に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御手段と、
前記階調数が変換された前記撮像画像から、前記設定された検出処理を実行する検出手段と、
前記階調数が変換された前記撮像画像と、前記検出手段により前記検出処理が実行された場合の検出結果とを出力する出力手段と
を備え、
前記階調数制御手段は、
前記設定手段により前記検出処理が設定されなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定手段により前記検出処理が設定された場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定することを特徴とする画像処理装置。
It is an image processing device
Setting means for setting subject detection processing for captured images, and
A gradation number control means that determines the number of gradations of the captured image after reducing the number of gradations according to the set type of detection processing and converts the captured image to the determined gradation number.
A detection means that executes the set detection process from the captured image to which the number of gradations has been converted, and
The image pickup image to which the number of gradations is converted and the output means for outputting the detection result when the detection process is executed by the detection means are provided.
The gradation number control means
When the detection process is not set by the setting means, the first gradation number is determined to be the gradation number after the gradation number reduction.
An image characterized in that, when the detection process is set by the setting means, a second gradation number larger than the first gradation number is determined as the gradation number after the gradation number reduction. Processing equipment.
前記撮像画像において被写体の動きを検出する動き検出手段を更に備え、
前記階調数制御手段は、
前記検出手段が前記被写体の動きを検出しなかった場合、及び、前記設定手段により前記検出処理が設定されなかった場合に、前記第1の階調数を前記階調数削減後の階調数に決定し、
前記動き検出手段が前記被写体の動きを検出し、かつ、前記設定手段により前記検出処理が設定された場合に、前記第2の階調数を前記階調数削減後の階調数に決定する
ことを特徴とする請求項1に記載の画像処理装置。
A motion detecting means for detecting the motion of the subject in the captured image is further provided.
The gradation number control means
When the detection means does not detect the movement of the subject and when the detection process is not set by the setting means, the first gradation number is reduced to the gradation number after the gradation number is reduced. Decided to
When the motion detecting means detects the motion of the subject and the detection process is set by the setting means, the second gradation number is determined to be the gradation number after the gradation number is reduced. The image processing apparatus according to claim 1.
画像処理装置であって、
撮像画像に対して行う被写体の検出処理を設定する設定手段と、
前記撮像画像から、前記設定された検出処理を実行する検出手段と、
前記設定された検出処理の種別と、前記検出処理の検出結果に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御手段と、
前記階調数が変換された前記撮像画像と、前記検出手段により前記検出処理が実行された場合の検出結果とを出力する出力手段と
を備え、
前記階調数制御手段は、
前記設定手段により前記検出処理が設定されなかった場合、及び、前記設定された検出処理を実行して所定の検出結果が得られなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定手段により前記検出処理が設定された場合であって、かつ、前記設定された検出処理を実行して前記所定の検出結果が得られた場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定することを特徴とする画像処理装置。
It is an image processing device
Setting means for setting subject detection processing for captured images, and
A detection means that executes the set detection process from the captured image, and
The number of gradations of the captured image after the number of gradations is reduced is determined according to the set type of detection processing and the detection result of the detection processing, and the image is converted to the determined gradation number. Key control means and
The image pickup image to which the number of gradations is converted and the output means for outputting the detection result when the detection process is executed by the detection means are provided.
The gradation number control means
When the detection process is not set by the setting means, or when a predetermined detection result is not obtained by executing the set detection process, the first gradation number is reduced. Decide on the number of gradations later,
It is larger than the first gradation number when the detection process is set by the setting means and when the set detection process is executed and the predetermined detection result is obtained. An image processing device characterized in that the second gradation number is determined to be the gradation number after the gradation number reduction.
前記設定手段は、複数の検出処理のうちから前記設定を行い、
前記複数の検出処理のそれぞれには、対応する階調数が割り当てられ、
前記階調数制御手段は、前記設定された検出処理に対応する階調数を前記第2の階調数とすることを特徴とする請求項1から3のいずれか1項に記載の画像処理装置。
The setting means performs the setting from a plurality of detection processes, and then performs the setting.
A corresponding number of gradations is assigned to each of the plurality of detection processes.
The image processing according to any one of claims 1 to 3, wherein the gradation number control means sets the gradation number corresponding to the set detection processing as the second gradation number. apparatus.
前記階調数制御手段は、前記設定手段が2つ以上の検出処理を設定した場合、設定されたそれぞれの検出処理に割り当てられている階調数のうち最も大きい階調数を前記第2の階調数とすることを特徴とする請求項4に記載の画像処理装置。 When the setting means sets two or more detection processes, the gradation control means sets the largest gradation number among the gradations assigned to the set detection processes as the second. The image processing apparatus according to claim 4, wherein the number of gradations is used. 前記複数の検出処理は、背景差分を評価する第1の検出アルゴリズムに基づく第1の被写体検出処理と、前記撮像画像に含まれる被写体の特徴量を評価する第2の検出アルゴリズムに基づく第2の被写体検出処理とを含むことを特徴とする請求項4または5に記載の画像処理装置。 The plurality of detection processes include a first subject detection process based on a first detection algorithm for evaluating background subtraction, and a second detection algorithm based on a second detection algorithm for evaluating the feature amount of a subject included in the captured image. The image processing apparatus according to claim 4 or 5, further comprising subject detection processing. 前記第1の被写体検出処理に割り当てられる階調数は、前記第2の被写体検出処理に割り当てられる階調数よりも小さいことを特徴とする請求項6に記載の画像処理装置。 The image processing apparatus according to claim 6, wherein the number of gradations assigned to the first subject detection process is smaller than the number of gradations assigned to the second subject detection process. 前記階調数制御手段は、前記第2の階調数を、前記撮像画像において被写体が検出された被写体領域と、他の領域との輝度差に基づいて決定することを特徴とする請求項1から7のいずれか1項に記載の画像処理装置。 1. The gradation number control means is characterized in that the second gradation number is determined based on the brightness difference between the subject region in which the subject is detected in the captured image and another region. 7. The image processing apparatus according to any one of 7. 前記設定手段は、前記検出処理を設定する場合に、前記検出処理の検出精度を優先する第1のモードと、階調数を変換した後の撮像画像のデータサイズを優先する第2のモードとのいずれかを選択し、
前記階調数制御手段は、
前記第1のモードが選択された場合に、前記第2の階調数を増加するように補正し、
前記第2のモードが選択された場合に、前記第2の階調数を削減するように補正し、
補正後の第2の階調数に前記撮像画像を変換することを特徴とする請求項1から8のいずれか1項に記載の画像処理装置。
When setting the detection process, the setting means has a first mode in which the detection accuracy of the detection process is prioritized and a second mode in which the data size of the captured image after converting the number of gradations is prioritized. Select one of
The gradation number control means
When the first mode is selected, the correction is made so as to increase the number of the second gradations.
When the second mode is selected, the correction is made so as to reduce the number of the second gradations.
The image processing apparatus according to any one of claims 1 to 8, wherein the captured image is converted into a second gradation number after correction.
前記階調数制御手段は、前記撮像画像の撮像環境における照度が所定の照度よりも低い場合に前記第2の階調数を増加するように更に補正することを特徴とする請求項9に記載の画像処理装置。 The ninth aspect of the present invention is characterized in that the gradation number control means further corrects the second gradation number so as to increase when the illuminance in the imaging environment of the captured image is lower than a predetermined illuminance. Image processing equipment. 撮像手段と、
前記撮像手段が撮像した撮像画像を処理する請求項1から10のいずれか1項に記載の画像処理装置と
を備える撮像装置。
Imaging means and
An imaging device including the image processing device according to any one of claims 1 to 10, which processes an captured image captured by the imaging means.
撮像装置と情報処理装置とが通信して構成される撮像システムであって、
前記撮像装置は、
撮像手段と、
前記撮像手段が撮像した撮像画像に対して行う被写体の検出処理を設定する設定手段と、
前記設定された検出処理の種別に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御手段と、
前記階調数が変換された前記撮像画像を前記情報処理装置に送信する通信手段と
を備え、
前記階調数制御手段は、
前記設定手段により前記検出処理が設定されなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定手段により前記検出処理が設定された場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定し、
前記情報処理装置は、
前記撮像装置から送信された前記階調数が変換された前記撮像画像を受信する通信手段と、
受信した前記階調数が変換された前記撮像画像から、前記設定された検出処理を実行する検出手段と
を備えることを特徴とする撮像システム。
An imaging system composed of an imaging device and an information processing device communicating with each other.
The image pickup device
Imaging means and
A setting means for setting a subject detection process for an captured image captured by the imaging means, and
A gradation number control means that determines the number of gradations of the captured image after reducing the number of gradations according to the set type of detection processing and converts the captured image to the determined gradation number.
It is provided with a communication means for transmitting the captured image to which the number of gradations is converted to the information processing apparatus.
The gradation number control means
When the detection process is not set by the setting means, the first gradation number is determined to be the gradation number after the gradation number reduction.
When the detection process is set by the setting means, a second gradation number larger than the first gradation number is determined as the gradation number after the gradation number reduction.
The information processing device
A communication means for receiving the captured image in which the number of gradations transmitted from the imaging device is converted, and
An imaging system including a detection means for executing the set detection process from the received image to which the number of gradations is converted.
前記撮像装置は、
前記撮像画像において被写体の動きを検出する動き検出手段を更に備え、
前記階調数制御手段は、
前記検出手段が前記被写体の動きを検出しなかった場合、及び、前記設定手段により前記検出処理が設定されなかった場合に、前記第1の階調数を前記階調数削減後の階調数に決定し、
前記動き検出手段が前記被写体の動きを検出し、かつ、前記設定手段により前記検出処理が設定されなかった場合に、前記第2の階調数を前記階調数削減後の階調数に決定する
ことを特徴とする請求項12に記載の撮像システム。
The image pickup device
A motion detecting means for detecting the motion of the subject in the captured image is further provided.
The gradation number control means
When the detection means does not detect the movement of the subject and when the detection process is not set by the setting means, the first gradation number is reduced to the gradation number after the gradation number is reduced. Decided to
When the motion detecting means detects the motion of the subject and the detection process is not set by the setting means, the second gradation number is determined to be the gradation number after reducing the gradation number. The imaging system according to claim 12, wherein the image pickup system is made.
画像処理装置の制御方法であって、
設定手段が、撮像画像に対して行う被写体の検出処理を設定する設定工程と、
階調数制御手段が、前記設定された検出処理の種別に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御工程と、
検出手段が、前記階調数が変換された前記撮像画像から、前記設定された検出処理を実行する検出工程と、
出力手段が、前記階調数が変換された前記撮像画像と、前記検出工程において前記検出処理が実行された場合の検出結果とを出力する出力工程と
を含み、
前記階調数制御工程では、
前記設定工程において前記検出処理が設定されなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定工程において前記検出処理が設定された場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定することを特徴とする画像処理装置の制御方法。
It is a control method of an image processing device.
The setting means sets the subject detection process for the captured image, and
The gradation number control means determines the gradation number of the captured image after the gradation number is reduced according to the type of the set detection process, and converts the captured image into the determined gradation number. Number control process and
A detection step in which the detection means executes the set detection process from the captured image to which the number of gradations has been converted.
The output means includes an output step of outputting the captured image to which the number of gradations is converted and a detection result when the detection process is executed in the detection step.
In the gradation number control step,
When the detection process is not set in the setting step, the first gradation number is determined to be the gradation number after the gradation number reduction.
When the detection process is set in the setting step, an image characterized in that a second gradation number larger than the first gradation number is determined as the gradation number after the gradation number reduction. How to control the processing device.
画像処理装置の制御方法であって、
設定手段が、撮像画像に対して行う被写体の検出処理を設定する設定工程と、
検出手段が、前記撮像画像から、前記設定された検出処理を実行する検出工程と、
階調数制御手段が、前記設定された検出処理の種別と、前記検出処理の検出結果に応じて、階調数削減後の前記撮像画像の階調数を決定し、決定した階調数に前記撮像画像を変換する階調数制御工程と、
出力手段が、前記階調数が変換された前記撮像画像と、前記検出工程において前記検出処理が実行された場合の検出結果とを出力する出力工程と
を含み、
前記階調数制御工程では、
前記設定工程において前記検出処理が設定されなかった場合、及び、前記設定された検出処理を実行して所定の検出結果が得られなかった場合に、第1の階調数を前記階調数削減後の階調数に決定し、
前記設定工程において前記検出処理が設定された場合であって、かつ、前記設定された検出処理を実行して前記所定の検出結果が得られた場合に、前記第1の階調数よりも大きい第2の階調数を前記階調数削減後の階調数に決定することを特徴とする画像処理装置の制御方法。
It is a control method of an image processing device.
The setting means sets the subject detection process for the captured image, and
A detection step in which the detection means executes the set detection process from the captured image, and
The gradation number control means determines the gradation number of the captured image after reducing the gradation number according to the set type of detection processing and the detection result of the detection processing, and obtains the determined gradation number. The gradation number control step for converting the captured image and
The output means includes an output step of outputting the captured image to which the number of gradations is converted and a detection result when the detection process is executed in the detection step.
In the gradation number control step,
When the detection process is not set in the setting step, or when a predetermined detection result is not obtained by executing the set detection process, the first gradation number is reduced. Decide on the number of gradations later,
When the detection process is set in the setting step and when the set detection process is executed and the predetermined detection result is obtained, the number of gradations is larger than the first gradation number. A control method of an image processing apparatus, characterized in that the second gradation number is determined to be the gradation number after the gradation number is reduced.
コンピュータを請求項1から10のいずれか1項に記載の画像処理装置として機能させるためのプログラム。 A program for operating a computer as the image processing device according to any one of claims 1 to 10.
JP2019144828A 2019-08-06 2019-08-06 Image processing device, imaging device, imaging system, control method of the image processing device, and program Pending JP2021027490A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2019144828A JP2021027490A (en) 2019-08-06 2019-08-06 Image processing device, imaging device, imaging system, control method of the image processing device, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2019144828A JP2021027490A (en) 2019-08-06 2019-08-06 Image processing device, imaging device, imaging system, control method of the image processing device, and program

Publications (1)

Publication Number Publication Date
JP2021027490A true JP2021027490A (en) 2021-02-22

Family

ID=74664165

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019144828A Pending JP2021027490A (en) 2019-08-06 2019-08-06 Image processing device, imaging device, imaging system, control method of the image processing device, and program

Country Status (1)

Country Link
JP (1) JP2021027490A (en)

Similar Documents

Publication Publication Date Title
CN111698434B (en) Image processing apparatus, control method thereof, and computer-readable storage medium
US8885061B2 (en) Image processing apparatus, image processing method and program
US8363131B2 (en) Apparatus and method for local contrast enhanced tone mapping
JP5983616B2 (en) Imaging apparatus, imaging method, and program
CN105960658B (en) Image processing apparatus, image capturing apparatus, image processing method, and non-transitory storage medium that can be processed by computer
US8724898B2 (en) Signal processor and storage medium storing signal processing program
US10235972B2 (en) Bit rate controller and a method for limiting output bit rate
JP2018056702A (en) Image processing device, image processing method and program
JP2020202489A (en) Image processing device, image processing method, and program
WO2008056566A1 (en) Image signal processing apparatus, image signal processing program and image signal processing method
WO2006109702A1 (en) Image processing device, imaging device, and image processing program
US8502882B2 (en) Image pick-up apparatus, white balance setting method and recording medium
JP6800806B2 (en) Image processing equipment, image processing methods and programs
US8154618B2 (en) Imaging apparatus and method for setting the same
JP6904838B2 (en) Image processing device, its control method and program
JP2021027490A (en) Image processing device, imaging device, imaging system, control method of the image processing device, and program
US9807311B2 (en) Imaging apparatus, video data transmitting apparatus, video data transmitting and receiving system, image processing method, and program
JP6514577B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND IMAGING APPARATUS
JP2019134332A (en) Image processor and control method therefor
JP7286328B2 (en) Image processing device, image processing method and program
JP5351663B2 (en) Imaging apparatus and control method thereof
JP5307572B2 (en) Imaging system, video signal processing program, and imaging method
JP2022007104A (en) Image processing apparatus, image processing method, and program
JP5208799B2 (en) Imaging system, video signal processing program, and imaging method
CN115442512A (en) Focusing control method, device, terminal and storage medium

Legal Events

Date Code Title Description
RD01 Notification of change of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7421

Effective date: 20210103

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20210113