JP4595832B2 - Imaging apparatus, program, and storage medium - Google Patents

Imaging apparatus, program, and storage medium Download PDF

Info

Publication number
JP4595832B2
JP4595832B2 JP2006047920A JP2006047920A JP4595832B2 JP 4595832 B2 JP4595832 B2 JP 4595832B2 JP 2006047920 A JP2006047920 A JP 2006047920A JP 2006047920 A JP2006047920 A JP 2006047920A JP 4595832 B2 JP4595832 B2 JP 4595832B2
Authority
JP
Japan
Prior art keywords
image
frame
moving image
layout
still 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.)
Active
Application number
JP2006047920A
Other languages
Japanese (ja)
Other versions
JP2007226606A5 (en
JP2007226606A (en
Inventor
和典 柳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Casio Computer Co Ltd
Original Assignee
Casio Computer Co Ltd
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 Casio Computer Co Ltd filed Critical Casio Computer Co Ltd
Priority to JP2006047920A priority Critical patent/JP4595832B2/en
Publication of JP2007226606A publication Critical patent/JP2007226606A/en
Publication of JP2007226606A5 publication Critical patent/JP2007226606A5/ja
Application granted granted Critical
Publication of JP4595832B2 publication Critical patent/JP4595832B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Description

本発明は動画等の連続撮影画像から多くの人の顔が写っているシーンを静止画像として出力する静止画像生成技術に関する。   The present invention relates to a still image generation technique for outputting, as a still image, a scene in which many people's faces are captured from continuously shot images such as moving images.

動画において人物を検索対象画像の中から速やかに検出する技術として、検出する人物が写った画像をキー画像として指定し、キー画像の顔領域および服装領域の色相ヒストグラムを検索データとして確保し、読み込まれた検索対象画像について領域分割処理を行って領域毎の色相ヒストグラムを確保し、画面全体の色相ヒストリグラムが急激に変化するフレームを上下2方向からスキャン処理を行い、顔領域の色相ヒストグラムに類似した色相ヒストグラムを有する第1の領域および服装領域の色相ヒストグラムに類似した色相ヒストグラムを有する第2の領域を求め、第1の領域と第2の領域とが相互に近接した上下の位置関係にあるときに、これを検出対象の人物とする技術がある(例えば、特許文献1参照)。   As a technique for quickly detecting a person in a video from a search target image, an image showing the person to be detected is designated as a key image, and a hue histogram of the face area and clothing area of the key image is secured as search data and read. The search target image is subjected to region segmentation processing to ensure a hue histogram for each region, and a frame in which the hue historygram of the entire screen changes abruptly is scanned from two directions, similar to the hue histogram of the face region The first region having the hue histogram and the second region having a hue histogram similar to the hue histogram of the clothing region are obtained, and the first region and the second region are in a vertical positional relationship close to each other. Sometimes, there is a technique that uses this as a person to be detected (see, for example, Patent Document 1).

また、被撮影者が良い表情である撮影画像を手軽にプリントして楽しむことができるように、撮影された動画の各コマ画像の被撮影者の顔画像を抽出して、各顔画像毎に笑顔評価、端正評価を行い、各コマ画像について、その画像中の各被撮影者の総合笑顔評価値及び総合端正評価値を算出し、コマ画像のうちの一つを解析し、撮影した画像の場面を判断し、当該撮影がカジュアルな場面の撮影であると判断すると、優先評価値を笑顔評価値として設定し、フォーマルな場面の撮影であると判断すると、優先評価値を端正評価値として設定し、優先評価値の高い順に各コマ画像に順位を設定する。そして、順位に基づいて各コマ画像を表示させるデジタルカメラがある(例えば、特許文献2参照)。   In addition, the face image of the person to be photographed is extracted for each frame image of the captured video so that the photographer can easily print and enjoy the photographed image with a good expression. Smile evaluation and neatness evaluation are performed, and for each frame image, a total smile evaluation value and a total neatness evaluation value of each subject in the image are calculated, one of the frame images is analyzed, and the captured image If the scene is judged and the shooting is determined to be a casual scene, the priority evaluation value is set as a smile evaluation value. If the shooting is determined to be a formal scene shooting, the priority evaluation value is set as a neat evaluation value. Then, the order is set for each frame image in descending order of priority evaluation value. There is a digital camera that displays each frame image based on the order (see, for example, Patent Document 2).

また、顔抽出技術を利用してプリント注文時の枚数設定を簡易化する技術として、記録媒体に格納された撮影画像を分析して顔領域を抽出し、抽出した顔領域の数をカウントして人数情報を生成して記録媒体に保持し、プリント注文の際の枚数指定の煩雑さを軽減する技術がある(特許文献3参照)。   In addition, as a technology that simplifies the number setting at the time of print order using the face extraction technology, the face image is extracted by analyzing the captured image stored in the recording medium, and the number of the extracted face regions is counted. There is a technique for generating the number information and holding it on a recording medium to reduce the complexity of specifying the number of sheets when ordering a print (see Patent Document 3).

特開2000−30033号公報JP 2000-30033 A 特開2002−204099号公報JP 2002-204099 A 特開2004−145563号公報JP 2004-145563 A

しかしながら、上記特許文献1に記載の技術では、指定した人物を動画フレームの中から認識することはできるが、カメラの方を向いた不特定の人物の顔を認識して人数を検出することはできないので、動画等の連続撮影画像から指定した数(複数)の人が写っているシーンを静止画像として出力することはできなかった。
また、上記特許文献2に記載の技術では優先評価値を端正評価値として設定し、優先評価値の高い順に各コマ画像に順位を設定してから順位に基づいて各コマ画像を表示させるので、動画中で非撮影者が不特定多数であってもそれら被撮影者がよい顔をして写っているフレーム画像を検出して表示したり印刷することはできるが、優先評価値の設定なしに動画中から皆がカメラの方を向いて写っているコマ画像を検出することはできない。
また、上記特許文献3に記載の技術では顔領域を検出して人数情報を生成することはできるが、動画等の連続撮影画像から指定した数(複数)の人が写っているシーンを静止画像として出力したり、中心画像の前後のフレーム画像を合成した静止画像を出力することはできないといった課題があった。
However, in the technique described in Patent Document 1, a designated person can be recognized from a moving image frame, but the number of persons can be detected by recognizing the face of an unspecified person facing the camera. Since it is not possible, a scene in which a specified number (a plurality) of people are captured from continuously shot images such as moving images cannot be output as a still image.
Further, in the technique described in Patent Document 2, the priority evaluation value is set as a neat evaluation value, and each frame image is displayed on the basis of the rank after setting the rank for each frame image in descending order of the priority evaluation value. Even if there are an unspecified number of non-photographers in the video, it is possible to detect and display and print the frame images of those subjects with good faces, but without setting a priority evaluation value. It is impossible to detect a frame image in which everyone is facing the camera from within a video.
The technique described in Patent Document 3 can detect the face area and generate the number of people information. However, a scene in which a specified number (a plurality) of people are captured from continuously shot images such as moving images is captured as a still image. Or a still image obtained by combining frame images before and after the central image cannot be output.

本発明は上記課題を解決するためになされたものであり、簡単に、動画等の連続撮影画像から多くの人の顔が写っているシーンを静止画像として出力する撮像装置プログラム、及び記憶媒体の提供を目的とする。 SUMMARY OF THE INVENTION The present invention has been made to solve the above-mentioned problems, and an imaging device , a program, and a storage medium that simply output a scene in which many people's faces are captured from continuously shot images such as moving images as still images The purpose is to provide.

上記課題を解決するために、請求項1に記載の発明では、生成される静止画像のレイアウトの情報を複数記憶するレイアウト情報記憶手段と、中心画像を選択する画像選択手段と、レイアウト情報記憶手段に記憶されている複数のレイアウトの中から静止画生成に用いるレイアウトを選択するレイアウト選択手段と、人数情報取得手段によって取得された人物数が所定数のコマである画像の中から画像選択手段によって選択された中心画像と該中心画像に前後して撮像された動画像をレイアウト選択手段によって選択されたレイアウトに基づいて配置した静止画像の画像データを生成する静止画生成手段と、を備えたことを特徴とする撮像装置を提供する。
これにより、動画から所定数の人物が写っているコマを取得し、その中からユーザが所望する画像を中心とした所定のレイアウトの静止画を生成することができる。
In order to solve the above problems, the invention described in claim 1, and the layout information storage means for storing a plurality of information of the layout of the still images generated, an image selection means for selecting the central image, the layout information storage unit Layout selecting means for selecting a layout to be used for generating a still image from a plurality of layouts stored in the image, and an image selecting means from among images whose number of persons acquired by the number information acquiring means is a predetermined number of frames. Still image generation means for generating image data of a still image in which a selected center image and a moving image captured before and after the center image are arranged based on a layout selected by the layout selection means An imaging device is provided.
Thereby, a frame in which a predetermined number of people are captured from a moving image can be acquired, and a still image having a predetermined layout centered on an image desired by the user can be generated.

また、請求項に記載の発明では、人物の数は撮像装置に顔を向けた人物の数であることを特徴とする請求項1に記載の撮像装置を提供する。
これにより、動画の各コマに写っている画像のうちで所定数の人物が撮像装置の方を向いているコマを動画表示することができる。また、人物数が所定数であるコマについてのみ動画表示するので、動画再生に伴う時間を全体的に短縮できる。また、動画中で、皆が撮像装置の方を向いている画像を皆で楽しく鑑賞できる。
According to a second aspect of the present invention, there is provided the imaging apparatus according to the first aspect, wherein the number of persons is the number of persons whose faces are directed to the imaging apparatus.
As a result, a frame in which a predetermined number of persons are facing the image pickup apparatus among the images in each frame of the moving image can be displayed as a moving image. In addition, since only a frame having a predetermined number of persons is displayed as a moving image, the time required for reproducing the moving image can be reduced as a whole. In addition, everyone can enjoy watching the images of everyone facing the imaging device in the video.

また、請求項に記載の発明では、静止画生成手段によって生成された画像データを出力する出力手段を備えたことを特徴とする請求項1または2に記載の撮像装置を提供する。
これにより、ユーザは所望の複数の人数の人物が写っている動画像の中から所望する画像を中心とした所定のレイアウトの静止画を生成して出力(記録またはプリンタ等や外部処理装置に送信)できる。
According to a third aspect of the present invention, there is provided the imaging apparatus according to the first or second aspect, further comprising an output unit that outputs the image data generated by the still image generating unit.
As a result, the user generates a still image having a predetermined layout centered on a desired image from moving images in which a desired number of persons are captured, and outputs (records or transmits to a printer or an external processing device) )it can.

また、請求項に記載の発明では、所定数を設定する人数設定手段を備え、人数設定手段によって設定される数は複数の数であることを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置を提供する。
これにより、ユーザは、複数の数、たとえば、所定数として5を設定すると、動画中で5人の人物が写っているコマを検出し、検出したコマの画像の中から所望する画像を中心とした所定のレイアウトの静止画を生成することができる。また、動画から5人の人物が写っているコマを取得して動画表示したり、出力(記録、印刷、若しくは外部処理装置に送信)することができる。また、ユーザは、例えば、所定数として3を設定すると、動画中で3人以上の人物が写っているコマを検出し、検出したコマの画像の中から所望する画像を中心とした所定のレイアウトの静止画を生成することができる。また、動画から3人以上の人物が写っているコマを取得して動画表示したり、出力することができる。
Further, in the invention according to claim 4, comprising a number setting means for setting a predetermined number, any one of claims 1 to 3, wherein the number set by the number setting means is a plurality of 1 The imaging device according to the item is provided.
As a result, when the user sets a plurality of numbers, for example, 5 as a predetermined number, the frame in which five persons are shown in the moving image is detected, and the desired image is centered on the detected frame image. It is possible to generate a still image having a predetermined layout. It is also possible to acquire a frame showing five persons from a moving image and display the moving image, or output (record, print, or send to an external processing device). For example, when the user sets 3 as the predetermined number, a frame in which three or more persons are captured in the moving image is detected, and a predetermined layout centered on a desired image from the detected frame images. Still images can be generated. In addition, it is possible to acquire and display a moving image in which three or more people are captured from the moving image.

また、請求項に記載の発明では、画像記録メモリを備えたコンピュータに、再生される動画の各コマ毎に人物の数を取得する機能と、生成される静止画像のレイアウトの情報を複数記憶する機能と、中心画像を選択する機能と、前記記憶されている複数のレイアウトの中から静止画生成に用いるレイアウトを選択する機能と、前記取得された人物数が所定数のコマである画像の中から選択された中心画像と他の動画像を、選択されたレイアウトに基づいて配置した静止画像の画像データを生成する機能と、を実行させるプログラムを提供する。
これにより、動画から所定数の人物が写っているコマを取得し、その中からユーザが所望する画像を中心とした所定のレイアウトの静止画を生成することができる
According to the fifth aspect of the present invention, a computer having an image recording memory stores a plurality of information on the number of persons for each frame of a moving image to be reproduced and layout information of a generated still image. A function for selecting a center image, a function for selecting a layout to be used for generating a still image from among the plurality of stored layouts, and an image for which the acquired number of persons is a predetermined number of frames. the central image and other moving image selected from among, provides a program for executing a function for generating image data of a still image arranged on the basis of the selected layout.
Thereby, a frame in which a predetermined number of people are captured from a moving image can be acquired, and a still image having a predetermined layout centered on an image desired by the user can be generated .

また、請求項に記載の発明では、請求項に記載のプログラムを記憶したことを特徴とするコンピュータ読み取り可能な記憶媒体を提供する。
この記憶媒体に格納されたプログラムを実行することにより、動画から所定数の人物が写っているコマを取得し、その中からユーザが所望する画像を中心とした所定のレイアウトの静止画を生成することができる
According to a sixth aspect of the present invention, there is provided a computer-readable storage medium characterized by storing the program according to the fifth aspect.
By executing a program stored in the storage medium, a frame showing a predetermined number of people is obtained from a moving image, and a still image having a predetermined layout centered on an image desired by the user is generated from the frame. Can

本発明によれば、動画の各コマに写っている画像のうちで撮像装置の方を向いている人物の数を取得することができるので、指定した数の人物が撮像装置の方を向いているコマを表示したり、出力(記録、印刷、若しくは外部処理装置に送信)することができる。   According to the present invention, it is possible to obtain the number of persons facing the image capturing apparatus among the images captured in each frame of the moving image, so that the designated number of persons are facing the image capturing apparatus. Can be displayed and output (recorded, printed, or sent to an external processing device).

図1は、本発明の各実施形態に共通する撮像装置および再生装置の一実施例としてのデジタルカメラの外観を示す図であり、ここでは主として正面(図1(a))及び背面(図1(b))の外観を示す。デジタルカメラ100は、図1(a)に示すように正面側に撮像レンズ(レンズ群)2を有している。また、デジタルカメラ100の背面には図1(b)に示すように、モードダイアル3、液晶モニタ画面4、カーソルキー5、SETキー6、ズームボタン7(Wボタン7−1、Tボタン7−2)、およびメニューキー10等のキーが設けられている。また、上面にはシャッターキー8、電源ボタン9が設けられている。なお、側部には図示されていないが、パーソナルコンピュータ(以下、パソコン)やモデム等の外部装置とUSBケーブルに接続する場合に用いるUSB端子接続部が設けられている。   FIG. 1 is a diagram showing an external appearance of a digital camera as an example of an image pickup apparatus and a playback apparatus common to the embodiments of the present invention. Here, the front (FIG. 1A) and the back (FIG. 1) are mainly shown. The external appearance of (b)) is shown. The digital camera 100 has an imaging lens (lens group) 2 on the front side as shown in FIG. Further, as shown in FIG. 1B, the back of the digital camera 100 has a mode dial 3, a liquid crystal monitor screen 4, a cursor key 5, a SET key 6, a zoom button 7 (W button 7-1, T button 7- 2) and a menu key 10 or the like. A shutter key 8 and a power button 9 are provided on the upper surface. Although not shown in the figure, a USB terminal connection portion used when connecting to an external device such as a personal computer (hereinafter referred to as a personal computer) or a modem and a USB cable is provided on the side portion.

図2は図1に示したデジタルカメラ100のブロック図であり、デジタルカメラ100は、(静止画)通常撮影モード、マクロ撮影モード、連写モード、速写モード、・・、動画撮影モード、高速連写モード、・・・等の撮影モードや、静止画再生モード、動画再生モード等の再生モード等静止画撮影モードと動画撮影モード、連写画像再生モード等を有している。また、動画再生モードの下位モードとして、動画像から静止画像を生成(静止画像化)して出力するための静止画出力モードを有している。なお、高速連写モードは例えば、1秒間に50枚以上の画像を連続撮影する撮影モードであり、本発明は動画から静止画を生成する場合だけでなく、高速連写モードで撮影された画像から選択した画像とその画像を中心として前後に撮影された画像から静止画像を生成する場合にも適用できる。   FIG. 2 is a block diagram of the digital camera 100 shown in FIG. 1. The digital camera 100 includes a (still image) normal shooting mode, a macro shooting mode, a continuous shooting mode, a rapid shooting mode,... The camera has a shooting mode such as a shooting mode, a still image shooting mode, a moving image shooting mode, a continuous shooting image playback mode, and the like. Further, as a lower mode of the moving image playback mode, there is a still image output mode for generating a still image from a moving image (making it a still image) and outputting it. Note that the high-speed continuous shooting mode is a shooting mode in which, for example, 50 or more images are continuously shot per second, and the present invention is not only for generating still images from moving images, but also for images shot in the high-speed continuous shooting mode. The present invention can also be applied to a case where a still image is generated from an image selected from the above and images taken before and after that image.

つまり、デジタルカメラ100は、カメラ本体1と、カメラ本体1に着脱可能な記録メディア30から構成されており、カメラ本体1にはズームレンズやフォーカスレンズからなる光学系12およびCCD13が配置されている。   That is, the digital camera 100 includes a camera body 1 and a recording medium 30 that can be attached to and detached from the camera body 1. The camera body 1 is provided with an optical system 12 including a zoom lens and a focus lens and a CCD 13. .

CCD13は本発明の撮像手段であり、タイミングジェネレータ17から送られる駆動信号により駆動され、被写体の光像を光電変換し撮像信号として出力する。CCD13の出力信号はCDS回路14で相関二重サンプリングおよびゲイン調整され、A/D変換回路15でデジタル信号に変換される。A/D変換された撮像信号はDSPブロック16に入力され、ぺデスタルクランプ等の処理が施された後、DSPブロック16内の輝度・色差マトリックス回路で輝度(Y)信号および色差(UV)信号に変換される。なお、DSPブロック16ではオートアイリス(AE)、ホワイトバランス(WB)、輪郭強調などの画像の品質向上のための処理も行われる。   The CCD 13 is an image pickup means of the present invention, and is driven by a drive signal sent from the timing generator 17 to photoelectrically convert a subject light image and output it as an image pickup signal. The output signal of the CCD 13 is subjected to correlated double sampling and gain adjustment by the CDS circuit 14, and is converted to a digital signal by the A / D conversion circuit 15. The A / D converted image signal is input to the DSP block 16 and subjected to processing such as pedestal clamping, and then the luminance (Y) signal and the color difference (UV) signal are processed by the luminance / color difference matrix circuit in the DSP block 16. Is converted to The DSP block 16 also performs processing for improving image quality such as auto iris (AE), white balance (WB), and edge enhancement.

DSPブロック16で変換されたYUVデータは解像度変換ブロック18で予め設定された画像サイズに変換された後、1フレーム分のデータが順次内蔵メモリ24(例えば、SD内蔵メモリ24)に格納される。内蔵メモリ24に格納された1フレーム分のYUVデータは表示コントローラ21に送られ、そこでビデオ信号に変換された後、LCD(液晶表示部)12によりスルー画像、つまりスルーの動画像として表示される。   The YUV data converted by the DSP block 16 is converted to a preset image size by the resolution conversion block 18, and then data for one frame is sequentially stored in the internal memory 24 (for example, the SD internal memory 24). The YUV data for one frame stored in the built-in memory 24 is sent to the display controller 21, where it is converted into a video signal, and then displayed on the LCD (liquid crystal display unit) 12 as a through image, that is, a through moving image. .

静止画モードでの撮影時に内蔵メモリ24に格納された1フレーム分のYUVデータはデータ圧縮・伸張ブロック19でJPEG方式等によってデータ圧縮後コード化され、内蔵メモリ内でファイル化された後、メディアコントローラ20を介して記録メディア30に静止画データ(静止画ファイル)として記録される。   One frame of YUV data stored in the built-in memory 24 at the time of shooting in the still image mode is encoded by the data compression / decompression block 19 after being compressed by the JPEG method, etc. It is recorded as still image data (still image file) on the recording medium 30 via the controller 20.

記録メディア30は本発明の動画記録手段であり、動画撮影時に内蔵メモリ24に格納されたYUVデータは順次データ圧縮・伸張ブロック19に送られ、所定の動画記録方式(例えば、Motion−JPEGやMPEG)のコーデックによりデータ圧縮した後にコード化され、内蔵メモリ24内でファイル化された後、メディアコントローラ20を介して動画ファイルとして記録メディア30に記録される。なお、動画撮影のフレームレートはタイミングジェネレータ17で生成されるタイミング信号によって決まり、コード化されるデータの圧縮率はデータ圧縮・伸張ブロック19内の電子化テーブル値によって決定される。   The recording medium 30 is a moving image recording means of the present invention, and YUV data stored in the built-in memory 24 at the time of moving image shooting is sequentially sent to the data compression / decompression block 19, and a predetermined moving image recording method (for example, Motion-JPEG or MPEG). ), The data is compressed after being compressed by the codec, filed in the built-in memory 24, and then recorded on the recording medium 30 as a moving image file via the media controller 20. The frame rate for moving image shooting is determined by the timing signal generated by the timing generator 17, and the compression rate of the encoded data is determined by the digitization table value in the data compression / decompression block 19.

データ圧縮・伸張ブロック19は、静止画または動画の再生時には記録メディア30から読み出された静止画や動画データを伸張し、静止画データや動画像のフレームデータとして内蔵メモリ24に展開する。展開された画像は表示コントローラ21に送られ、そこでビデオ信号に変換された後、LCD22により再生画像として表示される。なお、LCD22にはスルー画像や再生画像だけでなく、必要に応じてデジタルカメラ100における各種の機能に関する選択や設定を行うためのメニュー画面や設定画面も表示される。   The data compression / decompression block 19 decompresses the still image or moving image data read from the recording medium 30 during reproduction of the still image or moving image, and expands the still image data or moving image frame data in the built-in memory 24. The developed image is sent to the display controller 21 where it is converted into a video signal and then displayed on the LCD 22 as a reproduced image. The LCD 22 displays not only a through image and a reproduced image, but also a menu screen and a setting screen for selecting and setting various functions in the digital camera 100 as necessary.

音声処理ブロック25は、動画撮影時においてカメラ本体1に内蔵されたマイク26に入力した音声をデジタル信号に変換し、データ圧縮後にオーディオデータとして内蔵メモリ24に送る。内蔵メモリ24に送られたオーディオデータはフレームデータとともにストリームデータとして記録メディア30に順次書き込まれる。また、音声処理ブロック25は、動画撮影時には、内蔵メモリ24から送られたオーディオデータを復号し、アナログの音声信号に変換した後、カメラ本体1に内蔵された内蔵スピーカ27から音声出力させる。   The sound processing block 25 converts sound input to the microphone 26 built in the camera body 1 into a digital signal at the time of moving image shooting, and sends it to the built-in memory 24 as audio data after data compression. The audio data sent to the built-in memory 24 is sequentially written to the recording medium 30 as stream data together with the frame data. The audio processing block 25 decodes the audio data sent from the built-in memory 24 at the time of moving image shooting, converts it into an analog audio signal, and then outputs the audio from the built-in speaker 27 built in the camera body 1.

キー入力ブロック28は、上述したモードダイアル3、カーソルキー5、SETキー6、ズームボタン7(Wボタン7−1、Tボタン7−2)、シャッターキー8、電源ボタン9、およびメニューキー10と、キーが操作されると操作されたキーの操作信号を生成してCPU23に送出するキー処理部(図示せず)等から構成されている。   The key input block 28 includes the mode dial 3, the cursor key 5, the SET key 6, the zoom button 7 (W button 7-1, T button 7-2), the shutter key 8, the power button 9, and the menu key 10 described above. , A key processing unit (not shown) that generates an operation signal of the operated key and sends it to the CPU 23 when the key is operated.

モードダイアル3は撮影モードや再生モードの選択を行うものである。ユーザはモードダイアル3を操作して、(静止画)通常撮影モード、マクロ撮影モード、連写モード、速写モード、・・、動画撮影モード、・・・等の撮影モードや、静止画再生モード、動画再生モード等の再生モード等を選択することができる。   The mode dial 3 is used to select a shooting mode and a playback mode. The user operates the mode dial 3 to select (still image) normal shooting mode, macro shooting mode, continuous shooting mode, rapid shooting mode,..., Movie shooting mode,. A playback mode such as a video playback mode can be selected.

カーソルキー5はモード設定やメニュー選択等に際して液晶モニタ画面4に表示されるメニューやアイコン等をカーソルでポイント(指定)する際に操作するキーであり、カーソルキー5の操作によりカーソルを上下又は左右に移動させることができる。また、動画再生モードの下位モードである静止画出力モードにおいて1コマに写っている人数が指定されたときは、カーソルキー5を左方向(>)操作することにより停止した画面を進行方向に1コマずつ進めることができる。また、カーソルキー5を左方向(>)操作することにより画面を逆方向に1コマずつ進めることができる。   The cursor key 5 is a key operated when pointing (designating) a menu or icon displayed on the liquid crystal monitor screen 4 with the cursor when setting a mode or selecting a menu. Can be moved to. In addition, when the number of people in one frame is specified in the still image output mode, which is a lower mode of the video playback mode, the screen stopped by moving the cursor key 5 leftward (>) is set to 1 in the traveling direction. You can advance frame by frame. Further, by operating the cursor key 5 leftward (>), the screen can be advanced one frame at a time in the reverse direction.

SETキー6はカーソルキー5によってカーソルが位置づけられている項目や画像を選択、設定若しくは確認する際に押すキーである。再生モードの下位モードである静止画出力モードにおいて多人数画像抽出モードが選択されたときは、SETキー6を押すとその時点で表示されていたコマが生成される静止画の中心画像となる。   The SET key 6 is a key that is pressed when selecting, setting, or confirming the item or image where the cursor is positioned by the cursor key 5. When the multi-person image extraction mode is selected in the still image output mode which is a lower mode of the reproduction mode, when the SET key 6 is pressed, the frame displayed at that time becomes the center image of the still image to be generated.

ズームボタン7は、ズーム操作に用いられ、光学ズームの場合はズームボタン7(Wボタン7−1またはTボタン7−2)の操作に対応して画角が実際に変化し、液晶モニタ画面4にはワイド(広角)画像又はテレ(望遠)画像が表示される。電子ズームの場合はズームボタン7の操作に対応して光学系12からの画像がデジタルズーム処理により画像が拡大/縮小されて表示される。   The zoom button 7 is used for zoom operation. In the case of optical zoom, the angle of view actually changes corresponding to the operation of the zoom button 7 (W button 7-1 or T button 7-2), and the liquid crystal monitor screen 4 Displays a wide (wide angle) image or a tele (telephoto) image. In the case of the electronic zoom, the image from the optical system 12 is displayed by enlarging / reducing the image by digital zoom processing in response to the operation of the zoom button 7.

シャッターキー8は、撮影時にレリーズ操作を行うもので、2段階のストロークを有しており、静止画撮影モードでは1段目の操作(半押し状態)でオートフォーカス(AF)と自動露出(AE)を行わせるための合焦指示信号を発生し、2段目の操作(全押し状態)で撮影処理を行うための撮影指示信号を発生する。また、動画撮影モードでは録画開始/終了の指示に用いられるほか、静止画出力モードにおいて、シャッターキー8を半押しすると表示中の動画像を停止させて静止表示し、シャッターキー8を全押しすると停止解除となり、動画表示を続行させる動画表示停止/停止解除キーとして用いることができる。なお、シャッターキー8を全押しすると表示中の動画像を停止させて静止表示し、シャッターキー8を半押しすると停止解除となり、動画表示を続行させる動画表示停止/停止解除キーとして用いるようにしてもよい。   The shutter key 8 performs a release operation at the time of shooting and has a two-step stroke. In the still image shooting mode, auto-focus (AF) and automatic exposure (AE) are performed by the first-stage operation (half-pressed state). ) And a shooting instruction signal for performing shooting processing in the second stage operation (fully pressed state). In addition to being used for recording start / end instructions in the moving image shooting mode, in the still image output mode, when the shutter key 8 is pressed halfway, the displayed moving image is stopped and displayed still, and when the shutter key 8 is fully pressed. It can be used as a moving image display stop / stop release key for releasing the stop and continuing the moving image display. When the shutter key 8 is fully pressed, the displayed moving image is stopped and displayed as a still image, and when the shutter key 8 is pressed halfway, the stop is canceled and used as a video display stop / stop cancel key for continuing the video display. Also good.

メニューキー10はその時点で処理可能な選択メニューやアイコンを表示する場合に操作されるキーである。   The menu key 10 is a key operated when displaying a selection menu or icon that can be processed at that time.

人数検出ブロック31は動画再生モードの下位モードである静止画出力モードにおいて多人数数が指定されると、動画中のコマから多人数が写されているコマを検出し、検出信号をCPU23に送る。ここで、多人数とは静止画出力モード時にユーザが指定する人数であり、実施例では2人以上を選択できる(選択人数の例;2人、3人、4人、5人、・・・10人、2人以上、3人以上、4人以上、5人以上、・・・、10人以上)。人数の検出方法は公知の方法を用いることもできる。例えば、前述した特許文献1(特開2000―30033号公報)に記載の技術のように人物を認識する技術や特許文献3(特開2004−145563号公報)に記載の人数情報を取得する方法を適宜採用することができる。なお、この多人数検出処理のために専用の回路を設けても良いしCPU23で多人数検出用のプログラムを実行させるようにしてもよい。   When the number of people is specified in the still image output mode, which is a lower mode of the moving image playback mode, the number of people detection block 31 detects a frame in which a large number of people are copied from the frames in the moving image, and sends a detection signal to the CPU 23. . Here, the large number of people is the number of people specified by the user in the still image output mode, and in the embodiment, two or more people can be selected (example of the number of people selected; 2, 3, 4, 5,... 10 people, 2 or more, 3 or more, 4 or more, 5 or more, ... 10 or more). A known method can also be used as a method for detecting the number of persons. For example, a technique for recognizing a person like the technique described in Patent Document 1 (Japanese Patent Laid-Open No. 2000-30033) described above, or a method for acquiring the number of persons information described in Patent Document 3 (Japanese Patent Laid-Open No. 2004-145563) Can be adopted as appropriate. A dedicated circuit may be provided for the multi-person detection process, or the CPU 23 may execute a multi-person detection program.

輪郭抽出ブロック32は注目被写体(実施例ではフォーカスエリアを含む被写体)から人物の輪郭を抽出する。人物の輪郭抽出方法は公知の方法(例えば、特開平07−274067号公報や特開2004−297274号公報に記載の輪郭抽出方法)を適宜採用することができる。なお、輪郭抽出ブロック32は必須ではない。   The contour extraction block 32 extracts the contour of a person from the subject of interest (a subject including a focus area in the embodiment). A well-known method (for example, the contour extracting method described in Japanese Patent Application Laid-Open No. 07-274067 and Japanese Patent Application Laid-Open No. 2004-297274) can be appropriately employed as the method for extracting a person's contour. The contour extraction block 32 is not essential.

上述した各ブロックはCPU23によって制御されており、CPU23が各ブロックの制御に必要とされるプログラムやデータはEEPROMやフラッシュメモリ等の書き換え可能な不揮発性メモリであるプログラムメモリ29に記憶されている。そしてCPU23は上記プログラムおよびキー入力ブロック28からのキー入力信号に基づき動作することにより、本発明の選択手段、人数情報取得手段、静止画生成手段、制御手段として機能する。なお、プログラムメモリ29にはユーザによって設定されたシステムや各機能に関する設定データも記憶されている。   Each block described above is controlled by the CPU 23, and programs and data required for the CPU 23 to control each block are stored in a program memory 29 which is a rewritable nonvolatile memory such as an EEPROM or a flash memory. The CPU 23 operates based on the program and the key input signal from the key input block 28, thereby functioning as the selection means, the number information acquisition means, the still image generation means, and the control means of the present invention. The program memory 29 also stores setting data related to the system and each function set by the user.

また、プログラムメモリ29は本発明のレイアウト情報記憶手段でもあり、プログラムメモリ29には前述した静止画出力モードの動作に際して使用されるレイアウトデータがそのエリア29aに格納されている。レイアウトデータは動画像の静止画像化に際して生成する静止画像のデザイン、つまり、中心画像のまわりに縮小して配置するピックアップ画像の数、大きさ、配置等を示すデータである(図6参照)。   The program memory 29 is also a layout information storage means of the present invention. The program memory 29 stores layout data used in the above-described still image output mode operation in its area 29a. The layout data is data indicating the design of a still image generated when a moving image is converted into a still image, that is, the number, size, arrangement, and the like of picked-up images to be reduced around the central image (see FIG. 6).

図3は動画から検出される多人数画像の表示方法の説明図であり、多人数画像として3人が写っている画像を動画中から検出する場合の表示例である。今、再生する動画中に、2人(コマ数i(1−1〜1−i)、0人(コマ数j(2−1〜1−j)、3人(コマ数k(3−1〜3−k)、2人(コマ数l(4−1〜4−l)、1人(コマ数m(5−1〜5−i)、4人(コマ数n(6−1〜1−n)、3人(コマ数p(7−1〜7−p)、0人(コマ数q(8−1〜1−q)の順にカメラの方を向いた人物が写っているものとする(但し、0人の場合は人物は写っていないコマである)。   FIG. 3 is an explanatory diagram of a display method of a multi-person image detected from a moving image, and is a display example when an image in which three people are captured as a multi-person image is detected from the moving image. In the moving image to be reproduced, 2 people (frame number i (1-1 to 1-i), 0 person (frame number j (2-1 to 1-j)), 3 people (frame number k (3-1) ~ 3-k), 2 persons (frame number l (4-1 to 4-l), 1 person (frame number m (5-1 to 5-i)), 4 persons (frame number n (6-1 to 1) -N) 3 people (number of frames p (7-1 to 7-p)), 0 people (number of frames q (8-1 to 1-q)) (However, in the case of 0 people, no person is shown in the frame).

多人数画像として3人がカメラの方を向いた画像を動画から検出する際は、コマ1−1〜2−j)には3人未満の人物しか写っていないため画像が表示されずにスキップされる。3人が写っているコマ3−1が検出されるとその位置で停止し、検出されたコマ3−1の画像が表示される。次にシャッターキー8を全押しするとk−1個のコマ3−2〜3−3kの画像が動画表示される。動画表示中にシャッターキー8が半押しされると押された時点の表示されていたコマで停止し、そのコマの画像が静止表示される。また、シャッターキー8を全押しすると動画表示を開始する。k−1個の動画表示が終了すると、コマ4−1〜6−nまでは3人未満の人物しか写っていないので画像の表示がスキップされ、3人が写っているコマ7−1が検出されるとその位置で停止し、コマ3−1の画像が静止画表示される。次にシャッターキー8の全押し操作によりp−1個のコマ7−2〜7−pの画像が動画表示される。動画表示中にシャッターキー8が半押しされると押された時点の表示されていたコマで停止し、そのコマの画像が静止表示される。また、シャッターキー8を全押しすると動画表示を開始する。なお、シャッターキー8を全押しすると表示中の動画像を停止させて静止表示し、シャッターキー8を半押しすると動画表示を開始するようにしてもよい。   When detecting an image with three people facing the camera as a multi-person image from a moving image, since only less than three persons are shown in frames 1-1 to 2-j), the image is skipped without being displayed. Is done. When a frame 3-1 in which three people are shown is detected, the frame stops at that position, and an image of the detected frame 3-1 is displayed. Next, when the shutter key 8 is fully pressed, an image of k-1 frames 3-2 to 3-3k is displayed as a moving image. If the shutter key 8 is pressed halfway during the moving image display, it stops at the frame that was displayed when it was pressed, and the image of that frame is displayed statically. When the shutter key 8 is fully pressed, the moving image display is started. When the display of k-1 moving images is completed, since only less than three persons are shown in the frames 4-1 to 6-n, the image display is skipped, and the frame 7-1 in which three people are shown is detected. Then, it stops at that position, and the image of frame 3-1 is displayed as a still image. Next, when the shutter key 8 is fully pressed, the images of the p-1 frames 7-2 to 7-p are displayed as moving images. If the shutter key 8 is pressed halfway during the moving image display, it stops at the frame that was displayed when it was pressed, and the image of that frame is displayed statically. When the shutter key 8 is fully pressed, the moving image display is started. Note that when the shutter key 8 is fully pressed, the displayed moving image is stopped and displayed statically, and when the shutter key 8 is pressed halfway, the moving image display may be started.

上記説明したように、指定された人数以外の画像については表示をスキップするようにしたことにより、静止画出力のための時間を節約できる。なお、指定された人数が写っている連続したコマを動画表示する場合に所定時間間隔毎にコマを移動させてスロー表示するようにしてもよい。このようにすれば、連続したコマの中から所望の画像を選択し易い。   As described above, it is possible to save time for outputting a still image by skipping the display of images other than the designated number of people. In addition, when displaying a continuous frame in which the designated number of people is shown as a moving image, the frame may be moved at a predetermined time interval and displayed slowly. In this way, it is easy to select a desired image from consecutive frames.

また、図3の例でカメラの方を向いた人物の数として「3人以上」を指定すると、動画はコマ3−1およびコマ6−1で停止する。また、カーソル操作により表示されたコマ3−1に続くk+l−1個のコマ3−2〜4−lの画像が動画表示される。同様に、コマ6−1で表示された画像に続くn+p−1個のコマ6−2〜7−pの画像が動画表示される。   In addition, when “3 or more” is designated as the number of persons facing the camera in the example of FIG. 3, the moving image stops at the frames 3-1 and 6-1. In addition, an image of k + 1−1 frames 3-2 to 4-l following the frame 3-1 displayed by the cursor operation is displayed as a moving image. Similarly, the images of n + p−1 frames 6-2 to 7-p following the image displayed in frame 6-1 are displayed as moving images.

上記図3の説明では、指定された人数以外の人物が写っている画像については画像表示をスキップするようにしたが、スキップさせず、動画表示するようにしてもよい。また、指定された人数が写っている連続したコマを動画表示せず、カーソル操作により1コマ1コマ送るようにしてもよい。このようにすると所望の画像がある場合に確実に選択できる。   In the description of FIG. 3 described above, the image display is skipped for an image in which a person other than the designated number of people is shown. However, the image may be displayed without being skipped. Alternatively, a continuous frame showing the designated number of people may be displayed one by one by a cursor operation without displaying a moving image. In this way, when there is a desired image, it can be surely selected.

図4は本実施形態に係わる静止画出力方法の説明図であり、図4(a)は動画から検出された多人数画像を示す。図示の例では画像41は選択された人数の画像として動画から最初に検出された画像である。また、図4(b)で画像45は生成される静止画におけるレイアウトの中心画像(ハイライトフレーム)としてカーソル操作によって選択された画像である。また、図4(c)は中心画像45の前後の画像(ピックアップ画像44、46)であり、静止画出力時にピックアップされる。図4(d)は生成される静止画を示し、ピックアップ画像の縮小画像47、48が選択されたレイアウト(図示の例では、左上隅、右上隅)で配置された静止画像49が表示される。   FIG. 4 is an explanatory diagram of a still image output method according to the present embodiment, and FIG. 4A shows a multi-person image detected from a moving image. In the illustrated example, the image 41 is an image first detected from the moving image as an image of the selected number of people. In FIG. 4B, an image 45 is an image selected by a cursor operation as a center image (highlight frame) of a layout in a generated still image. FIG. 4C shows images before and after the center image 45 (pickup images 44 and 46), which are picked up when a still image is output. FIG. 4D shows a generated still image, and a still image 49 arranged in a layout (upper left corner and upper right corner in the illustrated example) in which reduced images 47 and 48 of the pickup image are selected is displayed. .

図4の例ではピックアップ画像は前後各一つの画像としたが、前後の複数の画像をピックアップすることもできる。ピックアップする画像の数は静止画出力モード開始時にユーザが選択・設定することができる。また、ピックアップ画像は中心画像の直前・直後の画像とは限らず、中心画像より何コマか離れた画像でもよい。なお、ピックアップする画像の数によってレイアウトが異なる(図6参照)。   In the example of FIG. 4, the pickup image is one image before and after, but a plurality of images before and after can be picked up. The number of images to be picked up can be selected and set by the user at the start of the still image output mode. Further, the picked-up image is not limited to the image immediately before and immediately after the central image, and may be an image several frames away from the central image. The layout varies depending on the number of images to be picked up (see FIG. 6).

図5は本実施形態に係わる静止画出力時のCPUによる制御動作を示すフローチャートである。このフローチャートはデジタルカメラ100に本発明の多人数画像検出機能および静止画像出力機能を実現させるためのプログラムを説明するためのものである。
以下に示す処理は基本的にCPUが予めフラッシュメモリ等のプログラムメモリに記憶されたプログラムに従って実行する例で説明するが、全ての機能をプログラムメモリに格納する必要はなく、必要に応じて、その一部若しくは全部をネットワークを介して受信して実現するようにしてもよい。以下、図1〜図6に基いて説明する。なお、図5に示すフローチャートでは動画再生モードを例として説明するが、本発明の適用範囲は動画再生モードに限定されず、例えば、前述した高速連写モードで撮影した連続撮影画像(高速連写画像)の再生時における静止画像出力にも適用できる。
FIG. 5 is a flowchart showing the control operation by the CPU when outputting a still image according to the present embodiment. This flowchart is for explaining a program for causing the digital camera 100 to realize the multi-person image detection function and the still image output function of the present invention.
The following processing is basically explained by an example in which the CPU executes in accordance with a program stored in a program memory such as a flash memory in advance, but it is not necessary to store all functions in the program memory. You may make it implement | achieve by receiving a part or all through a network. Hereinafter, description will be given with reference to FIGS. In the flowchart shown in FIG. 5, the moving image playback mode will be described as an example. However, the scope of the present invention is not limited to the moving image playback mode. For example, continuous shooting images (high-speed continuous shooting) captured in the high-speed continuous shooting mode described above are used. It can also be applied to still image output during playback of (image).

図5で、動画再生モード選択後、静止画出力モードが選択されると、CPU23は記録メディア30に記録されている各動画ファイルの代表画像(通常は先頭フレームの縮小画像)をLCD22に一覧表示させ、ユーザに所定のキー操作(たとえば、カーソルキー5の操作)により、所望の動画ファイルを選択させる(ステップS1)。   In FIG. 5, when the still image output mode is selected after selecting the moving image playback mode, the CPU 23 displays a list of representative images (usually reduced images of the first frame) of each moving image file recorded on the recording medium 30 on the LCD 22. The user is allowed to select a desired moving image file by a predetermined key operation (for example, an operation of the cursor key 5) (step S1).

次に、CPU23はLCD22に人数入力用のウインドウを表示し、1コマに写っている人数の指定(選択入力)を促し、キー入力ブロック28からの信号を調べて指定された人数を取得し、内蔵メモリ24に保持(一時記憶)する(ステップS2)。人数は実施例では2人以上を指定できる。また、無指定(ENTERキーの押し下げ)の場合は3人以上が指定されたものとする。なお、図示しない人数入力用のウインドウには、指定可能な人数(たとえば、2人、3人、4人、5人、・・・10人、2人以上、3人以上、4人以上、5人以上、・・・、10人以上)が表示され、ユーザは表示される人数のうち所望の人数をカーソルキー5の操作により指定できる。   Next, the CPU 23 displays a window for inputting the number of people on the LCD 22, prompts the designation (selection input) of the number of people shown in one frame, examines a signal from the key input block 28, acquires the designated number of people, It is held (temporarily stored) in the built-in memory 24 (step S2). In the embodiment, two or more people can be designated. In the case of no designation (pressing the ENTER key), it is assumed that three or more people are designated. In the window for inputting the number of people (not shown), the number of people that can be specified (for example, 2, 3, 4, 5,..., 10, 2, 3 or more, 4 or more, 5 or more, The user can specify a desired number of persons among the displayed numbers by operating the cursor keys 5.

CPU23は、メディアコントローラ20を制御して選択された動画ファイルのフレーム画像を記録メディア30から読み出してデータ圧縮・伸張ブロック19で伸張させて画像データを再生し(ステップS3)、人数検出ブロック31を制御して上記ステップS3で再生した画像データから顔領域を抽出させ、抽出させ顔領域の数のカウントを行わせてそのコマの中でカメラの方を向いている人物像の数情報(人数情報)を取得し(ステップS4)、取得した人数情報と上記ステップS2で指定された人数と比較し、取得した人数が指定された人数である場合はステップS6に進み、そうでない場合は次の動画フレームデータの再生を行うためにステップS3に戻る(ステップS5)。   The CPU 23 controls the media controller 20 to read out the frame image of the selected moving image file from the recording medium 30 and decompress the data with the data compression / decompression block 19 to reproduce the image data (step S3). The face area is extracted from the image data controlled and reproduced in step S3, the number of face areas is extracted and counted, and the number information of person images facing the camera in the frame (number information) ) Is acquired (step S4), and the acquired number information is compared with the number of persons specified in step S2. If the acquired number of persons is the specified number of persons, the process proceeds to step S6. The process returns to step S3 to reproduce the frame data (step S5).

CPU23は、上記ステップS3で再生した画像データを内蔵メモリ24に動画像フレームデータとして展開してから表示コントローラ21を介してLCD22に表示させる(ステップS6)。これにより、選択された動画ファイルに記録されている動画像のうち、上記ステップ2で指定された人数の人物像が写っている最初のコマが静止表示される。   The CPU 23 develops the image data reproduced in step S3 as moving image frame data in the built-in memory 24, and then displays it on the LCD 22 via the display controller 21 (step S6). As a result, among the moving images recorded in the selected moving image file, the first frame in which the number of person images specified in step 2 is captured is displayed stationary.

ユーザはシャッターキー8を全押し(動画表示指示)することにより指定された数の人物がカメラの方を向いて写っているコマを動画表示できるので、CPU23はキー入力ブロック28からの信号を調べシャッターキー8が全押し操作された場合はステップS8に進み、そうでない場合はシャッターキー8の全押し操作を待つ(ステップS7)。   When the user fully presses the shutter key 8 (moving image display instruction), a frame in which a specified number of persons are shown facing the camera can be displayed as a moving image. Therefore, the CPU 23 checks the signal from the key input block 28. If the shutter key 8 has been fully pressed, the process proceeds to step S8. If not, the process waits for the shutter key 8 to be fully pressed (step S7).

CPU23は、メディアコントローラ20を制御し、選択された動画ファイルのフレーム画像を記録メディア30から読み出してデータ圧縮・伸張ブロック19で伸張させて画像データを再生し(ステップS8)、人数検出ブロック31を制御して上記ステップS3で再生した画像データから顔領域を抽出させ、抽出させた顔領域の数のカウントを行わせて人数情報を取得し(ステップS9)、取得した人数情報と上記ステップS2で指定された人数と比較し、取得した人数が指定された人数である場合はステップS11に進み、そうでない場合は次の動画フレームデータの再生を行うためにステップS8に戻る(ステップS10)。   The CPU 23 controls the media controller 20 to read out the frame image of the selected moving image file from the recording medium 30 and decompress the data with the data compression / decompression block 19 to reproduce the image data (step S8). The face area is extracted from the image data controlled and reproduced in step S3, and the number information of the extracted face areas is counted to obtain the number information (step S9). The obtained number information and the step S2 If the acquired number is the specified number, the process proceeds to step S11. If not, the process returns to step S8 to reproduce the next moving image frame data (step S10).

CPU23は、指定人数の(上記ステップS8で内蔵メモリ24に展開した)動画像フレームデータを表示コントローラ21を介してLCD22に順次表示させる(ステップS11)。   The CPU 23 sequentially displays the moving image frame data (developed in the built-in memory 24 in step S8) on the LCD 22 via the display controller 21 (step S11).

ユーザはシャッターキー8を半押しすると再生表示中の動画像を停止させてそのまま表示(つまり、静止表示)させることができるので、CPU23はキー入力ブロック28からの信号を調べ、シャッターキー8が半押しされた場合はステップS13に進み、そうでない場合はステップS8に戻る(ステップS12)。これによりこのコマの次からシャッターキー8が半押しされるまでは指定人数が写っている各コマが順次動画表示される。なお、このステップで、動画をスロー表示するようにしてもよく、更に、所定時間間隔毎に1コマずつ静止画表示するようにしてもよい。   When the user presses the shutter key 8 halfway, the moving image being played back can be stopped and displayed as it is (that is, still display), so the CPU 23 checks the signal from the key input block 28 and the shutter key 8 is halfway. If pushed, the process proceeds to step S13, and if not, the process returns to step S8 (step S12). As a result, each frame showing the designated number of people is sequentially displayed as a moving image until the shutter key 8 is pressed halfway after this frame. In this step, the moving image may be displayed in a slow manner, and a still image may be displayed one frame at a predetermined time interval.

シャッターキー8が半押しされるとCPU23は動画表示を停止するのでLCD22にはそのコマの静止画が表示される。ここで、ユーザはカーソルキー5の操作により静止画表示する画像を前のコマに戻したり、次のコマに進めることができるので、CPU23はキー入力ブロック28からの信号を調べ、カーソルキー5が操作された場合はカーソルキー5の操作に応じて画面を1コマずつ前に戻して静止表示したり、次のコマに進めて静止画表示する(ステップS13)。   When the shutter key 8 is pressed halfway, the CPU 23 stops displaying the moving image, so that the still image of the frame is displayed on the LCD 22. Here, since the user can return the image to be displayed as a still image to the previous frame or advance to the next frame by operating the cursor key 5, the CPU 23 checks the signal from the key input block 28, and the cursor key 5 When operated, the screen is moved back one frame at a time according to the operation of the cursor key 5 to display still images, or to the next frame to display still images (step S13).

CPU23はキー入力ブロック28からの信号を調べ、動画表示再開指示(シャッターキー8の全押し)があるとステップS3に戻り、中心画像の確定操作(たとえば、SETキー6の押し下げ)があるとステップS15に進む(ステップS14)。   The CPU 23 checks the signal from the key input block 28 and returns to step S3 if there is an instruction to resume moving image display (full depression of the shutter key 8), and if there is a center image confirmation operation (for example, depression of the SET key 6). The process proceeds to S15 (step S14).

CPU23は静止画出力時のレイアウトの中心画像の前後のコマとしてピックアップする画像の数の指定を促すメッセージ(例えば、「ピックアップする画像の数を指定してください」と指定可能な数をLCD22に表示し、ユーザがピックアップする画像数を選択するとその数を取得して保持し、ステップS16に進む(ステップS15)。   The CPU 23 displays on the LCD 22 a message that prompts the user to specify the number of images to be picked up as frames before and after the center image of the layout when outputting a still image (for example, “Please specify the number of images to be picked up”). When the user selects the number of images to be picked up, the number is acquired and held, and the process proceeds to step S16 (step S15).

CPU23は、上記ステップS8で取得した前後のフレーム画像の数に対応するレイアウトデータ(図6)をプログラムメモリ29から取り出してピックアップ画像表示枠を生成し(ステップS16)、生成したピックアップ画像表示枠をレイアウトデータの示す位置で、現在静止表示中の画像(中心画像)に重ねてLCD22に表示する(ステップS17)。   The CPU 23 extracts the layout data (FIG. 6) corresponding to the number of frame images before and after acquired in step S8 from the program memory 29 to generate a pickup image display frame (step S16), and the generated pickup image display frame is displayed. At the position indicated by the layout data, the image is displayed on the LCD 22 so as to be superimposed on the still image (center image) currently displayed (step S17).

次に、CPU23は内蔵メモリ24から、現在表示されている画像(中心画像)のフレーム画像を内蔵メモリ24の所定領域に保持(記憶)すると共に、前後のフレーム画像(ピックアップ画像)をステップS15で取得した前後のフレーム画像の数だけ取り出し(ステップS18)、上記ステップS18で生成したピックアップ画像表示枠のサイズに縮小して内蔵メモリ24の所定領域に保持(記憶)した後(ステップS19)、縮小したピックアップ画像を表示コントローラ22を介してLCD22に表示されているピックアップ画像表示枠内に表示する。これにより、図4(d)に示すような合成画像(静止画)が表示される(ステップS20)。上記縮小画像は、毎回作成しなくても予め用意されているサムネイル等を用いてもよい。   Next, the CPU 23 holds (stores) the frame image of the currently displayed image (center image) from the built-in memory 24 in a predetermined area of the built-in memory 24, and the previous and next frame images (pickup images) in step S15. The number of frame images acquired before and after is obtained (step S18), reduced to the size of the pickup image display frame generated in step S18 and held (stored) in a predetermined area of the built-in memory 24 (step S19), and then reduced. The picked-up image is displayed in a pick-up image display frame displayed on the LCD 22 via the display controller 22. Thereby, a composite image (still image) as shown in FIG. 4D is displayed (step S20). For the reduced image, a thumbnail or the like prepared in advance may be used without being created each time.

ユーザが確認入力を行う(例えば、SETキー6を押す)と静止画像生成指示が出たものとしてステップS24に進み、他のキー(例えば、カーソルキー5)が押されると変更(やり直し)指示があったものとしてステップS22に進む(ステップS21)。   When the user performs confirmation input (for example, presses the SET key 6), the process proceeds to step S24 assuming that a still image generation instruction is issued. When another key (for example, the cursor key 5) is pressed, a change (redo) instruction is issued. As a result, the process proceeds to step S22 (step S21).

変更指示があった場合は、上記ステップS14で取得した前後のフレーム画像の数に対応するレイアウトデータ(図6)を調べ、対応するレイアウトデータがない場合はステップS14に戻り(ステップS22)、対応するレイアウトデータがあった場合はそのレイアウトデータをプログラムメモリ29から取り出してピックアップ画像表示枠を生成し、ステップS17に戻る(ステップS23)。   If there is a change instruction, the layout data (FIG. 6) corresponding to the number of frame images before and after acquired in step S14 is checked. If there is no corresponding layout data, the process returns to step S14 (step S22). If there is layout data to be used, the layout data is taken out from the program memory 29 to generate a pickup image display frame, and the process returns to step S17 (step S23).

静止画像生成指示があった場合は、CPU23は内蔵メモリ24に保持した中心画像のフレーム画像(データ)と、上記ステップS19で内蔵メモリ24に保持した各縮小画像を合成して、LCD22に表示している静止画像と同じレイアウトの静止画像(データ)を生成し(ステップS24)、記録メディア30に上記ステップS2で保持した指定人数とステップS24で生成した静止画データを関連付けてそれぞれ記録し(ステップS25)、次の画像データがある場合はステップS3に戻り、そうでない場合は一連の処理を終了する(ステップS26)。なお、上記ステップS25で指定人数とステップS24で生成した静止画データ関連付けてそれぞれプリンタ等の外部処理装置に送信するようにしてもよい。   When there is a still image generation instruction, the CPU 23 combines the frame image (data) of the central image held in the built-in memory 24 with each reduced image held in the built-in memory 24 in step S19 and displays it on the LCD 22. Still images (data) having the same layout as the still images being generated are generated (step S24), and the specified number of persons held in step S2 and the still image data generated in step S24 are recorded in association with each other on the recording medium 30 (step S24). S25) If there is the next image data, the process returns to step S3, and if not, the series of processes is terminated (step S26). Note that the designated number of people in step S25 may be associated with the still image data generated in step S24 and transmitted to an external processing device such as a printer.

上記図5のフローチャートに示した制御動作により、ユーザは所望の人数の人物がカメラの方を向いた動画像の中から所望する画像を中心とした所定のレイアウトの静止画を生成して出力(記録またはプリンタ等や外部処理装置に送信)できるので、皆がカメラの方を向いて写っている画像を再生表示したり印刷したりすることができる。また、静止画の記録の際に人数情報も出力するので、印刷の際にその人数情報を基に人数分の写真を自動印刷することもできる。また、所望の人数の人物がカメラの方を向いた画像のみを表示するので、処理に要する時間が全体として短時間で済む。   Through the control operation shown in the flowchart of FIG. 5, the user generates and outputs a still image having a predetermined layout centered on a desired image from moving images in which a desired number of persons face the camera ( Recording or transmission to a printer or an external processing device), it is possible to reproduce and display or print an image taken by everyone facing the camera. Also, since the number of people information is also output at the time of recording a still image, it is possible to automatically print photographs for the number of people based on the number of people information at the time of printing. In addition, since only images with a desired number of persons facing the camera are displayed, the time required for the processing can be reduced as a whole.

なお、上記図5のフローチャートでは中心画像と前後の画像を合成した静止画を生成して出力するようにしたが、ステップS15〜S24を省略し、ステップS14を「CPU23はキー入力ブロック28からの信号を調べ、動画表示再開指示(シャッターキー8の全押し)があるとステップS3に戻り、出力画像の確定操作(たとえば、SETキー6の押し下げ)があると次のステップ(つまり、ステップS25の記録処理)に進む」としてもよい。   In the flowchart of FIG. 5, the still image obtained by combining the center image and the preceding and succeeding images is generated and output. However, steps S15 to S24 are omitted, and step S14 is changed to “CPU 23 from the key input block 28. The signal is checked, and if there is an instruction to resume moving image display (shutter key 8 is fully pressed), the process returns to step S3. If an output image is confirmed (for example, the SET key 6 is pressed), the next step (that is, step S25). It is also possible to proceed to “recording process”.

また、上記図5のフローチャートでは圧縮された動画データから静止画を出力する例について述べたが、圧縮されていない動画データから所定時間間隔のフレームデータを自動的に選択してそのフレーム画像を所定のレイアウトに配置した静止画を出力することもできる。   Further, in the flowchart of FIG. 5, an example in which a still image is output from compressed moving image data has been described. However, frame data at a predetermined time interval is automatically selected from uncompressed moving image data, and the frame image is determined in advance. Still images arranged in the layout can also be output.

また、上記図5のフローチャートに示す制御動作は、図5の各ステップおよびその説明で「動画」を「高速連写画」、「動画像」を「連写画像」とすれば高速連写画像からの静止画像生成を行う場合の制御フローとして適用できる。   In addition, the control operation shown in the flowchart of FIG. 5 includes the steps shown in FIG. 5 and the description thereof, assuming that “moving image” is “high-speed continuous shooting” and “moving image” is “continuous shooting image”. It can be applied as a control flow when a still image is generated from.

図6はフレームレイアウトの例およびレイアウトデータの説明図であり、図6(a)〜(e)はフレームレイアウトの例、図6(f)はプログラムメモリに格納されているレイアウトデータのデータ構造を示す図である。   6A and 6B are explanatory diagrams of frame layout examples and layout data. FIGS. 6A to 6E show frame layout examples, and FIG. 6F shows the data structure of layout data stored in the program memory. FIG.

前記図4の例では、ピックアップ画像の数が前後各1個のとき左上隅と右下隅にピックアップ画像の縮小画像を配したレイアウトを示したが、図6(a)はピックアップ画像の数が前後各1個のとき右上隅と左上隅にピックアップ画像の縮小画像71−1,71−2を配すようにした例であり、図6(b)はピックアップ画像の数が前後各1個のとき右上隅と左下隅にピックアップ画像の縮小画像71−1,71−2を配すようにした例であり、図6(c)はピックアップ画像の数が前後各2個のとき四隅にピックアップ画像の縮小画像71−1、71−2、72−1、72−2を配すようにした例、図6(d)はピックアップ画像の数が前後各3つのとき左右に3個ずつピックアップ画像の縮小画像71−1、71−2、71−3、72−1、72−2、72−3を配すようにした例、図6(e)はピックアップ画像の数が前後各3つのとき上下に3個ずつピックアップ画像の縮小画像71−1、71−2、71−3、72−1、72−2、72−3を配すようにした例である。なお、ピックアップ画像は中心画像の撮影時間より前後にタイミングをずらしたフレーム画像である。図示の例では中心画像の撮影時間より前後に1〜3個分のピックアップ画像を指定した場合のレイアウトを示したが、ピックアップ画像の数は前後に1〜3個ずつに限定されず、4個以上であってもよい。また、レイアウトはユーザが作成、登録できるようにしてもよい。   In the example of FIG. 4, a layout in which reduced images of pickup images are arranged at the upper left corner and the lower right corner when the number of pickup images is one each before and after is shown in FIG. 6A. FIG. 6B shows an example in which reduced images 71-1 and 71-2 of pickup images are arranged in the upper right corner and the upper left corner when there is one each, and FIG. 6B shows the case where the number of pickup images is one each before and after. In this example, reduced images 71-1 and 71-2 of pickup images are arranged in the upper right corner and the lower left corner. FIG. 6C shows the pickup images at the four corners when the number of pickup images is two each in the front and rear. FIG. 6D shows an example in which reduced images 71-1, 71-2, 72-1, and 72-2 are arranged. FIG. 6D shows a reduction of three pickup images on the left and right when the number of pickup images is three on the front and rear. Images 71-1, 71-2, 71-3, 72- , 72-2, 72-3, FIG. 6 (e) shows reduced images 71-1, 71-2 of picked-up images, three at the top and bottom when the number of picked-up images is three respectively. In this example, 71-3, 72-1, 72-2, and 72-3 are arranged. The pick-up image is a frame image whose timing is shifted before and after the photographing time of the central image. In the example shown in the drawing, the layout in the case where 1 to 3 pickup images are specified before and after the photographing time of the central image is shown. However, the number of pickup images is not limited to 1 to 3 before and after, but 4 It may be the above. The layout may be created and registered by the user.

また、図6(e)で、レイアウトデータ80は動画像の静止画像化に際して生成する静止画像のデザイン、つまり、ピックアップ画像の数81、ピックアップ画像から生成する縮小画像のサイズ82、縮小画像の配置位置(各縮小画像の中心座標)83等からなる)。なお、縮小画像の配置位置は各縮小画像の始点と終点の座標としてもよい。   In FIG. 6E, the layout data 80 is the design of a still image generated when a moving image is converted into a still image, that is, the number 81 of pick-up images, the size 82 of a reduced image generated from the pick-up image, and the arrangement of the reduced images. Position (center coordinates of each reduced image) 83 and the like). The arrangement position of the reduced image may be the coordinates of the start point and the end point of each reduced image.

なお、上記図5のフローチャートおよび図6では所定のレイアウトで規定された位置にレイアウトデータを表示するようにしたが、フォーカスエリアを含む被写体部分から輪郭抽出ブロック32(図2)によって人物の輪郭を抽出し、注目被写体部分を除く部分(背景部分等)に自動的フレーム画像表示枠を表示してレイアウトが像を表示するようにしてもよい。この場合、注目被写体部分の人物の輪郭が抽出されると、ユーザが選択・指定したピックアップ画像の数を基に画面内の注目被写体部分の人物を除く部分に指定した数のフレーム画像表示枠が自動的を生成・表示するようにし、フレーム画像表示枠のサイズは中心被写体人物左右の背景部分の面積やサイズを基に決定するようにする。   In the flowchart of FIG. 5 and FIG. 6, the layout data is displayed at a position defined by a predetermined layout. However, the contour of the person is extracted from the subject portion including the focus area by the contour extraction block 32 (FIG. 2). The frame image display frame may be automatically extracted and displayed on the portion (background portion or the like) excluding the target subject portion so that the layout displays the image. In this case, when the outline of the person of the target subject portion is extracted, the number of frame image display frames specified for the portion excluding the person of the target subject portion on the screen based on the number of picked-up images selected and designated by the user is displayed. Automatic generation and display are performed, and the size of the frame image display frame is determined based on the area and size of the background portion on the left and right of the central subject person.

(実施形態2)
上記実施形態1では動画から直接所望の人数の人物が写っている静止画を出力する例について説明したが、本実施形態では、動画の再生時若しくは撮影時に各コマの人物情報(写っている人物の数情報)を検出して各コマに対応付けて記録メディア30に記録しておき、静止画の出力時に用いる例について説明する。本実施形態で用いるカメラとして実施形態1のデジタルカメラ100を用いるものとする。以下、図1〜図4および図6〜図9を基に説明する。
(Embodiment 2)
In the first embodiment, an example of outputting a still image in which a desired number of persons are directly captured from a moving image has been described. However, in the present embodiment, the personal information of each frame (person who is captured) at the time of playing or shooting a moving image. The number information) is detected and recorded in the recording medium 30 in association with each frame, and is used when outputting a still image. Assume that the digital camera 100 of the first embodiment is used as a camera used in the present embodiment. Hereinafter, description will be made based on FIGS. 1 to 4 and FIGS. 6 to 9.

図7は実施形態2に係わる多人数静止画位置データの説明図であり、図7(a)は人数検出ブロック31によって検出された動画の各コマに写っているカメラの方を向いた人物の数の一例を示す図であり、1〜k+1コマまでを例示している。また、図7(b)は本実施形態で生成される多人数静止画位置データの一実施例であり、図7(a)の各コマに対応したものである。
多人数静止画位置データ90は動画の再生時若しくは撮影時に人数検出ブロック31で検出した各コマの人数情報(写っている人物の数情報)を検出して動画の記録時に各コマに対応付けて記憶される。図7(b)の例では多人数静止画位置データ90は図7(a)のコマ1〜k+1に対応して人数2、・・・・・2、0、・・・、0、3、・・・、3、2、・・・が記録されている。デジタルカメラ100は動画再生モードで静止画出力モードが選択され、多人数が選択されるとこの多人数静止画位置データ90を基に、指定された動画像データを読み出して出力(表示または印刷)することができる。
FIG. 7 is an explanatory view of the multi-person still image position data according to the second embodiment, and FIG. 7A shows a person facing the camera in each frame of the moving image detected by the number detection block 31. It is a figure which shows an example of a number, and illustrates from 1 to k + 1 frames. FIG. 7B is an example of multi-person still image position data generated in this embodiment, and corresponds to each frame in FIG. 7A.
The multi-person still image position data 90 detects the number information of each frame (number information of the number of people in the image) detected by the number detection block 31 at the time of playback or shooting of the moving image and associates it with each frame at the time of recording the moving image. Remembered. In the example of FIG. 7B, the multi-person still image position data 90 corresponds to the frames 1 to k + 1 of FIG. 7A, and the number of people 2,..., 2, 0,. ..., 3, 2, ... are recorded. The digital camera 100 reads out and outputs (displays or prints) specified moving image data based on the multi-person still image position data 90 when the still image output mode is selected in the moving image playback mode and a large number of people are selected. can do.

図8は多人数静止画位置データ生成機能を備えたデジタルカメラの静止画出力時のCPUによる制御動作を示すフローチャートである。
このフローチャートはデジタルカメラ100に本発明の多人数静止画位置データ記録機能(ステップT3〜ステップT7に相当)および静止画像出力機能を実現させるためのプログラムを説明するためのものである。
以下に示す処理は基本的にCPUが予めフラッシュメモリ等のプログラムメモリに記憶されたプログラムに従って実行する例で説明するが、全ての機能をプログラムメモリに格納する必要はなく、必要に応じて、その一部若しくは全部をネットワークを介して受信して実現するようにしてもよい。以下、図1〜図5、図6〜図8に基いて説明する。なお、図8に示すフローチャートでは動画再生モードを例として説明するが、本発明の適用範囲は動画再生モードに限定されず、例えば、前述した高速連写モードで撮影した連続撮影画像(高速連写画像)の再生時における静止画像出力にも適用できる。
FIG. 8 is a flowchart showing a control operation by the CPU when outputting a still image of a digital camera having a multi-person still image position data generation function.
This flowchart is for explaining a program for causing the digital camera 100 to realize the multi-person still image position data recording function (corresponding to Step T3 to Step T7) and the still image output function of the present invention.
The following processing is basically explained by an example in which the CPU executes in accordance with a program stored in a program memory such as a flash memory in advance, but it is not necessary to store all functions in the program memory. You may make it implement | achieve by receiving a part or all through a network. Hereinafter, description will be given based on FIGS. 1 to 5 and FIGS. In the flowchart shown in FIG. 8, the moving image playback mode will be described as an example. However, the scope of the present invention is not limited to the moving image playback mode. For example, continuous shooting images (high-speed continuous shooting) captured in the high-speed continuous shooting mode described above. It can also be applied to still image output during playback of (image).

図8で、動画再生モード選択後、静止画出力モードが選択されると、CPU23は記録メディア30に記録されている各動画ファイルの代表画像(通常は先頭フレームの縮小画像)をLCD22に一覧表示させ、ユーザに所定のキー操作(たとえば、カーソルキー5の操作)により、所望の動画ファイルを選択させる(ステップT1)。   In FIG. 8, when the still image output mode is selected after selecting the moving image playback mode, the CPU 23 displays a list of representative images (usually reduced images of the first frame) of each moving image file recorded on the recording medium 30 on the LCD 22. Then, the user is made to select a desired moving image file by a predetermined key operation (for example, operation of the cursor key 5) (step T1).

CPU23は記録メディア30の管理領域を調べ、上記ステップT1で選択された動画ファイルに関連付けられた人数情報(多人数静止画位置データ)の有無を判定し、人数情報が選択された動画ファイルに関連付けられて記録されている場合はステップT8に進む(ステップT2)。つまり、ステップT1で選択された動画ファイルに関連付けられて記録されている多人数静止画位置データがある場合は、下記ステップT3〜T7で動画ファイルから人数検出および多人数静止画位置データの記録処理を行わなくてもよいので、直ちにステップT8以下の静止画像出力動作を開始できる。   The CPU 23 checks the management area of the recording medium 30, determines the presence / absence of the number information (multi-person still image position data) associated with the moving image file selected in step T1, and associates the number information with the selected moving image file. If it has been recorded, the process proceeds to step T8 (step T2). That is, when there is multi-person still image position data recorded in association with the moving image file selected in step T1, the number of people detection from the moving image file and the multi-person still image position data recording process in the following steps T3 to T7 Therefore, the still image output operation after step T8 can be started immediately.

CPU23は、メディアコントローラ20を制御して選択された動画ファイルのフレーム画像を記録メディア30から読み出してデータ圧縮・伸張ブロック19で伸張させて画像データを再生し(ステップT3)、人数検出ブロック31を制御して上記ステップT3で再生した画像データから顔領域を抽出させ、抽出させた顔領域の数のカウントを行わせてそのコマの中でカメラの方を向いている人物像の数情報(人数情報)を取得し(ステップT4)、取得した人数情報を内蔵メモリ24に確保した多人数静止画位置記憶エリアに追加記憶する(ステップT5)。多人数静止画位置記憶エリアは多人数静止画位置データ90のように選択された動画のコマ数分の人数記憶領域分(図7(b)参照)のサイズを備えており、検出された人数が読み取られたコマと1対1に対応付けられて順次記憶される。   The CPU 23 controls the media controller 20 to read out the frame image of the selected moving image file from the recording medium 30, decompress the data with the data compression / decompression block 19, and reproduce the image data (step T 3). The face area is extracted from the image data controlled and reproduced in step T3, the number of extracted face areas is counted, and the number information (number of persons) of the person images facing the camera in the frame. Information) is acquired (step T4), and the acquired number information is additionally stored in the multi-person still image position storage area secured in the internal memory 24 (step T5). The multi-person still image position storage area has a size corresponding to the number of person storage areas (see FIG. 7B) for the number of frames of the selected moving image as in the multi-person still image position data 90, and the detected number of people. Are sequentially stored in a one-to-one correspondence with the read frames.

CPU23は上記ステップT3〜T5の動作を上記ステップT1で選択された動画ファイルの動画像データが終わるまで(つまり全コマを読み取るまで)繰り返し(ステップT6)、全データの処理が終わると内蔵メモリ24の多人数静止画位置記憶エリアに記憶した人数データを多人数静止画位置データとして、記録メディア30に記録されている動画ファイルのうち上記ステップT1で選択した動画ファイルと関連付けて記録メディア30に記録する(ステップT7)。   The CPU 23 repeats the operations in steps T3 to T5 until the moving image data of the moving image file selected in step T1 ends (that is, until all frames are read) (step T6). The number data stored in the multi-person still image position storage area is recorded on the recording medium 30 as the multi-person still image position data in association with the moving image file selected in step T1 among the moving image files recorded on the recording medium 30. (Step T7).

多人数静止画位置データがすでに存在しているか上記ステップT7で多人数静止画位置データの記録が終了すると、CPU23はLCD22に人数入力用のウインドウを表示し、1コマに写っている人数の指定(選択入力)を促し、キー入力ブロック28からの信号を調べて指定された人数を取得し、内蔵メモリ24に保持(一時記憶)する(ステップT8)。人数は実施例では2人以上を指定できる。また、無指定(ENTERキーの押し下げ)の場合は本実施例では3人以上が指定されたものとしているがこれに減退されない。なお、図示しない人数入力用のウインドウには、指定可能な人数(たとえば、2人、3人、4人、5人、・・・10人、2人以上、3人以上、4人以上、5人以上、・・・、10人以上)が表示され、ユーザは表示される人数のうち所望の人数をカーソルキー5の操作により指定できる。   When the multi-person still image position data already exists or when the recording of the multi-person still image position data is completed in step T7, the CPU 23 displays a window for inputting the number of persons on the LCD 22 and designates the number of persons in one frame. (Selection input) is prompted, the signal from the key input block 28 is examined, the designated number of persons is acquired, and held (temporarily stored) in the built-in memory 24 (step T8). In the embodiment, two or more people can be designated. In the case of no designation (depressing the ENTER key), it is assumed that three or more people are designated in this embodiment, but this is not reduced. In the window for inputting the number of people (not shown), the number of people that can be specified (for example, 2, 3, 4, 5,..., 10, 2, 3 or more, 4 or more, 5 or more, The user can specify a desired number of persons among the displayed numbers by operating the cursor keys 5.

次に、CPU23は記録メディア30に記録されている動画ファイルのうち上記ステップT1で選択された動画ファイルをオープンして読み取り可能状態にしてから(ステップT9)、上記ステップT1で選択された動画ファイルに関連付けて記録メディア30に記録されている各コマの人数情報(多人数静止画位置データ)を読み出して内蔵メモリ24に確保されている多人数静止画位置記憶エリアに記憶し(ステップT10)、多人数静止画位置記憶エリアに記憶されている人数情報を1コマ分取り出して上記ステップT8で指定された人数と比較し、人数が一致した場合はステップT12に進み、そうでない場合は次のコマの人数を比較するためにこのステップを繰り返す(ステップT11)。   Next, the CPU 23 opens the moving image file selected in step T1 among the moving image files recorded on the recording medium 30 to make it readable (step T9), and then selects the moving image file selected in step T1. The number information (multi-person still image position data) of each frame recorded in the recording medium 30 in association with is read and stored in the multi-person still image position storage area secured in the built-in memory 24 (step T10). The number of people information stored in the multi-person still image position storage area is extracted for one frame and compared with the number of people specified in step T8. If the number of people matches, the process proceeds to step T12. This step is repeated to compare the number of persons (step T11).

CPU23は、メディアコントローラ20を制御して上記ステップT9でオープンされた動画ファイルのフレーム画像のうち、上記ステップT8で指定された人数と写っている人物の人数が一致したコマのコマ番号と同じコマ番号のフレーム画像を記録メディア30から読み出してデータ圧縮・伸張ブロック19で伸張させた画像データを内蔵メモリ24にフレームデータとして展開してから表示コントローラ21を介してLCD22に表示させる(ステップT12)。これにより、選択された動画ファイルに記録されている動画像のうち、上記ステップ2で指定された人数の人物像が写っている最初のコマが静止画表示される。   The CPU 23 controls the media controller 20 and, among the frame images of the moving image file opened in step T9, the same frame number as the frame number of the frame in which the number of persons shown in step T8 matches the number of persons in the frame. The numbered frame image is read from the recording medium 30, and the image data expanded by the data compression / decompression block 19 is expanded as frame data in the internal memory 24 and then displayed on the LCD 22 via the display controller 21 (step T12). As a result, among the moving images recorded in the selected moving image file, the first frame in which the number of person images specified in step 2 is captured is displayed as a still image.

ユーザはシャッターキー8を全押し(動画表示指示)することにより指定された数の人物がカメラの方を向いて写っているコマを動画表示できるので、CPU23はキー入力ブロック28からの信号を調べシャッターキー8が全押し操作された場合はステップT14に進み、そうでない場合はシャッターキー8の全押し操作を待つ(ステップT13)。   When the user fully presses the shutter key 8 (moving image display instruction), a frame in which a specified number of persons are shown facing the camera can be displayed as a moving image. Therefore, the CPU 23 checks the signal from the key input block 28. If the shutter key 8 has been fully pressed, the process proceeds to step T14. If not, the process waits for the shutter key 8 to be fully pressed (step T13).

CPU23は多人数静止画位置記憶エリアに記憶されている人数情報を1コマ分取り出して上記ステップT8で指定された人数と比較し、人数が一致した場合はステップT15に進み、そうでない場合は次のコマの人数を比較するためにこのステップを繰り返す(ステップT14)。   The CPU 23 takes out the number of people information stored in the multi-person still image position storage area and compares it with the number of people designated in step T8. If the number of people matches, the process proceeds to step T15. This step is repeated in order to compare the number of the frames of (step T14).

CPU23は、メディアコントローラ20を制御して上記ステップT9でオープンされた動画ファイルのフレーム画像のうち、指定された人数と人数が一致したコマのコマ番号と同じコマ番号のフレーム画像を記録メディア30から読み出してデータ圧縮・伸張ブロック19で伸張させた画像データを内蔵メモリ24にフレームデータとして展開してから表示コントローラ21を介してLCD22に表示させる(ステップT15)。   The CPU 23 controls the media controller 20 to transmit a frame image having the same frame number as the frame number of the frame number that matches the designated number of persons from the recording medium 30 among the frame images of the moving image file opened in step T9. The image data read and decompressed by the data compression / decompression block 19 is expanded as frame data in the internal memory 24 and then displayed on the LCD 22 via the display controller 21 (step T15).

ユーザはシャッターキー8を半押しすると再生表示中の動画像を停止させてそのまま表示(つまり、静止表示)させることができるので、CPU23はキー入力ブロック28からの信号を調べ、シャッターキー8が半押しされた場合はステップT17に進み、そうでない場合はステップT14に戻る(ステップT16)。これによりこのコマの次からシャッターキー8が半押しされるまでの間は指定人数が写っている各コマが順次動画表示される。なお、このステップで、動画をスロー表示するようにしてもよく、更に、所定時間間隔毎に1コマずつ静止表示するようにしてもよい。   When the user presses the shutter key 8 halfway, the moving image being played back can be stopped and displayed as it is (that is, still display), so the CPU 23 checks the signal from the key input block 28 and the shutter key 8 is halfway. If pressed, the process proceeds to step T17, and if not, the process returns to step T14 (step T16). As a result, each frame showing the designated number of people is sequentially displayed as a moving image until the shutter key 8 is pressed halfway after the next frame. In this step, the moving image may be displayed slowly, and further, one frame may be displayed statically at predetermined time intervals.

シャッターキー8が半押しされるとCPU23は動画表示を停止するのでLCD22にはそのコマの静止画が表示される。ここで、ユーザはカーソルキー5の操作により静止表示する画像を前のコマに戻したり、次のコマに進めることができるので、CPU23はキー入力ブロック28からの信号を調べ、カーソルキー5が操作された場合はカーソルキー5の操作に応じて画面を1コマずつ前に戻して静止表示したり、次のコマに進めて静止画表示する(ステップT17)。   When the shutter key 8 is pressed halfway, the CPU 23 stops displaying the moving image, so that the still image of the frame is displayed on the LCD 22. Here, the user can return the image to be statically displayed to the previous frame or advance to the next frame by operating the cursor key 5, so that the CPU 23 checks the signal from the key input block 28 and the cursor key 5 operates. If it is, the screen is moved back one frame at a time according to the operation of the cursor key 5 to display still images, or advanced to the next frame to display still images (step T17).

CPU23はキー入力ブロック28からの信号を調べ、動画表示再開指示(シャッターキー8の全押し)があるとステップT14に戻り、中心画像の確定操作(たとえば、SETキー6の押し下げ)があるとステップT19に進む(ステップT18)。   The CPU 23 checks the signal from the key input block 28, and if there is an instruction to resume moving image display (full press of the shutter key 8), the CPU 23 returns to step T14, and if there is a center image confirmation operation (for example, pressing the SET key 6), the step. Proceed to T19 (step T18).

ステップT19〜T29までの動作は図5のステップS15〜S25の動作と同様である。但し、図5のステップS15〜S25までのステップ番号をT20〜T30に夫々対応させて読み替えるものとする)。ステップT29の記録処理が終了したあと、次の画像データがある場合はステップT12に戻り、そうでない場合は一連の処理を終了する(ステップT30)。   The operation from step T19 to T29 is the same as the operation from step S15 to S25 in FIG. However, the step numbers from step S15 to S25 in FIG. 5 are read in correspondence with T20 to T30, respectively. After the recording process in step T29 is completed, if there is next image data, the process returns to step T12. If not, the series of processes is terminated (step T30).

上記図8のフローチャートに示した動作により、実施形態1と同様の効果に加え、動画ファイルが多人数静止画位置データと関連付けられていない場合は多人数静止画位置データを生成するが、人数情報取得の際は動画表示を伴わないので短時間で済み、一回多人数静止画位置データを生成しておけば次回から、人数検出処理を伴うことなく直ちに多人数静止画像出力動作を開始できる。つまり、この場合の多人数静止画出力動作は人数検出処理を伴わないので実施形態1の静止画像出力動作より短時間で済む。   In addition to the same effects as in the first embodiment, the operation shown in the flowchart of FIG. 8 generates multi-person still image position data when the moving image file is not associated with multi-person still image position data. Since acquisition does not involve moving image display, it can be done in a short time, and once the multi-person still image position data is generated, the multi-person still image output operation can be started immediately without involving the number detection process. That is, since the multi-person still image output operation in this case does not involve the number-of-people detection process, the time is shorter than the still image output operation of the first embodiment.

また、上記図8のフローチャートに示した多人数静止画位置データ記録動作(ステップT3〜ステップT7)は動画撮影時に多人数静止画位置データを生成して動画に対応付けて記録メディア30に記録する場合にも適用することができる。たとえば、撮影した動画データの記録時に動画の各コマの人数を検出し、各動画のコマ検出した人数を対応付けた多人数静止画位置データを生成し、その多人数静止画位置データを記録する動画ファイルに関連付けて記録メディア30に記録するようにすればよい。   Further, the multi-person still image position data recording operation (steps T3 to T7) shown in the flowchart of FIG. 8 generates multi-person still image position data at the time of moving image shooting and records it on the recording medium 30 in association with the moving image. It can also be applied to cases. For example, when recording captured video data, the number of people in each frame of the video is detected, multi-person still image position data is generated in association with the number of detected frames in each video, and the multi-person still image position data is recorded. What is necessary is just to make it record on the recording medium 30 linked | related with a moving image file.

なお、上記図8のフローチャートでは中心画像と前後の画像を合成した静止画を生成して出力するようにしたが、ステップT19〜T28を省略し、ステップT18を「CPU23はキー入力ブロック28からの信号を調べ、動画表示再開指示(シャッターキー8の全押し)があるとステップT14戻り、出力画像の確定操作(たとえば、SETキー6の押し下げ)があると次のステップ(つまり、ステップT29の記録処理)に進む」としてもよい。   In the flowchart of FIG. 8, a still image obtained by synthesizing the center image and the preceding and succeeding images is generated and output. However, steps T19 to T28 are omitted, and step T18 is changed to “CPU 23 reads from the key input block 28. The signal is checked, and if there is an instruction to resume moving image display (shutter key 8 is fully pressed), the process returns to step T14. Proceed to processing).

また、上記図8のフローチャートでは圧縮された動画データから静止画を出力する例について述べたが、圧縮されていない動画データから所定時間間隔のフレームデータを自動的に選択してそのフレーム画像を所定のレイアウトに配置した静止画を出力することもできる。   In the flowchart of FIG. 8, an example in which a still image is output from compressed moving image data has been described. However, frame data at a predetermined time interval is automatically selected from uncompressed moving image data, and the frame image is determined in advance. Still images arranged in the layout can also be output.

また、上記図8のフローチャートに示す制御動作は、図8の各ステップおよびその説明で「動画」を「高速連写画」、「動画像」を「連写画像」とすれば高速連写画像からの静止画像生成を行う場合の制御フローとして適用できる。   Further, the control operation shown in the flowchart of FIG. 8 includes the steps shown in FIG. 8 and the description thereof, assuming that “moving image” is “high-speed continuous shooting” and “moving image” is “continuous shooting image”. It can be applied as a control flow when a still image is generated from.

上記実施形態1および実施形態2では、指定された数のみまたは指定された数以上の人物がカメラの方を向いて写っているコマ若しくは指定された数のみまたは指定された数以上の人物が写っているコマを出力(記録メディア30に記録したり、外部処理装置に送信)する場合、これらの画像を表示するようにしたが、これらの画像を全く表示することなく、記録メディア30から読み出したコマ(1動画フレーム分の画像データ)のうち条件に適合したコマのみを出力するようにしてもよい。   In the first embodiment and the second embodiment, only the designated number or more than the designated number of people are shown facing the camera, or only the designated number or more than the designated number of people are shown. These images are displayed when the current frame is output (recorded on the recording medium 30 or transmitted to the external processing device), but these images are read from the recording medium 30 without being displayed at all. Of the frames (image data for one moving image frame), only frames that meet the conditions may be output.

また、上記実施形態1および実施形態2では動画から検出する人数を指定するようにしたが、あらかじめ、設定された人数を「多人数」として検出時の多人数判定値とするようにしてもよい。 In the first embodiment and the second embodiment, the number of people to be detected from the moving image is designated. However, the number of people set in advance may be designated as “multiple people” and used as the multi-person determination value at the time of detection. .

以上、本発明のいくつかの実施例について説明したが本発明は上記各実施例に限定されるものではなく、種々の変形実施が可能であることはいうまでもない。例えば、カメラという用語は、デジタルカメラ等の電子カメラのほかやカメラ付き携帯電話機や撮像機能を有する情報機器などにも適用し得るものである。
また、一旦撮像した動画像を後で再生するときに今物の数などを取得しているが、撮像時にリアルタイムで取得するようにしてもよい。
As mentioned above, although several Example of this invention was described, it cannot be overemphasized that this invention is not limited to said each Example, A various deformation | transformation implementation is possible. For example, the term camera can be applied to an electronic camera such as a digital camera, a mobile phone with a camera, an information device having an imaging function, and the like.
In addition, the number of current items is acquired when a moving image once captured is later played back, but may be acquired in real time during imaging.

デジタルカメラの外観構成の一例を示す図である。It is a figure which shows an example of an external appearance structure of a digital camera. 図1に示したデジタルカメラのブロック図である。It is a block diagram of the digital camera shown in FIG. 動画から検出される多人数画像の表示方法の説明図である。It is explanatory drawing of the display method of the multi-person image detected from a moving image. 実施形態1に係わる静止画出力方法の説明図である。FIG. 3 is an explanatory diagram of a still image output method according to the first embodiment. 実施形態1に係わる静止画出力時のCPUによる制御動作を示すフローチャートである。3 is a flowchart illustrating a control operation by a CPU when outputting a still image according to the first embodiment. フレームレイアウトの例およびレイアウトデータの説明図である。It is explanatory drawing of the example of a frame layout, and layout data. 多人数静止画位置データの説明図である。It is explanatory drawing of multi-person still image position data. 多人数静止画位置データ生成機能を備えたデジタルカメラの静止画出力時のCPUによる制御動作を示すフローチャートである。It is a flowchart which shows the control operation by CPU at the time of still image output of the digital camera provided with the multi-person still image position data generation function.

符号の説明Explanation of symbols

13 CCD
19 データ圧縮・伸張ブロック
21 表示コントローラ
22 LCD
23 CPU29 プログラムメモリ
30 記録メディア
31 人数検出ブロック
32 輪郭抽出ブロック
54、56 ピックアップ画像
55 中心画像
61 輪郭
90 多人数静止画位置データ
100 デジタルカメラ
13 CCD
19 Data compression / decompression block 21 Display controller 22 LCD
23 CPU 29 Program memory 30 Recording medium 31 Number detection block 32 Outline extraction blocks 54 and 56 Pickup image 55 Center image 61 Outline 90 Multi-person still image position data 100 Digital camera

Claims (6)

動画を撮像する動画撮像手段と、
前記動画撮像手段によって撮像された動画を記録保存する動画記録手段と、
前記動画記録手段に記録されている動画を再生する画像再生手段と、
前記画像再生手段によって再生される動画の各コマ毎に人物の数を取得する人数情報取得手段と、
生成される静止画像のレイアウトの情報を複数記憶するレイアウト情報記憶手段と、
中心画像を選択する画像選択手段と、
前記レイアウト情報記憶手段に記憶されている複数のレイアウトの中から静止画生成に用いるレイアウトを選択するレイアウト選択手段と、
前記人数情報取得手段によって取得された人物数が所定数のコマである画像の中から前記画像選択手段によって選択された中心画像と他の動画像を前記レイアウト選択手段によって選択されたレイアウトに基づいて配置した静止画像の画像データを生成する静止画生成手段と、
を特徴とする撮像装置。
A moving image capturing means for capturing a moving image;
Moving image recording means for recording and storing the moving image captured by the moving image capturing means;
Image reproducing means for reproducing the moving image recorded in the moving image recording means;
Number-of-persons information acquisition means for acquiring the number of persons for each frame of the moving image reproduced by the image reproduction means;
Layout information storage means for storing a plurality of information on the layout of the generated still image;
Image selection means for selecting a central image;
Layout selection means for selecting a layout used for still image generation from a plurality of layouts stored in the layout information storage means;
Based on the layout selected by the layout selection unit, the central image selected by the image selection unit and the other moving images from among the images whose number of persons acquired by the number-of-persons information acquisition unit is a predetermined number of frames. Still image generating means for generating image data of the arranged still image;
An imaging apparatus characterized by the above.
前記人物の数は撮像装置に顔を向けた人物の数であることを特徴とする請求項1に記載の撮像装置。   The imaging apparatus according to claim 1, wherein the number of persons is the number of persons whose faces are directed to the imaging apparatus. 前記静止画生成手段によって生成された画像データを出力する出力手段を更に備えたことを特徴とする請求項1または2に記載の撮像装置。   The imaging apparatus according to claim 1, further comprising an output unit that outputs the image data generated by the still image generation unit. 前記所定数を設定する人数設定手段を備え、
前記人数設定手段によって設定される数は複数の数であることを特徴とする請求項1乃至3のいずれか1項に記載の撮像装置。
Comprising a number-of-people setting means for setting the predetermined number;
The imaging apparatus according to claim 1, wherein the number set by the number-of-persons setting unit is a plurality of numbers.
画像記録メモリを備えたコンピュータに、To a computer equipped with an image recording memory,
前記画像記録メモリに記録されている動画を再生する機能と、A function of playing back a moving image recorded in the image recording memory;
前記再生される動画の各コマ毎に人物の数を取得する機能と、A function of acquiring the number of people for each frame of the video to be played;
生成される静止画像のレイアウトの情報を複数記憶する機能と、A function for storing a plurality of information of the layout of the generated still image;
中心画像を選択する機能と、A function to select the center image,
前記記憶されている複数のレイアウトの中から静止画生成に用いるレイアウトを選択する機能と、A function for selecting a layout to be used for still image generation from the plurality of stored layouts;
前記取得された人物数が所定数のコマである画像の中から選択された中心画像と他の動画像を、選択されたレイアウトに基づいて配置した静止画像の画像データを生成する機能と、A function of generating image data of a still image in which a central image selected from images whose number of acquired persons is a predetermined number of frames and another moving image are arranged based on a selected layout;
を実行させるプログラム。A program that executes
請求項5に記載のプログラムを記憶したことを特徴とするコンピュータ読み取り可能な記憶媒体。A computer-readable storage medium storing the program according to claim 5.
JP2006047920A 2006-02-24 2006-02-24 Imaging apparatus, program, and storage medium Active JP4595832B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2006047920A JP4595832B2 (en) 2006-02-24 2006-02-24 Imaging apparatus, program, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2006047920A JP4595832B2 (en) 2006-02-24 2006-02-24 Imaging apparatus, program, and storage medium

Related Child Applications (1)

Application Number Title Priority Date Filing Date
JP2010161163A Division JP5045792B2 (en) 2010-07-16 2010-07-16 Imaging apparatus and program

Publications (3)

Publication Number Publication Date
JP2007226606A JP2007226606A (en) 2007-09-06
JP2007226606A5 JP2007226606A5 (en) 2009-04-02
JP4595832B2 true JP4595832B2 (en) 2010-12-08

Family

ID=38548360

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2006047920A Active JP4595832B2 (en) 2006-02-24 2006-02-24 Imaging apparatus, program, and storage medium

Country Status (1)

Country Link
JP (1) JP4595832B2 (en)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4209451B1 (en) 2007-08-31 2009-01-14 シャープ株式会社 Solar cell module
JP4506832B2 (en) 2007-12-28 2010-07-21 ソニー株式会社 Image processing apparatus, index generation apparatus, imaging apparatus, index generation method, and program
JP2010288015A (en) 2009-06-10 2010-12-24 Sony Corp Information processing device, information processing method, and information processing program
JP2011015054A (en) * 2009-06-30 2011-01-20 Nikon Corp Digital camera
JP6117621B2 (en) * 2013-06-05 2017-04-19 ソニー株式会社 Information processing apparatus, information processing method, and information processing program

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167110A (en) * 1999-12-08 2001-06-22 Matsushita Electric Ind Co Ltd Picture retrieving method and its device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2001167110A (en) * 1999-12-08 2001-06-22 Matsushita Electric Ind Co Ltd Picture retrieving method and its device

Also Published As

Publication number Publication date
JP2007226606A (en) 2007-09-06

Similar Documents

Publication Publication Date Title
KR101189980B1 (en) Recording device and method, reproduction device and method, and recording medium
US7417668B2 (en) Digital camera
JP4645685B2 (en) Camera, camera control program, and photographing method
JP4869270B2 (en) Imaging apparatus and image reproduction apparatus
US8767093B2 (en) Image-capturing device, image reproduction device, and image reproduction method
JPH104531A (en) Information processor
KR20040086610A (en) Imaging apparatus and method
TW200808044A (en) Imaging apparatus and computer readable recording medium
EP2573758B1 (en) Method and apparatus for displaying summary video
JP2007310813A (en) Image retrieving device and camera
WO2009028703A1 (en) Imaging device and imaging method
JP2006303961A (en) Imaging apparatus
KR101737086B1 (en) Digital photographing apparatus and control method thereof
JP4595832B2 (en) Imaging apparatus, program, and storage medium
JP4696921B2 (en) Image processing apparatus, still image generation method, program, and storage medium
JP4696614B2 (en) Image display control device and program
JP2007228453A (en) Imaging apparatus, reproduction device, program, and storage medium
JP5266701B2 (en) Imaging apparatus, subject separation method, and program
JP4992215B2 (en) Imaging apparatus and program
JP2011119936A (en) Photographing device and reproducing method
JP2004312218A (en) Digital camera and image reproducing apparatus
JP4760578B2 (en) Imaging apparatus, moving image shooting method, and moving image shooting control program
JP5045792B2 (en) Imaging apparatus and program
JP2015106843A (en) Imaging device, imaging control method and program
JP5195317B2 (en) Camera device, photographing method, and photographing control program

Legal Events

Date Code Title Description
RD04 Notification of resignation of power of attorney

Free format text: JAPANESE INTERMEDIATE CODE: A7424

Effective date: 20080515

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20090216

A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20090216

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20100415

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20100518

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20100716

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

A01 Written decision to grant a patent or to grant a registration (utility model)

Free format text: JAPANESE INTERMEDIATE CODE: A01

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20100906

R150 Certificate of patent or registration of utility model

Ref document number: 4595832

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R150

Free format text: JAPANESE INTERMEDIATE CODE: R150

FPAY Renewal fee payment (event date is renewal date of database)

Free format text: PAYMENT UNTIL: 20131001

Year of fee payment: 3