Image processing device, control method and program

The image processing device enhances aesthetic quality in layout images by evaluating and selecting templates based on their features, addressing the issue of low-quality output in conventional systems.

JP7541816B2Active Publication Date: 2024-08-29CANON KK
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
JP2019146637
Authority / Receiving Office
JP · JP
Patent Type
Patents
Current Assignee / Owner
Filing Date
2019-08-08
Publication Date
2024-08-29
Estimated Expiration
2039-08-08

AI Technical Summary

Technical Problem

Conventional image processing systems fail to evaluate templates effectively, leading to the output of layout images with low aesthetic quality.

Method used

An image processing device and method that identifies image data, evaluates multiple templates based on features such as slot and margin areas, and generates layout images using a suitable template to enhance aesthetic quality.

Benefits of technology

The system outputs layout images using highly aesthetic templates by evaluating and selecting templates based on their features, improving the overall visual appeal of the generated images.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 0007541816000006
    Figure 0007541816000006
  • Figure 0007541816000012
    Figure 0007541816000012
  • Figure 0007541816000004
    Figure 0007541816000004
Patent Text Reader

Abstract

To provide a program that outputs a layout image using a highly aesthetic template.SOLUTION: A program causes a computer of an image processing device to execute a first identification step of identifying one or more pieces of image data, an evaluation step of evaluating a plurality of templates, a generation step of generating a plurality of layout images by arranging the identified one or more pieces of image data in one or more slots respectively included in the plurality of templates, a second identification step of identifying at least one layout image of the plurality of layout images on the basis of at least the evaluation of the plurality of templates, and an output step of outputting at least one identified layout image.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present invention relates to an image processing apparatus, a control method, and a program. [Background technology]

[0002] A technique is known in which a layout image is generated by arranging image data on a template. [Prior art documents] [Patent documents]

[0003] [Patent Document 1] Patent Publication No. 2017-117406 Summary of the Invention [Problem to be solved by the invention]

[0004] Conventionally, however, there has been a problem in that a layout image using a template with low aesthetic appeal may be output because the template used to generate the layout image has not been evaluated.

[0005] Therefore, an object of the present invention is to output a layout image using a highly aesthetic template. [Means for solving the problem]

[0006] In order to solve the above problems, the program of the present invention comprises: The computer of the image processing device a first identification step of identifying one or more image data; an evaluation step for evaluating a plurality of templates; a generating step of generating a plurality of layout images by arranging the identified one or more image data in one or more slots of each of the plurality of templates; a second identifying step of identifying at least one layout image of the plurality of layout images based at least on evaluation of the plurality of templates; an output step of outputting the at least one layout image identified; Run 、 The evaluation of the plurality of templates is performed based on at least one of a feature related to a slot included in each template, a feature related to a blank area that is an area other than the slots in each template, and a feature related to a margin between each of the slots included in each template; The evaluation of the plurality of templates is performed based at least on at least one of a position of the blank area and a distance between the margins. It is characterized by

[0007] The program of the present invention is a program for executing the following on a computer of an image processing device: a first identification step of identifying one or more image data; an evaluation step for evaluating a plurality of templates; a template identification step of identifying one or more templates from the plurality of templates based on an evaluation of the plurality of templates; a generating step of generating one or more layout images by arranging the identified one or more image data in one or more slots included in each of the one or more templates identified based on the evaluation of the plurality of templates; an output step of outputting at least one layout image from the one or more generated layout images; The present invention is characterized in that the above-mentioned is executed. Effect of the Invention

[0008] According to the present invention, it is an object to output a layout image using a highly aesthetic template. [Brief description of the drawings]

[0009] [Figure 1] FIG. 1 illustrates a printing system. [Diagram 2] FIG. 2 is a block diagram illustrating a hardware configuration of the image processing device. [Diagram 3]FIG. 11 is a diagram showing an example of an input screen provided by an album creating application. [Figure 4] 13 is a flowchart showing an automatic layout process executed by an album creating application. [Diagram 5] FIG. 13 is a diagram showing an example of an editing screen provided by an album creating application. [Figure 6] 13 is a flowchart showing a template generation process executed by an album creation application. [Figure 7] 13 is a flowchart showing a process for generating a template L or a template R, which is executed by an album creating application. [Figure 8] 13 is a flowchart showing a process of generating a template in vertical arrangement and horizontal arrangement, which is executed by the album creating application. [Figure 9] FIG. 13 is a diagram for explaining a method of arranging slots. [Figure 10] 13 is an example of a generated double-page spread template. [Figure 11] 13 is a flowchart showing a slot adjustment process executed by an album creating application. [Figure 12] FIG. 13 is a diagram for explaining slot adjustment. [Figure 13] FIG. 13 is a diagram for explaining template types. [Figure 14] FIG. 13 is a diagram for explaining scoring of a template. [Figure 15] FIG. 13 is a diagram for explaining scoring of a template. [Figure 16] FIG. 13 is a diagram for explaining a method of arranging image data. [Figure 17] FIG. 13 is a diagram for explaining scoring of a layout image. [Figure 18] 13 is a flowchart showing an automatic layout process during editing, which is executed by an album creating application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Note that the following embodiments do not limit the scope of the present invention, and not all of the combinations of features described in the embodiments are necessarily essential to the solution of the present invention.

[0011] In the following embodiment, a procedure for running an application program for creating an album (hereinafter also referred to as an "album creating application") on an image processing device and generating an automatic layout will be described. Unless otherwise specified, the images described below include still images, videos, frame images within videos, and still images, videos, and frame images within videos on a SNS (social networking service) server.

[0012] (First embodiment) 1 is a diagram showing a printing system according to the present embodiment, which includes an image processing apparatus 100, an image forming apparatus 200, a network 300, an external server 400, and an image forming apparatus 500.

[0013] The image processing device 100 is a device that generates album data by an album creation application. In this embodiment, the album data is data for ordering and producing an album, and is data that is composed of multiple pieces of layout information. The layout information is information for printing layout images that are arranged and printed on a double-page spread included in the album. In this embodiment, the album data and layout information can be automatically generated by the album creation application through automatic layout processing described later. Note that the image processing device 100 is, for example, a PC (personal computer), a smartphone, a tablet terminal, a camera, a printer, etc., and is a PC in this embodiment.

[0014] The image forming apparatus 200 executes an image forming process (printing process) for forming an image on a recording medium with a recording agent based on a print job received from the image processing apparatus 100 or the like. Note that in this embodiment, a form in which the image processing apparatus 100 transmits (outputs) the generated layout information to an external server will be described, but for example, the image processing apparatus 100 may transmit the generated layout information to the image forming apparatus 200 as a print job. In this case, an album based on the layout information is created by the image forming apparatus 200. Note that the printing method used by the image forming apparatus 200 is not particularly limited, and may be, for example, an inkjet method, an electrophotographic method, a thermal dye sublimation method, or the like.

[0015] The network 300 is a communication network that connects the image processing device 100 and the external server 400 and transmits information between them. The network 300 may be a wired network or a wireless network.

[0016] The external server 400 receives layout information (described later) from the image processing device 100 via the network 300. In other words, the external server 400 is a server that handles order receipt and management of albums. When a user operating the image processing device 100 performs an album purchase / order procedure, the external server 400 causes the image forming device 500 to create an album based on the received layout information through image formation processing. Thereafter, the album created by the image forming device 500 is delivered to the user who performed the album purchase procedure.

[0017] Fig. 2 is a block diagram for explaining the hardware configuration of an image processing device 100 according to the present invention. In Fig. 2, the image processing device 100 includes a CPU 101, a ROM 102, a RAM 103, a HDD 104, a display 105, a keyboard 106, a mouse 107, and a data communication unit 108. These are connected to each other via a data bus 109. The CPU 101, the ROM 102, the RAM 103, etc. form a computer of the image processing device 100.

[0018] The CPU (Central Processing Unit / Processor) 101 is a system control unit, and controls the entire image processing device 100. The CPU 101 also executes the image processing method described in this embodiment according to a program. Note that, although the figure shows one CPU, the present invention is not limited to this and multiple CPUs may be provided.

[0019] The ROM 102 stores programs executed by the CPU 101 and an OS (operating system). The RAM 103 provides a memory for temporarily storing various information when the CPU 101 executes the programs. The HDD (hard disk) 104 is a storage medium for storing a database that holds image files and processing results such as image analysis. In this embodiment, the RAM 103 stores an album creation application, which will be described later.

[0020] The display 105 (display unit) is a device that presents the UI (user interface) of this embodiment and the layout results of images to the user. The display 105 may have a touch sensor function. The keyboard 106 is one of the input devices, and is used, for example, to input predetermined information on the UI displayed on the display 105. The predetermined information is, for example, information such as the number of spreads and the number of pages of the album to be created. The mouse 107 is one of the input devices, and is used, for example, to click a button on the UI displayed on the display 105. Note that, for example, when the user double-clicks an icon corresponding to the album creation application displayed on the display 105 by operating the mouse 107, the album creation application is started.

[0021] The data communication unit 108 (communication unit) is a device for communicating with an external device such as a printer or a server. For example, data created by an album creation application is transmitted to a printer or a server (not shown) connected to the image processing device 100 via the data communication unit 108. The data communication unit 108 also receives still image data on a server (not shown) or an SNS (social networking service) server. In this embodiment, the data communication unit 108 receives still image data from the SNS server, but may also receive video data.

[0022] The data bus 109 connects the above-mentioned units (102 to 108) to the CPU 101.

[0023] <Automatic album layout> When the album creation application of this embodiment is installed in the image processing device 100, a startup icon for this application is displayed on the top screen (desktop) of the OS running on the image processing device 100. When the user double-clicks the startup icon on the desktop displayed on the display 105 with the mouse 107, the album creation application saved in the HDD 104 is loaded into the RAM 103. Then, the program loaded into the RAM 103 is executed by the CPU 101, and the album creation application is started up.

[0024] In this embodiment, the album creation application executes an automatic layout process, which is a process of automatically specifying a template and arranging an image in the template to generate a layout image. Note that by generating a layout image, layout information for outputting (displaying and printing) the layout image is also generated. Therefore, the automatic layout process is also a process of automatically generating layout information. However, in the past, an automatically specified template was previously stored in the album creation application, and the shape, size, and position of the slot were previously determined, so there was a problem that it may not be suitable for the image data to be placed. Specifically, for example, the aspect ratio of the image data to be placed and the aspect ratio of the slot in the template are significantly different, and there was a problem that the aesthetics of the image data after placement may be reduced. Therefore, in this embodiment, a process of generating a template suitable for the image data to be placed is executed.

[0025] Conventionally, in automatic layout, multiple pieces of layout information are generated and evaluated, and the layout information to be actually used is determined based on the evaluation. Conventionally, however, the evaluation of the layout information does not take into consideration the evaluation of the templates used in the layout information. Therefore, in this embodiment, the evaluation of the templates used in the layout information is performed. Then, when selecting the layout information to be actually used, the evaluation of the templates used in the layout information is referred to.

[0026] <Album creation app screen> 3 is a diagram showing an example of an input screen 301 provided by the activated album creation application. The input screen 301 is displayed on the display 105. When the user sets the conditions for creating an album (described later) via the input screen 301, the album creation application acquires the setting contents designated by the user.

[0027] A path box 302 on an input screen 301 indicates a storage location (path) in HDD 104 of the image data group for which an album is to be created. A folder selection button 303, when clicked by the user using the mouse 107, displays a folder containing the image data group for which an album is to be created in a tree structure so that the user can select it. Then, the folder path containing the image data group selected by the user is displayed in path box 302. Note that, although a form in which the image data for which an album is to be created is specified by specifying a folder in which the image data is stored has been described here, the present invention is not limited to this form. A configuration in which the user can select which image data from the image data in the folder is to be used for creating an album may also be used.

[0028] The number of spreads box 304 accepts the number of spreads in the album from the user. The user directly inputs a number into the number of spreads box 304 via the keyboard 106, or inputs a number into the number of spreads box from a list using the mouse 107. A spread is an area of ​​two pages facing each other in an album. Here, the number of spreads in the album on which a layout image, which is an image in which an image is arranged on a template, will be printed (i.e., the number of spreads included in the body) is input.

[0029] The product designation box 305 accepts the setting of the product to be used in the album created by the album data. Specifically, the setting of the product is the size of the album, the paper type of the album cover, the paper type of the pages other than the album cover, etc. Also, for example, it may be possible to set the binding method of the album created by the album data.

[0030] The creation method specification box 306 accepts the setting of the method for creating album data. In this embodiment, the method for creating album data includes automatic creation and manual creation. Details of each method will be described below.

[0031] The OK button 307 is a button for starting the generation of album data based on the information input on the input screen 301 .

[0032] The reset button 308 is a button for resetting each setting information on the input screen 301 .

[0033] In addition, on the input screen 301, settings other than the above-mentioned settings may be executable. For example, settings related to video and settings of the acquisition destination of image / video data may be executable. Also, for example, the setting of the main character of the album may be executable. When the main character is set, the album is controlled so that more images in which the person set as the main character appears are included. Also, for example, the setting of the album mode may be executable. The album mode is a mode for prioritizing images including a predetermined object and laying them out in a template, and more objects corresponding to each mode are arranged in the album of each mode. The mode set at this time is, for example, a mode such as "people", "animals", and "cooking". Also, the screen shown in FIG. 3 may include, for example, an area showing a completed image of the album represented by layout information generated by the inputted settings.

[0034] In this embodiment, when automatic creation is selected as the method for creating album data, the album creation application automatically creates album data according to the conditions entered on input screen 301, and then displays an editing screen for the automatically created album data. On the other hand, when manual creation is selected as the method for creating album data, an editing screen for album data in which no image data is placed is displayed, and image data is placed in the album data upon receiving a user's selection on the editing screen.

[0035] 5 is a diagram showing an example of an editing screen 501 provided by the album creating application. The editing screen 501 has a two-page spread list 502, a two-page spread display section 503, an image list 504, an order button 505, and a candidate display area 506.

[0036] A list of spreads that are candidates for selection is displayed in the spread list 502. The user can select one of the spreads included in the spread list 502 by clicking the mouse 107.

[0037] The spread display portion 503 displays a spread selected from the spread list 502. When the automatic layout process is completed and a layout image corresponding to the selected spread is generated, the spread display portion 503 displays the layout image.

[0038] Note that the two-page spread list 502 and the two-page spread display section 503 are not limited to a form that displays a two-page spread, and may be a form that displays an area for one page, for example. Also, the two-page spread list 502 and the two-page spread display section 503 may switch between a state that displays a two-page spread and a state that displays a page. In this case, for example, the two-page spread list 502 and the two-page spread display section 503 display the front cover and the back cover in a state that displays one page, and display the main body in a state that displays one two-page spread.

[0039] In the image list 504, a list of thumbnail images of image data (image data selected by the user) corresponding to the path specified in the path box 302 is displayed. Image data corresponding to a thumbnail image selected from the image list 504 is arranged in the two-page spread displayed in the two-page spread display section 503. That is, the user can specify image data to be arranged in the two-page spread displayed in the two-page spread display section 503 by clicking any one of the thumbnail images included in the image list 504 with the mouse 107. At this time, the user may select multiple thumbnail images. Also, thumbnail images of image data other than the image data selected by the user through the path box 302 may be added to the image list 504. For example, image data is newly added to the image list 504 by dragging and dropping image data from any folder to the image list 504. When image data is added to the image list 504, the added image data is analyzed as described in S403 below.

[0040] The order button 505 is a button for ordering an album based on the generated album data. When the order button 505 is pressed, the user executes a predetermined ordering procedure, and then the album data is transmitted to the external server 400.

[0041] The candidate display area 506 is an area for displaying template candidates used for generating a layout image to be arranged in the spread displayed in the spread display section 503. Details of operations on the candidate display area 506 will be described later.

[0042] In FIG. 5, no layout image is displayed in the spread list 502 or the spread display section 503. However, if a layout image is arranged in the spread by automatic layout processing or the like, the layout image will be displayed in the spread list 502 or the spread display section 503.

[0043] <Automatic layout processing> First, the automatic layout process that is executed when automatic generation is selected as the method for creating album data will be described below.

[0044] Fig. 4 is a flowchart showing an automatic layout process executed by the album creation application according to this embodiment. The flowchart shown in Fig. 4 is realized, for example, by CPU 101 reading a program corresponding to the album creation application stored in HDD 104 into ROM 102 or RAM 103 and executing the program. The flowchart shown in Fig. 4 is started when OK button 307 is operated in a state where automatic generation is selected as the method for creating album data.

[0045] First, in S 401 , the CPU 101 acquires various information related to the album creation conditions inputted to the input screen 301 .

[0046] In S402, the CPU 101 refers to the information acquired in S401 and acquires the image data contained in the folder corresponding to the path specified in the path box 302.

[0047] In S403, the CPU 101 analyzes the image data acquired in S402. Specifically, the CPU 101 performs feature extraction processing, object detection processing, and face detection processing. In addition, the CPU 101 acquires the image size and shooting date and time from metadata (Exif information) accompanying the image data.

[0048] The extraction process of the feature amount will be described. The feature amount includes, for example, the focus of an image represented by image data. For example, a general Sobel filter is used as an edge detection method for acquiring the feature amount of focus. The edge is detected by the Sobel filter, and the luminance difference between the start point and the end point of the edge is divided by the distance between the start point and the end point to calculate the slope of the edge, that is, the luminance gradient. From the result of calculating the average slope of the edge in the image, an image with a large average slope can be considered to be in focus more than an image with a small average slope. Then, by setting a plurality of threshold values ​​with different values ​​for the slope, it is possible to output an evaluation value of the amount of focus by determining which threshold value is equal to or greater than the slope. In this embodiment, two different threshold values ​​are set in advance, and the amount of focus is determined in three stages, ○△×. The threshold values ​​are set in advance by experiments, etc., so that the slope of the focus to be adopted in the album is "○", the slope of the focus that is acceptable is "△", and the slope that is unacceptable is "×". The threshold value setting may be provided by, for example, the creator of the album creation application, or may be set on the user interface. In this embodiment, information such as the date and time of photographing the image data, the size and aspect ratio of the image represented by the image data, etc. is extracted as the feature amount.

[0049] The face detection process and the object detection process will be described. The CPU 101 detects a person's face from the image represented by the image data acquired in S402 by the face detection process. A known method can be used for the face detection process, for example, Adaboost is used, which creates a strong classifier from a plurality of weak classifiers prepared. In this embodiment, a face image of a person (object) is detected by a strong classifier created by Adaboost. The CPU 101 extracts a face image and acquires the upper left coordinate value and the lower right coordinate value of the position of the detected face image. By having these two types of coordinates, the CPU 101 can acquire the position and size of the face image. The CPU 101 also detects a predetermined object other than a face image by the strong classifier created by Adaboost by the object detection process. Note that in this embodiment, the object detected in the object detection process is an animal such as a dog or a cat. Not limited to animals such as a dog or a cat, objects such as flowers, food, buildings, ornaments, vehicles, etc. may be detected. Also, instead of Adaboost, an object may be searched for by a deep neural network or the like.

[0050] The image analysis information of each image data obtained here is stored in the HDD 104, classified according to the ID for identifying the image.

[0051] In S404, the CPU 101 determines whether or not analysis of all image data acquired in S402 has been completed. If the determination is YES, the CPU 101 proceeds to S405, and if the determination is NO, the CPU 101 returns to S402 and acquires image data that has not yet been analyzed.

[0052] In S405, CPU 101 executes image scoring. The image scoring in S405 is a process of assigning a score evaluated based on the analysis result in S403 to each image data (scoring). In this embodiment, image scoring is performed from multiple perspectives based on the analysis result in S403. That is, in this embodiment, multiple scores are assigned to each image data by image scoring. Specifically, in this embodiment, scores from two perspectives, a score based on feature amount (particularly image quality) and a score based on face detection results, are assigned to each image data.

[0053] First, image scoring based on image quality will be described. In this embodiment, for example, feature quantities such as focus and pixel count are used in image scoring based on image quality. Specifically, for example, a score based on image quality is added so that the score added to image data whose focus feature quantity obtained in S403 is "○" is higher than the score added to image data whose focus feature quantity is "△" or "X". Also, for example, a score based on image quality is added to image data so that the score added to image data representing an image with a high pixel count is higher than the score added to image data representing an image with a low pixel count. Note that the feature quantity used in image scoring based on image quality may be shooting information such as lens information used at the time of shooting, or may be the compression format of the image input to the application. Also, it may be the size, resolution, contrast, etc. of the image displayed based on the image data.

[0054] Next, image scoring based on face detection results will be described. This image scoring is performed based on information on whether a person's face was detected in S403, information on the size of the face detected in S403, and the like. For example, scores are added to image data so that the score added to image data containing a person's face is higher than the score added to image data not containing a person's face. Also, for example, scores are added to image data so that the score added to image data in which the area (size) of the person's face occupies is larger is higher than the score added to image data in which the area of ​​the person's face occupies is smaller. Also, for example, scores are added to image data so that the score added to image data containing a smiling face is higher than the score added to image data containing a non-smiling face.

[0055] Next, image scoring based on the object detection result will be described. This image scoring is performed based on information on whether an animal was detected in S403, information on the size of the animal detected in S403, and the like. For example, scores are added to image data such that the score added to image data containing an animal is higher than the score added to image data not containing an animal. Also, for example, scores are added to image data such that the score added to image data in which an animal occupies a large area (size) is higher than the score added to image data in which an animal occupies a small area.

[0056] In S406, CPU 101 determines whether image scoring in S405 has been completed for all image data acquired in S402. If the determination is YES, CPU 101 proceeds to S407. If the determination is NO, CPU 101 returns to S405 and performs image scoring on image data that has not yet been subjected to image scoring.

[0057] In S407, CPU 101 groups the image data acquired in S402. The grouping is performed so that the number of groups generated at this time is the same as the number of spreads input in the spread number box 304. Specifically, CPU 101 first arranges the image data acquired in S402 in order of earliest photographing date and time based on the feature amount (photographing date and time) obtained by the analysis in S403. Then, CPU 101 acquires the time difference in photographing time between each image data. Then, image data is grouped by dividing the image data in order of the image data with the largest time difference. Then, CPU 101 assigns the image data grouped in this way to each spread to be created in chronological order. That is, CPU 101 assigns a group including image data with an earlier photographing date and time to a spread with a smaller page number. This identifies which image data is to be arranged on each spread.

[0058] In S408, the CPU 101 identifies a spread that is to be the target of automatic layout among the spreads for which automatic layout has not yet been performed. In this embodiment, it is assumed that a spread with a lower page number is identified among the spreads for which automatic layout has not yet been performed. At this time, the CPU 101 acquires image data to be arranged on the identified spread, analysis results of the image data, etc.

[0059] In S409, the CPU 101 generates a template to be used for automatic layout of the spread specified in S408. Details of this process will be described below.

[0060] Fig. 6 is a flowchart showing a template generation process executed by the album creation application according to this embodiment. The flowchart shown in Fig. 6 is realized, for example, by the CPU 101 reading a program corresponding to the album creation application stored in the HDD 104 into the ROM 102 or the RAM 103 and executing the program. The flowchart shown in Fig. 6 shows the process corresponding to S409.

[0061] In S601, the CPU 101 arranges the image data acquired in S408 in order from the earliest capture date and time based on the feature amount (capture date and time) obtained by the analysis in S403.

[0062] In S602, the CPU 101 specifies the aspect ratios of the image data arranged in S601 and generates an aspect ratio array. The aspect ratio array is a value obtained by arranging the specified aspect ratios in the same order as the image data arranged in S601. In this embodiment, the aspect ratio is "height of image represented by image data / width of image represented by image data". If the aspect ratios of the image data vary, a template that looks good may not be generated in the template generation process described later. Therefore, here, the CPU 101 performs a process to suppress the variation in the aspect ratio of each image data. Specifically, the CPU 101 calculates the number N_l of image data whose value of "length of short side of image represented by image data / length of long side of image represented by image data" is equal to or greater than (2 / 3+3 / 4) / 2 and less than 1. The CPU 101 also calculates the number N_s of image data whose value of "length of short side of image represented by image data / length of long side of image represented by image data" is less than (2 / 3+3 / 4) / 2. Then, when N_s<=N_l, CPU 101 replaces the aspect ratio of image data whose aspect ratio is less than 1 with 3 / 4, and replaces the aspect ratio of image data whose aspect ratio is greater than 1 with 4 / 3. On the other hand, when N_s<=N_l is not satisfied, CPU 101 replaces the aspect ratio of image data whose aspect ratio is less than 1 with 2 / 3, and replaces the aspect ratio of image data whose aspect ratio is greater than 1 with 3 / 2. Note that the aspect ratio of image data whose aspect ratio is 1 is maintained as it is. As a result, for example, when there are five pieces of image data assigned to the spread identified in S408, an aspect ratio array such as {1, 1, 1, 4 / 3, 3 / 4} is acquired.

[0063] In S603, the CPU 101 specifies a template type that has not yet been specified. In this embodiment, templates of the types shown in Figs. 10(a) to 10(f) are generated by the template generation process. In Fig. 10, the center line of each template corresponds to the center line of the spread and corresponds to the bound part of the album. Note that Fig. 10 shows a form in which a slot is already arranged, but which slot is arranged in the arrangement area shown by the dashed line is determined by a later process. Templates generated by the template generation process include, for example, a type of template in which a slot that spans the right page and the left page can be arranged, and a type of template in which a slot that spans the right page and the left page is not arranged. Also, for example, a type of template in which a slot is not arranged on the left page and a slot is arranged only on the right page. Also, for example, a type of template with a large amount of blank space and a type of template with a small amount of blank space are included. Also, for example, a type of template having a fixed slot whose size, position, and shape are determined in advance as well as a slot whose shape is determined based on the characteristics of the image data used are included. In this embodiment, a template type that has not yet been specified is specified from among the template types shown in Figs. 10(a) to 10(f). The template type shown in FIG. 10 is an example, and other types may be specified. The template type to be specified may be changed based on the album creation conditions. For example, when the album is bound by saddle stitching or slip-sheet binding, even if there is an image that straddles the right and left pages of a spread, the visibility of the image does not decrease. Therefore, when the album is bound by saddle stitching or slip-sheet binding, a template type having a slot that straddles the right and left pages of a spread may be used. On the other hand, when the album is bound by perfect binding or side stitching, the visibility of an image that straddles the right and left pages of a spread decreases, so it is not preferable to use a template type having a slot that straddles the right and left pages of a spread.Therefore, for example, when the binding method of the album is perfect binding or side binding, the CPU 101 controls so that template types that may include a slot spanning the right and left pages of a spread (for example, Figures 10(b), (d), and (e)) are not identified in S603. Note that when the binding method of the album is saddle stitching or slip-leaf binding, all template types are subject to identification. Also, the template type to be identified may be changed based on the page number of the spread. For example, a background image is placed on a specific page of the album. The type of template to be placed on the page on which the background image is placed is controlled to be a specific type (for example, the type shown in Figure 10(a)). In this case, control may be performed here so that only the specific type is subject to identification.

[0064] In S604, CPU 101 divides the aspect ratio array acquired in S602 based on the template type specified in S603 to generate an aspect ratio array L and an aspect ratio array R. In the present embodiment, two templates (template L and template R) are automatically generated in the template generation process, and a template generated by combining them and a template generated by only one template can be generated. The former template is, for example, the type shown in FIG. 10(a), and the latter template is, for example, the type shown in FIG. 10(b) to (f). When a layout image is generated by the template of the type shown in FIG. 10(a), the image data assigned to the spread specified in S408 is divided into two sets, one set is placed in template L and the other set is placed in template R. Therefore, when the type shown in FIG. 10(a) is specified in S603, CPU 101 divides the aspect ratio array in half to obtain the division result. That is, for example, if the aspect ratio array obtained in S602 is {1, 1, 4 / 3, 3 / 4}, the aspect ratio array L of {1, 1} and the aspect ratio array R of {4 / 3, 3 / 4} are obtained as division results. At this time, multiple division results may be obtained. Specifically, for example, in addition to the division result obtained by dividing the aspect ratio array in half, there may be a division result obtained by dividing the aspect ratio array in half and then transferring one to three aspect ratios from one aspect ratio array to the other aspect ratio array. Also, when a layout image is generated using a template of the type shown in FIG. 10(b) to (f), all image data assigned to the spread identified in S408 is arranged in one template. Therefore, when a type shown in Figures 10(b) to (f) is identified in S603, CPU 101 distributes all aspect ratios to aspect ratio array L and does not distribute aspect ratios to aspect ratio array R, thereby obtaining the division result.That is, for example, if the aspect ratio array obtained in S602 is {1, 1, 4 / 3, 3 / 4}, an aspect ratio array L of {1, 1, 4 / 3, 3 / 4} is obtained as a division result, and an aspect ratio array R of {} is obtained. Note that the aspect ratio array L is mainly an aspect ratio array for the left page of the spread specified in S408, but a template generated based on the aspect ratio array L may be placed on the right page or on a spread that includes both the left and right pages. Also, the aspect ratio array R is an aspect ratio array for the right page of the spread specified in S408.

[0065] In S605, the CPU 101 identifies any of the segmentation results acquired in S604 that has not yet been used to generate a template.

[0066] In S606, a template L is generated based on the division result identified in S605. Template L mainly corresponds to the template for the left page of the two-page spread identified in S408, but is not limited to this, and may also correspond to a template for the right page or a template for the two-page spread.

[0067] In S607, CPU 101 generates template R based on the division result specified in S605. Template R corresponds to the template for the right page of the double-page spread specified in S408. Details of the processes in S604 and S605 are described below.

[0068] Fig. 7 is a flowchart showing a process for generating a template L or a template R, which is executed by the album creation application according to this embodiment. The flowchart shown in Fig. 7 is realized, for example, by the CPU 101 reading a program corresponding to the album creation application stored in the HDD 104 into the ROM 102 or the RAM 103 and executing the program. The flowchart shown in Fig. 7 shows the process corresponding to S606 and S607.

[0069] In S701, CPU 101 acquires one aspect ratio array of the division results identified in S605. If this process is the process in S606, aspect ratio array L is acquired, and if this process is the process in S607, aspect ratio array R is acquired.

[0070] In S702, the CPU 101 calculates all combinations of values ​​included in the aspect ratio array acquired in S701, and obtains two-dimensional arrays corresponding to each combination. If the number of image data arranged in the template L is N, 2^(N-1) two-dimensional arrays are generated. More specifically, for example, when the aspect ratio array L is {1, 1, 1}, four patterns of two-dimensional arrays are acquired: {{1, 1, 1}}, {{1}, {1, 1}}, {{1, 1}, {1}}, {{1}, {1}, {1}}. Each one-dimensional array included in the two-dimensional array corresponds to the aspect ratio of the image data arranged in each column in the template. In this embodiment, the processes of S703 to S706 are repeated as many times as the number of two-dimensional arrays acquired at this time. If a huge number of two-dimensional arrays are acquired due to the large number of image data N, it takes a long time to repeat the processes of S703 to S706. Therefore, for example, a part of the two-dimensional arrays acquired at this time may be deleted to reduce the time required to repeat the processes of S703 to S706. Specifically, for example, two-dimensional arrays in which the number of aspect ratios included in at least one one-dimensional array is equal to or smaller than |N / 10| may be deleted.

[0071] In S703, the CPU 101 identifies a two-dimensional array that has not yet been used for generating a template, from among the multiple two-dimensional arrays acquired in S702.

[0072] In S704, the CPU 101 generates the template L by arranging the slots vertically based on the two-dimensional array acquired in S703. Details of this process will be described below.

[0073] Fig. 8(a) is a flowchart showing a template generation process by vertical arrangement, which is executed by the album creation application according to this embodiment. The flowchart shown in Fig. 8(a) is realized, for example, by the CPU 101 reading a program corresponding to the album creation application stored in the HDD 104 into the ROM 102 or the RAM 103 and executing it. The flowchart shown in Fig. 8(a) shows the process corresponding to S704.

[0074] In S801, the CPU 101 generates a slot area by arranging each slot of each aspect ratio included in the nth one-dimensional array from the two-dimensional array acquired in S703 in order from the top. Since the initial value of n is 1, each slot of each aspect ratio included in the first one-dimensional array is arranged in the slot area. A margin of a predetermined width d is provided between the slots. At this time, the CPU 101 expands or reduces the slots without changing the aspect ratio so that the width of each added slot becomes the same. Specifically, the CPU 101 expands or reduces the slots so that the width of each added slot becomes a predetermined width. For example, if the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, the first one-dimensional array is {4 / 3, 3 / 4}, so that the slots are arranged in the slot area as shown in (1) of FIG. 9(a).

[0075] In S802, the CPU 101 determines whether or not the slots have been arranged based on all the one-dimensional arrays included in the two-dimensional array acquired in S703. If the determination is YES, the CPU 101 proceeds to S803, and if the determination is NO, the CPU 101 proceeds to S805.

[0076] In S803, CPU 101 increments the value of n, and then arranges, from top to bottom, each slot of each aspect ratio included in the nth one-dimensional array among the two-dimensional arrays acquired in S703 in the column immediately to the right of the slot arranged in S801. If the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, the second one-dimensional array is {4 / 3, 3 / 4, 3 / 4}, so the slots are arranged in the slot area as shown in (2) of FIG.

[0077] In S804, CPU 101 scales the size of the slots included in the column added in S803 without changing the aspect ratio so that the height of the column added in S803 becomes the same as the height of the column to the left of the column added in S803. If the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, then the slots are arranged in the slot area as shown in (3) of Figure 9(a). Then, CPU 101 proceeds to S802 again.

[0078] In S805, CPU 101 enlarges or reduces the slot area generated by the processes of S801 to S804 to fit the placement area in the template of the type specified in S603. As a result, the slot area is enlarged or reduced as shown in (4) of FIG. 9(a). CPU 101 then places the enlarged or reduced slot area in the placement area. Note that if this process is a process in the generation process of template L, the slot area is enlarged or reduced to fit the placement area of ​​template L, and is placed in the placement area of ​​template L. On the other hand, if this process is a process in the generation process of template R, the slot area is enlarged or reduced to fit the placement area of ​​template R, and is placed in the placement area of ​​template R. In this way, template L and template R are generated by vertical arrangement.

[0079] Furthermore, after CPU 101 places the slot area in the placement area to generate template L or template R, it may adjust the size of the slots included in template L or template R. The reason for this will be explained below.

[0080] For example, the process of creating an actual photo album may include a step of printing a layout image on paper larger than the size of the spread, and then cutting the paper to the size of the spread after printing. At this time, there may be some error in the cutting position of the paper. Therefore, for example, when cutting a spread on which a layout image is printed with a slot aligned along the edge of the template, if the cutting position is shifted outward relative to the spread, a margin that should not exist will be generated between the image in the slot and the edge of the spread.

[0081] Also, for example, if the slot is located near the edge of the template and a narrow margin occurs between the edge of the slot and the edge of the template, a narrow margin will naturally occur at the edge of the spread when printed. However, a layout image with a narrow margin is undesirable from an aesthetic point of view.

[0082] In this way, depending on the position of the slot, there is a possibility that an inappropriate album may be obtained. Therefore, in this embodiment, when the edge of the slot is along the edge of the template or when the edge of the slot is located near the edge of the template, the CPU 101 enlarges the size of the slot.

[0083] Specifically, the CPU 101 places the slot area in the placement area to generate template L (or template R), and then executes the process shown in FIG. 11. FIG. 11 is a flowchart showing a slot adjustment process executed by an album creation application according to this embodiment. The flowchart shown in FIG. 11 is realized, for example, by the CPU 101 reading a program corresponding to the album creation application stored in the HDD 104 into the ROM 102 or RAM 103 and executing it. The flowchart shown in FIG. 11 is started after the slot area is placed in the placement area. Below, the process when template L is generated will be described, but when template R is generated, the process is performed on template R instead of template L.

[0084] In S1101, CPU 101 identifies a slot that is not a target of the subsequent determination process among the slots included in the generated template L. Then, CPU 101 further identifies the position in template L of the identified slot.

[0085] In S1102, CPU 101 determines whether or not to adjust the size of the slot identified in S1101. Specifically, it determines whether or not a specific side, which is a side of the slot identified in S1101 and is approximately parallel to the specific side, is located within a specific distance from a specific side of template L. Note that in this embodiment, the size of the slot is adjusted not only when the specific side is in the vicinity of the inside of template L, but also when the specific side is in the vicinity of the outside of template L. If the CPU 101 determines YES, it proceeds to S1103, and if the CPU 101 determines NO, it proceeds to S1104.

[0086] In S1103, the CPU 101 adjusts the slot identified in S1101. Specifically, the slot is enlarged by moving the position of a specific side of the slot to an area outside the template. Specifically, for example, assume that the generated template L is a template 1201 as shown in FIG. 12(a). In that case, the slot 1202 and the slot 1204 arranged in positions close to the ends of the template L are enlarged, and a template as shown in FIG. 12(b) is generated. Of course, the slot 1203 that is not arranged in a position close to the end of the template L is not enlarged. The area 1205 is an area set in consideration of the magnitude of the error in the cutting position that occurs when creating an album, and when the slot is adjusted, the specific side of the slot is moved to the position of the area 1205. This makes it possible to suppress the occurrence of a blank space even if an error occurs in the cutting position when creating an album. It is also assumed that printing is performed in the area where the slot is arranged, even if it is an area outside the template. Although CPU 101 extends each slot in only one direction here, if the slot is located close to multiple sides of the template, the slot may be extended in multiple directions.

[0087] Thereafter, the CPU 101 ends the process and proceeds to S705.

[0088] In S705, the CPU 101 generates a template by arranging the slots side by side based on the two-dimensional array acquired in S703. Details of this process will be described below.

[0089] Fig. 8(b) is a flowchart showing a template generation process by arranging images side by side, which is executed by the album creation application according to this embodiment. The flowchart shown in Fig. 8(b) is realized, for example, by the CPU 101 reading a program corresponding to the album creation application stored in the HDD 104 into the ROM 102 or the RAM 103 and executing the program. The flowchart shown in Fig. 8(b) shows the process corresponding to S705.

[0090] In S811, the CPU 101 generates a slot area by arranging the slots of each aspect ratio included in the nth one-dimensional array from the two-dimensional array acquired in S703 in order from the left. Since the initial value of n is 1, the slots of each aspect ratio included in the first one-dimensional array are arranged in the slot area. A margin of a predetermined width d is provided between the slots. At this time, the CPU 101 expands or reduces the slots without changing the aspect ratio so that the widths of the added slots are the same. Specifically, the CPU 101 expands or reduces the slots so that the widths of the added slots are a predetermined width. If the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, the first one-dimensional array is {4 / 3, 3 / 4}, so that the slots are arranged in the slot area as shown in (1) of FIG. 9(b).

[0091] In S812, the CPU 101 determines whether or not the slots have been arranged based on all the one-dimensional arrays included in the two-dimensional array acquired in S703. If the determination is YES, the CPU 101 proceeds to S813, and if the determination is NO, the CPU 101 proceeds to S815.

[0092] In S813, CPU 101 increments the value of n, and then arranges, from left to right, each slot of each aspect ratio included in the nth one-dimensional array among the aspect ratios included in the two-dimensional array acquired in S703 in the row below the slot arranged in S811. If the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, the second one-dimensional array is {4 / 3, 3 / 4, 3 / 4}, so the slots are arranged in the slot area as shown in (2) of FIG.

[0093] In S814, CPU 101 scales the size of the slots included in the row added in S813 without changing the aspect ratio so that the width of the row added in S813 becomes the same as the width of the row above the row added in S813. If the two-dimensional array acquired in S703 is {{4 / 3, 3 / 4}, {4 / 3, 3 / 4, 3 / 4}}, then the slots are arranged in the slot area as shown in (3) of Figure 9(b). Then, CPU 101 proceeds to S812 again.

[0094] In S815, the slot area generated by the processes of S811 to S814 is enlarged or reduced to fit the placement area of ​​the template of the type specified in S603. As a result, the slot area is enlarged or reduced as shown in (4) of FIG. 9B. Then, CPU 101 places the enlarged or reduced slot area in the placement area. If this process is a process in the generation process of template L, the slot area is enlarged or reduced to fit the placement area of ​​template L, and is placed in the placement area of ​​template L. On the other hand, if this process is a process in the generation process of template R, the slot area is enlarged or reduced to fit the placement area of ​​template R, and is placed in the placement area of ​​template R. In this way, template L and template R are generated by a side-by-side arrangement. Then, CPU 101 ends the process, and proceeds to S706.

[0095] In addition, by generating templates using both the vertical arrangement method and the horizontal arrangement method as in this embodiment, it is possible to generate multiple templates each having a different number of slot columns and multiple templates each having a different number of slot rows.

[0096] In S706, the CPU 101 determines whether or not a template has been created based on all two-dimensional arrays. If the determination is YES, the CPU 101 proceeds to S707, and if the determination is NO, the CPU 101 returns to S703 and specifies a new two-dimensional array.

[0097] In S707, CPU 101 determines whether or not there is an overlapping template between the template generated in S704 and the template generated in S705. If there is an overlapping template, CPU 101 deletes one of them.

[0098] When template L and template R are generated as described above, CPU 101 proceeds to S608.

[0099] In S608, CPU 101 generates a template for two-page spreads. For example, CPU 101 assumes that the template type specified in S603 is a type in which a slot that straddles the right and left pages is not arranged, and that template L and template R have been generated. In this case, template L and template R are combined to generate a template for two-page spreads. In this manner, a template for two-page spreads such as that shown in FIG. 10(a) is generated. At this time, if multiple templates L and templates R have been generated, each of the multiple templates L is combined with each of the multiple templates R. That is, this process generates templates for two-page spreads in the number of templates L x the number of templates R.

[0100] For example, suppose the template type specified in S603 is a type in which a slot that spans both the right and left pages can be arranged, but does not have a fixed slot. For example, suppose the template type specified in S603 is a type in which no slot is arranged on the left page, but only on the right page. In this case, since only template L has been generated, CPU 101 generates template L as a template for a two-page spread. In this way, a template for a two-page spread such as that shown in FIG. 10(b), (c), or (d) is generated.

[0101] Also, for example, assume that the template type identified in S603 is a type having a fixed slot. In that case, since only template L has been generated, CPU 101 generates a template for a two-page spread by combining template L with the fixed slot. In this way, a template for a two-page spread such as that shown in FIG. 10(e) or (f) is generated.

[0102] In S609, CPU 101 determines whether or not all the segmentation results have been used for template generation. If the determination is YES, CPU 101 proceeds to S610, and if the determination is NO, CPU 101 returns to S605 and generates a template using segmentation results that have not yet been specified.

[0103] In S610, CPU 101 determines whether or not all template types have been identified. If the determination is YES, CPU 101 ends the process, and if the determination is NO, CPU 101 returns to S603 and identifies template types that have not yet been identified.

[0104] When the template generation process is completed as described above, the CPU 101 proceeds to S410.

[0105] In S410, CPU 101 executes template scoring. Template scoring is a process of assigning scores (scoring) to the template generated in S409. Details of this process will be described below. In this embodiment, scoring is performed based on the blank area (area other than the slots) in the template and each slot included in the template.

[0106] First, in this embodiment, the CPU 101 executes scoring based on the blank area using formula (1). Note that the blank area is an area outside the slot area in the template.

[0107]

number

[0108] Here, SCOREa is the score based on the margin areas, AREAs is the total area of ​​the slots that the template has, and THRau and THRal are thresholds for determining the score based on the margin areas. If AREAs is larger than THRau, SCOREa is 1. If AREAs is smaller than THRal, SCOREa is 0. If AREAs is larger than THRal and smaller than THRau, SCOREa is closer to 1 the larger AREAs is, and closer to 0 the smaller AREAs is. In other words, according to the above formula, the larger the total area of ​​the slots (in other words, the smaller the total area of ​​the margin areas), the higher the score that can be assigned to the template.

[0109] The method of scoring based on the margin area is not limited to the above method. For example, in the above description, the CPU 101 assigns a score to the template for double-page spread. However, for example, if the template to be evaluated includes template L and template R, a score may be assigned to each of template L and template R, and the average score may be assigned to the template for double-page spread. Also, the scoring may be controlled according to the position of the margin area. For example, assume that there is a template (e.g., (E) of FIG. 13) that has margins in the upper and lower parts and is horizontally long, and a template (e.g., (F) of FIG. 13) that has margins in the left and right parts and is horizontally long. In this case, even if the areas of the margins are the same, the user will recognize that the amount of margin in the latter template is larger than the amount of margin in the former template. Therefore, the THRau used for scoring the template with margins in the upper and lower parts of the template may be controlled to be larger than the THRau used for scoring the template with margins in the left and right parts of the template. Also, the THRal used for scoring a template having a margin in the upper and lower parts of the interior of the template may be controlled to be larger than the THRal used for scoring a template having a margin in the left and right parts of the interior of the template. This allows the score of the former to be controlled to be lower than the score of the latter, even if the margin area of ​​the template having a margin in the left and right parts of the interior of the template and the margin area of ​​the template having a margin in the upper and lower parts of the interior of the template are the same.

[0110] CPU 101 then performs slot-based scoring using equations (2) and (3).

[0111]

number

[0112]

number

[0113] Ns is the total number of slots in the template, and AREAm is the area of ​​the smallest slot in the template, i.e., RATIOs is the ratio of the average area of ​​the slots in the template to the area of ​​the smallest slot in the template.

[0114] SCOREg is a score based on a slot, and THRgu and THRgl are thresholds for determining the score based on a slot. When RATIOs is larger than THRgu, SCOREg is 0. When RATIOs is smaller than THRgl, SCOREg is 1. When RATIOs is equal to or larger than THRgl and equal to or smaller than THRgu, SCOREg is closer to 1 the smaller RATIOs is, and is closer to 0 the larger RATIOs is. That is, according to the above formula, the smaller the difference between the area of ​​the smallest slot among the slots in the template and the average area of ​​the slots in the template, the higher the score that can be given to the template.

[0115] Then, CPU 101 calculates the average value of SCOREa and SCOREg, and assigns the average value to the template as the template score, which is the final score. In this way, it is possible to score the template from multiple perspectives.

[0116] For example, assume that four pieces of image data representing images with an aspect ratio of 2 / 3 are selected as image data to be placed on the double-page spread specified in S408, and six templates as shown in Fig. 14(a) are generated in S409. In this case, for example, the scores assigned to each template are managed by CPU 101 as shown in Fig. 14(b). In this form, template (1) and template (2) have the highest template scores, and template (6) has the lowest template score.

[0117] In this embodiment, the average value of SCOREa and SCOREg is set as the template score, but this is not limited to the above. At least one of SCOREa and SCOREg may be weighted, and the average value of SCOREa and SCOREg after the weighting may be set as the template score. Also, for example, the lower score of SCOREa and SCOREg may be set as the template score.

[0118] Also, a score other than SCOREa and SCOREg may be referred to in calculating the template score. For example, SCOREm, which is a score according to the margin between slots, may be referred to. A layout image in which the position of a margin in a certain column is too close to the position of a margin in an adjacent column is not preferable from the viewpoint of aesthetics. Therefore, the distance between the margins in the template may be calculated, and the score SCOREm may be assigned according to the distance. Specifically, for example, the CPU 101 calculates the distance between a margin in a certain column in the template and a margin in the adjacent column (for example, distance 1401 or distance 1402 in FIG. 14(c)). Then, the CPU 101 assigns the SCOREm based on the magnitude of the distance. For example, the value of SCOREm increases as the distance increases, and decreases as the distance decreases. Also, for example, when multiple distances are calculated as in FIG. 14(c), the SCOREm is calculated based on the average distance.

[0119] Also, for example, SCOREs, which are scores according to the distance of the side of the slot arranged so as to straddle the center line of the spread from the center line of the spread, may be referred to. For example, as shown in FIG. 15, a layout image in which the side of the slot arranged so as to straddle the center line of the spread is too close to the center line of the spread is not preferable from the viewpoint of aesthetics. Therefore, the distance of the side of the slot arranged so as to straddle the center line of the spread from the center line of the spread may be calculated, and the template score SCOREs may be assigned according to the distance. Specifically, for example, the CPU 101 calculates the distance of the side of the slot from the center line of the spread (for example, distance 1501 and distance 1502 in FIG. 15). Then, the CPU 101 assigns SCOREg based on the magnitude of the distance. For example, the value of SCOREg is small if the distance is equal to or smaller than a predetermined threshold, and is large if the distance is larger than the predetermined threshold.

[0120] If a score other than SCOREa and SCOREg is calculated, the average of all the calculated scores is assigned to the template as the template score.

[0121] In S410, CPU 101 may switch the evaluation method depending on the type of the template to be evaluated. Specifically, for example, CPU 101 may switch which of SCOREa, SCOREg, SCOREm, and SCOREs to calculate depending on the type of the template to be evaluated. Specifically, for example, CPU 101 may assign scores only SCOREa, SCOREg, and SCOREm to a template type in which slots are not arranged across the center line of the spread. CPU 101 may assign all scores to a template type in which slots are arranged across the center line of the spread. A method of determining the type of template will be described in detail below with reference to FIG. 13.

[0122] First, CPU 101 judges whether or not a slot of the template to be evaluated is arranged so as to straddle the center line of the spread. Specifically, CPU 101 judges whether or not all four corner points of the slot are included in either the left page or the right page. If all the corner points of the slot are included in either the left page or the right page, the type of the slot is identified as one in which the slot is not arranged so as to straddle the center line of the spread (for example, (A) and (B) in FIG. 13). On the other hand, if all the corner points of the slot are not included in either the left page or the right page, the type of the slot is identified as one in which the slot is arranged so as to straddle the center line of the spread (for example, (C) to (F) in FIG. 13). Note that if the slot is a polygon other than a square, CPU 101 judges whether or not all the points corresponding to the corners of the polygon are included in either the left page or the right page, instead of four points.

[0123] Next, the CPU 101 judges whether or not the slot of the template to be evaluated is in contact with the edge of the template. Specifically, the CPU 101 judges whether or not any of the corner points of the slot is located at the edge of the template or outside the template. If any of the corner points of the slot is located at the edge of the template or outside the template, the type of the slot is identified as being in contact with the edge of the template (for example, (E) and (F) in FIG. 13). On the other hand, if any of the corner points of the slot is not located at the edge of the template or outside the template, the type of the slot is identified as being not in contact with the edge of the template (for example, (A) to (D) in FIG. 13). Note that this identification result is used to judge whether or not to execute the above-mentioned control that makes the THRau used for scoring a template having margins on the left and right different from the THRau used for scoring a template having margins on the top and bottom. Specifically, for example, it is judged that the control is executed for the type of the slot being in contact with the edge of the template, and it is judged that the control is not executed for the type of the slot not being in contact with the edge of the template.

[0124] In S411, the CPU 101 selects one or more templates from among the templates generated in S409 based on the evaluation (score) added in S410. In this embodiment, the CPU 101 selects all templates having a template score equal to or greater than a predetermined threshold from among the templates generated in S409. If there is no template having a template score equal to or greater than the predetermined threshold, the CPU 101 selects the template having the highest template score from among the templates generated in S409. The method of selecting a template is not limited to the above method. In the above description, the threshold is a fixed value. However, for example, a value obtained by subtracting a predetermined value from each template score added to the template generated in S409 may be determined as the threshold. Also, for example, from among the templates generated in S409, templates may be selected in descending order of template score until a predetermined number or ratio is reached.

[0125] At this time, the CPU 101 may perform control so that a similar template is not selected. For example, assume that template s1 with the highest template score is selected from all templates. In that case, all templates with a high similarity to template s1 are deleted from the templates to be selected. The similarity is calculated, for example, based on the average value of the coordinates of the center points of each slot of the template. For example, assume that template s1 has two slots, and the coordinates of the center points of the two slots are (1, 5) and (3, 11). In that case, the average value P s1 is (2, 8). The similarity between template s1 and template s2 is |P s1 -P s2 │ is calculated as │P s1 -P s2 If |P is smaller than a predetermined threshold, the similarity between template s1 and template s2 is determined to be high. s1 -P s2If | is greater than a predetermined threshold, the similarity between template s1 and template s2 is determined to be low. In this manner, CPU 101 identifies and deletes templates that are highly similar to the selected template. After deleting the template that is highly similar to the selected template, CPU 101 selects a new template. Thereafter, CPU 101 identifies and deletes templates that are highly similar to the selected template each time a template is selected. In this manner, some templates are not used in the layout image generation process, and the time required for the layout image generation process can be reduced.

[0126] In S412, CPU 101 generates a layout image by arranging image data allocated to the spread specified in S408 in each slot in the template selected in S411. If multiple templates were selected in S411, CPU 101 will specify one of the templates selected in S411 in which image data has not yet been arranged. CPU 101 then arranges image data in the template specified in this manner. The method of arranging image data will be described in detail below with reference to FIG. 16.

[0127] FIG. 16(A) is an example of the shape of an image represented by image data to be arranged on a spread specified in S408. FIG. 16(B) is an example of a template in which image data is arranged. FIG. 16(C) is a table showing information on each image data corresponding to FIG. 16(A) and a table showing information on each slot of the template corresponding to FIG. 16(B). The information on each image data is, for example, an image number assigned to each image data, the aspect ratio of each image data, the score, the shooting time, etc. The information on each slot is, for example, a slot number assigned to each slot, the aspect ratio of each slot data, the score, the position, etc. The information on the position of the slot is expressed, for example, as an integer, and a smaller number is assigned to the slot located further to the left in the template. First, the CPU 101 sorts the contents of each table based on the aspect ratio. The CPU 101 controls the order so that, for rows with the same aspect ratio, rows with earlier shooting times or smaller position numbers (numbers) are placed at the top. This results in a table such as that shown in FIG. 16(D), for example. After that, the CPU 101 arranges each image data in a slot having the same row order in the table. That is, in the example of FIG. 16(D), the image data having image No. 1 is arranged in the slot having slot No. 2, the image data having image No. 2 is arranged in the slot having slot No. 1, and the image data having image No. 3 is arranged in the slot having slot No. 3. In the arrangement of the image data in the slot, the image data is appropriately enlarged or reduced so that at least one side of the image data contacts the side of the slot. In addition, if a part of the image data after enlargement or reduction does not fit into the slot, the part that does not fit into the slot is trimmed. However, in this embodiment, the shape of the slot is based on the aspect ratio of the image data, so that the size of the part to be trimmed can be suppressed. As a result, for example, a layout image as shown in FIG. 16(E) is generated.

[0128] In S413, the CPU 101 scores the layout image generated in S412. Scoring of the layout image will be described in detail below with reference to FIG.

[0129] For example, in the layout image generation process in S412, it is assumed that image data is arranged in a template as shown in FIG. 17(A) or (B). It is also assumed that a table of information on each image data arranged in the spread specified in S408 is table 1701. It is also assumed that a table of information on each slot of template 1 shown in FIG. 17(A) is table 1702, and a table of information on each slot of template 2 shown in FIG. 17(B) is table 1703. It is assumed that each table is sorted as described in the explanation of S412. In scoring the layout image, CPU 101 calculates the score of the layout image based on the degree of correlation between the information on the image data arranged in the layout image and the information on the slot in which the image data is arranged. Specifically, CPU 101 first calculates the score correlation degree between the ranking of the score of each image data and the ranking of the score of each slot, and the position correlation degree between the ranking of the shooting date and time of each image data and the position of each slot. Then, CPU 101 assigns a score to the layout image based on the magnitude of these correlation degrees. For example, the score value of the layout image increases as the correlations between them increase, and decreases as the correlations between them decrease. This is because, for example, the layout image is more aesthetically pleasing when the image data with the highest score among the image data to be arranged on the spread specified in S408 is arranged in the slot with the highest score. Also, for example, the layout image is more aesthetically pleasing when the image data with the earliest shooting date and time among the image data to be arranged on the spread specified in S408 is arranged in the slot located at the leftmost position. For example, in the example shown in FIG. 17, the score correlation degree in the layout image using template 1 and the score correlation degree in the layout image using template 2 have the same value. However, the position correlation degree in the layout image using template 2 has a higher value than the position correlation degree in the layout image using template 1. Therefore, the layout image using template 2 is given a higher score than the layout image using template 1.

[0130] In S414, CPU 101 determines whether or not layout images have been generated based on all of the templates generated in S409. If the determination is YES, CPU 101 proceeds to S415, and if the determination is NO, CPU 101 returns to S412, identifies a template for which layout images have not yet been generated, and generates a layout image based on the identified template.

[0131] In S415, the CPU 101 selects a layout image to be arranged in the double-page spread specified in S408 from among the layout images generated in S412, and to be displayed / outputted on the double-page spread display unit 503. In this embodiment, the CPU 101 selects a layout image based on the score added in S410 and the score added in S413. Specifically, the CPU 101 selects a layout image having the highest total value of the score added in S410 and the score added in S413. For example, it is assumed that the score (score added in S410) of the template used to generate the layout image A is 70 points, and the score (score added in S413) of the layout image A is 80 points. It is also assumed that the score (score added in S410) of the template used to generate the layout image B is 90 points, and the score (score added in S413) of the layout image B is 70 points. In this case, the layout image B is preferentially selected over the layout image A. Note that the selection is not limited to this form. For example, a weight may be set to at least one of the scores added in S410 and S413, and the final selection may be performed by prioritizing either the score added in S410 or the score added in S413. Also, for example, the final selection may be performed based on only one of the scores added in S410 and S413. In this manner, the layout image to be actually arranged on the double page spread is specified from the multiple layout images.

[0132] In S416, CPU 101 determines whether layout images have been generated for all the spreads by identifying all the spreads. If the determination is YES, CPU 101 proceeds to S417, and if the determination is NO, CPU 101 returns to S408, where it identifies a new spread and then generates a layout image to be placed on that spread.

[0133] In S417, CPU 101 displays each layout image selected in S415 on editing screen 501. Specifically, CPU 101 displays each spread and the layout image arranged on each spread in spread list 502. Then, when any spread is selected from spread list 502, CPU 101 enlarges and displays the selected spread and the layout image arranged on the selected spread in spread display section 503, and makes it possible to accept an editing operation for the selected spread. CPU 101 then ends the process.

[0134] In this manner, a layout image can be generated using an appropriate template.

[0135] <Editing album data> The automatic layout process executed by performing an editing operation of album data on the editing screen 501 will be described. The editing screen 501 is displayed when manual generation is selected as the method for creating album data, when the process shown in FIG. 4 is completed, and the like. In a state in which the editing screen 501 is displayed, the user can appropriately edit the layout image to be arranged on the double-page spread selected from the double-page spread list 502. Specifically, for example, the user can add one or more image data to the layout image to be arranged on the double-page spread selected from the double-page spread list 502 by an editing operation, or change one or more image data already arranged on the layout image. In this embodiment, the automatic layout can be executed not only in the process shown in FIG. 4, but also when image data to be arranged on the double-page spread is added by editing. Note that in this embodiment, when image data already arranged on the layout image is changed by an editing operation, the automatic layout process is not executed. That is, new image data is arranged on the slot in which the image data to be changed was arranged, without changing the size, shape, or position of the slot. However, the present invention is not limited to this form, and the automatic layout process may be executed even when image data already arranged on the layout image is changed by an editing operation. In other words, a new template may be generated based on the image data that has already been arranged, excluding the image data to be changed, and the image data that will be newly arranged as a result of the change, to generate a layout image.

[0136] Fig. 18 is a flowchart showing automatic layout processing during editing, executed by the album creation application according to this embodiment. The flowchart shown in Fig. 18 is realized, for example, by CPU 101 reading a program corresponding to the album creation application stored in HDD 104 into ROM 102 or RAM 103 and executing it. The flowchart shown in Fig. 18 is started when an editing operation of album data is executed on editing screen 501. Specifically, the editing operation is, for example, an operation of adding image data to be arranged on the spread displayed in spread display section 503.

[0137] In S 1801 , the CPU 101 acquires various information related to the album creation conditions inputted to the input screen 301 .

[0138] In S1802, the CPU 101 specifies the spread displayed in the spread display section 503 as the spread to be edited.

[0139] In S1803, CPU 101 specifies image data to be used for editing. Specifically, CPU 101 specifies image data that has been arranged on the spread displayed on spread display unit 503 before the editing operation is accepted, and image data for which a new addition instruction has been issued by the editing operation. Note that immediately after the editing screen is displayed as a result of manual generation being selected as the method for creating album data, no image data is arranged on the spread. Therefore, when an instruction to add image data is issued when no image data is arranged on the spread, only the image data for which a new addition instruction has been issued by the editing operation is specified. CPU 101 also acquires the feature amount of the image data specified here.

[0140] In S1804, the CPU 101 generates a template to be used for automatic layout of the spread specified in S1802. Details of this process are similar to those of S409, but some differences will be described below.

[0141] In S601 of the automatic layout process executed based on an instruction for automatic generation, the image data was arranged in chronological order. However, in S601 of the automatic layout process executed based on an editing operation, the CPU 101 first arranges the image data arranged on the spread based on the arrangement order on the spread. After that, the CPU 101 arranges the image data for which a new addition instruction has been given after the image data arranged based on the arrangement order on the spread. Note that this is not limited to the above, and the CPU 101 may arrange the image data again in chronological order, as in the automatic layout process executed based on an instruction for automatic generation.

[0142] In S1805, the CPU 101 executes template scoring. The details of this process are the same as those of S410.

[0143] In S1806, the CPU 101 selects one or more templates from the templates generated in S1804 based on the evaluation (score) added in S1805. Details of this process are similar to those of S411.

[0144] In S1807, the CPU 101 generates a layout image by arranging image data corresponding to the spread specified in S1802 in each slot in the template selected in S1806. Details of this process are similar to those of S412.

[0145] In S1808, the CPU 101 scores the layout image generated in S1807. Details of this process are similar to those in S413.

[0146] In S1809, CPU 101 determines whether or not layout images have been generated based on all of the templates generated in S1804. If the determination is YES, CPU 101 proceeds to S1810, and if the determination is NO, CPU 101 returns to S1807, where it identifies a template for which layout images have not yet been generated, and generates a layout image based on the identified template.

[0147] In S1810, the CPU 101 selects a layout image to be arranged in the double-page spread specified in S1802 from among the layout images generated in S1807. Details of this process are similar to those of S415.

[0148] In S1811, the CPU 101 displays the layout image selected in S1810 in the double-page spread display portion 503.

[0149] By adopting such a configuration, even in the automatic layout process executed based on the editing operation, a layout image can be generated using an appropriate template.

[0150] In this embodiment, the editing screen 501 can display candidates of templates that can be used to edit the layout image displayed in the two-page spread display section 503 in the candidate display area 506. Then, the user can change the layout image displayed in the two-page spread display section 503 to a layout image using the selected template by selecting one of the candidates. As the template candidates, for example, templates used in the layout image generated in S412 or S1806 but not selected in S415 or S1809 are displayed. Note that at this time, for example, the templates used in the layout image generated in S412 or S1806 but not selected in S415 or S1809 may be displayed in descending order of score. Also, for example, templates with high scores may be extracted from the templates used in the layout image generated in S412 or S1806 but not selected in S415 or S1809. Then, the extraction may be controlled so that only the templates with high scores are displayed and the templates with low scores are not displayed. Also, for example, a template other than the template used for the layout image generated in S412 or S1806 but not selected in S415 or S1809 may be displayed. Specifically, for example, a template stored in advance in the album creation application may be displayed instead of a template automatically generated based on the characteristics of image data selected by the user. Also, for example, if some templates are deleted based on the determination of similarity in S411, control may be performed so that those templates are not displayed in the candidate display area 506. This can prevent a plurality of similar template candidates from being arranged in the candidate display area 506. By selecting one of the templates displayed in the candidate display area 506, the user can change the layout image to be arranged in the two-page spread displayed in the two-page spread display unit 503 to one using the selected template. At this time, if the user selects a template used for the layout image generated in S412 or S1806 but not selected in S415 or S1809, the layout image has already been generated, so the CPU 101 displays the generated layout image.However, when the user selects a template that is pre-stored in the album creation application, the CPU 101 executes automatic layout processing using the selected template and displays a layout image.

[0151] Note that, instead of template candidates, layout information generated by performing automatic layout processing using the template candidates (i.e., layout information candidates) may be displayed in the candidate display area 506. In this case, the candidate display area 506 displays layout images that were generated in S412 or S1806 but not selected in S415 or S1809.

[0152] The user can switch the mode of the editing screen 501 from the automatic editing mode to the manual editing mode by performing a predetermined operation such as pressing a button (not shown) on the editing screen 501. The automatic editing mode is a mode in which, when image data is added to a spread, the process shown in FIG. 18 is executed and a layout image is automatically generated. The manual editing mode is a mode in which, when image data is added to a spread, the layout position and size of the added image data are manually specified by the user to generate a layout image. The user can select a desired editing method by switching between these modes.

[0153] When the layout images arranged on each spread are edited in this manner, the layout information is also edited to output the edited layout images. After editing, the user can press order button 505 to order an album based on the edited layout information.

[0154] In this way, even after the automatic layout process has been executed, the user can edit the album data and layout information as appropriate.

[0155] (Other embodiments) The present invention is not limited to the above-mentioned embodiment. For example, in the above-mentioned embodiment, the above-mentioned image selection process is used in the automatic layout process of an album. However, for example, the image selection process may be used in a presentation function that automatically presents image data to be printed to a user. That is, the above-mentioned image selection process may be executed by a program that executes the presentation function. In addition, the present invention can be applied to a form in which a single-sheet print is created. In this case, the CPU 101 may perform processing by regarding, for example, one spread in the above-mentioned embodiment as one single-sheet print. In addition, since only one sheet of image data is generally laid out in a single-sheet print, the template for a single-sheet print has only one slot. Note that, if the number of prints for each scene can be set, the CPU 101 may perform processing by regarding one spread in the above-mentioned embodiment as a set number of single-sheet prints.

[0156] In the above embodiment, in the template generation process, multiple templates are generated for one spread or page according to the characteristics of the image data, but the present invention is not limited to this. For example, only one template may be generated for one spread or page. In this case, for example, the template may not be scored.

[0157] In the above-described embodiment, the shape of the slot is determined according to the characteristics of the image data in the template generation process to generate a template suitable for the image data, but the present invention is not limited to this form. For example, the position, size, etc. of the slot in the template may be determined according to the characteristics of the image data. Specifically, for example, the template may be generated by controlling the slot in which image data representing a large-sized image is placed to be placed on the left page of the template. Also, for example, the size of the slot in which image data representing a large-sized image is placed may be controlled to be larger than the size of the slot in which image data representing a small-sized image is placed.

[0158] In the above embodiment, in the process of generating a layout image in the automatic layout process, only templates newly generated in accordance with the characteristics of image data are used, but the present invention is not limited to this. A layout image may be generated using not only a newly generated template, but also a template previously stored in the album creation application.

[0159] In the above-described embodiment, after generating a plurality of templates based on the characteristics of the image data, the image data is arranged in the slots of the plurality of templates to generate a plurality of layout images. Then, one of the plurality of layout images is specified based on the score of the template, and the specified layout image is displayed. However, the present invention is not limited to this form, and for example, before generating a layout image, one or more templates may be specified based on the score of the template, and one or more layout images may be generated using only the specified template. When a plurality of layout images are generated in this way, one of them is specified as the layout image to be displayed / output on the double-page display unit 503, as shown in S415. In this specification, the score of the template may or may not be referred to (i.e., only the score of the layout image may be referred to).

[0160] In the above-described embodiment, the slots included in the template newly generated based on the characteristics of the image data are arranged so that they do not overlap with each other. However, this is not limited to this form, and the slots may be arranged so that some of the slots overlap with each other.

[0161] In the above-described embodiment, the evaluation (scoring) is performed only on the template newly generated based on the characteristics of the image data, but the present invention is not limited to this. For example, in a form in which an automatic layout process is performed using a template previously stored in an album creation application, the template previously stored in the album creation application may be evaluated. Then, the evaluation of the template may be referred to to specify a layout image to be output.

[0162] In the above embodiment, the image processing device that executes the automatic layout process is an image processing device that exists in a local environment, but the image processing device may be, for example, an image processing device on a network server. In this case, the image processing device can execute the automatic layout process by uploading image data to the image processing device by a user.

[0163] In the above embodiment, the evaluation is performed by assigning a score to each evaluation such as image scoring, template scoring, and layout image scoring, but the present invention is not limited to this form. That is, the evaluation may be performed without using a score, and for example, the evaluation may be performed by assigning evaluations such as "◎", "◯", "△", and "×" in descending order of the evaluation, and scene classification and image selection, etc. may be performed based on the assigned evaluations.

[0164] Each of the above-mentioned embodiments can also be realized by executing the following processing. That is, software (programs) that realize the functions of the above-mentioned embodiments are supplied to a system or device via a network or various storage media, and a computer (CPU, MPU, etc.) of the system or device reads and executes the program. The program may be executed by one computer, or may be executed by multiple computers in cooperation with each other. It is not necessary to realize all of the above-mentioned processing by software, and some or all of the processing may be realized by hardware such as ASIC. The CPU is also not limited to one that performs all processing by one CPU, and multiple CPUs may perform processing while appropriately coordinating with each other. [Explanation of symbols]

[0165] 201 Image processing device

Claims

1. The computer of the image processing device a first identification step of identifying one or more image data; an evaluation step for evaluating a plurality of templates; a generating step of generating a plurality of layout images by arranging the identified one or more image data in one or more slots of each of the plurality of templates; a second identifying step of identifying at least one layout image of the plurality of layout images based at least on evaluation of the plurality of templates; an output step of outputting the at least one layout image identified; Run the command, The evaluation of the plurality of templates is performed based on at least one of a feature related to a slot included in each template, a feature related to a blank area that is an area other than the slots in each template, and a feature related to a margin between each of the slots included in each template; The evaluation of the plurality of templates is performed based on at least one of a position of the blank area and a distance between the margins.

2. The computer of the image processing device a first identification step of identifying one or more image data; an evaluation step for evaluating a plurality of templates; a template identification step of identifying one or more templates from the plurality of templates based on an evaluation of the plurality of templates; a generating step of generating one or more layout images by arranging the identified one or more image data in one or more slots of the one or more templates identified based on the evaluation of the plurality of templates; an output step of outputting at least one layout image from the one or more generated layout images; A program characterized by executing the above.

3. The computer of the image processing device a first identification step of identifying one or more image data; an evaluation step for evaluating a plurality of templates; a generating step of generating a plurality of layout images by arranging the identified one or more image data in one or more slots of each of the plurality of templates; a second identifying step of identifying at least one layout image of the plurality of layout images based at least on evaluation of the plurality of templates; an output step of displaying and outputting the at least one specified layout image; a receiving step of receiving an editing operation for the displayed layout image; a display step of displaying, after the layout image is displayed, one or more templates that can be used for editing the displayed layout image; a changing step of changing the displayed layout image to the layout image generated by using a template selected by the user from the one or more displayed templates when the editing operation for changing a template used in the generated layout image is accepted from a user; Run the command, The one or more templates that can be used to edit the displayed layout image include one or more templates that are highly rated among the evaluated templates, and are controlled so as not to include one or more templates that are low rated among the evaluated templates.

4. 4. The program according to claim 2 or 3, wherein the evaluation of the plurality of templates is performed based on at least one of features relating to the slots of each template, features relating to the margin areas other than the slots of each template, and features relating to the margins between the slots of each template.

5. 5. The computer-readable medium according to claim 1, wherein the evaluation of the plurality of templates is performed based on at least a size of the blank area.

6. The plurality of templates includes a first template and a second template; 6. The program according to claim 5, further comprising control for evaluating the second template higher than the first template when the margin area of ​​the first template is larger than the margin area of ​​the second template.

7. 7. The computer-readable medium according to claim 4, wherein the evaluation of the plurality of templates is performed based at least on a position of the blank area.

8. The plurality of templates includes a first template and a second template; 8. The program according to claim 7, wherein, when the margin area of ​​the first template is located in the left and right portions within the first template and the margin area of ​​the second template is located in the upper and lower portions within the second template, even if the margin area of ​​the first template and the margin area of ​​the second template are the same in size, the second template is controlled to be evaluated higher than the first template.

9. 9. The computer-readable medium according to claim 4, wherein the evaluation of the plurality of templates is performed based at least on the distance between the margins.

10. The plurality of templates includes a first template and a second template; the first template has a first margin and a second margin as margins between slots included in the first template; the second template has a third margin and a fourth margin as margins between slots included in the second template; 10. The program according to claim 9, characterized in that, when the distance between the first margin and the second margin is shorter than the distance between the third margin and the fourth margin, the evaluation of the margin area of ​​the second template is controlled to be higher than the evaluation of the margin area of ​​the first template.

11. 11. The computer-readable medium according to claim 4, wherein the evaluation of the plurality of templates is performed based at least on the size of the slot.

12. The plurality of templates includes a first template and a second template; the first template and the second template each have a plurality of slots; 12. The program according to claim 11, wherein when a difference between a size of the smallest slot among the plurality of slots in the first template and an average size of the plurality of slots in the first template is greater than a difference between a size of the smallest slot among the plurality of slots in the second template and an average size of the plurality of slots in the second template, the program is controlled so that the evaluation of the second template is higher than the evaluation of the first template.

13. The program according to any one of claims 1 to 10, further comprising a template generation step of newly generating a template having at least one or more slots in which the identified one or more image data are placed, based on characteristics of the identified one or more image data.

14. 14. The program of claim 13, wherein the plurality of templates, including a newly generated template, are evaluated based on the identified features of the one or more pieces of image data.

15. The program according to claim 11 or 12, characterized in that at least one of the shape, size, and position of the one or more slots of the newly generated template is identified based on the characteristics of the identified one or more image data.

16. 16. The program of claim 15, wherein an aspect ratio of the one or more slots of a newly generated template is identified based on an aspect ratio of the one or more image data items identified.

17. 17. The program according to claim 15 or 16, wherein the number of slots included in the newly generated template is identified based on the number of image data included in the identified one or more image data.

18. a plurality of templates are newly generated based on the characteristics of the one or more pieces of image data identified; The program according to any one of claims 13 to 17, characterized in that a plurality of layout images are generated by placing the identified one or more image data in the one or more slots that each of the newly generated multiple templates has.

19. 3. The program according to claim 1, wherein the output of the layout image is a display of the layout image.

20. 20. The program according to claim 19, further comprising a receiving step of receiving an editing operation on the displayed layout image.

21. a display step of displaying, after the layout image is displayed, one or more templates that can be used for editing the displayed layout image; The program according to claim 20, further comprising a change step of, when the editing operation for changing the template used in the generated layout image is accepted from a user, changing the displayed layout image to the layout image generated using a template selected by the user from the one or more displayed templates.

22. The program according to claim 21, characterized in that the one or more templates usable for editing the displayed layout image include one or more templates with high ratings among the evaluated plurality of templates, and are controlled so as not to include one or more templates with low ratings among the evaluated plurality of templates.

23. 23. The program according to claim 3, wherein the evaluated plurality of templates are displayed in descending order of evaluation as one or more templates usable for editing the layout image.

24. The program according to any one of claims 1 to 23, further comprising an album data generation step of generating album data for creating an album in which a plurality of different layout images are printed by generating a plurality of different layout images in which one or more different image data are arranged.

25. 25. The program according to claim 24, further comprising: an ordering step of executing a process for ordering an album created from the generated album data.

26. An image processing device, A first specifying means for specifying one or more image data; an evaluation means for evaluating a plurality of templates; a generating means for generating a plurality of layout images by arranging the identified one or more image data in one or more slots of each of the plurality of templates; a second identification means for identifying at least one layout image from among the plurality of layout images based at least on evaluation of the plurality of templates; an output unit for outputting the at least one specified layout image; having The evaluation of the plurality of templates is performed based on at least one of a feature related to a slot included in each template, a feature related to a blank area that is an area other than the slots in each template, and a feature related to a margin between each of the slots included in each template; 20. An image processing apparatus comprising: a processor for processing an image based on a position of the blank area of ​​the image; a processor for processing the blank area of ​​the image;

27. An image processing device, A first specifying means for specifying one or more image data; an evaluation means for evaluating a plurality of templates; a template identification means for identifying one or more templates from the plurality of templates based on an evaluation of the plurality of templates; a generating means for generating one or more layout images by arranging the identified one or more image data in one or more slots of each of the one or more templates identified based on the evaluation of the plurality of templates; an output unit for outputting at least one of the generated one or more layout images; 13. An image processing device comprising:

28. An image processing device, A first specifying means for specifying one or more image data; an evaluation means for evaluating a plurality of templates; a generating means for generating a plurality of layout images by arranging the identified one or more image data in one or more slots of each of the plurality of templates; a second identification means for identifying at least one layout image from among the plurality of layout images based at least on evaluation of the plurality of templates; an output unit for outputting the at least one specified layout image by displaying it; a receiving means for receiving an editing operation for the displayed layout image; a display means for displaying, after the layout image is displayed, one or more templates that can be used for editing the displayed layout image; a change means for changing the displayed layout image to the layout image generated using a template selected by the user from the one or more displayed templates when the editing operation for changing a template used in the generated layout image is accepted from a user; having an image processing device characterized in that the one or more templates usable for editing the displayed layout image include one or more templates with high ratings among the evaluated plurality of templates, and are controlled so as not to include one or more templates with low ratings among the evaluated plurality of templates.

Citation Information

Patent Citations

  • JP1975043163A

  • Information processing apparatus, control method, and program

    JP2017117406A

  • Image processing device, image processing method, program and recording medium

    WO2019130823A1

  • Image presentation system, image presentation method, program, and recording medium

    WO2019132016A1