Image editing method, device, equipment and storage medium
By obtaining and recording the identification and parameter identification of the picture to be edited, obtaining the target identification and displaying the corresponding editing status pictures, the problem of the inability to compare the editing status pictures in the mobile image editing function is solved, and intuitive comparison and analysis is achieved during the editing process. Improve efficiency.
Patent Information
- Application Number
- CN202111235683.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-22
- Publication Date
- 2024-12-06
- Estimated Expiration
- 2041-10-22
AI Technical Summary
The existing mobile image editing function cannot directly compare the editing status pictures during the editing process, resulting in cumbersome steps and inefficient efficiency, and it is impossible to intuitively view the differences in the editing status pictures.
By obtaining the image identification and parameter identification of the image to be edited, recording the editing parameters, obtaining the target identification and corresponding editing status pictures, and displaying at least two editing status pictures in the same interface.
The function of directly comparing editing status pictures during the editing process is realized, which simplifies steps, improves efficiency, and can intuitively view the differences in editing status pictures.
Smart Images

Figure CN114004915B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computers, and in particular to a picture editing method, device, equipment and storage medium. Background Art
[0002] With the development of Internet information technology and the improvement of people's quality of life, more and more users use electronic devices to take pictures and edit the pictures to beautify them.
[0003] The current mobile image editing function cannot compare the editing status images obtained based on each editing operation during the image editing process. For users, if they want to compare the editing status image obtained after the first editing operation with the editing status image obtained after the second editing operation, the user needs to open the mobile image editing function twice to obtain the editing status image obtained after the first editing operation and the editing status image obtained after the second editing operation, and then click to view the editing status image obtained after the first editing operation and the editing status image obtained after the second editing operation, so as to achieve the comparison of the editing status image obtained after the first editing operation and the editing status image obtained after the second editing operation. This implementation process is cumbersome and inefficient, and it is not possible to intuitively compare the editing status image obtained after the first editing operation with the editing status image obtained after the second editing operation. Summary of the invention
[0004] The present application provides a picture editing method, apparatus, device and storage medium, which are used to solve the problem that the editing status pictures cannot be compared during the editing process.
[0005] In a first aspect, a method for editing a picture is provided, comprising:
[0006] Obtaining a picture identifier of a picture to be edited and at least one parameter identifier, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit and obtain an editing state picture of the picture to be edited;
[0007] Acquire at least two identifiers from the picture identifier of the picture to be edited and each of the parameter identifiers as target identifiers;
[0008] Obtain at least two editing status pictures corresponding to the target identifier;
[0009] The at least two editing status pictures are displayed in comparison.
[0010] Optionally, obtaining at least two identifiers as target identifiers from the picture identifier of the picture to be edited and each of the parameter identifiers includes:
[0011] Respectively displaying the image identifier of the image to be edited and the identifier controls corresponding to each of the parameter identifiers;
[0012] Acquire at least two target controls indicated by the user from each of the identification controls;
[0013] The identifier corresponding to each target control is used as the target identifier.
[0014] Optionally, acquiring at least two target controls indicated by the user from each of the identification controls includes:
[0015] Obtaining a user's pressing event on each of the identification controls;
[0016] Determine, from the press events, a target press event whose press duration is greater than a duration threshold;
[0017] The identification controls corresponding to the target pressing events are used as the at least two target controls.
[0018] Optionally, displaying the image identifier of the image to be edited and the identifier controls corresponding to each of the parameter identifiers respectively includes:
[0019] Obtaining the picture identifier of the picture to be edited and the editing order corresponding to each of the parameter identifiers;
[0020] The identification controls are displayed in the editing order.
[0021] Optionally, obtaining the picture identifier of the picture to be edited and the editing order corresponding to each of the parameter identifiers includes:
[0022] Obtaining the editing steps when editing the picture to be edited using each set of the editing parameters;
[0023] The editing order is generated based on the editing steps.
[0024] Optionally, when the at least one parameter identifier is N identifiers, there are two identifiers among the N identifiers, and the editing parameters corresponding to the two identifiers respectively belong to different editing types, and N≥2.
[0025] Optionally, after comparing and displaying the at least two editing status pictures, the method further includes:
[0026] When the final editing state picture of the picture to be edited is obtained, all editing state pictures except the final editing state picture are deleted, and the final editing state picture indicates that the editing operation on the picture to be edited is completed.
[0027] In a second aspect, a picture editing device is provided, comprising:
[0028] A first acquisition unit, used to acquire a picture identifier of a picture to be edited and at least one parameter identifier, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit and obtain an editing state picture of the picture to be edited;
[0029] A second acquisition unit, configured to acquire at least two identifiers from the picture identifier of the picture to be edited and each of the parameter identifiers as target identifiers;
[0030] A third acquisition unit, used to acquire at least two editing status pictures corresponding to the target identifier;
[0031] The display unit is used to compare and display the at least two editing status pictures.
[0032] In a third aspect, an electronic device is provided, comprising: a processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus;
[0033] The memory is used to store computer programs;
[0034] The processor is used to execute the program stored in the memory to implement the picture editing method described in the first aspect.
[0035] According to a fourth aspect, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the image editing method according to the first aspect is implemented.
[0036] The above technical solution provided by the embodiment of the present application has the following advantages over the prior art: in the technical solution provided by the embodiment of the present application, the picture identifier of the picture to be edited and at least one parameter identifier are obtained, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit and obtain an editing status picture of the picture to be edited; at least two identifiers are obtained as target identifiers from the picture identifier and each parameter identifier of the picture to be edited; at least two editing status pictures corresponding to the target identifier are obtained; and at least two editing status pictures are compared and displayed. Since the parameter identifiers corresponding to each set of editing parameters in the editing process can be recorded, the target identifier is obtained from the picture identifier and each parameter identifier of the picture to be edited, and the editing status picture corresponding to the target identifier is displayed, the solution of the present application realizes the comparative display of the editing status pictures during the editing process. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0038] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, for ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative labor.
[0039] Figure 1 Schematic diagram of the process of the picture editing method in the embodiment of the present application;
[0040] Figure 2 A schematic diagram of a screenshot of an electronic device after opening a picture in a display module;
[0041] Figure 3 A schematic diagram of a screenshot of an electronic device after opening the editing module;
[0042] Figure 4 A screenshot diagram of an electronic device after a user selects the recall filter parameter;
[0043] Figure 5 A schematic diagram of a screenshot of an electronic device after a user is dissatisfied with the filter parameter of Recall and selects the filter parameter of Ice Beauty;
[0044] Figure 6 A schematic diagram of a screenshot of an electronic device when two editing status images are displayed for comparison;
[0045] Figure 7 This is a schematic diagram of the structure of the image editing device in the embodiment of the present application;
[0046] Figure 8 Schematic diagram of the structure of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0047] In order to make the purpose, technical solution and advantages of the embodiments of the present application clearer, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of this application.
[0048] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments of the present application described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0049] In the related art, when a user uses a mobile image editing function to edit an image, when performing the next step of editing, the user often has the need to compare the current edited image with the original image or the edited status image obtained in the previous edit step to view the difference between the current edited image and the original image or the edited status image obtained in the previous edit step. However, the current image editing function cannot compare the current edited image with the original image or the edited status image obtained in the previous edit step during the image editing process.
[0050] In actual applications, if the user wants to compare the edited image with the original image, the user needs to exit the image editing function, and then click to view the edited image and the original image respectively, thereby comparing the edited image with the original image.
[0051] As can be seen from the above, the picture editing solutions in the related art not only cannot realize the comparison of pictures during the editing process, but also the comparison method after exiting the picture editing function is not intuitive.
[0052] In order to solve the above technical problems, the embodiment of the present application provides a picture editing method, which can be applied to any electronic device;
[0053] The electronic devices described in the embodiments of the present application may include smart phones (such as Android phones, iOS phones, Windows Phone phones, etc.), tablet computers, PDAs, laptops, video matrices, monitoring platforms, mobile Internet devices (MID, Mobile Internet Devices) or wearable devices, etc. The above are only examples and not exhaustive, including but not limited to the above devices. Of course, the above electronic devices can also be servers, for example, cloud servers.
[0054] like Figure 1 As shown, the method may include the following steps:
[0055] Step 101: Obtain a picture identifier of a picture to be edited and at least one parameter identifier.
[0056] Each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit an editing status image of a to-be-edited image.
[0057] In the application, when the user needs to use an electronic device to edit a picture to be edited, the picture editing function in the electronic device is opened, and the picture editing function obtains the picture to be edited indicated by the user and generates a picture identifier of the picture to be edited.
[0058] In this embodiment, the picture editing function in the electronic device can perform multiple editing operations on the edited picture based on the user's instructions. Each editing operation corresponds to a set of editing parameters. Different groups of editing parameters can belong to the same editing type, or of course, they can belong to different editing types.
[0059] When different groups of editing parameters belong to different editing types, in a specific embodiment, when at least one parameter identifier is N identifiers, there are two identifiers in the N identifiers, and the editing parameters corresponding to the two identifiers belong to different editing types, and N≥2.
[0060] The editing types in this embodiment include but are not limited to cropping, filter, adjustment, brush and / or text. Taking the filter editing type as an example, the editing parameters under this editing type include but are not limited to black and white, sunny day, memory and / or ice beauty.
[0061] In this embodiment, when the editing parameters corresponding to two adjacent editing operations belong to different editing types, the object edited by the next editing operation is the editing status image obtained by the previous editing operation; and when the editing parameters corresponding to two adjacent editing operations belong to the same editing type, the objects edited by the two adjacent editing operations are both the original image.
[0062] For example, when the editing parameters corresponding to two adjacent editing operations are memories in the filter and pencil in the text, then the object edited by the pencil editing parameter is actually the editing status picture obtained based on the memories editing parameter; for the case where the editing parameters corresponding to two adjacent editing operations belong to the same editing type, still taking the filter editing type as an example, if the editing parameters corresponding to two adjacent editing operations are memories and ice beauty respectively, then the editing status pictures obtained by the two editing operations are respectively the editing status picture obtained by adding the memories filter to the original image and the editing status picture obtained by adding the ice beauty filter to the original image.
[0063] In this embodiment, after obtaining the editing status picture of the picture to be edited using the editing parameters, the parameter identifier of the editing parameters is recorded, so that the picture editing function of the electronic device can obtain the parameter identifier of the editing parameters.
[0064] In the application, the parameter identifier of the editing parameter is used to uniquely identify the editing parameter. Exemplarily, the parameter identifier includes but is not limited to the name of the editing parameter. For example, under the editing type of filter, the parameter identifier of the editing parameter can be memory, ice beauty, etc.
[0065] Step 102: Obtain at least two identifiers from the picture identifier and each parameter identifier of the picture to be edited as target identifiers.
[0066] It should be understood that when the target identifier includes a parameter identifier, different parameter identifiers may belong to the same editing type or different editing types, which is not specifically limited in this embodiment.
[0067] For example, the at least two obtained identifiers include the original image, memories, and ice beauty; for another example, the at least two obtained identifiers include memories and pencil.
[0068] In an optional embodiment, in order to meet the comparison requirements of the user, the target identifier may be indicated by the user.
[0069] In the specific implementation, the identification controls corresponding to the picture identification of the picture to be edited and each parameter identification are displayed respectively; at least two target controls indicated by the user are obtained from each identification control; and the identification corresponding to each target control is used as the target identification.
[0070] In order to help users understand the editing order of the picture to be edited, in this embodiment, the identification controls corresponding to the picture identification of the picture to be edited and the parameter identifications are displayed according to the editing order corresponding to the picture identification of the picture to be edited and the parameter identifications.
[0071] It should be understood that the editing order of the logo indicates the order in which the editing parameters corresponding to the logo are edited, so the editing order of the logo can be indicated by Arabic numerals. It should be understood that although the logo of the original image also corresponds to an editing order, since the original image is an unedited image, the editing order of the original image should not only indicate the order but also indicate that it has not been edited. Therefore, when the editing order of the logo is indicated by Arabic numerals, the editing order corresponding to the logo of the original image is usually represented by the Arabic numeral 0. In an example, the image logo of the image to be edited and the editing order corresponding to each parameter logo can be 0-original image, 1-memories, 2-ice beauty, so the logo control displayed based on the editing order can be the logo control of the original image, the logo control of memories, and the logo control of ice beauty.
[0072] In this embodiment, the order in which the editing parameters are edited is related to the editing steps of the image to be edited, so the editing order of the identifier can be generated based on the editing steps of the image to be edited. Specifically, the editing steps when editing the image to be edited using each set of editing parameters are obtained; and the editing order is generated based on the editing steps.
[0073] In this embodiment, the editing steps of each set of editing parameters when editing the image to be edited are determined based on the user's instructions. In the application, when the user first edits the image to be edited using the editing parameters corresponding to the memories in the filter editing type, and then edits the image to be edited using the editing parameters corresponding to the ice beauty in the filter editing type, it can be determined that editing the image to be edited using the editing parameters corresponding to the memories in the filter editing type is the first step, and editing the image to be edited using the editing parameters corresponding to the ice beauty in the filter editing type is the second step.
[0074] In this embodiment, the target control may be determined based on a pressing event of the identification control by the user.
[0075] In a specific embodiment, user press events on each identification control are obtained; target press events whose press duration is greater than a duration threshold are determined from each press event; and identification controls corresponding to the target press events are used as at least two target controls.
[0076] The duration threshold may be preset by the user based on experience.
[0077] In the application, when the user touches and presses the identification control, the electronic device captures and generates a pressing event, and obtains the pressing duration of the pressing event based on the duration of the user's touching and pressing of the identification control.
[0078] Step 103: Obtain at least two editing status pictures corresponding to the target identifier.
[0079] In this embodiment, the electronic device caches the editing status pictures obtained by each editing operation, as well as the correspondence between the parameter identifier and the editing status picture. Therefore, after obtaining the target identifier, at least two editing status pictures corresponding to the target identifier can be obtained based on the correspondence.
[0080] Step 104: Compare and display at least two editing status pictures.
[0081] In order to intuitively compare at least two editing status pictures, the electronic device in this embodiment can compare and display the at least two status pictures on the same interface.
[0082] In the technical solution provided by the embodiment of the present application, the picture identifier of the picture to be edited and at least one parameter identifier are obtained, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit an editing status picture of the picture to be edited; at least two identifiers are obtained as target identifiers from the picture identifier of the picture to be edited and each parameter identifier; at least two editing status pictures corresponding to the target identifier are obtained; and at least two editing status pictures are compared and displayed. Since the parameter identifiers corresponding to each set of editing parameters in the editing process can be recorded, the target identifier is obtained from the picture identifier of the picture to be edited and each parameter identifier, and the editing status picture corresponding to the target identifier is displayed, the solution of the present application realizes the comparative display of the editing status pictures during the editing process. This process is not only simple in steps, but also can realize the comparison of the editing status pictures.
[0083] In another embodiment of the present application, in order to reduce the occupancy of the cache of the electronic device and improve the operating speed of the electronic device, the editing status image in the cache can also be deleted after exiting the image editing function.
[0084] In the application, whether to exit the picture editing function can be determined based on whether a final editing state picture is obtained, where the final editing state picture is an editing state picture indicated by the user.
[0085] It should be understood that after exiting the picture editing function, the editing state pictures in the cache are all editing state pictures except the final editing state picture.
[0086] It should be understood that in order to facilitate the user to view the editing status pictures in the editing process later, the editing status pictures in the cache may not be deleted.
[0087] In order to more clearly describe the embodiment of the present application, the following takes the editing type as filter and the two sets of editing parameters as memories and ice beauty as examples to illustrate the implementation of the present application solution:
[0088] When a user obtains a picture through an electronic device, the picture is stored in the storage module. When the user needs to edit the picture, the user opens the picture in the display module, and the picture is displayed in the display module. Figure 2 As shown, Figure 2 A schematic diagram of a screenshot of an electronic device after opening a picture in a display module.
[0089] Next, the system will provide options for users to choose from. If users need to edit the image, they need to select the image editing module to enter the editing state, such as Figure 3 As shown, Figure 3 This is a screenshot diagram of the electronic device after opening the editing module.
[0090] After that, the user can select the editing type to edit the picture according to his / her needs. When the user selects the filter editing type, the electronic device opens the filter module, and the filter module provides the filter parameters provided by the system for selection. When the user selects the required filter parameters (such as memory), the current display module displays the selected filter parameters, and the identifier of the selected filter parameters enters the comparison module, such as Figure 4 As shown, Figure 4 A screenshot diagram of an electronic device after a user selects the recall filter parameter.
[0091] The editing status pictures of the user during editing will be stored in the comparison module. When the user is not satisfied with the current selection and selects another set of editing parameters, the current editing parameters become the previous step of editing, such as Figure 5 As shown, Figure 5 A schematic screenshot of an electronic device after a user is dissatisfied with the filter parameter of Recall and selects the filter parameter of Ice Beauty.
[0092] If the user wants to compare the current effect with the previous one after multiple selections, he only needs to long press the icon of the required filter parameter in the comparison module to compare it with the current effect. The two compared pictures will be presented in the same display module for the user to make a better judgment. Figure 6 As shown, Figure 6 A schematic diagram of a screenshot of an electronic device when showing two editing status pictures for comparison.
[0093] Based on the same concept, an image editing device is provided in the embodiment of the present application. The specific implementation of the device can be found in the description of the method embodiment part, and the repeated parts will not be repeated. Figure 7 As shown, the device mainly includes:
[0094] The first acquisition unit 701 is used to acquire a picture identifier of a picture to be edited and at least one parameter identifier, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit and obtain an editing state picture of the picture to be edited;
[0095] The second acquisition unit 702 is used to acquire at least two identifiers as target identifiers from the picture identifier and each parameter identifier of the picture to be edited;
[0096] The third acquisition unit 703 is used to acquire at least two editing status pictures corresponding to the target identifier;
[0097] The display unit 704 is used to compare and display at least two editing status pictures.
[0098] Optionally, the second acquiring unit 702 is used to:
[0099] Displaying the image identifier of the image to be edited and the identifier controls corresponding to each parameter identifier respectively;
[0100] Acquire at least two target controls indicated by the user from each identification control;
[0101] The identifier corresponding to each target control is used as the target identifier.
[0102] Optionally, the second acquiring unit 702 is used to:
[0103] Get the user's pressing events on each identification control;
[0104] Determine, from each pressing event, a target pressing event whose pressing duration is greater than a duration threshold;
[0105] The identification controls corresponding to the target pressing events are used as at least two target controls.
[0106] Optionally, the second acquiring unit 702 is used to:
[0107] Obtain the image ID of the image to be edited and the editing order corresponding to each parameter ID;
[0108] Displays the labeled controls in the order in which they are edited.
[0109] Optionally, the second acquiring unit 702 is used to:
[0110] Obtain the editing steps for editing the image to be edited using each set of editing parameters;
[0111] An edit order is generated based on the edit steps.
[0112] Optionally, when at least one parameter identifier is N identifiers, there are two identifiers in the N identifiers, and the editing parameters corresponding to the two identifiers belong to different editing types, and N≥2.
[0113] Optionally, the device is also used for:
[0114] After comparing and displaying at least two editing status pictures, when the final editing status picture of the picture to be edited is obtained, all editing status pictures except the final editing status picture are deleted, and the final editing status picture indicates that the editing operation on the picture to be edited is completed.
[0115] Based on the same concept, an electronic device is also provided in the embodiment of the present application, such as Figure 8As shown, the electronic device mainly includes: a processor 801, a memory 802 and a communication bus 803, wherein the processor 801 and the memory 802 communicate with each other through the communication bus 803. The memory 802 stores a program that can be executed by the processor 801, and the processor 801 executes the program stored in the memory 802 to implement the following steps:
[0116] Obtaining a picture identifier of a picture to be edited and at least one parameter identifier, each parameter identifier corresponds to a unique set of editing parameters, and each set of editing parameters is used to edit and obtain an editing state picture of the picture to be edited;
[0117] Obtain at least two identifiers from the image identifier of the image to be edited and each parameter identifier as target identifiers;
[0118] Obtain at least two edit status pictures corresponding to the target identifier;
[0119] Display at least two editing status pictures for comparison.
[0120] The communication bus 803 mentioned in the above electronic device can be a Peripheral Component Interconnect (PCI) bus or an Extended Industry Standard Architecture (EISA) bus. The communication bus 803 can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 8 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0121] The memory 802 may include a random access memory (RAM) or a non-volatile memory, such as at least one disk memory. Optionally, the memory may also be at least one storage device located away from the processor 801.
[0122] The above-mentioned processor 801 can be a general-purpose processor, including a central processing unit (CPU), a network processor (NP), etc., and can also be a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components.
[0123] In another embodiment of the present application, a computer-readable storage medium is provided, in which a computer program is stored. When the computer program is executed on a computer, the computer executes the picture editing method described in the above embodiment.
[0124] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instruction is loaded and executed on a computer, the process or function described in the embodiment of the present application is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instruction can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium, for example, the computer instruction is transmitted from a website site, a computer, a server or a data center by wired (e.g., coaxial cable, optical fiber, digital subscriber line (DSL)) or wireless (e.g., infrared, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that a computer can access or a data storage device such as a server, a data center, etc. that contains one or more available media integration. The available medium can be a magnetic medium (e.g., a floppy disk, a hard disk, a tape, etc.), an optical medium (e.g., a DVD) or a semiconductor medium (e.g., a solid-state hard disk), etc.
[0125] It should be noted that, in this article, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the terms "include", "comprise" or any other variants thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise a ..." do not exclude the existence of other identical elements in the process, method, article or device including the elements.
[0126] The foregoing is merely a specific embodiment of the present invention, which enables those skilled in the art to understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but rather to the widest scope consistent with the principles and novel features claimed herein.
Claims
1. A method for editing a picture, characterized in that: include: Obtaining an image identifier and at least one parameter identifier of a to-be-edited image, each of the parameter identifiers corresponding to a unique set of editing parameters, each set of editing parameters being used to edit an editing status image of the to-be-edited image, and when the editing parameters corresponding to two adjacent editing operations belong to different editing types, the object edited by the next editing operation is the editing status image obtained by the previous editing operation; when the editing parameters corresponding to two adjacent editing operations belong to the same editing type, the objects edited by the two adjacent editing operations are both the original images; Acquire at least two identifiers from the picture identifier of the picture to be edited and each of the parameter identifiers as target identifiers; Obtain at least two editing status pictures corresponding to the target identifier; Comparatively displaying the at least two editing status pictures; The method further includes: displaying identification controls corresponding to the picture identification of the picture to be edited and each parameter identification according to the editing order corresponding to the picture identification of the picture to be edited and each parameter identification.
2. The method according to claim 1, characterized in that Acquiring at least two identifiers as target identifiers from the image identifier of the image to be edited and each of the parameter identifiers, including: Respectively displaying the image identifier of the image to be edited and the identifier controls corresponding to each of the parameter identifiers; Acquire at least two target controls indicated by the user from each of the identification controls; The identifier corresponding to each target control is used as the target identifier.
3. The method according to claim 2, characterized in that Acquiring at least two target controls indicated by the user from each of the identification controls, including: Obtaining a user's pressing event on each of the identification controls; Determine, from the press events, a target press event whose press duration is greater than a duration threshold; The identification controls corresponding to the target pressing events are used as the at least two target controls.
4. The method according to claim 1, characterized in that: Obtaining the picture identifier of the picture to be edited and the editing order corresponding to each of the parameter identifiers, including: Obtaining the editing steps when editing the picture to be edited using each set of the editing parameters; The editing order is generated based on the editing steps.
5. The method according to claim 1, characterized in that: When the at least one parameter identifier is N identifiers, there are two identifiers among the N identifiers, and the editing parameters corresponding to the two identifiers belong to different editing types, and N≥2.
6. The method according to claim 1, characterized in that After comparing and displaying the at least two editing status pictures, the method further includes: When the final editing state picture of the picture to be edited is obtained, all editing state pictures except the final editing state picture are deleted, and the final editing state picture indicates that the editing operation on the picture to be edited is completed.
7. A picture editing device, characterized in that: include: A first acquisition unit is used to acquire a picture identifier of a picture to be edited and at least one parameter identifier, each of the parameter identifiers corresponds to a unique set of editing parameters, each set of editing parameters is used to edit an editing status picture of the picture to be edited, when the editing parameters corresponding to two adjacent editing operations belong to different editing types, the object edited by the next editing operation is the editing status picture obtained by the previous editing operation; when the editing parameters corresponding to two adjacent editing operations belong to the same editing type, the objects edited by the two adjacent editing operations are both the original pictures; A second acquisition unit, configured to acquire at least two identifiers from the picture identifier of the picture to be edited and each of the parameter identifiers as target identifiers; A third acquisition unit, used to acquire at least two editing status pictures corresponding to the target identifier; A display unit, used for comparing and displaying the at least two editing status pictures; The display unit is further used to display the identification controls corresponding to the picture identification of the picture to be edited and the parameter identifications according to the editing order corresponding to the picture identification of the picture to be edited and the parameter identifications.
8. An electronic device, characterized in that: include: A processor, a memory and a communication bus, wherein the processor and the memory communicate with each other via the communication bus; The memory is used to store computer programs; The processor is used to execute the program stored in the memory to implement the picture editing method described in any one of claims 1-6.
9. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the image editing method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Image display method, image display device and terminal equipment
CN111290684A
Image display method and device, storage medium and electronic equipment
CN112165576A
