JP2018124776A - Information processing device, information processing method, and program - Google Patents

Information processing device, information processing method, and program Download PDF

Info

Publication number
JP2018124776A
JP2018124776A JP2017016192A JP2017016192A JP2018124776A JP 2018124776 A JP2018124776 A JP 2018124776A JP 2017016192 A JP2017016192 A JP 2017016192A JP 2017016192 A JP2017016192 A JP 2017016192A JP 2018124776 A JP2018124776 A JP 2018124776A
Authority
JP
Japan
Prior art keywords
image
photo
information processing
slot
unit
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
JP2017016192A
Other languages
Japanese (ja)
Other versions
JP6765978B2 (en
Inventor
智也 石田
Tomoya Ishida
智也 石田
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 JP2017016192A priority Critical patent/JP6765978B2/en
Publication of JP2018124776A publication Critical patent/JP2018124776A/en
Application granted granted Critical
Publication of JP6765978B2 publication Critical patent/JP6765978B2/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)
  • Editing Of Facsimile Originals (AREA)

Abstract

PROBLEM TO BE SOLVED: To enable a selection of an image as photo content other than an image selected beforehand after the photo content is created.SOLUTION: An information processing device according to the present invention includes: excluding means for excluding an image that does not match an image slot from an image group selected beforehand; automatic layout means for automatically laying out the left images not excluded in the image slot corresponding to photo content; image acquiring means for acquiring a new image that is to be replaced with the image selected as the image for replacement from the laid out images; and image determining means for not determining whether or not the selected image for replacement matches the image slot when the new image is acquired from the left images not excluded by the excluding means after the automatic layout, and for determining whether or not the selected image for replacement matches the image slot when the new image is acquired from the image other than the selected image beforehand after the automatic layout.SELECTED DRAWING: Figure 15

Description

本発明は、情報処理装置、情報処理方法、及びプログラムに関し、より詳細には、フォトコンテンツを作成する情報処理装置、情報処理方法、及びプログラムに関する。   The present invention relates to an information processing device, an information processing method, and a program, and more particularly to an information processing device, an information processing method, and a program for creating photo content.

従来、フォトアルバムを作成するソフトウェア(以降、フォトアルバム作成アプリケーションという)がある。このフォトアルバム作成アプリケーションでは、ユーザによりアルバムに掲載したい写真を含むフォルダ、又は複数の写真が選択されると、それらの写真を解析した上で、フォトアルバムに掲載する写真を決定し、自動でレイアウト処理を施す。このような、ユーザにより選択された複数の写真からフォトアルバムを自動で生成する機能は自動レイアウト機能と呼ばれており、ユーザがアルバムを一からすべて手動で作成する必要がないため、多くのアルバム作成ソフトで採用されている。   Conventionally, there is software for creating a photo album (hereinafter referred to as a photo album creation application). In this photo album creation application, when a user selects a folder that contains photos to be included in the album or multiple photos, the photos are analyzed, and the photos to be posted in the photo album are determined and automatically laid out. Apply processing. Such a function for automatically generating a photo album from a plurality of photos selected by the user is called an automatic layout function, and it is not necessary for the user to manually create an album from scratch. It is adopted in the creation software.

また、ユーザは、このフォトアルバム作成アプリケーションの自動レイアウト機能により作成されたフォトアルバムで、満足のいかない部分があると、個別に編集することができる。例えば、フォトアルバムのある写真スロットに設定された写真を異なる写真に変更したい場合、ユーザは、対象の写真スロットを選択した上で、写真を手動で入れ替える作業を行う。そして、その手動で写真を入れ替える際に、従来のフォトアルバム作成アプリケーションでは、ユーザが事前に選択した写真の中からおすすめの写真を候補画像として提示してくれるものがある(例えば、特許文献1)。この特許文献1では、フォトアルバムを作成するにあたり、ユーザが指定する画像をグループに分け、そのグループとフォトアルバムのページを対応付けており、画像スロットの画像を入れ替える際、そのページに対応するグループから候補画像を表示している。   Further, the user can individually edit a photo album created by the automatic layout function of the photo album creation application if there is an unsatisfactory portion. For example, when a user wants to change a photo set in a photo slot in a photo album to a different photo, the user manually selects the target photo slot and then manually replaces the photo. When manually exchanging photos, some conventional photo album creation applications present recommended photos as candidate images from photos selected in advance by the user (for example, Patent Document 1). . In this Patent Document 1, when creating a photo album, images designated by the user are divided into groups, the groups are associated with the pages of the photo album, and when the images in the image slot are replaced, the group corresponding to the page Candidate images are displayed.

特開2013−33453号公報JP 2013-33453 A

しかしながら、特許文献1では、ユーザが事前に選択した画像の中から画像スロットの画像を入れ替えており、ユーザが事前に選択した画像以外の任意の画像をアルバムに設定することに関しては言及されていない。また、任意の画像を画像スロットに入れ替えると、アルバムに適さない解像度の小さい画像も選択されてしまうことがある。   However, in Patent Document 1, the image in the image slot is exchanged from images selected in advance by the user, and there is no mention regarding setting an arbitrary image other than the image selected in advance by the user in the album. . If an arbitrary image is replaced with an image slot, an image with a small resolution that is not suitable for an album may be selected.

本発明は、前記従来の問題に鑑みてなされたものであって、その目的は、フォトコンテンツの作成後に、事前に選択した画像以外の画像をフォトコンテンツに選択できるようにすることである。   The present invention has been made in view of the above-described conventional problems, and an object thereof is to allow an image other than a preselected image to be selected as a photo content after the photo content is created.

上記目的を達成するために、本発明の情報処理装置は、フォトコンテンツを作成する情報処理装置であって、ユーザにより事前に選択された画像群から画像スロットに適合しない画像を除外する除外手段と、前記除外手段により除外されずに残った画像を、前記フォトコンテンツの対応する画像スロットに自動でレイアウトする自動レイアウト処理を実行する自動レイアウト手段と、前記自動レイアウト手段によりレイアウトされた画像から入替対象として選択された画像と入れ替える新規画像を取得する画像取得手段と、前記自動レイアウト処理が実行された後に、前記除外手段により除外されずに残った画像から前記新規画像が取得された場合、前記入替対象として選択された画像の画像スロットに適合するか否かの判定は実行されず、前記自動レイアウト処理が実行された後に、前記ユーザにより事前に選択された画像以外の画像から前記新規画像が取得された場合、前記入替対象として選択された画像の画像スロットに適合するか否かを判定する画像判定手段とを備えることを特徴とする。   In order to achieve the above object, an information processing apparatus according to the present invention is an information processing apparatus that creates photo content, and includes an exclusion unit that excludes an image that does not match an image slot from an image group selected in advance by a user. , An automatic layout means for automatically laying out an image that has not been excluded by the exclusion means in an image slot corresponding to the photo content, and a replacement target from the image laid out by the automatic layout means An image acquisition unit that acquires a new image to be replaced with an image selected as the image, and the replacement when the new image is acquired from an image that is not excluded by the exclusion unit after the automatic layout process is executed. No determination is made as to whether it matches the image slot of the image selected as the target, If the new image is acquired from an image other than the image selected in advance by the user after the automatic layout process is executed, whether or not the image slot of the image selected as the replacement target is matched is determined. And an image determining means for determining.

本発明により、フォトコンテンツの作成後に、事前に選択した画像以外の画像をフォトアルバムに選択することができる。   According to the present invention, it is possible to select an image other than a pre-selected image as a photo album after creating photo content.

フォトアルバム作成/注文システムの構成を示す図である。It is a figure which shows the structure of a photo album creation / order system. PCのハードウェア構成を示す図である。It is a figure which shows the hardware constitutions of PC. PCのソフトウェアのモジュール構成を示す図である。It is a figure which shows the module structure of the software of PC. フォトアルバムを作成/編集する画面の例である。It is an example of a screen for creating / editing a photo album. フォトアルバム作成アプリケーションの機能ブロック図である。It is a functional block diagram of a photo album creation application. 自動レイアウトの処理の流れを示すフローチャートである。It is a flowchart which shows the flow of a process of automatic layout. 画像解析情報を示す図である。It is a figure which shows image analysis information. サブシーンに分割する処理を示す図である。It is a figure which shows the process divided | segmented into a subscene. 各々のシーンにおける、画像特徴量の平均値と標準偏差値を示す図である。It is a figure which shows the average value and standard deviation value of an image feature-value in each scene. 画像得点化部における得点化に関する処理を説明する図である。It is a figure explaining the process regarding scoring in an image scoring part. シーン画像群からレイアウトする画像を選択する処理を説明する図である。It is a figure explaining the process which selects the image to lay out from a scene image group. 画像のレイアウトに用いるテンプレート群を示す図である。It is a figure which shows the template group used for the layout of an image. 写真の入れ替えに関する例を示した図である。It is the figure which showed the example regarding replacement of a photograph. 写真の入れ替えに関する例を示した図である。It is the figure which showed the example regarding replacement of a photograph. 写真に入れ替えに関する例を示した図である。It is the figure which showed the example regarding replacement to a photograph. 写真の入れ替えに関する例を示した図である。It is the figure which showed the example regarding replacement of a photograph. 他の写真に入れ替えることができない例を示した図である。It is the figure which showed the example which cannot be replaced with another photograph. 写真を入れ替える処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process which replaces a photograph. フォトアルバム作成アプリケーションの処理の流れを示したフローチャートである。It is the flowchart which showed the flow of the process of the photo album creation application. カメラで撮影した写真を、写真スロットに設定する場合を例示したものである。A case where a photograph taken with a camera is set in a photograph slot is illustrated. 画像読み取り装置で読み取られた画像を、写真スロットに設定する場合を例示したものである。The case where the image read by the image reading apparatus is set in the photo slot is illustrated.

以下、添付の図面を参照して、本発明の好適な実施の形態に関して、詳細に説明する。なお、以下の実施の形態は、特許請求の範囲に係る本発明を限定するものでなく、また、本実施形態で説明されている特徴の組み合わせの全てが本発明の解決手段に必須のものとは限らない。   Hereinafter, preferred 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 scope of claims, and all combinations of features described in the present embodiments are essential to the solution means of the present invention. Is not limited.

図1は、フォトアルバム作成/注文システムの構成を示す図である。フォトアルバム作成/注文システムは、情報処理装置1及び2がインターネット等の所定のネットワークで接続されることで構成される。情報処理装置1及び2は、例えば、一般的なパーソナルコンピュータ又はサーバ(以下、PCと略す場合がある)等で構成される。また、PC1及び2には、OS(Operating System)として、Windows8(登録商標)又はWindows Server 2012(登録商標)と同等のOSがインストールされている。   FIG. 1 is a diagram showing a configuration of a photo album creation / order system. The photo album creation / order system is configured by connecting information processing apparatuses 1 and 2 via a predetermined network such as the Internet. 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). The PCs 1 and 2 are installed with an OS equivalent to Windows 8 (registered trademark) or Windows Server 2012 (registered trademark) as an OS (Operating System).

PC1は、主にユーザ(例えば、顧客等)の自宅に設置され、その自宅に構築された一般家庭用のホームネットワーク(図1に示される、Ethernet(登録商標)で構成されるネットワーク4)に接続される。PC1は、フォトアルバム作成アプリケーション80とWebブラウザアプリケーション143を備える。   The PC 1 is installed in a home network for a general home (a network 4 configured by Ethernet (registered trademark) shown in FIG. 1) that is mainly installed at the home of a user (for example, a customer) and built at the home. Connected. The PC 1 includes a photo album creation application 80 and a web browser application 143.

フォトアルバム作成アプリケーション80は、フォトアルバムを作成するためのアプリケーションであり、例えば、Windows用の実行可能形式のファイル(即ち、拡張子が「.exe」で示されるファイル)で構成される。Webブラウザアプリケーション143は、WWW(World Wide Web)を利用する際に用いられるブラウザである。   The photo album creation application 80 is an application for creating a photo album, and includes, for example, an executable file for Windows (that is, a file whose extension is indicated by “.exe”). The Web browser application 143 is a browser used when using the WWW (World Wide Web).

PC2は、社内(図1では、ABC社の社内)に設置され、その社内に構築されたオフィスネットワーク(図1に示される、Ethernet(登録商標)で構成されるネットワーク8)に接続される。PC2は、Webサーバの機能を備えるWebサーバ9を含み、インターネットを介してABC社のWebサイト(即ち、ショッピングサイト11)を提供している。ショッピングサイト11は、ABC社がユーザ向けにサービスを提供しているショッピングサイトであり、ユーザはショッピングサイト11を利用してフォトアルバムを注文することができる。   The PC 2 is installed in the company (in FIG. 1, in the company of ABC), and is connected to an office network (network 8 made up of Ethernet (registered trademark) shown in FIG. 1) built in the company. The PC 2 includes a Web server 9 having a Web server function, and provides an ABC company Web site (that is, a shopping site 11) 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は、PC1のハードウェア構成を示す図である。PC1は、RAM201、HDD202、KBD203、CPU204、LCD205、NB206を備える。RAM(Random Access Memory)201は、CPU204のメインメモリであり、ワークエリア等として機能する。HDD(Hard Disk Drive)202は、各種データ等を記憶する記憶装置(内部記憶手段)である。なお、各種データ等は、可搬性CD−ROM又は内部据付のROM等に記憶することもできる。KBD(keyboard)203は、各種設定を入力するための入力装置である。   FIG. 2 is a diagram illustrating a hardware configuration of the PC 1. The PC 1 includes a RAM 201, an HDD 202, a KBD 203, a CPU 204, an LCD 205, and an NB 206. A RAM (Random Access Memory) 201 is a main memory of the CPU 204 and functions as a work area or the like. An HDD (Hard Disk Drive) 202 is a storage device (internal storage means) that stores various data. Various data can also be stored in a portable CD-ROM or an internally installed ROM. A KBD (keyboard) 203 is an input device for inputting various settings.

CPU(Central Processing Unit)204は、PC1全体を制御する中央演算装置であり、OSやアプリケーションプログラム等の各種プログラムを実行する。具体的には、CPU204は、HDD202に記憶されたフォトアルバム作成アプリケーション80、Webブラウザアプリケーション143、図3に示す各モジュール(ソフトウェア)を必要に応じてRAM201に読み出して実行する。また、これにより、CPU204は、フォトアルバム作成アプリケーション80、Webブラウザアプリケーション143、図3に示す各モジュール(ソフトウェア)の機能を実現する。   A CPU (Central Processing Unit) 204 is a central processing unit that controls the entire PC 1 and executes various programs such as an OS and application programs. Specifically, the CPU 204 reads the photo album creation application 80, the web browser application 143, and each module (software) shown in FIG. 3 stored in the HDD 202 into the RAM 201 and executes them. Accordingly, the CPU 204 realizes the functions of the photo album creation application 80, the Web browser application 143, and each module (software) shown in FIG.

LCD(Liquid Crystal Display)205は、表示用のディスプレイ装置(表示部)である。NB(Network Board)206は、ネットワークに接続するための拡張ボードである。なお、PC1において、PC1の各部201から206は、バス207で相互に接続される。   An LCD (Liquid Crystal Display) 205 is a display device (display unit) for display. An NB (Network Board) 206 is an expansion board for connecting to a network. In the PC 1, the units 201 to 206 of the PC 1 are connected to each other via a bus 207.

図3は、PC1のソフトウェアのモジュール構成を示す図である。即ち、PC1は、図3に示すように、モジュール301から309を含む。モジュール301は、アプリケーションモジュールであり、例えば、フォトアルバム作成アプリケーション80、Webブラウザアプリケーション143等を含んで構成される。   FIG. 3 is a diagram illustrating a module configuration of software of the PC 1. That is, the PC 1 includes modules 301 to 309 as shown in FIG. The module 301 is an application module, and includes, for example, a photo album creation application 80, a web browser application 143, and the like.

モジュール302は、API/DDIインタフェースであり、Application Programing Interface(API)及びDevice Driver Interface(DDI)を含んで構成される。モジュール303は、デバイスドライバとしてのモジュールであり、OSに標準で同梱されている標準ドライバ304及びIndependentHardwareVendor(IHV)から提供されるIHV製ドライバ305を含んで構成される。   The module 302 is an API / DDI interface, and includes an Application Programming Interface (API) and a Device Driver Interface (DDI). The module 303 is a module as a device driver, and includes a standard driver 304 bundled with the OS as a standard and an IHV driver 305 provided from the Independent Hardware Vendor (IHV).

モジュール306は、ネットワークのプラグアンドプレイを制御するPnP−X制御モジュールである。なお、PnP−Xとは、ネットワーク接続デバイスに対するサポートを提供する、プラグアンドプレイの一連の拡張機能としてWindows8 OSに標準搭載されている機能である「Plug and Play Extensions」の略称である。   A module 306 is a PnP-X control module that controls plug and play of the network. Note that “PnP-X” is an abbreviation of “Plug and Play Extensions”, which is a standard function installed in the Windows 8 OS as a series of plug-and-play extended functions that provide support for network connection devices.

モジュール307は、ネットワーク上のデバイス検索の仕組みを提供するWSD(Web Service on Devices)を制御するWSD制御モジュールである。モジュール308は、IP Networkを制御するIP Network制御モジュールである。モジュール309は、Ethernetを制御するEthernet制御モジュールである。   A module 307 is a WSD control module that controls a Web Service on Devices (WSD) that provides a device search mechanism on the network. The module 308 is an IP network control module that controls the IP network. A module 309 is an Ethernet control module that controls Ethernet.

図4は、フォトアルバム作成アプリケーション80でフォトアルバムを作成/編集する画面の例である。図4において、表示領域401はフォトアルバム作成アプリケーション80の表示領域、表示領域402はフォトアルバムの各ページのサムネイル表示領域、表示領域403はフォトアルバムの表示領域である。   FIG. 4 is an example of a screen for creating / editing a photo album with the photo album creation application 80. In FIG. 4, a display area 401 is a display area of the photo album creation application 80, a display area 402 is a thumbnail display area of each page of the photo album, and a display area 403 is a display area of the photo album.

また、図4において、ユーザが、表示領域402において、所望のサムネイルを選択すると、その選択されたサムネイル(即ち、該当するページ)が選択状態404になる。図4では、3〜4ページが選択状態404である例を示しており、ユーザにより3〜4ページが選択されると、3〜4ページの写真のレイアウト結果(つまり、フォトアルバムの見開きページ)が表示領域403に表示される。ユーザは、表示領域403上で編集操作を行うことができる。   In FIG. 4, when the user selects a desired thumbnail in the display area 402, the selected thumbnail (that is, the corresponding page) is in a selection state 404. FIG. 4 shows an example in which pages 3 to 4 are in the selection state 404. When pages 3 to 4 are selected by the user, the layout result of the photos on pages 3 to 4 (that is, the spread page of the photo album) Is displayed in the display area 403. The user can perform an editing operation on the display area 403.

写真スロット405は、本発明の画像スロットに対応し、写真を割り当てるためのスロットである。テキストボックス406は、テキストを入力するための領域である。ボタン407は、作成/編集したフォトアルバムをカートに入れるためのボタンである。ユーザがボタン407を選択すると、作成/編集したフォトアルバムがインターネット経由でショッピングカートにアップロードされる。なお、本実施形態では、スロット405に写真がレイアウトされたレイアウト結果として図4のような画面が表示される。   The photo slot 405 corresponds to the image slot of the present invention and is a slot for assigning a photo. A text box 406 is an area for inputting text. A button 407 is a button for putting the created / edited photo album into the cart. When the user selects the button 407, the created / edited photo album is uploaded to the shopping cart via the Internet. In the present embodiment, a screen as shown in FIG. 4 is displayed as a layout result in which photos are laid out in the slot 405.

図5は、フォトアルバム作成アプリケーションの機能ブロック図である。なお、図5において、図5(a)はフォトアルバム作成アプリケーション80全体の機能ブロック図として、また、図5(b)はフォトアルバム作成アプリケーション80を構成する自動レイアウト処理部900の機能ブロック図として示される。   FIG. 5 is a functional block diagram of the photo album creation application. 5, FIG. 5 (a) is a functional block diagram of the entire photo album creation application 80, and FIG. 5 (b) is a functional block diagram of the automatic layout processing unit 900 constituting the photo album creation application 80. Indicated.

先ず、図5(a)のフォトアルバム作成アプリケーション80全体の機能ブロック図について説明する。アルバムデータ生成部800は、ユーザにより選択された画像(写真)に従って、フォトアルバムをデータとして生成する。アルバムデータ生成部800は、ユーザにより選択された画像がフォトアルバムを生成する上で適切な画像であるか否かを判定する画像判定部811と、ユーザにより選択された画像を所定のテンプレートにレイアウトするレイアウト処理部812を有する。なお、レイアウト処理部812には、自動で画像をレイアウトする自動レイアウト処理部900がある。   First, a functional block diagram of the entire photo album creation application 80 in FIG. 5A will be described. The album data generation unit 800 generates a photo album as data according to the image (photograph) selected by the user. The album data generation unit 800 lays out an image determination unit 811 that determines whether the image selected by the user is an appropriate image for generating a photo album, and lays out the image selected by the user in a predetermined template. A layout processing unit 812. The layout processing unit 812 includes an automatic layout processing unit 900 that automatically lays out an image.

デバイス制御部820は、前述の図3に示すモジュールと一部、連携することで、各種インタフェースを介して接続される、メモリ、又はハードディスク装置等の外部記憶装置、画像読み取り装置等との間で、データの入出力等の通信を制御する。例えば、デバイス制御部820は、画像読み取り装置における読み取り設定等を調整するように制御する。ネットワーク制御部830は、デバイス制御部820と同様に前述の図3に示すモジュールと一部、連携することで、ネットワークに接続された他の機器との通信制御処理を実行する。   The device control unit 820 is partially linked with the module shown in FIG. 3 described above to connect with an external storage device such as a memory or a hard disk device, an image reading device, or the like connected through various interfaces. Control communications such as data input / output. For example, the device control unit 820 performs control so as to adjust reading settings and the like in the image reading apparatus. Similarly to the device control unit 820, the network control unit 830 cooperates with the module illustrated in FIG. 3 described above to execute communication control processing with other devices connected to the network.

カメラ制御部840は、PC1に内蔵又は接続されているカメラを制御し、撮影モードを調整した上で撮影処理等を実行する。記憶制御部850は、PC1のHDD202に各種データを記憶するように制御する(例えば、外部記憶装置に記憶された画像データを複製して、記憶するように制御する)。表示制御部860は、PC1のディスプレイ装置における表示制御を行う。   The camera control unit 840 controls a camera built in or connected to the PC 1 and adjusts the shooting mode and executes shooting processing and the like. The storage control unit 850 controls to store various data in the HDD 202 of the PC 1 (for example, controls to copy and store image data stored in the external storage device). The display control unit 860 performs display control in the display device of the PC 1.

次に、図5(b)のフォトアルバム作成アプリケーション80の自動レイアウト処理部900の機能ブロック図について説明する。図5(b)において、アルバム作成条件指定部901は、後述のUI操作に応じたアルバム作成条件を自動レイアウト処理部900に指定する。画像取得部902は、アルバム作成条件指定部901から指定された画像群を、例えば、HDD202等から取得する。画像変換部903は、以降の処理に用いられる画像データを所望の画素数や色情報に変換する。なお、本実施形態において、画像変換部903は、短辺画素の画素数とsRGBの色情報の解析画像に変換する。   Next, a functional block diagram of the automatic layout processing unit 900 of the photo album creation application 80 in FIG. 5B will be described. In FIG. 5B, an album creation condition designating unit 901 designates an album creation condition according to a UI operation described later to the automatic layout processing unit 900. The image acquisition unit 902 acquires the image group designated from the album creation condition designation unit 901 from, for example, the HDD 202 or the like. The image conversion unit 903 converts image data used for subsequent processing into a desired number of pixels and color information. In this embodiment, the image conversion unit 903 converts the number of short-side pixels into an analysis image of sRGB color information.

画像解析部904は、解析画像から後述の画像特徴量の取得、顔検出、表情認識、個人認識等を実行する。また、画像解析部904は、HDD202から取得した画像に付随するデータ、例えば、Exif等の情報から撮影日時を取得する。画像分類部905は、画像群に対して撮影日時情報や枚数、検出した顔情報を用いて後述のシーン分割、シーン分類を実行する。なお、シーンとは、例えば、旅行や日常、結婚式等の撮影シーンのことである。   The image analysis unit 904 executes later-described image feature amount acquisition, face detection, facial expression recognition, personal recognition, and the like from the analysis image. In addition, the image analysis unit 904 acquires the shooting date and time from data accompanying the image acquired from the HDD 202, for example, information such as Exif. The image classification unit 905 executes scene division and scene classification described later using the shooting date / time information, the number of images, and detected face information for the image group. The scene is a shooting scene such as travel, daily life, wedding, and the like.

主人公情報入力部906は、アルバム作成条件指定部901から指定された主人公のID(識別情報)を画像得点化部907に入力する。画像得点化部907は、取得された各画像に対して、レイアウトに適した画像が高得点になるように得点付けを実行する。なお、画像得点化部907は、得点付けを実行する上で、画像解析部904からの情報、画像分類部905からの情報を用いる。また、画像得点化部907は、主人公情報入力部906から入力された主人公IDが含まれる画像に関して、その画像の得点を加点できる構成となっている。   The main character information input unit 906 inputs the main character ID (identification information) designated by the album creation condition designation unit 901 to the image scoring unit 907. The image scoring unit 907 performs scoring on each acquired image so that an image suitable for the layout has a high score. Note that the image scoring unit 907 uses information from the image analysis unit 904 and information from the image classification unit 905 when performing scoring. In addition, the image scoring unit 907 is configured to be able to add a score for an image including the main character ID input from the main character information input unit 906.

見開き数入力部908は、アルバム作成条件指定部901から指定されたアルバムの見開き数を見開き割当部909に入力する。見開き割当部909は、画像群を分割して各見開きに割り当てる。見開き割当部909は、見開き数入力部908より入力された見開き数に応じて画像群を分割し、各見開きに画像群の一部を割り当てる。画像選択部910は、見開き割当部909により各見開きに割り当てられた画像群の一部から、画像得点化部907で得点付けした得点を参考にして、アルバムへの掲載を予定する画像を選択する。例えば、画像選択部910は、得点の高い画像を優先的に選択する。テンプレート入力部911は、アルバム作成条件指定部901から指定されたテンプレート情報に応じた複数のテンプレートを画像レイアウト部912に入力する。画像レイアウト部912は、画像選択部910により選択された画像に適したテンプレートをテンプレート入力部911から入力された複数のテンプレートから選択し、画像のレイアウトを決定する。   The spread number input unit 908 inputs the number of spreads of the album designated by the album creation condition designation unit 901 to the spread allocation unit 909. A spread assignment unit 909 divides the image group and assigns it to each spread. The spread allocation unit 909 divides the image group according to the spread number input from the spread number input unit 908, and allocates a part of the image group to each spread. The image selection unit 910 selects an image to be posted on the album with reference to the score scored by the image scoring unit 907 from a part of the image group assigned to each spread by the spread allocation unit 909. . For example, the image selection unit 910 preferentially selects an image with a high score. The template input unit 911 inputs a plurality of templates corresponding to the template information specified from the album creation condition specifying unit 901 to the image layout unit 912. The image layout unit 912 selects a template suitable for the image selected by the image selection unit 910 from a plurality of templates input from the template input unit 911, and determines an image layout.

画像補正条件入力部913は、アルバム作成条件指定部901により指定された画像補正のON/OFF条件を画像補正部914に入力する。画像補正部914は、画像補正条件入力部913より入力された画像補正条件がONである場合、画像変換部903から入力された画像に対して、例えば、覆い焼き補正、赤目補正、コントラスト補正等の画像補正を実行する。また、画像補正部914は、画像補正条件入力部913より入力された画像補正条件がOFFである場合、画像変換部903から入力された画像に対して、画像補正を実行しない。なお、画像変換部903から画像補正部914に入力される画像の画素数は、画像レイアウト部912で決定されたレイアウトのサイズに合わせて変更される構成となっている。レイアウト情報出力部915は、画像レイアウト部912により決定された画像レイアウトに従って、ディスプレイに表示するためのレイアウト情報を出力する。レイアウト情報は、例えば、選択したテンプレートに、選択した画像をレイアウトしたビットマップデータ等のアルバムを作成するために必要なデータを含む。   The image correction condition input unit 913 inputs the image correction ON / OFF condition designated by the album creation condition designation unit 901 to the image correction unit 914. When the image correction condition input from the image correction condition input unit 913 is ON, the image correction unit 914 performs, for example, dodging correction, red-eye correction, contrast correction, and the like on the image input from the image conversion unit 903. Perform image correction. The image correction unit 914 does not perform image correction on the image input from the image conversion unit 903 when the image correction condition input from the image correction condition input unit 913 is OFF. Note that the number of pixels of the image input from the image conversion unit 903 to the image correction unit 914 is changed according to the layout size determined by the image layout unit 912. The layout information output unit 915 outputs layout information for display on the display according to the image layout determined by the image layout unit 912. The layout information includes, for example, data necessary for creating an album such as bitmap data in which the selected image is laid out in the selected template.

図6は、フォトアルバム作成アプリケーション80の自動レイアウト処理部900における自動レイアウトの処理の流れを示すフローチャートである。なお、図6に示すフローチャートは、例えば、CPU204がHDD202に格納されたプログラムをRAM201に読み出して実行することにより実現される。   FIG. 6 is a flowchart showing the flow of automatic layout processing in the automatic layout processing unit 900 of the photo album creation application 80. The flowchart shown in FIG. 6 is realized, for example, when the CPU 204 reads out a program stored in the HDD 202 to the RAM 201 and executes it.

なお、ユーザは、図6の処理を開始する前にアルバムに配置したい画像データ群を選択する。そして、フォトアルバム作成アプリケーション80は、選択された画像データ群の中で、図6にて後述する自動レイアウトに適した画像データを特定する。具体的には、画像データ群の中で、条件1に対応する画像データは自動レイアウトに適さない画像データとして除外される。なお、条件1に対応する画像データは、フォーマットが非対応の画像データ、サイズが既定のサイズよりも大きい画像データ、サイズが既定のサイズよりも小さい画像データ、アスペクト比が所定の比率に適合しない画像データである。また、画像データ群の中で、条件1には対応しないが条件2に対応する画像データも自動レイアウトに適さない画像データとして除外される。なお、条件2に対応する画像データとは、Exif等の情報を含まない画像データである。フォトアルバム作成アプリケーション80は、図6の処理を開始する前に選択された画像データ群から条件1に対応する画像データと条件2に対応する画像データを除外し、残った画像データを使って、以降の図6の処理を実行する。つまり、上述した処理が実行されない場合、自動レイアウトに適さない画像データについても解析処理等が実行されるため、効率の良い自動レイアウト処理を実行できないおそれがあった。本実施形態は、更なる目的として、効率の良い自動レイアウト処理を実行することを目的とする。   Note that the user selects an image data group to be arranged in the album before starting the processing of FIG. Then, the photo album creation application 80 specifies image data suitable for automatic layout, which will be described later with reference to FIG. 6, from the selected image data group. Specifically, in the image data group, the image data corresponding to the condition 1 is excluded as image data not suitable for automatic layout. Note that the image data corresponding to Condition 1 is image data whose format is not compatible, image data whose size is larger than the predetermined size, image data whose size is smaller than the predetermined size, and aspect ratio that does not match the predetermined ratio. Image data. In the image data group, image data that does not correspond to condition 1 but corresponds to condition 2 is also excluded as image data that is not suitable for automatic layout. The image data corresponding to condition 2 is image data that does not include information such as Exif. The photo album creation application 80 excludes the image data corresponding to the condition 1 and the image data corresponding to the condition 2 from the image data group selected before starting the processing of FIG. 6, and uses the remaining image data. The subsequent processing of FIG. 6 is executed. That is, when the above-described processing is not executed, analysis processing or the like is executed for image data that is not suitable for automatic layout, and thus there is a possibility that efficient automatic layout processing cannot be executed. A further object of this embodiment is to execute an efficient automatic layout process.

画像変換部903は、アルバム作成条件指定部901で指定されたHDD202の画像群の各画像を、所望の画素数と色情報の解析画像に変換する(S01)。なお、本実施形態では、前述のように、短辺画素とsRGBの色情報の解析画像に変換する。   The image conversion unit 903 converts each image in the image group of the HDD 202 designated by the album creation condition designation unit 901 into an analysis image having a desired number of pixels and color information (S01). In the present embodiment, as described above, the image is converted into an analysis image of short side pixels and sRGB color information.

画像解析部904は、画像変換部903により変換された解析画像から画像特徴量を取得する(S02)。また、画像解析部904は、前述のように、HDD202から取得した各画像データに付随する、例えば、Exif等の情報から撮影日時を取得する。なお、画像特徴量としては、例えば、ピントを挙げることができ、また、ピントが合っているか否かに関しては、画像中のエッジの平均傾きを算出することで判別することができる。ここで、エッジの検出に関して一般的にソーベルフィルタを用いることが知られており、画像中のエッジの平均傾きは、ソーベルフィルタでエッジを検出して、エッジの始点と終点の輝度差を始点と終点の距離で割ることで、算出することができる。そして、画像中のエッジの平均傾きが大きい画像は、画像中のエッジの平均傾きが小さい画像よりもピントが合っているものと考えることができる。さらに、画像中のエッジの平均傾きに対して異なる値の複数の閾値を設定し、どの閾値以上かを判別することでピント量を判別することができる。本実施形態では、異なる2つの閾値を設定し、○△×の3段階でピント量を判別する。なお、アルバムに採用したいピントの傾きを○、許容できるピントの傾きを△、許容できない傾きを×とする。   The image analysis unit 904 acquires an image feature amount from the analysis image converted by the image conversion unit 903 (S02). Further, as described above, the image analysis unit 904 acquires the shooting date and time from information such as Exif attached to each image data acquired from the HDD 202. Note that examples of the image feature amount include focus, and whether or not the image is in focus can be determined by calculating an average inclination of edges in the image. Here, it is known that a Sobel filter is generally used for edge detection, and the average inclination of the edge in the image is detected by the Sobel filter and the luminance difference between the start point and the end point of the edge is detected. It can be calculated by dividing by the distance between the start point and the end point. An image having a large average inclination of edges in the image can be considered to be in focus as compared with an image having a small average inclination of edges in the image. Furthermore, it is possible to determine the focus amount by setting a plurality of threshold values having different values with respect to the average inclination of the edge in the image and determining which threshold value or more. In the present embodiment, two different threshold values are set, and the focus amount is determined in three stages of ◯ Δ ×. Note that the focus inclination to be adopted for the album is ◯, the acceptable focus inclination is Δ, and the unacceptable inclination is x.

画像解析部904は、画像特徴量の一つとして、画像変換部903により変換された解析画像から顔検出を実行する(S03)。顔の検出に関して、公知の方法を用いることができ、例えば、複数用意した弱識別器から強識別器を作成するAdaboost等が挙げられる。本実施形態では、Adaboostにより作成した強識別器により人物(オブジェクト)の顔を検出し、画像として抽出すると共に、検出した顔位置の左上座標値と右下座標値を取得する。このように、顔位置の左上座標値と右下座標値を取得するため、顔の位置と顔のサイズを知ることができる。なお、Adaboostにより作成した強識別器では、顔に限らず、犬や猫等の動物、花、食べ物、建物、置物等のオブジェクトを、顔の代わりに検出することもできる。即ち、顔以外のオブジェクトも検出することができる。   The image analysis unit 904 executes face detection from the analysis image converted by the image conversion unit 903 as one of the image feature amounts (S03). A known method can be used for face detection, for example, Adaboost that creates a strong classifier from a plurality of weak classifiers. In the present embodiment, the face of a person (object) is detected by a strong classifier created by Adaboost and extracted as an image, and the upper left coordinate value and the lower right coordinate value of the detected face position are acquired. Thus, since the upper left coordinate value and the lower right coordinate value of the face position are acquired, the face position and the face size can be known. It should be noted that the strong classifier created by Adaboost can detect not only the face but also animals such as dogs and cats, flowers, food, buildings, figurines and the like instead of the face. That is, an object other than the face can be detected.

画像解析部904は、画像変換部903により変換された解析画像から個人認識を実行する(S04)。具体的には、画像解析部904は、ステップS03で抽出した顔画像と、顔辞書データベースに個人ID毎に保存されている代表顔画像を比較することで、その類似性を評価する。そして、顔辞書データベースに個人ID毎に保存されている代表顔画像のうち、その類似性が閾値以上であって、かつ最も類似性が高い代表顔画像から、個人を認識する。なお、類似性が閾値未満の場合は、ステップS03で抽出した顔画像を新規の個人IDに関連付けて、顔辞書データベースに登録する。また、ステップS04における個人認識に関する処理は、ステップS03で抽出された顔の数に応じて実行される。   The image analysis unit 904 performs personal recognition from the analysis image converted by the image conversion unit 903 (S04). Specifically, the image analysis unit 904 compares the face image extracted in step S03 with a representative face image stored for each personal ID in the face dictionary database to evaluate the similarity. Then, among the representative face images stored for each personal ID in the face dictionary database, the individual is recognized from the representative face image having the similarity that is equal to or higher than the threshold and the highest similarity. If the similarity is less than the threshold, the face image extracted in step S03 is associated with the new personal ID and registered in the face dictionary database. Further, the process related to personal recognition in step S04 is executed according to the number of faces extracted in step S03.

ステップS02からS04で取得した画像解析情報は、図7に示すように、各画像を識別する画像ID毎に区別して記憶される。詳細には、ステップS02で取得した撮影日時に関する情報とピント量の判別結果、ステップS03で検出した顔の数と、その検出した顔の位置情報を保存する。なお、顔の位置情報は、ステップS04で取得した個人ID毎に区別して記憶される。   The image analysis information acquired in steps S02 to S04 is stored separately for each image ID for identifying each image, as shown in FIG. Specifically, the information regarding the shooting date and time acquired in step S02, the determination result of the focus amount, the number of faces detected in step S03, and the position information of the detected face are stored. The face position information is stored separately for each personal ID acquired in step S04.

自動レイアウト処理部900は、アルバム作成条件指定部901で指定されたHDD202の画像群の全画像に対して、ステップS01からS04の処理が終了したか否かを判定する(S05)。自動レイアウト処理部900は、ステップS01からS04の処理が終了していない場合(S05 No)、ステップS01に処理を返し、ステップS01からS04の処理が終了している場合(S05 Yes)、ステップS06に処理を移行する。   The automatic layout processing unit 900 determines whether or not the processing of steps S01 to S04 has been completed for all the images in the image group of the HDD 202 specified by the album creation condition specifying unit 901 (S05). The automatic layout processing unit 900 returns the process to step S01 when the process from step S01 to S04 is not finished (S05 No), and returns to step S06 when the process from step S01 to S04 is finished (S05 Yes). The process is transferred to.

ステップS06において、画像分類部905は、シーン分割を実行する(S06)。画像分類部905は、ステップS02で取得した撮影日時情報を用いることで、画像群を複数のシーンに分割する。例えば、画像間に撮影していない日が存在する場合、画像分類部905は、その画像と画像の間でシーンが変更されたものとして、分割処理を実行する。また、撮影日が連続する場合には、画像分類部905は、例えば、次のように分割処理を実行する。画像分類部905は、画像間における時間差が16時間以上空いている場合、その画像と画像の間でシーンが変更されたものとして、分割処理を実行する。画像間における時間差が16時間未満の場合、連続する各日の最初の撮影から最後の撮影までの時間差が4時間未満であれば、各日の最初の撮影から最後の撮影までの画像を同一のシーンとして分割する。連続する各日の最初の撮影から最後の撮影までの時間差が4時間以上の場合、連続する各日の撮影枚数が50枚未満なら、各日の画像群を1つのシーンとして分割する。50枚以上なら分割しない。図8(a)は、上記説明したシーン分割方法により分割した結果を示している。   In step S06, the image classification unit 905 executes scene division (S06). The image classification unit 905 divides the image group into a plurality of scenes by using the shooting date / time information acquired in step S02. For example, when there is a date that has not been shot between images, the image classification unit 905 executes the division process on the assumption that the scene has been changed between the images. In addition, when the shooting dates are consecutive, the image classification unit 905 executes the dividing process as follows, for example. If the time difference between the images is more than 16 hours, the image classification unit 905 performs the division process on the assumption that the scene has been changed between the images. When the time difference between images is less than 16 hours, if the time difference from the first shooting to the last shooting on each successive day is less than 4 hours, the images from the first shooting to the last shooting on each day are the same. Divide as a scene. When the time difference from the first shooting to the last shooting on each successive day is 4 hours or more, if the number of shots on each successive day is less than 50, the image group for each day is divided into one scene. If there are more than 50, do not divide. FIG. 8A shows the result of division by the scene division method described above.

画像分類部905は、シーン分割を実行すると、次に、シーン分類を実行する(S07)。以下、シーン(即ち、場面)として、旅行、日常、セレモニーに分類する例で、シーン分類に関する処理を説明する。なお、シーン分類に関する処理は、図9のシーン分類テーブルを用いて実行される。ここで、シーン分類テーブルについて説明する。フォトアルバム作成アプリケーション80の作成者は、フォトアルバム作成アプリケーション80を作成する事前に又はその過程で、旅行、日常、セレモニーと判定される画像をシーン画像群として収集する。そして、フォトアルバム作成アプリケーション80の作成者は、その収集した各シーン画像群について、画像特徴量を取得する。また、ここで、取得する画像特徴量とは、例えば、撮影期間、撮影枚数、撮影人数等である。撮影期間はそのシーン画像群の最初の画像の撮影日時から最後の画像の撮影日時までの時間差として、撮影枚数はシーン画像群の撮影枚数として、また、撮影人数は1画像あたりに撮影された顔の数(即ち、人数)として定義される。   After executing the scene division, the image classification unit 905 next executes scene classification (S07). Hereinafter, processing relating to scene classification will be described using an example of classifying a scene (that is, a scene) into travel, daily life, and a ceremony. Note that the processing related to scene classification is executed using the scene classification table of FIG. Here, the scene classification table will be described. The creator of the photo album creation application 80 collects images determined as travel, daily life, and ceremony as scene image groups before or during the creation of the photo album creation application 80. Then, the creator of the photo album creation application 80 acquires an image feature amount for each collected scene image group. Here, the acquired image feature amount is, for example, a shooting period, the number of shots, the number of shots, and the like. The shooting period is the time difference from the shooting date and time of the first image of the scene image group to the shooting date and time of the last image, the number of shots is the number of shots of the scene image group, and the number of shots is the number of faces shot per image Defined as the number of people (ie, the number of people).

フォトアルバム作成アプリケーション80の作成者は、さらに、各々のシーン画像群に対して、撮影期間の平均値と標準偏差値、撮影枚数の平均値と標準偏差値、1画像あたりの撮影人数の平均値と標準偏差を算出する。その算出結果を用いて図9のシーン分類テーブルが作成される。図9は、各々のシーンにおける、撮影期間の平均値と標準偏差値、撮影枚数の平均値と標準偏差値、1画像あたりの撮影人数の平均値と標準偏差値を示している。フォトアルバム作成アプリケーション80の作成者は、これらの算出した値(シーン分類テーブル)をフォトアルバム作成アプリケーション80のプログラムに予め組み込んでおく。   The creator of the photo album creation application 80 further provides, for each group of scene images, an average value and standard deviation value of the shooting period, an average value and standard deviation value of the number of shots, and an average value of the number of photographers per image. And calculate the standard deviation. The scene classification table of FIG. 9 is created using the calculation result. FIG. 9 shows the average value and standard deviation value of the shooting period, the average value and standard deviation value of the number of shots, and the average value and standard deviation value of the number of shots per image in each scene. The creator of the photo album creation application 80 incorporates these calculated values (scene classification table) in the program of the photo album creation application 80 in advance.

その状態で、ステップS01からS06までの処理が実行されると、フォトアルバム作成アプリケーション80は、分割した各シーン画像群に対して、撮影期間、撮影枚数、撮影人数の平均値を画像特徴量として算出する。フォトアルバム作成アプリケーション80は、分割した各シーン画像群の撮影期間、撮影枚数、撮影人数の画像特徴量に関して、図9の平均値及び標準偏差値(即ち、予め算出した平均値及び標準偏差値)を用いることで、以下に示す得点化を実行する。
得点=50−|10×(平均値−画像特徴量)/標準偏差値| (数式1)
平均得点=(撮影期間の得点+撮影枚数の得点+人数の得点)
/特徴量項目数 (数式2)
When the processing from step S01 to S06 is executed in this state, the photo album creation application 80 uses the average value of the shooting period, the number of shots, and the number of shots as an image feature amount for each divided scene image group. calculate. The photo album creation application 80 uses the average value and the standard deviation value (that is, the pre-calculated average value and standard deviation value) of FIG. 9 regarding the shooting period, the number of shots, and the image feature values of the number of photographers of each divided scene image group. By using, scoring shown below is executed.
Score = 50− | 10 × (average value−image feature amount) / standard deviation value | (Formula 1)
Average score = (Score for the shooting period + Score for the number of shots + Score for the number of people)
/ Number of feature items (Formula 2)

上記(数式1)及び(数式2)より、分割された各シーン画像群に関して、旅行、日常、セレモニー毎の平均得点が算出される。そして、その分割されたシーン画像群に関して、旅行、日常、セレモニーのうち、平均得点が最も高いシーンを、適合するシーンとして分類する。例えば、図8(a)において、分割されたシーン画像群(5)の画像特徴量に関して、撮影期間が36時間、撮影枚数が300枚、撮影人数が1.7人であるものとする。この場合、旅行の平均得点は45.32、日常の平均得点は18.38、セレモニーの平均得点は−29.92と計算され、分割されたシーン画像群(5)は、シーンとして旅行に分類される。また、分類されたシーン画像群は、識別が可能なようにシーンIDにより管理される。なお、平均得点が同じになる場合は、優先度の高いシーンに分類する。ここで、本実施形態では、優先度は日常>セレモニー>旅行の順であり、日常の優先度を最も高くしている。   From the above (Equation 1) and (Equation 2), the average score for each trip, daily life, and ceremony is calculated for each divided scene image group. Then, with respect to the divided scene image group, a scene having the highest average score among travel, daily life, and ceremony is classified as a suitable scene. For example, in FIG. 8A, regarding the image feature amount of the divided scene image group (5), the shooting period is 36 hours, the number of shots is 300, and the number of shots is 1.7. In this case, the average travel score is 45.32, the daily average score is 18.38, the average score for the ceremony is -29.92, and the divided scene image group (5) is classified as a trip as a scene. Is done. Further, the classified scene image group is managed by a scene ID so that it can be identified. If the average score is the same, the scene is classified into a high priority scene. Here, in this embodiment, the priority is in the order of daily life> ceremony> travel, and the daily priority is the highest.

自動レイアウト処理部900は、ステップS06で分割したシーン画像群の全てに対して、ステップS07においてシーンの分類が終了したか否かを判定する(S08)。自動レイアウト処理部900は、シーンの分類が終了していないと判定した場合(S08 No)、ステップS07に処理を返し、シーンの分類が終了していると判定した場合(S08 Yes)、ステップS09に処理を移行する。   The automatic layout processing unit 900 determines whether or not the scene classification has been completed in step S07 for all the scene image groups divided in step S06 (S08). If the automatic layout processing unit 900 determines that the scene classification has not ended (S08 No), the process returns to step S07, and if it determines that the scene classification has ended (S08 Yes), step S09. The process is transferred to.

ステップS09において、画像得点化部907は、主人公の設定に関する処理を実行する(S09)。画像得点化部907は、ステップS04における個人認識の結果及びステップS06におけるシーン分割の結果から、画像群に登場する各個人の登場回数、各シーンに登場する各個人の登場回数、各個人が登場するシーンの数等をカウントし、主人公を設定する。なお、主人公の設定には、自動設定と手動設定の2種類の設定がある。   In step S09, the image scoring unit 907 executes processing relating to the setting of the main character (S09). The image scoring unit 907 obtains the number of appearances of each individual appearing in the image group, the number of appearances of each individual appearing in each scene, and the appearance of each individual from the result of personal recognition in step S04 and the result of scene division in step S06. Count the number of scenes to be played and set the main character. There are two types of setting for the main character: automatic setting and manual setting.

自動設定では、アルバム作成条件指定部901で指定された画像群に複数のシーンがある場合には複数のシーンに登場する個人を主人公に設定し、画像群が単一シーンである場合には単一シーンにおいて登場回数が最も多い個人を主人公に設定する。また、手動設定では、ユーザにより主人公設定アイコンが指定されていることを前提とし、画像得点化部907は、主人公情報入力部906から入力された主人公の設定(即ち、個人ID)に基づいて、画像からその個人を特定し、主人公に設定する。この場合、自動設定は、無効にされる。   In the automatic setting, when there are a plurality of scenes in the image group specified by the album creation condition specifying unit 901, an individual appearing in the plurality of scenes is set as the main character, and when the image group is a single scene, The individual with the most appearances in a scene is set as the main character. Further, in the manual setting, assuming that the hero setting icon is designated by the user, the image scoring unit 907 is based on the setting of the hero (that is, the personal ID) input from the hero information input unit 906. Identify the individual from the image and set it as the main character. In this case, the automatic setting is invalidated.

画像得点化部907は、主人公を設定すると(S09)、得点化に関する処理を実行する(S10)。なお、得点化とは画像毎に評価した得点を付することであり、得点とは、後述するように、画像選択部910が画像の選択時に参照する値のことである。画像得点化部907は、得点化として、画像毎に、メインスロット用の得点とサブスロット用の得点を付する。また、ここで、図12を用いて、メインスロットとスロットについて、簡単に触れておく。   When the image scoring unit 907 sets the main character (S09), the image scoring unit 907 executes processing related to scoring (S10). Note that scoring means assigning a score evaluated for each image, and the score is a value that the image selection unit 910 refers to when selecting an image, as will be described later. The image scoring unit 907 assigns a score for the main slot and a score for the subslot for each image as scoring. Here, the main slot and the slot will be briefly described with reference to FIG.

図12は、画像のレイアウトに用いるテンプレート群を示している。テンプレート群は複数のテンプレート1601により構成され、テンプレート1601には、メインスロット1602と、サブスロット1603、1604がある。図12に示すように、メインスロット1602は、テンプレート1601においてメインとなるスロット(画像をレイアウトする枠)であり、サブスロット1603及び1604よりもサイズが大きいという特徴を有する。   FIG. 12 shows a group of templates used for image layout. The template group includes a plurality of templates 1601, and the template 1601 includes a main slot 1602 and sub slots 1603 and 1604. As shown in FIG. 12, the main slot 1602 is a main slot (frame for laying out an image) in the template 1601 and has a feature that the size is larger than the subslots 1603 and 1604.

次に、図10を用いて、画像得点化部907における得点化に関する具体的な処理を説明する。図10(a)は、旅行、日常、セレモニーの各シーンにおける、アルバムに採用する画像の特徴をメインスロットとサブスロットに分けて纏めた表である。フォトアルバム作成アプリケーション80の作成者は、図10(a)に示す、旅行、日常、セレモニーの各シーンにおけるメインスロットの画像特徴とサブスロットの画像特徴の各々に適合する、複数の画像を予め収集する。そして、フォトアルバム作成アプリケーション80の作成者は、収集した画像の各々に関して、顔の数、顔の位置、顔のサイズ等の画像特徴を集計する。フォトアルバム作成アプリケーション80の作成者は、さらに、各々のスロットにおける、顔の数、顔の位置、顔のサイズ等の画像特徴の平均値と標準偏差値を算出し、アルバム作成アプリケーションのプログラムに記憶しておく。   Next, specific processing related to scoring in the image scoring unit 907 will be described with reference to FIG. FIG. 10A is a table in which the characteristics of images used in the album in each scene of travel, daily life, and ceremony are divided into main slots and sub slots. The creator of the photo album creation application 80 collects in advance a plurality of images that match the image characteristics of the main slot and the image characteristics of the subslot in the travel, daily life, and ceremony scenes shown in FIG. To do. Then, the creator of the photo album creation application 80 totals image features such as the number of faces, the position of the face, and the size of the face for each of the collected images. The creator of the photo album creation application 80 further calculates the average value and standard deviation value of the image features such as the number of faces, the face position, and the face size in each slot, and stores them in the program of the album creation application. Keep it.

その状態で、ステップS01からS09までの処理が実行されると(即ち、ステップS09の主人公の設定処理が完了すると)、フォトアルバム作成アプリケーション80は、画像得点化部907により得点化に関する処理を実行する(S10)。なお、この得点化に関する処理の実行時において、処理対象とする画像に関して、既に、シーンが分類され、さらに主人公が設定されているものとする。画像得点化部907は、得点化の処理対象とする画像のシーンに対応する、予め算出した平均値と標準偏差値、及び得点化の処理対象とする画像における主人公の顔の数、顔位置、顔サイズ等の各特徴量に関して、以下の数式を用いて得点と平均得点を算出する。
得点=50−|10×(平均値−画像特徴量)/標準偏差| (数式3)
平均得点=(顔数の得点+顔位置の得点+顔サイズの得点)
/特徴量項目数 (数式4)
In this state, when the processing from step S01 to S09 is executed (that is, when the setting process of the main character in step S09 is completed), the photo album creation application 80 executes processing related to scoring by the image scoring unit 907. (S10). It is assumed that, at the time of execution of the processing related to scoring, scenes have already been classified and the main character has been set for the image to be processed. The image scoring unit 907 corresponds to the scene of the image to be scored, the average value and the standard deviation value calculated in advance, the number of faces of the main character in the image to be scored, the face position, For each feature quantity such as face size, a score and an average score are calculated using the following formulas.
Score = 50− | 10 × (average value−image feature amount) / standard deviation |
Average score = (Face number score + Face position score + Face size score)
/ Number of feature items (Formula 4)

図10(b)は、得点化の処理対象とする各画像に関して、(数式3)及び(数式4)により得点を算出した結果を、その一例として示すものであり、図10(b)に示すように、画像IDに関連付けて、メインスロットとサブスロットに得点が付される。例えば、図10(b)が旅行シーンの得点の算出結果とすると、画像ID2の画像がメインスロットに適した画像として特定される。なお、アルバムに用いる画像は、ピントが合っている画像の方が好ましいことから、図7に示す画像解析情報において、ピントの特徴量が○で示される画像IDの画像に対しては得点を別途、加算してもよい。   FIG. 10B shows, as an example, the result of calculating the scores according to (Equation 3) and (Equation 4) for each image to be scored, as shown in FIG. 10 (b). As described above, the main slot and the sub slot are scored in association with the image ID. For example, if FIG. 10B shows the calculation result of the travel scene score, the image with the image ID 2 is specified as an image suitable for the main slot. Note that the image used for the album is preferably an in-focus image. Therefore, in the image analysis information shown in FIG. 7, a score is separately provided for an image with an image ID whose focus feature is indicated by a circle. , May be added.

自動レイアウト処理部900は、アルバム作成条件指定部901で指定されたHDD202の画像群の全画像に対して、ステップS10の処理が終了したか否かを判定する(S11)。自動レイアウト処理部900は、ステップS10の処理が終了していない場合(S11 No)、ステップS10に処理を返し、ステップS10の処理が終了している場合(S11 Yes)、ステップS12に処理を移行する。   The automatic layout processing unit 900 determines whether or not the processing in step S10 has been completed for all the images in the image group of the HDD 202 specified by the album creation condition specifying unit 901 (S11). The automatic layout processing unit 900 returns the process to step S10 when the process of step S10 is not completed (S11 No), and shifts the process to step S12 when the process of step S10 is completed (S11 Yes). To do.

ステップS12において、見開き割当部909は、画像分類部905によりシーン分割された分割数と、見開き数入力部908から入力された見開き数が同じであるか否かを判定する。自動レイアウト処理部900は、見開き割当部909により、分割数と見開き数が同じであると判定された場合(S12 Yes)、ステップS16に処理を移行させる。具体的には、図8(a)において、分割されたシーン画像群の数は8つであり、この場合、見開き数入力部908に入力された見開き数が8つであれば、自動レイアウト処理部900は、ステップS16に処理を移行させる。また、自動レイアウト処理部900は、見開き割当部909により、分割数と見開き数が同じでないと判定された場合(S12 No)、ステップS13に処理を移行させる。   In step S <b> 12, the spread allocation unit 909 determines whether the number of scenes divided by the image classification unit 905 is the same as the number of spreads input from the spread number input unit 908. When the spread allocation unit 909 determines that the number of divisions and the number of spreads are the same (Yes in S12), the automatic layout processing unit 900 shifts the processing to step S16. Specifically, in FIG. 8A, the number of divided scene image groups is eight. In this case, if the number of spreads input to the spread number input unit 908 is eight, automatic layout processing is performed. The unit 900 shifts the process to step S16. In addition, when the spread allocation unit 909 determines that the number of divisions and the number of spreads are not the same (No in S12), the automatic layout processing unit 900 shifts the process to step S13.

ステップS13において、見開き割当部909は、画像分類部905によりシーン分割された分割数が見開き数入力部908から入力された見開き数より少ないか否かを判定する(S13)。自動レイアウト処理部900は、見開き割当部909により、分割数が見開き数より少ないと判定すると(S13 Yes)、ステップS14に処理を移行させる。具体的には、図8(a)において、分割されたシーン画像群の数は8つであり、この場合、見開き数入力部908に入力された見開き数が10であれば、自動レイアウト処理部900は、ステップS14に処理を移行させる。また、自動レイアウト処理部900は、見開き割当部909により、分割数が見開き数より多いと判定すると(S13 No)、ステップS15に処理を移行させる。   In step S <b> 13, the spread allocation unit 909 determines whether the number of scenes divided by the image classification unit 905 is smaller than the number of spreads input from the spread number input unit 908 (S <b> 13). When the automatic layout processing unit 900 determines that the number of divisions is smaller than the number of spreads by the spread allocation unit 909 (S13 Yes), the automatic layout processing unit 900 shifts the processing to step S14. Specifically, in FIG. 8A, the number of divided scene image groups is 8, and in this case, if the number of spreads input to the spread number input unit 908 is 10, the automatic layout processing unit In step 900, the process proceeds to step S14. If the automatic layout processing unit 900 determines that the number of divisions is larger than the number of spreads by the spread allocation unit 909 (No in S13), the automatic layout processing unit 900 shifts the processing to step S15.

見開き割当部909は、分割数が見開き数より少ないと判定すると(S13 Yes)、画像分類部905によりシーン分割されたシーン画像群に関して、さらに、サブシーンに分割する(S14)。即ち、見開き割当部909は、シーン分割数<見開き数の場合に、シーン分割数と見開き数が同じになるように、画像分類部905により分割されたシーン画像群に対して、細分割処理を施す。   If the spread allocation unit 909 determines that the number of divisions is smaller than the number of spreads (Yes in S13), the scene image group divided by the image classification unit 905 is further divided into sub-scenes (S14). That is, the spread allocation unit 909 performs subdivision processing on the scene image group divided by the image classification unit 905 so that the number of spreads and the number of spreads are the same when the number of scene divisions <the number of spreads. Apply.

ここで、ステップS14における、サブシーンに分割する処理を、図8を用いて例示する。なお、図8(a)に示されるように、S06の処理結果であるシーン分割数は8つであり、また、見開き数入力部908から入力された見開き数は10であるものとする。図8(b)は、図8(a)をサブシーンに分割した結果であり、破線矢印の箇所(図8(b)の(2)と(3)、(6)と(7))でサブシーンに分割したことで、シーンの分割数を10に調整している。   Here, the process of dividing into sub-scenes in step S14 is illustrated using FIG. As shown in FIG. 8A, it is assumed that the number of scene divisions as the processing result of S06 is 8, and the spread number input from the spread number input unit 908 is 10. FIG. 8 (b) shows the result of dividing FIG. 8 (a) into sub-scenes, and is indicated by broken line arrows ((2) and (3), (6) and (7) in FIG. 8 (b)). By dividing into sub-scenes, the number of scene divisions is adjusted to 10.

以下、サブシーンに分割する場合の分割の基準を示す。見開き割当部909は、先ず、図8(a)の分割されたシーン画像群のうち、シーン画像群を構成する画像枚数が多い分割箇所を探す。ここでは、分割数を8から10に増やし、見開き数と同じ数に調整するために、見開き割当部909は、画像枚数が多いシーン画像群を順に2つ選択する。図8(a)に示す例では、見開き割当部909は、画像枚数の多い順に、シーン画像群(5)、次に、画像枚数が同数であるシーン画像群(1)と(2)を選択対象とする。   In the following, the division criteria when dividing into sub-scenes are shown. First, the spread allocation unit 909 searches for a divided portion where the number of images constituting the scene image group is large among the divided scene image groups shown in FIG. Here, in order to increase the number of divisions from 8 to 10 and adjust the number to be the same as the number of spreads, the spread allocation unit 909 sequentially selects two scene image groups having a large number of images. In the example shown in FIG. 8A, the spread allocation unit 909 selects the scene image group (5) and then the scene image groups (1) and (2) having the same number of images in descending order of the number of images. set to target.

また、見開き割当部909は、シーン画像群を選択する上で、シーン画像群の画像枚数が同じである場合、シーン画像群を構成する最初の画像の撮影日時から最後の画像の撮影日時までの時間差がより大きいシーン画像群を、分割対象として選択する。即ち、図8(a)に示す例では、画像枚数が同数であるシーン画像群(1)と(2)に対して、シーン画像群を構成する最初の画像の撮影日時から最後の画像の撮影日時までの時間差がより大きいシーン画像群(2)を分割対象として選択する。   Further, when selecting the scene image group, the spread allocation unit 909, when the number of images in the scene image group is the same, from the shooting date / time of the first image constituting the scene image group to the shooting date / time of the last image. A scene image group having a larger time difference is selected as a division target. That is, in the example shown in FIG. 8A, for the scene image groups (1) and (2) having the same number of images, the last image is shot from the shooting date and time of the first image constituting the scene image group. A scene image group (2) having a larger time difference until the date and time is selected as a division target.

そして、見開き割当部909は、選択したシーン画像群(5)及び(2)に関して、細分割処理を実行する。ここで、シーン画像群(5)は、3日にかけて撮影された画像群であり、図8(a)に示すように画像枚数が3箇所に分布している。この場合、見開き割当部909は、撮影日が変わる箇所であって、さらに分割後の枚数差が小さくなるように分割処理を実行する。即ち、図8(b)の破線矢印の箇所((6)と(7)の間、シーン画像群(5)の中の2日目と3日目の間)で分割処理を実行する。また、シーン画像群(2)は、2日にかけて撮影された画像群であることから、撮影日が変わる箇所で分割するという前提に従って、見開き割当部909により図8(b)の破線矢印の箇所((2)と(3)の間)で分割される。なお、図8では撮影日が変わる箇所で分割する例を示したが、分割対象として選択されたシーン画像群を構成する画像のすべてが1日で撮影されていた場合には、シーン画像群を構成する画像のうち、撮影日時の時間差が最大となる箇所で、分割処理が実行される。   Then, the spread allocation unit 909 performs subdivision processing on the selected scene image groups (5) and (2). Here, the scene image group (5) is an image group photographed over three days, and the number of images is distributed in three places as shown in FIG. 8 (a). In this case, the spread allocation unit 909 executes the division process so that the photographing date changes and the difference in the number of sheets after the division is further reduced. That is, the dividing process is executed at the location indicated by the broken-line arrow in FIG. 8B (between (6) and (7), between the second day and the third day in the scene image group (5)). In addition, since the scene image group (2) is an image group photographed over two days, the spread allocation unit 909 performs the location indicated by the broken line arrow in FIG. (Between (2) and (3)). Although FIG. 8 shows an example in which the shooting date is changed at a place where the shooting date changes, if all of the images constituting the scene image group selected as the division target are shot in one day, the scene image group is selected. Division processing is executed at a location where the time difference between shooting dates and times becomes the maximum among the images to be configured.

また、見開き割当部909は、分割数が見開き数以上であると判定すると(S13 No)、画像分類部905によりシーン分割されたシーン画像群に関して、シーンの統合処理を実行する(S15)。ここで、ステップS15における、シーンの統合処理を、同様に図8を用いて例示する。前述のように、図8(a)において、S06の処理結果であるシーン分割数は8つであり、また、ここでは、見開き数入力部908から入力された見開き数は6であるものとする。この場合、例えば、図8(c)の破線の箇所に示されるように、シーン分割されたシーン画像群のうち、2箇所を統合する。   If the spread allocation unit 909 determines that the number of divisions is equal to or greater than the number of spreads (No in S13), the scene merging process is performed on the scene image group that is divided into scenes by the image classification unit 905 (S15). Here, the scene integration process in step S15 will be exemplified with reference to FIG. As described above, in FIG. 8A, the number of scene divisions that is the processing result of S06 is eight, and here, the number of spreads input from the spread number input unit 908 is six. . In this case, for example, as shown in a broken line portion in FIG. 8C, two portions of the scene image group obtained by scene division are integrated.

以下、シーンを統合する基準を示す。なお、ここでは、分割数を8から6に調整するため、図8(a)において、画像枚数の少ないシーン分割されたシーン画像群を2箇所、決定する。図8(a)において、シーン画像群のうち、画像枚数の少ない方から、シーン画像群(8)、(3)、(7)であり、シーン画像群(3)と(7)は、同じ画像枚数である。この場合、シーン画像群(8)は、最も画像枚数の少ないシーン画像群であることから、優先的に統合対象として決定され、また、シーン画像群(7)は、シーン画像群(8)に隣接することから、シーン画像群(8)と統合される。そのため、見開き割当部909は、2箇所目のシーン画像群として、シーン画像群(3)を統合対象として決定する。   The following is a standard for integrating scenes. Here, in order to adjust the division number from 8 to 6, in FIG. 8A, two scene image groups divided into scenes with a small number of images are determined. In FIG. 8 (a), the scene image groups (8), (3), and (7) start from the smallest number of images in the scene image group, and the scene image groups (3) and (7) are the same. The number of images. In this case, since the scene image group (8) is the scene image group having the smallest number of images, the scene image group (8) is preferentially determined as an integration target, and the scene image group (7) is changed to the scene image group (8). Since it is adjacent, it is integrated with the scene image group (8). Therefore, the spread allocation unit 909 determines the scene image group (3) as the integration target as the second scene image group.

次に、具体的なシーン画像群の統合処理について、シーン画像群(3)、シーン画像群(8)の順に説明する。シーン画像群(3)に関して、その前後のシーン画像群(2)と(4)との時間差を比較すると、シーン画像群(4)との時間差の方が小さいことから、この場合、シーン画像群(4)と統合処理を実行する。また、シーン画像群(8)に関して、画像群のうち、時間的に最後に位置するシーン画像群であることから、シーン画像群(7)と統合処理を実行する。   Next, specific scene image group integration processing will be described in the order of the scene image group (3) and the scene image group (8). When the time difference between the scene image group (2) and the scene image group (2) before and after the scene image group (3) is compared, the time difference between the scene image group (4) and the scene image group (4) is smaller. (4) and the integration process are executed. In addition, regarding the scene image group (8), since it is the scene image group positioned last in time among the image groups, the integration processing with the scene image group (7) is executed.

見開き割当部909は、シーンの分割数と見開き数が同じ数(S12)、又は同じ数に調整されると(S14、S15)、見開き割当に関する処理を実行する(S16)。なお、見開き割当に関する処理に関して、時間的に最初に位置するシーン画像群から、見開きに順に割り当てられる。   When the number of scene divisions and the number of spreads are adjusted to the same number (S12) or the same number (S14, S15), the spread allocation unit 909 executes processing related to spread allocation (S16). In addition, regarding the process related to the spread allocation, the scene image group positioned first in time is sequentially allocated to the spread.

画像選択部910は、見開きに割り当てられたシーン画像群から、見開きにレイアウトする画像を選択する(S17)。図11は、見開きに割り当てられたシーン画像群からレイアウトする画像を4枚選択する例を示す図である。図11(a)は、撮影日時に従って、見開きに割り当てられたシーン画像群の画像を示した図である。換言すると、見開きに割り当てられたシーン画像群の画像として、時間的に最初に撮像された画像から最後に撮像された画像までの時間差(分割撮影期間)を示している。   The image selection unit 910 selects an image to be laid out in a spread from the scene image group assigned to the spread (S17). FIG. 11 is a diagram illustrating an example in which four images to be laid out are selected from the scene image group assigned to spread. FIG. 11A is a diagram showing an image of a scene image group assigned to spread in accordance with the shooting date and time. In other words, the time difference (divided shooting period) from the first captured image to the last captured image is shown as an image of the scene image group assigned to spread.

図11(b)は、見開きに割り当てられたシーン画像群から、見開きにレイアウトする1枚目の画像を選択する方法を説明する図である。前述の図12で例示したように、テンプレートには、1つのメインスロットがあり、画像選択部910は、1枚目の画像として、メインスロット用の画像を選択する。画像選択部910は、図11(b)に示す分割撮影期間にある画像のうち、ステップS10で得点化したメインスロット用の得点が最も高い画像を選択する。   FIG. 11B is a diagram for explaining a method of selecting the first image to be laid out in a spread from the scene image group assigned to the spread. As illustrated in FIG. 12 described above, the template has one main slot, and the image selection unit 910 selects an image for the main slot as the first image. The image selection unit 910 selects an image having the highest score for the main slot scored in step S10 from the images in the divided shooting period shown in FIG.

画像選択部910は、2枚目の画像として、サブスロット用の画像を選択する。なお、サブスロット用の画像を選択するに際して、分割撮影期間の一時期に集中しないように、分割撮影期間を細分化する。以下、図11(c)−(f)を用いて説明する。先ず、図11(c)に示すように、分割撮影期間を2分割する。次に、図11(d)に示すように、1枚目の画像が選択されていない分割撮影期間(図中、実線)から2枚目の画像を選択する。なお、2枚目の画像を選択するに際して、実線の分割撮影期間に対応する画像のうち、サブスロット用の得点が最も高い画像を選択する。   The image selection unit 910 selects an image for a subslot as the second image. Note that when selecting an image for a subslot, the divided shooting period is subdivided so as not to concentrate on one period of the divided shooting period. Hereinafter, a description will be given with reference to FIGS. First, as shown in FIG. 11C, the divided photographing period is divided into two. Next, as shown in FIG. 11D, the second image is selected from the divided shooting period (solid line in the figure) in which the first image is not selected. Note that when selecting the second image, the image having the highest score for the subslot is selected from the images corresponding to the solid line divided shooting period.

画像選択部910は、2枚目の画像を選択すると、さらに、図11(e)に示されるように、図11(d)に示す各分割撮影期間を2分割する。そして、画像選択部910は、図11(f)に示すように、1枚目と2枚目の画像が選択されていない実線の分割撮影期間に対応する画像のうち、サブスロット用の得点が最も高い画像を3枚目の画像として選択する。   When the second image is selected, the image selection unit 910 further divides each divided shooting period shown in FIG. 11D into two as shown in FIG. Then, as shown in FIG. 11 (f), the image selection unit 910 obtains a score for the subslot among the images corresponding to the solid line divided shooting period in which the first and second images are not selected. The highest image is selected as the third image.

また、補足として、細分化した分割撮影期間に選択対象とする画像が存在しない場合の画像の選択例(ここでは、4枚目の画像の選択例)を、図11(g)−(i)を用いて説明する。上述の画像の選択規則に従うと、図11(f)までで3枚目の画像を選択した後、図11(g)の斜線に示される、画像が選択されていない分割撮影期間にある画像が、選択されて然るべきである。しかしながら、図11(g)の斜線に示される分割撮影期間に、画像が存在しないケースも考えられる。そこで、画像選択部910は、図11(h)に示すように、各分割撮影期間をさらに2分割する。次に、図11(i)に示すように、1〜3枚目が選択されていない実線の分割撮影期間に対応する画像のうち、サブスロット用の得点が最も高い画像を4枚目として選択する。   Also, as a supplement, an example of selecting an image (here, an example of selecting the fourth image) when there is no image to be selected in the segmented divided shooting period is shown in FIGS. 11 (g) to 11 (i). Will be described. According to the image selection rule described above, after the third image is selected up to FIG. 11 (f), the image in the divided shooting period in which no image is selected, as indicated by the diagonal lines in FIG. 11 (g). Should be selected. However, there may be a case in which no image exists during the divided shooting period indicated by the oblique lines in FIG. Therefore, the image selection unit 910 further divides each divided shooting period into two as shown in FIG. Next, as shown in FIG. 11 (i), the image with the highest score for the subslot is selected as the fourth image among the images corresponding to the solid divided shooting period in which the first to third images are not selected. To do.

画像レイアウト部912は、画像選択部910により画像が選択されると、画像のレイアウトを決定する(S18)。図12は、画像レイアウト部912におけるレイアウト処理を説明する図である。なお、図12では、テンプレート入力部911により、ある見開きに対して、指定のテンプレート情報に従って、テンプレート(1−1)〜(4−4)が入力された例を用いて説明する。また、入力されたテンプレート(1−1)〜(4−4)のスロット数は、3つとしている。さらに、図中、下部において、画像選択部910において選択された3枚の画像に関して、その向きが縦方向、又は横方向にあるかを撮影日時に対応させて示している。   When an image is selected by the image selection unit 910, the image layout unit 912 determines the layout of the image (S18). FIG. 12 is a diagram for explaining layout processing in the image layout unit 912. In FIG. 12, description will be made using an example in which templates (1-1) to (4-4) are input to a certain spread according to specified template information by a template input unit 911. Further, the number of slots of the input templates (1-1) to (4-4) is three. Furthermore, in the lower part of the figure, regarding the three images selected by the image selection unit 910, whether the orientation is in the vertical direction or the horizontal direction is shown corresponding to the shooting date and time.

図12に示す例では、画像1605がメインスロット用の画像であり、画像1606と画像1607がサブスロット用の画像である。なお、本実施形態では、テンプレートの左上に撮影日時のより古い画像、右下に撮影日時のより新しい画像がレイアウトされるようにする。前述のように、画像1605は、メインスロット用の画像であり、また撮影日時が時間的に最後の画像(即ち、最も新しい画像)であることから、図12の(3−1)〜(3−4)がテンプレートの候補として選択される。また、サブスロット用の画像に関して、撮影日時の古い画像が画像1606(即ち、縦画像)で、撮影日時の新しい画像が画像1607(即ち、横画像)であるため、テンプレート(3−2)がレイアウトする画像に最も適したテンプレートとして選択される。   In the example shown in FIG. 12, an image 1605 is an image for a main slot, and an image 1606 and an image 1607 are images for a subslot. In the present embodiment, an image having an older shooting date and time is laid out in the upper left of the template, and an image having a newer shooting date and time is arranged in the lower right. As described above, the image 1605 is an image for the main slot, and since the shooting date and time is the last image in time (that is, the newest image), (3-1) to (3) in FIG. -4) is selected as a template candidate. Regarding the image for the subslot, the image with the old shooting date and time is the image 1606 (that is, the vertical image), and the image with the new shooting date and time is the image 1607 (that is, the horizontal image). It is selected as the most suitable template for the image to be laid out.

このように、画像レイアウト部912は、画像選択部910により選択された画像を、そのテンプレートのどのスロットにレイアウトするかを情報として決定する。なお、図12では、スロット数が3つの場合を例示したが、スロット数が4つの場合も、同様に、スロット数が4つのテンプレートセットを用意して、スロットと画像の適合性を判定した上で、どのテンプレートにどの画像をレイアウトするかを決定すればよい。   As described above, the image layout unit 912 determines, as information, in which slot of the template the image selected by the image selection unit 910 is to be laid out. FIG. 12 illustrates the case where the number of slots is three. However, in the case where the number of slots is four, similarly, a template set with four slots is prepared, and the compatibility between the slot and the image is determined. Thus, what image should be laid out in which template should be determined.

画像補正部914は、画像補正条件入力部913から入力された画像補正条件がONである場合、画像変換部903から入力された画像に対して画像補正を実行する(S19)。画像補正部914は、画像補正として、例えば、覆い焼き補正、赤目補正、コントラスト補正等を自動で実行する。なお、画像補正部914は、短辺画素の画素数が1900画素で、sRGBの色空間に変換した画像に対して、画像補正を実行する。また、画像補正部914は、画像補正条件入力部913から入力された画像補正条件がOFFである場合、画像変換部903から入力された画像に対して画像補正を実行しない。   When the image correction condition input from the image correction condition input unit 913 is ON, the image correction unit 914 performs image correction on the image input from the image conversion unit 903 (S19). The image correction unit 914 automatically executes, for example, dodging correction, red-eye correction, contrast correction, and the like as image correction. Note that the image correction unit 914 performs image correction on an image that has 1900 short-side pixels and is converted to an sRGB color space. The image correction unit 914 does not perform image correction on the image input from the image conversion unit 903 when the image correction condition input from the image correction condition input unit 913 is OFF.

レイアウト情報出力部915は、レイアウト情報を作成する(S20)。具体的には、フォトアルバム作成アプリケーション80は、ステップS19で画像補正がされた場合にその補正された画像を、ステップS18で決定されたテンプレートの対応する各スロットにレイアウトし、ビットマップデータを生成する。このビットマップデータ等を含むレイアウト情報がS20において作成される。なお、レイアウト情報出力部915は、写真スロットのサイズ情報に合わせて、レイアウトする画像を変倍してレイアウトする。レイアウト情報に含まれるデータの別の形態として、ビットマップデータの代わりに各スロットと画像データの関連付けを示すデータがレイアウト情報に含まれても良い。自動レイアウト処理部900は、ステップS17〜ステップS20の処理が全ての見開きに対して終了したか否かを判定する(S21)。自動レイアウト処理部900は、ステップS17〜ステップS20の処理が全ての見開きに対して終了していないと判定した場合(S21 No)、ステップS17に処理を返し、終了していると判定した場合(S21 Yes)、自動レイアウト処理を終了する。   The layout information output unit 915 creates layout information (S20). Specifically, the photo album creation application 80 lays out the corrected image in each slot corresponding to the template determined in step S18 when the image correction is performed in step S19, and generates bitmap data. To do. Layout information including the bitmap data and the like is created in S20. The layout information output unit 915 resizes and lays out the image to be laid out in accordance with the size information of the photo slot. As another form of data included in the layout information, data indicating an association between each slot and image data may be included in the layout information instead of bitmap data. The automatic layout processing unit 900 determines whether or not the processing of step S17 to step S20 has been completed for all spreads (S21). When the automatic layout processing unit 900 determines that the processes in steps S17 to S20 have not been completed for all spreads (No in S21), it returns the process to step S17 and determines that it has been completed ( S21 Yes), the automatic layout process is terminated.

以上、フォトアルバム作成アプリケーション80における自動レイアウトの処理に関して説明したが、以降、図13から図21を用いて、自動レイアウトにより写真スロットに設定された写真を、別の写真に入れ替える処理に関して説明する。   The automatic layout processing in the photo album creation application 80 has been described above. Hereinafter, the processing for replacing a photo set in the photo slot by automatic layout with another photo will be described with reference to FIGS.

図13は、自動レイアウト処理により写真スロットにレイアウトされた写真を、ユーザにより事前に選択された写真のうちの1つの写真に入れ替える例を示した図である。フォトアルバム作成アプリケーション80において、図13(a)の状態から、ユーザが写真を入れ替えたい写真スロットA1を選択すると、図13(b)の状態になる。即ち、フォトアルバム作成アプリケーション80は、ユーザにより選択された写真スロットA1の枠を太く表示したり、色を変えて表示したり、強調して表示することで、写真スロットA1が選択されたことを示す。また、フォトアルバム作成アプリケーション80は、図13(b)に示すように、同時に、写真スロットA1で編集可能な処理を表示する。ここでは、図13(b)に示すように、編集可能な処理として、「写真の入れ替え1301」、「写真の編集1302」、「自動写真補正1303」、「赤目補正1304」の処理を実行するためのボタンを写真スロットA1付近に表示する。   FIG. 13 is a diagram showing an example in which a photo laid out in the photo slot by the automatic layout process is replaced with one of the photos selected in advance by the user. In the photo album creation application 80, when the user selects a photo slot A1 whose photo is to be replaced from the state shown in FIG. 13A, the state shown in FIG. That is, the photo album creation application 80 displays that the photo slot A1 is selected by displaying the frame of the photo slot A1 selected by the user thickly, changing the color, or highlighting the frame. Show. Further, as shown in FIG. 13B, the photo album creation application 80 simultaneously displays processing that can be edited in the photo slot A1. Here, as shown in FIG. 13 (b), as the processes that can be edited, the processes of “photo replacement 1301”, “photo editing 1302”, “automatic photo correction 1303”, and “red-eye correction 1304” are executed. Button is displayed near the photo slot A1.

ユーザが、「写真の入れ替え1301」を選択すると、対象の写真スロット(ここでは、写真スロットA1)の写真を手動で入れ替えることができる。また、ユーザが、「写真の編集1302」を選択すると、写真のトリミングや回転等を行うことができる。その他において、ユーザが、「自動写真補正1303」を選択すると、写真の内容に応じて自動的に補正を行うことができ、また、「赤目補正1304」を選択すると、人物の赤目を補正することができる。   When the user selects “Photo exchange 1301”, the photo in the target photo slot (here, photo slot A1) can be manually exchanged. When the user selects “photo editing 1302”, it is possible to trim or rotate the photo. In addition, when the user selects “automatic photo correction 1303”, correction can be automatically performed according to the content of the photo, and when “red eye correction 1304” is selected, the red eye of the person is corrected. Can do.

ここでは、ユーザが、写真を入れ替えることを目的として、「写真の入れ替え1301」を選択した場合を説明する。フォトアルバム作成アプリケーション80は、ユーザにより「写真の入れ替え1301」が選択されると、図13(c)に示すように、おすすめの写真ダイアログ1305を表示する。なお、図13の写真スロットA1の画像a1を入れ替え対象として選択された画像(または入れ替え対象画像)と呼ぶ。フォトアルバム作成アプリケーション80は、おすすめの写真ダイアログ1305において、対象の写真スロットA1に適したおすすめ写真を表示する。ここでは、おすすめの写真としてR1〜R4を表示している。ここで、おすすめの写真の表示方法について説明する。フォトアルバム作成アプリケーション80は、図6の自動レイアウト処理が実行される前にユーザにより選択された写真の中から、アルバムに適さない画像(例えば、解像度の低すぎる画像等)を除外する。そして、除外されなかった写真について上述した図6の処理が実行される。その後、フォトアルバム作成アプリケーション80は、おすすめの写真を表示するために、編集対象となっている見開きに対応づけられている画像群(つまり、図8の(1)〜(8)のいずれか)の中からスロットに配置されていない画像を特定する。そして特定された画像の中で得点の高い画像がおすすめの写真として表示される。なお、選択されたスロットがメインスロットであればメインスロット用に算出された得点を基準におすすめの写真が選択され、選択されたスロットがサブスロットであればサブスロット用に算出された得点を基準におすすめの写真が選択される。ユーザは、おすすめの写真ダイアログ1305の中に写真スロットA1の写真a1と入れ替えたい写真があれば、その入れ替えたい写真を選択することで、写真スロットA1の写真a1と入れ替えることができる。このおすすめの写真ダイアログ1305には、アルバムを作成する事前にユーザにより選択された写真であって、かつ、自動レイアウト処理部900により写真スロットA1に相応しい写真が提示される。即ち、おすすめの写真ダイアログ1305では、解像度の低い写真等、レイアウトに適さない画像は提示されない。   Here, a case where the user selects “Photo exchange 1301” for the purpose of exchanging pictures will be described. The photo album creation application 80 displays a recommended photo dialog 1305 as shown in FIG. 13C when the user selects “Replace photo 1301”. Note that the image a1 in the photo slot A1 in FIG. 13 is referred to as an image selected as a replacement target (or a replacement target image). The photo album creation application 80 displays a recommended photo suitable for the target photo slot A1 in the recommended photo dialog 1305. Here, R1 to R4 are displayed as recommended photos. Here, a display method of recommended photos will be described. The photo album creation application 80 excludes images that are not suitable for the album (for example, images with too low resolution) from photos selected by the user before the automatic layout process of FIG. 6 is executed. Then, the above-described processing of FIG. 6 is executed for the photos that are not excluded. After that, the photo album creation application 80 displays a recommended photo in a group of images (that is, any one of (1) to (8) in FIG. 8) associated with the spread that is the editing target. The image which is not arrange | positioned at a slot from among is identified. Then, an image with a high score among the identified images is displayed as a recommended photo. If the selected slot is a main slot, a recommended photo is selected based on the score calculated for the main slot. If the selected slot is a subslot, the score calculated for the subslot is used as a reference. Recommended photos are selected for. If the user wants to replace the photo a1 in the photo slot A1 in the recommended photo dialog 1305, the user can replace the photo a1 in the photo slot A1 by selecting the photo to be replaced. In this recommended photo dialog 1305, a photo that is selected by the user in advance of creating an album and that is suitable for the photo slot A1 is presented by the automatic layout processing unit 900. In other words, the recommended photo dialog 1305 does not present an image that is not suitable for the layout, such as a low-resolution photo.

但し、おすすめの写真ダイアログ1305を表示しても、なお、おすすめの写真ダイアログ1305に表示された写真の中に、ユーザの選択したい写真がない場合がある。その場合、ユーザは、「他の写真」ボタン1306を選択することで、図13(d)に示すように、おすすめ写真ダイアログ1305に表示された写真とは異なる写真(即ち、写真L1〜L18の18枚の写真)を表示させることができる。なお、図13(d)の中に、おすすめの写真であるR1〜R4が含まれていても良い。   However, even if the recommended photo dialog 1305 is displayed, there are cases where the photo that the user wants to select is not among the photos displayed in the recommended photo dialog 1305. In this case, the user selects a “other photo” button 1306, and as shown in FIG. 13D, the photo is different from the photo displayed in the recommended photo dialog 1305 (that is, the photos L1 to L18). 18 photos) can be displayed. Note that FIG. 13D may include recommended photos R1 to R4.

この図13(d)に示す写真に関して、アルバムを作成する事前にユーザが選択した写真の中から、自動レイアウト処理部900によりアルバムに適さない画像(例えば、解像度の低すぎる画像等)が除外されている。ユーザは、これらの写真L1〜L18の中から所望の写真を1枚選択することにより、写真スロットA1にその選択した写真を設定することができる。   With respect to the photos shown in FIG. 13D, images that are not suitable for the album (for example, images with too low resolution, etc.) are excluded from photos selected by the user in advance of creating the album by the automatic layout processing unit 900. ing. The user can set the selected photo in the photo slot A1 by selecting one desired photo from these photos L1 to L18.

なお、図13(d)において、ユーザが「Back」ボタン1307を選択すると、フォトアルバム作成アプリケーション80は、写真入れ替えに関する処理をキャンセルし、図13(a)の画面に戻す。また、フォトアルバム作成アプリケーション80は、ユーザにより「Add Photo」ボタン1308が選択されると、ユーザが事前に選択した写真以外の、任意の写真を選択できるように処理を移行させる。任意の写真を選択する処理は、図15を用いて後述する。   In FIG. 13D, when the user selects the “Back” button 1307, the photo album creation application 80 cancels the process related to the photo replacement and returns to the screen of FIG. In addition, when the user selects the “Add Photo” button 1308, the photo album creation application 80 shifts the processing so that an arbitrary photo other than the photo previously selected by the user can be selected. The process of selecting an arbitrary photo will be described later with reference to FIG.

図14は、図13(d)で表示されている写真L18を仮選択した例を示した図である。なお、ここで、仮選択とは、写真の入れ替えを確定するまでの未確定の段階の選択のことである。フォトアルバム作成アプリケーション80は、図14(a)においてユーザにより写真L18が仮選択されると、図14(b)に示すように、写真L18を拡大表示する。ユーザは、この拡大表示された写真L18を確認して、写真スロットA1に写真を入れ替えるか否かを決定する。ここで、ユーザが「Cancel」ボタン1401を選択すると、フォトアルバム作成アプリケーション80は、写真入れ替えに関する処理をキャンセルし、図14(a)の画面に戻す。また、ユーザが「OK」ボタン1402を選択すると、写真スロットA1の写真a1を写真L18に入れ替える。   FIG. 14 is a diagram showing an example in which the photograph L18 displayed in FIG. 13D is temporarily selected. Here, the provisional selection refers to selection at an undetermined stage until the replacement of photos is confirmed. When the photo L18 is temporarily selected by the user in FIG. 14A, the photo album creation application 80 enlarges and displays the photo L18 as shown in FIG. 14B. The user confirms the enlarged photo L18 and determines whether to replace the photo in the photo slot A1. Here, when the user selects the “Cancel” button 1401, the photo album creation application 80 cancels the process relating to the photo exchange and returns to the screen of FIG. When the user selects the “OK” button 1402, the photograph a1 in the photograph slot A1 is replaced with the photograph L18.

なお、図14(b)では、拡大表示した写真L18を強調して表示させ、その写真L18の背面に表示される写真L1〜L18を目立たないようにするため、写真L18の表示領域以外の領域に関して、グレーのマスク1403を掛けている。これにより、ユーザによる写真の指定を補助している。また、図14(b)において、「<」ボタン1404を選択すると写真L17が拡大表示され、「>」ボタン1405を選択すると、図14(c)に示すように、写真L19が拡大表示される。さらに、この場合、拡大表示されている写真L19の背面の表示も切り替わる。即ち、フォトアルバム作成アプリケーション80は、拡大表示させた写真に連動させて、拡大表示させた写真の表示領域以外の領域に関しても、表示内容を切り替える。具体的には、グレーのマスク1403を掛けた背面に着目すると、図14(b)では写真L19を表示していないが、図14(c)では写真L19を表示するように、表示内容を切り替えている。フォトアルバム作成アプリケーション80は、図14(c)において、ユーザにより「OK」ボタン1402が選択されると、写真スロットA1の写真a1を写真L19に入れ替える(図14(d))。なお、入れ替え対象として選択された画像の代わりに配置される画像を新規画像と呼ぶ。つまり、図14の例では、写真a1が入れ替え対象として選択された画像であり、写真L19が新規画像である。   In FIG. 14B, an area other than the display area of the photograph L18 is displayed so that the enlarged photograph L18 is highlighted and the photographs L1 to L18 displayed on the back of the photograph L18 are not conspicuous. , A gray mask 1403 is applied. This assists the user in specifying the photo. In FIG. 14B, when the “<” button 1404 is selected, the photograph L17 is enlarged and when the “>” button 1405 is selected, the photograph L19 is enlarged and displayed as shown in FIG. 14C. . Further, in this case, the display on the back side of the enlarged photograph L19 is also switched. In other words, the photo album creation application 80 switches the display contents for an area other than the display area of the enlarged photo in conjunction with the enlarged photo. Specifically, focusing on the back surface with the gray mask 1403 applied, the display contents are switched so that the photograph L19 is not displayed in FIG. 14B, but the photograph L19 is displayed in FIG. ing. When the user selects the “OK” button 1402 in FIG. 14C, the photo album creation application 80 replaces the photo a1 in the photo slot A1 with the photo L19 (FIG. 14D). An image arranged instead of the image selected as the replacement target is called a new image. That is, in the example of FIG. 14, the photograph a1 is an image selected as a replacement target, and the photograph L19 is a new image.

図15は、自動レイアウト処理により写真スロットにレイアウトされた写真を、ユーザにより事前に選択された写真以外(画像以外)の写真から選択された他の写真に入れ替える例を示した図である。図15(a)(即ち、前述の図13(d))において、ユーザが表示領域401の右上の「Add Photo」ボタン1308を選択すると、図15(b)に示すように、ファイルエクスプローラ1501が表示される。この図15(b)に示すファイルエクスプローラ1501は、OS標準のファイルエクスプローラでも、また、フォトアルバム作成アプリケーション80により独自に作成されるファイルエクスプローラでもよい。   FIG. 15 is a diagram illustrating an example in which a photo laid out in the photo slot by the automatic layout process is replaced with another photo selected from a photo other than a photo preselected by the user (other than an image). In FIG. 15A (ie, FIG. 13D described above), when the user selects the “Add Photo” button 1308 at the upper right of the display area 401, a file explorer 1501 is displayed as shown in FIG. 15B. Is displayed. The file explorer 1501 shown in FIG. 15B may be an OS standard file explorer or a file explorer created independently by the photo album creation application 80.

なお、図15に示す例では、このフォトアルバム作成アプリケーション80に対応する写真のフォーマットをJPEGのみとしているため、図15(b)のファイルエクスプローラ1501にはJPEG画像だけが表示される。また、図15(b)において、ユーザにより写真P2が仮選択されると、フォトアルバム作成アプリケーション80は、写真P2を拡大表示する(図15(c))。さらに、図15(c)において、ユーザにより「OK」ボタン1402が選択されると、フォトアルバム作成アプリケーション80は、図15(d)に示すように、対象の写真スロットA1の写真a1を写真P2に入れ替える。   In the example shown in FIG. 15, since the photo format corresponding to the photo album creation application 80 is only JPEG, only the JPEG image is displayed in the file explorer 1501 in FIG. Also, in FIG. 15B, when the photo P2 is provisionally selected by the user, the photo album creation application 80 enlarges and displays the photo P2 (FIG. 15C). Further, in FIG. 15C, when the “OK” button 1402 is selected by the user, the photo album creation application 80, as shown in FIG. 15D, displays the photo a1 in the target photo slot A1 as the photo P2. Replace with.

図16は、自動レイアウト処理により写真スロットにレイアウトされた写真を、ドラッグ&ドロップにより、他の写真に入れ替える例を示した図である。なお、ここでは、図16(b)の写真スロットA1に設定されている写真a1を別の写真に入れ替える例を示す。図16(a)は、ファイルを表示するためのファイルエクスプローラ1501を示しており、ファイルエクスプローラ1501は一般にOSに付属されている。図16(a)では、ファイルエクスプローラ1501に、JPEG画像としてP1〜P8の8枚の写真が表示されている。   FIG. 16 is a diagram showing an example in which a photo laid out in a photo slot by automatic layout processing is replaced with another photo by drag and drop. Here, an example is shown in which the photo a1 set in the photo slot A1 in FIG. 16B is replaced with another photo. FIG. 16A shows a file explorer 1501 for displaying a file, and the file explorer 1501 is generally attached to the OS. In FIG. 16A, eight photographs P1 to P8 are displayed as JPEG images on the file explorer 1501.

次に、ユーザは、図16(a)にファイルエクスプローラ1501において表示された写真P8を、図16(b)に示すように写真スロットA1にドラッグ&ドロップする。そうすると、図16(c)に示されるように、写真スロットA1の写真a1が写真P8に入れ替わる。図16に示すように、ユーザは、ドラッグ&ドロップにより、ファイルエクスプローラ1501から任意の写真を入れ替え対象として選択することができる。フォトアルバム作成アプリケーション80は、ユーザによりドラッグ&ドロップの操作がなされると、ユーザが入れ替えようとしている写真がアルバムにレイアウトする上で相応しいか写真であるか否かを判定し、相応しいと判定すると写真を入れ替える。図16に示す例では、フォトアルバム作成アプリケーション80が、写真P8に関して、アルバムにレイアウトする上で相応しい写真と判定したことから、写真スロットA1の写真をP8に入れ替えている。次に、ユーザが入れ替えようとした写真がアルバムにレイアウトする上で、解像度が低すぎる等の理由により、相応しくないと判定される場合に関して、図17を用いて説明する。   Next, the user drags and drops the photo P8 displayed in the file explorer 1501 in FIG. 16A to the photo slot A1 as shown in FIG. 16B. Then, as shown in FIG. 16C, the photo a1 in the photo slot A1 is replaced with the photo P8. As shown in FIG. 16, the user can select an arbitrary photo as a replacement target from the file explorer 1501 by drag and drop. When the user performs a drag-and-drop operation, the photo album creation application 80 determines whether or not the photo that the user is going to replace is appropriate for laying out in the album. Replace. In the example shown in FIG. 16, since the photo album creation application 80 has determined that the photo P8 is suitable for layout in the album, the photo in the photo slot A1 is replaced with P8. Next, a case where it is determined that the photograph that the user is going to replace is unsuitable due to the resolution being too low when laying out the album will be described with reference to FIG.

図17は、自動レイアウト処理により写真スロットにレイアウトされた写真を、ドラッグ&ドロップにより、他の写真に入れ替えることができない例を示した図である。図17では、図17(a)の状態から図17(b)の状態として示すように、写真P7をドラッグ&ドロップすることで、写真スロットA1の写真a1を写真P7に入れ替えようとしている。しかしながら、ユーザが入れ替えようとしている写真P7は解像度が低い画像であるために、フォトアルバム作成アプリケーション80は、図17(c)に示すようにエラー(即ち、写真スロットA1には写真P7を入れ替えることができないこと)を表示する。即ち、フォトアルバム作成アプリケーション80は、ユーザによりドラッグ&ドロップされた写真のサイズが大きすぎること、又は小さすぎることが原因で、写真を入れ替えることができないことを、エラーダイアログ1701で表示する。エラーダイアログ1701を表示する処理をエラー表示制御と呼ぶこともある。なお、この表示されたエラーダイアログ1701において、ユーザが「OK」ボタンを選択すると、このエラーダイアログ1701は閉じられて、写真スロットA1には、引き続き、写真a1が設定されたままの状態となる。また、スロットに設定可能なアスペクト比とユーザにより入替対象とされた写真のアスペクト比が異なる場合、スロットに設定可能な画像フォーマットとユーザにより入替対象とされた写真のフォーマットが異なる場合等に、エラーダイアログが表示される。   FIG. 17 is a diagram showing an example in which a photo laid out in a photo slot by automatic layout processing cannot be replaced with another photo by drag and drop. In FIG. 17, as shown in the state of FIG. 17B from the state of FIG. 17A, the photograph P7 is dragged and dropped to replace the photograph a1 in the photograph slot A1 with the photograph P7. However, since the photo P7 that the user is going to replace is an image with a low resolution, the photo album creation application 80 replaces the error (that is, the photo P7 in the photo slot A1) as shown in FIG. Is displayed). That is, the photo album creation application 80 displays an error dialog 1701 that the photos cannot be replaced because the size of the photo dragged and dropped by the user is too large or too small. The process of displaying the error dialog 1701 is sometimes called error display control. When the user selects the “OK” button in the displayed error dialog 1701, the error dialog 1701 is closed and the photo a1 is still set in the photo slot A1. Also, if the aspect ratio that can be set in the slot is different from the aspect ratio of the photo that has been replaced by the user, or if the image format that can be set in the slot is different from the format of the photo that has been replaced by the user, etc. A dialog is displayed.

図18は、自動でフォトアルバムにレイアウトされた写真に関して、写真を入れ替える処理をフローチャートとして示した図である。フォトアルバム作成アプリケーション80は、ユーザにより選択されたフォトアルバムの種類を取得する(S101)。ここで、フォトアルバムの種類とは、例えば、フォトアルバムのサイズ、ページ数、綴じ方、紙の種類等のことである。フォトアルバム作成アプリケーション80は、次に、ユーザにより選択された、アルバムに使用する写真を取得する(S102)。フォトアルバム作成アプリケーション80は、ユーザがピクチャーフォルダに写真を保存している場合において、ユーザにより選択されたピクチャーフォルダに保存されている写真を取得する。   FIG. 18 is a flowchart showing the process of replacing photos with respect to the photos automatically laid out in the photo album. The photo album creation application 80 acquires the type of photo album selected by the user (S101). Here, the type of photo album is, for example, the size of the photo album, the number of pages, the binding method, the type of paper, and the like. Next, the photo album creation application 80 acquires the photo used by the album selected by the user (S102). The photo album creation application 80 acquires the photos stored in the picture folder selected by the user when the user stores the photos in the picture folder.

そして、フォトアルバム作成アプリケーション80は、フォトアルバムの作成に関する要求を受信すると、フォトアルバムの作成を開始する(S103)。フォトアルバム作成アプリケーション80は、フォトアルバムの作成を開始すると、自動レイアウト処理部900によりステップS102で選択された写真を解析し、自動でフォトアルバムにレイアウトする。つまり、図6等を用いて説明した処理が実行される。フォトアルバム作成アプリケーション80は、レイアウトが完了すると、編集画面を表示する(S104)。   When receiving a request for creating a photo album, the photo album creating application 80 starts creating a photo album (S103). When the creation of the photo album is started, the photo album creation application 80 analyzes the photo selected in step S102 by the automatic layout processing unit 900 and automatically lays out the photo album. That is, the processing described with reference to FIG. When the layout is completed, the photo album creation application 80 displays an editing screen (S104).

ユーザは、この編集画面において、写真の入れ替え等の編集作業を行う。そして、ユーザが、ある写真スロットに設定されている写真を入れ替えようと、その写真スロットを選択すると、その選択に応じて、フォトアルバム作成アプリケーション80は、「Change Photo」ボタン1301を表示する(S105)。さらに、フォトアルバム作成アプリケーション80は、ユーザにより「Change Photo」ボタン1301が選択されると、おすすめの写真ダイアログ1305を表示する(S106)。   On this editing screen, the user performs editing operations such as replacement of photos. When the user selects a photo slot to replace a photo set in a photo slot, the photo album creation application 80 displays a “Change Photo” button 1301 in response to the selection (S105). ). Furthermore, when the user selects the “Change Photo” button 1301, the photo album creation application 80 displays a recommended photo dialog 1305 (S106).

ユーザは、おすすめの写真ダイアログ1305に、選択した写真スロットにある写真と入れ替えたい写真がない場合には、「Other Photo」ボタン1506を選択する。フォトアルバム作成アプリケーション80は、その選択に応じて、ステップS102でユーザが選択した写真の一覧を表示する(S107)。なお、S107として表示される画像は、上述した図6において選択された画像データ群から条件1に対応する画像データと条件2に対応する画像データを除外し、残った画像データと、条件2に対応する画像データである。これは、条件2に対応する画像データは、Exif等の情報を含まないため自動レイアウトには適さないが、ユーザが手動で配置する場合にはレイアウト可能であるからである。一方、条件1に対応する画像データは、ユーザが手動で配置する場合であってもレイアウトできないため(つまり、アルバムに適さないため)、S107においても非表示である。以上の処理を実行することに、結果としてアルバムに適さない条件1に対応する画像データが選択肢から除外されるため、例えば、ユーザが誤ってアルバムに適さない条件1に対応する画像データを選択することを防止できる。また、効率の良い自動レイアウト処理を実行しつつ、ユーザにおける画像データの選択操作の操作性を向上できる。   If there is no photo in the recommended photo dialog 1305 to be replaced with the photo in the selected photo slot, the user selects an “Other Photo” button 1506. In response to the selection, the photo album creation application 80 displays a list of photos selected by the user in step S102 (S107). Note that the image displayed as S107 excludes the image data corresponding to condition 1 and the image data corresponding to condition 2 from the image data group selected in FIG. Corresponding image data. This is because the image data corresponding to the condition 2 does not include information such as Exif and is not suitable for automatic layout, but can be laid out when the user manually arranges it. On the other hand, the image data corresponding to the condition 1 is not displayed even in S107 because it cannot be laid out even if the user manually places it (that is, it is not suitable for an album). By executing the above processing, as a result, image data corresponding to condition 1 that is not suitable for an album is excluded from the options. For example, the user erroneously selects image data corresponding to condition 1 that is not suitable for an album. Can be prevented. In addition, it is possible to improve the operability of the selection operation of the image data by the user while performing efficient automatic layout processing.

ユーザは、ステップS107において表示された写真の一覧に、選択した写真スロットにある写真と入れ替えたい写真があるかどうかを検討し、入れ替えたい写真がない場合には、「Add Photo」ボタン1508を選択する。フォトアルバム作成アプリケーション80は、その選択に応じて、ファイルエクスプローラ1501を表示する(S108)。そして、そのファイルエクスプローラ1501にある写真がユーザにより入れ替えたい写真として選択されると、フォトアルバム作成アプリケーション80は、後述の図19の処理を実行した上で、その選択された写真を対象スロットに設定する(S109)。即ち、フォトアルバム作成アプリケーション80は、後述の図19の処理で設定可能と判定すると、対象スロットにある写真を、ユーザにより選択された写真に入れ替える。   The user examines whether there is a photograph to be replaced with the photograph in the selected photograph slot in the list of photographs displayed in step S107. If there is no photograph to be replaced, the user selects the “Add Photo” button 1508. To do. The photo album creation application 80 displays the file explorer 1501 according to the selection (S108). Then, when a photo in the file explorer 1501 is selected by the user as a photo to be replaced, the photo album creation application 80 executes the processing of FIG. 19 described later, and sets the selected photo as a target slot. (S109). That is, when the photo album creation application 80 determines that setting is possible in the process of FIG. 19 described later, the photo album creation application 80 replaces the photo in the target slot with the photo selected by the user.

図19は、ファイルエクスプローラ1501を用いて、写真を入れ替える場合のフォトアルバム作成アプリケーション80の内部処理の流れを示したフローチャートである。フォトアルバム作成アプリケーション80は、ユーザによりファイルエクスプローラ1501において写真が選択されると、その選択に応じて、その選択された写真がフォトアルバムにレイアウトする上で相応しい写真であるか否かを判定する(S201)。フォトアルバム作成アプリケーション80は、例えば、解像度が低すぎる場合や、アスペクト比が写真スロットには合わない場合等には、その選択された写真に入れ替えず、表示領域401にエラーダイアログ1701を表示する(S202)。なお、エラーダイアログに続行ボタンを用意することも可能である。この続行ボタンが押下された場合、フォトアルバム作成アプリケーション80は、対象の写真スロットにある写真をS201においてNoと判定された写真に入れ替えても良い。   FIG. 19 is a flowchart showing the flow of internal processing of the photo album creation application 80 when the photos are exchanged using the file explorer 1501. When the user selects a photo in the file explorer 1501 by the user, the photo album creation application 80 determines whether the selected photo is suitable for laying out in the photo album (in response to the selection). S201). The photo album creation application 80 displays an error dialog 1701 in the display area 401 without replacing with the selected photo, for example, when the resolution is too low or the aspect ratio does not match the photo slot (for example). S202). It is also possible to prepare a continue button in the error dialog. When this continue button is pressed, the photo album creation application 80 may replace the photo in the target photo slot with the photo determined No in S201.

他方、フォトアルバム作成アプリケーション80は、ステップS201において選択された写真がフォトアルバムにレイアウトする上で相応しい写真であると判定すると、その選択された写真が外部メモリに保存されているか否かを判定する(S203)。ここで、外部メモリとは、例えば、USBメモリ等である。但し、外部メモリは、ユーザの所望するタイミングで接続を解除することができる。そのため、フォトアルバム作成アプリケーション80は、選択された写真が外部メモリに保存されていると判定すると(S203 Yes)、アルバム編集中に接続が解除されても問題がないように、写真をPC等のローカル環境にコピーしておく(S204)。このようにコピー(複製)しておくことで、フォトアルバムの作成中に外部メモリの接続が解除された場合であっても、アルバムの作成や編集に影響が及ばないようにする。なお、外部メモリに記憶された写真としては、必ずしもUSBメモリに記憶された写真に限定されず、SNS等のWebサイト上にアップロードされた写真等のように、本処理を実行する端末とは異なる端末に記憶された写真も、本処理の対象とすることができる。その後、選択された写真が、外部メモリに記憶された写真ではない場合、又は、外部メモリに記憶された写真である場合であって、写真がローカル環境にコピーされると、対象の写真スロットにある写真を選択された写真に入れ替える(S205)。   On the other hand, when the photo album creation application 80 determines that the photo selected in step S201 is suitable for layout in the photo album, the photo album creation application 80 determines whether the selected photo is stored in the external memory. (S203). Here, the external memory is, for example, a USB memory or the like. However, the external memory can be disconnected at a timing desired by the user. Therefore, if the photo album creation application 80 determines that the selected photo is stored in the external memory (Yes in S203), the photo album creation application 80 stores the photo on a PC or the like so that there is no problem even if the connection is canceled during album editing. Copy to the local environment (S204). By copying (duplicating) in this way, even if the connection of the external memory is canceled during the creation of the photo album, the creation or editing of the album is not affected. The photograph stored in the external memory is not necessarily limited to the photograph stored in the USB memory, and is different from a terminal that executes this processing, such as a photograph uploaded on a website such as SNS. Photos stored in the terminal can also be the target of this processing. After that, if the selected photo is not a photo stored in the external memory, or if it is a photo stored in the external memory, and the photo is copied to the local environment, it is stored in the target photo slot. A certain photo is replaced with the selected photo (S205).

図20は、写真スロットに設定する対象として、PCやメモリカード等に既に存在する写真ではなく、PCやスマートフォン、タブレット等に内蔵又は接続されているカメラで撮影した写真を対象に設定する場合を例示したものである。表示領域401において、ユーザが「Camera」ボタン2001を押すと、フォトアルバム作成アプリケーション80は、カメラを撮影するためのユーザインターフェース2002を表示する。そして、ユーザが「撮影」ボタン2003を押すと、ユーザインターフェース2002に表示されている画像が、写真として撮影される。   FIG. 20 shows a case in which a photo taken with a camera built in or connected to a PC, a smartphone, a tablet, or the like is set as a target, not a photo already existing on a PC, a memory card, or the like. This is just an example. When the user presses the “Camera” button 2001 in the display area 401, the photo album creation application 80 displays a user interface 2002 for photographing the camera. When the user presses the “shoot” button 2003, the image displayed on the user interface 2002 is taken as a photograph.

フォトアルバム作成アプリケーション80は、撮影された写真を、拡大表示する等してユーザに提示し、ユーザがその写真を選択すると、フォトアルバム作成アプリケーション80は、写真スロットの写真に設定する。図20(a)は、縦長の写真スロットが選択された後に、「Camera」ボタン2001が選択された場合のユーザインターフェースである。つまり、撮影領域として縦長の領域が表示される。一方、横長の写真スロットが選択された後に「Camera」ボタン2001が選択された場合は撮影領域として横長の領域が表示される。その他、スロットの形状に合わせてカメラを縦向きまたは横向きに配置するようにメッセージが表示されても良い。一方、図20(b)は、正方形の写真スロットが選択された後に、「Camera」ボタン2001が選択された場合のユーザインターフェースである。即ち、図20(a)と図20(b)では撮影モードが異なり、図20(a)は通常の縦長または横長の撮影モードであり、図20(b)はスクエアの撮影モードである。このように、フォトアルバム作成アプリケーション80は、対象の写真スロットの形状に応じて、カメラの撮影モードを設定する。具体例として、フォトアルバム作成アプリケーション80が、カメラを制御するカメラアプリケーションに撮影モードを指示することでカメラの撮影モードを設定することができる。   The photo album creation application 80 presents the photographed photo to the user by enlarging it or the like, and when the user selects the photo, the photo album creation application 80 sets the photo in the photo slot. FIG. 20A shows a user interface when a “Camera” button 2001 is selected after a vertically long photo slot is selected. That is, a vertically long area is displayed as the shooting area. On the other hand, when the “Camera” button 2001 is selected after the horizontally long photo slot is selected, a horizontally long region is displayed as the shooting region. In addition, a message may be displayed so that the camera is arranged vertically or horizontally according to the shape of the slot. On the other hand, FIG. 20B shows a user interface when the “Camera” button 2001 is selected after the square photo slot is selected. That is, FIG. 20 (a) and FIG. 20 (b) have different shooting modes, FIG. 20 (a) is a normal portrait or landscape shooting mode, and FIG. 20 (b) is a square shooting mode. As described above, the photo album creation application 80 sets the shooting mode of the camera according to the shape of the target photo slot. As a specific example, the photo album creation application 80 can set the shooting mode of the camera by instructing the shooting mode to the camera application that controls the camera.

図21は、写真スロットに設定する対象として、PCやメモリカード等に既に存在する写真ではなく、PC、スマートフォン、タブレットに接続されたスキャナ等の画像読み取り装置で画像を読み取り、その画像を対象にする場合を例示したものである。フォトアルバム作成アプリケーション80は、ユーザにより「Scan」ボタン2101が選択されると、画像読取装置において画像を読み取るためのユーザインターフェース2102を表示する。ユーザインターフェース2102には、「Preview」ボタン2103、「Scan」ボタン2104、プレビュー画像表示領域2105が設定される。フォトアルバム作成アプリケーション80は、ユーザにより「Preview」ボタン2103が選択されると、画像読み取り装置にプレスキャン処理を実行させることで得られた画像をプレビュー画像表示領域2105にプレビュー画像として表示する。   In FIG. 21, an image to be set in a photo slot is not a photo that already exists on a PC or a memory card, but an image is read by an image reading device such as a scanner connected to a PC, a smartphone, or a tablet. The case where it does is illustrated. When the user selects the “Scan” button 2101, the photo album creation application 80 displays a user interface 2102 for reading an image in the image reading apparatus. In the user interface 2102, a “Preview” button 2103, a “Scan” button 2104, and a preview image display area 2105 are set. When the “Preview” button 2103 is selected by the user, the photo album creation application 80 displays an image obtained by causing the image reading apparatus to execute a prescan process as a preview image in the preview image display area 2105.

フォトアルバム作成アプリケーション80は、ユーザにより、プレビュー画像表示領域2105においてスキャン対象領域2106が設定され、「Scan」ボタン2104が選択されると、スキャン対象領域2106に対してスキャン処理を実行する。図21(a)は、スキャン対象として縦長の写真スロットが選択された後に、「Scan」ボタン2101が選択された場合のユーザインターフェースである。また、図21(b)は、ユーザによりスキャン対象として正方形の写真スロットが選択された後に、「Scan」ボタン2101が選択された場合のユーザインターフェースである。即ち、図21(a)と図21(b)では、スキャン対象領域2106の矩形が異なっている。図21(a)では実際にスキャンする領域は縦長の領域であり、図21(b)では正方形の領域である。このように、フォトアルバム作成アプリケーション80は、対象の写真スロットの形状に応じて、スキャン対象領域を最適なものに合わせる。   When the user sets a scan target area 2106 in the preview image display area 2105 and selects a “Scan” button 2104, the photo album creation application 80 executes a scan process on the scan target area 2106. FIG. 21A shows a user interface when a “Scan” button 2101 is selected after a vertically long photo slot is selected as a scan target. FIG. 21B shows a user interface when the “Scan” button 2101 is selected after a square photo slot is selected as a scan target by the user. That is, in FIG. 21A and FIG. 21B, the rectangle of the scan target area 2106 is different. In FIG. 21A, the area to be actually scanned is a vertically long area, and in FIG. 21B, it is a square area. In this way, the photo album creation application 80 adjusts the scan target area to an optimum one according to the shape of the target photo slot.

なお、図21では、写真スロットの形状に応じて読取設定を変更したが、読取設定の変更は必ずしも形状に限定されず、例えば、写真スロットに適した解像度や写真スロットに設定されているエフェクト機能等に応じて読取設定を変更してもよい。したがって、例えば、大きいサイズの写真スロットの場合には、印刷品位を維持するために高い解像度の写真をセットした方がよいため、画像読取装置の解像度設定を高解像にした上で、画像を読み取るようにしてもよい。   In FIG. 21, the reading setting is changed according to the shape of the photo slot. However, the change of the reading setting is not necessarily limited to the shape. For example, the resolution suitable for the photo slot and the effect function set for the photo slot are used. The reading setting may be changed according to the above. Therefore, for example, in the case of a large-sized photo slot, it is better to set a high-resolution photo to maintain print quality. You may make it read.

また、写真スロットには、エフェクトが掛けられているものがある。例えば、グレーのエフェクトが掛けられた写真スロットに写真をセットすると、カラーの写真もグレーのエフェクトが適用されて写真スロットに設定される。このようなエフェクト機能を有する写真スロットに対して画像を設定する場合、画像読取装置でエフェクト機能の設定を掛けた上で画像を読み取ってもよい。したがって、例えば、グレーのエフェクトが掛かる写真スロットでは、グレーモードで写真を読み取るようにしてもよい。   Some photo slots have effects applied. For example, when a photo is set in a photo slot to which a gray effect is applied, a color photo is also applied to the photo slot with the gray effect applied. When setting an image for a photo slot having such an effect function, the image may be read after the effect function is set by the image reading apparatus. Therefore, for example, in a photo slot where a gray effect is applied, a photo may be read in the gray mode.

加えて、本実施形態では、画像として写真(即ち、静止画像)を一例に挙げて説明したが、例えば、動画撮影された動画像に含まれるフレーム画像を用いることもできる。フォトアルバム作成アプリケーション80は、先ず、動画データから連続するフレームを抽出し、前後のフレーム間の特徴量の差を特定し、動き量を判定する。   In addition, in the present embodiment, a photograph (that is, a still image) has been described as an example of an image. However, for example, a frame image included in a moving image captured by a moving image can be used. First, the photo album creation application 80 extracts consecutive frames from the moving image data, identifies the difference in feature amount between the preceding and succeeding frames, and determines the amount of motion.

特徴量の差の特定方法として、例えば、フォトアルバム作成アプリケーション80は、抽出した各フレームの領域を複数の領域に分割し、その分割した複数の領域に対してRGB値に関するヒストグラムを作成する。フォトアルバム作成アプリケーション80は、分割した複数の領域に対して、前後のフレーム間における、RGB値に関するヒストグラムの差分を算出し、その差分が所定の閾値より大きいと判定されたヒストグラムに対応する領域の個数を計算する。   For example, the photo album creation application 80 divides each extracted frame area into a plurality of areas, and creates a histogram relating to RGB values for the divided areas. The photo album creation application 80 calculates a histogram difference regarding the RGB values between the preceding and succeeding frames for the plurality of divided regions, and the region corresponding to the histogram for which it is determined that the difference is greater than a predetermined threshold value. Calculate the number.

そして、フォトアルバム作成アプリケーション80は、特徴量の差分が所定の閾値より大きいと判定されたヒストグラムに対応する領域の個数が閾値以上である場合、前後のフレーム間における特徴量の差が大きいと判定する。また、フォトアルバム作成アプリケーション80は、特徴量の差分が所定の閾値より大きいと判定されたヒストグラムに対応する領域の個数が閾値未満である場合、前後のフレーム間における特徴量の差が小さいと判定する。   Then, the photo album creation application 80 determines that the difference in the feature amount between the previous and subsequent frames is large when the number of regions corresponding to the histogram in which the feature amount difference is determined to be greater than the predetermined threshold value is greater than or equal to the threshold value. To do. Further, the photo album creation application 80 determines that the difference in the feature amount between the previous and subsequent frames is small when the number of regions corresponding to the histogram in which the feature amount difference is determined to be greater than the predetermined threshold value is less than the threshold value. To do.

前後のフレーム間における特徴量の差が大きいと判定した場合、それらのフレームは類似していないものと見做され、フォトアルバム作成アプリケーション80は、それらのフレームに関して、被写体の動きが多いフレーム(動き量が多いフレーム)と判定する。即ち、フォトアルバム作成アプリケーション80は、運動量が大きい撮影対象を撮影することで得られた動画データであると判定する。また、前後のフレーム間における特徴量の差が小さいと判定した場合、それらのフレームは類似しているものと見做され、フォトアルバム作成アプリケーション80は、それらのフレームは、被写体の動きが少ないフレーム(動き量が少ないフレーム)と判定する。即ち、フォトアルバム作成アプリケーション80は、運動量が小さい撮影対象を撮影することで得られた動画データであると判定する。   When it is determined that the difference in feature amount between the previous and next frames is large, the frames are considered not to be similar, and the photo album creation application 80 has a frame (motion Frame with a large amount). That is, the photo album creation application 80 determines that the moving image data is obtained by shooting a shooting target with a large amount of exercise. Also, when it is determined that the difference in feature amount between the previous and subsequent frames is small, the frames are considered to be similar, and the photo album creation application 80 determines that these frames are frames with less subject movement. It is determined that the frame has a small amount of motion. That is, the photo album creation application 80 determines that the moving image data is obtained by shooting a shooting target with a small amount of exercise.

なお、動き量の判定に関しては、フレーム間の特徴量の差分を利用する以外に、動画フォーマットで利用される動きベクトルを用いることもできる。また、上例では、フレーム間の特徴量の差分として、RGB値の差分を算出する仕様としたが、例えば、輝度値に関する差分を算出する仕様としてもよい。このようにして、1つの動画データから抽出される複数のフレームが、時系列順に、動き量に従って、動き量が多いフレーム群と動き量が少ないフレーム群とにフレーム群として分類され、管理される。   Regarding the determination of the motion amount, a motion vector used in the moving image format can be used in addition to using the feature amount difference between frames. In the above example, the specification for calculating the difference between the RGB values as the difference between the feature amounts between the frames is used. However, for example, the specification for calculating the difference regarding the luminance value may be used. In this way, a plurality of frames extracted from one moving image data are classified and managed as a frame group into a frame group with a large amount of motion and a frame group with a small amount of motion according to the amount of motion in chronological order. .

フォトアルバム作成アプリケーション80は、次に、動画データから抽出され、時系列順に管理されたフレーム群から、所定の間隔毎にフレームを抽出して解析対象とする。なお、動き量が多いと判定されたフレーム群と動き量が少ないと判定されたフレーム群において、解析対象として抽出するフレームの間隔は異なる。例えば、動き量が多いと判定されたフレーム群からは5フレーム間隔で解析対象のフレームを抽出し、動き量が少ないと判定されたフレーム群からは3フレーム間隔で解析対象のフレームを抽出する。   Next, the photo album creation application 80 extracts frames at predetermined intervals from a group of frames extracted from the moving image data and managed in chronological order, and sets the frames as analysis targets. It should be noted that the frame interval extracted as the analysis target is different between the frame group determined to have a large amount of motion and the frame group determined to have a small amount of motion. For example, frames to be analyzed are extracted at intervals of 5 frames from a frame group determined to have a large amount of motion, and frames to be analyzed are extracted at intervals of 3 frames from a group of frames determined to have a small amount of motion.

フォトアルバム作成アプリケーション80は、所定の間隔で解析対象とするフレームを抽出すると、さらに、その抽出したフレームに対して解析処理を実行する。具体的には、フォトアルバム作成アプリケーション80は、オブジェクト検出、サイズ特定、笑顔判定、目瞑り判定、ブレボケ判定、明るさ判定等の処理を実行する。ここで、オブジェクト検出とは、解析対象とするフレームから、人物の顔や動物、料理等のオブジェクトを検出する処理である。また、サイズ特定とは、オブジェクト検出によって検出されたオブジェクトのサイズを特定する処理である。また、笑顔判定とは、オブジェクト検出によって検出されたオブジェクトが人物の顔である場合、検出された人物の顔が笑顔であるか否かを判定する処理である。また、目瞑り判定とは、オブジェクト検出によって検出されたオブジェクトが人物の顔である場合、検出された人物の顔が目を瞑っているか否かを判定する処理である。また、ブレボケ判定とは、解析したフレームのブレやボケの多寡を判定する処理である。また、明るさ判定とは、解析したフレームの明るさ(平均輝度値)の多寡を判定する処理である。   When the photo album creation application 80 extracts frames to be analyzed at a predetermined interval, the photo album creation application 80 further executes analysis processing on the extracted frames. Specifically, the photo album creation application 80 executes processing such as object detection, size specification, smile determination, eye meditation determination, blur blur determination, and brightness determination. Here, the object detection is processing for detecting an object such as a human face, an animal, or a dish from a frame to be analyzed. The size specification is processing for specifying the size of the object detected by the object detection. The smile determination is a process for determining whether or not the detected human face is a smile when the object detected by the object detection is a human face. The eye meditation determination is a process for determining whether or not the detected person's face is meditating when the object detected by the object detection is a person's face. The blur blur determination is a process for determining the blur or blur of the analyzed frame. Brightness determination is processing for determining the degree of brightness (average luminance value) of the analyzed frame.

最後に、フォトアルバム作成アプリケーション80は、解析処理を実行すると、その解析処理の結果に応じて、解析したフレームに得点を付加する得点化処理を行う。具体的には、例えば、人物の顔や動物、料理等のオブジェクトを含むフレームの方が、これらのオブジェクトを含まないフレームより得点が高く付加されるように、得点化処理が行われる。また、例えば、大きいオブジェクトを含むフレームの方が、小さいオブジェクトを含むフレームより得点が高く付加されるように、得点化処理が実行されてもよい。なお、得点化の方法は、これに限定されない。したがって、例えば、動き量が多いフレームの方が、動き量が小さいフレームより得点が高く付加されるように、得点化処理が実行されてもよい。フォトアルバム作成アプリケーション80は、これらの解析処理により、動画データを構成する複数フレームから、より良いフレーム(画像)を特定することができる。そして、この動画データから特定されたフレーム(画像)を、本実施形態において用いることもできる。   Finally, when executing the analysis process, the photo album creation application 80 performs a scoring process for adding a score to the analyzed frame according to the result of the analysis process. Specifically, for example, a scoring process is performed so that a frame including objects such as a person's face, an animal, and a dish has a higher score than a frame not including these objects. Further, for example, the scoring process may be executed so that a frame including a large object is given a higher score than a frame including a small object. The scoring method is not limited to this. Therefore, for example, the scoring process may be executed so that a frame with a large amount of motion is given a higher score than a frame with a small amount of motion. The photo album creation application 80 can specify a better frame (image) from a plurality of frames constituting the moving image data by these analysis processes. And the frame (image) specified from this moving image data can also be used in this embodiment.

また、上述の実施形態では、本発明をフォトアルバムに適用した場合で説明したが、本発明は必ずしもこれに限定されない。したがって、フォトアルバム以外に、例えば、フォトブック、カレンダー等のフォトコンテンツにおいても同様に適用することができる。   In the above-described embodiment, the case where the present invention is applied to a photo album has been described. However, the present invention is not necessarily limited to this. Therefore, the present invention can be similarly applied to, for example, photo contents such as a photo book and a calendar in addition to the photo album.

加えて、上述した実施形態は、以下の処理を実行することによっても実現される。即ち、上述した実施形態の機能を実現するソフトウェア(プログラム)をネットワーク又は各種記憶媒体を介してシステム或いは装置に供給し、そのシステム或いは装置のコンピュータ(CPUやMPU等)がプログラムを読み出して実行する処理である。また、プログラムは、1つのコンピュータで実行させても、複数のコンピュータで連動させて実行させるようにしてもよい。また、上述の処理の全てをソフトウェアで実現する必要はなく、処理の一部または全部をASIC等のハードウェアで実現するようにしてもよい。また、CPUも1つのCPUで全ての処理を行うものに限らず、複数のCPUが適宜連携をしながら処理を行うものとしてもよい。   In addition, the above-described embodiment can also be realized by executing the following processing. That is, software (program) that realizes the functions of the above-described embodiments is supplied to a system or apparatus via a network or various storage media, and a computer (CPU, MPU, etc.) of the system or apparatus reads and executes the program. It is processing. The program may be executed by one computer or may be executed in conjunction with a plurality of computers. Further, it is not necessary to implement all of the above-described processing by software, and part or all of the processing may be realized by hardware such as an ASIC. Further, the CPU is not limited to the one that performs all the processing by one CPU, and a plurality of CPUs may perform the processing while appropriately cooperating.

Claims (20)

フォトコンテンツを作成する情報処理装置であって、
ユーザにより事前に選択された画像群から画像スロットに適合しない画像を除外する除外手段と、
前記除外手段により除外されずに残った画像を、前記フォトコンテンツの対応する画像スロットに自動でレイアウトする自動レイアウト処理を実行する自動レイアウト手段と、
前記自動レイアウト手段によりレイアウトされた画像から入替対象として選択された画像と入れ替える新規画像を取得する画像取得手段と、
前記自動レイアウト処理が実行された後に、前記除外手段により除外されずに残った画像から前記新規画像が取得された場合、前記入替対象として選択された画像の画像スロットに適合するか否かの判定は実行されず、前記自動レイアウト処理が実行された後に、前記ユーザにより事前に選択された画像以外の画像から前記新規画像が取得された場合、前記入替対象として選択された画像の画像スロットに適合するか否かを判定する画像判定手段と、
を備えた情報処理装置。
An information processing apparatus for creating photo content,
An exclusion means for excluding images that do not fit into the image slot from a group of images pre-selected by the user;
Automatic layout means for executing automatic layout processing for automatically laying out images remaining without being excluded by the exclusion means in corresponding image slots of the photo content;
Image acquisition means for acquiring a new image to be replaced with an image selected as a replacement target from the image laid out by the automatic layout means;
When the new image is acquired from an image that has not been excluded by the exclusion unit after the automatic layout process is executed, it is determined whether or not the image slot of the image selected as the replacement target matches. If the new image is acquired from an image other than the image previously selected by the user after the automatic layout process is executed, the image slot of the image selected as the replacement target is adapted. Image determining means for determining whether or not to perform;
An information processing apparatus comprising:
前記画像判定手段により適合すると判定されたことを条件に、前記画像取得手段により取得された前記新規画像を、前記入替対象として選択された画像の画像スロットに設定することを特徴とする請求項1に記載の情報処理装置。   2. The new image acquired by the image acquisition unit is set in an image slot of an image selected as the replacement target on condition that the image determination unit determines that the image is suitable. The information processing apparatus described in 1. 少なくとも前記ユーザにより事前に選択された画像以外の画像を表示部に表示させる表示制御手段を備え、
前記ユーザは、前記表示された画像から、前記新規画像を選択することを特徴とする請求項1又は2に記載の情報処理装置。
A display control means for displaying on the display unit an image other than at least the image preselected by the user;
The information processing apparatus according to claim 1, wherein the user selects the new image from the displayed image.
前記画像取得手段により、各種インタフェースで接続された外部記憶装置に記憶された画像から、前記新規画像が取得された場合に、
前記画像判定手段により適合すると判定されたことを条件に、前記画像取得手段により取得した画像を複製して、内部記憶手段に記憶するように制御する記憶制御手段を備えることを特徴とする請求項1乃至3のいずれか1項に記載の情報処理装置。
When the new image is acquired from the image stored in the external storage device connected by various interfaces by the image acquisition means,
The storage control means for controlling to copy the image acquired by the image acquisition means and store it in the internal storage means on condition that the image determination means determines that the image is suitable. The information processing apparatus according to any one of 1 to 3.
前記画像取得手段により、Webサイト上にアップロードされた画像から、前記新規画像が取得された場合に、
前記画像判定手段により適合すると判定されたことを条件に、前記画像取得手段により取得した画像を複製して、内部記憶手段に記憶するように制御する記憶制御手段を備えることを特徴とする請求項1乃至4のいずれか1項に記載の情報処理装置。
When the new image is acquired from the image uploaded on the website by the image acquisition means,
The storage control means for controlling to copy the image acquired by the image acquisition means and store it in the internal storage means on condition that the image determination means determines that the image is suitable. The information processing apparatus according to any one of 1 to 4.
前記画像取得手段により、各種インタフェースで接続された画像読み取り装置により読み取られた画像から、前記新規画像が取得された場合に、
前記画像判定手段により適合すると判定されたことを条件に、前記画像取得手段により取得した画像を複製して、内部記憶手段に記憶するように制御する記憶制御手段を備えることを特徴とする請求項1乃至5のいずれか1項に記載の情報処理装置。
When the new image is acquired from the image read by the image reading device connected by various interfaces by the image acquisition means,
The storage control means for controlling to copy the image acquired by the image acquisition means and store it in the internal storage means on condition that the image determination means determines that the image is suitable. The information processing apparatus according to any one of 1 to 5.
前記入替対象として選択された画像の画像スロットの形状に応じて、前記画像読み取り装置における読取設定を調整するように制御する制御手段を備えることを特徴とする請求項6に記載の情報処理装置。   The information processing apparatus according to claim 6, further comprising a control unit that controls to adjust a reading setting in the image reading apparatus according to a shape of an image slot of the image selected as the replacement target. 前記入替対象として選択された画像の画像スロットに設定されたエフェクト機能に応じて、前記画像読み取り装置における読取設定を調整するように制御する制御手段を備えることを特徴とする請求項6に記載の情報処理装置。   The control unit according to claim 6, further comprising: a control unit configured to perform control so as to adjust a reading setting in the image reading device in accordance with an effect function set in an image slot of the image selected as the replacement target. Information processing device. 前記画像取得手段により、各種インタフェースで接続された撮像装置により撮像された画像から、前記新規画像が取得された場合に、
前記画像判定手段により適合すると判定されたことを条件に、前記画像取得手段により取得した画像を複製して、内部記憶手段に記憶するように制御する記憶制御手段を備えることを特徴とする請求項1乃至8のいずれか1項に記載の情報処理装置。
When the new image is acquired from an image captured by an image capturing device connected by various interfaces by the image acquisition unit,
The storage control means for controlling to copy the image acquired by the image acquisition means and store it in the internal storage means on condition that the image determination means determines that the image is suitable. The information processing apparatus according to any one of 1 to 8.
前記入替対象として選択された画像の画像スロットの形状に応じて、前記撮像装置における撮影モードを調整するように制御する制御手段を備えることを特徴とする請求項9に記載の情報処理装置。   The information processing apparatus according to claim 9, further comprising a control unit that controls to adjust a shooting mode in the imaging apparatus according to a shape of an image slot of an image selected as the replacement target. 前記画像判定手段により適合しないと判定されたことを条件に、エラーダイアログを表示部に表示させるエラー表示制御手段を更に備えることを特徴とする請求項1乃至10のいずれか1項に記載の情報処理装置。   11. The information according to claim 1, further comprising an error display control unit configured to display an error dialog on a display unit on a condition that the image determination unit determines that the image does not match. 11. Processing equipment. 前記画像判定手段は、前記画像取得手段により取得された画像のサイズが、前記入替対象として選択された画像の画像スロットに設定可能なサイズよりも大きい、又は小さい場合に、適合しないと判定することを特徴とする請求項1乃至11のいずれか1項に記載の情報処理装置。   The image determination unit determines that the image is not suitable when the size of the image acquired by the image acquisition unit is larger or smaller than a size that can be set in an image slot of the image selected as the replacement target. The information processing apparatus according to claim 1, wherein: 前記画像判定手段は、前記画像取得手段により取得された画像のアスペクト比が、前記入替対象として選択された画像の画像スロットに設定可能なアスペクト比ではない場合に、適合しないと判定することを特徴とする請求項1乃至12のいずれか1項に記載の情報処理装置。   The image determination means determines that the image acquired by the image acquisition means is not suitable when the aspect ratio of the image selected as the replacement target is not an aspect ratio that can be set in the image slot. The information processing apparatus according to any one of claims 1 to 12. 前記画像判定手段は、前記画像取得手段により取得された画像の画像フォーマットが、前記入替対象として選択された画像の画像スロットに設定可能な画像フォーマットではない場合に、適合しないと判定することを特徴とする請求項1乃至13のいずれか1項に記載の情報処理装置。   The image determining unit determines that the image format of the image acquired by the image acquiring unit is not compatible when the image format is not settable in the image slot of the image selected as the replacement target. The information processing apparatus according to any one of claims 1 to 13. 前記自動レイアウト手段は、前記ユーザにより事前に選択された画像が動画像である場合に、前記動画像から抽出された所定のフレームを、前記フォトコンテンツの対応する画像スロットに自動でレイアウトすることを特徴とする請求項1乃至14のいずれか1項に記載の情報処理装置。   The automatic layout means automatically lays out a predetermined frame extracted from the moving image in a corresponding image slot of the photo content when the image selected in advance by the user is a moving image. The information processing apparatus according to any one of claims 1 to 14, wherein the information processing apparatus is characterized in that: 前記表示制御手段は、前記新規画像の選択を補助するために、前記ユーザにより仮選択された画像を強調して前記表示部に表示させることを特徴とする請求項3に記載の情報処理装置。   The information processing apparatus according to claim 3, wherein the display control unit emphasizes and displays the temporarily selected image on the display unit in order to assist selection of the new image. 前記表示制御手段は、前記仮選択された画像を拡大して前記表示部に表示させ、前記表示制御手段の表示領域における、前記仮選択された画像以外の表示領域をマスクして前記表示部に表示させることを特徴とする請求項16に記載の情報処理装置。   The display control means enlarges the temporarily selected image to be displayed on the display unit, masks a display area other than the temporarily selected image in the display area of the display control means, and displays it on the display unit. The information processing apparatus according to claim 16, wherein the information processing apparatus is displayed. 前記表示制御手段は、前記仮選択された画像以外の表示領域において、前記仮選択された画像に連動させて、表示内容を変更することを特徴とする請求項17に記載の情報処理装置。   The information processing apparatus according to claim 17, wherein the display control unit changes display contents in conjunction with the temporarily selected image in a display area other than the temporarily selected image. フォトコンテンツを作成する情報処理装置における情報処理方法であって、
自動レイアウト手段により、ユーザにより事前に選択された画像を、前記フォトコンテンツの対応する画像スロットに自動でレイアウトする自動レイアウトステップと、
画像取得手段により、前記自動レイアウトステップにおいてレイアウトされた画像から入替対象として選択された画像と入れ替える画像を取得する画像取得ステップであって、前記入れ替える画像は前記ユーザにより事前に選択された画像以外の画像からも取得される、画像取得ステップと、
画像判定手段により、前記画像取得ステップにおいて取得された画像が、前記入替対象として選択された画像の画像スロットに適合するか否かを判定する画像判定ステップと、
を備えた情報処理装置における情報処理方法。
An information processing method in an information processing apparatus for creating photo content,
An automatic layout step of automatically laying out an image preselected by the user in an image slot corresponding to the photo content by automatic layout means;
An image acquisition step of acquiring an image to be replaced with an image selected as a replacement target from the images laid out in the automatic layout step by the image acquisition means, wherein the image to be replaced is other than the image selected in advance by the user; An image acquisition step, which is also acquired from an image;
An image determination step for determining whether or not the image acquired in the image acquisition step matches the image slot of the image selected as the replacement target by the image determination means;
An information processing method in an information processing apparatus comprising:
コンピュータを、請求項1から18のいずれか1項に記載の情報処理装置の各手段として機能させるためのプログラム。   The program for functioning a computer as each means of the information processing apparatus of any one of Claims 1-18.
JP2017016192A 2017-01-31 2017-01-31 Information processing equipment and programs Active JP6765978B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP2017016192A JP6765978B2 (en) 2017-01-31 2017-01-31 Information processing equipment and programs

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP2017016192A JP6765978B2 (en) 2017-01-31 2017-01-31 Information processing equipment and programs

Publications (2)

Publication Number Publication Date
JP2018124776A true JP2018124776A (en) 2018-08-09
JP6765978B2 JP6765978B2 (en) 2020-10-07

Family

ID=63111590

Family Applications (1)

Application Number Title Priority Date Filing Date
JP2017016192A Active JP6765978B2 (en) 2017-01-31 2017-01-31 Information processing equipment and programs

Country Status (1)

Country Link
JP (1) JP6765978B2 (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020036237A (en) * 2018-08-30 2020-03-05 キヤノン株式会社 Information processing system, information processing apparatus, program, and information processing method
WO2021182579A1 (en) * 2020-03-13 2021-09-16 株式会社バリューブリッジ Submitted data re-editing apparatus and method, and storage medium
US11240384B2 (en) 2019-08-08 2022-02-01 Canon Kabushiki Kaisha Information processing apparatus, method for information processing, and storage medium

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033453A (en) * 2011-06-28 2013-02-14 Fujifilm Corp Image processor, image processing method, and image processing program

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2013033453A (en) * 2011-06-28 2013-02-14 Fujifilm Corp Image processor, image processing method, and image processing program

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2020036237A (en) * 2018-08-30 2020-03-05 キヤノン株式会社 Information processing system, information processing apparatus, program, and information processing method
JP7207908B2 (en) 2018-08-30 2023-01-18 キヤノン株式会社 Information processing system, information processing device, program, and information processing method
US11240384B2 (en) 2019-08-08 2022-02-01 Canon Kabushiki Kaisha Information processing apparatus, method for information processing, and storage medium
WO2021182579A1 (en) * 2020-03-13 2021-09-16 株式会社バリューブリッジ Submitted data re-editing apparatus and method, and storage medium
JP2021145293A (en) * 2020-03-13 2021-09-24 株式会社バリューブリッジ Submitted data re-editing apparatus, method, and program

Also Published As

Publication number Publication date
JP6765978B2 (en) 2020-10-07

Similar Documents

Publication Publication Date Title
JP6938422B2 (en) Image processing equipment, image processing methods, and programs
JP6902886B2 (en) Image processing equipment, methods and programs
JP7224774B2 (en) Image processing device, image processing method, and program
JP6711937B2 (en) Image processing device, image processing method, and program
US10545656B2 (en) Information processing apparatus and display controlling method for displaying an item in a display area in response to movement
JP6422409B2 (en) Display control apparatus, display control method, and program
US10977845B2 (en) Image processing apparatus and control method
JP7286393B2 (en) Image processing device, image processing method, and program
US20180217743A1 (en) Image processing apparatus, control method, and computer readable medium
US20140009796A1 (en) Information processing apparatus and control method thereof
JP6681192B2 (en) Image processing apparatus, image processing method, and computer program
JP2019067260A (en) Information processing apparatus, display control method, and program
JP6723938B2 (en) Information processing apparatus, display control method, and program
JP7336211B2 (en) Image processing device, control method, and program
JP6765978B2 (en) Information processing equipment and programs
JP7336209B2 (en) Image processing device, control method, and program
JP7027101B2 (en) Information processing equipment, control methods, and programs
JP2019003326A (en) Information processor, control method and program
JP7451242B2 (en) Image processing device, image processing method, and program
JP6647039B2 (en) Image processing apparatus, image processing method, and computer program
JP2021149196A (en) Image processing apparatus, image processing method, and program
JP6742486B2 (en) Program, image processing method
JP7446876B2 (en) Program, image processing method, and image processing device
JP7336212B2 (en) Image processing device, control method, and program
JP6797871B2 (en) program

Legal Events

Date Code Title Description
A621 Written request for application examination

Free format text: JAPANESE INTERMEDIATE CODE: A621

Effective date: 20190312

A977 Report on retrieval

Free format text: JAPANESE INTERMEDIATE CODE: A971007

Effective date: 20200423

A131 Notification of reasons for refusal

Free format text: JAPANESE INTERMEDIATE CODE: A131

Effective date: 20200602

A521 Request for written amendment filed

Free format text: JAPANESE INTERMEDIATE CODE: A523

Effective date: 20200730

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

A61 First payment of annual fees (during grant procedure)

Free format text: JAPANESE INTERMEDIATE CODE: A61

Effective date: 20200916

R151 Written notification of patent or utility model registration

Ref document number: 6765978

Country of ref document: JP

Free format text: JAPANESE INTERMEDIATE CODE: R151