JP2015097322A - Imaging apparatus, control method of the same, program, and storage medium - Google Patents

Imaging apparatus, control method of the same, program, and storage medium Download PDF

Info

Publication number
JP2015097322A
JP2015097322A JP2013236753A JP2013236753A JP2015097322A JP 2015097322 A JP2015097322 A JP 2015097322A JP 2013236753 A JP2013236753 A JP 2013236753A JP 2013236753 A JP2013236753 A JP 2013236753A JP 2015097322 A JP2015097322 A JP 2015097322A
Authority
JP
Japan
Prior art keywords
subject
composition
image processing
trimming
image
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
JP2013236753A
Other languages
Japanese (ja)
Inventor
謙治 大内
Kenji Ouchi
謙治 大内
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 JP2013236753A priority Critical patent/JP2015097322A/en
Publication of JP2015097322A publication Critical patent/JP2015097322A/en
Pending legal-status Critical Current

Links

Abstract

PROBLEM TO BE SOLVED: To provide an image processing device capable of easily obtaining an image of a suitable composition by automatic trimming with the orientation of each subject considered therein.SOLUTION: The image processing device comprises: trimming means to cut out a part of an image obtained by imaging; composition setting means for setting a composition for trimming by the trimming means; subject detection means capable of detecting plural subjects from the image; and subject orientation determination means for determining the facing orientation of each of the subjects detected by the subject detection means. The composition setting means sets the composition on the basis of the result determined by the subject orientation determination means.

Description

本発明は、画像データに対するトリミング制御技術に関する。   The present invention relates to a trimming control technique for image data.

従来、デジタルカメラ等の撮像装置で撮影するとき、撮影者は構図を意識して撮影を行なうが、瞬時に被写体やシーンを判断して好適な構図を決定することは特に撮影初心者には難しく、多くの人から共感を得られるような好ましい構図を瞬時に決定するには熟練を要する。そこで、好適な構図となるように、画像中の顔の位置と向きに応じて自動でトリミングを行なう技術がある(特許文献1参照)。しかし、この手法によれば、顔の向きを考慮してはいるが、離れた被写体がいた場合には有効とは言えない。   Conventionally, when taking a picture with an imaging device such as a digital camera, the photographer shoots with an awareness of the composition, but it is particularly difficult for beginners of photography to determine a suitable composition by instantly judging the subject and scene, It takes skill to instantly determine a desirable composition that can be sympathized with many people. Therefore, there is a technique for automatically trimming according to the position and orientation of the face in the image so as to obtain a suitable composition (see Patent Document 1). However, according to this method, although the orientation of the face is taken into consideration, it is not effective when there is a distant subject.

また、主要被写体と副被写体の関係度に応じてトリミングを行なう手法も提案されている(特許文献2参照)。ただし、この手法では、主要被写体と副被写体の関係の強さである関係度を算出して用いるため副被写体が存在しない場合は有効ではない。   In addition, a technique of performing trimming according to the degree of relationship between the main subject and the sub-subject has been proposed (see Patent Document 2). However, since this method calculates and uses the degree of relationship that is the strength of the relationship between the main subject and the sub-subject, it is not effective when there is no sub-subject.

特許第4869270号明細書Japanese Patent No. 4869270 特許第5084696号明細書Japanese Patent No. 5084696

そこで本発明は、上記課題に鑑みてなされ、その目的は、撮影シーンの状況や雰囲気が構図内に残るようなトリミングを自動で行えるようにすることで、ユーザの作業負担を増やすことなく、ユーザに好適な印象を与えるトリミング技術を実現することである。   Therefore, the present invention has been made in view of the above problems, and its purpose is to automatically perform trimming so that the situation and atmosphere of the shooting scene remain in the composition without increasing the user's work load. It is to realize a trimming technique that gives a suitable impression.

上記課題を解決し、目的を達成するために、本発明の撮像装置は、撮像して得られた画像の一部を切り出すトリミング手段と、前記トリミング手段でトリミングするための構図を設定する構図設定手段と、前記画像から複数の被写体を検出することが可能な被写体検出手段と、前記被写体検出手段で検出したそれぞれの被写体が向いている方向を判定する被写体向き判定手段と、を備え、前記構図設定手段は、前記被写体向き判定手段で判定した結果に基づいて構図を設定するように制御する。   In order to solve the above problems and achieve the object, an imaging apparatus according to the present invention includes a trimming unit that cuts out a part of an image obtained by imaging, and a composition setting that sets a composition for trimming by the trimming unit. Means, a subject detection means capable of detecting a plurality of subjects from the image, and a subject orientation determination means for judging a direction in which each subject detected by the subject detection means faces. The setting means controls to set the composition based on the result determined by the subject orientation determination means.

本発明によれば、被写体それぞれの向きを考慮したトリミングを自動で行なうことで、好適な構図の画像を容易に得ることができる。   According to the present invention, an image having a suitable composition can be easily obtained by automatically performing trimming in consideration of the direction of each subject.

本実施形態に係る撮像装置の構成を示すブロック図である。It is a block diagram which shows the structure of the imaging device which concerns on this embodiment. 本実施形態の撮像装置による画像撮影動作を示すフローチャートである。It is a flowchart which shows the image imaging operation | movement by the imaging device of this embodiment. 本実施形態の撮像装置による構図設定処理動作を示すフローチャートである。It is a flowchart which shows the composition setting process operation by the imaging device of this embodiment. 本実施形態の撮像装置による構図設定処理の具体例を説明するための図(1)である。It is a figure (1) for demonstrating the specific example of the composition setting process by the imaging device of this embodiment. 本実施形態の撮像装置による構図設定処理の具体例を説明するための図(2)である。It is FIG. (2) for demonstrating the specific example of the composition setting process by the imaging device of this embodiment. 三分割法を説明するための図である。It is a figure for demonstrating the three division method. 本実施形態の撮像装置によるアスペクト類似度とアスペクト評価値の関係を示す図である。It is a figure which shows the relationship between the aspect similarity and aspect evaluation value by the imaging device of this embodiment. 本実施形態の撮像装置によるサイズ比と画素数評価値の関係を示す図である。It is a figure which shows the relationship between the size ratio by the imaging device of this embodiment, and a pixel number evaluation value. 本実施形態の撮像装置による空間サイズ比と空間サイズ評価値の関係を示す図である。It is a figure which shows the relationship between the space size ratio and space size evaluation value by the imaging device of this embodiment.

以下に、本発明を実施するための形態について詳細に説明する。尚、以下に説明する実施の形態は、本発明を実現するための一例であり、本発明が適用される装置の構成や各種条件によって適宜修正又は変更されるべきものであり、本発明は以下の実施の形態に限定されるものではない。また、後述する各実施形態の一部を適宜組み合わせて構成しても良い。   Hereinafter, embodiments for carrying out the present invention will be described in detail. The embodiment described below is an example for realizing the present invention, and should be appropriately modified or changed according to the configuration and various conditions of the apparatus to which the present invention is applied. It is not limited to the embodiment. Moreover, you may comprise combining suitably one part of each embodiment mentioned later.

<装置構成>
まず、図1を参照して、本実施形態の撮像装置の主要な構成について説明する。
<Device configuration>
First, the main configuration of the imaging apparatus according to the present embodiment will be described with reference to FIG.

図1において、100は画像処理装置である。10は撮影レンズである。12は絞り機能を備えるシャッターである。14は被写体の光学像を電気信号に変換する撮像素子である。16はA/D変換器であり、撮像素子14のアナログ信号出力をデジタル信号に変換する。   In FIG. 1, reference numeral 100 denotes an image processing apparatus. Reference numeral 10 denotes a photographing lens. Reference numeral 12 denotes a shutter having an aperture function. An image sensor 14 converts an optical image of a subject into an electric signal. Reference numeral 16 denotes an A / D converter that converts an analog signal output from the image sensor 14 into a digital signal.

18はタイミング発生回路であり、撮像素子14、A/D変換器16、D/A変換器26にクロック信号や制御信号を供給するもので、メモリ制御回路22及びシステム制御回路50により制御される。20は画像処理回路であり、A/D変換器16からのデータ或いはメモリ制御回路22からのデータに対して所定の画素補間処理や色変換処理を行う。また、画像処理回路20では、撮像により生成された画像データを用いて所定の演算処理を行って、その演算結果をシステム制御回路50に供給する。   A timing generation circuit 18 supplies a clock signal and a control signal to the image sensor 14, the A / D converter 16, and the D / A converter 26, and is controlled by the memory control circuit 22 and the system control circuit 50. . An image processing circuit 20 performs predetermined pixel interpolation processing and color conversion processing on the data from the A / D converter 16 or the data from the memory control circuit 22. Further, the image processing circuit 20 performs predetermined calculation processing using image data generated by imaging, and supplies the calculation result to the system control circuit 50.

システム制御回路50は、その演算結果に基づいて、露光制御部40、測距制御部42を制御して、TTL(スルー・ザ・レンズ)方式のAF(オートフォーカス)処理、AE(自動露出)処理、EF(フラッシュプリ発光)処理を実現する。さらに、画像処理回路20では、撮像により生成された画像データを用いてTTL方式のAWB(オートホワイトバランス)処理も行う。   Based on the calculation result, the system control circuit 50 controls the exposure control unit 40 and the distance measurement control unit 42 to perform TTL (through-the-lens) AF (autofocus) processing, AE (automatic exposure). Processing, EF (flash pre-emission) processing is realized. Further, the image processing circuit 20 also performs TTL AWB (auto white balance) processing using image data generated by imaging.

22はメモリ制御回路であり、A/D変換器16、タイミング発生回路18、画像処理回路20、画像表示メモリ24、D/A変換器26、メモリ30、圧縮・伸長回路32を制御する。A/D変換器16から出力されるデータは、画像処理回路20を介してメモリ制御回路22に供給され、或いは直接メモリ制御回路22に供給され、これにより、画像表示メモリ24或いはメモリ30に書き込まれる。   A memory control circuit 22 controls the A / D converter 16, the timing generation circuit 18, the image processing circuit 20, the image display memory 24, the D / A converter 26, the memory 30, and the compression / decompression circuit 32. The data output from the A / D converter 16 is supplied to the memory control circuit 22 via the image processing circuit 20 or directly to the memory control circuit 22, and thereby written in the image display memory 24 or the memory 30. It is.

24は画像表示メモリである。26はD/A変換器である。28はTFT−LCD等からなる画像表示部である。画像表示メモリ24に書き込まれた表示用の画像データはD/A変換器26を介して画像表示部28に供給され、これにより画像表示部28に画像が表示される。画像表示部28に撮像に係る画像を逐次表示することにより、電子ファインダ機能を実現することができる。また、画像表示部28を用いて、再生表示機能、各種表示機能を利用することができる。また、画像表示部28は、システム制御回路50の指示により任意に表示をオン/オフすることが可能であり、表示をオフにした場合は、撮像装置100の電力消費を大幅に低減することができる。   Reference numeral 24 denotes an image display memory. Reference numeral 26 denotes a D / A converter. An image display unit 28 includes a TFT-LCD or the like. The display image data written in the image display memory 24 is supplied to the image display unit 28 via the D / A converter 26, whereby an image is displayed on the image display unit 28. An electronic viewfinder function can be realized by sequentially displaying images related to imaging on the image display unit 28. In addition, a playback display function and various display functions can be used by using the image display unit 28. Further, the image display unit 28 can arbitrarily turn on / off the display according to an instruction from the system control circuit 50. When the display is turned off, the power consumption of the imaging apparatus 100 can be significantly reduced. it can.

30はメモリであり、撮影した静止画像や動画像を格納する。メモリ30は、所定枚数の静止画像や所定時間の動画像を格納するのに十分な記憶量を備えている。このメモリ30を利用することにより、複数枚の静止画像を連続して撮影する連写撮影やパノラマ撮影の場合においても、高速に大量の画像を保存することができる。また、メモリ30はシステム制御回路50の作業領域としても利用され得る。   A memory 30 stores captured still images and moving images. The memory 30 has a storage capacity sufficient to store a predetermined number of still images and a moving image for a predetermined time. By using this memory 30, a large number of images can be stored at high speed even in continuous shooting or panoramic shooting in which a plurality of still images are continuously shot. The memory 30 can also be used as a work area for the system control circuit 50.

32は圧縮・伸長回路であり、適応離散コサイン変換(ADCT)等により画像データを圧縮し又は伸長する。圧縮・伸長回路32では、メモリ30に格納された画像を読み込んで圧縮処理或いは伸長処理を行い、処理を終えたデータをメモリ30に書き込む。   A compression / decompression circuit 32 compresses or decompresses image data by adaptive discrete cosine transform (ADCT) or the like. The compression / decompression circuit 32 reads an image stored in the memory 30, performs a compression process or an expansion process, and writes the processed data to the memory 30.

40は絞り機能を備えるシャッター12を制御する露光制御部であり、ストロボ48と連携してフラッシュ調光を行うこともできる。42は撮影レンズ10のフォーカシングを制御する測距制御部である。露光制御部40及び測距制御部42は、撮像により生成された画像データを画像処理回路20が演算した演算結果に基づいて、システム制御回路50によって制御される。これにより、TTL方式の露光制御及び測距制御が実現される。   An exposure control unit 40 controls the shutter 12 having an aperture function, and can perform flash light control in cooperation with the flash 48. A distance measuring control unit 42 controls focusing of the photographing lens 10. The exposure control unit 40 and the distance measurement control unit 42 are controlled by the system control circuit 50 based on a calculation result obtained by the image processing circuit 20 calculating image data generated by imaging. Thereby, TTL exposure control and distance measurement control are realized.

44は撮影レンズ10のズーミングを制御するズーム制御部である。   A zoom control unit 44 controls zooming of the photographing lens 10.

46はバリア(保護部)102の動作を制御するバリア制御部である。   A barrier control unit 46 controls the operation of the barrier (protection unit) 102.

48はストロボであり、被写体を明るく照らしてピントを合いやすくするためのAF補助光の投光機能を有する。なお、ストロボ48は、単一でもよいし、閃光発光用にキセノン管、微小長秒発光用にLEDなどのように複数設け、本発光時にそれぞれを切り替えて制御してもよい。   Reference numeral 48 denotes a strobe, which has a function of projecting AF auxiliary light for brightly illuminating the subject and facilitating focusing. The strobe 48 may be a single unit, or a plurality of strobes may be provided, such as a xenon tube for flash emission and an LED for minute long-second emission, and each may be switched and controlled during main emission.

50はシステム制御回路であり、撮像装置100全体を制御する。52はメモリであり、システム制御回路50の動作用の定数、変数、プログラム等を記憶する。また、メモリ52はAEで用いるプログラム線図も格納している。プログラム線図は、露出値に対する絞り開口径とシャッター速度の制御値との関係を定義したテーブルである。   Reference numeral 50 denotes a system control circuit that controls the entire imaging apparatus 100. A memory 52 stores constants, variables, programs, and the like for the operation of the system control circuit 50. The memory 52 also stores a program diagram used in AE. The program diagram is a table that defines the relationship between the aperture value for the exposure value and the control value for the shutter speed.

54は液晶表示装置、スピーカ等の表示部であり、システム制御回路50によるプログラムの実行に応じて、文字、画像、音声等を用いて動作状態やメッセージ等を表示する。表示部54は、撮像装置100の操作部近辺の視認し易い位置に単数或いは複数箇所設置され、例えばLCDやLED、発音素子等の組み合わせにより構成されている。また、表示部54は、その一部が光学ファインダ104内に設置されている。   Reference numeral 54 denotes a display unit such as a liquid crystal display device or a speaker, which displays an operation state, a message, and the like using characters, images, sounds, and the like in accordance with execution of a program by the system control circuit 50. The display unit 54 is installed in a single or a plurality of positions near the operation unit of the imaging apparatus 100 so that the display unit 54 can be visually recognized. A part of the display unit 54 is installed in the optical viewfinder 104.

表示部54の表示内容のうち、LCD等で表示するものとしては、シングルショット/連写撮影表示、セルフタイマー表示、圧縮率表示、記録画素数表示、記録枚数表示、残撮影可能枚数表示、シャッタースピード表示、絞り値表示等がある。加えて、露出補正表示、フラッシュ表示、赤目緩和表示、マクロ撮影表示、ブザー設定表示、時計用電池残量表示、電池残量表示、エラー表示、複数桁の数字による情報表示、記録媒体200の着脱状態表示、通信I/F動作表示、日付・時刻表示等がある。また、表示部54の表示内容のうち、光学ファインダ104内に表示するものとしては、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示等がある。   Among the display contents of the display unit 54, what is displayed on the LCD or the like includes single shot / continuous shooting display, self-timer display, compression rate display, number of recorded pixels, number of recorded pixels, number of remaining images, shutter There are speed display, aperture value display, etc. In addition, exposure compensation display, flash display, red-eye reduction display, macro shooting display, buzzer setting display, clock battery level display, battery level display, error display, information display with multiple digits, and attachment / detachment of the recording medium 200 There are status display, communication I / F operation display, date / time display, and the like. Among the display contents of the display unit 54, what is displayed in the optical viewfinder 104 includes in-focus display, camera shake warning display, flash charge display, shutter speed display, aperture value display, exposure correction display, and the like.

56は電気的に消去・記録可能な不揮発性メモリであり、例えばEEPROM等で構成される。   Reference numeral 56 denotes an electrically erasable / recordable non-volatile memory, such as an EEPROM.

60、62、64、66は、ユーザがシステム制御回路50へ各種動作を指示するための操作部であり、例えばスイッチやダイヤル、タッチパネル、視線検知によるポインティング、音声認識装置等の単数或いは複数の組み合わせで構成される。具体的に説明すると、60はモードダイヤルスイッチであり、電源オフ、プログラムAEモードなどの自動露出モード、全自動モード、マニュアル露出モード、寝顔撮影モード、パノラマ撮影モード、再生モード、マルチ画面再生・消去モード、PC接続モード等の各モードを切り替えることができる。   Reference numerals 60, 62, 64, and 66 are operation units for the user to instruct the system control circuit 50 to perform various operations. For example, a switch or a dial, a touch panel, pointing by line-of-sight detection, a voice recognition device, or a combination of one or more Consists of. More specifically, 60 is a mode dial switch, which is turned off, automatic exposure mode such as program AE mode, fully automatic mode, manual exposure mode, sleeping face shooting mode, panoramic shooting mode, playback mode, multi-screen playback / erase Each mode such as a mode and a PC connection mode can be switched.

62はシャッタースイッチSW1であり、不図示のシャッターボタンの操作途中でオンとなり、AF(オートフォーカス)処理、AE(自動露出)処理、AWB(オートホワイトバランス)処理、EF(フラッシュプリ発光)処理等の動作開始を指示する。   Reference numeral 62 denotes a shutter switch SW1, which is turned on during operation of a shutter button (not shown), and performs AF (auto focus) processing, AE (auto exposure) processing, AWB (auto white balance) processing, EF (flash pre-flash) processing, and the like. Instruct the start of operation.

64はシャッタースイッチSW2であり、前記シャッターボタンの操作完了でオンとなり、撮像素子14から読み出した信号をA/D変換器16、メモリ制御回路22を介してメモリ30に画像データを書き込む露光処理の動作を開始する。更に、画像処理回路20やメモリ制御回路22での演算を用いた現像処理、メモリ30から画像データを読み出し、圧縮・伸長回路32で圧縮を行い、記録媒体200に画像データを書き込む記録処理という一連の処理の動作開始を指示する。   A shutter switch SW2 64 is turned on when the operation of the shutter button is completed, and an exposure process of writing image data into the memory 30 via the A / D converter 16 and the memory control circuit 22 with the signal read from the image sensor 14 being performed. Start operation. Further, a series of development processes using operations in the image processing circuit 20 and the memory control circuit 22, a recording process in which the image data is read from the memory 30, compressed by the compression / decompression circuit 32, and written to the recording medium 200. The operation start of the process is instructed.

66は各種ボタンやタッチパネル等からなる操作部である。操作部66には、メニューボタン、セットボタン、マクロボタン、画像表示オン/オフボタン、マルチ画面再生改ページボタン、フラッシュ設定ボタン、単写/連写/セルフタイマー切り替えボタン、メニュー移動+(プラス)ボタン、メニュー移動−(マイナス)ボタン、再生画像移動+(プラス)ボタン、再生画像−(マイナス)ボタン、撮影画質選択ボタン、露出補正ボタン、日付/時間設定ボタン等がある。   An operation unit 66 includes various buttons and a touch panel. The operation unit 66 includes a menu button, a set button, a macro button, an image display on / off button, a multi-screen playback page break button, a flash setting button, a single shooting / continuous shooting / self-timer switching button, menu movement + (plus) Button, menu shift- (minus) button, playback image shift + (plus) button, playback image- (minus) button, shooting image quality selection button, exposure correction button, date / time setting button, and the like.

80は電源制御部であり、電池検出回路、DC−DCコンバータ、通電するブロックを切り替えるスイッチ回路等により構成されている。電源制御部80は、電池の装着の有無、電池の種類、電池残量の検出を行い、検出結果及びシステム制御回路50の指示に基づいてDC−DCコンバータを制御し、必要な電圧を必要な期間、記録媒体を含む各部へ供給する。82、84はコネクタである。86は電源であり、アルカリ電池やリチウム電池等の一次電池やNiCd電池やNiMH電池、Li電池等の二次電池、ACアダプター等からなる。   Reference numeral 80 denotes a power supply control unit, which includes a battery detection circuit, a DC-DC converter, a switch circuit that switches blocks to be energized, and the like. The power supply control unit 80 detects the presence / absence of a battery, the type of battery, and the remaining battery level, controls the DC-DC converter based on the detection result and the instruction of the system control circuit 50, and requires the necessary voltage. It is supplied to each part including the recording medium for a period. 82 and 84 are connectors. A power source 86 includes a primary battery such as an alkaline battery or a lithium battery, a secondary battery such as a NiCd battery, a NiMH battery, or a Li battery, an AC adapter, or the like.

90及び94はメモリカードやハードディスク等の記録媒体とのインタフェースである。92及び96はメモリカードやハードディスク等の記録媒体と接続を行うコネクタである。98はコネクタ92及び或いは96に記録媒体200或いは210が装着されているか否かを検知する記録媒体着脱検知部である。   Reference numerals 90 and 94 denote interfaces with recording media such as memory cards and hard disks. Reference numerals 92 and 96 denote connectors for connecting to a recording medium such as a memory card or a hard disk. A recording medium attachment / detachment detection unit 98 detects whether or not the recording medium 200 or 210 is attached to the connectors 92 and 96.

なお、本実施形態では記録媒体を取り付けるインタフェース及びコネクタを2系統持つものとして説明している。もちろん、記録媒体を取り付けるインタフェース及びコネクタは、単数或いは複数、いずれの系統数を備える構成としても構わない。また、異なる規格のインタフェース及びコネクタを組み合わせて備える構成としても構わない。インタフェース及びコネクタとしては、PCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成して構わない。   In the present embodiment, it is assumed that there are two interfaces and connectors for attaching the recording medium. Of course, the interface and the connector for attaching the recording medium may have a single or a plurality of systems, any number of systems. Moreover, it is good also as a structure provided with combining the interface and connector of a different standard. The interface and the connector may be configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like based on a standard.

さらに、インタフェース90及び94、そしてコネクタ92及び96をPCMCIAカードやCF(コンパクトフラッシュ(登録商標))カード等の規格に準拠したものを用いて構成した場合、LANカードやモデムカード、USBカード、IEEE1394カード、P1284カード、SCSIカード、PHS等の通信カード、等の各種通信カードを接続することにより、他のコンピュータやプリンタ等の周辺機器との間で画像データや画像データに付属した管理情報を転送し合うことが出来る。   In addition, when the interfaces 90 and 94 and the connectors 92 and 96 are configured using a PCMCIA card, a CF (Compact Flash (registered trademark)) card, or the like, a LAN card, a modem card, a USB card, IEEE1394. Image data and management information attached to image data are transferred to and from peripheral devices such as other computers and printers by connecting various communication cards such as cards, P1284 cards, SCSI cards, and PHS communication cards. I can meet each other.

102は、撮像装置100の撮影レンズ10を含む撮像部を覆う事により、撮像部の汚れや破損を防止するバリアである保護手段である。   Reference numeral 102 denotes protection means that is a barrier that prevents the imaging unit from being soiled or damaged by covering the imaging unit including the photographing lens 10 of the imaging device 100.

104は光学ファインダであり、画像表示部28による電子ファインダ機能を使用すること無しに、光学ファインダのみを用いて撮影を行うことが可能である。また、光学ファインダ104内には、表示部54の一部の機能、例えば、合焦表示、手振れ警告表示、フラッシュ充電表示、シャッタースピード表示、絞り値表示、露出補正表示などが設置されている。   Reference numeral 104 denotes an optical viewfinder, which can take an image using only the optical viewfinder without using the electronic viewfinder function of the image display unit 28. In the optical viewfinder 104, some functions of the display unit 54, for example, a focus display, a camera shake warning display, a flash charge display, a shutter speed display, an aperture value display, an exposure correction display, and the like are installed.

110は通信部で、RS232CやUSB、IEEE1394、P1284、SCSI、モデム、LAN、無線通信、等の各種通信機能を有する。   A communication unit 110 has various communication functions such as RS232C, USB, IEEE1394, P1284, SCSI, modem, LAN, and wireless communication.

112は通信部110により撮像装置100を他の機器と接続するコネクタ或いは無線通信の場合はアンテナである。   Reference numeral 112 denotes a connector for connecting the imaging apparatus 100 to another device by the communication unit 110 or an antenna in the case of wireless communication.

200はメモリカードやハードディスク等の記録媒体である。記録媒体200は、半導体メモリや磁気ディスク等から構成される記録部202、撮像装置100とのインタフェース204、撮像装置100と接続を行うコネクタ206を備えている。   Reference numeral 200 denotes a recording medium such as a memory card or a hard disk. The recording medium 200 includes a recording unit 202 composed of a semiconductor memory, a magnetic disk, and the like, an interface 204 with the imaging device 100, and a connector 206 that connects to the imaging device 100.

210はメモリカードやハードディスク等の記録媒体である。記録媒体210は、半導体メモリや磁気ディスク等から構成される記録部212、撮像装置100とのインタフェース214、撮像装置100と接続を行うコネクタ216を備えている。   Reference numeral 210 denotes a recording medium such as a memory card or a hard disk. The recording medium 210 includes a recording unit 212 composed of a semiconductor memory, a magnetic disk, and the like, an interface 214 with the imaging device 100, and a connector 216 that connects to the imaging device 100.

<動作説明>
本実施形態の撮像装置による画像撮影動作について説明する。なお、ここで説明する処理は、システム制御回路50が、不揮発性メモリ56に記録されたプログラムを、RAMなどの揮発性メモリ52のワークエリアに展開し、実行することで実現される。
<Description of operation>
An image capturing operation by the imaging apparatus of the present embodiment will be described. The processing described here is realized by the system control circuit 50 developing and executing a program recorded in the nonvolatile memory 56 in a work area of the volatile memory 52 such as a RAM.

システム制御回路50は、モードダイヤル60が撮影可能なモードにおいて電源86がオンされると、各種撮影準備動作を行い、撮影準備が完了すると、画像表示部28へスルー画像の表示を開始する。ここで、スルー画像とは、静止画を撮影する前後にファインダ機能として表示させるため、撮像素子14によって撮像された画像のことである。スルー画像表示状態においては、撮像素子14、A/D変換器16、画像処理回路20およびメモリ制御回路22を介して画像表示メモリ24に逐次書き込まれたデータは、メモリ制御回路22およびD/A変換器26を介して画像表示部28に逐次表示される。これにより、電子ビューファインダ(EVF)機能が実現する。   The system control circuit 50 performs various shooting preparation operations when the power supply 86 is turned on in the mode in which the mode dial 60 can shoot, and starts displaying a through image on the image display unit 28 when the shooting preparation is completed. Here, the through image is an image captured by the image sensor 14 for display as a finder function before and after taking a still image. In the through image display state, the data sequentially written to the image display memory 24 via the image sensor 14, the A / D converter 16, the image processing circuit 20, and the memory control circuit 22 are stored in the memory control circuit 22 and the D / A. The images are sequentially displayed on the image display unit 28 via the converter 26. Thereby, an electronic viewfinder (EVF) function is realized.

次に、図2を参照して、スルー画像表示状態における画像撮影動作について説明する。   Next, an image capturing operation in the through image display state will be described with reference to FIG.

図2において、シャッタースイッチSW1が押されるまでS201を繰り返す。シャッタースイッチSW1が押されたならばS202に進む。   In FIG. 2, S201 is repeated until the shutter switch SW1 is pressed. If the shutter switch SW1 is pressed, the process proceeds to S202.

システム制御回路50は、測距処理を行なって撮影レンズ10の焦点を被写体に合わせ、測光処理を行なって絞り値及びシャッター時間を決定する(S202)。   The system control circuit 50 performs a distance measurement process to focus the photographing lens 10 on the subject, performs a photometry process, and determines an aperture value and a shutter time (S202).

シャッタースイッチSW2が押されずに、シャッタースイッチSW1が解除されたならばS201に戻る(S203)。シャッタースイッチSW2が押されると(S204)、システム制御回路50は、撮像素子14、A/D変換器16、画像処理回路20、メモリ制御回路22を介して、或いはA/D変換器から直接メモリ制御回路22を介して、メモリ30に撮影した画像データを書き込む露光処理、及び、メモリ制御回路22そして必要に応じて画像処理回路20を用いて、メモリ30に書き込まれた画像データを読み出して各種処理を行う現像処理からなる撮影処理を実行する(S205)。   If the shutter switch SW1 is released without pressing the shutter switch SW2, the process returns to S201 (S203). When the shutter switch SW2 is pressed (S204), the system control circuit 50 stores the memory directly via the image sensor 14, the A / D converter 16, the image processing circuit 20, the memory control circuit 22, or directly from the A / D converter. Through the control circuit 22, exposure processing for writing image data taken in the memory 30, and the image data written in the memory 30 are read out by using the memory control circuit 22 and the image processing circuit 20 as necessary. A photographing process including a developing process is executed (S205).

続けて、画像処理回路20において入力された画像データをトリミングするための構図設定を行なう(S206)。   Subsequently, composition setting for trimming the image data input in the image processing circuit 20 is performed (S206).

ここで、先に図3を参照して構図設定について説明する。図3において、入力された画像データから被写体を検出する(S301)。被写体が人物であれば顔検出することで被写体の領域を検出できる。顔検出については既知の方法で良い。例えば、画像処理回路20は、入力された画像データから、目、鼻や口などの顔領域の構成要素に相当する形状を抽出し、目、鼻や口の存在位置関係から顔領域を算出する。また、被写体が人物でない場合の被写体検出も既知の方法で良い。例えば、入力された画像データを色や輝度で領域分割し、分割した領域の大きさや画面中心からの距離に応じて被写体らしさの重み付けをする。そして、重みが一定以上となった領域を被写体領域とする。   Here, the composition setting will be described with reference to FIG. In FIG. 3, a subject is detected from the input image data (S301). If the subject is a person, the region of the subject can be detected by detecting the face. A known method may be used for face detection. For example, the image processing circuit 20 extracts a shape corresponding to the constituent elements of the face area such as the eyes, nose and mouth from the input image data, and calculates the face area from the existing positional relationship of the eyes, nose and mouth. . A known method may be used for subject detection when the subject is not a person. For example, the input image data is divided into regions based on color and brightness, and subject-like weight is weighted according to the size of the divided regions and the distance from the screen center. Then, an area where the weight is equal to or greater than a certain value is set as a subject area.

次に、被写体が検出できたかどうかを判断し(S302)、被写体が検出できたら被写体の向き情報を取得し(S303)、被写体向き情報を用いて構図の設定をする(S304)。S302で被写体を検出できていなかった場合は、被写体情報を使わずに構図を設定する(S304)。   Next, it is determined whether or not the subject has been detected (S302). If the subject can be detected, the orientation information of the subject is acquired (S303), and the composition is set using the subject orientation information (S304). If the subject has not been detected in S302, the composition is set without using the subject information (S304).

S303の被写体の向き情報を取得する方法も既知の方法で良い。例えば、時間的に連続した入力画像データにおいて、S301で検出した同一被写体を直前フレームと比較していき、同一被写体が一定方向に移動し続けているのであれば、その進行方向を簡易的に被写体の向きとする。また、被写体が動いていない場合でも、顔が検出できていれば、左右の眼の大きさの比、または目、鼻や口などの位置関係から顔の向きを算出し、顔の向きを被写体の向きとしてもよいし、被写体の目の白目と黒目の関係から視線の向きを算出し、視線方向を被写体の向きとしてもよい。さらに、検出した顔領域を追尾している状態で、斜め顔、横顔と変化していき、目、鼻や口が検出できなくなった場合、被写体は後ろを向いている状態であるとしてもよい。   The method for acquiring the orientation information of the subject in S303 may be a known method. For example, in the time-sequential input image data, the same subject detected in S301 is compared with the immediately preceding frame, and if the same subject continues to move in a certain direction, the advancing direction is simply set as the subject. And the direction. Even if the subject is not moving, if the face can be detected, the face direction is calculated from the ratio of the size of the left and right eyes or the positional relationship of the eyes, nose, mouth, etc. The direction of the line of sight may be calculated from the relationship between the white and black eyes of the subject's eyes, and the direction of the line of sight may be used as the direction of the subject. Furthermore, when the detected face area is being tracked and the face changes to an oblique face or a side face, and the eyes, nose, and mouth cannot be detected, the subject may be facing back.

続いて構図を設定する(S304)。構図の設定には図4と図5を参照して説明する。図4、図5では例として(a)、(b)、(c)、(d)の4つのシーンを説明する。それぞれのシーンには被写体がいて、被写体をT1からT10で示している。さらに被写体それぞれの向きをD1からD9で示している。T10のみ方向が検出できなかった被写体であり、D10は存在しない。また、図5は図4それぞれの画像データにおける構図の例をそれぞれW1からW4で示したものである。W1からW4はあくまで構図の一例であり、設定される構図は1つでなくてもよい。   Subsequently, a composition is set (S304). The composition setting will be described with reference to FIGS. 4 and 5. FIG. 4 and 5, four scenes (a), (b), (c), and (d) will be described as an example. Each scene has a subject, and the subjects are indicated by T1 to T10. Furthermore, the directions of the subjects are indicated by D1 to D9. Only T10 is a subject whose direction could not be detected, and D10 does not exist. FIG. 5 shows examples of compositions in the image data of FIG. 4 from W1 to W4, respectively. W1 to W4 are merely examples of the composition, and the composition to be set may not be one.

まず(a)のシーンでは、被写体T1とT2は反対方向を向いているので別々の構図にする。そのうえで切り出し位置を考える。一般的に、写真撮影では被写体が向いている方向の空間を広くとった構図が良いとされている。また、(a)のシーンではT1と一緒に切り出す被写体がないため三分割法を適用する。三分割法とは、図6に示すように、切り出す画角の水平方向と垂直方向のそれぞれを3分割するように2本ずつ線を引くことにより得られる分割線の4つの交点P1〜P4に被写体の重心などの重要な要素を置くとバランスが取れて安定した構図が得られるというものである。W1は被写体の向いている方向に空間を広くとり、かつ三分割法を適用した例である。同様にT2の切り出しを考えたとき、T2は画角端でさらに外側を向いている。このような場合、被写体の向いている方向に空間を広くとることができない。そのため、無理に構図を設定しなくてもよい。   First, in the scene (a), since the subjects T1 and T2 are facing in opposite directions, the composition is made different. Then, consider the cutout position. In general, in photography, a composition with a wide space in the direction in which the subject is facing is considered good. In the scene (a), since there is no subject to be cut out together with T1, the three-division method is applied. As shown in FIG. 6, the three-division method is performed at four intersections P1 to P4 of dividing lines obtained by drawing two lines so as to divide each of the horizontal and vertical directions of the field angle to be divided into three. If an important element such as the center of gravity of the subject is placed, a balanced and stable composition can be obtained. W1 is an example in which a space is widened in the direction in which the subject is facing and the three-division method is applied. Similarly, when considering the cutout of T2, T2 is directed further outward at the angle of view end. In such a case, it is impossible to make a wide space in the direction in which the subject is facing. Therefore, it is not necessary to forcibly set the composition.

次に(b)のシーンでは、被写体T3とT4が後ろを向いている状態である。被写体が後ろを向いていて、かつその方向に特に被写体が見つからない場合、被写体が景色を眺めているなど、背景と被写体に関係がある場合が想定される。そのため、背景が広く入るように構図を設定する方法がある。W2は後ろを向く被写体T3とT4を含み、かつ背景が広く入る構図の例である。他にも、被写体T3だけ、あるいはT4だけを含み背景が広く入る構図としてもよい。   Next, in the scene of (b), the subjects T3 and T4 are facing back. When the subject is looking backward and the subject is not particularly found in that direction, the subject may be related to the background and the subject, such as looking at the scenery. Therefore, there is a method for setting the composition so that the background is wide. W2 is an example of a composition including subjects T3 and T4 facing backward and a wide background. In addition, the composition may include only the subject T3 or only T4 so that the background is wide.

(c)のシーンでは、被写体T5とT6が向かい合っているため、お互いに知り合いであるなど、関係がある可能性が高い。そのため両方の被写体が画角内に入るようなW3のような構図を設定する。このシーンでは、無理に三分割法を意識して片方の被写体が画角の端で切れてしまわないように制御する。   In the scene (c), since the subjects T5 and T6 face each other, there is a high possibility that they are related to each other. Therefore, a composition such as W3 is set so that both subjects fall within the angle of view. In this scene, control is performed so that one of the subjects is not cut off at the edge of the angle of view by being conscious of the three-division method.

最後に(d)のシーンでは、被写体T7、T8、T9が被写体T10の方向を向いている状態であり、T7、T8、T9はT10を通じて関係がある被写体として考えてよい。W4はT10と関係がある被写体をすべて含む構図の例である。当然、他にも三分割法を適用したT10だけを含む構図やT10の方向を向いている被写体のうちT8とT9だけとT10が含まれるような構図を設定してもよい。(d)ではわかりやすくするためにT10を用いたが、T10の被写体が検出できないシーンも存在する。そのような場合であっても、複数の被写体の向きが特定の領域で交差するのであれば、その領域に被写体があると仮定して、その領域を向いている複数の被写体が含まれるような構図を設定してもよい。   Finally, in the scene (d), the subjects T7, T8, and T9 are facing the direction of the subject T10, and T7, T8, and T9 may be considered as related subjects through T10. W4 is an example of a composition including all subjects related to T10. Of course, a composition including only T10 to which the three-division method is applied, or a composition including only T8 and T9 and T10 among subjects facing the direction of T10 may be set. In (d), T10 is used for the sake of clarity, but there are scenes in which the subject of T10 cannot be detected. Even in such a case, if the orientation of a plurality of subjects intersects in a specific region, it is assumed that there is a subject in that region, and a plurality of subjects facing that region are included. A composition may be set.

以上、(a)、(b)、(c)、(d)のシーンを用いて構図の設定例を説明した。これらの方法を用いることにより、(a)と(b)であれば被写体と背景、(c)、(d)であれば被写体同士などの関係性を残したまま構図を設定することができる。   The example of setting the composition has been described above using the scenes (a), (b), (c), and (d). By using these methods, it is possible to set the composition while maintaining the relationship between the subject and the background in (a) and (b) and the subjects in (c) and (d).

また、もしS301で被写体が検出できていなかった場合や被写体は検出できていてもS303で向きが検出できない場合は被写体情報を用いずに構図を設定してもよいし、無理に構図設定しなくてもよい。例えば、被写体は検出できているが、被写体の向きが検出できていないのであれば、単純に向きを気にせず、三分割法に適用させるだけでもよい。さらに、被写体も見つかって無い状態であれば、例えば、合焦点を中心に構図を設定するだけでもよい。   If the subject has not been detected in S301, or if the subject has been detected but the orientation cannot be detected in S303, the composition may be set without using the subject information, or the composition may not be forcibly set. May be. For example, if the subject can be detected but the orientation of the subject cannot be detected, the orientation may be simply applied without being concerned about the orientation. Furthermore, as long as no subject is found, for example, the composition may be simply set around the focal point.

続いて、設定した構図のトリミングを行なう(S207)。システム制御部50は、メモリ30に書き込まれた撮影画像データを読み出し、S206で設定した構図に従って、画像処理回路20で画像データのトリミングを行ない、トリミングしてつくられた画像をメモリ30に書きこむ(S207)。このとき、トリミングする構図はS206で設定された構図の全部でもよいし、1.構図内に被写体が多い順、2.被写体の向いている方向に空間を広くとっている構図、3.三分割法が適用されている構図などのように優先順位と何枚までトリミングするかを決めておき、その枚数までトリミングするようにしてもよい。   Subsequently, trimming of the set composition is performed (S207). The system control unit 50 reads out the captured image data written in the memory 30, performs trimming of the image data by the image processing circuit 20 according to the composition set in S206, and writes the trimmed image into the memory 30. (S207). At this time, the composition to be trimmed may be the entire composition set in S206, or 1. The order in which there are many subjects in the composition. 2. Composition in which space is widened in the direction the subject is facing. The priority order and the number of sheets to be trimmed may be determined as in the composition to which the three-division method is applied, and the trimming may be performed up to that number.

また、設定した構図全てを画像表示部28で表示できるようにして、ユーザが選択した構図だけをトリミングするようにしてもよい。システム制御回路50は、メモリ30に書き込まれた撮影画像データを読み出して、メモリ制御回路22そして必要に応じて画像処理回路20を用いて各種画像処理を、また、圧縮・伸長回路32を用いて設定したモードに応じた画像圧縮処理を行った後、記録媒体200或いは210へ画像データの書き込みを行う記録処理を実行する(S208)。

このように、本発明によれば、撮影で得られた画像データから被写体と被写体の向きを検出し、被写体の向きに応じて適切なトリミング範囲を自動で決定することができるので、ユーザに手を煩わせることなく好適なトリミング画像を容易に得ることが可能となる。
Further, all the set compositions may be displayed on the image display unit 28, and only the composition selected by the user may be trimmed. The system control circuit 50 reads the captured image data written in the memory 30, performs various image processing using the memory control circuit 22 and the image processing circuit 20 as necessary, and uses the compression / decompression circuit 32. After performing an image compression process according to the set mode, a recording process for writing image data to the recording medium 200 or 210 is executed (S208).

As described above, according to the present invention, it is possible to detect the subject and the orientation of the subject from the image data obtained by shooting and automatically determine an appropriate trimming range according to the orientation of the subject. It is possible to easily obtain a suitable trimmed image without bothering.

<変形例>
上述した実施形態の変形例について説明する。上述した実施形態との違いは、S207の処理であり、変形例ではS206で設定された全ての構図の中から、実際にトリミングする構図を決めるために評価値を用いる。切り出す構図を決めるために、切り出す構図のアスペクト、画素数、座標などを決める必要がある。これらを決める際にそれぞれ評価値を例えば0から100のように算出し、最終的にそれぞれの評価値を総合して総合評価値の高いものから順に構図を決定する。
<Modification>
A modification of the above-described embodiment will be described. The difference from the above-described embodiment is the process of S207. In the modified example, the evaluation value is used to determine the composition to be actually trimmed from all the compositions set in S206. In order to determine the composition to be extracted, it is necessary to determine the aspect, number of pixels, coordinates, etc. of the composition to be extracted. When determining these, the evaluation values are calculated, for example, from 0 to 100, and finally the respective evaluation values are combined to determine the composition in descending order of the total evaluation value.

一例としては、アスペクト評価値、画素数評価値、被写体位置評価値、空間サイズ評価値、被写体関係評価値を被写体情報や設定した構図の情報などから算出し、全ての評価値の平均をとることで最終評価値を算出する。最終評価値には毎回同じ値にならないようにランダム値をかけてもよいし、被写体が人物かどうかなどのように被写体の種類に応じて評価値が変動するようにしてもよい。さらに、シーンや被写体に応じて、どの評価値を用いて最終評価値を算出するかを変えてもよい。   As an example, the aspect evaluation value, the pixel number evaluation value, the subject position evaluation value, the space size evaluation value, and the subject relationship evaluation value are calculated from the subject information and the composition information set, and all the evaluation values are averaged. To calculate the final evaluation value. The final evaluation value may be multiplied by a random value so that it does not become the same value every time, or the evaluation value may vary depending on the type of subject, such as whether or not the subject is a person. Furthermore, depending on the scene and subject, which evaluation value is used to calculate the final evaluation value may be changed.

以下に各評価値の算出例を示す。ここで出てくる値はあくまでも一例であり、また、シーンや被写体に応じて、適応的にパラメータを変えてもよい。   An example of calculating each evaluation value is shown below. The values that appear here are merely examples, and the parameters may be adaptively changed according to the scene or subject.

アスペクト評価値は、例えば被写体と構図のアスペクト類似度応じて算出する方法であり、被写体が縦長であれば縦長のアスペクトの評価値が高くなるようにする。被写体の縦横サイズは被写体領域を包含する最小の矩形領域をつくり、この矩形から縦横のサイズを算出する。被写体が複数いる場合は、それぞれの被写体領域を包含する最小の矩形領域をつくり、さらにその全てを包含する最小の矩形領域をつくり、その矩形から縦横のサイズを算出すればよい。アスペクト評価値は、以下の式で算出したアスペクト類似度から算出する。   The aspect evaluation value is a method of calculating according to, for example, the aspect similarity between the subject and the composition. If the subject is vertically long, the evaluation value of the vertically long aspect is set high. The vertical and horizontal sizes of the subject create a minimum rectangular area that encompasses the subject area, and the vertical and horizontal sizes are calculated from this rectangle. When there are a plurality of subjects, a minimum rectangular region that includes each subject region is created, a minimum rectangular region that encompasses all the subject regions is created, and vertical and horizontal sizes may be calculated from the rectangles. The aspect evaluation value is calculated from the aspect similarity calculated by the following formula.

図7はアスペクト類似度に対応するアスペクト評価値の算出例を示すものである。   FIG. 7 shows an example of calculating the aspect evaluation value corresponding to the aspect similarity.

画素数評価値は、例えば切り出し構図中の被写体の占める割合に応じて算出する方法があり、切り出し構図中の被写体の大きさが大きすぎたり、小さすぎたりしたときは評価値が小さくなるようにする。画素数評価値は、以下の式で算出したサイズ比から算出する。   For example, there is a method of calculating the pixel number evaluation value according to the proportion of the subject in the cut-out composition. When the size of the subject in the cut-out composition is too large or too small, the evaluation value becomes small. To do. The pixel number evaluation value is calculated from the size ratio calculated by the following equation.

図8はサイズ比に対応する画素数評価値の算出例を示すものである。   FIG. 8 shows an example of calculating the pixel number evaluation value corresponding to the size ratio.

被写体位置評価値は、例えば設定した構図中の被写体の重心位置に応じて算出する方法があり、被写体の重心位置が三分割法を満たしているときの評価値を100、満たしていないときの評価値を50にするなど簡単なものでよい。   For example, there is a method of calculating the subject position evaluation value according to the center of gravity of the subject in the set composition. The evaluation value is 100 when the subject's center of gravity satisfies the three-division method. A simple value such as 50 may be used.

空間サイズ評価値は、被写体の無い空間と被写体の向いている方向に応じて算出する方法があり、被写体の重心位置から被写体の向いている方向の空間とその反対の空間のサイズを比較し、適切な比になるときに評価値が大きくなるようにする。空間サイズ評価値は、以下の式で算出した空間サイズ比から算出する。   There is a method of calculating the space size evaluation value according to the space where there is no subject and the direction in which the subject is facing, comparing the size of the space in the direction where the subject is facing from the center of gravity of the subject and the size of the opposite space, The evaluation value should be increased when the ratio is appropriate. The space size evaluation value is calculated from the space size ratio calculated by the following equation.

図9は空間サイズ比に対応する空間サイズ評価値の算出例を示すものである。   FIG. 9 shows a calculation example of the space size evaluation value corresponding to the space size ratio.

被写体関係評価値は、例えば設定した構図中に複数の被写体が存在する場合、被写体と被写体の間に関係がある場合の評価値を100、関係がない場合の評価値を30にするなど簡単なものでよく、被写体が複数検出できなかった場合、被写体関係評価値は使用しなくてよい。   For example, when there are a plurality of subjects in the set composition, the evaluation value is set to 100 when there is a relationship between the subjects and the evaluation value is set to 30 when there is no relationship. If a plurality of subjects cannot be detected, the subject-related evaluation value need not be used.

このように設定されたそれぞれの構図の評価値を算出し、上位何位まで、もしくはトリミングする構図に必要な評価値の閾値を設けることにより、トリミング枚数を絞ることができ、無駄にトリミングデータを増やすことを避けることができ、ユーザへの負担を減らすことができる。   By calculating the evaluation value of each composition set in this way and setting the threshold value of the evaluation value necessary for the upper rank or the composition to be trimmed, the number of trimmings can be reduced, and trimming data is wasted. The increase can be avoided and the burden on the user can be reduced.

<他の実施形態>
本発明は、以下の処理を実行することによっても実現される。即ち、上記実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(又はCPUやMPU等)がプログラムコードを読み出して実行する処理である。この場合、そのプログラム、及び該プログラムを記憶した記憶媒体は本発明を構成することになる。
<Other embodiments>
The present invention is also realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (or CPU, MPU, etc.) of the system or apparatus reads and executes the program code. It is processing to do. In this case, the program and the storage medium storing the program constitute the present invention.

100 画像処理装置
10 撮影レンズ
12 シャッター
14 撮像素子
16 A/D変換器
DESCRIPTION OF SYMBOLS 100 Image processing apparatus 10 Shooting lens 12 Shutter 14 Image sensor 16 A / D converter

Claims (10)

撮像して得られた画像の一部を切り出すトリミング手段と、
前記トリミング手段でトリミングするための構図を設定する構図設定手段と、
前記画像から複数の被写体を検出することが可能な被写体検出手段と、
前記被写体検出手段で検出したそれぞれの被写体が向いている方向を判定する被写体向き判定手段と、
を備え、
前記構図設定手段は、前記被写体向き判定手段で判定した結果に基づいて構図を設定することを特徴とする画像処理装置。
Trimming means for cutting out a part of an image obtained by imaging;
Composition setting means for setting a composition for trimming by the trimming means;
Subject detection means capable of detecting a plurality of subjects from the image;
Subject orientation determination means for determining the direction in which each subject detected by the subject detection means is facing;
With
The image processing apparatus, wherein the composition setting means sets the composition based on a result determined by the subject orientation determination means.
前記構図設定手段で設定される構図の数は、いくつであってもよいことを特徴とする請求項1に記載の画像処理装置。 The image processing apparatus according to claim 1, wherein the number of compositions set by the composition setting unit may be any number. 前記トリミング手段は、前記構図設定手段で複数の構図が設定されている場合でも、必ずしも全ての構図をトリミングする必要はないことを特徴とする請求項2に記載の画像処理装置。 The image processing apparatus according to claim 2, wherein the trimming unit does not necessarily trim all the compositions even when a plurality of compositions are set by the composition setting unit. 前記被写体向き判定手段は、被写体の進行方向、画像全体の進行方向、あるいは被写体の視線の向きの少なくとも1つに基づいて被写体の向きを判定することを特徴とする請求項1乃至請求項3の何れか1項に記載の画像処理装置。 4. The subject direction determination unit according to claim 1, wherein the subject direction determination unit determines the direction of the subject based on at least one of a traveling direction of the subject, a traveling direction of the entire image, or a viewing direction of the subject. The image processing apparatus according to any one of the above. 前記構図設定手段は、前記被写体向き判定手段で被写体の向きが判定不能だった場合、構図を設定しなくてもよいことを特徴とする請求項1乃至請求項4の何れか1項に記載の画像処理装置。 5. The composition setting unit according to claim 1, wherein the composition setting unit does not have to set the composition when the subject direction determination unit cannot determine the direction of the subject. 6. Image processing device. 前記構図設定手段は、前記被写体検出手段で検出したそれぞれの被写体が向いている方向の空間が広くなるように構図を設定することを特徴とする請求項1乃至請求項4の何れか1項に記載の画像処理装置。 5. The composition setting unit according to claim 1, wherein the composition setting unit sets the composition so that a space in a direction in which each subject detected by the subject detection unit faces is widened. The image processing apparatus described. 前記構図設定手段は、前記被写体検出手段で検出した被写体が背を向けている場合、背景が広くなるように構図を設定することを特徴とする請求項1乃至請求項4の何れか1項に記載の画像処理装置。 5. The composition setting unit according to claim 1, wherein the composition setting unit sets the composition so that the background is wide when the subject detected by the subject detection unit is turned away. The image processing apparatus described. 前記構図設定手段は、前記被写体向き判定手段で判定した結果に基づいて被写体が他の被写体と関係があるかを判断し、関係がある被写体が含まれるように構図を設定することを特徴とする請求項1乃至請求項4の何れか1項に記載の画像処理装置。 The composition setting means determines whether the subject is related to another subject based on the result determined by the subject orientation determination means, and sets the composition so that the related subject is included. The image processing apparatus according to any one of claims 1 to 4. 前記トリミング手段は、前記構図設定手段で設定した全ての構図の中から被写体やシーンに応じて何枚トリミングしてもよいし、トリミングを行なわなくてもよいことを特徴とする請求項1乃至請求項8の何れか1項に記載の画像処理装置。 The trimming unit may trim any number of the compositions set by the composition setting unit according to a subject or a scene, or may not perform trimming. Item 9. The image processing device according to any one of Items 8 to 9. 前記構図設定手段において設定された構図内の被写体の位置や向きに応じて、構図毎に評価値を算出する構図評価値算出手段をさらに備え、
前記トリミング手段は、前記構図評価値算出手段で算出された評価値に基づいて、トリミングする構図の優先順位を決定することを特徴とする請求項1乃至請求項9の何れか1項に記載の画像処理装置。
Composition evaluation value calculation means for calculating an evaluation value for each composition according to the position and orientation of the subject in the composition set by the composition setting means,
10. The trimming unit according to claim 1, wherein the trimming unit determines a priority order of the composition to be trimmed based on the evaluation value calculated by the composition evaluation value calculating unit. Image processing device.
JP2013236753A 2013-11-15 2013-11-15 Imaging apparatus, control method of the same, program, and storage medium Pending JP2015097322A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2013236753A JP2015097322A (en) 2013-11-15 2013-11-15 Imaging apparatus, control method of the same, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2013236753A JP2015097322A (en) 2013-11-15 2013-11-15 Imaging apparatus, control method of the same, program, and storage medium

Publications (1)

Publication Number Publication Date
JP2015097322A true JP2015097322A (en) 2015-05-21

Family

ID=53374438

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2013236753A Pending JP2015097322A (en) 2013-11-15 2013-11-15 Imaging apparatus, control method of the same, program, and storage medium

Country Status (1)

Country Link
JP (1) JP2015097322A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018168824A1 (en) * 2017-03-14 2018-09-20 株式会社ニコン Image processing device and electronic equipment
CN112036319A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium
WO2022201824A1 (en) * 2021-03-26 2022-09-29 ソニーグループ株式会社 Information processing device and method, and program

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018168824A1 (en) * 2017-03-14 2018-09-20 株式会社ニコン Image processing device and electronic equipment
CN112036319A (en) * 2020-08-31 2020-12-04 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium
CN112036319B (en) * 2020-08-31 2023-04-18 北京字节跳动网络技术有限公司 Picture processing method, device, equipment and storage medium
WO2022201824A1 (en) * 2021-03-26 2022-09-29 ソニーグループ株式会社 Information processing device and method, and program

Similar Documents

Publication Publication Date Title
JP4574459B2 (en) Image capturing apparatus, control method therefor, program, and storage medium
JP5383356B2 (en) IMAGING DEVICE, INFORMATION PROCESSING DEVICE, IMAGING DEVICE CONTROL METHOD, INFORMATION PROCESSING DEVICE CONTROL METHOD, AND COMPUTER PROGRAM
JP2010193007A (en) Imaging apparatus
JP2007081732A (en) Imaging apparatus
JP5207918B2 (en) Image processing apparatus, imaging apparatus, and image processing method
US8169507B2 (en) Image recording apparatus with electronic zoom and recording size setting, and control method and program therefor
JP4906632B2 (en) Image processing apparatus, image processing method, and image processing program
JP2015097322A (en) Imaging apparatus, control method of the same, program, and storage medium
JP6559014B2 (en) Imaging apparatus, control method thereof, and program
JP2006005640A (en) Imaging device, and its control method, program, and storage medium
JP2011223079A (en) Image processing apparatus
US10284783B2 (en) Imaging apparatus and control method of imaging apparatus
JP4401974B2 (en) Imaging apparatus and control method thereof
JP5828722B2 (en) Imaging apparatus, control method therefor, program, and storage medium
US20230186449A1 (en) Image processing apparatus, image processing method, imaging apparatus, and storage medium
JP6433177B2 (en) Image processing apparatus and image processing method
JP2018201101A (en) Imaging apparatus and control method thereof, program, and storage medium
JP2008060844A (en) Image processor and image processing method
JP6245802B2 (en) Image processing apparatus, control method thereof, and control program
JP2010041399A (en) Imaging device and its control method
JP2010093392A (en) Imaging apparatus, control method therefor, and program
JP2005110128A (en) Imaging apparatus and imaging control method
JP2017038300A (en) Image processing apparatus and method
JP2016163327A (en) Image processing apparatus, image processing method, and program
JP6278689B2 (en) Album generating apparatus, control method thereof, and control program