Information processing device, control method for information processing device, program, and storage medium

The information processing device addresses the issue of subjects being cut off during aspect ratio changes by adjusting and trimming images to fit the new document aspect ratio, ensuring complete and intact image display.

JP2024129456APending Publication Date: 2024-09-27CANON KK
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
JP2023038677
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2023-03-13
Publication Date
2024-09-27

AI Technical Summary

Technical Problem

Existing document editing methods fail to ensure that subjects within images are not cut off when the aspect ratio of a document is changed, leading to incomplete or distorted representations.

Method used

An information processing device and method that adjusts the aspect ratio of a document and its image placement area, and trims images based on this adjustment to ensure the subject remains intact within the new aspect ratio.

Benefits of technology

Ensures that images are appropriately cropped and displayed after aspect ratio changes, preventing subjects from being cut off and maintaining the integrity of the image content.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 2024129456000001
    Figure 2024129456000001
Patent Text Reader

Abstract

To provide a mechanism in which, when the aspect ratio of a document is changed, an image arranged in a document after the aspect ratio is changed is made into an image that is more appropriately trimmed.SOLUTION: An information processing device includes receiving means that receives an instruction to change the aspect ratio of a document including an image placement area, adjustment means that changes the aspect ratio of the document and adjusts the aspect ratio of the image placement area on the basis of the instruction received by the receiving means, control means that controls trimming of an image to be placed in the image placement area on the basis of the aspect ratio of the image placement area after adjustment by the adjustment means, and display control means that controls the display means to display the document after the aspect ratio has been changed on the basis of the instruction, with the image trimmed by the control means placed in the adjusted image placement area.SELECTED DRAWING: Figure 4
Need to check novelty before this filing date? Find Prior Art

Description

[Technical field]

[0001] The present disclosure relates to an information processing device capable of displaying a document in which an image is arranged, a control method for the information processing device, a program, and a storage medium. [Background technology]

[0002] A method of editing a document using an application on a personal computer is used. In such a document editing method, the paper size of the document can be changed to any size. When changing the paper size of the document, the application adjusts the document by enlarging or reducing objects such as text and images in the document according to the change in paper size. A photo is cropped based on the size and shape of the image placement area and displayed on the document.

[0003] At this time, when the aspect ratio is adjusted by changing the paper size, the aspect ratio of the image placement area is changed. Depending on the shape of the adjusted image placement area, the "subject" may be cut off if the trimming position before adjustment is left unchanged. Patent Document 1 describes a technology that assumes a photo taken with a digital camera or the like and calculates several candidates for the trimming position by identifying the position of the "subject" in the photo. [Prior art documents] [Patent documents]

[0004] [Patent Document 1] JP 2014-143673 A Summary of the Invention [Problem to be solved by the invention]

[0005] However, the technology of Patent Document 1 can calculate a trimming position centered on the "subject," but it also generates a trimming result in which the "subject" does not fit within the image layout area. Therefore, the problem of the "subject" being cut off from the image layout area still exists.

[0006] In view of the above-mentioned problems, the present disclosure aims to provide a mechanism that, when the aspect ratio of a document is changed, results in an image that is more appropriately cropped when placed in the document after the aspect ratio is changed. [Means for solving the problem]

[0007] The information processing device disclosed herein is characterized by having a receiving means for receiving an instruction to change the aspect ratio of a document including an image placement area, an adjustment means for changing the aspect ratio of the document and adjusting the aspect ratio of the image placement area based on the instruction received by the receiving means, a control means for controlling trimming of an image to be placed in the image placement area based on the aspect ratio of the image placement area after adjustment by the adjustment means, and a display control means for controlling the display means to display the document after the aspect ratio has been changed based on the instruction, with the image trimmed by the control means placed in the adjusted image placement area. Effect of the Invention

[0008] According to the present disclosure, when the aspect ratio of a document is changed, an image placed in the document after the aspect ratio is changed is an image that has been more appropriately cropped. [Brief description of the drawings]

[0009] [Figure 1] FIG. 2 is a block diagram showing an example of the hardware configuration of a printing apparatus. [Diagram 2] FIG. 1 is a block diagram showing an example of a hardware configuration of a personal computer. [Diagram 3] FIG. 1 is a block diagram showing an example of the configuration of a personal computer. [Figure 4] 11 is a flowchart showing a process of a document editing application. [Diagram 5] FIG. 13 is a diagram showing a paper size selection screen. [Figure 6] A diagram showing how text can be aligned. [Figure 7] 1A and 1B are diagrams showing an example of a method for arranging text within an image object. [Figure 8] FIG. 13 is a diagram showing a method for arranging image objects. [Figure 9] FIG. 13 is a diagram showing an example of cropping an image object. [Figure 10] A diagram showing how to position the "subject." [Figure 11] 11 is a flowchart showing a trimming process. [Figure 12] FIG. [Figure 13] FIG. [Figure 14] FIG. 13 is a diagram showing a trimming candidate selection screen. [Figure 15] FIG. 13 is a diagram showing the document selection screen in which the cropping results of the image object have been corrected. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0010] Hereinafter, embodiments of the present disclosure will be described with reference to the accompanying drawings. Note that the following embodiments do not limit the present disclosure, and not all combinations of features described in the embodiments are necessarily essential to the solution of the present disclosure. Also, each process (step) in the flow chart is indicated using a reference number beginning with "S". Since the subject of this disclosure is photo cropping, photos and images other than photos are used to distinguish between them. Also, in this disclosure, the term "subject" is used as a term referring to the subject of photography. Image objects that can be operated on a personal computer have a different meaning from "subject".

[0011] [First embodiment] The process of a document editing application on a personal computer according to this embodiment will be described below with reference to the drawings. The document data to be edited by the document editing application may be document data of a general office document, or may be document data of a document with a specific purpose, such as a poster, postcard, or presentation data. The document editing application has various functions for editing document data, and is capable of resizing, moving, or rotating objects in the document data, and trimming image objects.

[0012] <Hardware configuration and applications> 1 is a block diagram showing a hardware configuration of a printing device 101 according to this embodiment. The printing device 101 includes a main board 112 that performs overall control, a communication unit 110, and an operation panel 111. Here, the communication unit 110 functions as a communication section of the printing device 101. The communication unit 110 may be, but is not limited to, a wireless LAN unit. For example, it may be a Bluetooth (registered trademark) unit, a wired LAN unit, or the like.

[0013] The main board 112 is equipped with a CPU 113, a program memory 114, a data memory 115 including an image memory 116, a scanner 117, a communication control circuit 118, an operation unit control circuit 119, and a printing unit 120. The above devices are connected to each other via an internal bus 121. The CPU 113 operates according to a control program stored in a ROM-type program memory 114 and data in a RAM-type data memory 115, which are connected via the internal bus 121. The CPU 113 controls the scanner 117 to read an original document, and stores the read document data in an image memory 116 in the data memory 115.

[0014] The CPU 113 can also control the printing unit 120 to print document data in the image memory 116 in the data memory 115 onto a recording medium. The CPU 113 can also transmit scanned document data to the central processing unit 202 of the personal computer 200 via the communication unit 110 controlled by the communication control circuit 118. The CPU 113 communicates with the central processing unit 202 of the personal computer 200 by controlling the communication unit 110 using the communication control circuit 118. The CPU 113 can display the status of the printing device 101 and a function selection menu on the operation panel 111 by controlling the operation unit control circuit 119, and can accept operations from the user. The printing device 101 according to this embodiment can receive and print document data in various data formats, such as a JPEG file format.

[0015] FIG. 2 is a block diagram showing a hardware configuration of a personal computer 200 on which a document editing application 301 according to the present embodiment runs. The personal computer 200 includes an input device 201, a central processing unit 202, a display device 203, and a storage device 204. The input device 201 is a device such as a keyboard or a mouse that accepts input from a user. The central processing unit 202 has at least one processor, operates according to programs and data stored in the storage device 204, and controls the personal computer 200. The display device 203 is a display device such as a liquid crystal monitor that displays document data being processed by the personal computer 200. The display device 203 may be combined with the input device 201, and may be, for example, an operation panel or a touch panel. In addition to the programs and data used by the central processing unit 202 described above, the storage device 204 stores the entity of the document editing application 301, document templates, fonts, decoration data, and the like. The storage device 204 may be an internal hard disk, an internal SSD, an external storage medium such as a memory card, or the like. The RAM 208 is a memory (storage medium) that functions as a working memory when a program is executed. Here, the personal computer 200 is assumed to be a desktop personal computer or a notebook computer, but is not limited to these. For example, the personal computer 200 of this embodiment also includes a smartphone, a tablet terminal, a personal digital assistant (PDA), and the like.

[0016] The personal computer 200 may include the printing device 101, the image input device 206, or the external storage device 207. The printing device 101 will not be described. The image input device 206 includes, but is not limited to, a film scanner, a flatbed scanner, or a digital camera. For example, the image input device 206 may be the scanner 117 of the printing device 101 described above. The external storage device 207 is an external storage device corresponding to a medium used in a digital camera or the like. It is also possible to import image data stored in the external storage device 207 into document data as an object. The external storage device 207 may be, but is not limited to, an external hard disk, an SSD, a USB memory, or an SD card. The external storage device 207 may be a cloud storage device to which the personal computer 200 can be connected via a network using a communication IF (not shown).

[0017] FIG. 3 is a block diagram showing a functional configuration of a document editing application 301 that operates on a personal computer 200, which is one aspect of an information processing device. All of the functions of the functional blocks shown in FIG. 3 are actually functions executed by the central processing unit 202 based on the program of the document editing application 301. The document selection acceptance unit 302 selects document data to be edited. The document display and editing unit 303 displays and edits the document data selected by the document selection acceptance unit 302. The paper size change acceptance unit 304 accepts a change in the paper size of the document being edited by the document display and editing unit 303. The paper size change processing unit 305 changes the paper size of the document data according to the paper size changed by the paper size change acceptance unit 304. When the paper size is changed by the paper size change processing unit 305, the object adjustment unit 306 adjusts each object included in the document data being edited by the document display and editing unit 303 by resizing, moving, rotating, or the like, to match the changed paper size. The trimming processing unit 307 performs trimming processing on the arranged image based on the shape of the image arrangement area included in the changed image object when the image object is adjusted by the object adjustment unit 306. The candidate generation unit 321 receives the processing results of the paper size change reception unit 304, the paper size change processing unit 305, the object adjustment unit 306, and the trimming processing unit 307 and generates candidates for document data after the paper size change. The candidate display control unit 322 displays the document data candidates generated by the candidate generation unit 321 in a specific order. The candidate selection reception unit 323 accepts the user's selection from the document data candidates displayed by the candidate display control unit 322. The print processing unit 331 generates print data from the document data and transmits an instruction to the printing device 101 to print the print data.

[0018] <About resizing image objects> Fig. 4 is a flowchart showing the processing by the document editing application 301. This processing is realized by loading a program stored in the storage device 204 into the RAM 208 and executing it by the central processing unit 202. The processing of the flowchart in Fig. 4 is started when the user starts the document editing application 301.

[0019] In S401, the central processing unit 202 accepts the selection of document data to be edited. Various document data according to the purpose is pre-stored as templates in the storage device 204, and the document editing application 301 displays a list of document templates on the display device 203 and accepts the user's selection. The user uses the input device 201 to select the document data he or she wishes to use from the list of document templates displayed on the display device 203. Note that the document data may be selected from templates prepared in advance, or the user may select a document that he or she created in the past. Once the user has selected the document data, the process proceeds to S402.

[0020] In S402, in response to the user's selection in S401, the central processing unit 202 opens the document data stored in the storage device 204 and displays it on the display device 203. The document data displayed on the display device 203 is in a state where the document can be edited via the input device 201. Once the document data is displayed on the display device 203, the process proceeds to S403.

[0021] In S403, the central processing unit 202 accepts a user's operation to change the paper size of the document displayed in S402, and notifies the paper size change acceptance unit 304 of the changed paper size. When changing the paper size, a list of paper sizes as shown in FIG. 5 is displayed on the display device 203, and the user selects a desired paper size using the input device 201. If the document template is created in A2 size, A2 is selected by default, but the user changes it to a desired size. An example of a case where the paper size is changed is a case where the paper on which the document data is to be printed by the printing device 101 is different from the paper size of the document template. In addition to displaying the paper size in a list, the user may be allowed to select whether to use the paper in portrait or landscape orientation, or may be allowed to set an arbitrary size numerically. When the user changes the paper size, the process proceeds to S404.

[0022] In S404, the central processing unit 202 changes the paper size of the document data displayed in S402 to match the changed paper size accepted by the paper size change acceptance unit 304 in S403. This changes the size of the document. When the process of changing the paper size is completed, the processes shown in S405 to S414 are executed. In S405 to S414, one object in the document data is treated as a target object, and the size and position of the target object in the document data are adjusted according to the type and arrangement of the object so as to match the changed paper size. The processes shown in S405 to S414 are repeated until the processes for all objects in the document data are completed.

[0023] In S405, the central processing unit 202 determines whether the type of the target object, which is one object in the document data, is an image. The type of object is an image, a figure, text, etc., and the central processing unit 202 makes the determination by referring to information accompanying the target object. If it is determined that the target object is not an image, the process proceeds to S406. If it is determined that the target object is an image, the process proceeds to S407.

[0024] In S406, the central processing unit 202 adjusts the size according to the target object. As an example of the process of S406, a case where it is determined in S405 that it is a text object will be described. In the case of a text object (hereinafter referred to as "text"), the process is divided according to whether another object exists immediately below the target text. The determination of whether another object exists immediately below is based on area information of the target text and an object in a layer lower than the target text. If there is another object below that has an area that completely contains the area of ​​the target text, it is determined that there is another object immediately below the target text. If there is no other object immediately below the target text, the font size of the text is enlarged or reduced according to the magnification of the side of the paper that has the lower magnification ratio. For example, when the paper size of 100 cm long x 50 cm wide is changed to the paper size of 50 cm long x 30 cm wide, the font size is reduced to half by 50 / 100 according to the magnification of the vertical side that has the lower magnification ratio. In this case, the font size is changed, but the aspect ratio of the font is not changed. If the aspect ratio of the font is changed, and the change in paper size is large, the font will be distorted and the impression will be different from the original text design.

[0025] As for the movement process, the central processing unit 202 moves the target object in accordance with the change in the aspect ratio of the paper size. As shown in FIG. 6, the text is moved so that the position ratio of the reference point of the text is the same before and after the paper size change. The reference point when moving differs depending on the text alignment setting (left justification, center justification, and right justification) as shown in FIG. 6(a) to FIG. 6(c). In the case of left justification, the reference point is the center of the left side of the text, in the case of center justification, the center of the text, and in the case of right justification, the center of the right side of the text. In addition, in the case of vertical writing, the reference point is the center of the top side of the text, the center of the text, or the center of the bottom side of the text according to the alignment setting. By changing the reference point in this way, for example, when the paper size of a document in which multiple left justified texts are vertically arranged with their left ends aligned, each text can be moved while aligning the left end position, and the layout does not collapse.

[0026] If there is another object immediately below the target text, the central processing unit 202 enlarges or reduces the text and moves it so as to maintain the relative size and positional relationship with the other object immediately below the target text. For example, as shown in FIG. 7, if there is an image object shown by a black figure at the top of the document data and there is text on the left side of the image object, the following process is performed. That is, the central processing unit 202 reduces the font of the text in accordance with the reduction of the image object, and places the text at the left side of the black figure. In the example of FIG. 7, the text is left-justified, so that the center of the left side of the text is used as the reference point and the text is placed in the image object so that the positional relationship between the image object and the reference point of the text does not change. In this way, by enlarging or reducing the text and moving it to match the other object immediately below the target text, the balance of the positional relationship between the target text and the object immediately below the target text is not lost. When the process for all objects in the document data is completed, the process proceeds to S415. When the process for all objects in the document data is not completed, the process returns to S405.

[0027] If the central processing unit 202 determines in S405 that the target object is an image, the central processing unit 202 adjusts the size of the image arrangement area of ​​the target object in S407. The image arrangement area is a frame that determines the shape of the image set in the image object to be displayed on the document, and the image object is composed of original image data and an image arrangement area. The image object is trimmed based on the image arrangement area and displayed (arranged) on the document, so for example, if the image arrangement area is a star shape, the original image data is cut out into a star shape and displayed on the document. If the image arrangement area is a rectangle, the original image data is cut out into a rectangle and displayed on the document data. If the image arrangement area is large, the image object is displayed in a large area on the document data. If the image arrangement area is small, the image object is displayed in a small area on the text data. In this embodiment, trimming refers to the shape and size of the image arrangement area, and a process of generating an image object that appears to be displayed on the document data from the original image data. Note that the original image data included in the image object is not deformed by trimming. Furthermore, trimming may be performed based on only either the size or the shape of the image arrangement area, rather than on both the size and the shape of the image arrangement area.

[0028] The size adjustment process for the image placement area is divided depending on whether there is another object directly below the image object. If there is no other object directly below the image object, the central processing unit 202 enlarges or reduces, and moves the image object so as to maintain the ratio of the image placement area to the entire paper, as shown in Figures 8(a) and 8(b). At this time, the aspect ratio of the image placement area is not maintained. If there is another object directly below the image object, the central processing unit 202 enlarges or reduces, and moves the image object so as to maintain the relative size and positional relationship with the other object directly below the image object. When the size adjustment of the image placement area of ​​the target image object is completed, the process proceeds to S408.

[0029] In S408, the central processing unit 202 acquires the size of the image layout area of ​​the target image object adjusted in S407, and the process proceeds to S409. The trimming process, which will be described later, is performed according to the aspect ratio of the image layout area adjusted in S407 (based on the aspect ratio). Specifically, for example, if the image layout area after the change becomes horizontally long as shown in Fig. 9, the central processing unit 202 trims the original image data to the same horizontal aspect ratio as the image layout area. Similarly, if the image layout area after the change becomes vertically long, the central processing unit 202 trims the original image data to the same vertical aspect ratio as the image layout area.

[0030] In S409, the central processing unit 202 acquires original image data including the target image object, and the process proceeds to S410. The image data (which may also be simply referred to as an image) acquired here is the original data (e.g., an image file) before trimming of the image that was arranged in the image arrangement area of ​​the document data already displayed before the paper size was changed. In S410, the central processing unit 202 detects the "subject" appearing in the image from the original image data. In this embodiment, an object detection system using deep learning (hereinafter referred to as "object detection") is used to detect the "subject". When the detection of the "subject" from the original image data is completed, the process proceeds to S411. In S411, the central processing unit 202 calculates the number of "subjects" detected in S410. If the number of "subjects" detected is one, the process proceeds to S412. If the number of "subjects" detected is two or less than a predetermined number, the process proceeds to S413. If the number of "subjects" detected is zero or equal to or greater than a predetermined number, the process proceeds to S414. In the above example, the predetermined number is set to 10, but is not limited to this. The predetermined number may be set by a user input.

[0031] In S412, S413, or S414, the central processing unit 202 determines a pattern of the image based on the number of "subjects," and performs trimming of the target object using an appropriate trimming method for each pattern to generate a trimming result. Hereinafter, the pattern is referred to as a "photo pattern." The trimming method used in S412 is a first photo pattern, the trimming method used in S413 is a second photo pattern, and the trimming method used in S414 is a third photo pattern. The first photo pattern method, the second photo pattern method, and the third photo pattern method will be described later. When the trimming result of the target object is generated in S412, S413, or S414, the central processing unit 202 determines whether or not the processing for all objects in the document data is completed. If the processing for all objects in the document data is completed, the process proceeds to S415. If the processing for all objects in the document data is not completed, the process returns to S405.

[0032] In S415, the central processing unit 202 generates multiple candidates for the adjusted document data using the results of each object, and the process proceeds to S416. In S416, the central processing unit 202 displays the multiple candidates for the document data generated in S415 on the display device 203. That is, multiple documents after the aspect ratio change are displayed, in which multiple trimmed images, each trimmed to a different trimming range using the image of the original data of the image arranged before the change of the aspect ratio, are arranged in the adjusted image arrangement area. An example of the display in S416 will be described later with reference to FIG.

[0033] In S417, the central processing unit 202 accepts a user operation to select one of multiple candidates for document data displayed on the display device 203. In S418, the central processing unit 202 decides (confirms) the candidate selected in S417, and displays the selected document data on the display device 203 as an object to be edited. In S419, the central processing unit 202 accepts an editing operation from the user for the document data selected in S417 and displayed as an object to be edited in S418, and performs various editing processes according to the editing operation. For example, editing operations that can be accepted include an operation to adjust the display range (trimming range) of an image displayed in the image arrangement area, an operation to adjust the size, position, or shape of the image arrangement area itself, an additional arrangement of an image, and a deletion of an arranged image.

[0034] In S420, the central processing unit 202 determines whether or not there has been an operation (change instruction) to change the paper size of the document data to be edited. If there has been an instruction to change the paper size, the process proceeds to S403, and if not, the process proceeds to S421. In S421, the central processing unit 202 determines whether or not there has been an instruction to print or save the document data to be edited. If there has been an instruction to print or save, the process proceeds to S422, and if not, the process proceeds to S423.

[0035] In S422, if the central processing unit 202 has received a print instruction in S421, it generates print data of the document data to be edited, transmits the print data to the printing device 101, and issues a print instruction. As a result, a document reflecting the content edited by the above-mentioned processes is output to the printing device 101 in a printable state, and is printed by the printing device 101. For example, a poster with images and characters arranged is printed as the document. Also, if the central processing unit 202 has received a save instruction in S421, it saves the document data to be edited in the storage device 204. As a result, the document data reflecting the content edited by the above-mentioned processes is output to the storage device 204 and saved. Also, in response to an instruction from a user, the text data reflecting the edited content may be sent to a server on a network. Using the document data sent to the server, it is possible to order printing of the document to a printing company, or to post the document data to an SNS (social networking service) to display a document based on the document data on the SNS screen. In S423, the central processing unit 202 determines whether or not an operation has been performed to close (terminate) the document editing application 301. If an operation to close the document editing application 301 has not been performed, the process proceeds to S419 and the process is repeated. If an operation to close the document editing application 301 has been performed, the process in FIG. 4 is terminated.

[0036] In the above example, multiple candidates for document data are generated in S415, and a display example is described in S416, but the processing method is not limited to this. One piece of adjusted document data using the trimming result may be generated in S415, and S416 and S417 may be omitted, with the document data generated in S415 being displayed as an editing target in S418. In this way, the user's effort of selecting from multiple candidates can be reduced.

[0037] <About cropping of image objects> In the processing of S411 to S414 in the flowchart shown in FIG. 4, the central processing unit 202 performs processing in accordance with the photographic pattern, and then determines a cropping position so that the "subject" is placed in the image placement area according to a specific rule. FIG. 10 is a diagram showing the method of placing the "subject." FIG. 10(a) shows an example of the case where original image data 1001 is cropped and placed in an image placement area 1003 in adjusted document data 1002. As shown in FIGS. 10(b) to 10(g), the original image data is placed and cropped in up to six methods shown as "subject" placement examples 1004 to 1009. Note that the method of placing the "subject" is not limited to the above six methods.

[0038] The layout example 1004 shown in FIG. 10(b) is a layout method in which the original image data 1001 is laid out so as to fit as much of the image as possible into the image layout area 1003. Hereinafter, this layout method will be referred to as the "whole-oriented layout method." In this layout method, the original image data 1001 is trimmed so that its short side coincides with the corresponding side of the image layout area 1003. In the case of the original image data 1001, since the short side corresponds to the height, the central processing unit 202 lays out the original image data 1001 in the image layout area 1003 so that the height of the original image data 1001 coincides with the height of the image layout area 1003. In addition, this layout method does not refer to the coordinates of the "subject." In this layout method, the center of the original image data 1001 coincides with the center of the image layout area, and at least one of the vertical and horizontal ranges of the entire image fits within the image layout area.

[0039] 10(c) is an arrangement method in which the coordinates of the reference point of the "subject" are aligned with the coordinates of the center of the image arrangement area 1003. Hereinafter, this arrangement method will be referred to as "center arrangement." Arrangement example 1005 shows the trimming result when the head of a person in the original image data 1001 is detected as the "subject," and the central processing unit 202 arranges the "subject" in the center of the image arrangement area 1003.

[0040] Arrangement examples 1006 to 1009 shown in Figures 10(d) to 10(g) are an arrangement method for arranging the "subject" so that the coordinates of the four intersections of the lines dividing the image arrangement area 1003 vertically and horizontally into thirds match the coordinates of the reference point of the "subject." This arrangement method is called the "rule of thirds." This arrangement method obtains four patterns of trimming results in which the reference point of the "subject" is arranged at each of the four intersections. Arrangement examples 1006 to 1009 represent the trimming results when the head of a person in the original image data 1001 is detected as the "subject," and the central processing unit 202 arranges the "subject" at the upper left, upper right, lower left, and lower right, respectively.

[0041] From these various layout methods, a method that matches a photo pattern can be used for the document data, or a single image object (photo) can be trimmed using multiple layout methods, allowing the user to be presented with multiple trimming results. This allows the user to select an image object that suits his or her preferences. Also, by arranging the image object so that the "subject" fits within the image layout area 1003, it is possible to address issues such as the "subject" not being visible in the image object displayed in the document data, or the "subject" being cut off.

[0042] Fig. 11 is a flowchart showing in detail the image cropping process shown in S411 to S414 in Fig. 4. The process of S1101 corresponds to the process of S411 in Fig. 4. The processes of S1102 to S1109 correspond to the process of S412 in Fig. 4, the processes of S1110 to S1119 correspond to the process of S413 in Fig. 4, and the processes of S1120 and S1121 correspond to the process of S414 in Fig. 4. Fig. 4 shows a process of determining what cropping range determination conditions should be used based on the contents of the image to be arranged in the image arrangement area (the number of subjects, the size), and performing cropping within the cropping range based on the determined cropping conditions.

[0043] First, in S1101, the central processing unit 202 determines which photo pattern the original image data is, taking into consideration the number of "subjects" detected in S410. This determination corresponds to the processing of S411 in FIG. 4. In this embodiment, the photo pattern is determined by the number of "subjects", but the determination criteria are not limited to this. For example, the type of "subject" detected in S410 may be considered, or the position of the "subject" may be considered. Alternatively, the photo pattern of the original image data may be determined by a combination of these conditions. If the number of "subjects" is 1 in S1101, the central processing unit 202 determines that the photo has a notable characteristic in one detected "subject", and performs a trimming process on the original image data. This photo pattern is referred to as a "first photo pattern". When the trimming process on the original image data is completed, the process proceeds to S1102.

[0044] In S1102, the central processing unit 202 determines whether the detected "subject" is sufficiently large relative to the entire image. That is, the central processing unit 202 determines the size of the "subject" based on whether the size of the detected "subject" is equal to or larger than a predetermined ratio relative to the size of the entire original image data. In this embodiment, the central processing unit 202 determines the size of the "subject" based on whether the "subject" occupies 5% or more of the entire original image data. Note that the predetermined ratio is not limited to 5%. The value of the predetermined ratio may be set to an appropriate value by user input. If the central processing unit 202 determines that the "subject" is not large enough (the "subject" is smaller than the predetermined ratio), the process proceeds to S1108. If the central processing unit 202 determines that the "subject" is large enough (the "subject" is equal to or larger than the predetermined ratio), the process proceeds to S1103.

[0045] If the central processing unit 202 determines that the "subject" is not large enough, then when trimming is performed based on the "subject," only a very small range of the original image data is trimmed. Therefore, there is a high possibility that the trimmed image object will differ from the user's expectations. Therefore, in S1108, the central processing unit 202 calculates the coordinates for placement with an emphasis on the whole, and the process proceeds to S1109. In S1109, the central processing unit 202 trims the original image data based on the calculated coordinates. When it is the first photographic pattern and the "subject" is not large enough, there will be one trimming result.

[0046] If the central processing unit 202 determines in S1102 that the "subject" is sufficiently large, the central processing unit 202 calculates a reference point in the "subject" in S1103. In this embodiment, the central processing unit 202 uses the coordinates of the center of the "subject" as a reference, and the process proceeds to S1104. In S1104, the central processing unit 202 calculates the coordinates for trimming in the center arrangement. The central processing unit 202 calculates the coordinates using the reference point calculated in S1103, and the process proceeds to S1105. In S1105, the central processing unit 202 performs trimming on the original image data based on the coordinates calculated in S1104. If the trimmed image object does not have a size that fills the image arrangement area, or if the trimmed image object does not fit into the image arrangement area, the central processing unit 202 adjusts the coordinates so that the image object has an appropriate size and fits into the image arrangement area. After the trimming is performed, the process proceeds to S1106.

[0047] In S1106, the central processing unit 202 calculates the coordinates for trimming using the rule of thirds. At this time, the central processing unit 202 calculates the coordinates using the reference point calculated in S1103. Four coordinates, the upper left, upper right, lower left, and lower right, are calculated, and the process proceeds to S1107. In S1107, the central processing unit 202 performs trimming on the original image data based on the coordinates calculated in S1106. Since there are four coordinates calculated in S1106, four trimming results are obtained in S1107. If the trimmed image object does not have a size that fills the image arrangement area, or if the trimmed image object does not fit into the image arrangement area, the central processing unit 202 adjusts the coordinates so that the image object has an appropriate size and fits into the image arrangement area. Once the trimming is performed, the process proceeds to S1108.

[0048] In S1108 and S1109, the original image data is trimmed with emphasis on the overall image as described above. In the case of the first photo pattern, and the central processing unit 202 has determined that the "subject" is sufficiently large, six trimming results are obtained. When the process of S1109 is completed, the process of the flowchart shown in FIG. 11 ends.

[0049] Next, the trimming process in the case where the number of "subjects" is 2 or more and a predetermined number or less in S1101 will be described. In the following, in this embodiment, the predetermined number will be described as 9. The central processing unit 202 determines that the photo has a characteristic that one of the multiple detected "subjects" deserves attention, or that all of the "subjects" deserve attention. The central processing unit 202 performs trimming process according to the above characteristics. This photo pattern is called a "second photo pattern." In this embodiment, the threshold value for the number of "subjects" to be classified into the second photo pattern is 9, but is not limited to this. The user may change the threshold value for the number of "subjects" each time depending on the result of the detection of the "subject" or other factors.

[0050] In the trimming process of the second photo pattern, in order to determine a noteworthy "subject" from among the detected "subjects," first in S1110, the central processing unit 202 calculates a score for all the detected "subjects." In this embodiment, the score is calculated based on the area of ​​the detected "subject" and the matching rate of the object detection. In this specification, the "probability that the detected object is the object" calculated as a result of the object detection is referred to as the "matching rate." If the matching rate is high, it is interpreted that the object was clearly detected, that is, the "subject" is clearly visible in the photograph. Once the central processing unit 202 has calculated the scores for all the "subjects," the process proceeds to S1111.

[0051] In S1111, the central processing unit 202 calculates the "subject" with the highest score, and the process proceeds to S1112. The subsequent trimming process is performed based on this "subject". In S1112, the central processing unit 202 judges whether the "subject" with the highest score is sufficiently large with respect to the entire image. In this embodiment, the criterion is whether the "subject" occupies 5% or more of the size of the entire original image data. That is, the central processing unit 202 judges based on whether the size of the "subject" with the highest score with respect to the size of the entire original image data is a predetermined ratio or more. Note that the predetermined ratio is not limited to 5%. The value of the predetermined ratio may be set to an appropriate value independent of the value determined in S1102 by the user's input. If the central processing unit 202 judges that the "subject" is not large enough, the process proceeds to S1118. If the central processing unit 202 judges that the "subject" is large enough, the process proceeds to S1113.

[0052] If the central processing unit 202 determines in S1112 that the "subject" is not large enough, for the same reason as in the case of the first photographic pattern, the central processing unit 202 calculates the coordinates for placement with emphasis on the whole in S1118, and the process proceeds to S1119. In S1119, the central processing unit 202 performs cropping on the original image data based on the calculated coordinates. When the "subject" of the second photographic pattern with the highest score is not large enough, there is only one cropping result.

[0053] If the central processing unit 202 determines in S1112 that the "subject" with the highest score is sufficiently large, then in S1113 the central processing unit 202 calculates a reference point for the "subject" with the highest score. In this embodiment, the coordinates of the center of the "subject" with the highest score are used as a reference, and the process proceeds to S1114. In S1114, the central processing unit 202 calculates the coordinates for trimming in the center arrangement. The central processing unit 202 calculates the coordinates using the reference point calculated in S1113, and the process proceeds to S1115. In S1115, the central processing unit 202 performs trimming on the original image data based on the coordinates calculated in S714. If the trimmed image object does not have a size that fills the image arrangement area, or if the trimmed image object does not fit into the image arrangement area, the central processing unit 202 adjusts the coordinates so that the image object fits into the image arrangement area. Once the trimming is performed, the process proceeds to S1116.

[0054] In S1116, the central processing unit 202 calculates the coordinates for trimming using the rule of thirds. At this time, the central processing unit 202 calculates the coordinates using the reference point calculated in S1113. Four coordinates, the upper left, upper right, lower left, and lower right, are calculated, and the process proceeds to S1117. In S1117, the central processing unit 202 performs trimming on the original image data based on the coordinates calculated in S1116. Since there are four coordinates calculated in S1116, four trimming results are obtained in S1117. If the trimmed image object does not have a size that fills the image arrangement area, or if the trimmed image object does not fit into the image arrangement area, the central processing unit 202 adjusts the coordinates so that the image object has an appropriate size and fits into the image arrangement area. Once the trimming is performed, the process proceeds to S1118.

[0055] In S1118 and S1119, the original image data is trimmed with emphasis on the overall image as described above. In the case of the second photo pattern, and in the case where the central processing unit 202 judges that the "subject" with the highest score is sufficiently large, six trimming results are obtained. When the process of S1119 is completed, the process of the flowchart shown in FIG. 11 ends.

[0056] Next, if the number of "subjects" is greater than the threshold value of the second photo pattern in S1101 or is 0, the central processing unit 202 determines that the original image data is a photo having a characteristic that the "subject" of interest does not exist. The central processing unit 202 performs whole-focused trimming processing on the original image data. This photo pattern is called a "third photo pattern." In the trimming processing of the third photo pattern, the "subject" is not focused on, so the central processing unit 202 performs only whole-focused trimming. In S1120, the central processing unit 202 calculates the coordinates to be placed with whole focus, and the process proceeds to S1121. In S1121, the central processing unit 202 performs trimming on the original image data based on the calculated coordinates. When the trimming is completed, the process of the flowchart shown in FIG. 11 ends. Therefore, the trimming result of the third photo pattern is one.

[0057] <How to generate, display and select document data candidates> FIG. 12 is an example of a document selection screen that displays candidates for document data generated by the candidate generation unit 321 in S416. In S415, the candidate generation unit 321 generates candidates for adjusted document data using the trimming results obtained by the processes of S411 to S414. The candidates for document data may include variations due to adjustment of objects other than the image object obtained by the process of S406. The document selection screen 1201 shown in FIG. 12 has a result display area 1202 that displays thumbnails of the candidates for document data generated by the process of S415. The thumbnail display of the candidates for document data is performed by the candidate display control unit 322. In this embodiment, the order of thumbnails arranged in the result display area 1202 is the trimming results of whole focus, center arrangement, rule of thirds (upper left), rule of thirds (upper right), rule of thirds (lower left), and rule of thirds (lower right). However, the display order of thumbnails of the candidates for document data is not limited to this.

[0058] In addition, when there are multiple image objects in the candidate document data, the trimming result in which the trimming position is changed only for the image object that satisfies the condition for branching to S1103 or S1113 in S1102 or S1112 is used. The whole-focused trimming result is used for the image object that does not satisfy the condition for branching to S1103 or S1113. For example, in the case of a candidate document data in which two image objects, image objects A and B, exist in the document data, the image object A has the above-mentioned six trimming results, and the image object B has the whole-focused trimming result. On the document selection screen, thumbnails of six candidate document data are displayed, in which six trimming results are displayed for the image object A and the whole-focused trimming result is displayed for the image object B. When the user selects the centered trimming result for the image object A in S417, the document data in which the centered trimming result is arranged for the image object A and the whole-focused trimming result is arranged for the image object B is selected.

[0059] Also, a maximum number of displayable documents is set in the result display area 1202. When the number of generated document data candidates exceeds the maximum number of displayable documents, the candidate display control unit 322 switches the contents displayed in the result display area 1202 in response to the user pressing the page forward button 1205 or the page back button 1204. The page forward button 1205 and the page back button 1204 are not displayed when the number of generated document data candidates does not exceed the maximum number of displayable documents. In S417, the user can select one desired document data candidate from among the document thumbnails displayed in the result display area 1202 using the input device 201. A selection frame 1203 is displayed for the document data candidate selected by the user, and it is clearly indicated which document data candidate is currently in a selected state. When the user presses the decision button 1206 using the input device 201, the document data is decided. When the decision button 1206 is pressed by the user, the candidate selection receiving unit 323 acquires the document data candidate displaying the selection frame 1203. When the candidate document data displaying the selection frame 1203 is acquired, in S418 the document display / editing unit 303 displays the selected candidate document data on the display device 203. In S419, the document data displayed on the display device 203 by the document display / editing unit 303 can receive editing by the user. This allows the user to arbitrarily fine-tune and further edit the adjusted document data.

[0060] According to this embodiment, the aspect ratio of the document data is adjusted in accordance with the change in the aspect ratio of the paper size, and when the aspect ratio of the image layout area is changed, it is possible to present the user with a trimming result that matches the changed image layout area, thereby improving the usability of trimming when changing the aspect ratio of the paper size.

[0061] <Other Modifications> In this embodiment, an example has been described in which thumbnails of document data candidates are displayed on the display device 203, but the display method is not limited to this. This embodiment also includes a form in which only the trimming results are displayed side by side, or a form in which the trimming results are arranged in the image arrangement area within the entire document data, and thumbnails with nothing arranged in other areas are displayed.

[0062] In this embodiment, all of the multiple trimming results generated in S411 to S414 are used in generating document data candidates in S415, but the trimming results to be used may be narrowed down by specific conditions. For example, the central processing unit 202 compares multiple trimming ranges based on different trimming range determination conditions for each image object. For example, if the central processing unit 202 determines that the center-placed trimming result and the whole-focused trimming result are similar, only one of the trimming results is used to generate document data candidates. By not using the other trimming result, it is possible to prevent displaying document data candidates having differences that cannot be distinguished visually in S416. In other words, one trimming range is selected from a group of similar trimming ranges among multiple trimming ranges based on different trimming range determination conditions.

[0063] There are two possible methods for determining whether the two trimming results are similar. The first method is a method for determining the degree of overlap between the two trimming results. The following describes the case where the trimming result is a rectangle. Since the trimming coordinates are a rectangle consisting of four points, if the overlap between the rectangles is a predetermined amount or more, the central processing unit 202 determines that the two trimming results are similar. For example, if the predetermined amount is set to 80% or more, the central processing unit 202 determines that the two trimming results are similar if the overlap between the two trimming results is 80% or more. The predetermined amount is not limited to 80%, and can be set to an appropriate value by user input. The second method is a method for calculating image similarity using a machine learning model. If the similarity between the two trimming results is a predetermined amount or more, the central processing unit 202 determines that the two are similar. The degree of similarity that "similar" refers to varies depending on the model, but for example, if the calculated similarity is 0.9 or more, the central processing unit 202 determines that the two are similar. The predetermined amount is not limited to 0.9, and can be set by the user to an appropriate value.

[0064] In this embodiment, only the trimming results generated in the processes of S411 to S414 are used in generating document data candidates in S415. Trimming of the original image data at the trimming position before adjustment by changing the paper size, and trimming of the enlarged or reduced image data after enlarging or reducing the original image data vertically or horizontally to match the aspect ratio of the image arrangement area may also be performed. These results may also be included in the document data candidates. It becomes possible to present a good trimming result in which the part of the original image data displayed in the image arrangement area remains constant regardless of adjustment by resizing, or a good trimming result when it is more appropriate to change the aspect ratio of the original image data such as a figure rather than a photograph.

[0065] [Second embodiment] In the second embodiment, a mode in which the generated results of document data candidates are displayed randomly will be described. In the first embodiment, when the generated document data candidates are displayed, the document data candidates using the trimming results in a specific order are displayed, and when there are multiple image objects included in the document data, only the images that meet the conditions are displayed with the trimming positions changed. In contrast, in the present embodiment, when there are multiple image objects included in the document data, the candidate generating unit 321 generates document data candidates by combining various trimming results. The candidate display control unit 322 randomly displays thumbnails of the generated document data candidates. Note that, since the processes from S401 to S414 shown in the flowchart of FIG. 4 in the first embodiment are the same as those in this embodiment, the description will be omitted.

[0066] When the trimming results obtained by the processes from S411 to S414 are used to generate candidates for adjusted document data, if there are multiple image objects included in the document data, the following process is performed. That is, the candidate generation unit 321 randomly combines the trimming results for each image object to generate candidates for document data. The candidate display control unit 322 randomly displays thumbnails of the generated candidates for document data in the result display area 1202. Also, if the number of candidates for document data generated by the candidate generation unit 321 exceeds the maximum number that can be displayed in the result display area 1202, the following process is performed. When the user presses the page forward button 1205, the candidate display control unit 322 re-extracts thumbnails of the candidates for document data to be displayed, and the re-extracted thumbnails are displayed in the result display area 1202. At this time, thumbnails of the candidates for document data that have been displayed once are not displayed again. Also, when the user presses the page back button 1204, the candidate display control unit 322 does not re-extract thumbnails of the candidates for document data, but displays the display results of the thumbnails that were previously displayed. As described above, according to this embodiment, in addition to the effects shown in the first embodiment, it is possible to present a wide variety of document data candidates.

[0067] [Third embodiment] In the third embodiment, a display form that takes usability into consideration when the number of generated results of document data candidates is large will be described. When the trimming process described in the first embodiment is performed and all the results that can be generated are displayed as described in the second embodiment, the number of generated results of document data candidates may be very large. For example, a maximum of 36 patterns of candidates are generated for document data that has two image objects, and a maximum of 216 patterns of candidates are generated for document data that has three image objects. When a user tries to select a candidate that suits his / her taste from these, in the display method of the second embodiment, for example, when there are three image objects, he / she may have to check 216 patterns of candidates across 36 pages on the generated document selection screen. Therefore, the task of selecting a candidate that suits the user's taste becomes cumbersome.

[0068] In contrast, in the third embodiment, the user can select the trimming result that he / she wants to use for each image object. In the third embodiment, it is assumed that the processes from S401 to S415 in FIG. 4 in the first embodiment are performed. When the adjustment of each object is completed in S415, the central processing unit 202 generates a preview of the adjusted document data, and displays the preview on the generated document selection screen 1301 shown in FIG. 13. At this time, for an image object for which multiple results may exist, a default result is used for generation. In this embodiment, the overall-oriented trimming result is set as the default. On the generated document selection screen 1301, a preview 1302 showing the finish of the document data after adjustment at the present time and a decision button 1305 are displayed. In the example of FIG. 13, two image objects 1303 and 1304 are displayed on the preview 1302. At this time, the display may be made so that an image object for which only one trimming result has been generated and an image object for which multiple trimming results have been generated can be distinguished. For example, an image object for which multiple trimming results have been generated may be displayed with a colored frame, and an image object for which only one trimming result has been generated may be displayed with a frame of a different color from that of an image object for which multiple trimming results have been generated. The number and arrangement of image objects are arbitrary. In addition, if the document before the change contains objects other than image objects, the results of adjusting those objects are also displayed on the preview 1302.

[0069] When a user wants to use a different trimming result for a certain image object, the user can display a trimming candidate selection screen by clicking the mouse on image object 1303 or 1304 on preview 1302. When an operation panel or touch panel is used, the user can display the trimming candidate selection screen by touching image object 1303 or 1304. An example using a mouse will be described below, but similar operations can also be performed on an operation panel or touch panel. In this case, the trimming candidate selection screen is displayed as a pop-up screen overlapping with generated document selection screen 1301. The trimming candidate selection screen displays all the trimming results of the image object selected on generated document selection screen 1301. For example, the trimming candidate selection screen displayed by pressing image object 1303 is shown in FIG. 14.

[0070] The trimming candidate selection screen 1401 displays all the trimming results of the image object 1303 obtained by S409 to S415. In this embodiment, it is assumed that there are six patterns of trimming results of the image object 1303. In FIG. 14, the trimming result currently being previewed is the trimming result 1403, and a selection frame 1402 indicating this is displayed. The user selects any one of the trimming results displayed on the trimming candidate selection screen 1401. By clicking the mouse on the selected trimming result, the selection can be reflected in the preview 1302. This operation can also be realized by providing a separate decision button. The selection of the desired trimming result by the user is accepted and a selection frame is displayed around the selected trimming result. Thereafter, by the user clicking the mouse on the decision button, the central processing unit 202 may reflect the selection in the preview 1302.

[0071] FIG. 15 shows a generated document selection screen in which the trimming result 1404 is selected in the trimming candidate selection screen 1401 and the selection is reflected. The selection in the trimming candidate selection screen 1401 is reflected, and the trimming result displayed in the image object 1503 is changed to the image object of the trimming result 1404. Similarly, for the image object 1504, when the user clicks the mouse on the image object 1504, the trimming candidate selection screen 1401 is displayed. The user can select a desired trimming result for the image object 1504. Note that when the mouse is clicked on the image object, the trimming candidate selection screen 1401 can be displayed any number of times, and the user can reselect the trimming result. In addition, a display that allows the user to confirm that the change has been made may be displayed on the image object 1303 in which the trimming result has been changed. For example, a frame may be displayed on the image object in which the trimming result has been changed in a color different from the frame indicating whether or not there is one trimming result as described above.

[0072] After changing the trimming result for any image object, the user can confirm the adjustments for all image objects in the document data by clicking the mouse on the decision button 1505. In response to the mouse being clicked on the decision button 1305, the candidate selection receiving unit 323 acquires the state of the current preview 1502. The document display and editing unit 303 displays the adjusted document data having the acquired preview 1502 on the display device 203. The displayed document data can accept editing by the user. This allows the user to make any fine adjustments or further edits to the adjusted document data.

[0073] As described above, according to the third embodiment, when document data contains multiple image objects for which multiple trimming results are generated, it is possible to present all the trimming results to the user on one screen without switching between multiple pages, thereby improving usability.

[0074] [Other embodiments] The present disclosure can also be realized by a process in which a program for implementing one or more functions of the above-described embodiments is supplied to a system or device via a network or a storage medium, and one or more processors in a computer of the system or device read and execute the program. It can also be realized by a circuit (e.g., ASIC) that implements one or more functions.

[0075] The disclosure of the above-described embodiment includes the following configurations.

[0076] (Configuration 1) An information processing device comprising: a receiving means for receiving an instruction to change the aspect ratio of a document including an image placement area; an adjustment means for changing the aspect ratio of the document and adjusting the aspect ratio of the image placement area based on the instruction received by the receiving means; a control means for controlling trimming of an image to be placed in the image placement area based on the aspect ratio of the image placement area after adjustment by the adjustment means; and a display control means for controlling the display means to display the document after the aspect ratio has been changed based on the instruction, with the image trimmed by the control means and placed in the adjusted image placement area.

[0077] (Configuration 2) The information processing device according to configuration 1, characterized in that the control means further controls so as to perform the trimming based on the contents of the image to be arranged in the image arrangement area.

[0078] (Configuration 3) The information processing apparatus according to configuration 1, wherein the control means controls the trimming to be performed using original data of an image that was placed in the document before the aspect ratio was changed.

[0079] (Configuration 4) The information processing device described in Configuration 1, characterized in that the display control means controls the display means to display multiple documents after the aspect ratio has been changed based on the instruction, in which multiple cropped images, each of which has been cropped to a different cropping range, are arranged in the adjusted image arrangement area by the control means.

[0080] (Configuration 5) The information processing apparatus according to configuration 4, further comprising a selection unit for selecting, based on a user operation, one of the plurality of documents after the aspect ratio has been changed based on the instruction.

[0081] (Configuration 6) The information processing apparatus according to configuration 5, wherein the control means changes a trimming range of an image arranged in a document selected by the selection means based on a user operation.

[0082] (Configuration 7) The information processing device according to configuration 4, characterized in that the display control means controls the display of the plurality of documents so that the trimmed image is placed in the adjusted image placement area, and nothing is placed in other areas.

[0083] (Configuration 8) The information processing device according to configuration 1, characterized in that the display control means controls the control means to display a plurality of cropped images of the image, each of which has been cropped to a different cropping range, and to display on the display means the document after the aspect ratio has been changed based on the instruction, in which a cropped image selected by a user from among the plurality of cropped images is placed in the adjusted image arrangement area.

[0084] (Configuration 9) The information processing apparatus according to configuration 1, further comprising output means for outputting the document after the change displayed by the display control means in a printable form.

[0085] (Configuration 10) The information processing device according to configuration 1, characterized in that the control means further controls so as to perform the trimming based on the size, shape, or both of the image layout area after the adjustment.

[0086] (Configuration 11) The information processing device according to configuration 1, wherein the control means performs trimming to enlarge or reduce the trimming range vertically and horizontally in accordance with the aspect ratio of the image arrangement area after the adjustment.

[0087] (Configuration 12) The information processing device according to configuration 2, wherein the control means controls the trimming to be performed within a trimming range determined under different conditions depending on the number or size of subjects detected from the image to be arranged in the image arrangement area.

[0088] (Configuration 13) The information processing device described in configuration 12, characterized in that when the number of subjects is 1 and the subject occupies a first predetermined percentage or more of the image, the control means controls to perform cropping within a cropping range that places the subject in the center, a cropping range using the rule of thirds, and a cropping range in which at least one of the overall vertical and horizontal ranges of the image fits within the image placement area.

[0089] (Configuration 14) The information processing device according to configuration 13, wherein the first predetermined ratio is determined by a user's input.

[0090] (Configuration 15) The information processing device described in configuration 12, characterized in that when the number of subjects is 1 and the subjects are less than a first predetermined ratio to the image, the control means controls to perform cropping within a cropping range such that at least one of the entire vertical and horizontal ranges of the image fits within the image placement area.

[0091] (Configuration 16) The information processing device described in Configuration 12, characterized in that when the number of the subjects is two or more and less than a first predetermined number, the control means controls to determine conditions for determining a trimming range based on a score calculated using the area of ​​the subjects and the object detection matching rate.

[0092] (Configuration 17) The information processing device described in configuration 16, characterized in that when the subject with the highest score occupies a second predetermined percentage or more of the image, the control means controls the cropping to be performed in a cropping range that places the subject in the center, a cropping range that uses the rule of thirds, and a cropping range in which at least one of the overall vertical and horizontal ranges of the image fits within the image placement area.

[0093] (Configuration 18) The information processing device according to configuration 1, characterized in that the control means controls to select one trimming range from a group of similar trimming ranges among a plurality of trimming ranges based on different trimming range determination conditions.

[0094] (Configuration 19) The information processing device according to configuration 18, wherein the plurality of trimming ranges included in the group of similar trimming ranges are trimming ranges whose overlap with each other is equal to or greater than a third predetermined ratio.

[0095] (Configuration 20) A computer-readable storage medium storing a program for causing at least one computer to function as each of the means of an information processing device according to any one of configurations 1 to 19.

[0096] (Method 1) A control method for an information processing device comprising: a receiving step for receiving an instruction to change the aspect ratio of a document including an image placement area; an adjustment step for changing the aspect ratio of the document and adjusting the aspect ratio of the image placement area based on the instruction received in the receiving step; a control step for controlling trimming of an image to be placed in the image placement area based on the aspect ratio of the image placement area after adjustment by the adjustment step; and a display control step for controlling so that the image trimmed by the control step is displayed on a display means, the document after the aspect ratio has been changed based on the instruction and placed in the adjusted image placement area.

Claims

1. A receiving means for receiving an instruction to change the aspect ratio of a document including an image layout area; an adjustment means for changing an aspect ratio of the document and adjusting an aspect ratio of the image layout area based on an instruction received by the reception means; a control means for controlling trimming of an image to be arranged in the image arrangement area based on the aspect ratio of the image arrangement area after adjustment by the adjustment means; a display control means for controlling the display means to display the document after the aspect ratio has been changed based on the instruction, in which the image trimmed by the control means is arranged in the adjusted image arrangement area; 13. An information processing device comprising:

2. 2. The information processing apparatus according to claim 1, wherein said control means further controls so that said trimming is performed based on the content of said image to be arranged in said image arrangement area.

3. 2. The information processing apparatus according to claim 1, wherein the control means controls so that the trimming is performed using original data of the image that was placed in the document before the aspect ratio was changed.

4. The information processing device according to claim 1, characterized in that the display control means controls the display means to display a plurality of documents after the aspect ratio has been changed based on the instruction, in which a plurality of cropped images, each of which has been cropped to a different cropping range, are arranged in the adjusted image arrangement area by the control means.

5. 5. The information processing apparatus according to claim 4, further comprising a selection unit that selects, based on a user operation, one of the plurality of documents after the aspect ratio has been changed based on the instruction.

6. 6. The information processing apparatus according to claim 5, wherein the control means changes a trimming range of an image arranged in the document selected by the selection means based on a user operation.

7. 5. The information processing apparatus according to claim 4, wherein the display control means controls to display the plurality of documents so that the trimmed image is arranged in the adjusted image arrangement area, and nothing is arranged in other areas.

8. The information processing device according to claim 1, characterized in that the display control means controls the display means to display a plurality of cropped images of the image, each of which has been cropped to a different cropping range, and to display on the display means the document after the aspect ratio has been changed based on the instruction, in which a cropped image selected by the user from among the plurality of cropped images is placed in the adjusted image arrangement area.

9. 2. The information processing apparatus according to claim 1, further comprising output means for outputting the document after the change displayed by the display control means in a printable form.

10. 2. The information processing apparatus according to claim 1, wherein said control means further controls so that said trimming is performed based on a size, a shape, or both of said adjusted image layout area.

11. 2 . The information processing apparatus according to claim 1 , wherein the control means performs trimming to enlarge or reduce a trimming range vertically and horizontally in accordance with the aspect ratio of the image arrangement area after the adjustment.

12. 3. The information processing apparatus according to claim 2, wherein the control means controls so that trimming is performed within a trimming range determined under different conditions depending on the number or size of subjects detected from the image to be arranged in the image arrangement area.

13. The information processing device according to claim 12, characterized in that, when the number of subjects is one and the subject occupies a first predetermined proportion or more of the image, the control means controls to perform cropping within a cropping range that places the subject in the center, a cropping range using the rule of thirds, and a cropping range in which at least one of the overall vertical and horizontal ranges of the image fits within the image layout area.

14. 14. The information processing apparatus according to claim 13, wherein the first predetermined ratio is determined by a user input.

15. The information processing device according to claim 12, characterized in that, when the number of subjects is one and the subjects account for less than a first predetermined ratio of the image, the control means controls to perform cropping within a cropping range in which at least one of the overall vertical and horizontal ranges of the image fits within the image layout area.

16. The information processing device according to claim 12, characterized in that, when the number of the subjects is two or more and less than a first predetermined number, the control means controls to determine conditions for determining a trimming range based on a score calculated using an area of ​​the subject and a matching rate of object detection.

17. The information processing device according to claim 16, characterized in that, when the subject with the highest score occupies a second predetermined proportion or more of the image, the control means controls the cropping so that the subject is positioned in the center, the cropping range uses the rule of thirds, and the cropping range is such that at least one of the overall vertical and horizontal ranges of the image fits within the image placement area.

18. 2. The information processing apparatus according to claim 1, wherein the control means performs control so as to select one trimming range from a group of similar trimming ranges among a plurality of trimming ranges based on different trimming range determination conditions.

19. 20. The information processing apparatus according to claim 18, wherein the plurality of trimming ranges included in the group of similar trimming ranges are trimming ranges whose overlap with each other is equal to or greater than a third predetermined ratio.

20. A program for causing at least one computer to function as each of the means of the information processing device according to any one of claims 1 to 19.

21. 20. A computer-readable storage medium storing a program for causing at least one computer to function as each of the means of the information processing device according to any one of claims 1 to 19.

22. A receiving step of receiving an instruction to change the aspect ratio of a document including an image placement area; an adjustment step of changing an aspect ratio of the document and adjusting an aspect ratio of the image layout area based on the instruction received in the receiving step; a control step of controlling to perform trimming of an image to be arranged in the image arrangement area based on the aspect ratio of the image arrangement area after adjustment in the adjustment step; a display control step of controlling the document after the aspect ratio change based on the instruction to be displayed on a display means, the document having the image trimmed by the control step and arranged in the adjusted image arrangement area; 13. A method for controlling an information processing apparatus comprising the steps of:

Citation Information

Patent Citations

  • Image processing device, image capturing apparatus, image processing method and recording medium

    JP2014143673A