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

JP6586009B2 - Information processing apparatus, processing method, and program - Google Patents

Information processing apparatus, processing method, and program Download PDF

Info

Publication number
JP6586009B2
JP6586009B2 JP2015255243A JP2015255243A JP6586009B2 JP 6586009 B2 JP6586009 B2 JP 6586009B2 JP 2015255243 A JP2015255243 A JP 2015255243A JP 2015255243 A JP2015255243 A JP 2015255243A JP 6586009 B2 JP6586009 B2 JP 6586009B2
Authority
JP
Japan
Prior art keywords
image
images
still
frame
application
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
JP2015255243A
Other languages
Japanese (ja)
Other versions
JP2017117409A (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.)
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 JP2015255243A priority Critical patent/JP6586009B2/en
Publication of JP2017117409A publication Critical patent/JP2017117409A/en
Application granted granted Critical
Publication of JP6586009B2 publication Critical patent/JP6586009B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Editing Of Facsimile Originals (AREA)

Description

本発明は、情報処理装置、処理方法、およびプログラムに関する。   The present invention relates to an information processing apparatus, a processing method, and a program.

近年、フォトアルバム作成アプリケーションを使って、複数の静止画像をフォトアルバム用のテンプレートに自動的に配置して、フォトアルバムを自動生成する製品がある。そして、特許文献1には、複数の画像の特徴情報に基づいて、アルバムにおける複数の画像をレイアウトするアルバム作成方法が開示されている。   In recent years, there are products that automatically generate a photo album by automatically arranging a plurality of still images on a photo album template using a photo album creation application. Patent Document 1 discloses an album creation method for laying out a plurality of images in an album based on feature information of a plurality of images.

特開2007−312058号公報JP 2007-312058 A

しかしながら、特許文献1では、動画像に基づく画像、すなわち、動画から切り出した画像をレイアウトしたレイアウト画像を作成することはできない。   However, in Patent Document 1, it is not possible to create a layout image in which an image based on a moving image, that is, an image cut out from a moving image is laid out.

また、静止画像と動画像から抽出された画像とを含むレイアウト画像を自動的に作成しようとした場合、レイアウト画像を作成する際に必要な画像を抽出するのに時間を要する、という問題点もある。   Another problem is that when a layout image including a still image and an image extracted from a moving image is automatically created, it takes time to extract an image necessary for creating the layout image. is there.

本発明は、静止画像と動画像から抽出された画像とを高速で自動抽出することを目的とする。   An object of the present invention is to automatically extract a still image and an image extracted from a moving image at high speed.

上記課題を解決するために、本願発明は以下の構成を有する。すなわち、情報処理装置であってユーザからの指示に基づき、動画像と静止画像とを含む画像群を取得する取得手段と、前記取得手段により取得された画像群に含まれる前記動画像から抽出されるフレーム画像と前記静止画像とを含む画像の数閾値より多いか判定する判定手段と、前記判定手段により前記画像の数が前記閾値より多いと判定された場合、前記取得手段により取得された画像群のうち一部の画像をレイアウトの処理対象として評価する特定モードで処理を実行することを決定する決定手段と、前記特定モードにおいて、予め定められた参照値に基づき、前記取得手段により取得された画像群から選択する前記フレーム画像と前記静止画像とを含む画像総数を特定する特定手段と、前記決定手段により前記特定モードで処理を実行すると決定された場合、前記取得手段により取得された画像群に含まれる動画像から、第1所定数の動画像と、第2所定数の静止画像を選択する選択手段と、前記選択手段により選択された動画像から複数のフレーム画像を生成する生成手段と、を有し、前記選択手段により選択される静止画像及び前記生成手段により生成されるフレーム画像の総数は、前記特定手段により特定された画像総数以下である。 In order to solve the above problems, the present invention has the following configuration. That is, based on the instruction from the user an information processing apparatus, an acquisition unit configured to acquire an image group including the moving images and still images are extracted from the moving image included in the image group acquired by the acquisition unit the number of images including a frame image and the said still image that, if the determination means or larger than the threshold, the number of the images by the determination means is determined greater than the threshold value, it is acquired by the acquisition unit and determining means for determining to perform the process in a specific mode evaluated by a part of the image processed by the layout of the image group, in the special mode based on the reference value set in advance, the acquisition specifying means for specifying the total number of images containing said frame image and the still image selected from the image group acquired by the means, treated with the specific mode by the determination unit If a determination is made to run, from the moving image included in the acquired images by the acquisition unit, and the moving image of the first predetermined number, selection means for selecting a second predetermined number of still images, the selection means anda generating means for generating a plurality of frame images from the moving image selected by the total number of frame images that will be generated by the still image and the generation unit that will be selected by the selection means, specified by the specifying means It has been is the total number of images or less.

本発明によれば、静止画像と動画像から抽出された画像とを高速で自動抽出することができる。   According to the present invention, a still image and an image extracted from a moving image can be automatically extracted at high speed.

情報処理装置を含むシステムの構成の例を示す図。1 is a diagram illustrating an example of a configuration of a system including an information processing device. PCのハードウェア構成の例を示す図。The figure which shows the example of the hardware constitutions of PC. PCのソフトウェア構成の例を示す図。The figure which shows the example of the software configuration of PC. アプリケーションの画面の構成例を示す図。The figure which shows the structural example of the screen of an application. フォトアルバムの自動作成処理を示すフローチャート。The flowchart which shows the automatic creation process of a photo album. フォトアルバムの自動作成処理を示すフローチャート。The flowchart which shows the automatic creation process of a photo album. 静止画像の分類処理を示すフローチャート。The flowchart which shows the classification process of a still image. 動画像から静止画像を抽出する処理を示すフローチャート。The flowchart which shows the process which extracts a still image from a moving image. フォトアルバムの自動作成処理を示すフローチャート。The flowchart which shows the automatic creation process of a photo album. フォトアルバムの構成例を表す図。The figure showing the structural example of a photo album. レイアウトテンプレートの構成例を示す図。The figure which shows the structural example of a layout template. レイアウトテンプレートのスロットの管理方法を説明するための図。The figure for demonstrating the management method of the slot of a layout template. スロットと静止画像の配置の関係を示す図。The figure which shows the relationship between arrangement | positioning of a slot and a still image. 静止画像のスコアを示す図。The figure which shows the score of a still image. スロットの位置情報を示す図。The figure which shows the positional information on a slot. 動画像から静止画像を取得する処理を示すフローチャート。The flowchart which shows the process which acquires a still image from a moving image. 静止画像と動画像の関連付けと静止画像の分類とを示す図。The figure which shows the correlation of a still image and a moving image, and the classification | category of a still image. 動画像を構成するフレームの例を示す図。The figure which shows the example of the flame | frame which comprises a moving image. 画像数のテーブルの構成例を示す図。The figure which shows the structural example of the table of the number of images. フォトアルバム自動作成用の画像群を抽出する処理を示すフローチャート。The flowchart which shows the process which extracts the image group for photo album automatic creation. 高速モードへの移行を促すメッセージの画面の構成例を示す図。The figure which shows the structural example of the screen of the message which prompts the transfer to high speed mode. 高速モードへの移行を判定するテーブルの構成例を示す図。The figure which shows the structural example of the table which determines the transfer to high speed mode.

以下、添付図面を参照して本発明の実施形態を詳しく説明する。尚、以下の実施形態は特許請求の範囲に係る本発明を限定するものでなく、また本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。なお、同一の構成要素には同一の参照番号を付して、説明を省略する。   Hereinafter, embodiments of the present invention will be described in detail with reference to the accompanying drawings. The following embodiments do not limit the present invention according to the claims, and all combinations of features described in the embodiments are not necessarily essential to the solution means of the present invention. . The same constituent elements are denoted by the same reference numerals, and the description thereof is omitted.

<第1の実施形態>
図1は、情報処理装置を含んで構成されるフォトアルバム作成/注文システムの構成の一例を示す図である。図1において、情報処理装置1及び2は、例えば、一般的なパーソナルコンピュータまたはサーバー(以下、PCと略す場合がある)で構成される。PC1、PC2は、図2で後述するようなハードウェアで構成される。本実施形態では、各PCには、Operating System(以下、OSと略す場合がある)としてWindows(登録商標)8またはWindows(登録商標) Server 2012と同等のOSがインストールされているものとする。PC1、PC2は、例えば、それぞれEthernet(登録商標)で構成されるネットワーク4及び8に接続されている。
<First Embodiment>
FIG. 1 is a diagram illustrating an example of a configuration of a photo album creation / order system configured to include an information processing apparatus. In FIG. 1, the information processing apparatuses 1 and 2 are configured by, for example, a general personal computer or a server (hereinafter sometimes abbreviated as a PC). PC1 and PC2 are configured by hardware as will be described later with reference to FIG. In the present embodiment, it is assumed that an OS equivalent to Windows (registered trademark) 8 or Windows (registered trademark) Server 2012 is installed in each PC as an operating system (hereinafter sometimes abbreviated as OS). The PC1 and PC2 are connected to networks 4 and 8, respectively configured by Ethernet (registered trademark), for example.

フォトアルバム作成アプリケーション80(以下、アプリケーションと略す場合がある)は、例えば、Windows(登録商標)用の実行可能形式のファイル(*.EXE)で構成される。Webブラウザアプリケーション143(以下、Webブラウザと略す場合がある)は、WWW(World Wide Web)を利用する際に用いられるブラウザである。ネットワーク4は、PC1を使用するユーザ(顧客等)が住んでいる自宅に構築された一般家庭用のホームネットワークである。ネットワーク8は、ABC社の拠点内に構築されたオフィスネットワークである。   The photo album creation application 80 (hereinafter may be abbreviated as an application) is composed of an executable file (* .EXE) for Windows (registered trademark), for example. The web browser application 143 (hereinafter may be abbreviated as “web browser”) is a browser used when using WWW (World Wide Web). The network 4 is a home network for a general home built at a home where a user (customer or the like) who uses the PC 1 lives. The network 8 is an office network constructed in the ABC company base.

ネットワーク8に接続されているPC2は、Webサーバの機能を備えるWebサーバ9を含み、インターネットを介してABC社のWebサイトを提供する。ショッピングサイト11は、ABC社がユーザ向けにサービスを提供しているショッピングサイトであり、ユーザはショッピングサイト11を利用してフォトアルバムを注文することができる。   The PC 2 connected to the network 8 includes a Web server 9 having a Web server function, and provides an ABC company Web site via the Internet. The shopping site 11 is a shopping site provided by ABC Company for users, and the user can order a photo album using the shopping site 11.

図2は、PCのハードウェア構成の一例を表す図である。PC1及びPC2は、図2に示すようなハードウェアを含む。図2に示す通り、PC1及びPC2は、ランダムアクセスメモリ部であるRAM201、ハードディスクドライブ部であるHDD202、キーボード部であるKBD203、及びCPU204を含む。更に、PC1及びPC2は、表示用ディスプレイであるLCD205、及びネットワークボードであるNB207を含む。更に、PC1及びPC2は、少なくとも図2に示す各ブロックを互いに通信可能に接続するバス206を含む。HDD202は、不揮発性の記憶部である。なお、可搬性CD−ROMまたは内部据付のROM等が記憶部として用いられてもよい。KBD203は、PC1及びPC2の入力部である。CPU204は、PC1及びPC2の制御部である。LCD205は、PC1及びPC2の表示部である。NB207は、PC1及びPC2の通信制御部である。   FIG. 2 is a diagram illustrating an example of a hardware configuration of a PC. PC1 and PC2 include hardware as shown in FIG. As illustrated in FIG. 2, the PC 1 and the PC 2 include a RAM 201 that is a random access memory unit, an HDD 202 that is a hard disk drive unit, a KBD 203 that is a keyboard unit, and a CPU 204. Further, the PC 1 and the PC 2 include an LCD 205 that is a display for display and an NB 207 that is a network board. Furthermore, PC1 and PC2 include a bus 206 that connects at least the blocks shown in FIG. The HDD 202 is a nonvolatile storage unit. Note that a portable CD-ROM, an internally installed ROM, or the like may be used as the storage unit. KBD 203 is an input unit of PC1 and PC2. The CPU 204 is a control unit for the PC1 and PC2. The LCD 205 is a display unit of the PC1 and PC2. The NB 207 is a communication control unit for the PC1 and PC2.

フォトアルバム作成アプリケーション80やWebブラウザ143等のアプリケーション、および、図3に示す各モジュール(ソフトウェア)は、例えばHDD202に記憶され、必要に応じてRAM201に読み出されてCPU204により実行される。これにより、CPU204が、各種アプリケーション(ソフトウェア)の機能を実現する。   The application such as the photo album creation application 80 and the web browser 143 and each module (software) shown in FIG. 3 are stored in, for example, the HDD 202, read into the RAM 201 as necessary, and executed by the CPU 204. As a result, the CPU 204 realizes functions of various applications (software).

図3は、PCのソフトウェアのモジュール構成の一例を表す図である。図3において、モジュール92は、Ethernet(登録商標)を制御するEthernet(登録商標)制御スタックである。モジュール91は、IP Networkを制御するIP Network制御スタックである。モジュール90は、ネットワーク上のデバイス探索の仕組みを提供するWSD(Web Service on Devices)を制御するWSD制御スタックである。モジュール88は、ネットワークのプラグアンドプレイを制御するPnP−X制御スタックである。尚、PnP−Xとは、ネットワーク接続デバイスに対するサポートを提供する、プラグアンドプレイの一連の拡張機能としてWindows(登録商標)8 OSに標準搭載されている機能であるPlug and Play Extensionsの略称である。モジュール85は、デバイスドライバ群であり、OSに標準で同梱されている標準ドライバ群87と、IHV(Independent Hardware Vendor)から提供されるIHV製ドライバ群86とを含んで構成される。   FIG. 3 is a diagram illustrating an example of a module configuration of PC software. In FIG. 3, a module 92 is an Ethernet (registered trademark) control stack for controlling Ethernet (registered trademark). The module 91 is an IP network control stack that controls the IP network. The module 90 is a WSD control stack for controlling WSD (Web Service on Devices) that provides a device search mechanism on the network. The module 88 is a PnP-X control stack that controls plug and play of the network. Note that PnP-X is an abbreviation for Plug and Play Extensions, which is a standard function installed in the Windows (registered trademark) 8 OS as a series of plug-and-play extended functions that provide support for network-connected devices. . The module 85 is a device driver group, and includes a standard driver group 87 that is bundled with the OS as a standard, and an IHV driver group 86 provided by IHV (Independent Hardware Vendor).

モジュール84は、アプリケーション/DDIインタフェースであり、API(Application Programing Interface)、DDI(Device Driver Interface)を含んで構成される。モジュール80は、例えば、フォトアルバム作成アプリケーションであり、モジュール143は、例えば、Webブラウザアプリケーションである。モジュール82は、アプリケーション群であり、フォトアルバム作成アプリケーション80、Webブラウザ143等を含んで構成される。   The module 84 is an application / DDI interface, and includes an API (Application Programming Interface) and a DDI (Device Driver Interface). The module 80 is, for example, a photo album creation application, and the module 143 is, for example, a web browser application. The module 82 is an application group and includes a photo album creation application 80, a Web browser 143, and the like.

図4は、各種アプリケーションの画面の構成例を示す図である。図4(a)は、アプリケーション80のメイン画面の一例を示す。図4(b)は、アプリケーション80のプレビュー/編集画面の一例を示す。図4(c)は、Webブラウザ143で表示されるフォトアルバムの注文画面の一例を示す。   FIG. 4 is a diagram illustrating a configuration example of a screen of various applications. FIG. 4A shows an example of the main screen of the application 80. FIG. 4B shows an example of the preview / edit screen of the application 80. FIG. 4C shows an example of a photo album order screen displayed on the Web browser 143.

図4(a)に示すメイン画面401は、アプリケーション80のメイン画面である。フォトアルバムタイプ選択部402は、フォトアルバムタイプの選択部であり、フォトアルバムタイプの選択を受け付けるための選択ボタンが表示される。本実施形態では、フォトアルバムタイプとしては、作成するフォトアルバムの種類としてタイプK、タイプMのいずれかを選択することができ、ページ数として20、30、40、50、60ページのいずれかを選択することができる。なお、アルバムの種類としては、例えば、形状、用紙の種類、綴じ方、カバーの材質等が挙げられる。図4(a)では、タイプKの20ページ、タイプMの50ページが表示された状態を示しているが、フォトアルバムタイプ選択部402をスクロールすることで、これ以外の種類のフォトアルバムを表示することができ、ユーザはこれらのうちいずれかを選択することができる。ボタン403は、タイプKの20ページのフォトアルバムの選択を受け付ける為のフォトアルバムの選択ボタンである。タイプKの20ページのフォトアルバムは、例えば、次のようなフォトアルバムである。   A main screen 401 shown in FIG. 4A is a main screen of the application 80. The photo album type selection unit 402 is a photo album type selection unit, and displays a selection button for accepting selection of the photo album type. In this embodiment, as the photo album type, either type K or type M can be selected as the type of photo album to be created, and any of 20, 30, 40, 50, 60 pages can be selected as the number of pages. You can choose. Examples of the album type include a shape, a paper type, a binding method, and a cover material. FIG. 4A shows a state in which 20 pages of type K and 50 pages of type M are displayed, but by scrolling the photo album type selection unit 402, other types of photo albums are displayed. And the user can select one of these. A button 403 is a photo album selection button for accepting selection of a type K 20-page photo album. The 20-page photo album of type K is, for example, the following photo album.

形状: 15cm×15cm スクエア
ページ数: 20ページ
用紙の種類: サテン
綴じ方: 2つ折り
カバー: ソフト
Shape: 15cm x 15cm Square Number of pages: 20 pages Paper type: Satin Binding method: Folded Cover: Soft

ボタン404は、タイプMの50ページのフォトアルバムの選択を受け付ける為のフォトアルバムの選択ボタンである。タイプMの50ページのフォトアルバムは、例えば、次のようなフォトアルバムである。   A button 404 is a photo album selection button for accepting selection of a 50-page photo album of type M. The type M 50-page photo album is, for example, the following photo album.

形状: A4(210mm×297mm) 縦
ページ数: 50ページ
用紙の種類: 光沢
綴じ方: フラット
カバー: ハード
Shape: A4 (210mm x 297mm) Vertical Number of pages: 50 pages Paper type: Glossy Binding method: Flat Cover: Hard

マーク405は、フォトアルバム選択状態の表示マークであり、選択されているフォトアルバムに関連付けられているフォトアルバム選択ボタンを囲うように表示される。図4(a)は、ボタン403が押されてタイプKのフォトアルバムが選択されている状態を示している。なお、選択ボタンが選択されていることを識別可能に表示できるものであれば、マーク405に限定されるものではない。フォトアルバム作成ボタン412に対するユーザの押下が検出されると、アプリケーション80は、フォトアルバムの自動作成を開始する。動画像ファイル処理方法選択部406は、動画像ファイルに対する処理方法の選択部であり、動画像から静止画像を抽出する処理方法として、無効、自動、時間、シーン、テーマの何れかからのラジオボタンによる選択を受け付ける。   A mark 405 is a display mark in a photo album selection state, and is displayed so as to surround a photo album selection button associated with the selected photo album. FIG. 4A shows a state where the button 403 is pressed and a type K photo album is selected. Note that the mark 405 is not limited as long as the selection button can be displayed in an identifiable manner. When the user presses the photo album creation button 412 is detected, the application 80 starts automatic photo album creation. The moving image file processing method selection unit 406 is a processing method selection unit for moving image files. As a processing method for extracting a still image from a moving image, a radio button from any one of invalid, automatic, time, scene, and theme is used. Accepts selection by.

無効選択ボタン431は、動画像から静止画像を抽出する処理を無効とする機能が割り当てられている。無効選択ボタン431が押下された場合に動画像から静止画像を抽出する処理が無効となる。自動選択ボタン407は、動画像から静止画像を抽出する処理を有効とする機能が割り当てられている。動画像から静止画像を抽出する処理方法として、後述する図5に示す自動処理を実行する方法が対応している。時間選択ボタン408は、動画像から静止画像を抽出する処理を有効とする機能が割り当てられている。動画像から静止画像を抽出する処理方法として、後述する図8(a)に示すような撮影年月日時刻に基づく処理を実行する方法が対応している。シーン選択ボタン409は、動画像から静止画像を抽出する処理を有効とする機能が割り当てられている。動画像から静止画像を抽出する処理方法として、後述する図8(b)に示すような色、ヒストグラムをもとにしたシーン判定処理を実行する方法が対応している。テーマ選択ボタン410は、動画像から静止画像を抽出する処理を有効とする機能が割り当てられている。動画像から静止画像を抽出する処理方法として、後述する図8(c)に示すようなオブジェクトをもとにしたテーマ判定処理を実行する方法が対応している。   The invalidity selection button 431 is assigned a function for invalidating the process of extracting a still image from a moving image. When the invalidity selection button 431 is pressed, the process of extracting a still image from a moving image becomes invalid. The automatic selection button 407 is assigned a function that enables processing for extracting a still image from a moving image. As a processing method for extracting a still image from a moving image, a method for executing automatic processing shown in FIG. The time selection button 408 is assigned a function that enables processing for extracting a still image from a moving image. As a processing method for extracting a still image from a moving image, a method for executing processing based on the shooting date and time as shown in FIG. The scene selection button 409 is assigned a function for enabling processing for extracting a still image from a moving image. As a processing method for extracting a still image from a moving image, a method for executing a scene determination process based on a color and a histogram as shown in FIG. The theme selection button 410 is assigned a function that enables processing for extracting a still image from a moving image. As a processing method for extracting a still image from a moving image, a method for executing theme determination processing based on an object as shown in FIG.

ユーザが、静止画像ファイルまたは動画像ファイルが格納されているPC1内のフォルダ(不図示)、または1以上のファイルを選択すると、アプリケーション80は、選択されたフォルダ又はファイルを、フォトアルバムを作成する際に処理対象とする画像データ群の格納先または画像データ群として指定する。なお、PC1にSDカード等の不揮発性の外部メモリを装着することができる場合、この外部メモリも画像データ群の格納先として指定することができる。本実施形態では、外部メモリが指定された場合、動画像ファイル処理方法選択部406のデフォルト値は無効(無効選択ボタン431)が選択されている状態とする。SDカード等の不揮発性の外部メモリは、読み込み速度が遅く、動画像のような大きなサイズのファイルを読み込んだり、フォトアルバムを自動作成する際にPC内に一時的にコピーしたりする処理に多くの時間を要する場合があるためである。すなわち、動画像ファイル処理方法選択部406のデフォルト値を無効とすることにより、フォトアルバムに用いる画像の抽出の時間が長くなるのを抑制することができ、フォトアルバムが生成されるまでのユーザの待ち時間が長くなるのを抑制することができる。   When the user selects a folder (not shown) in the PC 1 in which a still image file or a moving image file is stored, or one or more files, the application 80 creates a photo album from the selected folder or file. At this time, it is designated as the storage destination or image data group of the image data group to be processed. When a non-volatile external memory such as an SD card can be attached to the PC 1, this external memory can also be designated as a storage location for the image data group. In the present embodiment, when an external memory is designated, the default value of the moving image file processing method selection unit 406 is in a state where invalid (invalid selection button 431) is selected. Non-volatile external memory such as an SD card is slow in reading speed, and is often used for reading large files such as moving images or for temporarily copying them to a PC when automatically creating a photo album. This is because it may take a long time. In other words, by invalidating the default value of the moving image file processing method selection unit 406, it is possible to suppress the time for extracting the images used for the photo album, and the user's time until the photo album is generated is reduced. It can suppress that waiting time becomes long.

上記の格納先として、SDカード等の不揮発性の外部メモリが選択されておらず、PC内のフォルダやファイルが選択されている場合、動画像ファイル処理方法選択部406のデフォルト値は自動(後述する自動選択ボタン407)が選択されている状態とする。これにより、動画像のような大きなサイズのファイルを高速に読み込めるケースでは、フォトアルバムを自動作成する際に、動画像を対象画像に含めることができる。なお、動画像は、ユーザが気に入っている場面である可能性が高く、動画像から切り出した画像をレイアウトすることにより、フォトアルバムのユーザの満足度を向上させることができる可能性が高まる。また、ユーザの操作性にも優れる。   When a non-volatile external memory such as an SD card is not selected as the storage destination and a folder or file in the PC is selected, the default value of the moving image file processing method selection unit 406 is automatically (described later). The automatic selection button 407) is selected. Thus, in a case where a large-sized file such as a moving image can be read at high speed, the moving image can be included in the target image when the photo album is automatically created. The moving image is highly likely to be a scene that the user likes, and by laying out an image cut out from the moving image, the possibility that the user satisfaction of the photo album can be improved increases. Moreover, it is excellent in user operability.

本実施形態では、フォトアルバムを作成する際に対象とする画像データ群の格納先として、Facebook(登録商標)等のSNSサイトに掲載されている画像が指定された場合、動画像を対象とせずに、静止画像だけを対象とする。これは、動画像のような大きなサイズのファイルをSNSサイトからインターネットを介してダウンロードすると、処理に多くの時間を要する場合があるためである。すなわち、動画像ファイル処理方法選択部406のデフォルト値を無効とすることにより、フォトアルバムに用いる画像の抽出の時間が長くなるのを抑制することができ、フォトアルバムが生成されるまでのユーザの待ち時間が長くなるのを抑制することができる。尚、例えば、インターネットを介したファイルダウンロードを高速に行えるような環境では、格納先として外部メモリが指定された場合、動画像ファイル処理方法選択部406のデフォルト値を無効(無効選択ボタン431)が選択されている状態とする。そして、ユーザの判断で自動(自動選択ボタン407)等を選択することで、動画像を対象にしてフォトアルバムを自動作成するようにしてもよい。   In the present embodiment, when an image posted on an SNS site such as Facebook (registered trademark) is designated as a storage destination of a group of image data targeted when creating a photo album, a moving image is not targeted. In addition, only still images are targeted. This is because when a large-sized file such as a moving image is downloaded from the SNS site via the Internet, a long time may be required for processing. In other words, by invalidating the default value of the moving image file processing method selection unit 406, it is possible to suppress the time for extracting the images used for the photo album, and the user's time until the photo album is generated is reduced. It can suppress that waiting time becomes long. For example, in an environment where file download via the Internet can be performed at high speed, when an external memory is designated as a storage destination, the default value of the moving image file processing method selection unit 406 is invalid (invalid selection button 431). The state is selected. Then, a photo album may be automatically created for moving images by selecting automatic (automatic selection button 407) or the like at the user's discretion.

ファイル選択ボタン411は、シーン選択ボタン409またはテーマ選択ボタン410が選択されている時に有効である。ユーザによるファイル選択ボタン411の押下を検出すると、ファイル選択画面(不図示)が表示され、ユーザによる静止画像ファイルの選択が可能になる。アプリケーション80は、ファイル選択画面(不図示)を介してユーザにより選択された静止画像ファイルを、アプリケーション80が使用するRAM201内のワークメモリに一時的に保存する。ユーザによるフォトアルバム作成ボタン412の押下を検出すると、アプリケーション80は、ワークメモリに一時的に保存されている静止画像ファイルに基づいて、シーン判定処理またはテーマ判定処理を実行する。フレーム抽出時間間隔指定部430は、ユーザから、1つの動画像から静止画像(フレーム)を抽出する枚数の指定を例えば1枚単位で受付可能である。尚、デフォルト値は、例えば40枚で設定されている。   The file selection button 411 is effective when the scene selection button 409 or the theme selection button 410 is selected. When it is detected that the user has pressed the file selection button 411, a file selection screen (not shown) is displayed, and the user can select a still image file. The application 80 temporarily stores a still image file selected by the user via a file selection screen (not shown) in a work memory in the RAM 201 used by the application 80. When detecting that the user presses the photo album creation button 412, the application 80 executes a scene determination process or a theme determination process based on the still image file temporarily stored in the work memory. The frame extraction time interval designation unit 430 can accept designation of the number of still images (frames) to be extracted from one moving image, for example, in units of one from the user. Note that the default value is set to 40 sheets, for example.

平均スロット数指定部434にて、ユーザは、フォトアルバムの見開き2ページに配置されるスロットの数、言い換えれば、配置される画像の数の平均値を1つ指定することができる。本実施形態では、2、6、10の中から1つ指定することができるものとし、平均スロット数指定部434で指定されている平均スロット数のデフォルト値は6とする。撮影日設定部432は、日付絞り込みチェックボックス433がチェックされている場合に有効となり、この場合、撮影日設定部432で設定されている期間に撮影された画像群(静止画像と動画像)がフォトアルバムを自動作成する際の対象となる。ここでの対象の画像群とは、フォトブックの作成に利用可能な画像群であることを意味する。日付絞り込みチェックボックス433のデフォルト値はチェックされている状態である。撮影日設定部432のデフォルト値は、フォトアルバムを自動作成する際に対象とする画像群の中で撮影日が最も新しい日から過去にさかのぼって30日間とする。なお、さかのぼる日数はこれに限定されないが、デフォルト値として所定の日数を予め設定しておく。このように所定の日数を設定することにより、フォトアルバムを自動作成する際に対象とする画像群に含まれる画像数を適切に保つことができる。具体的には、図20(b)で後述するシステム上限画像数を超える可能性を低くすることができる。これにより、フォトアルバムを高速に自動作成することができる。また、最も新しい日から所定の日数までの撮影日の画像群に基づいてフォトアルバムを生成することにより、ユーザがアルバムを作成しようとしたタイミングに適したアルバムを作成できる可能性が高くなる。   In the average slot number designation unit 434, the user can designate one number of slots arranged on the two spread pages of the photo album, in other words, one average value of the number of images arranged. In this embodiment, it is assumed that one of 2, 6, and 10 can be specified, and the default value of the average slot number specified by the average slot number specifying unit 434 is 6. The shooting date setting unit 432 is effective when the date narrowing check box 433 is checked. In this case, a group of images (still images and moving images) shot during the period set by the shooting date setting unit 432 is used. This is a target for automatically creating photo albums. The target image group here means an image group that can be used to create a photo book. The default value of the date narrowing check box 433 is checked. The default value of the shooting date setting unit 432 is set to 30 days from the date when the shooting date is the latest in the image group targeted when the photo album is automatically created. Although the number of days going back is not limited to this, a predetermined number of days is set in advance as a default value. By setting the predetermined number of days in this way, it is possible to appropriately maintain the number of images included in the target image group when automatically creating a photo album. Specifically, it is possible to reduce the possibility of exceeding the system upper limit image number described later with reference to FIG. Thereby, a photo album can be automatically created at high speed. Further, by generating a photo album based on a group of images taken on the shooting date from the newest date to a predetermined number of days, there is a high possibility that the user can create an album suitable for the timing when the user tries to create the album.

図4(b)に示す編集画面415は、アプリケーション80のプレビュー/編集画面を示す。詳細は後述するが、図4(a)の画面で設定された条件に従って、フォルダから画像データ群が取得され、取得された画像データ群から複数の画像データを選択し、画像データに基づく画像をそれぞれテンプレートに配置することにより、レイアウト画像を生成する。なお、レイアウト画像は、フォトアルバムタイプ選択部402で受け付けたページ数に基づいて、複数ページ分生成される。そして、アプリケーション80は、生成されたレイアウト画像のうち選択された見開きページ(すなわち、2ページ分)のレイアウト画像のプレビューを、プレビュー表示部418に表示する。見開きページ選択部416は、ユーザから、プレビュー表示部418に表示する見開きページの選択を受付可能である。ユーザにより選択されている見開きページには、見開きページ選択状態を識別可能な表示マーク417が表示される。選択状態を識別可能な表示はこれに限定されず、例えば、選択された見開きページの色を変更して表示するようにしてもよい。図4(b)では、7ページと8ページで構成される見開きページが選択されている状態を示している。なお、見開きページ数が多い場合は、見開きページ選択部416をスクロールすることにより、これ以外の見開きページを表示することができるようにする。   An edit screen 415 shown in FIG. 4B shows a preview / edit screen of the application 80. Although details will be described later, an image data group is acquired from the folder in accordance with the conditions set on the screen of FIG. 4A, a plurality of image data is selected from the acquired image data group, and an image based on the image data is selected. A layout image is generated by arranging each in a template. Note that layout images are generated for a plurality of pages based on the number of pages received by the photo album type selection unit 402. Then, the application 80 displays a preview of the layout image of the spread page selected from the generated layout images (that is, two pages) on the preview display unit 418. The spread page selection unit 416 can accept the selection of the spread page to be displayed on the preview display unit 418 from the user. A display mark 417 that can identify the spread page selection state is displayed on the spread page selected by the user. The display that can identify the selection state is not limited to this. For example, the color of the selected spread page may be changed and displayed. FIG. 4B shows a state where a spread page composed of 7 pages and 8 pages is selected. When the number of spread pages is large, the spread page selection unit 416 is scrolled so that other spread pages can be displayed.

購入商品追加ボタン419は、ユーザがフォトアルバムを購入する際に、商品としてショッピングカート(不図示)に追加することができる。ユーザによる購入商品追加ボタン419の押下を検出すると、アプリケーション80がプレビュー表示部418に表示されている見開きページを含むフォトアルバムをショッピングカートに追加する。ユーザは、ショッピングカートに追加されたフォトアルバムを、ショッピングカートに関連付けられている図4(c)に示すオンライン注文サイトと、それと連携している決済サイト(不図示)を介して購入することができる。尚、オンライン注文サイト、決済サイト、ショッピングカートに関しては、一般的なオンラインショッピングサイトとそれと連携する決済サイトやショッピングカートと同様なので、その説明を省略する。   The purchased product addition button 419 can be added to a shopping cart (not shown) as a product when the user purchases a photo album. When it is detected that the user presses the purchase product addition button 419, the application 80 adds a photo album including a spread page displayed on the preview display unit 418 to the shopping cart. The user can purchase the photo album added to the shopping cart via the online ordering site shown in FIG. 4C associated with the shopping cart and a settlement site (not shown) linked thereto. it can. The online ordering site, the settlement site, and the shopping cart are the same as the general online shopping site and the settlement site and shopping cart linked with the online shopping site.

図4(c)において、Webブラウザ143に表示されるURL設定部421は、ユーザがWebブラウザ143で表示させたいWebサイト(ページ)のURL(Uniform Resource Locator)の指定を受け付ける。また、Webブラウザ143がWebサイト(ページ)を表示している場合は、表示しているWebサイトのURLがURL設定部421に表示される。注文画面422は、Webブラウザ143が表示しているフォトアルバムの注文画面であり、図4(c)は注文番号「4649」のフォトアルバムを注文する一例を示している。注文情報表示部423は、フォトアルバムの注文に関する情報を表示する。注文に関する情報としては、注文を識別する識別子(例えば、注文番号)、フォトアルバムの種類、価格等が挙げられる。図4(c)は、以下のような例を示している。   In FIG. 4C, the URL setting unit 421 displayed on the web browser 143 receives designation of a URL (Uniform Resource Locator) of a website (page) that the user wants to display on the web browser 143. When the web browser 143 displays a website (page), the URL of the displayed website is displayed on the URL setting unit 421. The order screen 422 is a photo album order screen displayed by the Web browser 143. FIG. 4C shows an example of ordering a photo album with the order number “4649”. The order information display unit 423 displays information related to the photo album order. The information related to the order includes an identifier for identifying the order (for example, an order number), a photo album type, a price, and the like. FIG. 4C shows an example as follows.

注文番号: 4649
フォトアルバムの種類: タイプK
価格: ¥100,000
Order number: 4649
Photo album type: Type K
Price: ¥ 100,000

注文ボタン424の押下を受け付けると、氏名、住所、電話番号、配送先等の必要な情報を入力する入力画面が表示される。ユーザが入力画面において必要な情報を入力し、決済サイトで決済を完了することで、アプリケーション80で作成されたフォトアルバムの注文が確定して、ユーザはそのアルバムを購入することができる。   When the pressing of the order button 424 is accepted, an input screen for inputting necessary information such as name, address, telephone number, and delivery destination is displayed. When the user inputs necessary information on the input screen and completes the settlement at the settlement site, the order of the photo album created by the application 80 is confirmed, and the user can purchase the album.

図10は、フォトアルバムの構成の一例を示す。図10(a)はタイプKのフォトアルバムの構成の一例を示し、図10(b)はタイプMのフォトアルバムの構成の一例を示す。   FIG. 10 shows an example of the configuration of a photo album. FIG. 10A shows an example of the configuration of a type K photo album, and FIG. 10B shows an example of the configuration of a type M photo album.

図10(a)に示すフォトアルバムは、タイプKのフォトアルバムに関し、表紙1001、裏表紙1004、本身の1ページと2ページの見開きページ1002、本身の19ページと20ページの見開きページ1003を含む。タイプKのフォトアルバムの場合、本身に関しては、1ページ目が先頭ページ、20ページ目が最終ページである。   The photo album shown in FIG. 10 (a) relates to a type K photo album, and includes a front cover 1001, a back cover 1004, a main page and a two-page spread page 1002, and a main page 19 and a twenty-page spread page 1003. . In the case of a type K photo album, the first page is the first page and the 20th page is the last page.

図10(b)に示すフォトアルバムは、タイプMのフォトアルバムに関し、表紙1011、裏表紙1014、本身の1ページと2ページの見開きページ1012、本身の49ページと50ページの見開きページの1013を含む。タイプMのフォトアルバムの場合、本身に関しては、1ページ目が先頭ページ、50ページ目が最終ページである。   The photo album shown in FIG. 10B relates to a photo album of type M, and includes a cover page 1011, a back cover 1014, a main page and a two-page spread page 1012, and a main page 49 and a 50-page spread page 1013. Including. In the case of a type M photo album, the first page is the first page and the 50th page is the last page.

図11は、画像データに基づく画像を配置するためのレイアウトテンプレート(以下、テンプレートともいう)の一例を示す。図11(a)は、タイプKのフォトアルバムの時間ベース用のレイアウトテンプレートの一例を示す。図11(b)は、タイプKのフォトアルバムのシーンベース用のレイアウトテンプレートの一例を示す。図11(c)は、タイプKのフォトアルバムのテーマベース用のレイアウトテンプレートの一例を示す。   FIG. 11 shows an example of a layout template (hereinafter also referred to as a template) for arranging images based on image data. FIG. 11A shows an example of a time-based layout template for a type K photo album. FIG. 11B shows an example of a layout template for a scene base of a type K photo album. FIG. 11C shows an example of a layout template for a theme base of a type K photo album.

図11(a)は、ページ単位で領域をグループ化し、そのグループ(片側1ページ)内の全てのスロットを同一グループの領域に属するものとした例を示している。図11(a)に示すレイアウトテンプレート1100は、例えば、タイプKのフォトアルバムの時間ベース用のレイアウトテンプレートの、本身の1ページと2ページの見開き2ページのレイアウトテンプレートである。テンプレート1101は、本身の1ページのレイアウトテンプレートである。テンプレート1102は、本身の2ページのレイアウトテンプレートである。スロット1103〜1106は、本身の1ページに配置されているスロットであり、スロット1107〜1110は、本身の2ページに配置されているスロットであり、アプリケーション80は静止画像をこれらのスロットに配置する。   FIG. 11A shows an example in which areas are grouped in units of pages, and all slots in the group (one page on one side) belong to the same group area. A layout template 1100 shown in FIG. 11A is, for example, a layout template for a time base of a type K photo album and a two-page spread template with one main page and two pages. A template 1101 is a one-page layout template. A template 1102 is a real two-page layout template. Slots 1103 to 1106 are slots arranged on one page of the main body, slots 1107 to 1110 are slots arranged on the second page of the main body, and the application 80 arranges still images in these slots. .

スロット1103〜1106は、グループ1の領域に属する。テンプレート1101に付加されているコードK−A−G1−P1は、このテンプレートの属性を表す。Kは、タイプKのフォトアルバム用であることを表す。Aは、時間ベース用であることを表す。G1は、グループ1の領域用であることを表す。P1は、本身の1ページ用であることを表す。スロット1103〜1106に付加されているコードK−A−G1−1、K−A−G1−2、K−A−G1−3、K−A−G1−4はそれぞれ、これらのスロットの属性を表す。K−A−G1は上記と同様であり、最後の数字はスロット番号を表す。スロット番号は、グループ単位で割り当てられる。   Slots 1103 to 1106 belong to the group 1 area. The code KA-G1-P1 added to the template 1101 represents the attribute of this template. K represents that the photo album is for a type K photo album. A indicates that the time base is used. G1 indicates that it is for the group 1 region. P1 indicates that it is for one page of the body. The codes KA-G1-1, KA-G1-2, KA-G1-3, and KA-G1-4 added to the slots 1103 to 1106 have attributes of these slots, respectively. To express. K-A-G1 is the same as above, and the last number represents the slot number. Slot numbers are assigned in groups.

スロット1107〜1110は、グループ2の領域に属する。テンプレート1102に付加されているコードK−A−G2−P2はこのテンプレートの属性を表す。K及びAは前述の説明と同じ内容であるが、G2は、グループ2の領域用であることを表す。P2は、本身の2ページ用であることを表す。スロット1107〜1110に付加されているコードK−A−G2−1、K−A−G2−2、K−A−G2−3、K−A−G2−4はそれぞれ、これらのスロットの属性を表す。K−A−G2は上記と同様であり、最後の数字はスロット番号を表す。スロット番号はグループ単位で割り当てられる。   The slots 1107 to 1110 belong to the group 2 area. A code KA-G2-P2 added to the template 1102 represents the attribute of this template. K and A have the same contents as described above, but G2 indicates that the area is for the group 2 area. P2 indicates that it is for the main two pages. The codes KA-G2-1, KA-G2-2, KA-G2-3, and KA-G2-4 added to the slots 1107 to 1110 have the attributes of these slots, respectively. To express. KA-G2 is the same as above, and the last number represents the slot number. Slot numbers are assigned in groups.

図11(b)は、見開きページ単位で領域をグループ化し、そのグループ(見開き2ページ)内の全てのスロットを同一グループの領域に属するものとした例を示している。図11(b)に示すテンプレート1120は、例えば、タイプKのフォトアルバムのシーンベース用のレイアウトテンプレートの、本身の7ページと8ページの見開き2ページのレイアウトテンプレートである。テンプレート1121は、本身の7ページのレイアウトテンプレートである。テンプレート1122は、本身の8ページのレイアウトテンプレートである。スロット1124は、本身の7ページに配置されているスロットである。スロット1126は、本身の8ページに配置されているスロットである。スロット1123、1125は、それぞれ本身の7ページと8ページの両方にまたがって配置されているスロットである。アプリケーション80は、静止画像をこれらのスロットに配置する。   FIG. 11B shows an example in which areas are grouped in units of spread pages, and all slots in the group (two spread pages) belong to the same group area. A template 1120 shown in FIG. 11B is, for example, a layout template for a scene base of a type K photo album and a layout template of 7 pages for the main body and 2 pages for the spread of 8 pages. A template 1121 is a real 7-page layout template. The template 1122 is a real 8-page layout template. The slot 1124 is a slot arranged on the seventh page of the body. The slot 1126 is a slot arranged on the eighth page of the body. The slots 1123 and 1125 are slots that extend over both the seventh and eighth pages of the main body, respectively. The application 80 places still images in these slots.

スロット1123〜1126は、グループ4の領域に属する。テンプレート1121に付加されているコードK−B−G4−P7、および、テンプレート1122に付加されているコードK−B−G4−P8は、それぞれのテンプレートの属性を表す。Kは、タイプKのフォトアルバム用であることを表す。Bは、シーンベース用であることを表す。G4は、グループ4の領域用であることを表す。P7は、本身の7ページ用であることを示す。P8は、本身の8ページ用であることを表す。スロット1123〜1126に付加されているコードK−B−G4−1、K−B−G4−2、K−B−G4−3、K−B−G4−4はそれぞれ、これらのスロットの属性を表す。K−B−G4は上記と同様であり、最後の数字はスロット番号を表す。スロット番号はグループ単位で割り当てられる。   The slots 1123 to 1126 belong to the group 4 area. The code KB-G4-P7 added to the template 1121 and the code KB-G4-P8 added to the template 1122 represent the attributes of the respective templates. K represents that the photo album is for a type K photo album. B represents the scene base. G4 represents that it is for the group 4 area. P7 indicates that it is for 7 pages of the body. P8 indicates that it is for 8 pages of the body. The codes K-B-G4-1, K-B-G4-2, K-B-G4-3, and K-B-G4-4 added to the slots 1123 to 1126 respectively indicate the attributes of these slots. To express. K-B-G4 is the same as above, and the last number represents the slot number. Slot numbers are assigned in groups.

図11(c)は、ページ単位で領域をグループ化し、そのグループ(片側1ページ)内の全てのスロットを同一グループの領域に属するものとした例を示している。図11(c)に示すレイアウトテンプレート1140は、例えば、タイプKのフォトアルバムのテーマベース用のレイアウトテンプレートの、本身の5ページと6ページの見開き2ページのレイアウトテンプレートである。テンプレート1141は、本身の5ページのレイアウトテンプレートである。テンプレート1142は、本身の6ページのレイアウトテンプレートである。スロット1143〜1147は、本身の5ページに配置されているスロットであり、スロット1148〜1151は、本身の6ページに配置されているスロットであり、アプリケーション80は静止画像をこれらのスロットに配置する。   FIG. 11C shows an example in which areas are grouped in page units, and all slots in the group (one page on one side) belong to the same group area. A layout template 1140 shown in FIG. 11C is, for example, a layout template for a theme base of a type K photo album and a layout template of 5 pages for the main body and 2 pages for the 6-page spread. A template 1141 is a real five-page layout template. A template 1142 is a real 6-page layout template. The slots 1143 to 1147 are slots arranged on the fifth page of the main body, the slots 1148 to 1151 are slots arranged on the sixth page of the main body, and the application 80 arranges still images in these slots. .

スロット1143〜1147は、グループ5の領域に属する。テンプレート1141に付加されているコードK−C−G5−P5は、このテンプレートの属性を表す。Kは、タイプKのフォトアルバム用であることを表す。Cは、テーマベース用であることを表す。G5は、グループ5の領域用であることを表す。P5は、本身の5ページ用であることを表す。スロット1143〜1147に付加されているコードK−C−G5−1、K−C−G5−2、K−C−G5−3、K−C−G5−4、K−C−G5−5はそれぞれ、これらのスロットの属性を表す。K−C−G5は上記と同様であり、最後の数字はスロット番号を表す。スロット番号はグループ単位で割り当てられる。   The slots 1143 to 1147 belong to the group 5 area. A code K-C-G5-P5 added to the template 1141 represents the attribute of this template. K represents that the photo album is for a type K photo album. C represents the theme base use. G5 indicates that it is for the group 5 area. P5 indicates that it is for 5 pages of the body. The codes K-C-G5-1, K-C-G5-2, K-C-G5-3, K-C-G5-4, and K-C-G5-5 added to the slots 1143 to 1147 are Each represents the attributes of these slots. K-C-G5 is the same as above, and the last number represents the slot number. Slot numbers are assigned in groups.

スロット1148〜1151は、グループ6の領域に属する。テンプレート1142に付加されているコードK−C−G6−P6は、このテンプレートの属性を表す。K−Cは前述の説明と同じ内容であり、G6は、グループ6の領域用であることを表す。P6は、本身の6ページ用であることを表す。スロット1148〜1151に付加されているコードK−C−G6−1、K−C−G6−2、K−C−G6−3、K−C−G6−4はそれぞれ、これらのスロットの属性を表す。K−C−G6は上記と同様であり、最後の数字はスロット番号を表す。スロット番号はグループ単位で割り当てられる。   The slots 1148 to 1151 belong to the group 6 area. A code K-C-G6-P6 added to the template 1142 represents the attribute of this template. K-C has the same contents as described above, and G6 represents that it is for the group 6 area. P6 indicates that it is for 6 pages of the body. The codes K-C-G6-1, K-C-G6-2, K-C-G6-3, and K-C-G6-4 added to the slots 1148 to 1151 respectively indicate the attributes of these slots. To express. K-C-G6 is the same as above, and the last number represents the slot number. Slot numbers are assigned in groups.

図12は、レイアウトテンプレートとスロット管理を説明するための図である。図12(a)は、タイプKのフォトアルバムのシーンベース用のレイアウトテンプレートの一例を示す。図12(b)は、スロットの管理方法の一例を示す。図12(a)は、図11(b)に示すレイアウトテンプレートと同様に、見開きページ単位で領域をグループ化し、そのグループ内の全てのスロットを同一グループの領域に属するものとしたテンプレートである。このテンプレートは、静止画像と、動画像から抽出した静止画像をそれぞれ適切なスロットに配置するためのものである。   FIG. 12 is a diagram for explaining a layout template and slot management. FIG. 12A shows an example of a layout template for a scene base of a type K photo album. FIG. 12B shows an example of a slot management method. FIG. 12A shows a template in which areas are grouped in units of spread pages and all slots in the group belong to the same group area, similarly to the layout template shown in FIG. 11B. This template is for arranging still images and still images extracted from moving images in appropriate slots.

図12(a)に示すレイアウトテンプレート1200は、タイプKのフォトアルバムのシーンベース用のレイアウトテンプレートの、本身の15ページと16ページの見開きページのレイアウトテンプレートである。テンプレート1201は、本身の15ページのレイアウトテンプレートである。テンプレート1202は、本身の16ページのレイアウトテンプレートである。スロット1205、1206は、本身の15ページに配置されているスロットである。スロット1208、1209は、本身の16ページに配置されているスロットである。スロット1203、1207は、本身の15ページと16ページの両方にまたがって配置されているスロットである。アプリケーション80は、静止画像をこれらのスロットに配置する。   A layout template 1200 shown in FIG. 12A is a layout template for a main page 15 and a 16-page spread page of a scene-based layout template of a type K photo album. A template 1201 is a 15-page layout template. The template 1202 is a real 16-page layout template. Slots 1205 and 1206 are slots arranged on 15 pages of the body. Slots 1208 and 1209 are slots arranged on the 16th page of the body. Slots 1203 and 1207 are slots that extend over both 15 pages and 16 pages of the main body. The application 80 places still images in these slots.

スロット1203〜1209は、グループ8の領域に属する。Kは、タイプKのフォトアルバム用であることを表す。Bは、シーンベース用であることを表す。G8は、グループ8の領域用であることを表す。P15は、本身の15ページ用であることを表す。P16は、本身の16ページ用であることを表す。テンプレート1201に付加されているコードK−B−G8−P15、および、テンプレート1202に付加されているコードK−B−G8−P16は、それぞれのテンプレートの属性を表す。   Slots 1203 to 1209 belong to the group 8 area. K represents that the photo album is for a type K photo album. B represents the scene base. G8 represents that it is for the group 8 region. P15 indicates that it is for 15 pages of the body. P16 indicates that it is for the main 16 pages. The code K-B-G8-P15 added to the template 1201 and the code K-B-G8-P16 added to the template 1202 represent the attributes of the respective templates.

スロット1203〜1209に付加されているコード(K−B−G8−1−S等)はそれぞれ、スロットの属性を表す。K−B−G8の次の数字はスロット番号を表す。スロット番号はグループ単位で割り当てられる。そして、最後の文字は配置する画像の属性を表す。Sは、一般的な静止画像用のスロットであることを示す属性を表す。ここでの一般的な静止画像とは、動画像から抽出された静止画像ではなく、デジタルスチルカメラ等で撮影して保存された写真等を意味するものとし、以下、単に「静止画像」という。また、Dは、動画像からフレームの解析等を行って抽出した静止画像用のスロットであることを示す属性を表す。例えば、スロット1203にはコードK−B−G8−1−Sが付加されていて、画像の属性はSであるため、このスロットに配置するのに適した画像は、一般的な静止画像である。また、例えば、スロット1205にはコードK−B−G8−3−Dが付加されていて、画像の属性はDであるため、このスロットに配置するのに適した画像は、動画像から抽出した静止画像である。動画像から抽出した静止画像は、以下、「フレーム画像」ともいう。   Codes (K-B-G8-1-S, etc.) added to the slots 1203 to 1209 represent slot attributes, respectively. The number after K-B-G8 represents the slot number. Slot numbers are assigned in groups. The last character represents the attribute of the image to be arranged. S represents an attribute indicating that it is a general still image slot. Here, a general still image means not a still image extracted from a moving image but a photograph taken and stored by a digital still camera or the like, and hereinafter simply referred to as “still image”. D represents an attribute indicating a slot for a still image extracted from a moving image by analyzing a frame or the like. For example, since the code K-B-G8-1-S is added to the slot 1203 and the attribute of the image is S, an image suitable for placement in this slot is a general still image. . Further, for example, since the code KB-G8-3-D is added to the slot 1205 and the attribute of the image is D, an image suitable for placement in this slot is extracted from the moving image. It is a still image. Hereinafter, a still image extracted from a moving image is also referred to as a “frame image”.

尚、静止画像用として適しているスロット1203に配置するのに適した静止画像が存在しない場合には、このスロットにフレーム画像を配置してもよい。また、フレーム画像用として適しているスロット1205に配置するのに適したフレーム画像が存在しない場合には、このスロットに静止画像を配置してもよい。   If there is no still image suitable for placement in the slot 1203 suitable for still images, a frame image may be placed in this slot. If there is no frame image suitable for placement in the slot 1205 suitable for frame images, a still image may be placed in this slot.

また、動画像から抽出した複数のフレーム画像の中に、例えば少しピンボケしていてフォトアルバムとしてはあまり適切でないフレーム画像と、その少しピンボケしているフレーム画像よりも品位の高い静止画像とが存在するケースがある。そのようなケースでも、本実施形態では、あえて少しピンボケしたフレーム画像をフレーム画像用として適している属性Dのスロットに、動画像から抽出した連続しているフレーム画像の内の1つとして配置する。つまり、動画像から抽出した連続している複数のフレーム画像を、フレーム画像用として適している属性Dのスロットに配置する。これにより、レイアウトテンプレートの特徴を引き出したダイナミックなフォトアルバムを自動的に作成することができる。また、魅力のあるフォトアルバムを自動生成する機能を備えるフォトアルバム作成アプリケーションを提供することができる。   Also, among multiple frame images extracted from moving images, there are, for example, frame images that are slightly out of focus and not very suitable as photo albums, and still images that are higher quality than the frame images that are slightly out of focus There is a case to do. Even in such a case, in this embodiment, a frame image that is slightly out of focus is arranged as one of continuous frame images extracted from a moving image in a slot having an attribute D suitable for the frame image. . That is, a plurality of continuous frame images extracted from a moving image are arranged in a slot having an attribute D suitable for frame images. This makes it possible to automatically create a dynamic photo album that draws out the features of the layout template. In addition, it is possible to provide a photo album creation application having a function of automatically generating attractive photo albums.

図12(b)を用いて、図12(a)に示すタイプKのフォトアルバムのシーンベース用のレイアウトテンプレートのスロットの管理方法について説明する。図12(b)では、説明の都合上、スロット1203以外のスロットに関しては、その記載を省略する。図12(b)において、点Oはフォトアルバムの基準点である。アプリケーション80は、フォトアルバムの見開きページの左上端の角を基準点として、各スロットの位置を定義し、それぞれのスロットに対する画像の配置を管理/制御する。アプリケーション80は、点Oから右方向を横のプラス(+)座標、左方向を横のマイナス(−)座標、下方向を縦のプラス(+)座標、上方向を縦のマイナス(−)座標と定義している。各点の座標は(横座標、縦座標)と表され、例えば点Oの座標は(0,0)[単位:cm]である。   With reference to FIG. 12B, a method of managing the slots of the layout template for the scene base of the type K photo album shown in FIG. 12A will be described. In FIG. 12B, the description of slots other than the slot 1203 is omitted for convenience of explanation. In FIG. 12B, point O is a reference point of the photo album. The application 80 defines the position of each slot using the upper left corner of the spread page of the photo album as a reference point, and manages / controls the arrangement of images for each slot. The application 80 has a horizontal plus (+) coordinate in the right direction from the point O, a horizontal minus (−) coordinate in the left direction, a vertical plus (+) coordinate in the downward direction, and a vertical minus (−) coordinate in the upward direction. It is defined as The coordinates of each point are expressed as (abscissa, ordinate). For example, the coordinates of the point O are (0, 0) [unit: cm].

点Wはスロット1203の基準点であり、このスロットの左上端の角と一致する。このように、各スロットの基準点は、それぞれのスロットの左上端とする。点Wは点Oから右方向に1cm、下方向に1cmの位置にあり、座標は(1,1)[単位:cm]である。Lはスロット1203の幅であり、16cmである。Hはスロット1203の高さであり、6cmである。これらにより、スロット1203を構成する長方形の各点及びその座標は、それぞれ点X(17,1)[単位:cm]、点Y(17,7)[単位:cm]、点Z(1,7)[単位:cm]である。点Pはスロット1203の中点であり、その座標は(9,4)[単位:cm]である。Rはスロット1203の回転角度であり、図12(b)の例ではスロット1203は回転されていないので、回転角度は0度である。このように、アプリケーション80は、レイアウトテンプレートに配置する各スロットを座標と回転角度を用いて定義し、管理/制御する際にその情報を使用する。定義された情報は、図15に示すテーブルのように管理される。すなわち、図15に示すように、各スロットは、基準点の座標、幅(横の長さ)及び高さ(縦の長さ)と、回転角度が管理される。   Point W is the reference point of slot 1203 and coincides with the upper left corner of this slot. Thus, the reference point of each slot is the upper left corner of each slot. The point W is 1 cm in the right direction and 1 cm in the downward direction from the point O, and the coordinates are (1, 1) [unit: cm]. L is the width of the slot 1203 and is 16 cm. H is the height of the slot 1203 and is 6 cm. Thus, the rectangular points constituting the slot 1203 and the coordinates thereof are respectively the point X (17, 1) [unit: cm], the point Y (17, 7) [unit: cm], and the point Z (1, 7). ) [Unit: cm]. The point P is the midpoint of the slot 1203, and its coordinates are (9, 4) [unit: cm]. R is the rotation angle of the slot 1203. In the example of FIG. 12B, since the slot 1203 is not rotated, the rotation angle is 0 degree. As described above, the application 80 defines each slot to be arranged in the layout template using the coordinates and the rotation angle, and uses the information when managing / controlling. The defined information is managed as a table shown in FIG. That is, as shown in FIG. 15, the coordinates, width (horizontal length) and height (vertical length), and rotation angle of each slot are managed for each slot.

図15は、スロットの位置の一例を表す。図15において、Slotはスロット番号であり、ReferencePointはスロットの基準点であり、Lengthはスロットの幅であり、Heightはスロットの高さであり、Rotationはスロットの回転角度である。図15は、図12(a)に示すレイアウトテンプレート1200のスロット1203〜1209の位置の例を示す。   FIG. 15 shows an example of the position of the slot. In FIG. 15, Slot is a slot number, ReferencePoint is a slot reference point, Length is a slot width, Height is a slot height, and Rotation is a slot rotation angle. FIG. 15 shows an example of the positions of the slots 1203 to 1209 of the layout template 1200 shown in FIG.

図5は、フォトアルバムを自動作成する処理を示すフローチャートである。図5のフローチャートに係るアプリケーションプログラムは、例えば、HDD202に記憶されており、CPU204により読み出されて実行される。アプリケーションを起動することにより、図4(a)に示す画面が表示される。そして、ユーザによる図4(a)に示す自動選択ボタン407を選択及びフォトアルバム作成ボタン412が押下を受け付けると、アプリケーション80が図5に示すフォローチャートに従ってその処理を実行する。   FIG. 5 is a flowchart showing a process for automatically creating a photo album. The application program according to the flowchart of FIG. 5 is stored in the HDD 202, for example, and is read and executed by the CPU 204. By starting the application, the screen shown in FIG. 4A is displayed. When the user selects the automatic selection button 407 shown in FIG. 4A and the photo album creation button 412 accepts pressing, the application 80 executes the process according to the follow chart shown in FIG.

S501にて、アプリケーション80は、画像ファイル(静止画像ファイルや動画像ファイル)が格納されているPC1内のフォルダ(不図示)又はPC1内の各ファイルを、フォトアルバムを作成する際に必要な画像データ群の格納先として指定する。なお、ユーザに画像ファイルが格納されているPC1内のフォルダやPC1内のファイルを選択させるようにしてもよい。S501にて、アプリケーション80は、指定された格納先の画像データ群を対象として、静止画像の数が閾値より多いか否かを判定する。本実施形態では、図19(a)に示す画像総数(閾値)より多いか否かを判定する。このとき、静止画像の数とは、通常の静止画像数と動画像から抽出する静止画像数(フレーム画像数)との合計数を指す。なお、動画像から抽出する静止画像数は、動画像の数と、1つの動画像から抽出するフレーム数(本実施形態では、40個)とを積算した値とする。例えば、指定された画像データ群に含まれる通常の静止画像数が400個であり、動画像数が10個であり、1つの動画像から抽出するフレーム数を40個とする場合は、400+(10×40)=800個となる。   In S501, the application 80 uses the folders (not shown) in the PC 1 in which image files (still image files and moving image files) are stored or images necessary for creating a photo album in each file in the PC 1. Specify the data group storage destination. Note that the user may be allowed to select a folder in the PC 1 in which the image file is stored or a file in the PC 1. In step S501, the application 80 determines whether or not the number of still images is larger than a threshold for the designated storage destination image data group. In the present embodiment, it is determined whether or not the total number of images (threshold value) shown in FIG. At this time, the number of still images refers to the total number of normal still images and still images (frame images) extracted from moving images. Note that the number of still images extracted from a moving image is a value obtained by integrating the number of moving images and the number of frames extracted from one moving image (40 in this embodiment). For example, when the number of normal still images included in the designated image data group is 400, the number of moving images is 10, and the number of frames extracted from one moving image is 40, 400+ ( 10 × 40) = 800.

図19は、高速モードの画像数のテーブルの一例を示す図である。図19(a)と図19(b)は、Windows(登録商標)等のPC用のアプリケーションが参照するテーブルである。図19(c)と図19(d)は、Android(登録商標)OSが搭載されているスマートフォン等のモバイルデバイス用のアプリケーションが参照するテーブルである。図19にて、「ページ数」はフォトアルバムのページ数であり、「平均スロット数」はフォトアルバムの見開きページ(2ページ)に配置されるスロットの数の平均値である。また、「動画像からの画像数」は動画像から抽出するフレーム画像の数であり、「静止画像数」は静止画像の数である。「画像総数」は「動画像からの画像数」と「静止画像数」の合計の数とする。   FIG. 19 is a diagram illustrating an example of a table of the number of images in the high speed mode. FIG. 19A and FIG. 19B are tables referred to by a PC application such as Windows (registered trademark). FIG. 19C and FIG. 19D are tables that are referred to by an application for a mobile device such as a smartphone on which an Android (registered trademark) OS is mounted. In FIG. 19, “number of pages” is the number of pages of the photo album, and “average number of slots” is the average value of the number of slots arranged on the two-page spread of the photo album. Further, “the number of images from moving images” is the number of frame images extracted from the moving images, and “the number of still images” is the number of still images. “Total number of images” is the total number of “number of images from moving images” and “number of still images”.

図19(a)、(c)は、フォトアルバムを自動作成する際に対象とする画像データ群の中に動画像が含まれている場合に、対象として取り扱う動画像を1つに固定(規定数=1)し、その1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成するものとする。なお、対象とする画像データ群の中に複数の動画像が含まれる場合の動画像の選択方法については、後述する。同じページ数に着目して、図19(a)と、図19(c)の「画像総数」や「静止画像数」を比較すると、図19(a)のPC用のテーブルの方が図19(c)のモバイルデバイス用のテーブルよりも数が多く設定していることがわかる。これは、一般的に、PCの方がモバイルデバイスよりもCPUやRAM等のハードウェアの性能が高く、単位時間あたりに処理できる画像数が多いので、このような値をそれぞれのテーブルに設定している。これにより、PC上でアプリケーション80を実行した場合とモバイルデバイス上でアプリケーション80を実行した場合とで、フォトアルバムを自動作成する時間差が少なくなる。すなわち、デバイス種に応じた上限数を設定することにより、フォトアルバムを自動生成する時間をいずれのデバイスでも短くすることができる。なお、対象として取り扱うデータ数が多いほど、ユーザの満足度が高くなる可能性が高まる。静止画像(動画像から抽出された静止画像も含む)の数が画像総数より多いと判定した場合、アプリケーション80は、図21に示す高速モード移行メッセージ画面2101、2105を表示する。静止画像(動画像から抽出された静止画像も含む)の数が画像総数以下と判定した場合、アプリケーション80は、高速モード移行メッセージ画面2101、2105を表示せずに、通常モードでフォトアルバム自動作成用の画像群を抽出する処理を実行する。なお、フォトアルバム自動作成用の画像群を抽出する処理については、図20を用いて後述する。   19 (a) and 19 (c), when a moving image is included in the target image data group when automatically creating a photo album, the number of moving images handled as a target is fixed (specified) The number is 1), and 40 frames are extracted at equal intervals from the one moving image to generate a still image. A method for selecting a moving image when a plurality of moving images are included in the target image data group will be described later. Focusing on the same number of pages, comparing the “total number of images” and the “number of still images” in FIG. 19A and FIG. 19C, the PC table in FIG. It can be seen that the number is set larger than the table for the mobile device in (c). This is because the PC generally has higher performance of hardware such as CPU and RAM than the mobile device, and the number of images that can be processed per unit time is larger, so such values are set in each table. ing. This reduces the time difference for automatically creating a photo album between when the application 80 is executed on the PC and when the application 80 is executed on the mobile device. That is, by setting the upper limit number according to the device type, the time for automatically generating the photo album can be shortened in any device. In addition, possibility that a user's satisfaction will become so high that there are many data handled as object. If it is determined that the number of still images (including still images extracted from moving images) is greater than the total number of images, the application 80 displays the high-speed mode transition message screens 2101 and 2105 shown in FIG. When it is determined that the number of still images (including still images extracted from moving images) is equal to or less than the total number of images, the application 80 automatically creates a photo album in the normal mode without displaying the high-speed mode transition message screens 2101 and 2105. A process for extracting a group of images is executed. The process of extracting the image group for automatic photo album creation will be described later with reference to FIG.

図21は、高速モードへの移行を促すメッセージの画面の一例を示す。このメッセージ画面は、CPU204がPC1の表示部であるLCD205に表示させる。図21(a)は日本語表示の画面であり、図21(b)は英語表示の画面の例である。これらの画面では、表示の言語が異なるのみで、表示している内容は同じである。表示の言語をいずれにするかは、PC1に設定された表示言語に基づいて決定する。図21に示す高速モード移行メッセージ画面2101は、高速モードチェックボックス2102、キャンセルボタン2103、OKボタン2104を含む。図21に示す高速モード移行メッセージ画面2105は、高速モードチェックボックス2106、キャンセルボタン2107、OKボタン2108を含む。本実施形態では、高速モードチェックボックス2102、2106のデフォルト値は、チェックされていない状態(高速モード無効)とする。デフォルト値として、高速モードを無効に設定することにより、自動的に作成されるフォトアルバムの仕上がりの良さを重視した設定となっている。なお、デフォルト状態を高速にフォトアルバムを自動作成することを重視した設定としたい場合は、高速モードチェックボックス2102、2106のデフォルト値をチェックされている状態(高速モード有効)とする。   FIG. 21 shows an example of a message screen prompting the transition to the high speed mode. This message screen is displayed on the LCD 205 which is the display unit of the PC 1 by the CPU 204. FIG. 21A shows an example of a Japanese display screen, and FIG. 21B shows an example of an English display screen. In these screens, only the language of display is different, and the displayed contents are the same. Which language is to be displayed is determined based on the display language set in the PC 1. The high-speed mode transition message screen 2101 shown in FIG. 21 includes a high-speed mode check box 2102, a cancel button 2103, and an OK button 2104. The high-speed mode transition message screen 2105 shown in FIG. 21 includes a high-speed mode check box 2106, a cancel button 2107, and an OK button 2108. In the present embodiment, the default values of the high speed mode check boxes 2102 and 2106 are not checked (high speed mode is invalid). As a default value, the high-speed mode is set to be invalid, thereby setting the emphasis on the finish of the photo album that is automatically created. If the default state is set to emphasize the automatic creation of a photo album at high speed, the default value of the high speed mode check boxes 2102 and 2106 is checked (high speed mode valid).

ここで、高速モードとは、通常モードよりも高速にフォトアルバムを生成するモードである。具体的には、通常モードよりも抽出する画像数を少なくすることにより、画像抽出時間を少なくし、これにより、画像のスコア解析の時間を少なくし、高速にフォトアルバムを生成することができる。   Here, the high-speed mode is a mode for generating a photo album at a higher speed than in the normal mode. Specifically, by reducing the number of images to be extracted as compared with the normal mode, the image extraction time can be reduced, thereby reducing the time required for image score analysis and generating a photo album at high speed.

上述した通り、静止画像(動画像から抽出されたフレーム画像も含む)の数が画像総数より多いと判定した場合、高速モード移行メッセージ画面2101又は高速モード移行メッセージ画面2105を表示する。図21では、写真の枚数が多いため、解析に時間がかかる旨を表示し、「解析する写真の枚数を自動的に絞り込んで時間を短縮するか否か」をユーザが選択できるようにする。このように、ユーザが時間を短縮するか否かを選択可能とすることにより、解析する写真の枚数が多く、解析に時間がかかったとしても、ユーザは待機の煩わしさが無くなる。また、短い時間で解析したいユーザの要望にも応えることができる。図21では、高速モードチェックボックス2102、2106がチェックされていて、高速モードが有効となる状態を示している。高速モードチェックボックス2102、2106がチェックされていて高速モードが有効となる状態で、OKボタン2104、2108が押下されると、アプリケーション80は、フォトアルバム自動作成用の画像群を高速モードで抽出する処理を実行する。高速モードチェックボックス2102、2106がチェックされておらず高速モードが無効となる状態で、OKボタン2104、2108が押下されると、アプリケーション80は、フォトアルバム自動作成用の画像群を通常モードで抽出する処理を実行する。キャンセルボタン2103、2107が押下されると、アプリケーション80は、図5のS501で処理を中断し、図4(a)に示すメイン画面401に戻る。なお、本実施形態では、ユーザに、通常モードが高速モードかを選択させるものとしたが、指定された画像群に含まれる画像数が多い場合は、自動的に高速モードに設定するようにしてもよい。   As described above, when it is determined that the number of still images (including frame images extracted from moving images) is larger than the total number of images, the high-speed mode transition message screen 2101 or the high-speed mode transition message screen 2105 is displayed. In FIG. 21, since the number of photographs is large, it is displayed that the analysis takes time, and the user can select “whether to automatically narrow down the number of photographs to be analyzed to shorten the time”. As described above, by enabling the user to select whether or not to shorten the time, even if the number of photographs to be analyzed is large and the analysis takes time, the user is not burdened with waiting. In addition, it is possible to meet the demands of users who want to analyze in a short time. In FIG. 21, the high-speed mode check boxes 2102 and 2106 are checked, and the high-speed mode is enabled. When the OK buttons 2104 and 2108 are pressed while the high-speed mode check boxes 2102 and 2106 are checked and the high-speed mode is enabled, the application 80 extracts an image group for automatic photo album creation in the high-speed mode. Execute the process. When the OK buttons 2104 and 2108 are pressed in a state where the high-speed mode is invalid because the high-speed mode check boxes 2102 and 2106 are not checked, the application 80 extracts the image group for automatic photo album creation in the normal mode. Execute the process. When the cancel buttons 2103 and 2107 are pressed, the application 80 interrupts the process in S501 of FIG. 5 and returns to the main screen 401 shown in FIG. In this embodiment, the user is allowed to select whether the normal mode is the high-speed mode. However, when the number of images included in the designated image group is large, the high-speed mode is automatically set. Also good.

尚、前述したようにアプリケーション80がWindows(登録商標)等のPC用のアプリケーションの例の場合は、アプリケーション80は図19(a)のテーブルを参照する。これに対して、例えば、Google社のAndroid(登録商標)OSが搭載されているスマートフォン等のモバイルデバイス用のアプリケーションの例の場合は、アプリケーション80は図19(c)に示すテーブルを参照する。   As described above, when the application 80 is an example of an application for a PC such as Windows (registered trademark), the application 80 refers to the table of FIG. On the other hand, for example, in the case of an example of an application for a mobile device such as a smartphone on which Google's Android (registered trademark) OS is mounted, the application 80 refers to the table shown in FIG.

本実施形態では、アプリケーション80が、PC用のアプリケーションとモバイルデバイス用のアプリケーションとは異なるものとし、各アプリケーションが参照するテーブルを予めそれぞれ別のものを用意するものとした。ただし、この構成に限定するものではなく、例えば、PCとモバイルデバイスの両方で実行可能なアプリケーションとしてもよく、この場合は、アプリケーション80がOSを介して実行されている機器の情報を取得する。そして、PCの場合は図19(a)のテーブルを参照し、モバイルデバイスの場合は図19(c)のテーブルを参照する、というような構成であってもよい。   In this embodiment, it is assumed that the application 80 is different from the application for the PC and the application for the mobile device, and different tables are referred to by each application in advance. However, the present invention is not limited to this configuration, and may be an application that can be executed by both a PC and a mobile device. In this case, the application 80 acquires information on a device that is being executed via the OS. The PC may refer to the table of FIG. 19A, and the mobile device may refer to the table of FIG. 19C.

S502にて、アプリケーション80は、動画像ファイルから静止画像(フレーム画像)を取得して保存する処理を実行する。本工程の処理の詳細は、図16(a)を用いて後述する。   In S502, the application 80 executes processing for acquiring and storing a still image (frame image) from the moving image file. Details of the process in this step will be described later with reference to FIG.

S503にて、アプリケーション80は、S502で保存した静止画像に対して、その静止画像のもととなった動画像内のフレームの位置情報(フレーム番号)を、その静止画像と関連付けて保存する。ここでの関連付けの例を図17を用いて説明する。   In S503, the application 80 stores the position information (frame number) of the frame in the moving image that is the basis of the still image, in association with the still image, for the still image stored in S502. An example of association here will be described with reference to FIG.

図17は、フレーム画像と動画像の関連付けと、フレーム画像の分類の一例を示す。図17において、JPEGはフレーム画像のファイル名であり、MPEGはMPEG動画像のファイル名であり、Date&Timeは撮影年月日時刻であり、Infoは分類に関する情報であり、Groupは分類結果である。また、Frameは動画像を構成するフレーム番号であり、RelatedFileは静止画像ファイルもしくは動画像ファイルに関連付けられている関連ファイル(動画像ファイル/静止画像ファイル)のファイル名である。JPEG欄に記載されているフレーム画像ファイルは、同じ行のMPEG欄に記載されている動画像ファイルから抽出されて保存された静止画像ファイル(フレーム画像ファイル)である。Date&Timeの書式は年月日と時刻(1/1000秒)である。例えば、図17(a)のdynamic15.jpgの行のDate&Time欄に記載されている「20140330100010334」は、2014年03月30日10時00分10と334/1000秒を表す。なお、図17において「−」はデータが存在しないことを表す。本実施形態では、例えば、図17(a)に示すように、フレーム番号とフレーム画像とが関連付けされる。   FIG. 17 shows an example of the association between frame images and moving images and the classification of frame images. In FIG. 17, JPEG is the frame image file name, MPEG is the MPEG moving image file name, Date & Time is the shooting date, Info is information about the classification, and Group is the classification result. Frame is a frame number constituting a moving image, and RelatedFile is a file name of a still image file or a related file (moving image file / still image file) associated with the moving image file. The frame image file described in the JPEG column is a still image file (frame image file) extracted and stored from the moving image file described in the MPEG column on the same line. The format of Date & Time is a date and time (1/1000 second). For example, the dynamic15. “2014040330100010334” described in the Date & Time column of the jpg line represents March 30, 2014, 10:00:10 and 334/1000 seconds. In FIG. 17, “-” indicates that no data exists. In the present embodiment, for example, as shown in FIG. 17A, a frame number and a frame image are associated with each other.

S504にて、アプリケーション80は、フォトアルバムを作成する際に必要な画像群の中の各静止画像に対して、フォトアルバム用の画像としての適切さを解析する。ここで、「適切さ」は、図14に示す基準に基づいて解析する。   In S504, the application 80 analyzes the appropriateness as the image for the photo album for each still image in the image group necessary for creating the photo album. Here, “appropriateness” is analyzed based on the criteria shown in FIG.

図14は、静止画像のスコアの一例を示す。図14において、Fileはファイル名であり、Elementsはフォトアルバム用の画像としての適切さを定義する要素(基準)であり、Scoreはその各要素の総合的なスコアである。スコアは、Elementの各要素の点から導き出された、テンプレートに配置(レイアウト)される上での総合的な適切さを示す指標である。   FIG. 14 shows an example of a still image score. In FIG. 14, File is a file name, Elements is an element (reference) that defines the appropriateness as an image for a photo album, and Score is an overall score of each element. The score is an index indicating overall suitability derived from the points of each element of the Element and placed on the template (layout).

Elementsは、Color(色)、Contrast(コントラスト)、Brightness(明るさ)、Focus(ピント)、Composition(構図)の各要素を含む。各要素は、0(最低)〜10(最高)のポイントで、フォトアルバム用の画像としての適切さを表す。各要素のポイントは、予め定められた基準に基づいて付与する。本実施形態では、例えば、静止画像内の輝度値の最大値と最小値の差が所定の各レベルに対応すれば、対応するポイントをコントラスト点として付与する。また、例えば、静止画像内のオブジェクトに基づいた三角構図の評価結果が所定の各レベルに対応すれば、対応するポイントを構図点として付与する。また、例えば、静止画像内の輝度分布の変化の尖鋭度が所定の各レベルに対応すれば、対応するポイントをピント点として付与する。なお、ポイントの付与方法は、これらに限定されるものではない。図14の「−」はデータが存在しないことを表す。   Elements include each element of Color (color), Contrast (contrast), Brightness (brightness), Focus (focus), and Composition (composition). Each element represents an appropriateness as an image for a photo album, with points from 0 (lowest) to 10 (highest). Points for each element are given based on a predetermined standard. In the present embodiment, for example, if the difference between the maximum value and the minimum value of luminance values in a still image corresponds to each predetermined level, the corresponding point is given as a contrast point. For example, if the evaluation result of the triangular composition based on the object in the still image corresponds to each predetermined level, the corresponding point is given as the composition point. For example, if the sharpness of the change in the luminance distribution in the still image corresponds to each predetermined level, the corresponding point is given as the focus point. In addition, the method of giving points is not limited to these. “-” In FIG. 14 indicates that no data exists.

このように、アプリケーション80は、各要素の適切さを示す評価値として、各静止画像に対してスコアを算出し、付与する。ここでスコアが付与される画像は、静止画像ファイル内の静止画像と、S502にて保存されたフレーム画像である。なお、S504では、静止画像ファイル内の静止画像、動画像ファイルから抽出されたフレーム画像の両方に対して共通の評価基準によりスコアが付与される。すなわち、S504にて、アプリケーション80は、S502で追加した、動画像から抽出したフレーム画像に対しても、フォトアルバム用の画像としての各要素の適切さに応じてスコアを付与する。   In this way, the application 80 calculates and assigns a score to each still image as an evaluation value indicating the appropriateness of each element. Here, the image to which the score is assigned is the still image in the still image file and the frame image stored in S502. In S504, a score is assigned according to a common evaluation criterion for both the still image in the still image file and the frame image extracted from the moving image file. That is, in S504, the application 80 also assigns a score to the frame image extracted from the moving image added in S502 according to the appropriateness of each element as the photo album image.

S505にて、アプリケーション80は、動画像から抽出したフレーム画像のスコアを補正する。S505にて、アプリケーション80は、動画像から抽出したフレーム画像に対して、例えば、オリジナルのスコアに1.2倍を乗算してスコアを増やす。ここで用いられた重み付けの値は、1.2に限定するものではなく、経験的に求められた他の値を用いてもよい。この値は、予め定義され記憶部に保持されているものとする。   In S505, the application 80 corrects the score of the frame image extracted from the moving image. In S505, the application 80 increases the score by multiplying the frame score extracted from the moving image by 1.2 times the original score, for example. The weighting value used here is not limited to 1.2, and other values obtained empirically may be used. This value is defined in advance and stored in the storage unit.

図14において、Originalはオリジナルのスコアであり、Color(色)、Contrast(コントラスト)、Brightness(明るさ)、Focus(ピント)、Composition(構図)のそれぞれのポイントの平均値である。Modifiedはオリジナルのスコアを補正したスコアである。アプリケーション80は、動画像から抽出したフレーム画像に対して、そのメリットを表す分の重み付けをスコアとして表す為に、本実施形態では、例えばオリジナルのスコアに1.2倍を乗算してスコアを増やす。   In FIG. 14, Original is an original score, and is an average value of each point of Color (color), Contrast (contrast), Brightness (brightness), Focus (focus), and Composition (composition). Modified is a score obtained by correcting the original score. In the present embodiment, the application 80 increases the score by multiplying the original score by, for example, 1.2 times in order to represent the weighting representing the merit as a score for the frame image extracted from the moving image. .

ここでのメリットとは、例えば、オリジナルのスコア値を大きくすることによって、動画像から抽出した静止画像がテンプレートへのレイアウト対象として特定される可能性を高めることができる。つまり、動画像から抽出したフレーム画像については、再度の抽出し直しでより良い静止画像を取得することも可能であるので、最終的に完成するレイアウト画像のユーザ満足度を向上させることができる。   The merit here is that, for example, by increasing the original score value, the possibility that a still image extracted from a moving image is specified as a layout target on a template can be increased. That is, for the frame image extracted from the moving image, it is possible to obtain a better still image by re-extraction, so that the user satisfaction of the finally completed layout image can be improved.

アプリケーション80は、静止画像を各スロットに配置する際に、オリジナルのスコア(Original)または補正後のスコア(Modified)から高い方のスコアを採用して、テンプレートへのレイアウト対象としてより適切な画像の特定に使用する。そして、テンプレート内のスロット数分の静止画像を各スロットに対して配置する。これにより、フレーム画像は、静止画像よりもオリジナルのスコアが低かったとしても、高い評価が得られることでレイアウト画像に配置されやすくなる。動画が撮影された場面は、ユーザの印象に残っている場面・お気に入りの場面である可能性が高く、動画から抽出したフレーム画像をレイアウト画像に配置することにより、ユーザの満足度が向上する可能性が高まる。   When the application 80 places a still image in each slot, the application 80 adopts a higher score from the original score (Original) or the corrected score (Modified), and selects a more appropriate image as a layout target on the template. Use for specific purposes. Then, still images corresponding to the number of slots in the template are arranged for each slot. Thereby, even if the original score is lower than that of the still image, the frame image is easily placed on the layout image by obtaining high evaluation. The scene where the video was shot is likely to be a scene that remains in the user's impression or a favorite scene, and the user's satisfaction can be improved by placing the frame image extracted from the video in the layout image Increases nature.

尚、本実施形態では、動画像から抽出した静止画像のオリジナルのスコアに1.2倍を乗算してそのスコアを増やすことにより、動画像から抽出した静止画像のスコアの方が、一般的な静止画像のスコアよりも相対的に高くなるように制御している。しかしながら、このような制御方法に限られることなく、例えば、静止画像のスコアに0.8倍を乗算して静止画像のスコアをフレーム画像よりも減らすようにしても良い。これにより、動画像から抽出したフレーム画像のスコアの方が、静止画像のスコアよりも相対的に高くなるように制御することを実現できる。   In this embodiment, the score of the still image extracted from the moving image is more general by multiplying the original score of the still image extracted from the moving image by 1.2 to increase the score. Control is performed so as to be relatively higher than the score of the still image. However, the present invention is not limited to such a control method. For example, the still image score may be multiplied by 0.8 times to reduce the still image score from the frame image. Accordingly, it is possible to realize control so that the score of the frame image extracted from the moving image is relatively higher than the score of the still image.

S506にて、アプリケーション80は、レイアウトテンプレート内の各スロットに、スコアの高い順に静止画像を配置する。配置するスロットは、各スロットに割り当てられた番号の順であってもよいし、スロット自体に割り当てられた優先度(スコア)に従ってもよい。   In S506, the application 80 arranges still images in descending order of scores in each slot in the layout template. The slots to be arranged may be in the order of numbers assigned to the slots, or may be in accordance with the priority (score) assigned to the slots themselves.

S507にて、アプリケーション80は、動画像から抽出したフレーム画像がスロットに配置されているか否かの判定を行う。動画像から抽出したフレーム画像がスロットの中の少なくとも何れか1つのスロットに配置されていると判定された場合には(S508にてYES)S509へ進む。また、スロットのいずれにも配置されていないと判定された場合には(S508にてNO)本処理フローを終了する。   In S507, the application 80 determines whether or not the frame image extracted from the moving image is arranged in the slot. If it is determined that the frame image extracted from the moving image is arranged in at least one of the slots (YES in S508), the process proceeds to S509. If it is determined that the slot is not placed in any of the slots (NO in S508), the process flow ends.

S509にて、画像からより適切な静止画像の取得をし、S510にて、動画像から抽出されたより適切な静止画像(フレーム画像)をスロットに配置する。その後、本処理フローを終了する。   In S509, a more appropriate still image is acquired from the image, and in S510, a more appropriate still image (frame image) extracted from the moving image is arranged in the slot. Thereafter, this processing flow ends.

以下、図11(a)に示すレイアウトテンプレート1100を例に挙げて、各スロットに画像を配置してフォトアルバムを作成する処理に関して説明する。例えば、S506にて、図14のスコアに基づき、スロット1107〜1110に、static1.jpg、static2.jpg、static3.jpg、dynamic20.jpgを配置したとする(図13(a)に相当)。S509にて、アプリケーション80は、スロット1110に配置されたdynamic20.jpgに基づいて、動画像からテンプレートへのレイアウト対象としてより適切なフレーム画像を取得して保存する処理(図16(b))を実行する。アプリケーション80は、dynamic20.jpgに関連付けられている位置情報(フレーム番号)に基づき、元となった動画像ファイルの中から、前後の一定時間の所定範囲内に含まれる全てのフレームを解析する。そして、アプリケーション80は、フォトアルバム用としてより適切なフレームを抽出する。ここでの前後の一定時間の所定範囲内として、例えば、前1秒、後1秒の合計2秒を設定する。   Hereinafter, the layout template 1100 shown in FIG. 11A will be described as an example, and processing for creating a photo album by arranging images in each slot will be described. For example, in S506, based on the score of FIG. jpg, static2. jpg, static3. jpg, dynamic20. It is assumed that jpg is arranged (corresponding to FIG. 13A). In step S <b> 509, the application 80 loads the dynamic20. Based on jpg, a process (FIG. 16B) for acquiring and storing a more appropriate frame image as a layout target from the moving image to the template is executed. Application 80 is dynamic20. Based on the position information (frame number) associated with jpg, all frames included in a predetermined range of a predetermined time before and after are analyzed from the original moving image file. Then, the application 80 extracts a more appropriate frame for the photo album. Here, for example, a total of 2 seconds of 1 second before and 1 second after is set as a predetermined range of the fixed time before and after.

ここで、図13は、スロットと配置する画像の関係の一例を示す。同13(a)と図13(b)は、テンプレート1102におけるスロットと配置する画像の関係を示す。図13(c)と図13(d)は、テンプレート1141におけるスロットと配置する画像の関係を示す。図13(e)は、レイアウトテンプレート1200におけるスロットと配置する画像の関係を示す。図13において、AlbumTypeはフォトアルバムの種類であり、Groupは領域(グループ)番号であり、Pageはページ番号であり、Slotはスロット番号であり、Attributeは画像の属性であり、Fileはファイル名である。図13(a)と図13(b)において、スロット番号1〜4のスロットはそれぞれ、スロット1107〜1110に該当する。図13(c)と図13(d)において、スロット番号1〜5はそれぞれ、スロット1143〜1147に該当する。図13(e)において、スロット番号1〜7は、それぞれスロット1203〜1209に該当する。図13において、static*.jpgはデジタルスチルカメラ等で撮影して保存された写真等の静止画像である。また、dynamic*.jpg(*は任意の数字)は動画像から抽出されたフレーム画像である。   Here, FIG. 13 shows an example of the relationship between the slot and the image to be arranged. 13A and 13B show the relationship between the slots in the template 1102 and the images to be arranged. FIG. 13C and FIG. 13D show the relationship between the slots in the template 1141 and the images to be arranged. FIG. 13E shows the relationship between the slots in the layout template 1200 and the images to be arranged. In FIG. 13, AlbumType is a photo album type, Group is an area (group) number, Page is a page number, Slot is a slot number, Attribute is an image attribute, and File is a file name. is there. In FIG. 13A and FIG. 13B, slots with slot numbers 1 to 4 correspond to slots 1107 to 1110, respectively. In FIG. 13C and FIG. 13D, slot numbers 1 to 5 correspond to slots 1143 to 1147, respectively. In FIG. 13 (e), slot numbers 1 to 7 correspond to slots 1203 to 1209, respectively. In FIG. 13, static *. jpg is a still image such as a photograph taken and stored by a digital still camera or the like. In addition, dynamic *. jpg (* is an arbitrary number) is a frame image extracted from a moving image.

その際、アプリケーション80は、より適切なフレームを抽出する為に、図14に示す各要素を使って、フレーム画像をスコアリングし、オリジナルのスコア(Original)でより高いスコアのフレームを採用する。アプリケーション80は、フォトアルバム用としてより適切なフレームを抽出し、抽出したフレーム画像を静止画像dynamic24.jpgとして保存する。   At that time, in order to extract a more appropriate frame, the application 80 scores the frame image using each element shown in FIG. 14 and adopts a frame having a higher score with the original score (Original). The application 80 extracts a more appropriate frame for the photo album, and converts the extracted frame image into a still image dynamic24. Save as jpg.

S510にて、アプリケーション80は、スロット1110に配置されているdynamic20.jpgをスロット1110から外す。そして、アプリケーション80は、S509で保存したフォトアルバム用としてより適切な静止画像dynamic24.jpgをスロット1110に配置して置き換える。その結果、スロット1107〜1110に対して、図13(b)に示す画像が配置される。つまり、図13(b)に示すスロット4の画像が置き換えられている。そして本処理フローを終了する。本処理フローの終了後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In step S510, the application 80 receives the dynamic20. Remove jpg from slot 1110. Then, the application 80 selects a still image dynamic24. Replace jpg in slot 1110. As a result, the images shown in FIG. 13B are arranged in the slots 1107 to 1110. That is, the image in slot 4 shown in FIG. 13B is replaced. Then, this processing flow ends. After the end of this processing flow, the application 80 displays an edit screen 415 shown in FIG.

以上のように、静止画像と動画像の両方を一緒に取り扱い、ユーザの煩わしい操作を伴わずに、自動的により適切な画像を抽出してレイアウトを行うフォトアルバム作成アプリケーションを提供することができる。   As described above, it is possible to provide a photo album creation application that handles both a still image and a moving image together, and automatically extracts and lays out an appropriate image without a user's troublesome operation.

また、上記の例では、S505にて、動画像から抽出したフレーム画像のオリジナルのスコアに1.2倍を乗算してスコアを増やす、又は通常の静止画像のスコアに0.8倍を乗算してスコアを減らす。これにより、フレーム画像がスロットに配置されやすいようにした。しかし、これらのような例に限られることなく、例えば、動画像の解像度等の指標に基づくクオリティに応じて、スコアに重み付けをしてもよい。具体的には、そのクオリティが高いと判断した場合はその動画像から抽出したフレーム画像のオリジナルのスコアに1.5倍を乗算してもよい。例えば、解像度が基準値以上であれば、クオリティが高いと判定してもよい。また、静止画像の解像度等の指標に基づくクオリティに応じて、スコアに重み付けをしてもよい。具体的には、クオリティが低い場合はその静止画像のオリジナルのスコアに0.5倍を乗算してもよい。このような構成により、フォトアルバム用の画像としての適切さを示すスコア値を柔軟に制御することができる。   In the above example, in S505, the original score of the frame image extracted from the moving image is multiplied by 1.2 times to increase the score, or the normal still image score is multiplied by 0.8 times. Reduce the score. As a result, the frame image is easily arranged in the slot. However, the score is not limited to these examples. For example, the score may be weighted according to the quality based on the index such as the resolution of the moving image. Specifically, when it is determined that the quality is high, the original score of the frame image extracted from the moving image may be multiplied by 1.5 times. For example, if the resolution is equal to or higher than a reference value, it may be determined that the quality is high. Further, the score may be weighted according to the quality based on an index such as the resolution of the still image. Specifically, when the quality is low, the original score of the still image may be multiplied by 0.5. With such a configuration, it is possible to flexibly control a score value indicating appropriateness as an image for a photo album.

また、上記の例では、S504にて静止画像に対してスコアを付与した後、S505にてそのスコアを補正した。しかし、この構成に限らず、S504にて、動画像から抽出された静止画像に高いスコアが付与されるように処理を行ってもよい。例えば、PCは、高いスコアが付与されやすい第1の評価基準と、第1の評価基準よりは低いスコアが付与されやすい第2の評価基準とをHDD202に記憶しておく。そして、CPU204は、S504にて、動画像から抽出されたフレーム画像については第1の評価基準によりスコアを付与し、それ以外の静止画像については第2の評価基準によりスコアを付与してもよい。   In the above example, after assigning a score to the still image in S504, the score is corrected in S505. However, the present invention is not limited to this configuration, and the processing may be performed so that a high score is given to the still image extracted from the moving image in S504. For example, the PC stores in the HDD 202 a first evaluation criterion for which a high score is easily given and a second evaluation criterion for which a score lower than the first evaluation criterion is easily given. In step S504, the CPU 204 may assign a score based on the first evaluation criterion for the frame image extracted from the moving image, and may assign a score based on the second evaluation criterion for the other still images. .

また、上記の例では、S510にて、スロット1110に配置されているdynamic20.jpgをスロット1110から外し、S509で保存したフォトアルバム用としてより適切なdynamic24.jpgを配置して置き換えた。しかしながら、このような制御方法に限られることなく、例えば、dynamic24.jpgのオリジナルのスコア(Original)により、図13(b)に示すテンプレート1102におけるスロットとフレーム画像の配置の関係を見直してもよい。例えば、dynamic24.jpgのオリジナルのスコア(Original)が7.5であるとする。この場合、dynamic24.jpgの方がstatic3.jpgのオリジナルのスコアである7.0よりもスコア(=オリジナルのスコア)が高くなる。従って、アプリケーション80は、dynamic24.jpgを図13(b)のスロット3に、static3.jpgを図13(b)のスロット4にそれぞれ配置する。この場合も、dynamic20.jpgは置き換えられることにより、配置されなくなる。   In the above example, in step S510, the dynamic20. jpg is removed from the slot 1110, and the dynamic24. jpg was placed and replaced. However, the present invention is not limited to such a control method. For example, dynamic24. The relationship between the slot and frame image arrangement in the template 1102 shown in FIG. 13B may be reviewed based on the original score (original) of jpg. For example, dynamic24. It is assumed that the original score (Original) of jpg is 7.5. In this case, dynamic24. jpg is static3. The score (= original score) is higher than 7.0, which is the original score of jpg. Therefore, the application 80 can be used for the dynamic 24. jpg to slot 3 in FIG. jpg is placed in each slot 4 of FIG. Again, dynamic20. By replacing jpg, it is not arranged.

ここで、図16を用いて、S502及びS509の処理について詳細に説明する。図16は、動画像からフレーム画像(静止画像)を取得して保存する処理を示すフローチャートである。図16のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、CPU204により読み出されて実行される。図16(a)は動画像から静止画像を取得して保存する処理の一例を示すフローチャートであり、図5のS502の工程に対応する。図16(b)は、動画像からより適切な静止画像を取得して保存する処理を示すフローチャートであり、図5のS509の工程に対応する。   Here, the processing of S502 and S509 will be described in detail with reference to FIG. FIG. 16 is a flowchart showing a process of acquiring and storing a frame image (still image) from a moving image. For example, the program according to the flowchart of FIG. 16 is stored in the HDD 202 and is read and executed by the CPU 204. FIG. 16A is a flowchart showing an example of processing for acquiring and storing a still image from a moving image, and corresponds to the process of S502 in FIG. FIG. 16B is a flowchart illustrating a process for acquiring and storing a more appropriate still image from a moving image, and corresponds to the process of S509 in FIG.

図5のS502の処理が実行されると、アプリケーション80は、図16(a)の処理を開始する。   When the process of S502 of FIG. 5 is executed, the application 80 starts the process of FIG.

S1611にて、アプリケーション80は、図5のS501で指定したフォルダに格納されている静止画像または動画像、もしくは、図5のS501で指定した画像データ群から動画像を検索する。   In S1611, the application 80 searches for a moving image from the still image or moving image stored in the folder specified in S501 of FIG. 5 or the image data group specified in S501 of FIG.

S1612にて、アプリケーション80は、検索された動画像から図4のフレーム抽出時間間隔指定部430で指定されている時間間隔で複数のフレームを抽出する。ここでは、フレーム抽出時間間隔指定部430で指定されている時間間隔を、デフォルト値の1秒として説明する。   In S1612, the application 80 extracts a plurality of frames at a time interval specified by the frame extraction time interval specifying unit 430 in FIG. 4 from the searched moving image. Here, the time interval specified by the frame extraction time interval specifying unit 430 will be described as a default value of 1 second.

S1613にて、アプリケーション80は、抽出した各フレームを静止画像(JPEGファイル)に変換して、これらの静止画像(フレーム画像)を保存する。なお、このとき静止画像をファイル化する場合に限らず、CPU204が静止画像を例えばビットマップ形式でRAM201に記憶させておいてもよい。この時、図17(a)に示すように、アプリケーション80は、各フレーム画像に対して、そのフレーム画像を抽出した動画像のファイル名と、そのフレーム画像の元であるフレームの位置情報(フレーム番号)を、その静止画像と関連付けて保存する。なお、静止画像を抽出した動画像のファイルの情報は格納先のフルパスを含むが、図17(a)では格納先のフルパスを省略している。   In S1613, the application 80 converts each extracted frame into a still image (JPEG file) and stores these still images (frame images). At this time, the CPU 204 may store the still image in the RAM 201 in, for example, the bitmap format, without being limited to the case where the still image is filed. At this time, as shown in FIG. 17A, the application 80, for each frame image, the file name of the moving image from which the frame image is extracted and the position information (frame information) of the frame from which the frame image is derived. Number) is stored in association with the still image. Note that the moving image file information from which the still image is extracted includes the storage destination full path, but the storage destination full path is omitted in FIG.

S1614にて、アプリケーション80は、フォトアルバムを作成する際に必要な画像群の中にこれらのフレーム画像を追加する。その後、本処理フローを終了する。   In S1614, the application 80 adds these frame images to an image group necessary for creating a photo album. Thereafter, this processing flow ends.

例えば、S506にて、図14に示すスコアに基づいて、スロット1107〜1110に、static1.jpg、static2.jpg、static3.jpg、dynamic20.jpgが配置されたとする(図13(a)に相当)。ここで、図17(a)に示すように、dynamic20.jpgは、video1.mp4から抽出されたフレームを元に保存されたファイルである。尚、video1.mp4はMPEG4形式の動画像ファイルであり、フレームレートは30fps(フレーム/秒)である。   For example, in S506, based on the score shown in FIG. jpg, static2. jpg, static3. jpg, dynamic20. It is assumed that jpg is arranged (corresponding to FIG. 13A). Here, as shown in FIG. jpg is video1. This file is saved based on the frame extracted from mp4. In addition, video1. mp4 is a moving image file in the MPEG4 format, and the frame rate is 30 fps (frame / second).

図5のS509の処理が実行されると、アプリケーション80は、スロット1110に配置された動画像から抽出したdynamic20.jpgを基に、図16(b)の処理を開始する。図16(b)の処理は、動画像からテンプレートへのレイアウト対象としてより適切なフレーム画像を取得して保存する処理である。   When the process of S509 in FIG. 5 is executed, the application 80 acquires the dynamic20.x extracted from the moving image arranged in the slot 1110. Based on jpg, the processing of FIG. 16B is started. The process in FIG. 16B is a process for acquiring and storing a more appropriate frame image as a layout target from a moving image to a template.

S1621にて、アプリケーション80は、図17(a)に示すテーブルを参照し、dynamic20.jpgに関連付けられている位置情報(フレーム番号)を取得する。   In S1621, the application 80 refers to the table shown in FIG. The position information (frame number) associated with jpg is acquired.

S1622にて、アプリケーション80は、取得した位置情報(フレーム番号)に基づいて、その前後の一定時間の所定範囲(例えば、前1秒、後1秒の合計2秒)の中に含まれる全てのフレームを抽出する。   In S1622, the application 80, based on the acquired position information (frame number), includes all of the predetermined ranges before and after that (for example, 1 second before and 1 second after that for a total of 2 seconds). Extract the frame.

S1623にて、アプリケーション80は、抽出した全てのフレームを解析して、フォトアルバム用としてより適切なフレームを選択する。その際、アプリケーション80は、より適切なフレームを選択する為に、図14に示す各要素を使って、フレームの画像をスコアリングし、オリジナルのスコア(Original)でより高いスコアのフレームを選択する。例えば、抽出されたフレームの中でオリジナルのスコアが最も高いフレームを選択する。つまり、ここでのより適切なフレームとは、各画像に割り当てられたスコアに基づき判定される。   In S1623, the application 80 analyzes all the extracted frames and selects a more appropriate frame for the photo album. At that time, in order to select a more appropriate frame, the application 80 uses each element shown in FIG. 14 to score the image of the frame, and selects a frame having a higher score based on the original score (Original). . For example, the frame with the highest original score is selected from the extracted frames. That is, the more appropriate frame here is determined based on the score assigned to each image.

S1624にて、アプリケーション80は、選択したフレームを静止画像(JPEGファイル)に変換して、その静止画像(フレーム画像)を保存する。ここで、アプリケーション80は、dynamic20.jpgを基準として、フォトアルバム用としてより適切なフレームを選択し、その選択したフレームをdynamic24.jpgとして保存する。その後、本処理フローを終了する。   In S1624, the application 80 converts the selected frame into a still image (JPEG file) and stores the still image (frame image). Here, the application 80 has a dynamic 20.. With reference to jpg, a more appropriate frame for the photo album is selected, and the selected frame is set to dynamic24. Save as jpg. Thereafter, this processing flow ends.

以上で説明した処理によれば、静止画像がテンプレートにレイアウトされるに際し、動画像から抽出されたフレーム画像に高いスコアが付与されやすくなり、その静止画像がテンプレートに配置されやすくなる。   According to the processing described above, when a still image is laid out on a template, a high score is easily given to the frame image extracted from the moving image, and the still image is easily placed on the template.

以上で説明した処理によれば、動画像から抽出された複数のフレーム画像に優先的に高いスコアが付与され、さらにその複数のフレーム画像のうち評価の高い画像がレイアウトされる。そのため、ボケ等の少ない適切な画像をレイアウトすることができる。動画像の場合、あるシーンについて多数の画像(静止画像)が撮影されるため、その多数の画像の中にボケが少ない適切な画像が含まれることがある。したがって、本実施形態では、上述した方法により、より適切な画像を抽出し、テンプレートのスロットにレイアウトする。   According to the processing described above, a high score is preferentially given to a plurality of frame images extracted from a moving image, and an image with a high evaluation among the plurality of frame images is laid out. Therefore, it is possible to lay out an appropriate image with less blur and the like. In the case of a moving image, since a large number of images (still images) are captured for a certain scene, an appropriate image with less blur may be included in the large number of images. Therefore, in this embodiment, a more appropriate image is extracted and laid out in a template slot by the above-described method.

ここで、図20を用いて、フォトアルバム自動作成用の画像データ群を抽出する処理について説明する。図20は、フォトアルバム自動作成用の画像データ群を抽出する処理を示すフローチャートである。図20のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、CPU204により読み出されて実行される。図20の処理が開始されると、まず、高速モードは有効か否かが判定され(S2001)、その判定結果に基づき図20(a)もしくは図20(b)の処理が実行される。図20(a)のS2002以降の処理は、高速モードが有効な場合の処理を示す。図20(b)の処理は、高速モードが無効な場合の処理を示す。   Here, the process of extracting the image data group for automatic photo album creation will be described with reference to FIG. FIG. 20 is a flowchart showing a process of extracting an image data group for automatic photo album creation. The program according to the flowchart of FIG. 20 is stored in, for example, the HDD 202, and is read and executed by the CPU 204. When the process of FIG. 20 is started, it is first determined whether or not the high-speed mode is valid (S2001), and the process of FIG. 20A or 20B is executed based on the determination result. The processing after S2002 in FIG. 20A shows processing when the high-speed mode is valid. The process in FIG. 20B shows a process when the high-speed mode is invalid.

上述したように、まず、図20(a)のS2001にて、アプリケーション80は、高速モードの設定状態(有効か無効か)を確認する。高速モードが有効であると判定された場合(S2001にてYES)S2002へ進み、指定された画像群のうち一部の画像を選択する。高速モードが無効であると判定された場合(S2001にてNO)図20(b)のS2011へ進む。   As described above, first, in S2001 of FIG. 20A, the application 80 checks the setting state (valid or invalid) of the high-speed mode. If it is determined that the high-speed mode is valid (YES in S2001), the process proceeds to S2002, and a part of the designated image group is selected. When it is determined that the high-speed mode is invalid (NO in S2001), the process proceeds to S2011 in FIG.

S2002にて、アプリケーション80は、動画像からフレーム画像を抽出する処理の設定状態を確認する。動画像も抽出の対象である、すなわち、動画像を抽出する設定が有効であると判定された場合(S2002にてYES)S2003へ進み、無効であると判定された場合(S2002にてNO)S2007へ進む。   In S2002, the application 80 confirms the setting state of the process for extracting the frame image from the moving image. If the moving image is also an extraction target, that is, if it is determined that the setting for extracting the moving image is valid (YES in S2002), the process proceeds to S2003, and if it is determined to be invalid (NO in S2002). The process proceeds to S2007.

S2003にて、アプリケーション80は、フォトアルバムを作成する対象となっている画像データ群の中に条件を満たす動画像があるか否かを確認する。条件を満たす動画像があると判定された場合(S2003にてYES)S2005へ進み、条件を満たす動画像が無いと判定された場合(S2003にてNO)S2007へ進む。ここで、条件の一例を以下に示す。   In step S2003, the application 80 checks whether there is a moving image that satisfies the condition in the image data group that is the target of creating the photo album. If it is determined that there is a moving image that satisfies the condition (YES in S2003), the process proceeds to S2005. If it is determined that there is no moving image that satisfies the condition (NO in S2003), the process proceeds to S2007. Here, an example of the conditions is shown below.

[動画像の条件]
フォーマット: MOV、MP4
エンコーディング: MPEG−4 AVC/H.264
撮影時間: 5秒以上〜180秒以下
[Video condition]
Format: MOV, MP4
Encoding: MPEG-4 AVC / H. H.264
Shooting time: 5 seconds to 180 seconds

S2004にて、アプリケーション80は、動画像の数が規定数以内であるか否かを判定する。動画像の数が規定数以内の場合(S2004にてYES)S2006へ進み、規定数より多い場合(S2004にてNO)S2005へ進む。ここで、図19(a)、図19(c)に示すように、規定数が1であると仮定する。   In S2004, the application 80 determines whether or not the number of moving images is within a specified number. If the number of moving images is within the specified number (YES in S2004), the process proceeds to S2006. If the number is larger than the specified number (NO in S2004), the process proceeds to S2005. Here, it is assumed that the specified number is 1, as shown in FIGS. 19 (a) and 19 (c).

S2005にて、アプリケーション80は、複数の動画像の中から規定数(=1つ)の動画像を選択する。すなわち、規定数の動画像を取得する。動画像の選択方法として、例えば、アプリケーション80は、撮影時間がある所定の時間(ここでは180秒とする)以下でその所定の時間に最も近いものを選択する。すなわち、ここでは、180秒以下で且つ180秒に最も近い動画像を選択する。尚、この構成に限定するものではなく、例えば、アプリケーション80が、ある所定の時間以下ではなく、その所定の時間の前後を対象としてその所定の時間に最も近いものを選択するという方法でもよい。すなわち、例えば、180秒から±30秒で且つ180秒に最も近い動画像を選択するという方法でもよい。また、所定の時間は180秒に限られることなく、60秒、90秒、300秒等の値に設定してもよい。   In S2005, the application 80 selects a prescribed number (= 1) of moving images from among a plurality of moving images. That is, a specified number of moving images are acquired. As a method for selecting a moving image, for example, the application 80 selects an image capturing time that is less than or equal to a predetermined time (here, 180 seconds) and is closest to the predetermined time. That is, here, the moving image closest to 180 seconds or less is selected. Note that the present invention is not limited to this configuration. For example, the application 80 may select a method closest to the predetermined time, not before and after the predetermined time, but before and after the predetermined time. That is, for example, a method of selecting a moving image closest to 180 seconds from 180 seconds to ± 30 seconds may be used. The predetermined time is not limited to 180 seconds, and may be set to a value such as 60 seconds, 90 seconds, 300 seconds, or the like.

S2006にて、アプリケーション80は、規定数以内(=1つ)の動画像から静止画像(フレーム画像)を生成する。静止画像の生成方法としては、例えば、対象の内のある1つの動画像から等間隔で40個のフレームを抽出し、抽出した各フレームを静止画像(JPEGファイル)に変換して保存することで生成してもよい。尚、このとき静止画像をファイル化する場合に限らず、CPU204が静止画像を例えばビットマップ形式でRAM201に記憶させておいてもよい。この時、図17(a)に示すように、アプリケーション80は、各フレーム画像に対して、そのフレーム画像を抽出した動画像のファイル名と、その静止画像の元となるフレームの位置情報(フレーム番号)を、その静止画像と関連付けて保存する。アプリケーション80は、フォトアルバムを作成する際に必要な画像データ群の中にこれらのフレーム画像を追加する。   In S2006, the application 80 generates a still image (frame image) from a predetermined number (= 1) of moving images. As a method for generating a still image, for example, 40 frames are extracted at an equal interval from one moving image of a target, and each extracted frame is converted into a still image (JPEG file) and stored. It may be generated. At this time, the still image is not limited to being filed, and the CPU 204 may store the still image in the RAM 201 in a bitmap format, for example. At this time, as shown in FIG. 17 (a), the application 80, for each frame image, the file name of the moving image from which the frame image is extracted and the position information (frame information) of the frame from which the still image is based. Number) is stored in association with the still image. The application 80 adds these frame images to a group of image data necessary when creating a photo album.

S2007にて、アプリケーション80は、フォトアルバムを作成する際に必要な画像群として指定または選択された画像群の中に含まれている静止画像の数を確認する。更にアプリケーション80は、所定数と画像群の中に含まれている静止画像の数を比較する。この時の所定数の定義は次の通りである。   In S2007, the application 80 checks the number of still images included in the image group designated or selected as the image group necessary for creating the photo album. Further, the application 80 compares the predetermined number with the number of still images included in the image group. The definition of the predetermined number at this time is as follows.

S2006の処理を実行していた場合:図19(a)もしくは図19(c)のテーブルの「静止画像数」
S2006の処理を実行しなかった場合:図19(a)もしくは図19(c)のテーブルの「画像総数」
例えば、アプリケーション80がPC用のアプリケーションの場合、S2006を実行した時の所定数は図19(a)の「静止画像数」となるので、ページ数が20ページの場合では所定数は460個となる。また、例えば、アプリケーション80がPC用のアプリケーションの場合、S2006を実行しなかった時の所定数は図19(a)の「画像総数」となるので、ページ数が20ページの場合では所定数は500個となる。このように、S2006の処理を実行した場合としなかった場合(すなわち、動画像からの静止画像の生成を行った場合と行わなかった場合)の間で、フォトアルバムを自動作成する時間差が少なくでき、その結果、ユーザの操作性に優れるものとなる。
When the processing of S2006 has been executed: “number of still images” in the table of FIG. 19A or 19C
When the process of S2006 is not executed: “Total number of images” in the table of FIG. 19A or 19C
For example, when the application 80 is a PC application, the predetermined number when executing S2006 is the “number of still images” in FIG. 19A. Therefore, when the number of pages is 20, the predetermined number is 460. Become. Further, for example, when the application 80 is a PC application, the predetermined number when S2006 is not executed is “total number of images” in FIG. 19A, and therefore when the number of pages is 20, the predetermined number is 500. As described above, the time difference for automatically creating a photo album can be reduced between when the process of S2006 is not performed and when it is not performed (that is, when a still image is generated from a moving image). As a result, the user operability is excellent.

S2007にて、アプリケーション80は、画像群の中に含まれている静止画像の数が所定数以内であるか否かを判定する。静止画像の数が所定数以内である場合(S2007にてYES)S2009へ進み、所定数より多い場合(S2007にてNO)S2008へ進む。   In S2007, the application 80 determines whether or not the number of still images included in the image group is within a predetermined number. If the number of still images is within the predetermined number (YES in S2007), the process proceeds to S2009, and if it is greater than the predetermined number (NO in S2007), the process proceeds to S2008.

S2008にて、アプリケーション80は、画像群の中に含まれている静止画像から所定数と同じ数またはそれ以内となるように静止画像を抽出する(選択する)。なお、画像の抽出方法は、特に限定されないが、本実施形態では、画像を撮影順に並べて所定間隔で間引くことにより、所定数以下の静止画像を抽出する。   In S2008, the application 80 extracts (selects) still images from the still images included in the image group so as to be equal to or less than the predetermined number. The image extraction method is not particularly limited, but in the present embodiment, a predetermined number or less of still images are extracted by arranging the images in the order of shooting and thinning them out at a predetermined interval.

S2009にて、アプリケーション80は、フォトアルバムの自動作成において対象とする画像が、フォトアルバムを自動作成する為に必要な最小数以上であるか否かを判定する。ここでの対象とする画像とは、動画像から生成されたフレーム画像と、静止画像(S2008の処理を実行した場合は、この処理で抽出された抽出された静止画像)の合計数に相当する。また、フォトアルバムを自動作成する為に必要な画像の最小数は、例えば、2ページで構成される見開きページ毎に少なくとも1枚の写真(画像)が必要であると仮定して、「ページ数/2」とする。尚、フォトアルバムを自動作成する為に必要な最小数はこの例に限られることなく、例えば、フォトアルバムに使用するレイアウトテンプレートの仕様に合わせて、適切な値を設定してもよい。対象とする画像が最小数以上であると判定された場合(S2009にてNO)図5のS503へ進み、最小数より少ないと判定された場合(S2009にてYES)S2010へ進む。   In S2009, the application 80 determines whether or not the number of images targeted for automatic photo album creation is equal to or greater than the minimum number necessary for automatically creating a photo album. The target image here corresponds to the total number of frame images generated from moving images and still images (the extracted still images extracted in this process when the process of S2008 is executed). . Further, the minimum number of images required for automatically creating a photo album is, for example, on the assumption that at least one photo (image) is required for each spread page composed of two pages. / 2 ". Note that the minimum number required for automatically creating a photo album is not limited to this example. For example, an appropriate value may be set according to the specifications of the layout template used for the photo album. If it is determined that the number of target images is equal to or greater than the minimum number (NO in S2009), the process proceeds to S503 in FIG. 5, and if it is determined that the number is less than the minimum number (YES in S2009), the process proceeds to S2010.

S2010にて、アプリケーション80は、「写真(画像)の数が足りません。」という旨の画像数不足エラーメッセージを表示する。そして、本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、メイン画面401を表示する。   In step S2010, the application 80 displays an image count shortage error message stating that “the number of photos (images) is insufficient”. Then, this processing flow ends. After this processing flow ends, the application 80 displays the main screen 401.

図20(b)のS2011にて、アプリケーション80は、動画像からフレーム画像を抽出する処理の設定状態を確認する。動画像も抽出の対象である、すなわち、動画像を抽出する設定が有効であると判定された場合(S2011にてYES)S2012へ進み、無効であると判定された場合(S2011にてNO)S2014へ進む。   In S2011 of FIG. 20B, the application 80 confirms a setting state of processing for extracting a frame image from a moving image. If the moving image is also an extraction target, that is, if it is determined that the setting for extracting the moving image is valid (YES in S2011), the process proceeds to S2012, and if it is determined to be invalid (NO in S2011). Proceed to S2014.

S2012にて、アプリケーション80は、フォトアルバムを作成する対象となっている画像群の中に動画像があるか否かを確認する。動画像があると判定された場合(S2012にてYES)S2013へ進み、動画像がないと判定された場合(S2012にてNO)S2014へ進む。   In S2012, the application 80 checks whether there is a moving image in the image group for which a photo album is to be created. If it is determined that there is a moving image (YES in S2012), the process proceeds to S2013. If it is determined that there is no moving image (NO in S2012), the process proceeds to S2014.

S2013にて、アプリケーション80は、画像群の中の全ての動画像から静止画像(フレーム画像)を生成する。静止画像の生成方法としては、S2006の工程にて示した方法と同じでも良いし、S2006の工程とは異なる方法で生成してもよい。静止画像を生成する時、図17(a)に示すように、アプリケーション80は、各静止画像に対して、その静止画像を抽出した動画像のファイル名と、その静止画像のもととなっているフレームの位置情報(フレーム番号)を、その静止画像と関連付けて保存する。そして、アプリケーション80は、フォトアルバムを作成する際に必要な画像群の中にこれらの静止画像を追加する。   In S2013, the application 80 generates a still image (frame image) from all moving images in the image group. The method for generating the still image may be the same as the method shown in the step S2006, or may be generated by a method different from the step S2006. When generating a still image, as shown in FIG. 17A, the application 80 uses, for each still image, the file name of the moving image from which the still image is extracted and the source of the still image. The position information (frame number) of the current frame is stored in association with the still image. Then, the application 80 adds these still images to an image group necessary for creating a photo album.

S2014にて、アプリケーション80は、フォトアルバムの自動作成において対象とする画像が、フォトアルバムを自動作成する為に必要な最小数以上であるか否かを判定する。ここでの対象とする画像とは、動画像から生成された静止画像と、静止画像の合計数に相当する。また、ここでの最小数は、S2009と同じ値であってもよいし、別の値を用いてもよい。対象とする画像が最小数以上であると判定された場合(S2014にてNO)S2016へ進み、最小数より少ないと判定された場合(S2014にてYES)S2015へ進む。   In S2014, the application 80 determines whether or not the number of images targeted for automatic photo album creation is equal to or greater than the minimum number necessary for automatically creating a photo album. The target image here corresponds to the total number of still images generated from moving images and still images. Also, the minimum number here may be the same value as in S2009, or another value may be used. If it is determined that the number of target images is equal to or greater than the minimum number (NO in S2014), the process proceeds to S2016. If it is determined that the target image is smaller than the minimum number (YES in S2014), the process proceeds to S2015.

S2015にて、アプリケーション80は、「写真(画像)の数が足りません。」という旨の画像数不足エラーメッセージを表示する。そして、本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、メイン画面401を表示する。   In S2015, the application 80 displays an error message indicating that the number of images (images) is insufficient. Then, this processing flow ends. After this processing flow ends, the application 80 displays the main screen 401.

S2016にて、アプリケーション80は、フォトアルバムの自動作成において対象とする画像が、アプリケーション80がフォトアルバムを自動作成する際に規定されたシステム上限画像数(=10000個)より多いか否かを判断する。ここでの対象とする画像とは、動画像から生成されたフレーム画像と、静止画像の合計数に相当する。対象とする画像がシステム上限画像数より多いと判定された場合(S2016にてYES)S2017へ進み、システム上限画像数以内であると判定された場合(S2016にてNO)図5のS503へ進む。   In S2016, the application 80 determines whether or not the number of images targeted for automatic photo album creation is greater than the system upper limit image number (= 10000) defined when the application 80 automatically creates a photo album. To do. The target image here corresponds to the total number of frame images generated from moving images and still images. If it is determined that there are more target images than the system upper limit image number (YES in S2016), the process proceeds to S2017, and if it is determined that the number is within the system upper limit image number (NO in S2016), the process proceeds to S503 in FIG. .

S2017にて、アプリケーション80は、「写真(画像)の数が上限数を超えています。」という旨の画像数超過警告メッセージを表示する。その後、図5のS503へ進む。   In S2017, the application 80 displays an image number excess warning message stating that “the number of photographs (images) exceeds the upper limit number”. Thereafter, the process proceeds to S503 in FIG.

尚、上記の例では、システム上限画像数を10000個と設定したが、この例に限られることなく、ハードウェアのスペックに合わせて適切な値を設定してもよい。また、この値は、PC用のアプリケーションとモバイルデバイス用のアプリケーションとで、それぞれのハードウェアに適した異なる値を設定してもよい。例えば、アプリケーション80が、PCとモバイルデバイスの両方で実行可能なアプリケーションの場合は、OSを介して実行されている機器の情報を取得し、各ハードウェアに適する異なる値を設定してもよい。尚、システム上限画像数を超えた場合、フォトアルバムを自動作成する際に対象とする画像を前記システム上限画像数以内に間引いてもよい。   In the above example, the system upper limit image number is set to 10,000, but the present invention is not limited to this example, and an appropriate value may be set according to the hardware specifications. Also, different values suitable for the respective hardware may be set for the PC application and the mobile device application. For example, when the application 80 is an application that can be executed by both a PC and a mobile device, information on a device that is being executed via the OS may be acquired, and different values suitable for each hardware may be set. When the system upper limit image number is exceeded, the target image when the photo album is automatically created may be thinned out within the system upper limit image number.

以上、本実施形態によれば、動画像から抽出された画像を含むレイアウト処理を適切に行うことができる。また、大量の静止画像と動画像が含まれている画像群から、フォトアルバムの自動作成を高速に行うことができる。   As described above, according to the present embodiment, it is possible to appropriately perform layout processing including an image extracted from a moving image. In addition, a photo album can be automatically created at high speed from a group of images including a large number of still images and moving images.

<第2の実施形態>
本実施形態では、関連性のある画像を自動的に動画像から抽出してレイアウトを行う。
<Second Embodiment>
In the present embodiment, a related image is automatically extracted from a moving image and layout is performed.

図18は、動画像を構成するフレームの一例を示す。図18は、動画像video444.mp4の例を示す。図18において、各フレームの下に記載されている番号はそのフレームのフレーム番号である。dynamic44.jpg、dynamic45.jpg、dynamic46.jpgは、アプリケーション80がvideo444.mp4のフレーム3、4、5からそれぞれ抽出して保存した静止画像ファイルである。dynamic54.jpg、dynamic55.jpg、dynamic56.jpgは、アプリケーション80がvideo444.mp4のフレーム925、926、927からそれぞれ抽出して保存した静止画像ファイルである。dynamic87.jpg、dynamic88.jpg、dynamic89.jpgは、アプリケーション80がvideo444.mp4のフレーム3334、3335、3336からそれぞれ抽出して保存した静止画像ファイルである。図18に示す通り、フレーム1〜5、フレーム924〜928、フレーム3333〜3337は、それぞれ異なる場面のフレーム群である。   FIG. 18 shows an example of a frame constituting a moving image. FIG. 18 shows a moving image video444. An example of mp4 is shown. In FIG. 18, the number described below each frame is the frame number of that frame. dynamic44. jpg, dynamic45. jpg, dynamic46. jpg is the application 444. It is a still image file extracted and stored from frames 3, 4, and 5 of mp4. dynamic54. jpg, dynamic55. jpg, dynamic56. jpg is the application 444. These are still image files extracted and stored from mp4 frames 925, 926, and 927, respectively. dynamic87. jpg, dynamic88. jpg, dynamic89. jpg is the application 444. These are still image files extracted and stored from mp4 frames 3334, 3335, and 3336, respectively. As illustrated in FIG. 18, frames 1 to 5, frames 924 to 928, and frames 3333 to 3337 are frame groups of different scenes.

本実施形態では、各場面について、フレーム画像中に含まれるオブジェクトに基づいてフレーム画像が分類される。例えば、静止画像中に含まれるオブジェクトの種類が異なれば、異なる場面として場面分けする。場面分けは、他の基準に因ってもよく、例えば、同一若しくは類似の構図ごとに場面分けされてもよい。   In the present embodiment, for each scene, the frame image is classified based on the objects included in the frame image. For example, if the types of objects included in a still image are different, the scenes are divided into different scenes. The scene division may be based on other criteria. For example, the scene division may be performed for each identical or similar composition.

図6は、本実施形態に係るフォトアルバムを自動作成する処理を示すフローチャートである。図6のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。ユーザは、図4(a)に示す時間選択ボタン408、シーン選択ボタン409、テーマ選択ボタン410の何れか1つを選択して、フォトアルバム作成ボタン412を押下する。その押下に応じて、アプリケーション80は図6に示す処理を実行する。   FIG. 6 is a flowchart showing a process for automatically creating a photo album according to the present embodiment. For example, the program according to the flowchart of FIG. 6 is stored in the HDD 202, read into the RAM 201, and executed by the CPU 204. The user selects any one of the time selection button 408, the scene selection button 409, and the theme selection button 410 shown in FIG. 4A, and presses the photo album creation button 412. In response to the pressing, the application 80 executes the processing shown in FIG.

S601にて、アプリケーション80は、静止画像または動画像が格納されているPC1内のフォルダ(不図示)、またはPC1内の静止画像または動画像を選択して、フォトアルバムを作成する際に必要な画像群の格納先または画像群として指定する。尚、S601にて、ユーザに、静止画像または動画像が格納されているPC1内のフォルダ、またはPC1内の静止画像または動画像を選択させてもよい。   In S601, the application 80 is necessary for creating a photo album by selecting a folder (not shown) in the PC 1 in which still images or moving images are stored or a still image or moving images in the PC 1. Designated as the image group storage destination or image group. In S601, the user may select a folder in the PC 1 in which a still image or a moving image is stored, or a still image or a moving image in the PC 1.

S602にて、アプリケーション80は、図7に示す静止画像の分類処理を実行する。本工程の処理の詳細については後述する。   In step S602, the application 80 executes still image classification processing illustrated in FIG. Details of the process in this step will be described later.

S603にて、アプリケーション80は、S602の静止画像の分類処理における分類方法(時間ベース、シーンベース、テーマベース)の各方法に応じて、各方法に該当する図8(a)〜(c)のいずれかの処理を実行する。図8(a)〜(c)に示す処理は、分類に対応した、動画像から静止画像(フレーム画像)を抽出する処理である。尚、分類方法は、時間ベース、シーンベース、テーマベースの何れか1つを適用するケースの他に、これらのいくつかを組合せて適用するケースも本実施形態に含まれる。本工程の処理の詳細については後述する。   In S603, the application 80 corresponds to each of the classification methods (time base, scene base, theme base) in the still image classification processing of S602, and corresponds to each method shown in FIGS. Execute one of the processes. The processes shown in FIGS. 8A to 8C are processes for extracting a still image (frame image) from a moving image corresponding to the classification. Note that the classification method includes a case in which any one of a time base, a scene base, and a theme base is applied, and a case in which some of these are applied in combination. Details of the process in this step will be described later.

S604にて、アプリケーション80は、S602で適用した分類方法に基づいて、その分類方法に関連付けられているレイアウトテンプレートを選択する。例えば、S602にて、アプリケーション80がテーマベースの分類方法を選択したとする。この場合、S604にて、アプリケーション80は、テーマベースの分類方法に関連付けられているレイアウトテンプレートを選択する。ここでは、アプリケーション80は、図11(c)に示すレイアウトテンプレート1140が含まれたレイアウトテンプレートを選択したとする。   In S604, the application 80 selects a layout template associated with the classification method based on the classification method applied in S602. For example, it is assumed that the application 80 selects a theme-based classification method in S602. In this case, in S604, the application 80 selects a layout template associated with the theme-based classification method. Here, it is assumed that the application 80 has selected a layout template including the layout template 1140 shown in FIG.

S605にて、アプリケーション80は、レイアウトテンプレート内で関連付けられている一連の領域内の各スロットに、互いに関連する静止画像を配置する。その際に、本分類(例えば、テーマ)に分類分けされた静止画像が、一連の領域内の所定のスロット数より多い場合、第1の実施形態で説明したようなスコアリングが行われて、スコアの高い順に所定数のスロットに割り当てるようにしてもよい。   In S605, the application 80 arranges still images associated with each other in each slot in a series of areas associated in the layout template. At that time, when there are more still images classified into the main classification (for example, theme) than the predetermined number of slots in the series of areas, scoring as described in the first embodiment is performed, You may make it allocate to a predetermined number of slots in order with a high score.

S606にて、アプリケーション80は、各スロットに配置されている静止画像を確認し、動画像から抽出したフレーム画像が複数配置されているか否かを判定する。複数配置されていると判定された場合には(S607にてYES)S608へ進み、複数配置されていないと判定された場合には(S607にてNO)本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In S606, the application 80 confirms the still image arranged in each slot, and determines whether a plurality of frame images extracted from the moving image are arranged. If it is determined that a plurality of elements are arranged (YES in S607), the process proceeds to S608. If it is determined that a plurality of elements are not arranged (NO in S607), the process flow ends. After this processing flow ends, the application 80 displays an edit screen 415 shown in FIG.

ここで、図13(c)に示す通り、スロット1143〜1147にstatic14.jpg、static28.jpg、dynamic44.jpg、dynamic45.jpg、dynamic46.jpgが各配置されたとする。   Here, as shown in FIG. 13C, the static 14. jpg, static28. jpg, dynamic44. jpg, dynamic45. jpg, dynamic46. Assume that jpgs are arranged.

S608にて、アプリケーション80は、複数配置されている動画像から抽出したフレーム画像の中に同一場面のものが含まれているか否かを判定する。同一場面のものが含まれていると判定された場合には(S609にてYES)S610へ進み、同一場面のものが含まれていないと判定された場合には(S609にてNO)本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In S608, the application 80 determines whether or not the same scene is included in the frame images extracted from the plurality of moving images. If it is determined that the same scene is included (YES in S609), the process proceeds to S610. If it is determined that the same scene is not included (NO in S609), this process is performed. End the flow. After this processing flow ends, the application 80 displays an edit screen 415 shown in FIG.

S610にて、アプリケーション80は、動画像から抽出したフレーム画像の中に同一場面と判定した場面とは異なる場面のフレーム画像があるかを判定する。異なる場面のフレーム画像が有ると判定された場合には(S611にてYES)S612へ進み、異なる場面のフレーム画像が無いと判定された場合には(S611にてNO)S613へ進む。   In S610, the application 80 determines whether there is a frame image of a scene different from the scene determined to be the same scene in the frame image extracted from the moving image. If it is determined that there is a frame image of a different scene (YES in S611), the process proceeds to S612. If it is determined that there is no frame image of a different scene (NO in S611), the process proceeds to S613.

S612にて、アプリケーション80は、スロットに配置されている動画像から抽出したフレーム画像の中の同一場面のフレーム画像の一方を、動画像から抽出した異なる場面のフレーム画像と置き換えて、そのスロットに配置する。その結果、ここでの例の場合、スロット1146に配置されているdynamic45.jpgがdynamic55.jpgに置き換えられる。また、スロット1147に配置されているdynamic46.jpgがdynamic88.jpgに置き換えられる。図13(d)に示す通り、スロット1143〜1147にstatic14.jpg、static28.jpg、dynamic44.jpg、dynamic55.jpg、dynamic88.jpgがそれぞれ配置される。その後、本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In step S612, the application 80 replaces one of the frame images of the same scene in the frame image extracted from the moving image arranged in the slot with the frame image of a different scene extracted from the moving image, and stores it in the slot. Deploy. As a result, in the example here, the dynamic 45. jpg is dynamic55. replaced by jpg. Also, the dynamic 46. jpg is dynamic88. replaced by jpg. As shown in FIG. 13 (d), static14. jpg, static28. jpg, dynamic44. jpg, dynamic55. jpg, dynamic88. jpgs are arranged respectively. Thereafter, this processing flow ends. After this processing flow ends, the application 80 displays an edit screen 415 shown in FIG.

S613にて、アプリケーション80は、スロットに配置されている動画像から抽出したフレーム画像の中の同一場面のフレーム画像の一方を、動画像から抽出したフレーム画像ではない、同一分類の静止画像と置き換えて、そのスロットに配置する。このときに、図14に示すスコア値が大きくなるように、置き換えを行ってもよい。若しくは、図14に示す各要素のいずれかのポイントが大きくなるように、置き換えを行ってもよい。その結果、最終的に完成されるレイアウト画像のユーザの満足度を向上させることができる。その後、本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In S613, the application 80 replaces one of the frame images of the same scene in the frame image extracted from the moving image arranged in the slot with a still image of the same classification that is not the frame image extracted from the moving image. And place it in that slot. At this time, the replacement may be performed so that the score value shown in FIG. 14 is increased. Alternatively, the replacement may be performed so that any point of each element shown in FIG. As a result, the satisfaction level of the user of the layout image that is finally completed can be improved. Thereafter, this processing flow ends. After this processing flow ends, the application 80 displays an edit screen 415 shown in FIG.

(静止画像の分類処理)
図7は、静止画像の分類処理を示すフローチャートである。図7のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。本処理は、図6のS602の処理に対応する。
(Still image classification processing)
FIG. 7 is a flowchart showing still image classification processing. For example, the program according to the flowchart of FIG. 7 is stored in the HDD 202, read into the RAM 201, and executed by the CPU 204. This process corresponds to the process of S602 in FIG.

S701にて、アプリケーション80は、ユーザによる動画像ファイル処理方法選択部406の選択状態を取得し、ユーザが選択した動画像から静止画像を抽出する処理方法に基づいて、分類方法を判定する。分類方法が時間ベースの分類方法であると判定した場合には(S702にてYES)S703へ進み、時間ベースの分類方法ではないと判定した場合には(S702にてNO)S704へ進む。   In S701, the application 80 acquires the selection state of the moving image file processing method selection unit 406 by the user, and determines the classification method based on the processing method of extracting a still image from the moving image selected by the user. If it is determined that the classification method is a time-based classification method (YES in S702), the process proceeds to S703. If it is determined that the classification method is not a time-based classification method (NO in S702), the process proceeds to S704.

S703にて、アプリケーション80は、静止画像(JPEGファイル)のExif情報のDateTime情報、静止画像のファイルの作成日、更新日時、アクセス日時等を参照し、それらの情報から得られた撮影年月日時刻に基づき静止画像を分類する。そして、アプリケーション80は、その分類情報と分類結果(グループ)を、対象の静止画像と関連付けて保存する。この時、アプリケーション80は、Exif情報のDateTime情報が存在しない場合、ファイルの作成日、更新日時、アクセス日時等から得られた撮影年月日時刻を、静止画像と関連付けて保存する。   In S703, the application 80 refers to the DateTime information of the Exif information of the still image (JPEG file), the creation date, the update date and time, the access date and time of the still image file, and the shooting date obtained from the information. Classify still images based on time. Then, the application 80 stores the classification information and the classification result (group) in association with the target still image. At this time, if the DateTime information of the Exif information does not exist, the application 80 stores the shooting date / time obtained from the file creation date, update date / time, access date / time, etc. in association with the still image.

分類の方法としては、例えば、同一日の静止画像をまとめて同じ分類としたり、同一月等の同一の時間情報の静止画像をまとめて同じ分類としたりする方法等がある。例えば、図17(b)のstatic100.jpg、static102.jpg、static103.jpg、static108.jpg、static109.jpgがこのケースを表す。static102.jpgは、Info(分類情報)に2013年12月24日20時台(20:00〜20:59)で分類したことを表す情報が関連付けられて格納されている。   As a classification method, for example, there are a method in which still images of the same day are grouped together into the same classification, or still images of the same time information such as the same month are grouped into the same classification. For example, static100. jpg, static102. jpg, static103. jpg, static108. jpg, static109. jpg represents this case. static102. The jpg is stored in association with information (classification information) indicating that classification is performed on December 24, 2013 at 20:00 (20:00 to 20:59).

分類方法がシーンベースの分類方法であると判定した場合には(S704にてYES)S705へ進み、シーンベースの分類方法ではないと判定した場合には(S704にてNO)S706へ進む。   If it is determined that the classification method is a scene-based classification method (YES in S704), the process proceeds to S705. If it is determined that the classification method is not a scene-based classification method (NO in S704), the process proceeds to S706.

S705にて、アプリケーション80は、静止画像の色情報やヒストグラム等を解析し、その解析結果に基づいて静止画像を分類し、その分類情報と分類結果(グループ)を対象の静止画像と関連付けて保存する。この時、アプリケーション80は、色情報やヒストグラムの情報も、静止画像と関連付けて保存する。分類の方法としては、例えば同じような色味の静止画像をまとめて同じ分類としたり、RGBまたはYCrCbのヒストグラムが一致あるいは色度が所定の閾値範囲内の近い静止画像をまとめて同じ分類としたりする方法等がある。例えば、図17(b)のstatic120.jpg、static121.jpg、static123.jpg、static125.jpgがこのケースを表す。static120.jpgは、Info(分類情報)にヒストグラム4(histogram4−*、*は自然数、ヒストグラム4のグループとして判定されるヒストグラム値)で分類したことを表す情報が関連付けられて格納されている。本工程の処理の後、本処理フローを終了する。   In S705, the application 80 analyzes the color information and histogram of the still image, classifies the still image based on the analysis result, and stores the classification information and the classification result (group) in association with the target still image. To do. At this time, the application 80 also stores color information and histogram information in association with the still image. As a classification method, for example, still images having similar colors are grouped together into the same classification, or still images whose RGB or YCrCb histograms match or whose chromaticity is within a predetermined threshold range are grouped together into the same classification. There are ways to do this. For example, static 120. jpg, static121. jpg, static123. jpg, static125. jpg represents this case. static120. jpg is stored in association with Info (classification information) that is classified by histogram 4 (histogram 4- *, * is a natural number, a histogram value determined as a group of histogram 4). After the process in this step, the present process flow ends.

分類方法がテーマベースの分類方法であると判定した場合には(S706にてYES)S707へ進み、テーマベースの分類方法ではないと判定した場合には(S706にてNO)S708へ進む。   If it is determined that the classification method is the theme-based classification method (YES in S706), the process proceeds to S707. If it is determined that the classification method is not the theme-based classification method (NO in S706), the process proceeds to S708.

S707にて、アプリケーション80は、ユーザがファイル選択ボタン411で選択したファイルに含まれているオブジェクトを解析し、その解析結果に基づいて静止画像を分類する。そして、アプリケーション80は、その分類情報と分類結果(グループ)を対象の静止画像と関連付けて保存する。この時、アプリケーション80は、オブジェクト情報も、静止画像と関連付けて保存する。ここでオブジェクトの例としては、人、犬や猫等の動物、花、列車、自動車、バイクなど様々なものがあり、特に限定するものではない。尚、オブジェクトの例の人として、人物、顔等を区別してもよい。例えば、図17(b)のstatic155.jpg、static156.jpg、static157.jpg、static160.jpgがこのケースを表す。static155.jpgは、Info(分類情報)にオブジェクト8(object8−*、*は自然数、オブジェクト8のグループとして判定されるオブジェクトを規定する情報)で分類したことを表す情報が関連付けられて格納されている。本工程の処理の後、本処理フローを終了する。   In S707, the application 80 analyzes the object included in the file selected by the user using the file selection button 411, and classifies the still image based on the analysis result. Then, the application 80 stores the classification information and the classification result (group) in association with the target still image. At this time, the application 80 also stores the object information in association with the still image. Here, examples of objects include various things such as people, animals such as dogs and cats, flowers, trains, automobiles, and motorcycles, and are not particularly limited. A person, a face, or the like may be distinguished as an example of an object. For example, static 155. jpg, static156. jpg, static157. jpg, static160. jpg represents this case. static155. The jpg is stored in association with Info (classification information) that is classified by the object 8 (object8- *, * is a natural number, information defining an object determined as a group of the object 8). After the process in this step, the present process flow ends.

S708にて、アプリケーション80は、その他の方法(時間、シーン、テーマ以外)に基づいて静止画像を分類し、その結果を対象の静止画像と関連付けて保存する。この時、アプリケーション80は、上記のその他の方法の情報も、静止画像と関連付けて保存する。尚、ユーザが本実施形態のメイン画面401を操作する場合、アプリケーション80がS708の処理を実行しない場合もある。本工程の処理の後、本処理フローを終了する。   In S708, the application 80 classifies still images based on other methods (other than time, scene, and theme), and stores the result in association with the target still image. At this time, the application 80 also stores information on the other methods described above in association with the still image. Note that when the user operates the main screen 401 of the present embodiment, the application 80 may not execute the processing of S708. After the process in this step, the present process flow ends.

(静止画像の抽出処理)
図8は、動画像から静止画像の抽出処理を示すフローチャートである。図8のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。図8に示す3つの処理フローは、図6のS603の処理に対応する。図8(a)は時間ベースで動画像から静止画像(フレーム画像)を抽出する処理を示すフローチャートである。また、図8(b)はシーンベースで動画像から静止画像(フレーム画像)を抽出する処理を示すフローチャートである。また、図8(c)はテーマベースで動画像から静止画像(フレーム画像)を抽出する処理を示すフローチャートである。
(Still image extraction processing)
FIG. 8 is a flowchart showing still image extraction processing from a moving image. For example, the program according to the flowchart of FIG. 8 is stored in the HDD 202, read into the RAM 201, and executed by the CPU 204. The three processing flows shown in FIG. 8 correspond to the processing of S603 in FIG. FIG. 8A is a flowchart showing processing for extracting a still image (frame image) from a moving image on a time basis. FIG. 8B is a flowchart showing processing for extracting a still image (frame image) from a moving image on a scene basis. FIG. 8C is a flowchart showing processing for extracting a still image (frame image) from a moving image on a theme basis.

ユーザが、図4(a)に示す時間選択ボタン408を選択して、フォトアルバム作成ボタン412を押下したとする。この場合、図6のS603でアプリケーション80が動画像から静止画像の抽出処理を実行すると、アプリケーション80は、図8(a)の静止画像の抽出処理を開始する。   Assume that the user selects the time selection button 408 shown in FIG. 4A and presses the photo album creation button 412. In this case, when the application 80 executes the still image extraction process from the moving image in step S603 of FIG. 6, the application 80 starts the still image extraction process of FIG.

S811にて、アプリケーション80は、S703で静止画像に関連付けられている分類情報と、その静止画像のExif情報のDateTime情報又はその静止画像に関連付けられている撮影年月日時刻に基づいて、動画像から関連するフレームを抽出する。その際、アプリケーション80は、まず、動画像の撮影年月日時刻を取得し、S703で得られた静止画像に関連付けられている分類情報(例えば、同一日、同一月)を使って、分類が一致する動画像を特定する。そして、アプリケーション80は、特定した動画像にその分類情報を関連付けて、その情報を保存する。次に、アプリケーション80は、同一分類のフレーム静止画像から、Exif情報のDateTime情報又はそのフレーム画像に関連付けられている撮影年月日時刻を取得し、同一分類の動画像から、撮影年月日時刻が一致するフレームを抽出する。その際、アプリケーション80は、撮影年月日時刻を基準時刻として、その前後の一定時間の所定範囲(例えば、前3秒、後3秒の合計6秒)の中に含まれる全てのフレームを解析して、フォトアルバム用としてより適切なフレームを抽出する。   In S811, the application 80 selects the moving image based on the classification information associated with the still image in S703, the DateTime information of the Exif information of the still image, or the shooting date / time associated with the still image. Extract related frames from. At that time, the application 80 first acquires the shooting date of the moving image, and uses the classification information (for example, the same day and the same month) associated with the still image obtained in S703 to classify the classification. Identify matching videos. Then, the application 80 associates the classification information with the identified moving image and stores the information. Next, the application 80 acquires DateTime information of Exif information or shooting date / time associated with the frame image from the frame still images of the same classification, and captures the shooting date / time from the moving images of the same classification. Extract frames that match. At that time, the application 80 analyzes all frames included in a predetermined range (for example, 3 seconds before and 3 seconds after the total time) with the shooting date and time as a reference time. Then, a more appropriate frame is extracted for the photo album.

ここで、アプリケーション80は、複数のフレームを抽出してもよい。その際、アプリケーション80は、より適切なフレームを抽出する為に、図14に示す各要素を使って、フレームの画像をスコアリングし、オリジナルのスコア(Original)でスコアの高い順にフレームを採用する。フレームの採用数については、例えば、動画像から抽出したフレーム画像をレイアウト可能なスロット数を、フレームの採用数として決定してもよい。   Here, the application 80 may extract a plurality of frames. At that time, in order to extract a more appropriate frame, the application 80 uses each element shown in FIG. 14 to score the image of the frame, and adopts the frames in descending order of the original score (original). . As for the number of adopted frames, for example, the number of slots in which frame images extracted from moving images can be laid out may be determined as the number of adopted frames.

S812にて、アプリケーション80は、S811で抽出されたフレームを静止画像として保存する。なお、S811にて、撮影年月日時刻が一致するフレームが存在しない場合、アプリケーション80は、その動画像に対して図16(a)に示す処理を実行して静止画像を抽出する。   In S812, the application 80 stores the frame extracted in S811 as a still image. If there is no frame having the same shooting date / time in S811, the application 80 extracts the still image by executing the process shown in FIG. 16A on the moving image.

S813にて、アプリケーション80は、動画像から抽出したフレーム画像と、分類情報、分類結果、関連ファイルを関連付けて、その情報を保存する。例えば、図17(b)のdynamic301.jpg、dynamic302.jpgこのケースを表す。dynamic301.jpgには、Info(分類情報)に2013年12月24日20時台(20:00〜20:59)で分類したことを表す情報が関連付けて格納されている。また、Group(分類結果)にdateTime1というグループ情報が関連付けて格納されている。また、RelatedFile(関連ファイル)にstatic102.jpgが関連付けて格納されている。その後、本処理フローを終了する。   In S813, the application 80 associates the frame image extracted from the moving image with the classification information, the classification result, and the related file, and stores the information. For example, the dynamic 301. jpg, dynamic302. jpg This case represents this case. dynamic301. In jpg, information indicating that information is classified in Info (classification information) on December 24, 2013 at 20 o'clock (20: 00 to 20: 59) is stored in association. Further, group information “dateTime1” is stored in association with Group (classification result). In addition, Static102. jpg is stored in association with each other. Thereafter, this processing flow ends.

ユーザが、図4(a)に示すシーン選択ボタン409を選択して、フォトアルバム作成ボタン412を押下したとする。この場合、図6のS603でアプリケーション80が動画像から静止画像の抽出処理を実行すると、アプリケーション80は、図8(b)の静止画像の抽出処理を開始する。   Assume that the user selects the scene selection button 409 shown in FIG. 4A and presses the photo album creation button 412. In this case, when the application 80 executes the still image extraction process from the moving image in step S603 of FIG. 6, the application 80 starts the still image extraction process of FIG. 8B.

S821にて、アプリケーション80は、図7のS705で静止画像に関連付けられた色情報やヒストグラム等の分類情報に基づいて、動画像から関連するフレームを抽出する。その際、アプリケーション80は、各動画像からフレームを抽出し、そのフレームの色情報やヒストグラム等を解析し、図7のS705で得られた静止画像に関連付けられた分類情報(色やヒストグラム等)と比較する。比較の結果、両者が一致または類似している場合、アプリケーション80は、動画像にその分類情報を関連付けてその情報を保存する。また、アプリケーション80は、分類情報が一致したフレームにもその分類情報を関連付けて、その情報を保存する。アプリケーション80は、分類情報が一致した全てのフレームを解析して、フォトアルバム用として適切なフレームを抽出する。ここで、アプリケーション80は、複数のフレームを抽出してもよい。適切なフレームの抽出(スコア順及びフレーム採用数)については、図8(a)と同じ基準で行われる。   In S821, the application 80 extracts a related frame from the moving image based on the color information and the classification information such as a histogram associated with the still image in S705 of FIG. At that time, the application 80 extracts a frame from each moving image, analyzes the color information, histogram, and the like of the frame, and classifies information (color, histogram, etc.) associated with the still image obtained in S705 of FIG. Compare with As a result of the comparison, if the two match or are similar, the application 80 associates the classification information with the moving image and stores the information. In addition, the application 80 associates the classification information with a frame whose classification information matches, and stores the information. The application 80 analyzes all the frames with the same classification information and extracts an appropriate frame for the photo album. Here, the application 80 may extract a plurality of frames. Appropriate frame extraction (score order and number of adopted frames) is performed based on the same criteria as in FIG.

S822にて、アプリケーション80は、S821で抽出されたフレームを静止画像(フレーム画像)として保存する。   In S822, the application 80 stores the frame extracted in S821 as a still image (frame image).

S823にて、アプリケーション80は、動画像から抽出したフレーム画像と分類情報、分類結果、関連ファイルを関連付けて、その情報を保存する。例えば、図17(b)のdynamic321.jpgの行がこのケースを表す。この画像には、Info(分類情報)にヒストグラム4(histogram4−*、*は自然数、ヒストグラム4のグループとして判定されるヒストグラム値)で分類したことを表す情報が関連付けて格納されている。また、この画像には、Group(分類結果)にhistogram4というグループ情報が関連付けて格納されている。また、この画像には、RelatedFile(関連ファイル)にstatic120.jpgが関連付けられて格納されている。その後、本処理フローを終了する。   In S823, the application 80 associates the frame image extracted from the moving image with the classification information, the classification result, and the related file, and stores the information. For example, the dynamic 321. The jpg line represents this case. In this image, information indicating that classification is performed on Info (classification information) by histogram 4 (histogram 4- *, * is a natural number, a histogram value determined as a group of histogram 4) is stored in association with each other. Further, in this image, group information called histogram4 is stored in association with Group (classification result). In addition, this image includes a StaticFile (related file) in static120. jpg is stored in association with each other. Thereafter, this processing flow ends.

ユーザが、図4(a)に示すテーマ選択ボタン410を選択して、フォトアルバム作成ボタン412を押下したとする。この場合、図6のS603でアプリケーション80が動画像から静止画像の抽出処理を実行すると、アプリケーション80は、図8(c)の静止画像の抽出処理を開始する。   Assume that the user selects the theme selection button 410 shown in FIG. 4A and presses the photo album creation button 412. In this case, when the application 80 executes the still image extraction process from the moving image in step S603 of FIG. 6, the application 80 starts the still image extraction process of FIG.

S831にて、アプリケーション80は、図7のS707で静止画像に関連付けられたオブジェクトの分類情報に基づいて、動画像から関連するフレームを抽出する。その際、アプリケーション80は、各動画像からフレームを抽出し、そのフレームの中に含まれているオブジェクトを解析し、図7のS707で得られた静止画像に関連付けられている分類情報(オブジェクト)と比較する。比較の結果、両者が一致または類似している場合、アプリケーション80は、動画像にその分類情報を関連付けてその情報を保存する。また、アプリケーション80は、分類情報が一致したフレームにもその分類情報を関連付けて、その情報を保存する。アプリケーション80は、分類情報が一致した全てのフレームを解析して、フォトアルバム用として適切なフレームを抽出する。ここで、アプリケーション80は、複数のフレームを抽出してもよい。適切なフレームの抽出(スコア順及びフレーム採用数)については、図8(a)と同じ基準で行われる。   In S831, the application 80 extracts a related frame from the moving image based on the classification information of the object associated with the still image in S707 of FIG. At that time, the application 80 extracts a frame from each moving image, analyzes the object included in the frame, and classifies information (object) associated with the still image obtained in S707 of FIG. Compare with As a result of the comparison, if the two match or are similar, the application 80 associates the classification information with the moving image and stores the information. In addition, the application 80 associates the classification information with a frame whose classification information matches, and stores the information. The application 80 analyzes all the frames with the same classification information and extracts an appropriate frame for the photo album. Here, the application 80 may extract a plurality of frames. Appropriate frame extraction (score order and number of adopted frames) is performed based on the same criteria as in FIG.

S832にて、アプリケーション80は、S831で抽出されたフレームを静止画像として保存する。   In S832, the application 80 stores the frame extracted in S831 as a still image.

S833にて、アプリケーション80は、動画像から抽出した静止画像と、分類情報、分類結果、関連ファイルを関連付けてその情報を保存する。例えば、図17(b)のdynamic341.jpgの行がこのケースを表す。この画像には、Info(分類情報)にオブジェクト8(object8−*、*は自然数、オブジェクト8のグループとして判定されるオブジェクトを規定する情報)で分類したことを表す情報が関連付けて格納されている。また、この画像には、Group(分類結果)にobject8というグループ情報が関連付けて格納されている。また、この画像には、RelatedFile(関連ファイル)にstatic155.jpgが関連付けて格納されている。その後、本処理フローを終了する。   In S833, the application 80 associates the still image extracted from the moving image with the classification information, the classification result, and the related file, and stores the information. For example, the dynamic 341. The jpg line represents this case. In this image, information (classification information) is stored in association with information indicating that the object 8 (object8- *, * is a natural number, information defining an object determined as a group of object 8) is classified. . Also, in this image, group information called object8 is stored in association with Group (classification result). In addition, in this image, Static155 (related file) has static155. jpg is stored in association with each other. Thereafter, this processing flow ends.

以上のように、本実施形態では、分類分けされた静止画像に基づいて、動画像から、静止画像と関連する静止画像(フレーム画像)を自動的に抽出し、これらの静止画像をレイアウト内の一連の領域に配置する。それにより、ユーザの煩わしい操作を伴わずに、関連性のある適切な画像を自動的に動画像から抽出してレイアウトを行うことができる。また、1つの動画像から異なる場面の複数の静止画像を抽出して一連の領域に配置することで、ユーザの煩わしい操作を伴わずに、変化に富んだ画像を自動的に抽出してレイアウトを行うことができる。   As described above, in the present embodiment, still images (frame images) related to still images are automatically extracted from moving images based on the classified still images, and these still images are included in the layout. Place in a series of areas. Accordingly, it is possible to automatically extract a relevant relevant image from the moving image without performing a troublesome operation by the user. In addition, by extracting multiple still images of different scenes from a single moving image and placing them in a series of areas, a variety of images can be automatically extracted without any cumbersome operation by the user. It can be carried out.

<第3の実施形態>
本実施形態では、解像度が高い静止画像を、テンプレートのスロットのうちのより大きなサイズのスロットに配置することで、静止画像の良さと動画像の動きを合わせた臨場感のある画像レイアウトを自動的に行う。
<Third Embodiment>
In this embodiment, a still image with a high resolution is placed in a slot of a larger size among the slots of the template, so that a realistic image layout combining the goodness of the still image and the motion of the moving image is automatically performed. To do.

図9は、本実施形態に係るフォトアルバムを自動作成する処理を示すフローチャートである。図9のフローチャートに係るプログラムは、例えば、HDD202に記憶されており、RAM201に読み出され、CPU204により実行される。ユーザが、図4(a)に示す時間選択ボタン408、シーン選択ボタン409、テーマ選択ボタン410の何れか1つを選択して、フォトアルバム作成ボタン412を押下する。その押下に応じて、アプリケーション80は、図9に示す処理を実行する。本実施形態では、図13(e)に示すデータを用いて説明を行う。   FIG. 9 is a flowchart showing a process for automatically creating a photo album according to the present embodiment. For example, the program according to the flowchart of FIG. 9 is stored in the HDD 202, read into the RAM 201, and executed by the CPU 204. The user selects any one of the time selection button 408, the scene selection button 409, and the theme selection button 410 shown in FIG. 4A, and presses the photo album creation button 412. In response to the pressing, the application 80 executes the processing shown in FIG. In the present embodiment, description will be made using the data shown in FIG.

S901にて、アプリケーション80は、静止画像または動画像が格納されているPC1内のフォルダ(不図示)、またはPC1内の静止画像または動画像を選択して、フォトアルバムを作成する際に必要な画像群の格納先または画像群として指定する。尚、S901にて、ユーザに静止画像または動画像が格納されているPC1内のフォルダ、またはPC1内の静止画像または動画像を選択させてもよい。   In S901, the application 80 is necessary for creating a photo album by selecting a folder (not shown) in the PC 1 in which still images or moving images are stored or a still image or moving images in the PC 1. Designated as the image group storage destination or image group. In S901, the user may select a folder in the PC 1 in which a still image or a moving image is stored, or a still image or a moving image in the PC 1.

S902にて、アプリケーション80は、第2の実施形態で説明した図7に示す静止画像の分類処理を実行する。ここで、static11.jpgとstatic12.jpgは、デジタルスチルカメラで撮影して保存された写真(静止画像)であるものとする。また、図13(e)に示す、static11.jpgに関連付けられている分類情報と、static12.jpgに関連付けられている分類情報とは、一致しているものとする。   In step S902, the application 80 executes the still image classification process illustrated in FIG. 7 described in the second embodiment. Here, static11. jpg and static12. It is assumed that jpg is a photograph (still image) captured and stored by a digital still camera. In addition, static11. classification information associated with jpg, static12. It is assumed that the classification information associated with jpg matches.

S903にて、アプリケーション80は、S902の静止画像の分類処理における分類方法(時間ベース、シーンベース、テーマベース)の各方法に応じて、それぞれの方法に対応する図8(a)〜(c)の処理のいずれかを実行する。図8(a)〜(c)の処理は、第2の実施形態にて述べたように、動画像から静止画像(フレーム画像)を抽出する処理である。尚、分類方法は、時間ベース、シーンベース、テーマベースの何れか1つを適用するケースの他に、これらのいくつかを組合せて適用するケースも本実施形態に含まれる。ここで、図13(e)に示す、dynamic22.jpg、dynamic43.jpg、dynamic50.jpg、dynamic78.jpg、dynamic85.jpgは、1つの動画像から抽出された静止画像であるものとする。また、これらの各フレーム画像に関連付けられている分類情報は全て一致し、static11.jpgに関連付けられている分類情報と、static12.jpgに関連付けられている分類情報とも一致しているとする。   In S903, the application 80 corresponds to each of the classification methods (time base, scene base, theme base) in the still image classification processing of S902, and FIGS. 8A to 8C correspond to the respective methods. Execute one of the processes. The processes in FIGS. 8A to 8C are processes for extracting a still image (frame image) from a moving image, as described in the second embodiment. Note that the classification method includes a case in which any one of a time base, a scene base, and a theme base is applied, and a case in which some of these are applied in combination. Here, as shown in FIG. jpg, dynamic43. jpg, dynamic50. jpg, dynamic78. jpg, dynamic85. It is assumed that jpg is a still image extracted from one moving image. In addition, the classification information associated with each of these frame images all match, and static11. classification information associated with jpg, static12. Assume that the classification information associated with jpg also matches.

S904にて、アプリケーション80は、S902で適用した分類方法に基づいて、その分類方法に関連付けられているレイアウトテンプレートを選択する。ここで、S902にて、アプリケーション80が、シーンベースの分類方法を選択したとする。この場合、S904にて、アプリケーション80は、シーンベースの分類方法に関連付けられているレイアウトテンプレートを選択する。ここで、アプリケーション80は、図12(a)に示すレイアウトテンプレート1200が含まれたレイアウトテンプレートを選択したとする。   In S904, the application 80 selects a layout template associated with the classification method based on the classification method applied in S902. Here, it is assumed that the application 80 selects a scene-based classification method in S902. In this case, in S904, the application 80 selects a layout template associated with the scene-based classification method. Here, it is assumed that the application 80 selects a layout template including the layout template 1200 shown in FIG.

S905にて、アプリケーション80は、レイアウトテンプレート内で関連付けられている一連の領域内の通常の静止画像(動画像から抽出したフレーム画像ではない静止画像)に適した各スロットに、互いに関連する通常の静止画像を配置する。ここでは、スロット1203、1204に、互いに関連する通常の静止画像static11.jpg、static12.jpgがそれぞれ配置される。その際に、分類分けされた静止画像が、一連の領域内の所定のスロット数より多い場合、第1の実施形態で説明したようなスコアリングを行い、スコアの高い順に所定数のスロットに割り当てるようにしてもよい。   In step S905, the application 80 adds normal slots related to each other to slots suitable for normal still images (still images that are not frame images extracted from moving images) in a series of areas associated in the layout template. Arrange still images. Here, in the slots 1203 and 1204, normal still images static11. jpg, static12. jpgs are arranged respectively. At that time, if the number of classified still images is larger than the predetermined number of slots in the series of areas, scoring as described in the first embodiment is performed, and the predetermined number of slots is assigned in descending order of score. You may do it.

S906にて、アプリケーション80は、レイアウトテンプレート内で関連付けられている一連の領域内の動画像から抽出されたフレーム画像に適した各スロットに、互いに関連する動画像から抽出されたフレーム画像をそれぞれ配置する。ここでは、スロット1205〜1209に、互いに関連する動画像から抽出された静止画像dynamic22.jpg、dynamic43.jpg、dynamic50.jpg、dynamic78.jpg、dynamic85.jpgがそれぞれ配置される。その後、本処理フローを終了する。本処理フローが終了した後、アプリケーション80は、図4(b)に示す編集画面415を表示する。   In S906, the application 80 arranges the frame images extracted from the associated moving images in the slots suitable for the frame images extracted from the moving images in the series of regions associated in the layout template. To do. Here, in the slots 1205 to 1209, still images dynamic22. jpg, dynamic43. jpg, dynamic50. jpg, dynamic78. jpg, dynamic85. jpgs are arranged respectively. Thereafter, this processing flow ends. After this processing flow ends, the application 80 displays an edit screen 415 shown in FIG.

以上のように、本実施形態では、解像度が高い静止画像を、レイアウトテンプレート内で関連付けられている一連の領域内の通常の静止画像に適した大きめのスロット1203、1204に配置する。また、1つの動画像から抽出された静止画像を一連のフレーム画像用のスロット、すなわち、一連のスロット1205〜1209に配置する。これにより、ユーザの煩わしい操作を伴わずに、静止画像の良さと動画像の動きを合わせた臨場感のある画像レイアウトを自動的に行うフォトアルバム作成アプリケーションを提供することができる。このように、1つの動画像から抽出した複数のフレーム画像を連続して配置することにより、動きを表現したレイアウト画像を生成することができる。   As described above, in the present embodiment, still images with high resolution are arranged in large slots 1203 and 1204 suitable for normal still images in a series of areas associated in the layout template. Further, still images extracted from one moving image are arranged in a series of frame image slots, that is, a series of slots 1205 to 1209. Accordingly, it is possible to provide a photo album creation application that automatically performs a realistic image layout that combines the goodness of a still image and the motion of a moving image without involving a user's troublesome operation. In this way, a layout image expressing motion can be generated by continuously arranging a plurality of frame images extracted from one moving image.

<第4の実施形態>
第1の実施形態では、図19(a)、図19(c)を用いて説明した通り、フォトアルバムのページ数に依存することなく、動画像の規定数を一律に固定(規定数=1)していた。しかし、フォトアルバムのページ数に応じて、フォトアルバムを自動作成する為に必要な画像数の最小値や推奨値が異なる。具体的には、フォトアルバムのページ数が増えることに伴い、必要な画像数の最小値や推奨値も増える。第1の実施形態では、高速モードが有効な場合に、フォトアルバムのページ数が多いケースにおいても、フォトアルバムを自動作成する対象となる動画像は1つとした。これに対し、本実施形態では、フォトアルバムを自動作成する際に対象とする画像群の中に動画像が複数存在する場合、それらを有効に利用する。
<Fourth Embodiment>
In the first embodiment, as described with reference to FIGS. 19A and 19C, the specified number of moving images is uniformly fixed (the specified number = 1) without depending on the number of pages of the photo album. )Was. However, the minimum and recommended values for the number of images required to automatically create a photo album differ depending on the number of pages in the photo album. Specifically, as the number of pages in the photo album increases, the minimum value and recommended value of the required number of images also increase. In the first embodiment, when the high-speed mode is enabled, even when the number of pages of the photo album is large, the number of moving images that are automatically created as a photo album is one. On the other hand, in this embodiment, when there are a plurality of moving images in the target image group when the photo album is automatically created, these are used effectively.

本実施形態では、図19(b)、図19(d)を用いる。具体的には、図19(b)、図19(d)に示すテーブルに基づいて、アプリケーション80がフォトアルバムを自動作成する際に対象とする画像群の中に動画像が含まれている場合に、対象として取り扱う動画像の数をフォトアルバムのページ数に応じて切り換える。ページ数が20ページと30ページの場合の規定数は1である。ページ数が40ページと50ページの場合の規定数は2である。ページ数が60ページの場合の規定数は3である。ここでは、1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成するため、規定数に応じて、動画像から生成される静止画像の数が、40個、80個、120個というように切り換わる。図19(b)、図19(d)のテーブルを利用して、図20のS2004〜S2008を実行することで、ユーザが選択しているフォトアルバムのページ数に合わせて、より多くの動画像を利用して、フォトアルバムを高速に自動作成することができる。   In this embodiment, FIG. 19B and FIG. 19D are used. Specifically, based on the tables shown in FIGS. 19B and 19D, a moving image is included in an image group targeted when the application 80 automatically creates a photo album. In addition, the number of moving images handled as a target is switched according to the number of pages of the photo album. The specified number is 1 when the number of pages is 20 pages and 30 pages. The specified number is 2 when the number of pages is 40 pages and 50 pages. When the number of pages is 60, the specified number is 3. Here, since 40 frames are extracted from one moving image at equal intervals to generate a still image, the number of still images generated from the moving image is 40, 80, It will switch to 120 pieces. By executing steps S2004 to S2008 in FIG. 20 using the tables in FIGS. 19B and 19D, more moving images are matched to the number of pages of the photo album selected by the user. Can be used to automatically create photo albums at high speed.

第1の実施形態、および、第4の実施形態では、動画像からフレーム画像を生成する方法として、1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成する方法を採用した。この例に限られることなく、例えば、1つの動画像から1秒ごとにフレームを抽出してフレーム画像を生成するようにしてもよい。この場合、アプリケーション80は、図19の各テーブルの「静止画像数」を「動画像からの画像数」に合わせて動的に管理する。   In the first embodiment and the fourth embodiment, as a method of generating a frame image from a moving image, a method of generating a still image by extracting 40 frames from one moving image at equal intervals is adopted. did. Without being limited to this example, for example, a frame image may be generated by extracting a frame from one moving image every second. In this case, the application 80 dynamically manages the “number of still images” in each table of FIG. 19 according to the “number of images from moving images”.

<第5の実施形態>
第1の実施形態では、図20(a)に示すような処理を実行することで、高速モードを実現した。第1の実施形態の場合、S2005にて複数の動画像の中から規定数の動画像を選択する過程で、選択されなかった動画像が存在する。本実施形態では、選択されなかった動画像の中にフォトアルバムを自動作成する際に対象画像として適した動画像が含まれていた場合、その動画像から静止画像を生成し、フォトアルバムのスロットに自動的に配置する。
<Fifth Embodiment>
In the first embodiment, the high-speed mode is realized by executing the processing as shown in FIG. In the case of the first embodiment, there is a moving image that has not been selected in the process of selecting a specified number of moving images from a plurality of moving images in S2005. In this embodiment, when a moving image suitable for a target image is included in a photo album that is not selected, a still image is generated from the moving image, and a photo album slot is created. To automatically place.

具体的には、図20(a)にて、アプリケーション80がS2005とS2006で実行する処理の代わりに、次のような処理を実行する。アプリケーション80は、動画像の数が所定数(=40個)以内の場合、各動画像から数個ずつフレーム画像を生成して、合計40個またはそれ以内となるようにフレーム画像を生成する。アプリケーション80は、動画像の数が所定数(=40個)より多い場合、フォトアルバムを自動作成する際に対象とする動画像の数が所定数(=40個)以内となるように、動画像を選択する。そして、アプリケーション80は、各動画像から数個ずつフレーム画像を生成して、合計40個またはそれ以内となるようにフレーム画像を生成する。これにより、より多くの動画像を利用して、フォトアルバムを高速に自動作成することができる。   Specifically, in FIG. 20A, the following processing is executed instead of the processing executed by the application 80 in S2005 and S2006. When the number of moving images is within a predetermined number (= 40), the application 80 generates several frame images from each moving image, and generates frame images so that the total number is 40 or less. When the number of moving images is larger than a predetermined number (= 40), the application 80 allows the moving image so that the number of moving images targeted when automatically creating a photo album is within the predetermined number (= 40). Select an image. Then, the application 80 generates several frame images from each moving image, and generates frame images so that the total number is 40 or less. This makes it possible to automatically create a photo album at high speed using more moving images.

<第6の実施形態>
上記の各実施形態は、静止画像の数と比較して動画像の数がかなり少ないケースに適している。これに対し、本実施形態では、静止画像の数と動画像の数がほぼ同じ場合や、静止画像の数と比較して動画像の数が多いケースの場合に、適した例を説明する。
<Sixth Embodiment>
Each of the above embodiments is suitable for a case where the number of moving images is considerably smaller than the number of still images. On the other hand, in the present embodiment, an example suitable for the case where the number of still images and the number of moving images are substantially the same, or the case where the number of moving images is larger than the number of still images will be described.

図22は、高速モードへの移行を判定するテーブルの一例を示す図である。図22(a)〜(d)は、Windows(登録商標)等のPC用のアプリケーションが参照するテーブルである。「ページ数」は、フォトアルバムのページ数である。「平均スロット数」は、フォトアルバムの見開き2ページに配置されるスロットの数の平均値である。「動画像からの画像数」は、動画像から抽出するフレーム画像の数である。「静止画像数」は、静止画像の数である。「画像総数」は、「動画像からの画像数」と「静止画像数」の合計の数である。   FIG. 22 is a diagram illustrating an example of a table for determining the shift to the high speed mode. 22A to 22D are tables that are referred to by a PC application such as Windows (registered trademark). “Number of pages” is the number of pages of the photo album. “Average number of slots” is an average value of the number of slots arranged on two pages of a photo album. “Number of images from moving image” is the number of frame images extracted from the moving image. “Number of still images” is the number of still images. “Total number of images” is the total number of “number of images from moving images” and “number of still images”.

本実施形態では、図19(b)、図22(a)、図22(b)のテーブルに基づいて、フォトアルバムを自動作成する際に対象とする画像群の中に動画像が含まれている場合に、対象として取り扱う動画像の数をフォトアルバムのページ数に応じて切り換える。図19(b)は、静止画像の数と比較して動画像の数がかなり少ないケース用の判定テーブルである。図22(a)は、静止画像の数と比較して動画像の数がほぼ同じか若干少ないケース用の判定テーブルである。図22(b)は、静止画像の数と比較して動画像の数が多いケース用の判定テーブルである。   In the present embodiment, moving images are included in the target image group when automatically creating a photo album based on the tables of FIGS. 19B, 22A, and 22B. The number of moving images handled as a target is switched according to the number of pages of the photo album. FIG. 19B is a determination table for a case where the number of moving images is considerably smaller than the number of still images. FIG. 22A is a determination table for a case where the number of moving images is substantially the same or slightly smaller than the number of still images. FIG. 22B is a determination table for a case where the number of moving images is larger than the number of still images.

図22(a)にて、ページ数が20ページの場合の規定数は6、ページ数が30ページの場合の規定数は9、ページ数が40ページの場合の規定数は12、ページ数が50ページの場合の規定数は15、ページ数が60ページの場合の規定数は18とする。ここでは、1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成するものとする。したがって、規定数に応じて、動画像から生成される静止画像の数が、240個、360個、480個、600個、720個というように切り換わる。   In FIG. 22A, the prescribed number is 6 when the number of pages is 20, the prescribed number is 9 when the number of pages is 30, the prescribed number is 12 when the number of pages is 40, and the number of pages is The prescribed number is 15 for 50 pages, and the prescribed number is 18 for 60 pages. Here, it is assumed that 40 frames are extracted at regular intervals from one moving image to generate a still image. Accordingly, the number of still images generated from a moving image is switched to 240, 360, 480, 600, 720, etc. according to the specified number.

図22(b)にて、ページ数が20ページの場合の規定数は10、ページ数が30ページの場合の規定数は15、ページ数が40ページの場合の規定数は20、ページ数が50ページの場合の規定数は25、ページ数が60ページの場合の規定数は20とする。ここでは、1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成するものとする。したがって、規定数に応じて、動画像から生成される静止画像の数が、400個、600個、800個、1000個、1200個というように切り換わる。   In FIG. 22B, the prescribed number is 10 when the number of pages is 20, the prescribed number is 15 when the number of pages is 30, the prescribed number is 20 when the number of pages is 40, and the number of pages is The prescribed number is 25 for 50 pages, and the prescribed number is 20 for 60 pages. Here, it is assumed that 40 frames are extracted at regular intervals from one moving image to generate a still image. Therefore, the number of still images generated from a moving image is switched to 400, 600, 800, 1000, 1200, etc. according to the specified number.

図19(b)の規定数がページ数に応じて1〜3であるのに対し、図22(a)の規定数はページ数に応じて6〜18であり、図22(b)の規定数はページ数に応じて10〜30である。   The specified number in FIG. 19B is 1 to 3 according to the number of pages, whereas the specified number in FIG. 22A is 6 to 18 according to the number of pages, and the specified number in FIG. The number is 10-30 depending on the number of pages.

図20のS2004にて、アプリケーション80は、フォトアルバムを自動作成する際の対象となる静止画像の数と動画像の数を比較し、動画像の数の割合に応じて判定に使用するテーブルを切り換える。例えば、静止画像の数に対する動画像の数の割合が第1の閾値以下の場合は、図19(b)のテーブルを用い、静止画像の数に対する動画像の数の割合が第1の閾値より大きく第2の閾値以下の場合は、図22(a)のテーブルを用いる。そして、静止画像の数に対する動画像の数の割合が第2の閾値より大きい場合は、図22(b)のテーブルを用いる。つまり、アプリケーション80は、動画像の数の割合が大きくなるにつれて高速モードにおいて動画像から静止画像を生成する候補となる動画像の数(=規定数)を増やすように制御する。そして、アプリケーション80は、図19(b)、図22(a)、図22(b)の各テーブルを利用して、図20のS2004〜S2008を実行する。これにより、本実施形態では、ユーザが選択しているフォトアルバム、または静止画像の数に対する動画像の数の割合に応じて、動画像の数の割合が大きくなるにつれて、より多くの動画像を利用してフォトアルバムを高速に自動作成することができる。これにより、自動作成されるフォトアルバムの仕上がりのユーザ満足度を向上することができる。   In S2004 of FIG. 20, the application 80 compares the number of still images and the number of moving images that are targets when automatically creating a photo album, and uses a table used for determination according to the ratio of the number of moving images. Switch. For example, when the ratio of the number of moving images to the number of still images is equal to or smaller than the first threshold, the ratio of the number of moving images to the number of still images is larger than the first threshold using the table of FIG. When it is largely below the second threshold value, the table of FIG. When the ratio of the number of moving images to the number of still images is larger than the second threshold, the table in FIG. 22B is used. That is, the application 80 controls to increase the number of moving images (= specified number) that are candidates for generating still images from moving images in the high-speed mode as the ratio of the number of moving images increases. Then, the application 80 executes S2004 to S2008 in FIG. 20 using the tables in FIGS. 19B, 22A, and 22B. Thereby, in this embodiment, according to the ratio of the number of moving images to the number of photo albums selected by the user or the number of still images, more moving images are added as the ratio of the number of moving images increases. It can be used to automatically create photo albums at high speed. Thereby, the user satisfaction of the finish of the photo album created automatically can be improved.

本実施形態の上記の構成では、アプリケーション80は、図19(b)、図22(a)、図22(b)のテーブルを利用し、動画像の数の割合が大きくなるにつれて、より多くの動画像を利用してフォトアルバムを高速に自動作成している。更に、上記のようなテーブルを利用する以外の方法の一例を以下に記す。   In the above-described configuration of the present embodiment, the application 80 uses the tables of FIGS. 19B, 22A, and 22B, and as the ratio of the number of moving images increases, the number of moving images increases. A photo album is automatically created at high speed using moving images. Furthermore, an example of a method other than using the above table will be described below.

図20のS2004において、アプリケーション80は、この処理の代わりに次のような処理を実行する。まず、アプリケーション80は、図19(a)のテーブルを参照し、選択されているフォトアルバムのページ数に対応する「画像総数」を取得する。次に、アプリケーション80は、フォトアルバムを自動作成する際の対象となる画像群の中に含まれている動画像の数を確認し、規定数(=1)と比較する。動画数の数が規定数を超える場合は、アプリケーション80は、選択する動画像の数の候補を規定数(=1)に設定する。ここで決まった動画像の数の候補を「動画像数候補1」と定義する。次に、アプリケーション80は、フォトアルバムを自動作成する際の対象となる画像群の中に含まれている静止画像の数を確認し、
(「画像総数」−「静止画像の数」)/40
の演算を実行する。尚、この演算の単位は整数として、余りが発生した場合はその余りは無視する。この演算結果で得られた動画像の数の候補を「動画像数候補2」と定義する。ここで、「40」は、1つの動画像から等間隔でフレームを抽出して静止画像を生成する時に使用しているフレーム数である。次に、アプリケーション80は、「動画像数候補1」と「動画像数候補2」を比較し、大きい方の値を、選択する動画像の数として設定する。「動画像数候補1」と「動画像数候補2」が同じ値の場合は、アプリケーション80は、「動画像数候補1」の値を、選択する動画像の数として設定する。
In S2004 of FIG. 20, the application 80 executes the following process instead of this process. First, the application 80 refers to the table of FIG. 19A and obtains “total number of images” corresponding to the number of pages of the selected photo album. Next, the application 80 confirms the number of moving images included in the image group that is a target when the photo album is automatically created, and compares it with the specified number (= 1). If the number of moving images exceeds the prescribed number, the application 80 sets the candidate number of moving images to be selected to the prescribed number (= 1). The moving image number candidate determined here is defined as “moving image number candidate 1”. Next, the application 80 checks the number of still images included in the target image group when automatically creating a photo album,
(“Total number of images” − “Number of still images”) / 40
Execute the operation. The unit of this calculation is an integer, and when a remainder occurs, the remainder is ignored. A candidate for the number of moving images obtained as a result of this calculation is defined as “moving image number candidate 2”. Here, “40” is the number of frames used when a still image is generated by extracting frames from a single moving image at equal intervals. Next, the application 80 compares “moving image number candidate 1” and “moving image number candidate 2”, and sets the larger value as the number of moving images to be selected. When “moving image number candidate 1” and “moving image number candidate 2” have the same value, the application 80 sets the value of “moving image number candidate 1” as the number of moving images to be selected.

例えば、図19(a)において、ページ数が20ページの場合で、フォトアルバムを自動作成する際の対象となる画像群の中に含まれている動画像数が20個、静止画像の数が100個の場合を考える。このとき、「動画像数候補1」の値は「1」となり、上記の式から、
「動画像数候補2」=(500−100)/40
となり、「動画像数候補2」の値は「10」となる。そして、「動画像数候補1」と「動画像数候補2」とを比較した結果、「動画像数候補2」がより大きいため、選択する動画像の数は「10」となる。そして、10個の動画像から計400枚の静止画像が抽出される。
For example, in FIG. 19A, when the number of pages is 20, the number of moving images included in the image group that is the target for automatically creating a photo album is 20, and the number of still images is Consider the case of 100 pieces. At this time, the value of “moving image candidate 1” is “1”.
“Moving image number candidate 2” = (500−100) / 40
Thus, the value of “moving image number candidate 2” is “10”. Then, as a result of comparing “moving image number candidate 1” and “moving image number candidate 2”, “moving image number candidate 2” is larger, so the number of moving images to be selected is “10”. A total of 400 still images are extracted from the 10 moving images.

その結果、この例の場合、「動画像からの画像数」は40個、「静止画像数」は100個、「画像総数」は500個となる。このような演算処理により、選択する動画像の数を決定して、画像データ群から決定した数の動画像を選択する。その後、アプリケーション80は、図20のS2005〜S2008を実行し、ユーザが選択しているフォトアルバム又は静止画像の数に対する動画像の数に応じて静止画像の数が多い場合は動画像の数を減らし、静止画像の数が少ない場合は動画像の数を増やす。これにより、その時の状況に応じて適切な数の静止画像と動画像を利用してフォトアルバムを高速に自動作成することができる。従って、自動作成されるフォトアルバムの仕上がりのユーザ満足度を向上することができる。   As a result, in this example, the “number of images from moving images” is 40, the “number of still images” is 100, and the “total number of images” is 500. By such arithmetic processing, the number of moving images to be selected is determined, and the determined number of moving images is selected from the image data group. After that, the application 80 executes S2005 to S2008 in FIG. 20, and if the number of still images is large according to the number of moving images relative to the number of photo albums or still images selected by the user, the number of moving images is set. If the number of still images is small, increase the number of moving images. Thereby, a photo album can be automatically created at high speed using an appropriate number of still images and moving images according to the situation at that time. Accordingly, it is possible to improve the user satisfaction level of the finished photo album that is automatically created.

本実施形態では、アプリケーション80が、静止画像の数に対する動画像の数の割合(言い換えると、フォトアルバム作成に用いられる総画像数に対する動画像数の割合)に応じて、図19(b)、図22(a)、図22(b)のテーブルを切り換えて制御する。つまり通常の静止画像の全体に対する割合が小さくなるほど、上記の規定数が大きくなるように設定する。これにより、自動作成されるフォトアルバムの仕上がりのユーザ満足度を向上できる。しかし、この例に限られることなく、例えば、解像度に応じてテーブルを切り替えるようにしてもよい。例えば、図20のS2004にて、動画像の解像度を確認し、1280×720dpi未満の場合は図19(b)のテーブルを選択する。一方、1280×720dpi以上1440×1080dpi未満は図22(a)のテーブルを選択し、1920×1080dpi以上は図22(b)のテーブルを選択する。そして、アプリケーション80は、選択されたテーブルを利用して、図20のS2004〜S2008を実行する。これにより、ユーザが選択しているフォトアルバム、または動画像の画質に応じて、動画像の画質が良くなるにつれて、より多くの動画像を利用してフォトアルバムを高速に自動作成することができる。これにより、自動作成されるフォトアルバムの仕上がりのユーザ満足度を向上することができる。   In the present embodiment, the application 80 changes the ratio of the number of moving images to the number of still images (in other words, the ratio of the number of moving images to the total number of images used for creating the photo album), as shown in FIG. Control is performed by switching the tables of FIGS. 22 (a) and 22 (b). That is, the specified number is set to increase as the ratio of the normal still image to the whole decreases. Thereby, the user satisfaction of the finish of the photo album created automatically can be improved. However, without being limited to this example, for example, the table may be switched according to the resolution. For example, in S2004 of FIG. 20, the resolution of the moving image is confirmed. If the resolution is less than 1280 × 720 dpi, the table of FIG. 19B is selected. On the other hand, the table of FIG. 22A is selected for 1280 × 720 dpi and less than 1440 × 1080 dpi, and the table of FIG. 22B is selected for 1920 × 1080 dpi and more. Then, the application 80 executes S2004 to S2008 in FIG. 20 using the selected table. As a result, according to the photo album selected by the user or the image quality of the moving image, the photo album can be automatically created at a high speed by using more moving images as the image quality of the moving image is improved. . Thereby, the user satisfaction of the finish of the photo album created automatically can be improved.

<第7の実施形態>
上記の実施形態では、フォトアルバムを自動作成する際に対象とする画像群の中に動画像が含まれている場合に、対象として取り扱う動画像の数をフォトアルバムのページ数に応じて規定数を変えることにより切り換える構成について説明した。本実施形態では、例えば、スロット数に応じて規定数を変えることにより、対象として取り扱う動画像の数を切り換える形態について説明する。
<Seventh Embodiment>
In the above-described embodiment, when a moving image is included in the target image group when automatically creating a photo album, the number of moving images handled as a target is determined according to the number of pages of the photo album. The configuration for switching by changing the above has been described. In the present embodiment, for example, a mode in which the number of moving images handled as a target is switched by changing the prescribed number according to the number of slots will be described.

図22(c)、図22(d)は、フォトアルバムを自動作成する際に対象とする画像群の中に動画像が含まれている場合に、対象として取り扱う動画像の数をフォトアルバムのページ数及び平均スロット数に応じて切り換えることができるテーブルを示す。ここでの平均スロット数とは、フォトアルバムの見開きページに配置されるスロットの数の平均値を意味する。図22(c)は、平均スロット数が2のケース用の判定テーブルである。図19(b)は、平均スロット数が6のケース用の判定テーブルである。図22(d)は、平均スロット数が10のケース用の判定テーブルである。同じページ数で比較した場合、例えば、40ページの場合を参照すると、平均スロット数が少ない(=2)ケースは、図22(c)に示すように規定数が1である。同様に、平均スロット数が標準(=6)ケースは、図19(b)に示すように規定数が2であり、平均スロット数が多い(=10)ケースは、図22(d)に示すように規定数が3である。1つの動画像から等間隔で40個のフレームを抽出して静止画像を生成するので、上記の3つのケースは、規定数に応じて動画像から生成される静止画像の数が、平均スロット数の少ない順に、40個、80個、120個というように切り換わる。   22 (c) and 22 (d) show the number of moving images handled as targets when the moving image is included in the target image group when the photo album is automatically created. The table which can be switched according to the number of pages and the average number of slots is shown. Here, the average number of slots means an average value of the number of slots arranged on the spread page of the photo album. FIG. 22C is a determination table for a case where the average number of slots is 2. FIG. 19B is a determination table for a case where the average number of slots is six. FIG. 22D is a determination table for a case where the average number of slots is 10. When comparing with the same number of pages, for example, referring to the case of 40 pages, the specified number is 1 in the case where the average number of slots is small (= 2) as shown in FIG. Similarly, the case where the average number of slots is standard (= 6) is 2 as shown in FIG. 19B, and the case where the average number of slots is large (= 10) is shown in FIG. 22D. Thus, the specified number is 3. Since 40 frames are extracted from one moving image at equal intervals to generate a still image, the above three cases are such that the number of still images generated from the moving image according to the specified number is the average number of slots. The number is changed in the order of 40, 80, 120, etc. in ascending order.

図20のS2004にて、アプリケーション80は、平均スロット数に応じて判定に使用するテーブルを切り換える。具体的には、アプリケーション80は、平均スロット数が多くなるにつれて高速モードにおいて動画像から静止画像を生成する候補となる動画像の数(=規定数)を増やすように制御する。そして、アプリケーション80は、選択されたテーブルを利用して、図20のS2004〜S2008を実行する。これにより、ユーザが選択しているフォトアルバム、または平均スロット数に応じて、平均スロット数が多くなるにつれて、より多くの動画像を利用してフォトアルバムを高速に自動作成することができる。これにより、自動作成されるフォトアルバムの仕上がりのユーザ満足度を向上することができ、また、ユーザの操作性にも優れる。   In S2004 of FIG. 20, the application 80 switches the table used for determination according to the average number of slots. Specifically, the application 80 controls to increase the number (= specified number) of moving images that are candidates for generating still images from moving images in the high-speed mode as the average number of slots increases. Then, the application 80 executes S2004 to S2008 in FIG. 20 using the selected table. As a result, according to the photo album selected by the user or the average number of slots, a photo album can be automatically created at a high speed using more moving images as the average number of slots increases. Thereby, the user satisfaction of the finish of the automatically created photo album can be improved, and the user operability is also excellent.

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

また、上述した実施形態を組み合わせてもよい。例えば、実施形態1において、高速モードにおいて、データ画像群に含まれる静止画像数が、予め決めた静止画像数(例えば、図19に示すテーブルに定めた静止画像数)よりも少ない場合に、S2004において、実施形態6の演算処理を行ってもよい。   Moreover, you may combine embodiment mentioned above. For example, in the first embodiment, in the high-speed mode, when the number of still images included in the data image group is smaller than a predetermined number of still images (for example, the number of still images determined in the table shown in FIG. 19), S2004 Then, the arithmetic processing of the sixth embodiment may be performed.

また、上述した実施形態では、アプリケーションの例として図4に示すようなフォトアルバム作成アプリケーション80を挙げたが、この例に限られることなく、同様な画像抽出機能を備える任意のアプリケーションでも実現可能である。   In the above-described embodiment, the photo album creation application 80 as shown in FIG. 4 is given as an example of the application. However, the application is not limited to this example, and can be realized by any application having a similar image extraction function. is there.

また、上述した実施形態では、情報処理装置としてパーソナルコンピュータを想定した。しかしながら、携帯電話、携帯情報端末、デジタルスチルカメラ、デジタルビデオカメラ、携帯ミュージックプレーヤー、ゲーム、セットトップボックス、インターネット家電等、同様な使用方法が可能な任意の情報処理装置(端末)を用いてもよい。   In the embodiment described above, a personal computer is assumed as the information processing apparatus. However, any information processing apparatus (terminal) that can be used in a similar manner, such as a mobile phone, a portable information terminal, a digital still camera, a digital video camera, a portable music player, a game, a set-top box, or an Internet home appliance, may be used. Good.

また、上述した実施形態では、OSに例としてWindows(登録商標)8と同等のOSを使用したが、このOSに限られることなく、任意のOSを使用することができる。また、上述した実施形態では、ネットワーク4の構成例としてEthernet(登録商標)を用いたが、この例に限られることなく、例えば、無線LAN、IEEE1394、Bluetooth(登録商標)等、他の任意のネットワーク構成であってもよい。   In the embodiment described above, an OS equivalent to Windows (registered trademark) 8 is used as an example of the OS. However, the present invention is not limited to this OS, and an arbitrary OS can be used. In the above-described embodiment, Ethernet (registered trademark) is used as a configuration example of the network 4. However, the present invention is not limited to this example. For example, the wireless network, IEEE 1394, Bluetooth (registered trademark), and the like are arbitrary. It may be a network configuration.

以上のように、第1の実施形態によれば、静止画像と動画像の両方を一緒に取り扱い、ユーザの煩わしい操作を伴わずに、自動的により適切な画像を抽出してレイアウトを行うフォトアルバム作成アプリケーションを提供することができる。   As described above, according to the first embodiment, both a still image and a moving image are handled together, and a photo album that automatically extracts and lays out an appropriate image without a user's troublesome operation is performed. Creation application can be provided.

また、第2の実施形態では、分類分けされた静止画像に基づいて、動画像から、静止画像と関連するフレーム画像を自動的に抽出し、これらの静止画像を一連の領域に配置する。これにより、ユーザの煩わしい操作を伴わずに、関連性のある適切な画像を自動的に抽出してレイアウトを行うフォトアルバム作成アプリケーションを提供することができる。また、1つの動画像から異なる場面の複数のフレーム画像を抽出して一連の領域に配置することで、ユーザの煩わしい操作を伴わずに、変化に富んだ画像を自動的に抽出してレイアウトを行うフォトアルバム作成アプリケーションを提供することができる。   In the second embodiment, a frame image related to a still image is automatically extracted from a moving image based on the classified still images, and these still images are arranged in a series of regions. Accordingly, it is possible to provide a photo album creating application that automatically extracts relevant appropriate images and performs layout without requiring troublesome operations by the user. In addition, by extracting multiple frame images of different scenes from one moving image and placing them in a series of areas, a variety of images can be automatically extracted without any cumbersome user operation and layout can be performed. A photo album creation application can be provided.

また、第3の実施形態では、レイアウトテンプレート内に、デジタルスチルカメラ等で撮影して保存された写真等の静止画像に適したスロットと、動画像から抽出されたフレーム画像に適したスロットに対して、各適した静止画像を配置する。これにより、ユーザの煩わしい操作を伴わずに、静止画像の良さと動画像の動きを合わせた臨場感のある画像レイアウトを自動的に行うフォトアルバム作成アプリケーションを提供することができる。   In the third embodiment, the layout template includes a slot suitable for a still image such as a photograph taken and stored by a digital still camera and a slot suitable for a frame image extracted from a moving image. To arrange each suitable still image. Accordingly, it is possible to provide a photo album creation application that automatically performs a realistic image layout that combines the goodness of a still image and the motion of a moving image without involving a user's troublesome operation.

静止画像の分類、動画像から静止画像を抽出する処理方法として、撮影年月日時刻、色やヒストグラム、オブジェクトを利用する例を挙げたが、これらの例に限られることなく、同様な目的を達成し得る任意の処理方法を利用して本発明を実現することができる。さらに、撮影年月日時刻、色やヒストグラム、オブジェクト、その他の処理方法等を組み合わせて静止画像を分類したり、動画像から静止画像を抽出したりしてもよい。このように複数の処理方法を組合せることで、フォトアルバムの完成度を向上することができる。   As examples of still image classification and processing methods for extracting still images from moving images, shooting dates, times, colors, histograms, and objects are used. However, the present invention is not limited to these examples. The present invention can be implemented using any processing method that can be achieved. Further, still images may be classified by combining shooting date / time, color, histogram, object, and other processing methods, or a still image may be extracted from a moving image. By combining a plurality of processing methods in this way, the completeness of the photo album can be improved.

また、画像の解析方法として、Color(色)、Contrast(コントラスト)、Brightness(明るさ)、Focus(ピント)、Composition(構図)の要素を利用する例を挙げた。しかしながら、これらの例に限られることなく、同様な目的を達成し得る任意の解析方法を利用して本発明を実現することができる。   In addition, as an image analysis method, an example in which the elements of Color (color), Contrast (contrast), Brightness (brightness), Focus (focus), and Composition (composition) are used. However, the present invention is not limited to these examples, and the present invention can be realized by using any analysis method that can achieve the same object.

以上、各実施形態について詳述したが、特定の実施形態に限定されるものではなく、本発明の要旨の範囲内において、種々の変形・変更が可能である。   Each embodiment has been described in detail above, but is not limited to a specific embodiment, and various modifications and changes can be made within the scope of the gist of the present invention.

また、各実施形態を組合せることで、それぞれの実施形態が持つ効果をさらに高めることができ、ユーザの操作性に優れ、かつ、高品質なフォトアルバムを自動作成することができる。   Further, by combining the embodiments, the effects of the embodiments can be further enhanced, and a high-quality photo album with excellent user operability can be automatically created.

80…アプリケーション、204…CPU、201…RAM、202…HDD   80 ... Application, 204 ... CPU, 201 ... RAM, 202 ... HDD

Claims (13)

ユーザからの指示に基づき、動画像と静止画像とを含む画像群を取得する取得手段と、
前記取得手段により取得された画像群に含まれる前記動画像から抽出されるフレーム画像と前記静止画像とを含む画像の数が、閾値より多いか判定する判定手段と、
前記判定手段により前記画像の数が前記閾値より多いと判定された場合、前記取得手段により取得された画像群のうち一部の画像をレイアウトの処理対象として評価する特定モードで処理を実行することを決定する決定手段と、
前記特定モードにおいて、予め定められた参照値に基づき、前記取得手段により取得された画像群から選択する前記フレーム画像と前記静止画像とを含む画像総数を特定する特定手段と、
前記決定手段により前記特定モードで処理を実行すると決定された場合、前記取得手段により取得された画像群に含まれる動画像から、第1所定数の動画像と、第2所定数の静止画像とを選択する選択手段と、
前記選択手段により選択された動画像から複数のフレーム画像を生成する生成手段と、
を有し、
前記選択手段により選択される静止画像及び前記生成手段により生成されるフレーム画像の総数は、前記特定手段により特定された画像総数以下であることを特徴とする情報処理装置。
An acquisition means for acquiring an image group including a moving image and a still image based on an instruction from the user;
A determination unit that determines whether the number of images including the frame image extracted from the moving image included in the image group acquired by the acquisition unit and the still image is greater than a threshold;
When the determination unit determines that the number of the images is greater than the threshold value, the processing is performed in a specific mode in which a part of the images acquired by the acquisition unit is evaluated as a layout processing target. A determination means for determining
Specifying means for specifying the total number of images including the frame image and the still image selected from the image group acquired by the acquiring means based on a predetermined reference value in the specifying mode;
When it is determined by the determining means to execute the process in the specific mode, a first predetermined number of moving images and a second predetermined number of still images are selected from the moving images included in the image group acquired by the acquiring means. A selection means for selecting
Generating means for generating a plurality of frame images from the moving image selected by the selecting means;
Have
The total number of still images selected by the selection unit and frame images generated by the generation unit is equal to or less than the total number of images specified by the specifying unit.
前記決定手段は、ユーザからの指示に基づき、前記特定モードで処理を実行することを決定することを特徴とする請求項1に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the determination unit determines to execute the process in the specific mode based on an instruction from a user. 前記選択手段により選択された前記第所定数の静止画像と、前記生成手段により生成された複数のフレーム画像のそれぞれの評価を行う評価手段をさらに備えることを特徴とする請求項1または2に記載の情報処理装置。 The evaluation apparatus according to claim 1, further comprising an evaluation unit configured to evaluate each of the second predetermined number of still images selected by the selection unit and the plurality of frame images generated by the generation unit. The information processing apparatus described. 前記評価手段の評価に基づいて、前記選択手段により選択された静止画像のうち少なくとも1つの静止画像と、前記生成手段により生成された複数のフレーム画像のうち少なくとも1つのフレーム画像とをテンプレートに配置してレイアウト画像を生成するレイアウト手段をさらに有することを特徴とする請求項3に記載の情報処理装置。   Based on the evaluation by the evaluation unit, at least one still image selected from the still images selected by the selection unit and at least one frame image among a plurality of frame images generated by the generation unit are arranged in a template. The information processing apparatus according to claim 3, further comprising layout means for generating a layout image. 前記レイアウト手段は、前記テンプレートに配置した前記少なくとも1つのフレーム画像に基づき、前記選択手段にて選択された動画像からフレーム画像を前記生成手段にて生成させ、当該生成されたフレーム画像を前記テンプレートに配置した前記少なくとも1つのフレーム画像と置換して配置させることを特徴とする請求項4に記載の情報処理装置。   The layout unit causes the generation unit to generate a frame image from the moving image selected by the selection unit based on the at least one frame image arranged in the template, and the generated frame image is the template image. The information processing apparatus according to claim 4, wherein the information processing apparatus is arranged so as to be replaced with the at least one frame image arranged on the screen. 前記特定手段が用いる前記参照値は、前記レイアウト画像のページ数に応じて複数の値が予め定められており、
前記特定手段は、前記ページ数が第1のページ数の場合は、前記参照値として定められた第1参照値に基づき前記画像総数を特定し、前記ページ数が前記第1のページ数よりも多い第2のページ数の場合は、前記参照値として定められた第2参照値に基づき前記画像総数を特定し、
前記第2参照値は、前記第1参照値よりも大きいことを特徴とする請求項4または5に記載の情報処理装置。
The reference value used by the specifying means has a plurality of values determined in advance according to the number of pages of the layout image,
The specifying means specifies the total number of images based on a first reference value determined as the reference value when the page number is the first page number, and the page number is more than the first page number. In the case of a large second page number, the total number of images is specified based on the second reference value determined as the reference value,
The information processing apparatus according to claim 4, wherein the second reference value is larger than the first reference value.
前記特定手段が用いる前記参照値は、前記レイアウト画像のページ数及び前記レイアウト画像に配置する画像の数に応じて複数の値が定められていることを特徴とする請求項4乃至6のいずれか一項に記載の情報処理装置。   7. The reference value used by the specifying means has a plurality of values determined according to the number of pages of the layout image and the number of images arranged in the layout image. The information processing apparatus according to one item. 前記選択手段により選択する動画像の数は、前記レイアウト画像のページ数に基づいて決定されることを特徴とする請求項4乃至7のいずれか一項に記載の情報処理装置。   The information processing apparatus according to claim 4, wherein the number of moving images selected by the selection unit is determined based on the number of pages of the layout image. 前記選択手段により選択される動画像の数は、前記画像群に含まれる静止画像の数に基づいて決定されることを特徴とする請求項1乃至7のいずれか一項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the number of moving images selected by the selection unit is determined based on the number of still images included in the image group. . 前記決定手段により前記特定モードで処理を実行すると決定されなかった場合、前記選択手段は、前記取得手段により取得された画像群に含まれる全ての動画像および静止画像を選択することを特徴とする請求項1乃至9のいずれか一項に記載の情報処理装置。   If the determination unit does not determine to execute the process in the specific mode, the selection unit selects all moving images and still images included in the image group acquired by the acquisition unit. The information processing apparatus according to any one of claims 1 to 9. 前記生成手段は、動画像から等間隔でフレームを抽出して前記フレーム画像を生成することを特徴とする請求項1乃至10のいずれか一項に記載の情報処理装置。   The information processing apparatus according to claim 1, wherein the generation unit generates the frame image by extracting frames from the moving image at equal intervals. ユーザからの指示に基づき、動画像と静止画像とを含む画像群を取得する取得工程と、
前記取得工程において取得された画像群に含まれる前記動画像から抽出されるフレーム画像と前記静止画像とを含む画像の数が、閾値より多いか判定する判定工程と、
前記判定工程において前記画像の数が前記閾値より多いと判定された場合、前記取得工程において取得された画像群のうち一部の画像をレイアウトの処理対象として評価する特定モードで処理を実行することを決定する決定工程と、
前記特定モードにおいて、予め定められた参照値に基づき、前記取得工程において取得された画像群から選択する前記フレーム画像と前記静止画像とを含む画像総数を特定する特定工程と、
前記決定工程において前記特定モードで処理を実行すると決定された場合、前記取得工程において取得された画像群に含まれる動画像から、第1所定数の動画像と、第2所定数の静止画像とを選択する選択工程と、
前記選択工程において選択された動画像から複数のフレーム画像を生成する生成工程と、
を有し、
前記選択工程において選択される静止画像及び前記生成工程において生成されるフレーム画像の総数は、前記特定工程において特定された画像総数以下であることを特徴とする処理方法。
An acquisition step of acquiring an image group including a moving image and a still image based on an instruction from the user;
A determination step of determining whether the number of images including frame images extracted from the moving images included in the image group acquired in the acquisition step and the still images is greater than a threshold;
When it is determined in the determination step that the number of images is greater than the threshold value, the processing is executed in a specific mode in which a part of the images acquired in the acquisition step is evaluated as a layout processing target. A determination step for determining
In the specific mode, a specific step of specifying the total number of images including the frame image and the still image selected from the image group acquired in the acquisition step based on a predetermined reference value;
When it is determined in the determination step that the process is performed in the specific mode, a first predetermined number of moving images and a second predetermined number of still images are selected from the moving images included in the image group acquired in the acquisition step. A selection process for selecting
A generation step of generating a plurality of frame images from the moving images selected in the selection step;
Have
The total number of still images selected in the selecting step and frame images generated in the generating step is equal to or less than the total number of images specified in the specifying step.
請求項1乃至11のいずれか一項に記載の情報処理装置の各手段としてコンピュータを機能させるプログラム。   A program that causes a computer to function as each unit of the information processing apparatus according to any one of claims 1 to 11.
JP2015255243A 2015-12-25 2015-12-25 Information processing apparatus, processing method, and program Active JP6586009B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2015255243A JP6586009B2 (en) 2015-12-25 2015-12-25 Information processing apparatus, processing method, and program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2015255243A JP6586009B2 (en) 2015-12-25 2015-12-25 Information processing apparatus, processing method, and program

Publications (2)

Publication Number Publication Date
JP2017117409A JP2017117409A (en) 2017-06-29
JP6586009B2 true JP6586009B2 (en) 2019-10-02

Family

ID=59234512

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2015255243A Active JP6586009B2 (en) 2015-12-25 2015-12-25 Information processing apparatus, processing method, and program

Country Status (1)

Country Link
JP (1) JP6586009B2 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115914775B (en) * 2022-11-21 2024-08-30 北京奇艺世纪科技有限公司 Cover determination method and device, electronic equipment and storage medium

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010068347A (en) * 2008-09-11 2010-03-25 Ricoh Co Ltd Image forming apparatus, image forming method and image forming program
JP5131107B2 (en) * 2008-09-12 2013-01-30 Nkワークス株式会社 Image layout setting method, image layout setting device, and image layout setting program
JP2011082688A (en) * 2009-10-05 2011-04-21 Canon Inc Still image extraction apparatus and still image extraction method
JP5415225B2 (en) * 2009-10-15 2014-02-12 ソニー株式会社 Movie providing apparatus, movie providing method, and program
JP5686673B2 (en) * 2010-07-22 2015-03-18 富士フイルム株式会社 Image processing apparatus, image processing method, and program

Also Published As

Publication number Publication date
JP2017117409A (en) 2017-06-29

Similar Documents

Publication Publication Date Title
JP6463996B2 (en) Information processing apparatus, method, and program
JP6381514B2 (en) Image processing system, information processing apparatus and control method thereof
US10359927B2 (en) Methods and systems for photo, page, and spread arrangement on space-constrained user devices
US9378189B2 (en) Layout apparatus, layout method, and computer-readable recording medium
JP5449460B2 (en) Image processing apparatus, image processing method, and image processing program
CN107979709B (en) Image processing apparatus, image processing system, control method, and computer readable medium
JP6702900B2 (en) Information processing apparatus, display control method, and program
CN108377351B (en) Image processing apparatus and image processing method for laying out images on templates
JP6422409B2 (en) Display control apparatus, display control method, and program
JP6887816B2 (en) Image processing equipment, control methods, and programs
JP6723938B2 (en) Information processing apparatus, display control method, and program
JP2019067260A (en) INFORMATION PROCESSING APPARATUS, DISPLAY CONTROL METHOD, AND PROGRAM
US11320965B2 (en) Image processing apparatus, control method, and recording medium
CN101908218A (en) Editing Equipment and Arrangement Methods
JP2022123209A (en) Image processing apparatus, image processing method, and program
JP7207908B2 (en) Information processing system, information processing device, program, and information processing method
JP6681192B2 (en) Image processing apparatus, image processing method, and computer program
JP6397382B2 (en) Information processing apparatus and control method thereof
JP6586009B2 (en) Information processing apparatus, processing method, and program
JP6673771B2 (en) Image processing apparatus, image processing method, program, and recording medium
JP2021149196A (en) Image processing apparatus, image processing method, and program
JP6765978B2 (en) Information processing equipment and programs
JP6586402B2 (en) Image classification apparatus, image classification method, and program
JP6647039B2 (en) Image processing apparatus, image processing method, and computer program
JP6877105B2 (en) Image processing equipment, control methods, and programs

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20171219

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20181109

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20181119

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190117

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20190201

A521 Written amendment

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20190329

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20190906

R151 Written notification of patent or utility model registration

Ref document number: 6586009

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151