Picture processing method, device and electronic device
The method simplifies the process of combining multiple pictures by allowing users to input identifiers on an interface, enabling automatic display and size adjustments, thereby improving the efficiency of creating a composite picture.
Patent Information
- Application Number
- JP2022576090
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Priority Date
- 2020-06-11
- Filing Date
- 2021-06-09
- Publication Date
- 2024-11-14
- Estimated Expiration
- 2041-06-09
AI Technical Summary
The existing method of combining multiple pictures requires users to perform time-consuming cropping and merging operations, leading to low efficiency in obtaining a single combined picture.
A picture processing method and device that allows users to select target identifiers on an interface, updating it to display selected pictures, and perform composite processing based on picture sizes, eliminating the need for separate cropping and merging steps.
Improves the processing efficiency of obtaining a composite picture by allowing users to input identifiers directly on an interface, enabling the device to determine display positions and sizes automatically, thus simplifying the operation and enhancing the overall efficiency.
Smart Images

Figure 0007583836000001 
Figure 0007583836000002 
Figure 0007583836000003
Abstract
Description
[Technical field]
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS This application claims priority from China Patent Application No. 202010531536.1, filed in China on June 11, 2020, the entire contents of which are incorporated herein by reference.
[0002] The present application relates to the field of communications technology, and in particular to a picture processing method, device and electronic device. [Background technology]
[0003] Typically, when a user needs to combine multiple pictures to obtain one combined picture, the user first performs a cut-out operation on each of the multiple pictures using an electronic device to obtain multiple pictures with appropriate sizes or shapes, and then performs a combination operation on the cut-out pictures to obtain one combined picture.
[0004] However, in the above method, the user must first perform a cut-out operation on each picture and then perform a combining operation on the cut-out pictures, which requires complicated and time-consuming operations by the user, resulting in low efficiency in obtaining a single combined picture on the electronic device. Summary of the Invention
[0005] An object of the embodiments of the present application is to provide a picture processing method, device, and electronic device capable of solving the problem of low efficiency in obtaining one combined picture in an electronic device.
[0006] In order to solve the above technical problems, the present application is realized as follows.
[0007] In a first aspect, an embodiment of the present application provides a picture processing method including: when a first interface is displayed, receiving a first user input, the first interface including N target identifiers, each target identifier indicating one picture, the first input being a user input for M target identifiers among the N target identifiers, N and M are both integers greater than 1, and M is less than or equal to N; in response to the first input, updating the first interface to a second interface, the second interface including M pictures indicated by the M target identifiers; receiving a second user input for the M pictures; and in response to the second input, performing a composite process on the M pictures according to a size of each picture among the M pictures to obtain a target composite picture.
[0008] In a second aspect, an embodiment of the present application provides a picture processing device, including a receiving module, an updating module, and a processing module. The receiving module is used to receive a first input of a user when a first interface is displayed, the first interface includes N target identifiers, each target identifier indicates one picture, and the first input is a user input for M target identifiers of the N target identifiers, where N and M are both integers greater than 1, and M is less than or equal to N. The updating module is responsive to the first input received by the receiving module and is used to update the first interface to a second interface, the second interface includes M pictures indicated by the M target identifiers. The receiving module is further used to receive a second input of the user for the M pictures. The processing module is responsive to the second input received by the receiving module and is used to composite-process the M pictures according to a size of each picture of the M pictures to obtain a target composite picture.
[0009] In a third aspect, an embodiment of the present application provides an electronic device comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, the program or instructions, when executed by the processor, achieving steps of the method according to the first aspect.
[0010] In a fourth aspect, an embodiment of the present application provides a readable storage medium having stored thereon a program or instructions which, when executed by a processor, implements steps of the method according to the first aspect.
[0011] In a fifth aspect, an embodiment of the present application provides a chip including a processor and a communication interface, the communication interface coupled to the processor, the processor executing programs or instructions and adapted to implement the method according to the first aspect.
[0012] In an embodiment of the present application, when a first interface is displayed on the electronic device, the user can provide inputs to M target identifiers among the N target identifiers displayed on the first interface to trigger the electronic device to update the first interface to a second interface, and thus the user can provide a second input to M pictures indicated by the M target identifiers displayed on the second interface, so that the electronic device can composite the M pictures according to the size of each of the M pictures to obtain a target composite picture. When a plurality of pictures need to be composited by the electronic device, the user can provide inputs to identifiers corresponding to the plurality of pictures in an interface including identifiers corresponding to the plurality of pictures displayed on the electronic device, so that the electronic device can display another interface including these pictures. Thus, the user can provide inputs to these pictures in the other interface, so that the electronic device can adjust the display position and display size of each of the pictures according to the user's input, and composite the pictures according to the size of each of the pictures to obtain a target composite picture. The user does not need to first edit each of these pictures using an electronic device to obtain a picture of a size required for picture composition, and then compose these edited pictures to obtain a composite picture, thus eliminating the need for user operations and improving the processing efficiency of the electronic device for obtaining one composite picture. [Brief description of the drawings]
[0013] [Figure 1] FIG. 1 is a schematic diagram of a picture processing method provided in an embodiment of the present application; [Diagram 2] FIG. 1 is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application. [Diagram 3] FIG. 2 is a schematic diagram illustrating an example of a mobile phone interface provided in an embodiment of the present application. [Figure 4]FIG. 2 is a schematic diagram of a picture processing method provided in an embodiment of the present application; [Diagram 5] FIG. 3 is a schematic diagram of a picture processing method provided in an embodiment of the present application; [Figure 6] FIG. 3 is a schematic diagram 3 of an example of a mobile phone interface provided in an embodiment of the present application. [Figure 7] FIG. 4 is a schematic diagram 4 of an example of a mobile phone interface provided in an embodiment of the present application. [Figure 8] FIG. 5 is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application. [Figure 9] FIG. 6 is a schematic diagram 6 of an example of a mobile phone interface provided in an embodiment of the present application. [Figure 10] FIG. 7 is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application. [Figure 11] FIG. 4 is a schematic diagram of a picture processing method provided in an embodiment of the present application. [Figure 12] FIG. 5 is a schematic diagram of a picture processing method provided in an embodiment of the present application. [Figure 13] 8 is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application; [Figure 14] 9 is a schematic diagram of an example of a mobile phone interface provided in an embodiment of the present application; [Figure 15] 1 is a configuration diagram of a picture processing device provided in an embodiment of the present application. [Figure 16] FIG. 2 is a configuration diagram of a picture processing device provided in an embodiment of the present application. [Figure 17] FIG. 2 is a hardware configuration diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0014] Hereinafter, the technical solutions in the embodiments of the present application will be described clearly and completely with reference to the drawings in the embodiments of the present application, and it is to be understood that the described embodiments are only a part of the embodiments of the present application, and are not all of the embodiments. Based on the embodiments of the present application, all other embodiments obtained by those skilled in the art without any creative efforts shall fall within the scope of protection of the present application.
[0015] In the specification and claims of this application, the terms "first," "second," etc., are not intended to describe a particular order or sequence, but are intended to distinguish between similar objects. It should be understood that terms used in this manner may be substituted for one another where appropriate, such that the embodiments of this application may be practiced in an order other than that shown or described herein. In addition, "and / or" in the specification and claims indicates at least one of the objects connected, and the " / " symbol generally means that the related objects before and after are in an "or" relationship.
[0016] Hereinafter, the picture processing method provided in the embodiments of the present application will be described in detail with reference to specific embodiments and application scenarios with reference to the accompanying drawings.
[0017] In the embodiment of the present application, when a user needs to cut out and combine multiple pictures by the electronic device, when an interface corresponding to an album application is displayed on the electronic device, the user can select and input some of the multiple picture thumbnails displayed on the interface, so that the electronic device can update the interface corresponding to the album application to a picture editing interface and display a picture corresponding to the user-selected picture thumbnail on the picture editing interface. Therefore, the user can input (e.g., adjust the position or size of the picture, etc.) on these pictures displayed on the picture editing interface, so that the electronic device can cut out and combine these pictures according to the user's input and according to the overlap size between two of these pictures (i.e., cut out the picture with the overlap area first, and combine the displayed pictures) to obtain one composite picture. The user does not need to cut out each picture of the multiple pictures to be combined by the electronic device in the conventional manner, obtain a picture of a size required for picture combination, and then combine the multiple pictures after the cutout processing to obtain a composite picture. This can eliminate the need for user operations and improve the processing efficiency of the electronic device for obtaining one combined picture.
[0018] An embodiment of the present application provides a picture processing method, and Fig. 1 shows a flowchart of the picture processing method provided in the embodiment of the present application, which is applicable to electronic devices. As shown in Fig. 1, the picture processing method provided in the embodiment of the present application may include the following steps 201 to 204:
[0019] In step 201, when a first interface is to be displayed, the electronic device receives a first input from a user.
[0020] In an embodiment of the present application, the first interface includes N target identifiers, each target identifier representing a picture, and the first input is a user input for M target identifiers among the N target identifiers, where N and M are both integers greater than 1, and M is less than or equal to N.
[0021] In an embodiment of the present application, a user can provide a first input for a portion of picture identifiers among a plurality of picture identifiers displayed in a first interface, and display specific pictures indicated by the portion of picture identifiers in the second interface, so that the electronic device can display a second interface, whereby the user can provide input for these pictures, so that the electronic device can perform a composite process on these pictures, thereby obtaining composite pictures corresponding to these pictures.
[0022] Optionally, in an embodiment of the present application, the first interface may be a picture thumbnail display interface in an album application, and a user can trigger the electronic device to run the album application to display the first interface.
[0023] Optionally, in the embodiment of the present application, the target identifier may be any one of the following: a thumbnail of a picture, a name of a picture, a number of a picture, and so on.
[0024] It should be noted that when the target identifiers are thumbnails of pictures, the sizes (eg, areas) of the N target identifiers displayed in the first interface may be the same size or different sizes.
[0025] Alternatively, in an embodiment of the present application, the first input may be a user drag input on a certain target identifier, or the first input may be an input in which the user selects several target identifiers and drags one of these target identifiers.
[0026] Optionally, in an embodiment of the present application, when M=2, the first input is an input in which the user drags one target identifier onto another target identifier.
[0027] It is to be understood that when the user's first input is an input for two target identifiers, the user does not need to select the two target identifiers and then perform a drag input, but can directly drag one target identifier to another target identifier so that there is an overlapping area between the one target identifier and the other target identifier (i.e., drag one target identifier from the display position of the one target identifier to the display position of the other target identifier).
[0028] It should be noted that the overlapping areas may be understood as one identifier occluding some or all of the area of another identifier, or one picture occluding some or all of the area of another picture.
[0029] For illustrative purposes, the electronic device is a mobile phone. As shown in (A) of Fig. 2, when a picture thumbnail display interface 10 of an album application is displayed on the mobile phone, if a user needs to combine pictures 11 and 12 in the picture thumbnail display interface 10, the user can perform a drag input on the picture 12 so that an overlapping area 20 (shown by a shadow in the figure) exists between the picture 11 and the picture 12, as shown in (B) of Fig. 2.
[0030] Optionally, in an embodiment of the present application, when M is greater than 2, the first input includes a first sub-input and a second sub-input, where the first sub-input is a user selection input for M target identifiers and the second sub-input is an input where the user drags one target identifier among the M target identifiers to another target identifier among the M target identifiers, or the first sub-input is a user selection input for M-1 target identifiers among the N target identifiers and the second sub-input is an input where the user drags one target identifier among the M-1 target identifiers to another target identifier, or the second sub-input is an input where the user drags another target identifier to one target identifier among the M-1 target identifiers, where the other target identifier is an identifier other than the M-1 target identifiers among the N target identifiers.
[0031] It can be understood that if the user's first input is for two or more target identifiers, the user must first make selection inputs for these target identifiers to trigger the electronic device to determine the pictures corresponding to these target identifiers as the pictures to be composited, and then the user can drag one of these target identifiers to another target identifier so that there is an overlapping area between the one target identifier and the other target identifier.
[0032] It should be noted that the user may directly determine M target identifiers through the first sub-input, or the user may first determine M-1 target identifiers through the first sub-input, and then determine another target identifier through the second sub-input, thereby determining M target identifiers, and the specific steps of determining M target identifiers are not described in this application.
[0033] For example, referring to (A) of FIG. 2, when a mobile phone displays a picture thumbnail display interface 10 of an album application, when a user needs to composite pictures 11, 12, 13 and 14 in the picture thumbnail display interface 10, the user can first perform selection inputs on pictures 11, 12, 13 and 14 so that the mobile phone can mark these pictures, as shown in (A) of FIG. 3, and then the user can perform drag inputs on picture 12 so that there is an overlapping area between picture 11 and picture 12, as shown in (B) of FIG. 3.
[0034] In step 202, the electronic device is responsive to the first input to update the first interface to a second interface.
[0035] In the present embodiment, the second interface includes M pictures indicated by M target identifiers.
[0036] Optionally, in an embodiment of the present application, the second interface may be a picture editing interface, and the second interface may further include a plurality of widgets, which may be any one of a filter widget, an adjustment widget, a graffiti widget, a note widget, etc.
[0037] Optionally, in the embodiment of the present application, the second interface may include a decision widget, which is used to trigger the electronic device to process the pictures into a composite picture to obtain a composite picture.
[0038] Optionally, in an embodiment of the present application, the electronic device can display M pictures indicated by the M target identifiers side by side on the second interface.
[0039] Optionally, in an embodiment of the present application, referring to FIG. 1, the above step 202 may be specifically realized by the following step 202a, as shown in FIG.
[0040] In step 202a, the electronic device is responsive to a first input to update the first interface to a second interface if an overlap size between one target identifier and another target identifier is greater than or equal to a first predetermined threshold.
[0041] Alternatively, in the embodiments of the present application, the overlap size may be understood as the overlap area of the identifiers or the ratio of the overlap area of the identifiers to the area of a given identifier.
[0042] Optionally, in an embodiment of the present application, if the overlap size is understood to be the overlap area of identifiers, the electronic device can determine the overlap area between one target identifier and another target identifier, and if the overlap area between the one target identifier and the other target identifier is greater than or equal to a first predetermined area (i.e., a first predetermined threshold), the electronic device can update the first interface to a second interface.
[0043] Optionally, in an embodiment of the present application, when the overlap size is understood as the ratio of the overlap area of identifiers to the total area of the identifiers, the electronic device can determine the ratio of the overlap area between one target identifier and another target identifier to the area of the one target identifier (or another target identifier), and if the ratio of the overlap area between the one target identifier and the other target identifier to the area of the one target identifier (or another target identifier) is equal to or greater than a first predetermined ratio (i.e., a first predetermined threshold), the electronic device can update the first interface to the second interface.
[0044] In an embodiment of the present application, the electronic device can determine whether the overlap size between one target identifier and another target identifier satisfies a predetermined condition, and if the overlap size between one target identifier and another target identifier satisfies the predetermined condition, can update the first interface to the second interface, thereby preventing the electronic device from updating the first interface to the second interface due to a user's erroneous touch, and thereby improving the accuracy of responding to user input of the electronic device.
[0045] Optionally, in an embodiment of the present application, the second interface includes a first predetermined area and a second predetermined area, the first predetermined area is used to display a top-located picture, and when an overlap area exists between any picture and the top-located picture, the top-located picture overlaps the any picture in the overlap area. Referring to FIG. 1, before "updating the first interface to the second interface" in the above step 202, the picture processing method provided in the embodiment of the present application further includes the following step 301, as shown in FIG. 5, and the above step 202 may be specifically realized by the following step 202b:
[0046] In step 301, the electronic device is responsive to a first input to determine a picture indicated by another target identifier as a top-placed picture.
[0047] Optionally, in an embodiment of the present application, the electronic device can determine the picture indicated by one target identifier or the picture indicated by another target identifier as the top-placed picture based on a first input of the user.
[0048] Optionally, in an embodiment of the present application, after the electronic device responds to a first input and determines a picture indicated by another target identifier as the top placement picture, the user can first determine a picture indicated by one target identifier as the top placement picture by one input, so as to switch the top placement picture.
[0049] Optionally, in an embodiment of the present application, a user may perform a double-click input on a picture indicated by one target identifier so that the electronic device can switch the layer priority of the picture indicated by one target identifier and the picture indicated by another target identifier (i.e., determine the picture indicated by one target identifier as the top-placed picture and remove the top placement of the picture indicated by the other target identifier).
[0050] Optionally, in an embodiment of the present application, the electronic device can determine a picture indicated by one target identifier as a top-placed picture, and after switching the top-placed picture, display the picture indicated by the one target identifier in a first predetermined area and display a picture indicated by another target identifier in a second predetermined area.
[0051] It should be noted that if the first input is a user dragging one target identifier (e.g., identifier A) to another target identifier (e.g., identifier B), the electronic device can determine the picture indicated by the other target identifier (i.e., identifier B) as the top-placed picture, or if the first input is a user dragging another target identifier (i.e., identifier B) to one target identifier (i.e., identifier A), the electronic device can determine the picture indicated by one target identifier (i.e., identifier A) as the top-placed picture.
[0052] In step 202b, the electronic device displays a picture indicated by the different target identifier in the first predetermined area and displays a picture indicated by the other target identifier in the second predetermined area.
[0053] In the embodiment of the present application, the other target identifier is an identifier other than another target identifier among the M target identifiers.
[0054] Optionally, in an embodiment of the present application, when M=2, the electronic device can display a picture indicated by another target identifier in a first predetermined area and display a picture indicated by one target identifier in a second predetermined area.
[0055] Optionally, in an embodiment of the present application, a user may, by input, trigger the electronic device to display a picture indicated by one target identifier in a first predetermined area and a picture indicated by a different target identifier in a second predetermined area.
[0056] For example, referring to (B) of FIG. 2, when a user causes an overlapping area 20 to exist between picture 11 and picture 12 through a first input, the mobile phone can determine the ratio of the area of the overlapping area 20 to the area of picture 11 (or picture 12), and if the ratio of the area of the overlapping area 20 to the area of picture 11 (or picture 12) is greater than or equal to a second predetermined ratio (e.g., 60%), as shown in FIG. 6, the mobile phone can update the picture thumbnail display interface 10 to a picture editing interface 21, which includes a first predetermined area 22, a second predetermined area 23 and a decision widget 24, and the mobile phone can display picture 11 in the first predetermined area 22 and display picture 12 in the second predetermined area 23.
[0057] Optionally, in an embodiment of the present application, when M is greater than 2, the electronic device can display a picture indicated by another target identifier in the first predetermined area, and display M-1 pictures indicated by identifiers other than the other target identifier among the M target identifiers in the second predetermined area.
[0058] Optionally, in an embodiment of the present application, a user can, by input, trigger the electronic device to display any one of M-1 pictures indicated by an identifier other than another target identifier among the M target identifiers in a first predetermined area, and to display a picture indicated by the other target identifier in a second predetermined area.
[0059] For example, referring to (B) of FIG. 3, the mobile phone can update the picture thumbnail display interface 10 to a picture editing interface 21, as shown in (A) of FIG. 7, where the picture editing interface 21 includes a first predetermined area 22 and a second predetermined area 23, and the mobile phone can display picture 11 in the first predetermined area 22 and display picture 12, picture 13 and picture 14 in the second predetermined area 23.
[0060] Optionally, in the embodiment of the present application, the second predetermined area includes a first sub-area and a second sub-area. The above step 202b of "displaying a picture indicated by another target identifier in the second predetermined area" may be specifically realized by the following step 202b1.
[0061] In step 202b1, the electronic device displays a picture indicated by another target identifier in a first predetermined region, displays a picture indicated by one target identifier in a first sub-region, and displays a picture indicated by an identifier other than the one target identifier among the other target identifiers in a second sub-region.
[0062] Optionally, in an embodiment of the present application, when M is greater than 2, the second predetermined region may include a first sub-region and a second sub-region, where the first sub-region is used to sequentially display one picture among the M-1 pictures, and the second sub-region is used to display M-2 pictures other than the one picture displayed in the first sub-region among the M-1 pictures.
[0063] It should be noted that the 1 picture displayed in the first sub-region and the M-2 pictures displayed in the second sub-region are all pictures among the M-1 pictures.
[0064] 3B, for example, the mobile phone can update the picture thumbnail display interface 10 to a picture editing interface 21 as shown in FIG 7B, where the picture editing interface 21 includes a first predetermined area 22 and a second predetermined area 23, and the second predetermined area 23 includes a first sub-area 231 and a second sub-area 232. The mobile phone can display the picture 11 in the first predetermined area 22, the picture 12 in the first sub-area 231, and the picture 13 and the picture 14 in the second sub-area 232.
[0065] In an embodiment of the present application, the electronic device can determine a picture indicated by another target identifier as a top-placed picture, display the picture in a first predetermined area, and display pictures indicated by target identifiers other than the other target identifier among the M target identifiers in a second predetermined area, thereby allowing a user to provide input regarding these pictures so that the electronic device processes these pictures for compositing.
[0066] In step 203, the electronic device receives a second user input for M pictures.
[0067] Optionally, in an embodiment of the present application, a user can, through an input, trigger the electronic device to sequentially adjust the display position and display size of each picture among the M pictures, and combine the M pictures.
[0068] In step 204, the electronic device responds to the second input by performing a composite process on the M pictures according to the size of each picture among the M pictures to obtain a target composite picture.
[0069] Optionally, in the embodiment of the present application, the synthesis process may include any one of a picture clipping process, a picture size adjustment process, and a picture joining process.
[0070] Optionally, in the embodiment of the present application, when M=2, the user can drag the picture indicated by one target identifier displayed in the second predetermined area to the position of the picture indicated by another target identifier displayed in the first predetermined area to combine the picture indicated by the one target identifier with the picture indicated by the other target identifier. Then, the user can input to the decision widget to trigger the electronic device to composite the picture indicated by the one target identifier and the picture indicated by the other target identifier to obtain a composite target picture.
[0071] Optionally, in an embodiment of the present application, combining a picture indicated by the one target identifier and a picture indicated by another target identifier includes any one of the following: a distance between one picture (e.g., a picture indicated by the one target identifier) and another picture (e.g., a picture indicated by another target identifier) is greater than 0 (i.e., the two pictures do not touch); a distance between one picture and another picture is equal to 0 (i.e., the edge lines of the two pictures overlap, but there is no overlapping area between the two pictures); and an overlapping area exists between one picture and another picture.
[0072] By way of example, with reference to FIG. 6, a user can perform a drag input on picture 12 to drag picture 12 to a position where there is an overlap area with picture 11, as shown in FIG. 8, and then the user can perform an input on decision widget 24 to trigger the mobile phone to process pictures 11 and 12 into a composite picture to obtain a target composite picture.
[0073] Optionally, in the embodiment of the present application, when M is greater than 2, the user can sequentially drag the M-1 pictures displayed in the second predetermined area to the position of the picture indicated by another target identifier displayed in the first predetermined area to combine the M-1 pictures with the picture indicated by the other target identifier. Then, the user can input to a decision widget to trigger the electronic device to perform a composite process on the M-1 pictures and the picture indicated by the other target identifier to obtain a target composite picture.
[0074] For example, referring to (A) of FIG. 7, the user can sequentially perform drag inputs on pictures 12, 13, and 14, so as to drag pictures 12, 13, and 14, respectively, to the position of picture 11, as shown in FIG. 9, and then the user can perform an input on the decision widget 24 to trigger the mobile phone to perform a compositing process on pictures 11, 12, 13, and 14 to obtain a target composite picture.
[0075] Optionally, in the embodiment of the present application, when M is greater than 2 and the second predetermined area includes a first sub-area and a second sub-area, the user can drag one of the M-1 pictures displayed in the first sub-area to the position of a picture indicated by another target identifier displayed in the first predetermined area to combine the one picture with the picture indicated by the other target identifier, and then the user can input to the decision widget to trigger the electronic device to composite the one picture and the picture indicated by the other target identifier to obtain one composite picture. Then, the user can input to another one of the M-2 pictures displayed in the second sub-area, so that the electronic device displays the other picture in the first sub-area. Furthermore, the user can drag the other picture displayed in the first sub-area to the position of the one composite picture, to combine the other picture with the one composite picture. Next, the user can input to the decision widget to trigger the electronic device to composite the other picture and the one composite picture to obtain another composite picture. Similarly, the user can input to all of the M-2 pictures displayed in the second sub-area to trigger the electronic device to composite M pictures to obtain a target composite picture.
[0076] Illustratively, referring to (B) of Fig. 7, the user can perform a drag input on the picture 12, as shown in (A) of Fig. 10, to drag the picture 12 to the position of the picture 11, and then the user can perform an input on the decision widget 24 to trigger the mobile phone to composite the picture 11 and the picture 12 to obtain one composite picture 15 (i.e., a combined picture of the picture 11 and the picture 12). As shown in (B) of Fig. 10, the user can further perform a drag input on the picture 13, as shown in (B) of Fig. 10, to drag the picture 13 to the position of the composite picture 15, and then the user can again perform an input on the decision widget 24 to trigger the mobile phone to composite the picture 13 and the composite picture 15 to obtain one composite picture 16 (i.e., a combined picture of the picture 11, the picture 12, and the picture 13). As shown in (C) of FIG. 10, the user can further perform a drag input on picture 14 to drag picture 14 to the position of composite picture 16, and then the user can again perform an input on decision widget 24 to trigger the mobile phone to composite picture 14 and composite picture 16 to obtain the target composite picture (i.e., a combined picture of picture 11, picture 12, picture 13 and picture 14).
[0077] An embodiment of the present application provides a picture processing method. When a first interface is displayed on an electronic device, a user can input M target identifiers among N target identifiers displayed on the first interface to trigger the electronic device to update the first interface to a second interface, and thus the user can input M pictures indicated by M target identifiers displayed on the second interface, so that the electronic device can composite the M pictures according to the size of each picture among the M pictures to obtain a target composite picture. When a user needs to composite multiple pictures by the electronic device, the user can input identifiers corresponding to the multiple pictures in an interface including identifiers corresponding to the multiple pictures displayed on the electronic device, so that the electronic device can display another interface including these pictures. Therefore, the user can input these pictures in the other interface, so that the electronic device can adjust the display position and display size of each picture among the pictures according to the user's input, and composite the pictures according to the size of each picture among the pictures to obtain a target composite picture. The user does not need to first edit each of these pictures using an electronic device to obtain a picture of a size required for picture composition, and then compose these edited pictures to obtain a composite picture, thus eliminating the need for user operations and improving the processing efficiency of the electronic device for obtaining one composite picture.
[0078] Optionally, in an embodiment of the present application, the second input is a user's sequential drag input on M-1 pictures of the M pictures. Referring to FIG. 1, the above step 204 may be specifically realized by the following step 204a, as shown in FIG.
[0079] In step 204a, in response to a second input, if there is an overlapping area between every two pictures among the M pictures, the electronic device cuts out the overlapping portion corresponding to one of the two pictures according to the overlapping size of the two pictures, and composites the cut-out picture and other pictures to obtain a target composite picture.
[0080] Optionally, in the embodiment of the present application, the other pictures are pictures among the M pictures other than the pictures after the clipping process.
[0081] Optionally, in an embodiment of the present application, the overlap size being greater than the second predetermined threshold can be understood as the area of the overlapping region of the two pictures being greater than the second predetermined area, or the ratio of the area of the overlapping region of the two pictures to the area of any one of the two pictures being greater than a third predetermined ratio.
[0082] Optionally, in an embodiment of the present application, the electronic device may cut out and process an occluded portion of one of the two pictures depending on an overlap size of an overlapping area between the two pictures.
[0083] It should be noted that, according to the second input of the user, the electronic device can cut out and process some or all of the M pictures, and the specific manner of cutting out the pictures depends on the actual situation, and the present application does not limit it here.
[0084] Optionally, in the embodiment of the present application, the electronic device can combine the cut-out picture with the non-cut-out pictures among the M pictures to obtain a target composite picture.
[0085] In an embodiment of the present application, the electronic device simultaneously cuts out pictures that require cut-out processing among M pictures, and simultaneously combines the pictures after the cut-out processing with pictures that have not been cut out among the M pictures to obtain a target composite picture, thereby improving the processing efficiency of the electronic device for obtaining one composite picture.
[0086] Optionally, in an embodiment of the present application, the second input includes M-1 sub-inputs, each sub-input is a user drag input to one picture among the M-1 pictures, and the M-1 pictures are pictures among the M pictures. With reference to Fig. 1, the above step 204 may be specifically realized by the following step 204b, as shown in Fig. 12.
[0087] In step 204b, in response to the second input, the electronic device composites the first picture and the first target picture according to an overlap size between the first picture and the first target picture to obtain a first composite picture, composites the second picture and the first composite picture according to an overlap size between the second picture and the first composite picture to obtain a second composite picture, and so on until the M-1th picture is composited.
[0088] Optionally, in an embodiment of the present application, the first picture, the second picture and the M-1th picture are all pictures among M-1 pictures, and the first target picture is a picture other than the M-1th picture among M pictures.
[0089] Optionally, in an embodiment of the present application, the step of performing a composite process on the first picture and the first target picture according to an overlap size between the first picture and the first target picture to obtain a first composite picture includes a step of performing a cut-out process on the first picture according to an overlap size between the first picture and the first target picture when an overlap area exists between the first picture and the first target picture, and performing a composite process on the first picture and the first target picture after the cut-out process to obtain a first composite picture, and a step of the electronic device performing a composite process on the first picture and the first target picture when no overlap area exists between the first picture and the first target picture to obtain a first composite picture.
[0090] Optionally, in an embodiment of the present application, the above step of compositing the second picture and the first composite picture according to an overlap size between the second picture and the first composite picture to obtain a second composite picture includes a step of, when an overlap area exists between the second picture and the first composite picture, cutting out the second picture according to an overlap size between the second picture and the first composite picture, and compositing the second picture and the first composite picture after the cut-out process to obtain a second composite picture, and a step of, when no overlap area exists between the second picture and the first composite picture, the electronic device composites the second picture and the first composite picture to obtain a second composite picture.
[0091] The same process is repeated for subsequent (M-1)th pictures until the target composite picture is obtained.
[0092] Optionally, in an embodiment of the present application, a user can provide an input to a compositing widget so that after dragging one picture (e.g., a first picture) to the position of another picture (e.g., a first target picture), the electronic device can perform a compositing process on the two pictures (i.e., the first picture and the first target picture) to obtain one composite picture (e.g., a first composite picture).
[0093] It should be noted that the user can provide input to the compositing widget such that each time a picture is dragged to the position of another picture, the electronic device will composite the two pictures together to obtain a single composite picture, until the electronic device has composited the last picture of the M pictures to obtain a target composite picture.
[0094] In an embodiment of the present application, the electronic device can sequentially perform a synthesis process of one of the M pictures and the first target picture or one obtained synthetic picture according to a user's input, and obtain a target synthetic picture through multiple synthesis processes, so that after each synthesis process, the user can view the display effect of the picture after the synthesis process, thereby allowing the user to flexibly select the images that need to be synthesized.
[0095] It should be noted that the picture processing method provided in the embodiment of the present application may be executed by a picture processing device, or may be executed by a control module for executing the picture processing method in the picture processing device. In the embodiment of the present application, the picture processing method provided in the embodiment of the present application will be described by taking the picture processing method executed by the picture processing device as an example.
[0096] Alternatively, in an embodiment of the present application, the step of "composite processing the first picture and the first target picture according to the overlap size between the first picture and the first target picture" in the above step 204b may be specifically realized by the following step 204b1 or step 204b2.
[0097] In step 204b1, if there is no overlapping area between the first picture and the first target picture, the electronic device cuts out the first picture or the first target picture according to the width value of the first picture or the width value of the first target picture, and combines the picture after the cut-out process with the picture that has not been cut-out.
[0098] It should be noted that the absence of an overlapping area between the first picture and the first target picture can be understood as meaning that the first picture and the first target picture are adjacent to each other and the edge lines of the first picture overlap with the edge lines of the first target picture.
[0099] It should be noted that the width value of the first picture and the width value of the first target picture are width values in the same direction, and the width value of the first picture and the width value of the first target picture are width values in one direction determined by the user.
[0100] Optionally, in an embodiment of the present application, if there is no overlapping area between the first picture and the first target picture, the electronic device can cut out the picture with the larger width value among the first picture and the first target picture according to the width value of the picture with the smaller width value among the first picture and the first target picture, so that a rectangular picture is obtained after combining the picture after the cut-out process with the picture that has not been cut-out processed.
[0101] For example, referring to FIG. 6, a picture cropping schematic diagram provided in an embodiment of the present application is shown in FIG. 13 (A). As shown in FIG. 13 (A), when there is no overlapping area between the first picture 30 and the first target picture 31 and the width value of the first picture 30 is greater than the width value of the first target picture 31, the mobile phone can perform cropping process on the first picture 30 and crop out areas 32 and 33 of the first picture 30. FIG. 13 (B) is the picture obtained after the first picture 30 and the first target picture 31 are combined after the cropping process.
[0102] In step 204b2, if an overlapping area exists between the first picture and the first target picture, the electronic device performs a cutout process on at least one of the first picture and the first target picture according to a width value of the overlapping area, and performs a synthesis process based on the picture after the cutout process.
[0103] Optionally, in an embodiment of the present application, if an overlapping area exists between the first picture and the first target picture, if the width value of the first picture and the width value of the first target picture are both greater than the width value of the overlapping area, then the area other than the width value of the overlapping area in the first picture, the area other than the width value of the overlapping area in the first target picture, and the overlapping area of the bottom-located picture (i.e., the picture other than the top-located picture) among the first picture and the first target picture are extracted; alternatively, if one of the width values of the first picture and the width value of the first target picture is greater than the width value of the overlapping area and the other width value is equal to the width value of the overlapping area, then the area other than the width value of the overlapping area in the corresponding picture whose width value is greater than the width value of the overlapping area, and the overlapping area of the bottom-located picture (i.e., the picture other than the top-located picture) among the first picture and the first target picture are extracted.
[0104] Illustratively, with reference to FIG. 6, another picture cropping schematic diagram provided in an embodiment of the present application is shown in FIG. 14 (A). As shown in FIG. 14 (A), when an overlapping area 34 exists between the first picture 30 and the first target picture 31 (shown in black in the figure), the first picture 30 is a top-placed picture, and the width values of the first picture 30 and the first target picture 31 are both greater than the width value of the overlapping area 34, the mobile phone can perform cropping process on the first picture 30 and the first target picture 31 to crop out the area 35 in the first picture 30, the overlapping area 34 in the first picture 30, and the area 36 in the first target picture 31. FIG. 14 (B) is the picture obtained after the first picture 30 and the first target picture 31 are composited after the cropping process.
[0105] 15 shows a possible block diagram of a picture processing device according to an embodiment of the present application. As shown in FIG. 15, a picture processing device 70 may include a receiving module 71, an updating module 72 and a processing module 73.
[0106] The receiving module 71 is used to receive a first input of a user when the first interface is displayed, the first interface includes N target identifiers, each target identifier indicates one picture, and the first input is a user's input for M target identifiers among the N target identifiers, where N and M are both integers greater than 1, and M is less than or equal to N. The updating module 72 is used to update the first interface to a second interface in response to the first input received by the receiving module 71, the second interface includes M pictures indicated by the M target identifiers. The receiving module 71 is further used to receive a second input of a user for the M pictures. The processing module 73 is used to composite-process the M pictures in response to the second input received by the receiving module 71 according to the size of each picture among the M pictures to obtain a target composite picture.
[0107] In one possible implementation, when M=2, the first input is an input of a user dragging one target identifier to another target identifier, and when M is greater than 2, the first input includes a first sub-input and a second sub-input. The first sub-input is a user selection input for M target identifiers and the second sub-input is an input of a user dragging one target identifier of the M target identifiers to another target identifier of the M target identifiers. Or, the first sub-input is a user selection input for M-1 target identifiers of the N target identifiers and the second sub-input is an input of a user dragging one target identifier of the M-1 target identifiers to another target identifier, or the second sub-input is an input of a user dragging another target identifier to one target identifier of the M-1 target identifiers. The other target identifier is an identifier other than the M-1 target identifiers of the N target identifiers.
[0108] In one possible implementation, the update module 72 is specifically used to update the first interface to the second interface when the overlap size between one target identifier and another target identifier is greater than or equal to a first predetermined threshold.
[0109] In one possible implementation, the second interface includes a first predetermined area and a second predetermined area, the first predetermined area is used to display a top-placed picture, and when an overlap area exists between any picture and the top-placed picture, the top-placed picture overlaps the any picture in the overlap area. With reference to FIG. 15, the picture processing device 70 provided in the embodiment of the present application may further include a determination module 74, as shown in FIG. 16. The determination module 74 is used to determine a picture indicated by another target identifier as a top-placed picture before the update module 72 updates the first interface to the second interface. The update module 72 is specifically used to display a picture indicated by another target identifier in the first predetermined area and display a picture indicated by another target identifier in the second predetermined area, and the other target identifier is an identifier other than the other target identifier among the M target identifiers.
[0110] In one possible implementation, the second predetermined region includes a first sub-region and a second sub-region, and the update module 72 is specifically used for displaying a picture indicated by one target identifier in the first sub-region, and displaying a picture indicated by another target identifier other than the one target identifier in the second sub-region.
[0111] In one possible implementation, the second input is a user's sequential drag input for M-1 pictures among the M pictures. Specifically, when there is an overlapping area between every two pictures among the M pictures, the processing module 73 is used to cut out the overlapping part corresponding to one of the two pictures according to the overlapping size of the two pictures, and synthesize the cut-out picture with another picture to obtain a target composite picture, and the other picture is a picture other than the cut-out picture among the M pictures.
[0112] In one possible implementation, the second input includes M-1 sub-inputs, each sub-input being a user's drag input to one of the M-1 pictures, and the M-1 pictures being a picture of the M pictures. The processing module 73 is specifically used to composite the first picture and the first target picture according to an overlap size between the first picture and the first target picture to obtain a first composite picture, and composite the second picture and the first composite picture according to an overlap size between the second picture and the first composite picture to obtain a second composite picture, and so on to composite the M-1th picture, until a target composite picture is obtained. The first picture, the second picture, and the M-1th picture are all pictures of the M-1 pictures, and the first target picture is a picture other than the M-1th picture of the M pictures.
[0113] In one possible implementation form, the processing module 73 is specifically used to cut out the first picture or the first target picture according to a width value of the first picture or a width value of the first target picture when there is no overlapping area between the first picture and the first target picture, and to synthesize the cut-out picture with the uncut picture; or to cut out at least one of the first picture and the first target picture according to a width value of the overlapping area when there is an overlapping area between the first picture and the first target picture, and to synthesize based on the cut-out picture.
[0114] The picture processing device provided in the embodiments of the present application can implement each process implemented by the picture processing device in the above method embodiments, but to avoid duplication, detailed descriptions are omitted here.
[0115] The picture processing device in the embodiment of the present application may be a device, or may be a component, integrated circuit, or chip in the picture processing device. The device may be a mobile electronic device or a non-mobile electronic device. For example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a personal digital assistant, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), and the non-mobile electronic device may be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), an automated teller machine, or a kiosk, and the embodiments of the present application are not specifically limited.
[0116] The picture processing device in the embodiment of the present application may be a device having an operating system, which may be an Android operating system, an ios operating system, or other possible operating systems, and is not specifically limited in the embodiment of the present application.
[0117] An embodiment of the present application provides a picture processing device. When a user needs to composite multiple pictures by the picture processing device, the user can input to the identifiers corresponding to the multiple pictures in an interface including the identifiers corresponding to the multiple pictures displayed on the picture processing device, and the picture processing device can display another interface including the pictures. Therefore, the user can input to the pictures in the other interface, and the picture processing device can adjust the display position and display size of each of the pictures based on the user's input, and composite the pictures according to the size of each of the pictures to obtain a target composite picture. The user does not need to first edit each of the pictures by the picture processing device to obtain a picture of a size required for picture composition, and then composite the edited pictures to obtain a composite picture, so that the user's operation is saved and the processing efficiency of the picture processing device to obtain one composite picture is improved.
[0118] Optionally, the embodiment of the present application further provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, and when the program or instruction is executed by the processor, each process of the embodiment of the picture processing method is realized, and the same technical effect can be achieved. In order to avoid duplication, detailed description is omitted here.
[0119] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned movable electronic devices and non-movable electronic devices.
[0120] FIG. 17 is a hardware configuration diagram of an electronic device for implementing an embodiment of the present invention.
[0121] The electronic device 100 includes components such as, but not limited to, a radio frequency unit 101, a network module 102, an audio output unit 103, an input unit 104, a sensor 105, a display unit 106, a user input unit 107, an interface unit 108, a memory 109, and a processor 110.
[0122] It is understandable to those skilled in the art that the electronic device 100 may further include a power source (e.g., a battery) for supplying power to each component, and the power source may be logically connected to the processor 110 by a power management system, and the power management system may further realize functions such as charge / discharge management and power consumption management. The structure of the electronic device shown in Fig. 17 does not limit the electronic device, and the electronic device may include more or fewer components than those shown, or a combination of some components, or a different component arrangement, and detailed description thereof will be omitted here.
[0123] The user input unit 107 is used to receive a user's first input when a first interface is displayed, the first interface including N target identifiers, each target identifier representing one picture, and the first input being a user's input for M target identifiers among the N target identifiers, where N and M are both integers greater than 1, and M is less than or equal to N.
[0124] The display unit 106 is adapted to respond to the first input and update the first interface to a second interface, where the second interface includes M pictures indicated by the M target identifiers.
[0125] The user input unit 107 is further used for receiving a second input of the user for the M pictures.
[0126] The processor 110 is responsive to a second input and is used to composite-process the M pictures according to the size of each picture among the M pictures to obtain a target composite picture.
[0127] An embodiment of the present application provides an electronic device. When a user needs to composite multiple pictures using the electronic device, the user can input to the identifiers corresponding to the multiple pictures in an interface including the identifiers corresponding to the multiple pictures displayed on the electronic device, and the electronic device can display another interface including the pictures. Therefore, the user can input to the pictures in the other interface, and the electronic device can adjust the display position and display size of each of the pictures based on the user's input, and composite the pictures according to the size of each of the pictures to obtain a target composite picture. The user does not need to first edit each of the pictures using the electronic device to obtain a picture of a size required for picture composition, and then composite the edited pictures to obtain a composite picture, thus saving the user's operation and improving the processing efficiency of the electronic device to obtain one composite picture.
[0128] Optionally, the display unit 106 is further used for updating the first interface to a second interface when an overlap size between one target identifier and another target identifier is equal to or greater than a first predetermined threshold.
[0129] The processor 110 is further used for determining a picture indicated by another target identifier as a top-placed picture before updating the first interface to the second interface.
[0130] The display unit 106 is further used for displaying a picture indicated by another target identifier in the first predetermined area and displaying a picture indicated by another target identifier in the second predetermined area, where the other target identifier is an identifier other than the another target identifier among the M target identifiers.
[0131] The display unit 106 is further used for displaying pictures indicated by one target identifier in the first sub-region, and displaying pictures indicated by other target identifiers other than the one target identifier in the second sub-region.
[0132] Processor 110 further selects, when an overlapping area exists between every two pictures of the M pictures, a cut-out process of the overlapping portion corresponding to one of the two pictures in accordance with the overlapping size of the two pictures, and combines the cut-out picture with another picture to obtain a target combined picture, the other picture being a picture among the M pictures other than the cut-out picture.
[0133] Processor 110 is further used to composite the first picture and the first target picture according to an overlap size between the first picture and the first target picture to obtain a first composite picture, and to composite the second picture and the first composite picture according to an overlap size between the second picture and the first composite picture to obtain a second composite picture, and thereafter to composite the (M-1)th picture in the same manner, until a target composite picture is obtained.
[0134] Processor 110 is further used to cut out the first picture or the first target picture according to a width value of the first picture or a width value of the first target picture when there is no overlapping area between the first picture and the first target picture, and to synthesize the cut-out picture with the uncut picture; or to cut out at least one of the first picture and the first target picture according to a width value of the overlapping area when there is an overlapping area between the first picture and the first target picture, and to synthesize based on the cut-out picture.
[0135] The embodiment of the present application further provides a readable storage medium, which stores a program or instruction, and when the program or instruction is executed by a processor, each process of the embodiment of the picture processing method is realized, and the same technical effect can be achieved. In order to avoid repetition, detailed description is omitted here.
[0136] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium such as a computer read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.
[0137] The embodiment of the present application further provides a chip, the chip includes a processor and a communication interface, the communication interface is coupled to the processor, the processor is used to execute a program or instruction to realize each process of the embodiment of the above picture processing method, and can achieve the same technical effect. In order to avoid duplication, detailed description is omitted here.
[0138] It should be understood that the chips referred to in the embodiments of the present application may also be referred to as system level chips, system chips, chip systems, or system-on-chip chips, and the like.
[0139] It should be noted that in this specification, the terms "comprise", "consist of" or any other variations are intended to include a non-exclusive inclusion, whereby a process, method, article, or apparatus that includes a set of elements includes not only those elements, but also other elements not expressly stated or inherent to such process, method, article, or apparatus. Unless otherwise specified, an element limited by the phrase "comprises a" does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes the element. It should also be noted that the scope of the method and apparatus in the embodiments of this application is not limited to performing functions in the order shown or discussed, but may include performing functions essentially simultaneously or in reverse order based on related functions, for example, the described method may be performed in a different order than that described, and various steps may be added, omitted, or combined. Furthermore, features described with reference to some examples may be combined in other examples.
[0140] From the above description of the embodiments, those skilled in the art can clearly understand that the methods of the above embodiments can be realized in the form of a combination of software and a necessary common hardware platform, and of course, they can be realized by hardware, but in many cases the former is a more preferred embodiment. Based on this view, the technical solution of the present application can be substantially or the part that contributes to the prior art can be embodied in the form of a software product, and the computer software product is stored in a storage medium (e.g., ROM / RAM, magnetic disk, optical disk) and includes a plurality of instructions that cause a terminal (which may be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0141] Although the examples of the present application have been described above with reference to the drawings, the present application is not limited to the above-mentioned specific embodiments, which are merely illustrative and not limiting. Based on the suggestions of the present application, many forms that a person skilled in the art can make without departing from the spirit of the present application and the scope of protection of the claims are all within the scope of protection of the present application.
Claims
1. receiving a first user input when a first interface is displayed, the first interface including N target identifiers, each target identifier representing a picture, the first input being a user input for M target identifiers among the N target identifiers, N and M both being integers greater than 1, and M being less than or equal to N; updating the first interface to a second interface in response to the first input, the second interface including M pictures indicated by the M target identifiers; receiving a second user input for the M pictures; in response to the second input, processing the M pictures to obtain a target composite picture according to a size of each picture among the M pictures; the second input includes M-1 sub-inputs, each sub-input being a user drag input to one of the M-1 pictures, the M-1 pictures being pictures of the M pictures; The step of performing a compositing process on the M pictures according to a size of each picture among the M pictures to obtain a target composite picture includes: a step of performing a composite process on the first picture and the first target picture according to sizes of the first picture and the first target picture to obtain a first composite picture, performing a composite process on the second picture and the first composite picture according to sizes of the second picture and the first composite picture to obtain a second composite picture, and performing the composite process on the M-1th picture in the same manner until the target composite picture is obtained; A picture processing method, wherein the first picture, the second picture, and the M-1th picture are all pictures among the M-1 pictures, and the first target picture is a picture among the M pictures other than the M-1 pictures.
2. if M=2, the first input is an input in which a user drags the one target identifier onto the other target identifier; When M is greater than 2, the first input includes a first sub-input and a second sub-input; the first sub-input being a user selection input for the M target identifiers, and the second sub-input being a user dragging the one target identifier of the M target identifiers to the other target identifier of the M target identifiers, or The first sub-input is a user's selection input for M-1 target identifiers among the N target identifiers, and the second sub-input is a user's input for dragging the one target identifier among the M-1 target identifiers to the other target identifier, or The method of claim 1, wherein the second sub-input is an input in which a user drags the other target identifier onto the one target identifier among the M-1 target identifiers, the other target identifier being an identifier other than the M-1 target identifiers among the N target identifiers.
3. the second interface includes a first predetermined area and a second predetermined area, the first predetermined area is used to display a top-located picture, and when an overlap area exists between an arbitrary picture and the top-located picture, the top-located picture overlaps the arbitrary picture within the overlap area; prior to the step of updating the first interface to a second interface, determining a picture indicated by the other target identifier as the top-placed picture; The step of updating the first interface to a second interface comprises:
3. The method of claim 2, further comprising the steps of: displaying a picture indicated by the other target identifier in the first predetermined area; and displaying a picture indicated by another target identifier in the second predetermined area, the other target identifier being an identifier other than the other target identifier among the M target identifiers.
4. The second interface includes a first predetermined area and a second predetermined area, and the first predetermined area The area is used to display a top-placed picture, and if there is an overlap area between any picture and the top-placed picture, the top-placed picture is displayed in front of the picture in the overlap area. Overlap any picture, prior to the step of updating the first interface to a second interface, determining a picture indicated by the other target identifier as the top-placed picture; The step of updating the first interface to a second interface comprises: displaying a picture indicated by the different target identifier in the first predetermined area; 2. The method of claim 1, further comprising the step of displaying a picture indicated by another target identifier in a predetermined area, the other target identifier being an identifier other than the other target identifier among the M target identifiers.
5. the second predetermined region includes a first sub-region and a second sub-region; The step of displaying a picture indicated by another target identifier in the second predetermined area includes:
4. The method of claim 3, further comprising the step of displaying pictures indicated by the one target identifier in the first sub-area and displaying pictures indicated by the other target identifiers other than the one target identifier in the second sub-area.
6. the second predetermined region includes a first sub-region and a second sub-region; The step of displaying a picture indicated by another target identifier in the second predetermined area includes:
5. The method of claim 4, further comprising the step of displaying pictures indicated by the one target identifier in the first sub-area and displaying pictures indicated by the other target identifiers other than the one target identifier in the second sub-area.
7. The step of performing a synthesis process on the first picture and the first target picture according to sizes of the first picture and the first target picture includes: when there is no overlapping area between the first picture and the first target picture, cutting out the first picture or the first target picture according to a width value of the first picture or a width value of the first target picture, and synthesizing the cut-out picture and a picture that has not been cut-out; If an overlapping area exists between the first picture and the first target picture, at least one of the first picture and the first target picture is selected according to a width value of the overlapping area. and performing a compositing process based on the extracted pictures.
8. A receiving module, an updating module and a processing module are included, The receiving module is used to receive a first input of a user when a first interface is displayed, the first interface includes N target identifiers, each target identifier represents one picture, and the first input is a user input for M target identifiers among the N target identifiers, where N and M are both integers greater than 1, and M is less than or equal to N; the update module is adapted to update the first interface to a second interface in response to the first input received by the receiving module, the second interface including M pictures indicated by the M target identifiers; the receiving module is further adapted to receive a second user input for the M pictures; the processing module is used to process the M pictures in response to the second input received by the receiving module according to a size of each picture among the M pictures to obtain a target composite picture; the second input includes M-1 sub-inputs, each sub-input being a user drag input to one of the M-1 pictures, the M-1 pictures being pictures of the M pictures; Specifically, the processing module is used to composite a first picture and a first target picture according to sizes of the first picture and a first target picture to obtain a first composite picture, and to composite a second picture and a first composite picture according to sizes of the second picture and the first composite picture to obtain a second composite picture, and thereafter to composite M-1 pictures in the same manner, until the target composite picture is obtained; A picture processing device, wherein the first picture, the second picture, and the M-1th picture are all pictures among the M-1 pictures, and the first target picture is a picture among the M pictures other than the M-1 picture.
9. if M=2, the first input is an input in which a user drags the one target identifier onto the other target identifier; When M is greater than 2, the first input includes a first sub-input and a second sub-input; the first sub-input being a user selection input for the M target identifiers, and the second sub-input being a user dragging the one target identifier of the M target identifiers to the other target identifier of the M target identifiers, or The picture processing device of claim 8, wherein the first sub-input is a user selection input for M-1 target identifiers among the N target identifiers, and the second sub-input is a user input for dragging the one target identifier among the M-1 target identifiers to the other target identifier, or the second sub-input is a user input for dragging the other target identifier to the one target identifier among the M-1 target identifiers, the other target identifier being an identifier other than the M-1 target identifiers among the N target identifiers.
10. the second interface includes a first predetermined area and a second predetermined area, the first predetermined area is used to display a top-located picture, and when an overlap area exists between an arbitrary picture and the top-located picture, the top-located picture overlaps the arbitrary picture within the overlap area; The picture processing device further includes a determining module; the determining module is adapted to determine a picture indicated by the other target identifier as the top-placed picture before the updating module updates the first interface to a second interface; The picture processing device according to claim 8 or 9, wherein the update module is specifically used to display a picture indicated by the other target identifier in the first predetermined area and to display a picture indicated by another target identifier in the second predetermined area, the other target identifier being an identifier other than the other target identifier among the M target identifiers.
11. An electronic device comprising a processor, a memory, and a program or instructions stored in the memory and executable on the processor, the steps of the picture processing method described in any one of claims 1 to 7 being realized when the program or instructions are executed by the processor.
Citation Information
Patent Citations
Source file editing device
JP1997297750A
Facsimile store and forward exchange
JP1998051647A
Device and method for image composition, and storage medium
JP1999259637A
Panorama compositing of two or more image data
JP2004135230A
Folder management device, folder management method, and folder management program
JP2010182004A
