JP2019186918A - Image processing apparatus, image processing method, and imaging apparatus - Google Patents

Image processing apparatus, image processing method, and imaging apparatus Download PDF

Info

Publication number
JP2019186918A
JP2019186918A JP2019055199A JP2019055199A JP2019186918A JP 2019186918 A JP2019186918 A JP 2019186918A JP 2019055199 A JP2019055199 A JP 2019055199A JP 2019055199 A JP2019055199 A JP 2019055199A JP 2019186918 A JP2019186918 A JP 2019186918A
Authority
JP
Japan
Prior art keywords
image
learning model
subject detection
learning
processing apparatus
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2019055199A
Other languages
Japanese (ja)
Other versions
JP6818798B2 (en
Inventor
良介 辻
Ryosuke Tsuji
良介 辻
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 US16/373,824 priority Critical patent/US10896350B2/en
Publication of JP2019186918A publication Critical patent/JP2019186918A/en
Application granted granted Critical
Publication of JP6818798B2 publication Critical patent/JP6818798B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

To provide an image processing apparatus capable of improving subject detection accuracy for image signals.SOLUTION: The image processing apparatus uses a learning model generated on the basis of machine learning to apply subject detection processing to an image. By using a learning model selected according to image characteristics to which subject detection processing is applied from learning models stored in advance, the subject detection processing is applied.SELECTED DRAWING: Figure 2

Description

本発明は、画像処理装置および画像処理方法、ならびに撮像装置に関し、特に被写体検出技術に関する。   The present invention relates to an image processing apparatus, an image processing method, and an imaging apparatus, and more particularly to a subject detection technique.

画像から特定の被写体パターンを自動的に検出する被写体検出技術は非常に有用である。特許文献1には、撮影した画像から人物の顔のような特定の被写体パターンに該当する領域を検出し、検出した領域に焦点や露出を最適化させる撮像装置が開示されている。   A subject detection technique for automatically detecting a specific subject pattern from an image is very useful. Patent Document 1 discloses an imaging apparatus that detects a region corresponding to a specific subject pattern such as a human face from a photographed image and optimizes the focus and exposure of the detected region.

また、深層学習と呼ばれる手法を用いて、画像中の被写体を学習、認識することが知られている(非特許文献1)。コンボリューショナル・ニューラル・ネットワーク(CNN)は、深層学習の代表的な手法である。一般的にCNNは、画像の局所の特徴を空間的に統合する畳み込み層、特徴量を空間方向へ圧縮するプーリング層またはサブサンプリング層、さらに、全結合層、出力層などが組み合わされた多層構造を有する。CNNは多層構造による段階的な特徴変換を通じて、複雑な特徴表現を獲得することができるため、特徴表現に基づいて画像中の被写体のカテゴリ認識や被写体検出を高精度に行うことができる。   It is also known to learn and recognize a subject in an image using a technique called deep learning (Non-Patent Document 1). The convolutional neural network (CNN) is a typical technique for deep learning. In general, CNN is a multi-layer structure in which a convolution layer that spatially integrates local features of an image, a pooling layer or sub-sampling layer that compresses features in the spatial direction, and a fully connected layer, an output layer, etc. Have Since the CNN can acquire a complicated feature expression through stepwise feature conversion with a multi-layer structure, the category recognition of the subject in the image and the subject detection can be performed with high accuracy based on the feature representation.

特開2005−318554号公報JP 2005-318554 A

Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton, ”ImageNet classification with deep convolutional neural networks”, NIPS'12 Proceedings of the 25th International Conference on Neural Information Processing Systems - Volume 1, PP.1097-1105Alex Krizhevsky, Ilya Sutskever, Geoffrey E. Hinton, “ImageNet classification with deep convolutional neural networks”, NIPS'12 Proceedings of the 25th International Conference on Neural Information Processing Systems-Volume 1, PP.1097-1105

教師あり学習によって画像から被写体を検出するための特徴を機械学習させる場合、装置に、学習用の画像信号と、対になる教師信号とを与える。そして、学習の結果、被写体検出に用いる学習モデルが生成される。撮影によって得られた画像信号は、解像感、色調、ボケ度合など、撮像装置の光学系の特性の影響を受ける。そのため、学習時と、学習結果(学習モデル)を利用した被写体検出時とで光学系の特性が異なると、検出に失敗する場合がある。   When machine learning is performed for features for detecting a subject from an image by supervised learning, a learning image signal and a pair of teacher signals are given to the apparatus. As a result of learning, a learning model used for subject detection is generated. An image signal obtained by shooting is affected by the characteristics of the optical system of the imaging apparatus, such as resolution, color tone, and degree of blur. For this reason, if the characteristics of the optical system are different between the time of learning and the time of subject detection using a learning result (learning model), the detection may fail.

本発明はこのような従来技術の課題に鑑みてなされたものであり、画像信号に対する被写体検出精度を向上させることが可能な画像処理装置および画像処理方法、ならびに撮像装置を提供することを目的とする。   The present invention has been made in view of the above-described problems of the prior art, and an object thereof is to provide an image processing apparatus, an image processing method, and an imaging apparatus capable of improving subject detection accuracy with respect to an image signal. To do.

上述の目的は、機械学習に基づいて生成されたパラメータを用いて、画像に対して被写体検出処理を適用する被写体検出手段と、被写体検出処理に用いるパラメータを複数記憶する記憶手段と、記憶手段が記憶するパラメータから、被写体検出処理を適用する画像の特性に応じて、被写体検出手段で用いるパラメータを選択する選択手段と、を有することを特徴とする画像処理装置によって達成される。   The above-described object is provided by subject detection means for applying subject detection processing to an image using parameters generated based on machine learning, storage means for storing a plurality of parameters used for subject detection processing, and storage means. This is achieved by an image processing apparatus comprising selection means for selecting a parameter to be used in the subject detection means in accordance with the characteristics of the image to which subject detection processing is applied from the stored parameters.

本発明によれば、画像信号に対する被写体検出精度を向上させることが可能な画像処理装置および画像処理方法、ならびに撮像装置を提供することができる。   According to the present invention, it is possible to provide an image processing device, an image processing method, and an imaging device capable of improving subject detection accuracy for an image signal.

本発明の実施形態に係る画像処理装置の一例としてのデジタル一眼レフカメラの模式的な垂直断面図。1 is a schematic vertical sectional view of a digital single-lens reflex camera as an example of an image processing apparatus according to an embodiment of the present invention. 実施形態に係るデジタル一眼レフカメラの機能構成例を示すブロック図。1 is a block diagram illustrating an example of a functional configuration of a digital single-lens reflex camera according to an embodiment. 実施形態に係る撮影動作の概要に関するフローチャート。The flowchart regarding the outline | summary of imaging | photography operation | movement which concerns on embodiment. 実施形態に係る静止画撮影動作に関するフローチャート。The flowchart regarding the still image shooting operation | movement which concerns on embodiment. 実施形態に係る動画撮影動作に関するフローチャート。The flowchart regarding the video recording operation | movement which concerns on embodiment. 実施形態に係る被写体検出回路が用いるCNNの構成例を示す模式図。The schematic diagram which shows the structural example of CNN which the to-be-photographed object detection circuit which concerns on embodiment uses. 図6のCNNの一部の構成の示す模式図。The schematic diagram which shows the structure of a part of CNN of FIG.

以下、添付図面を参照して、本発明の例示的な実施形態について詳細に説明する。なお、以下の実施形態では、本発明をデジタル一眼レフカメラ(DSLR)で実施する場合に関して説明する。しかし、本発明は画像データを取り扱うことの可能な任意の電子機器で実施可能であり、デジタル一眼レフカメラは本発明に係る画像処理装置の一例に過ぎない。本発明を実施可能な電子機器には例えばパーソナルコンピュータ、スマートフォン、タブレット端末、ゲーム機、ロボットなどが含まれるが、これらに限定されない。   Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings. In the following embodiments, a case where the present invention is implemented by a digital single lens reflex camera (DSLR) will be described. However, the present invention can be implemented with any electronic device capable of handling image data, and a digital single-lens reflex camera is only an example of an image processing apparatus according to the present invention. Electronic devices that can implement the present invention include, but are not limited to, personal computers, smartphones, tablet terminals, game machines, robots, and the like.

●(撮像装置の構成)
図1は本実施形態に係るデジタル一眼レフカメラ(DSLR)100の垂直断面図である。また、図2はDSLR100の機能構成例を示すブロック図である。全図を通じて同じ参照番号は同じ構成要素を指す。
● (Configuration of imaging device)
FIG. 1 is a vertical sectional view of a digital single-lens reflex camera (DSLR) 100 according to this embodiment. FIG. 2 is a block diagram showing a functional configuration example of the DSLR 100. Like reference numerals refer to like elements throughout the drawings.

DSLR100は、本体101と、本体101に着脱可能な撮影レンズ102(交換レンズ)とを有する。本体101と撮影レンズ102の着脱部(マウント)にはそれぞれマウント接点群115が設けられている。撮影レンズ102を本体101に装着すると、マウント接点群115が接触し、撮影レンズ102と本体101との電気的な接続が確立する。   The DSLR 100 includes a main body 101 and a photographing lens 102 (interchangeable lens) that can be attached to and detached from the main body 101. Mount contact groups 115 are provided on the attachment and detachment portions (mounts) of the main body 101 and the photographing lens 102, respectively. When the photographic lens 102 is attached to the main body 101, the mount contact group 115 comes into contact, and electrical connection between the photographic lens 102 and the main body 101 is established.

システム制御回路201は、1つ以上のプログラマブルプロセッサと、ROM2011、RAM2012を有し、ROM2011に記憶されているプログラムをRAM2012に読み込んで実行することにより、本体101および撮影レンズ102の動作を制御する。ROM2011には、システム制御回路201が実行するプログラムのほか、各種の設定値、GUIデータなどが記憶されている。   The system control circuit 201 includes one or more programmable processors, a ROM 2011, and a RAM 2012, and controls operations of the main body 101 and the photographing lens 102 by reading a program stored in the ROM 2011 into the RAM 2012 and executing it. The ROM 2011 stores various setting values, GUI data, and the like in addition to programs executed by the system control circuit 201.

撮影レンズ102には合焦距離を調節するフォーカスレンズ113と、本体101に入射する光量を調整する絞り114(およびこれらを駆動するモータやアクチュエータなど)が設けられる。フォーカスレンズ113や絞り114の駆動は、マウント接点群115を通じてカメラ本体101が制御する。   The photographing lens 102 is provided with a focus lens 113 that adjusts the focusing distance, and a diaphragm 114 (and a motor or actuator that drives them) that adjusts the amount of light incident on the main body 101. The driving of the focus lens 113 and the diaphragm 114 is controlled by the camera body 101 through the mount contact group 115.

メインミラー103およびサブミラー104は、クイックリターンミラーを構成する。メインミラー103の一部は、撮影レンズ102から入射する光束をファインダー光学系(図の上方)に向かう光束と、サブミラー104に向かう光束に分離するために反射率(透過率)が制御されている。   The main mirror 103 and the sub mirror 104 constitute a quick return mirror. A part of the main mirror 103 has a reflectance (transmittance) controlled to separate a light beam incident from the photographing lens 102 into a light beam traveling toward the finder optical system (upper side in the drawing) and a light beam traveling toward the sub mirror 104. .

図1は光学ファインダー使用時(非撮影時)の状態を示しており、メインミラー103が撮影レンズ102から入射する光束の光路中に位置している。この状態では、メインミラー103の反射光がファインダー光学系に入射し、ペンタプリズム107によって屈曲された光束はアイピース109から出射する。したがって、ユーザはアイピース109を覗くことにより、光学被写体像を見ることができる。   FIG. 1 shows a state when the optical viewfinder is used (when not photographing), and the main mirror 103 is positioned in the optical path of the light beam incident from the photographing lens 102. In this state, the reflected light of the main mirror 103 enters the finder optical system, and the light beam bent by the pentaprism 107 is emitted from the eyepiece 109. Therefore, the user can see the optical subject image by looking into the eyepiece 109.

また、メインミラー103の透過光はサブミラー104で反射されてAFセンサ105(第1の撮像素子)に入射する。AFセンサ105は、撮影レンズ102の二次結像面をラインセンサー上に形成し、位相差検出方式による焦点検出に利用可能な1対の像信号(焦点検出用信号)を生成する。生成された焦点検出用信号はシステム制御回路201へ送信される。システム制御回路201は、焦点検出用信号を用いてフォーカスレンズ113のデフォーカス量を求め、デフォーカス量に基づいてフォーカスレンズ113の駆動方向および駆動量を制御する。   Further, the transmitted light of the main mirror 103 is reflected by the sub mirror 104 and enters the AF sensor 105 (first image sensor). The AF sensor 105 forms a secondary imaging surface of the photographing lens 102 on the line sensor, and generates a pair of image signals (focus detection signals) that can be used for focus detection by the phase difference detection method. The generated focus detection signal is transmitted to the system control circuit 201. The system control circuit 201 obtains the defocus amount of the focus lens 113 using the focus detection signal, and controls the drive direction and drive amount of the focus lens 113 based on the defocus amount.

ピント板106は、ファインダー光学系内の撮影レンズ102の予定結像面に配置される。アイピース109を覗いたユーザは、ピント板106に形成された光学像を観察する。なお、光学像のほか、シャッタースピード、絞り値などの撮影情報も併せて提供することができる。   The focus plate 106 is disposed on the planned imaging plane of the photographing lens 102 in the finder optical system. A user looking into the eyepiece 109 observes the optical image formed on the focusing plate 106. In addition to the optical image, shooting information such as shutter speed and aperture value can also be provided.

測光センサー108は、入射する光束から像信号(露出制御用信号)を生成し、システム制御回路201へ送信する。システム制御回路201は、受信した露出制御用信号を用いて自動露出制御を行ったり、後述する被写体検出回路204による被写体検出を制御したりする。測光センサー108は、光電変換部を備える画素が2次元状に配置された撮像素子である。   The photometric sensor 108 generates an image signal (exposure control signal) from the incident light beam and transmits it to the system control circuit 201. The system control circuit 201 performs automatic exposure control using the received exposure control signal or controls subject detection by a subject detection circuit 204 described later. The photometric sensor 108 is an image sensor in which pixels including a photoelectric conversion unit are two-dimensionally arranged.

撮像素子111の露光時、メインミラー103およびサブミラー104は、撮影レンズ102から入射する光束の光路の外に移動する。また、フォーカルプレーンシャッター110(以下、単にシャッターという)が開く。   When the image sensor 111 is exposed, the main mirror 103 and the sub mirror 104 move out of the optical path of the light beam incident from the photographing lens 102. Further, a focal plane shutter 110 (hereinafter simply referred to as a shutter) is opened.

撮像素子111(第2の撮像素子)には、光電変換部を備える画素が2次元状に配置されており、撮影レンズ102が形成する被写体光学像を各画素で光電変換し、画像信号をシステム制御回路201に送信する。システム制御回路201は、受信した画像信号から画像データを生成して画像記憶用メモリ202へ保存するとともに、LCD等のモニター112に表示する。また、撮像素子111で生成された画像データは、被写体検出のために被写体検出回路204にも供給される。なお、システム制御回路201は、画像データを用い、コントラスト方式による焦点検出を行ってもよい。   In the image sensor 111 (second image sensor), pixels including a photoelectric conversion unit are two-dimensionally arranged, and a subject optical image formed by the photographing lens 102 is photoelectrically converted by each pixel, and an image signal is converted into a system. Transmit to the control circuit 201. The system control circuit 201 generates image data from the received image signal, stores it in the image storage memory 202, and displays it on a monitor 112 such as an LCD. The image data generated by the image sensor 111 is also supplied to the subject detection circuit 204 for subject detection. Note that the system control circuit 201 may perform focus detection by a contrast method using image data.

また、本実施形態では、撮像素子111の各画素が2つの光電変換部(光電変換部Aと光電変換部Bとする)を備え、個々の光電変換部から独立して画像信号を読み出し可能な構成を有するものとする。つまり、撮像素子111は、1回の露光により、
・光電変換部A群から得られる画像信号(A像とする)と、
・光電変換部B群から得られる画像信号(B像とする)と、
・画素ごとに光電変換部Aから得られる画像信号と光電変換部Bから得られる画像信号とを加算した画像信号(A+B像とする)と、
を生成することができる。
In this embodiment, each pixel of the image sensor 111 includes two photoelectric conversion units (referred to as a photoelectric conversion unit A and a photoelectric conversion unit B), and image signals can be read independently from the individual photoelectric conversion units. It shall have a configuration. In other words, the image sensor 111 can be exposed once.
An image signal (referred to as an A image) obtained from the photoelectric conversion unit A group;
An image signal (referred to as B image) obtained from the photoelectric conversion unit B group;
An image signal (A + B image) obtained by adding the image signal obtained from the photoelectric conversion unit A and the image signal obtained from the photoelectric conversion unit B for each pixel;
Can be generated.

A像とB像とは1対の視差画像であるため、A像とB像に基づいて位相差検出方式の焦点検出を行うことができる。本実施形態では、静止画撮影時にはA+B像を取得し、AFセンサ105を用いて焦点検出を行うものとする。一方、動画撮影時には、AFセンサ105から像信号を得ることができないため、A+B像と、A像とを取得するものとする。B像は、A+B像からA像を減じることによって生成する。なお、A像の代わりにB像を取得するようにしてもよい。   Since the A image and the B image are a pair of parallax images, focus detection by the phase difference detection method can be performed based on the A image and the B image. In the present embodiment, an A + B image is acquired at the time of still image shooting, and focus detection is performed using the AF sensor 105. On the other hand, since an image signal cannot be obtained from the AF sensor 105 during moving image shooting, an A + B image and an A image are acquired. The B image is generated by subtracting the A image from the A + B image. A B image may be acquired instead of the A image.

操作部材203は、本体101および撮影レンズ102が備え、ユーザが操作可能な入力デバイス群である。レリーズボタン、電源スイッチ、方向キー、決定ボタン、メニューボタン、動作モードの選択ダイヤルなどが操作部材203に含まれる入力デバイスの具体例であるが、これらに限定されない。操作部材203の操作は、システム制御回路201が検知する。   The operation member 203 is an input device group that is provided in the main body 101 and the photographing lens 102 and can be operated by the user. A release button, a power switch, a direction key, a determination button, a menu button, an operation mode selection dial, and the like are specific examples of the input device included in the operation member 203, but are not limited thereto. The operation of the operation member 203 is detected by the system control circuit 201.

例えば、レリーズボタンの半押し操作が検出されると、システム制御回路201は、静止画撮影準備動作を開始する。撮影準備動作は例えば自動焦点検出(AF)や自動露出制御(AE)に関する動作である。また、レリーズボタンの全押し操作を検出すると、システム制御回路201は、静止画の撮影および記録動作を実行する。システム制御回路201は、撮影によって得られた画像を、モニター112に一定時間表示する。   For example, when a half-press operation of the release button is detected, the system control circuit 201 starts a still image shooting preparation operation. The shooting preparation operation is, for example, an operation related to automatic focus detection (AF) and automatic exposure control (AE). In addition, when the full pressing operation of the release button is detected, the system control circuit 201 performs still image shooting and recording operations. The system control circuit 201 displays an image obtained by shooting on the monitor 112 for a certain period of time.

また、動画撮影時(撮影スタンバイ状態や動画記録中)、システム制御回路201は、撮影によって得られた動画を、モニター112にリアルタイムに表示することにより、モニター112を電子ビューファインダー(EVF)として機能させる。モニター112をEVFとして機能させる際に表示する動画像およびそのフレーム画像を、ライブビュー画像もしくはスルー画像と呼ぶ。静止画と動画の何れを撮影するかは操作部材203を通じて選択可能であり、システム制御回路201は、静止画撮影時と動画撮影時とで、カメラ本体101および撮影レンズ102の制御方法を切り替える。   In addition, during moving image shooting (in shooting standby state or during moving image recording), the system control circuit 201 displays the moving image obtained by shooting on the monitor 112 in real time, thereby functioning the monitor 112 as an electronic viewfinder (EVF). Let A moving image displayed when the monitor 112 functions as an EVF and its frame image are referred to as a live view image or a through image. Which of the still image and the moving image is to be taken can be selected through the operation member 203, and the system control circuit 201 switches the control method of the camera body 101 and the taking lens 102 between the still image shooting and the moving image shooting.

被写体検出回路204は、GPU(Graphic Processing Unit)で構成される。GPUは、元々は画像処理用のプロセッサであるが、複数の積和演算器を有し、行列計算を得意としているため、学習用の処理を行うプロセッサとしても用いられることが多い。そして、深層学習を行う処理においても、GPUが用いられることが一般的である。例えば、被写体検出回路204として、NVIDIA社のJetson TX2 moduleを用いることができる。なお、被写体検出回路204として、FPGA(field−programmable gate array)やASIC(application specific integrated circuit)などを用いてもよい。   The subject detection circuit 204 is configured by a GPU (Graphic Processing Unit). The GPU is originally a processor for image processing, but has a plurality of product-sum operation units and is good at matrix calculation, so it is often used as a processor that performs processing for learning. In general, GPU is also used in the process of performing deep learning. For example, as the subject detection circuit 204, a Jetson TX2 module manufactured by NVIDIA can be used. Note that as the subject detection circuit 204, a field-programmable gate array (FPGA), an application specific integrated circuit (ASIC), or the like may be used.

被写体検出回路204は、学習モデル用メモリ205が複数記憶する学習モデルのうち、システム制御回路201が選択した1つの学習モデルを用いて、供給される画像データに対して被写体検出処理を適用する。被写体検出処理の詳細については後述する。学習モデル用メモリ205は例えば書き換え可能な不揮発性メモリであってよく、ROM2011の一部であってもよい。本実施形態において学習モデル用メモリ205は、被写体検出処理の対象となる画像データの元になる画像信号を生成する撮像素子(イメージセンサ)ごとに用意された学習モデル206,207を記憶する。   The subject detection circuit 204 applies subject detection processing to the supplied image data using one learning model selected by the system control circuit 201 among a plurality of learning models stored in the learning model memory 205. Details of the subject detection process will be described later. The learning model memory 205 may be a rewritable nonvolatile memory, for example, or may be a part of the ROM 2011. In the present embodiment, the learning model memory 205 stores learning models 206 and 207 prepared for each image sensor (image sensor) that generates an image signal that is a source of image data to be subjected to subject detection processing.

(被写体検出における学習モデル切り替え)
本実施形態のDSLR100は、異なる経路で光が入射する測光センサー108と撮像素子111のそれぞれで生成される画像信号に基づく画像データについて被写体検出を適用する。被写体検出の詳細は後述するが、予め機械学習を通じて生成された学習モデルが用いられる。
(Learning model switching for object detection)
The DSLR 100 according to the present embodiment applies subject detection to image data based on image signals generated by the photometric sensor 108 and the image sensor 111 through which light enters through different paths. Although details of subject detection will be described later, a learning model generated in advance through machine learning is used.

測光センサー108と撮像素子111はいずれも2次元配列された複数の画素によって光学像を光電変換して画像信号を生成する点において共通するが、生成される画像信号の特性(画質)は異なる。画質に差異が発生するのは、光路、センサーの構造、信号処理などが、測光センサー108と撮像素子111とで異なるからである。また、システム制御回路201によって画像データを生成する際の処理も異なる場合がある。一般的には、撮像素子111で生成される画像信号よりも、測光センサー108で生成される画像信号の方が、解像感や色再現性が低い。これは、撮像素子111は鑑賞を目的とした画像信号の生成を目的としているのに対し、測光センサ108は露出制御用の画像信号の生成を目的としていることに起因するものが大きい。ただし、仮に測光センサー108と撮像素子111とが全く同じデバイスを用いているとしても、入射光路や画像データ生成時の処理の違いなどに起因した画質の差は生じる。   Both the photometric sensor 108 and the image sensor 111 are common in that an optical image is photoelectrically converted by a plurality of two-dimensionally arranged pixels to generate an image signal, but the characteristics (image quality) of the generated image signal are different. The difference in image quality occurs because the optical path, sensor structure, signal processing, and the like differ between the photometric sensor 108 and the image sensor 111. Also, the processing when the image data is generated by the system control circuit 201 may be different. In general, the image signal generated by the photometric sensor 108 has lower resolution and color reproducibility than the image signal generated by the image sensor 111. This is largely due to the fact that the image sensor 111 is intended to generate an image signal for viewing purposes, whereas the photometric sensor 108 is intended to generate an image signal for exposure control. However, even if the photometric sensor 108 and the image sensor 111 use the same device, there is a difference in image quality due to an incident optical path, a difference in processing when generating image data, and the like.

したがって、測光センサー108で生成された画像信号に基づく機械学習によって生成された学習モデルを撮像素子111によって生成された画像信号に対する被写体検出に用いると、検出精度が低下する可能性がある。逆も又しかりである。そのため、本実施形態では、画像信号を生成する撮像素子(もしくは、特性の異なる画像)ごとに異なる学習モデルを用意する。そして、被写体検出処理を適用する画像信号を生成したセンサーに対応した学習モデルを用いて、被写体検出処理を適用する。   Therefore, when a learning model generated by machine learning based on the image signal generated by the photometric sensor 108 is used for subject detection for the image signal generated by the image sensor 111, the detection accuracy may decrease. The reverse is also true. Therefore, in the present embodiment, a different learning model is prepared for each image sensor (or an image having different characteristics) that generates an image signal. Then, subject detection processing is applied using a learning model corresponding to the sensor that generated the image signal to which subject detection processing is applied.

具体的には、被写体検出回路204は、測光センサー108で生成された画像信号に基づく画像データに対しては、測光センサー用の学習モデル206を用いる。また、被写体検出回路204は、撮像素子111で生成された画像信号に基づく画像データに対しては、撮像素子用の学習モデル207を用いる。   Specifically, the subject detection circuit 204 uses a photometric sensor learning model 206 for image data based on the image signal generated by the photometric sensor 108. The subject detection circuit 204 uses the learning model 207 for the image sensor for image data based on the image signal generated by the image sensor 111.

(撮影動作)
次に、図3〜図5を参照して、本実施形態のDSLR100の撮影動作について説明する。
図3は撮影動作の概要に関するフローチャートであり、各ステップの処理はシステム制御回路201のプログラマブルプロセッサがROM2011からRAM2012に読み込まれたプログラムを実行することによって実現される。
(Shooting operation)
Next, with reference to FIGS. 3 to 5, the photographing operation of the DSLR 100 of the present embodiment will be described.
FIG. 3 is a flowchart relating to the outline of the photographing operation, and the processing of each step is realized by executing a program read from the ROM 2011 to the RAM 2012 by the programmable processor of the system control circuit 201.

S301でシステム制御回路201は本体101の電源がONかどうか判定し、ONと判定されなければ処理を終了し、ONと判定されれば処理をS302に進む。判定は例えば操作部材203の電源スイッチの状態や、電源のON、OFFを示すフラグなどの参照に基づくことができる。   In step S301, the system control circuit 201 determines whether the power source of the main body 101 is ON. If it is not determined to be ON, the process ends. If it is determined to be ON, the process proceeds to step S302. The determination can be based on, for example, a reference to the state of the power switch of the operation member 203 or a flag indicating ON / OFF of the power source.

S302でシステム制御回路201は撮影モードを判定する。ここでは撮影モードが静止画撮影モードか動画撮影モードかの判定とするが、他の撮影モードが設定可能であってもよい。撮影モードは操作部材203のユーザー操作によって変更可能である。システム制御回路201は、静止画撮影モードと判定されれば処理をS303へ進め、動画撮影モードと判定されれば処理をS304に進める。   In step S302, the system control circuit 201 determines the shooting mode. Here, it is determined whether the shooting mode is the still image shooting mode or the moving image shooting mode, but other shooting modes may be settable. The shooting mode can be changed by a user operation of the operation member 203. If it is determined that the still image shooting mode is set, the system control circuit 201 advances the process to step S303, and if it is determined that the moving image shooting mode is set, the process advances to step S304.

S303でシステム制御回路201は静止画撮影処理を行い、処理をS301に戻す。また、S304でシステム制御回路201は動画撮影処理を行い、処理をS301に戻す。静止画撮影処理については図4を用いて、動画撮影処理については図5を用いてそれぞれ後述する。   In step S303, the system control circuit 201 performs still image shooting processing, and returns the processing to step S301. In step S304, the system control circuit 201 performs moving image shooting processing, and returns the processing to step S301. The still image shooting process will be described later with reference to FIG. 4, and the moving image shooting process will be described later with reference to FIG.

(静止画撮影処理)
図4は、図3のS303に示した静止画撮影処理の詳細に関するフローチャートである。
S401でシステム制御回路201は、レリーズボタンの半押し操作でオンするスイッチSW1と、レリーズボタンの全押し操作でオンするスイッチSW2の状態を検出する。そして、システム制御回路201は、スイッチSW1とSW2のいずれかがオンであれば、処理をS402へ進め、スイッチSW1とSW2がいずれもオフであれば、処理を終了する。
(Still image processing)
FIG. 4 is a flowchart regarding the details of the still image shooting process shown in S303 of FIG.
In step S401, the system control circuit 201 detects the state of the switch SW1 that is turned on when the release button is pressed halfway and the switch SW2 that is turned on when the release button is fully pressed. The system control circuit 201 advances the process to S402 if either of the switches SW1 and SW2 is on, and ends the process if both of the switches SW1 and SW2 are off.

S402でシステム制御回路201は、測光センサー108の露光処理(電荷蓄積)を行う。測光センサー108の露光処理は所謂電子シャッターによって所定時間電荷蓄積を行うことによって実現される。システム制御回路201は、測光センサー108の動作を制御して、所定時間電荷蓄積を行い、測光センサー108から画像信号(露出制御用信号)を読み出す。また、システム制御回路201は、AFセンサー105についても露光処理(電荷蓄積)を行い、画像信号(焦点検出用信号)を読み出す。   In step S <b> 402, the system control circuit 201 performs exposure processing (charge accumulation) of the photometric sensor 108. The exposure process of the photometric sensor 108 is realized by performing charge accumulation for a predetermined time using a so-called electronic shutter. The system control circuit 201 controls the operation of the photometric sensor 108, performs charge accumulation for a predetermined time, and reads an image signal (exposure control signal) from the photometric sensor 108. The system control circuit 201 also performs exposure processing (charge accumulation) on the AF sensor 105 and reads an image signal (focus detection signal).

S403でシステム制御回路201(選択手段)は、学習モデル用メモリ205に複数記憶されている学習モデルのうち、測光センサー用の学習モデル206を選択し、被写体検出処理用のパラメータとして被写体検出回路204に設定する。また、システム制御回路201は、S402で読み出した露出制御用信号に対してA/D変換やノイズ低減処理などを行って生成した画像データを被写体検出回路204に供給する。   In step S <b> 403, the system control circuit 201 (selection unit) selects a learning model 206 for the photometric sensor from among a plurality of learning models stored in the learning model memory 205, and uses the subject detection circuit 204 as a parameter for subject detection processing. Set to. In addition, the system control circuit 201 supplies image data generated by performing A / D conversion, noise reduction processing, and the like on the exposure control signal read out in step S <b> 402 to the subject detection circuit 204.

なお、ここでは静止画撮影時には光学ファインダーを使用中であるものとしているが、例えばEVF(モニター112)を使用中であるか、光学ファインダーを使用中であるかを判別してもよい。光学ファインダーを使用しない静止画撮影時には、システム制御回路201は、学習モデル用メモリ205に複数記憶されている学習モデルのうち、撮像素子用の学習モデル207を選択し、被写体検出処理用のパラメータとして被写体検出回路204に設定する。光学ファインダーを使用中か否かは、アイピース109近傍に設けた近接センサを用いる方法など、公知の方法によって判定することができる。   Here, it is assumed that the optical finder is being used at the time of still image shooting. However, for example, it may be determined whether the EVF (monitor 112) is being used or the optical finder is being used. During still image shooting without using the optical viewfinder, the system control circuit 201 selects a learning model 207 for the image sensor from among a plurality of learning models stored in the learning model memory 205, and uses it as a parameter for subject detection processing. Set in the subject detection circuit 204. Whether or not the optical viewfinder is being used can be determined by a known method such as a method using a proximity sensor provided in the vicinity of the eyepiece 109.

S404で被写体検出回路204は、露出制御用信号に基づく画像データに対して、S403で設定された測光センサー用の学習モデル206を用いて被写体検出処理を適用する。被写体検出処理の詳細については後述する。被写体検出回路204は、検出結果を表す情報をシステム制御回路201に供給する。検出結果を表す情報には、被写体が検出されたか否か(検出数)や、検出した被写体領域に関する情報(例えば位置や大きさ)が含まれてよい。   In step S404, the subject detection circuit 204 applies subject detection processing to the image data based on the exposure control signal using the learning model 206 for the photometric sensor set in step S403. Details of the subject detection process will be described later. The subject detection circuit 204 supplies information representing the detection result to the system control circuit 201. The information indicating the detection result may include whether or not a subject has been detected (number of detections) and information (for example, position and size) regarding the detected subject region.

S405でシステム制御回路201は、S404における被写体検出の結果、被写体が1つ以上検出されていれば、検出された被写体の位置に最も近い焦点検出領域を選択する。なお、被写体が複数検出された場合、システム制御回路201は例えば、被写体領域の大きさや位置などに基づいて代表被写体を決定し、代表被写体の位置に最も近い焦点検出領域を選択する。そして、システム制御回路201は、選択した焦点検出領域についての焦点状態(デフォーカス量および方向)を、焦点検出用信号に基づいて求める。   In step S405, if one or more subjects are detected as a result of subject detection in step S404, the system control circuit 201 selects a focus detection region that is closest to the detected subject position. When a plurality of subjects are detected, the system control circuit 201 determines a representative subject based on, for example, the size and position of the subject region, and selects a focus detection region that is closest to the position of the representative subject. Then, the system control circuit 201 obtains the focus state (defocus amount and direction) for the selected focus detection region based on the focus detection signal.

なお、S404で被写体が検出されなかった場合、システム制御回路201は、選択可能な全ての焦点検出領域についての焦点状態(デフォーカス量および方向)を、焦点検出用信号に基づいて求める。そして、最も近い距離に被写体が存在する焦点検出領域を選択する。   If no subject is detected in S404, the system control circuit 201 obtains the focus state (defocus amount and direction) for all selectable focus detection areas based on the focus detection signal. Then, the focus detection area where the subject is present at the closest distance is selected.

S406でシステム制御回路201は、S405で選択した焦点検出領域の焦点状態に基づいてフォーカスレンズ113の位置を制御することにより、撮影レンズ102の合焦距離を調節する。   In step S406, the system control circuit 201 adjusts the focus distance of the photographing lens 102 by controlling the position of the focus lens 113 based on the focus state of the focus detection area selected in step S405.

S407でシステム制御回路201は、S402で読み出した露出制御用信号を用いて撮影条件(絞り値(AV値)、シャッタスピード(TV値)、ISO感度(ISO値))を決定する。撮影条件の決定方法に特に制限は無いが、ここでは、露出制御用信号に基づいて得られる輝度(Bv値)に対応する撮影条件を、予め記憶されたプログラム線図を参照して決定するものとする。なお、被写体検出処理によって検出された被写体領域の輝度を用いて撮影条件を決定するようにしてもよい。   In step S407, the system control circuit 201 determines shooting conditions (aperture value (AV value), shutter speed (TV value), ISO sensitivity (ISO value)) using the exposure control signal read in step S402. Although there is no particular limitation on the method for determining the shooting condition, here, the shooting condition corresponding to the luminance (Bv value) obtained based on the exposure control signal is determined with reference to a pre-stored program diagram. And Note that the shooting condition may be determined using the luminance of the subject area detected by the subject detection process.

S408でシステム制御回路201は、スイッチSW2の状態を検出し、スイッチSW2がオンであれば処理をS409へ進め、スイッチSW2がオフであれば処理を終了する。   In step S408, the system control circuit 201 detects the state of the switch SW2. If the switch SW2 is on, the system control circuit 201 advances the process to step S409. If the switch SW2 is off, the system control circuit 201 ends the process.

S409でシステム制御回路201は、静止画の撮影処理を実行する。システム制御回路201は、撮影レンズ102からの光束と交差しない位置にメインミラー103およびサブミラー104を移動させるとともに、S407で決定したシャッタースピードに従ってシャッター110を駆動する。これにより、撮影レンズ102が形成する光学像によって撮像素子111が露光される。撮像素子111は各画素が露光期間に蓄積した電荷を電圧に変換した画像信号を生成する。システム制御回路201は撮像素子111から画像信号を読み出し、A/D変換、ノイズ低減、ホワイトバランス調整、色補間など、予め定められた画像処理を適用することにより画像データを生成する。システム制御回路201は、生成した画像データを画像データファイルとして画像記憶用メモリ202に保存したり、画像データに基づく表示用画像信号を生成してモニター112に表示したりする。   In step S409, the system control circuit 201 executes still image shooting processing. The system control circuit 201 moves the main mirror 103 and the sub mirror 104 to positions that do not intersect with the light flux from the photographic lens 102, and drives the shutter 110 according to the shutter speed determined in S407. Thereby, the image sensor 111 is exposed by the optical image formed by the photographing lens 102. The image sensor 111 generates an image signal obtained by converting the charge accumulated in each pixel during the exposure period into a voltage. The system control circuit 201 reads an image signal from the image sensor 111, and generates image data by applying predetermined image processing such as A / D conversion, noise reduction, white balance adjustment, and color interpolation. The system control circuit 201 saves the generated image data as an image data file in the image storage memory 202, or generates a display image signal based on the image data and displays it on the monitor 112.

(動画撮影処理)
次に、図5に示すフローチャートを用いて、図3のS304における動画撮影処理の詳細について説明する。動画撮影動作は、撮影スタンバイ時や、動画記録の開始指示の検出に応じて実行される。なお、撮影スタンバイ時の動画撮影は表示用のスルー画像生成を目的としているため、記録を目的とした動画撮影時とは解像度(画素数)などにおいて異なる。しかしながら、被写体検出処理の内容は基本的に変わらないため、以下では特に動画の撮影目的を意識することなく説明する。
(Movie shooting process)
Next, details of the moving image shooting processing in S304 of FIG. 3 will be described using the flowchart shown in FIG. The moving image shooting operation is executed at the time of shooting standby or in response to detection of a moving image recording start instruction. Note that moving image shooting during shooting standby aims to generate a through image for display, and therefore differs in resolution (number of pixels) and the like from moving image shooting for recording purposes. However, since the contents of the subject detection process are basically the same, the following description will be given without considering the purpose of capturing a moving image.

S501でシステム制御回路201は、動画の1フレーム分の処理を実行し、画像データを生成する。動画撮影では予め定められたフレームレートで連続的に撮影を行うため、シャッター110を全開し、メインミラー103およびサブミラー104を移動させた状態とする。また、撮像素子111の露光時間は電荷蓄積時間を制御することにより調整する。システム制御回路201は、電荷蓄積、画像信号の読み出し、蓄積電荷のリセットを1フレームの撮影ごとに繰り返す。システム制御回路201は、撮像素子111から読み出した画像信号(A+B像とA像)に画像処理を適用して画像データを生成し、A+B像を画像記憶用メモリ202に保存する。また、A+B像に相当する表示用画像を生成し、モニター112にスルー画像として表示する。また、システム制御回路201は、焦点検出を行うために、A像と、A+B像とA像とから生成したB像とを、例えばRAM2012に格納しておく。   In step S501, the system control circuit 201 executes processing for one frame of a moving image and generates image data. In moving image shooting, in order to continuously perform shooting at a predetermined frame rate, the shutter 110 is fully opened and the main mirror 103 and the sub mirror 104 are moved. The exposure time of the image sensor 111 is adjusted by controlling the charge accumulation time. The system control circuit 201 repeats charge accumulation, image signal readout, and accumulated charge reset every time one frame is shot. The system control circuit 201 generates image data by applying image processing to the image signals (A + B image and A image) read out from the image sensor 111, and stores the A + B image in the image storage memory 202. Further, a display image corresponding to the A + B image is generated and displayed on the monitor 112 as a through image. Further, the system control circuit 201 stores an A image and a B image generated from the A + B image and the A image in, for example, the RAM 2012 in order to perform focus detection.

S502でシステム制御回路201は、撮像素子用の学習モデル207を被写体検出処理用のパラメータとして被写体検出回路204に設定する。また、システム制御回路201は、画像記憶用メモリ202に格納した画像データを被写体検出回路204に供給する。   In step S502, the system control circuit 201 sets the learning model 207 for the image sensor in the subject detection circuit 204 as a parameter for subject detection processing. Further, the system control circuit 201 supplies the image data stored in the image storage memory 202 to the subject detection circuit 204.

S503で被写体検出回路204は、システム制御回路201から供給される画像データに対して、S502で設定された撮像素子用の学習モデル207を用いて被写体検出処理を適用する。被写体検出処理の詳細については後述する。被写体検出回路204は、検出結果を表す情報をシステム制御回路201に供給する。検出結果を表す情報には、被写体が検出されたか否か(検出数)や、検出した被写体領域に関する情報(例えば位置や大きさ)が含まれてよい。   In step S503, the subject detection circuit 204 applies subject detection processing to the image data supplied from the system control circuit 201 using the learning model 207 for the image sensor set in step S502. Details of the subject detection process will be described later. The subject detection circuit 204 supplies information representing the detection result to the system control circuit 201. The information indicating the detection result may include whether or not a subject has been detected (number of detections) and information (for example, position and size) regarding the detected subject region.

S504でシステム制御回路201は、S503における被写体検出の結果、被写体が1つ以上検出されていれば、検出された被写体の位置に最も近い焦点検出領域を選択する。なお、被写体が複数検出された場合、システム制御回路201は例えば、被写体領域の大きさや位置などに基づいて代表被写体を決定し、代表被写体の位置に最も近い焦点検出領域を選択する。   In step S504, if one or more subjects are detected as a result of the subject detection in step S503, the system control circuit 201 selects a focus detection region closest to the detected subject position. When a plurality of subjects are detected, the system control circuit 201 determines a representative subject based on, for example, the size and position of the subject region, and selects a focus detection region that is closest to the position of the representative subject.

そして、システム制御回路201は、RAM2012に格納したA像とB像のそれぞれについて、選択した焦点検出領域に対応する領域に含まれる複数の画素データを繋ぎ合わせて1対の像信号(焦点検出用信号)を生成する。例えば、各画素が水平方向に並んだ2つの光電変換部を有する場合、システム制御回路201は、水平方向に並んだ複数の画素データを繋ぎ合わせて像信号を生成する。システム制御回路201は、A像とB像とから生成した1対の像信号を、AFセンサ105から得られる1対の像信号と同様に取り扱い、焦点状態(デフォーカス量および方向)を求める。   Then, the system control circuit 201 connects a plurality of pixel data included in the region corresponding to the selected focus detection region for each of the A image and the B image stored in the RAM 2012 to generate a pair of image signals (for focus detection). Signal). For example, when each pixel has two photoelectric conversion units arranged in the horizontal direction, the system control circuit 201 generates an image signal by connecting a plurality of pixel data arranged in the horizontal direction. The system control circuit 201 handles a pair of image signals generated from the A image and the B image in the same manner as a pair of image signals obtained from the AF sensor 105, and obtains a focus state (defocus amount and direction).

S505でシステム制御回路201は、S504で求めたデフォーカス量およびデフォーカス方向に対応するレンズ駆動量および駆動方向に従って、フォーカスレンズ113の位置を制御することにより、撮影レンズ102の合焦距離を調節する。   In step S505, the system control circuit 201 adjusts the focus distance of the photographing lens 102 by controlling the position of the focus lens 113 according to the lens driving amount and driving direction corresponding to the defocus amount and defocus direction obtained in step S504. To do.

S506でシステム制御回路201は、S501で読み出した画像信号(A+B像)を用いて撮影条件(絞り値(AV値)、シャッタスピード(TV値)、ISO感度(ISO値))を決定する。撮影条件の決定方法に特に制限は無いが、ここでは、画像信号に基づいて得られる輝度(Bv値)に対応する撮影条件を、予め記憶されたプログラム線図を参照して決定するものとする。なお、被写体検出処理によって検出された被写体領域の輝度を用いて撮影条件を決定するようにしてもよい。   In step S506, the system control circuit 201 determines shooting conditions (aperture value (AV value), shutter speed (TV value), ISO sensitivity (ISO value)) using the image signal (A + B image) read in step S501. Although there is no particular limitation on the method for determining the photographing condition, here, the photographing condition corresponding to the luminance (Bv value) obtained based on the image signal is determined with reference to a pre-stored program diagram. . Note that the shooting condition may be determined using the luminance of the subject area detected by the subject detection process.

S502からS506までの処理は、次フレームの処理(S501の次回実行)を対象としている。図3のS301で電源スイッチがONであると判定されなくなるまで、S302で撮影モードが動画撮影モードと判定されている期間は、S304においてS501からS505の処理を繰り返し実行する。   The processing from S502 to S506 is targeted for the processing of the next frame (next execution of S501). Until the power switch is determined not to be ON in S301 in FIG. 3, the processing from S501 to S505 is repeatedly executed in S304 during the period in which the shooting mode is determined to be the moving image shooting mode in S302.

(被写体検出の詳細)
次に、被写体検出回路204および被写体検出処理について説明する。本実施形態では、被写体検出回路204をCNN(コンボリューショナル・ニューラル・ネットワーク)の1種であるネオコグニトロンで構成する。被写体検出回路204の基本的な構成について、図6および図7を用いて説明する。図6に入力された2次元画像データから被写体を検出するCNNの基本的な構成を示す。処理の流れは、左端を入力とし、右方向に処理が進んでいく。CNNは、特徴検出層(S層)と特徴統合層(C層)と呼ばれる2つの層をひとつのセットとし、それが階層的に構成されている。なお、S層は従来技術で説明した畳み込み層に、C層は同プーリング層またはサブサンプリング層に対応する。
(Details of subject detection)
Next, the subject detection circuit 204 and subject detection processing will be described. In this embodiment, the subject detection circuit 204 is configured by a neocognitron which is a kind of CNN (convolutional neural network). A basic configuration of the subject detection circuit 204 will be described with reference to FIGS. FIG. 6 shows a basic configuration of the CNN that detects the subject from the input two-dimensional image data. The processing flow takes the left end as input and proceeds in the right direction. The CNN includes two layers called a feature detection layer (S layer) and a feature integration layer (C layer) as one set, and is configured hierarchically. The S layer corresponds to the convolution layer described in the prior art, and the C layer corresponds to the pooling layer or the subsampling layer.

CNNでは、まずS層において1つ前の階層で検出された特徴をもとに次の特徴を検出する。またS層において検出した特徴をC層で統合し、その階層における検出結果として次の階層に伝える構成を有する。
S層は特徴検出細胞面からなり、特徴検出細胞面ごとに異なる特徴を検出する。また、C層は特徴統合細胞面からなり、1つ前の階層の特徴検出細胞面での検出結果をプーリングもしくはサブサンプリングする。以下では、特に区別する必要がない場合、特徴検出細胞面および特徴統合細胞面を総称して特徴面と呼ぶ。本実施形態では、最終階層である出力層(n階層目)ではC層は用いずS層のみで構成している。
In the CNN, first, the next feature is detected based on the feature detected in the previous layer in the S layer. Further, it has a configuration in which the features detected in the S layer are integrated in the C layer and transmitted to the next layer as a detection result in that layer.
The S layer is composed of a feature detection cell surface, and detects different features for each feature detection cell surface. Further, the C layer is composed of a feature integrated cell surface, and the detection result on the feature detection cell surface of the previous layer is pooled or subsampled. Hereinafter, the feature detection cell surface and the feature integrated cell surface are collectively referred to as a feature surface unless it is particularly necessary to distinguish between them. In the present embodiment, the output layer (the nth layer), which is the last layer, is configured by only the S layer without using the C layer.

特徴検出細胞面での特徴検出処理、および特徴統合細胞面での特徴統合処理の詳細について、図7を用いて説明する。1つの特徴検出細胞面は複数の特徴検出ニューロンにより構成され、個々の特徴検出ニューロンは1つ前の階層のC層に所定の構造で結合している。また1つの特徴統合細胞面は、複数の特徴統合ニューロンにより構成され、個々の特徴統合ニューロンは同じ階層のS層に所定の構造で結合している。   Details of the feature detection process on the feature detection cell plane and the feature integration process on the feature integration cell plane will be described with reference to FIG. One feature detection cell surface is composed of a plurality of feature detection neurons, and each feature detection neuron is connected to the C layer of the previous layer with a predetermined structure. One feature-integrated cell surface is composed of a plurality of feature-integrated neurons, and each feature-integrated neuron is connected to the S layer of the same hierarchy with a predetermined structure.

図7に示した、L階層目のS層のM番目の細胞面内において、位置(ξ, ζ)の特徴検出ニューロンの出力値を

Figure 2019186918
と表記する。また、L階層目のC層のM番目の細胞面内において、位置(ξ, ζ)の特徴統合ニューロンの出力値を
Figure 2019186918
と表記する。その時、それぞれのニューロンの結合係数を
Figure 2019186918
とすると、各出力値は以下のように表すことができる。 The output value of the feature detection neuron at the position (ξ, ζ) in the Mth cell plane of the Sth layer of the Lth layer shown in FIG.
Figure 2019186918
Is written. Also, the output value of the feature integration neuron at the position (ξ, ζ) in the Mth cell plane of the Cth layer of the Lth layer
Figure 2019186918
Is written. At that time, the coupling coefficient of each neuron
Figure 2019186918
Then, each output value can be expressed as follows.

[数式1]

Figure 2019186918
[数式2]
Figure 2019186918
ここで、数式1におけるfは活性化関数であり、例えばロジスティック関数や双曲正接関数などのシグモイド関数である。また、
Figure 2019186918
は、L階層目のS層のM番目の細胞面における、位置(ξ, ζ)の特徴検出ニューロンの内部状態を表す。数式2は活性化関数を用いておらず、単純な線形和で表されている。 [Formula 1]
Figure 2019186918
[Formula 2]
Figure 2019186918
Here, f in Formula 1 is an activation function, for example, a sigmoid function such as a logistic function or a hyperbolic tangent function. Also,
Figure 2019186918
Represents the internal state of the feature detection neuron at position (ξ, ζ) on the Mth cell surface of the Sth layer of the Lth layer. Equation 2 does not use an activation function and is represented by a simple linear sum.

数式2のように活性化関数を用いない場合、ニューロンの内部状態

Figure 2019186918
と出力値
Figure 2019186918
とは等しい。また、数式1の
Figure 2019186918
を特徴検出ニューロンの結合先出力値と呼び、数式2の
Figure 2019186918
を特徴統合ニューロンの結合先出力値と呼ぶ。 When the activation function is not used as in Equation 2, the internal state of the neuron
Figure 2019186918
And output value
Figure 2019186918
Is equal to In addition, Formula 1
Figure 2019186918
Is called the connection destination output value of the feature detection neuron.
Figure 2019186918
Is called the connection destination output value of the feature integration neuron.

ここで、数式1及び数式2におけるξ,ζ,u,v,nについて説明する。位置(ξ, ζ)は入力画像における位置座標に対応しており、例えば出力値

Figure 2019186918
が大きい場合、入力画像の画素位置(ξ, ζ)に、L階層目のS層のM番目の細胞面が検出する特徴が存在する可能性が高いことを意味する。またnは数式1において、L−1階層目のC層のn番目の細胞面を意味しており、統合先特徴番号と呼ぶ。基本的にL−1階層目のC層に存在する全ての細胞面について積和演算を行う。(u, v)は、結合係数の相対位置座標であり、検出する特徴のサイズに応じて有限の範囲(u, v)において積和演算を行う。このような有限な(u, v)の範囲を受容野と呼ぶ。また受容野の大きさを、以下では受容野サイズと呼び、結合している範囲の横画素数×縦画素数で表す。 Here, ξ, ζ, u, v, and n in Equations 1 and 2 will be described. The position (ξ, ζ) corresponds to the position coordinate in the input image.
Figure 2019186918
Is large, it means that there is a high possibility that the feature detected by the Mth cell surface of the Sth layer of the Lth layer exists at the pixel position (ξ, ζ) of the input image. Moreover, n means the nth cell surface of the C layer of the (L-1) th layer in Formula 1, and is called the integration destination feature number. Basically, the product-sum operation is performed on all the cell planes existing in the C layer of the (L-1) th layer. (U, v) is a relative position coordinate of the coupling coefficient, and a product-sum operation is performed in a finite range (u, v) according to the size of the feature to be detected. Such a finite range (u, v) is called a receptive field. The size of the receptive field is hereinafter referred to as a receptive field size, and is represented by the number of horizontal pixels × the number of vertical pixels in the combined range.

また数式1において、L=1つまり最初の階層のS層では、数式1中の

Figure 2019186918
は、入力画像
Figure 2019186918
である。ちなみにニューロンや画素の分布は離散的であり、結合先特徴番号も離散的なので、ξ,ζ,u,v,nは離散的な値をとる。ここでは、ξ,ζは非負整数、nは自然数、u,vは整数とし、何れも有限な範囲を有する。 In Equation 1, L = 1, that is, in the S layer of the first hierarchy,
Figure 2019186918
The input image
Figure 2019186918
It is. Incidentally, since the distribution of neurons and pixels is discrete and the connection feature number is also discrete, ξ, ζ, u, v, and n take discrete values. Here, ξ and ζ are non-negative integers, n is a natural number, u and v are integers, and both have a finite range.

数式1中の

Figure 2019186918
は、所定の特徴を検出するための結合係数であり、結合係数を適切な値に調整することによって、所定の特徴を検出可能になる。この結合係数の調整が学習であり、CNNの構築においては、さまざまなテストパターンを用いて、
Figure 2019186918
が適切な出力値になるように、結合係数を繰り返し徐々に修正していくことで結合係数を調整する。 In Equation 1
Figure 2019186918
Is a coupling coefficient for detecting a predetermined feature, and the predetermined feature can be detected by adjusting the coupling coefficient to an appropriate value. Adjustment of this coupling coefficient is learning, and in the construction of CNN, using various test patterns,
Figure 2019186918
The coupling coefficient is adjusted by repeatedly and gradually correcting the coupling coefficient so that becomes an appropriate output value.

次に、数式2中の

Figure 2019186918
は、2次元のガウシアン関数を用いており、以下の数式3のように表すことができる。
[数式3]
Figure 2019186918
ここでも、(u,v)は有限の範囲を有し、特徴検出ニューロンの場合と同様、範囲を受容野、範囲の大きさを受容野サイズと呼ぶ。ここではL階層目のS層のM番目の特徴のサイズに従って、受容野サイズの値を適宜設定することができる。数式3中のσは特徴サイズ因子であり、受容野サイズに応じて適宜定めることができる定数であってよい。例えば、受容野の一番外側の値がほぼ0とみなせるような値になるように特徴サイズ因子σを設定することができる。このように、本実施形態の被写体検出回路204は、上述した演算を各階層で行い、最終階層(n階層目)のS層において被写体検出を行うCNNによって構成される。 Next, in Equation 2
Figure 2019186918
Uses a two-dimensional Gaussian function and can be expressed as Equation 3 below.
[Formula 3]
Figure 2019186918
Again, (u, v) has a finite range, and the range is called the receptive field and the size of the range is called the receptive field size, as in the case of the feature detection neuron. Here, the value of the receptive field size can be appropriately set according to the size of the Mth feature of the Sth layer of the Lth layer. Σ in Equation 3 is a feature size factor, and may be a constant that can be appropriately determined according to the receptive field size. For example, the feature size factor σ can be set so that the outermost value of the receptive field becomes a value that can be regarded as almost zero. As described above, the subject detection circuit 204 of the present embodiment is configured by a CNN that performs the above-described calculation in each layer and performs subject detection in the S layer of the final layer (nth layer).

(被写体検出の学習方法)
結合係数

Figure 2019186918
の具体的な調整(学習)方法について説明する。学習は、CNNに特定の入力画像(テストパターン)を与えて得られるニューロンの出力値と、教師信号(そのニューロンが出力すべき出力値)との関係に基づいて、結合係数
Figure 2019186918
を修正することである。本実施形態の学習では、最終階層(n階層目)の特徴検出層Sについては最小二乗法を用いて結合係数を修正する。また、他の階層(1〜n−1階層目)の特徴検出層Sについては、誤差逆伝搬法を用いて結合係数を修正する。最小二乗法や誤差逆伝搬法を用いた結合係数の修正手法は例えば非特許文献1に記載されるような公知技術を用いることができるため、詳細についての説明は省略する。 (Subject detection learning method)
Coupling factor
Figure 2019186918
A specific adjustment (learning) method will be described. Learning is based on the relationship between the output value of a neuron obtained by giving a specific input image (test pattern) to the CNN and the teacher signal (the output value that the neuron should output).
Figure 2019186918
Is to fix. In the learning of the present embodiment, for the feature detection layer S of the last layer (nth layer), the coupling coefficient is corrected using the least square method. For the feature detection layer S of the other layers (1st to (n-1) th layers), the coupling coefficient is corrected using the error back propagation method. Since a known technique as described in Non-Patent Document 1, for example, can be used as the coupling coefficient correction method using the least square method or the error back propagation method, a detailed description thereof will be omitted.

検出すべきパターンと、検出すべきでないパターンとを、学習用のテストパターンとして多数用意する。各テストパターンは、画像データと、対応する教師信号とを有する。検出すべきパターンに該当する画像データについては、最終階層の特徴検出細胞面において、検出対象のパターンが存在する領域に対応するニューロンの出力が1となるような教師信号とする。一方、検出すべきでないパターンに該当する画像データについては、検出すべきでないパターンが存在する領域に対応するニューロンの出力が−1となるような教師信号を与える。   A large number of patterns to be detected and patterns that should not be detected are prepared as test patterns for learning. Each test pattern has image data and a corresponding teacher signal. The image data corresponding to the pattern to be detected is a teacher signal such that the output of the neuron corresponding to the area where the pattern to be detected exists is 1 on the feature detection cell surface in the final hierarchy. On the other hand, for image data corresponding to a pattern that should not be detected, a teacher signal is given so that the output of the neuron corresponding to the region where the pattern that should not be detected exists is -1.

本実施形態では、測光センサー108で得られる画像信号に基づく画像データを用いたテストパターンによる学習により、測光センサー用の学習モデル206を用意する。また、撮像素子111で得られる画像信号に基づく画像データを用いたテストパターンによる学習により、撮像素子用の学習モデル207を用意する。このように、測光センサー108で得られる画像信号での学習と、撮像素子111で得られる画像信号での学習とを別個に行うことで、光路、素子、画像処理などの差異が反映された、個々の撮像素子の画像信号に適した学習モデルを生成できる。   In the present embodiment, a learning model 206 for the photometric sensor is prepared by learning with a test pattern using image data based on the image signal obtained by the photometric sensor 108. Further, a learning model 207 for the image sensor is prepared by learning with a test pattern using image data based on the image signal obtained by the image sensor 111. In this way, by separately performing learning with the image signal obtained by the photometric sensor 108 and learning with the image signal obtained by the image sensor 111, differences in optical path, element, image processing, etc. were reflected. A learning model suitable for the image signal of each image sensor can be generated.

なお、撮像素子111用の学習モデルを生成するための画像データは、静止画撮影処理や動画撮影処理を実行することにより容易に取得することができる一方、測光センサー108用の学習モデルを生成するための画像データの取得は必ずしも容易でない。これは、測光センサー108で得られる画像データは画像記憶用メモリ202に記憶されないからである。   Note that image data for generating a learning model for the image sensor 111 can be easily obtained by executing a still image shooting process or a moving image shooting process, while generating a learning model for the photometric sensor 108. Therefore, it is not always easy to obtain image data. This is because the image data obtained by the photometric sensor 108 is not stored in the image storage memory 202.

そのため、撮像素子111で得られる画像信号から、測光センサー108で得られた画像信号に基づく画像データに相当する画像データを生成してもよい。例えば、同一の被写体を撮像素子111と測光センサー108で撮影して生成した画像データに基づいて、画像データに反映されている光路、素子、画像処理などの差異を検出する。そして、システム制御回路201が、検出した差異に相当する補正を撮像素子111で得られる画像信号に基づく画像データに適用することで、測光センサー108で得られた画像信号に基づく画像データに相当する画像データを生成することができる。補正方法に制限は無いが、例えば、鮮鋭度の差はローパスフィルタの適用やコントラスト補正によって実現し、色味の差はルックアップテーブルの適用による色変換によって実現することができる。これらの、補正に必要な情報は、例えばROM2011に記憶しておくことができる。これにより、撮像素子111用の学習モデルを生成するための画像データと同様にして、測光センサー108用の学習モデルを生成するための画像データを取得することができる。なお、学習モデルの生成は他の装置で行うことも可能である。   Therefore, image data corresponding to image data based on the image signal obtained by the photometric sensor 108 may be generated from the image signal obtained by the image sensor 111. For example, based on image data generated by photographing the same subject with the image sensor 111 and the photometric sensor 108, differences in optical paths, elements, image processing, etc. reflected in the image data are detected. The system control circuit 201 applies the correction corresponding to the detected difference to the image data based on the image signal obtained by the image sensor 111, thereby corresponding to the image data based on the image signal obtained by the photometric sensor 108. Image data can be generated. The correction method is not limited. For example, the sharpness difference can be realized by applying a low-pass filter or contrast correction, and the color difference can be realized by color conversion by applying a lookup table. These pieces of information necessary for correction can be stored in the ROM 2011, for example. Thereby, the image data for generating the learning model for the photometric sensor 108 can be acquired in the same manner as the image data for generating the learning model for the image sensor 111. It should be noted that the learning model can be generated by another device.

以上説明したように、本実施形態によれば、異なる撮像素子で得られる画像信号に対して被写体検出を行いうる装置において、画像の特性に応じた被写体検出用のパラメータを用いることにより、被写体検出精度を向上させることができる。   As described above, according to the present embodiment, in an apparatus that can perform subject detection on image signals obtained by different image sensors, subject detection is performed by using a subject detection parameter in accordance with image characteristics. Accuracy can be improved.

(その他の実施形態)
上述した実施形態では、1つの撮像装置が光学経路の異なる2つの撮像素子(測光センサー108と撮像素子111)を有する場合に、被写体検出時に使用している撮像素子ごとに被写体検出用の学習モデルを切替える構成を例示した。しかし、本発明の本質は、被写体検出を行う画像信号または画像データに反映されている撮影光学系(光路やレンズの収差など)、撮像素子、信号処理などの特性を考慮した被写体検出処理用のパラメータを用いることにある。したがって、1つの撮像素子を有する撮像装置において、撮影に用いられる撮影レンズに応じて異なる被写体検出用のパラメータを用いる構成や、撮像装置に応じて異なる被写体検出用のパラメータを用いる構成も本発明に含まれる。
(Other embodiments)
In the above-described embodiment, when one image pickup apparatus has two image pickup elements (photometric sensor 108 and image pickup element 111) having different optical paths, a learning model for subject detection is used for each image pickup element used at the time of subject detection. An example of a configuration for switching is shown. However, the essence of the present invention is that for object detection processing that takes into account the characteristics of an imaging optical system (such as optical path and lens aberration) reflected in an image signal or image data for subject detection, an image sensor, and signal processing. It is to use parameters. Therefore, in an imaging apparatus having one imaging element, a configuration using different subject detection parameters depending on a shooting lens used for shooting and a configuration using different subject detection parameters depending on the imaging device are also included in the present invention. included.

例えば、RGBイメージセンサーと赤外センサーといった、受光感度の異なる複数の撮像素子を備えたスマートフォンやタブレット端末が存在する。あるいは、標準、広角、および、望遠といった光学倍率の異なる複数の撮像光学系を備えたスマートフォンやタブレット端末が存在する。これらのスマートフォンやタブレット端末においても、本発明を適用することができる。   For example, there are smartphones and tablet terminals that include a plurality of image sensors with different light receiving sensitivities, such as RGB image sensors and infrared sensors. Alternatively, there are smartphones and tablet terminals that include a plurality of imaging optical systems with different optical magnifications such as standard, wide-angle, and telephoto. The present invention can also be applied to these smartphones and tablet terminals.

また、スマートフォンやタブレット端末が、撮影光学系、撮像素子、あるいは、信号処理などの特性を考慮した被写体検出処理用の学習モデルを、無線通信あるいは有線通信を介して、ネットワーク上からダウンロードやアップデートする構成としてもよい。このとき、スマートフォンやタブレット端末は、同一の被写体に対して、撮影光学系、撮像素子、あるいは、信号処理などに基づく画像の特性ごとに、複数の学習モデルを入手することとなる。   A smartphone or tablet terminal downloads or updates a learning model for subject detection processing that takes into account characteristics such as the imaging optical system, imaging device, or signal processing from the network via wireless communication or wired communication. It is good also as a structure. At this time, the smartphone or tablet terminal obtains a plurality of learning models for the same subject for each characteristic of the image based on the photographing optical system, the image sensor, or signal processing.

あるいは、サーバやエッジコンピュータが被写体検出回路と、画像の特性を考慮した複数の被写体検出処理用の学習モデルを備えるように構成してもよい。サーバやエッジコンピュータが、撮像装置やスマートフォンなどから送信された画像を受信し、受信した画像の特性に応じた学習モデルを選択して被写体検出処理を行い、検出結果を、画像を送信してきた撮像装置やスマートフォンに送信するようにしてもよい。   Alternatively, the server or the edge computer may be configured to include a subject detection circuit and a plurality of learning models for subject detection processing in consideration of image characteristics. A server or edge computer receives an image transmitted from an imaging device, a smartphone, etc., selects a learning model according to the characteristics of the received image, performs subject detection processing, and captures the detection result as the image transmitted You may make it transmit to an apparatus or a smart phone.

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

上述の実施形態は本発明の理解を助けることを目的とした具体例に過ぎず、いかなる意味においても本発明を上述の実施形態に限定する意図はない。特許請求の範囲に規定される範囲に含まれる全ての実施形態は本発明に包含される。   The above-described embodiments are merely specific examples for the purpose of assisting understanding of the present invention, and are not intended to limit the present invention to the above-described embodiments in any way. All embodiments that fall within the scope of the claims are encompassed by the present invention.

100…デジタル一眼レフカメラ、101…本体、102…ンズ、108…測光センサー、111…撮像素子、204…被写体検出回路、206…測光センサー用の学習モデル、207…撮像素子用の学習モデル DESCRIPTION OF SYMBOLS 100 ... Digital single-lens reflex camera, 101 ... Main body, 102 ... Sensor, 108 ... Photometric sensor, 111 ... Image sensor, 204 ... Subject detection circuit, 206 ... Learning model for photometric sensor, 207 ... Learning model for image sensor

Claims (19)

機械学習に基づいて生成されたパラメータを用いて、画像に対して被写体検出処理を適用する被写体検出手段と、
前記被写体検出処理に用いるパラメータを複数記憶する記憶手段と、
前記記憶手段が記憶するパラメータから、被写体検出処理を適用する画像の特性に応じて、前記被写体検出手段で用いるパラメータを選択する選択手段と、
を有することを特徴とする画像処理装置。
Subject detection means for applying subject detection processing to an image using parameters generated based on machine learning;
Storage means for storing a plurality of parameters used for the subject detection processing;
Selection means for selecting parameters used by the subject detection means from parameters stored in the storage means according to the characteristics of the image to which subject detection processing is applied;
An image processing apparatus comprising:
前記選択手段は、前記画像を生成した撮像素子に応じて前記被写体検出手段で用いる学習モデルを選択することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the selection unit selects a learning model to be used by the subject detection unit according to an imaging element that has generated the image. 第1の撮像素子で生成された画像に対して前記被写体検出処理を適用するときに用いられる第1の学習モデルは、前記第1の撮像素子に対応する画像を用いて機械学習が行われた学習モデルであり、
第2の撮像素子で生成された画像に対して前記被写体検出処理を適用するときに用いられる第2の学習モデルは、前記第2の撮像素子に対応する画像を用いた機械学習が行われた学習モデルであることを特徴とする請求項2に記載の画像処理装置。
The first learning model used when the subject detection processing is applied to the image generated by the first image sensor is machine-learned using an image corresponding to the first image sensor. Learning model,
The second learning model used when the subject detection processing is applied to the image generated by the second image sensor is machine-learned using an image corresponding to the second image sensor. The image processing apparatus according to claim 2, wherein the image processing apparatus is a learning model.
前記第1の学習モデルは、前記第1の撮像素子で生成された画像を用いて機械学習が行われた学習モデルであり、
前記第2の学習モデルは、前記第2の撮像素子で生成された画像を用いて機械学習が行われた学習モデルであることを特徴とする請求項3に記載の画像処理装置。
The first learning model is a learning model in which machine learning is performed using an image generated by the first image sensor,
The image processing apparatus according to claim 3, wherein the second learning model is a learning model in which machine learning is performed using an image generated by the second image sensor.
前記第1の学習モデルは、前記第1の撮像素子で生成された画像を用いて機械学習が行われた学習モデルであり、
前記第2の学習モデルは、前記第1の撮像素子で生成された画像を補正した画像を用いて機械学習が行われた学習モデルであることを特徴とする請求項3に記載の画像処理装置。
The first learning model is a learning model in which machine learning is performed using an image generated by the first image sensor,
The image processing apparatus according to claim 3, wherein the second learning model is a learning model in which machine learning is performed using an image obtained by correcting an image generated by the first image sensor. .
前記選択手段は、前記画像の撮影に用いられた光学系に応じて前記被写体検出手段で用いるパラメータを選択することを特徴とする請求項1に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the selection unit selects a parameter to be used by the subject detection unit in accordance with an optical system used for capturing the image. 第1の光学系を用いて撮影された画像に対して前記被写体検出処理を適用するときに用いられる第1の学習モデルは、前記第1の光学系に対応する画像を用いて機械学習が行われた学習モデルであり、
第2の光学系を用いて撮影された画像に対して前記被写体検出処理を適用するときに用いられる第2の学習モデルは、前記第2の光学系に対応する画像を用いた機械学習が行われた学習モデルであることを特徴とする請求項6に記載の画像処理装置。
A first learning model used when applying the subject detection process to an image photographed using the first optical system performs machine learning using an image corresponding to the first optical system. Learning model,
The second learning model used when the subject detection process is applied to an image photographed using the second optical system performs machine learning using an image corresponding to the second optical system. The image processing apparatus according to claim 6, wherein the learning model is a broken learning model.
前記第1の学習モデルは、前記第1の光学系を用いて撮影された画像を用いて機械学習が行われた学習モデルであり、
前記第2の学習モデルは、前記第2の光学系を用いて撮影された画像を用いて機械学習が行われた学習モデルであることを特徴とする請求項7に記載の画像処理装置。
The first learning model is a learning model in which machine learning is performed using an image photographed using the first optical system,
The image processing apparatus according to claim 7, wherein the second learning model is a learning model in which machine learning is performed using an image photographed using the second optical system.
前記第1の学習モデルは、前記第1の光学系を用いて撮影された画像を用いて機械学習が行われた学習モデルであり、
前記第2の学習モデルは、前記第1の光学系を用いて撮影された画像を補正した画像を用いて機械学習が行われた学習モデルであることを特徴とする請求項7に記載の画像処理装置。
The first learning model is a learning model in which machine learning is performed using an image photographed using the first optical system,
The image according to claim 7, wherein the second learning model is a learning model in which machine learning is performed using an image obtained by correcting an image photographed using the first optical system. Processing equipment.
前記記憶手段から、ネットワークを介して、前記被写体検出手段で用いる学習モデルを取得する通信手段をさらに有することを特徴とする請求項1から9のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, further comprising a communication unit that acquires a learning model used by the subject detection unit from the storage unit via a network. 前記機械学習が、コンボリューショナル・ニューラル・ネットワーク(CNN)を用いることを特徴とする請求項1から10のいずれか1項に記載の画像処理装置。   The image processing apparatus according to claim 1, wherein the machine learning uses a convolutional neural network (CNN). 第1の撮像素子と、
第2の撮像素子と、
請求項1から11のいずれか1項に記載の画像処理装置と、を有する撮像装置であって、
前記選択手段は、撮影モードに応じて前記被写体検出手段で用いる学習モデルを選択することを特徴とする撮像装置。
A first image sensor;
A second imaging device;
An image processing apparatus comprising: the image processing apparatus according to any one of claims 1 to 11,
The imaging apparatus according to claim 1, wherein the selection unit selects a learning model to be used by the subject detection unit according to a shooting mode.
前記撮影モードが動画撮影モードまたは静止画撮影モードのいずれかであることを特徴とする請求項12に記載の撮像装置。   The imaging apparatus according to claim 12, wherein the shooting mode is either a moving image shooting mode or a still image shooting mode. 前記撮影モードが、前記第1の撮像素子を用い、前記第2の撮像素子を用いない撮影モードと、前記第2の撮像素子を用い、前記第1の撮像素子を用いない撮影モードとのいずれかであることを特徴とする請求項12または13に記載の撮像装置。   The shooting mode is any of a shooting mode using the first image sensor and not using the second image sensor, and a shooting mode using the second image sensor and not using the first image sensor. The imaging apparatus according to claim 12 or 13, wherein 前記第1の撮像素子を用い、前記第2の撮像素子を用いない撮影モードが、光学ファインダーを使用中の撮影モードであり、
前記第2の撮像素子を用い、前記第1の撮像素子を用いない撮影モードが、光学ファインダーを使用しない撮影モードである、
ことを特徴とする請求項14に記載の撮像装置。
The shooting mode using the first image sensor and not using the second image sensor is a shooting mode using the optical viewfinder,
The shooting mode that uses the second image sensor and does not use the first image sensor is a shooting mode that does not use an optical viewfinder.
The imaging apparatus according to claim 14.
前記第1の撮像素子が、露出制御用の画像を取得するための撮像素子であることを特徴とする請求項12から15のいずれか1項に記載の撮像装置。   The image pickup apparatus according to claim 12, wherein the first image pickup element is an image pickup element for acquiring an image for exposure control. 画像処理装置が実行する画像処理方法であって、
機械学習に基づいて生成された学習モデルを用いて、画像に対して被写体検出処理を適用する被写体検出工程と、
前記被写体検出処理に用いる学習モデルを複数記憶する記憶手段から、被写体検出処理を適用する画像の特性に応じて、前記被写体検出工程で用いる学習モデルを選択する選択工程と、
を有することを特徴とする画像処理方法。
An image processing method executed by an image processing apparatus,
A subject detection step of applying subject detection processing to an image using a learning model generated based on machine learning;
A selection step of selecting a learning model to be used in the subject detection step from storage means for storing a plurality of learning models to be used for the subject detection processing, according to the characteristics of the image to which the subject detection processing is applied;
An image processing method comprising:
コンピュータを、請求項1から11のいずれか1項に記載の画像処理装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the image processing apparatus of any one of Claim 1 to 11. 撮像装置が有するコンピュータを、請求項12から16のいずれか1項に記載の撮像装置が有する画像処理装置として機能させるためのプログラム。   The program for functioning the computer which an imaging device has as an image processing apparatus which the imaging device of any one of Claim 12 to 16.
JP2019055199A 2018-04-10 2019-03-22 Image processing device and image processing method, and imaging device Active JP6818798B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/373,824 US10896350B2 (en) 2018-04-10 2019-04-03 Image processing apparatus, image processing method, and image capture apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2018075616 2018-04-10
JP2018075616 2018-04-10

Publications (2)

Publication Number Publication Date
JP2019186918A true JP2019186918A (en) 2019-10-24
JP6818798B2 JP6818798B2 (en) 2021-01-20

Family

ID=68337745

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2019055199A Active JP6818798B2 (en) 2018-04-10 2019-03-22 Image processing device and image processing method, and imaging device

Country Status (1)

Country Link
JP (1) JP6818798B2 (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160122A (en) * 2005-03-04 2005-06-16 Canon Inc Image pickup apparatus and computer-readable storage medium
JP2008204384A (en) * 2007-02-22 2008-09-04 Canon Inc Image pickup device, object detection method and posture parameter calculation method
JP2012068965A (en) * 2010-09-24 2012-04-05 Denso Corp Image recognition device
JP2014041427A (en) * 2012-08-21 2014-03-06 Toyota Central R&D Labs Inc Object detection device and program
JP2015035704A (en) * 2013-08-08 2015-02-19 株式会社東芝 Detector, detection method and detection program
JP2015165377A (en) * 2014-02-07 2015-09-17 株式会社フジクラ input device

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005160122A (en) * 2005-03-04 2005-06-16 Canon Inc Image pickup apparatus and computer-readable storage medium
JP2008204384A (en) * 2007-02-22 2008-09-04 Canon Inc Image pickup device, object detection method and posture parameter calculation method
JP2012068965A (en) * 2010-09-24 2012-04-05 Denso Corp Image recognition device
JP2014041427A (en) * 2012-08-21 2014-03-06 Toyota Central R&D Labs Inc Object detection device and program
JP2015035704A (en) * 2013-08-08 2015-02-19 株式会社東芝 Detector, detection method and detection program
JP2015165377A (en) * 2014-02-07 2015-09-17 株式会社フジクラ input device

Also Published As

Publication number Publication date
JP6818798B2 (en) 2021-01-20

Similar Documents

Publication Publication Date Title
JP6931369B2 (en) Image processing device and image processing method, and imaging device
JP6512810B2 (en) Image pickup apparatus, control method and program
CN102457681B (en) Image processing apparatus and image processing method
US8098322B2 (en) Image pickup device and image pickup apparatus
JP6405243B2 (en) Focus detection apparatus and control method thereof
JP5676988B2 (en) Focus adjustment device
US10187564B2 (en) Focus adjustment apparatus, imaging apparatus, focus adjustment method, and recording medium storing a focus adjustment program thereon
JP2020095069A (en) Imaging device
JP2011217103A (en) Compound eye photographing method and apparatus
JP2000196953A (en) Camera system
JP6812387B2 (en) Image processing equipment and image processing methods, programs, storage media
US10896350B2 (en) Image processing apparatus, image processing method, and image capture apparatus
JP2020107956A (en) Imaging apparatus, imaging method, and program
JP6960755B2 (en) Imaging device and its control method, program, storage medium
JP2017044821A (en) Image-capturing device and control method therefor, program, and storage medium
JP2009058762A (en) Imaging apparatus
JP6818798B2 (en) Image processing device and image processing method, and imaging device
JP5930683B2 (en) Imaging apparatus, control method thereof, and program
JP2016142924A (en) Imaging apparatus, method of controlling the same, program, and storage medium
JP2014194502A (en) Imaging apparatus and imaging system
JP2016099432A (en) Focus detection device, and method, program and storage medium
JP2015152723A (en) Imaging device and imaging program
JP2020095071A (en) Interchangeable lens and image capturing device
JP2020095070A (en) Image capturing device
JP6934059B2 (en) Imaging device

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190415

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200226

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200403

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200601

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: 20201130

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20201228

R151 Written notification of patent or utility model registration

Ref document number: 6818798

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151