Picture editing method, electronic device, and storage medium
By providing the gallery interface and user interface on electronic devices, users can edit and save editing records on pictures, solving the problems of low image editing efficiency and waste of storage space in the prior art, and realizing flexible re-editing and efficient editing experience of pictures.
Patent Information
- Application Number
- PCT/CN2024/135415
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-30
- Filing Date
- 2024-11-28
- Publication Date
- 2025-06-05
AI Technical Summary
In the prior art, users save pictures with different editing effects multiple times when editing pictures, resulting in wasting storage space of electronic devices and low editing efficiency.
Provides an image editing method and system. By displaying the gallery interface and user interface, users can edit pictures and save edited pictures and edited records. Users can fall back to any editing node in the editing record to realize re-editing of the picture.
It improves the efficiency of image editing, reduces the waste of storage space, and allows users to easily fall back to the previous editing node, achieving a more flexible image editing experience.
Smart Images

Figure CN2024135415_05062025_PF_FP_ABST
Abstract
Description
Image editing method, electronic device and storage medium
[0001] This application claims priority to the Chinese patent application with application number 202311641626.6 filed with the State Intellectual Property Office of China on November 30, 2023, and priority to the Chinese patent application with the invention name “A picture editing method, electronic device and storage medium”, all contents of which are incorporated by reference into this application. Technical Field
[0002] The present application relates to the field of terminal technology, and in particular to a picture editing method, electronic device, and storage medium. Background Art
[0003] With the development of terminal technology, users can now edit images stored on electronic devices, such as adjusting contrast, brightness, sharpness, adding skin beautification, filters, watermarks, and mosaics, to optimize the image display to meet user needs. After editing, users can save and view the edited image on their electronic device.
[0004] If the user is not satisfied with the edited image, they can re-edit the original image and save the edited image again. However, if the user saves an image with different edit effects multiple times, not only will multiple similar images be saved on the electronic device, but it will also waste storage space. How to improve image editing efficiency requires further research. Summary of the Invention
[0005] The present application provides a picture editing method, electronic device and storage medium, which improve the efficiency of picture editing.
[0006] In a first aspect, the present application provides a picture editing system, which includes a first electronic device, wherein the first electronic device is used to display a first gallery interface, which includes a first picture; the first electronic device is also used to: receive a user's editing operation on the first picture; in response to the editing operation on the first picture, display a first user interface, the editing interface of the first picture includes the first picture and a first option, the first option includes a first node and a second node, the first node is related to a first picture editing algorithm, the second node is related to a second picture editing algorithm, and the first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; receive a first operation of the user on the first node; in response to the first operation, display a second user interface, the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm on the basis of the third picture.
[0007] Optionally, the first image is not limited to the first image editing algorithm and the second image editing algorithm. The first image can also be obtained by combining other more image editing algorithms, and this application does not limit this.
[0008] In some embodiments, the first gallery interface may further include a third picture.
[0009] Through this method, the electronic device can re-edit the pictures saved in the gallery application, so that the saved pictures can be rolled back to any editing node, thereby improving the efficiency of picture editing.
[0010] In combination with the first aspect, in a possible implementation, the first electronic device is further used to: display a second gallery interface, which includes a third picture; receive a user's editing operation on the third picture; in response to the editing operation on the third picture, display a third user interface, which includes a third picture and multiple picture editing options; receive a second operation from the user on a first editing option among multiple picture editing options, the first editing option being related to a first picture editing algorithm; in response to the second operation, obtain a second picture; receive a third operation from the user on a second editing option among multiple picture editing options, the second editing option being related to a second picture editing algorithm; in response to the third operation, obtain the first picture; receive a fourth operation to save the first picture; and in response to the fourth operation, save the first picture and the editing record of the first picture.
[0011] In one possible implementation, the first electronic device is further used to: display a second gallery interface, which includes a third picture; receive a user's editing operation on the third picture; in response to the editing operation on the third picture, display a third user interface, which includes a third picture and multiple picture editing options; receive a user's selection operation on a first editing option and a second editing option among multiple picture editing options, the first editing option is related to a first picture editing algorithm, and the second editing option is related to a second picture editing algorithm; in response to the selection operation, process the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain a first picture; receive a fourth operation to save the first picture; and in response to the fourth operation, save the first picture and the editing record of the first picture.
[0012] The third picture is the original picture without executing the picture editing algorithm.
[0013] After the user adds an image editing algorithm to the third image, the first electronic device may display the corresponding editing nodes on the image editing interface. This may indicate to the user the image editing algorithm currently used for the image. Furthermore, the user may operate on the editing nodes displayed on the image editing interface to revert the image to the editing effect corresponding to the editing algorithm corresponding to any one or more editing nodes.
[0014] In combination with the first aspect, in a possible implementation, the second user interface further includes a second option, and the second option includes the first node.
[0015] In this way, the first node is used to prompt the user that the second image is obtained based on the first image editing algorithm.
[0016] In combination with the first aspect, in a possible implementation, the second picture is obtained by the first electronic device based on the third picture and a first image editing algorithm.
[0017] In this way, when the user re-edits the picture, the electronic device can locally edit the original picture based on the picture editing algorithm selected by the user to obtain the picture editing effect desired by the user.
[0018] In combination with the first aspect, in one possible implementation, the first electronic device is further used to: respond to the first operation, send the third picture and the identifier of the first image editing algorithm to the server; receive the second picture sent by the server, where the second picture is obtained by the server based on the first image editing algorithm based on the third picture.
[0019] In this way, when the user re-edits the image, the electronic device can use the server to edit the original image based on the image editing algorithm selected by the user. The server's computing power is stronger than that of the electronic device, which can reduce the amount of computing required by the electronic device and increase the speed of the electronic device's image re-editing.
[0020] In combination with the first aspect, in a possible implementation manner, the first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.
[0021] In one possible implementation, the first electronic device is further configured to send the identifier of the second image editing algorithm and the second image to a server, and the server edits the second image based on the second image editing algorithm to obtain the first image. The server then sends the first image to the first electronic device.
[0022] In combination with the first aspect, in a possible implementation method, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.
[0023] Optionally, the first algorithm structure also includes the order of image editing algorithms, for example, the first image editing algorithm points to the second image editing algorithm, and the identification picture is the first image editing algorithm used first and the second image editing algorithm used later.
[0024] In combination with the first aspect, in one possible implementation, the first electronic device is specifically used to: in response to an editing operation on the first picture, obtain first algorithm information in the editing record of the first picture; and display a first option on the first user interface based on the first algorithm information.
[0025] In this way, the electronic device can display the editing node on the picture editing interface based on the stored first algorithm information, so that the user can re-edit the picture based on the editing node.
[0026] In combination with the first aspect, in one possible implementation, the system also includes a second electronic device; the first electronic device is further used to: send the first picture and the editing record of the first picture to the second electronic device; the second electronic device is used to receive a fifth operation; the second electronic device is further used to display a fourth user interface in response to the fifth operation, the fourth user interface including the first picture and a third option, the third option including a third node and a fourth node, the third node is related to the first picture editing algorithm, and the fourth node is related to the second picture editing algorithm.
[0027] For an edited picture, the first electronic device not only needs to share the picture with the second electronic device, but also needs to share the editing record of the picture with the second electronic device.
[0028] Not only can the electronic device re-edit the picture locally, the electronic device can also share the picture and the editing record of the picture to a second electronic device. The second electronic device can also re-edit the picture shared by the first electronic device, further improving the efficiency of picture editing.
[0029] In combination with the first aspect, in a possible implementation, the second electronic device is specifically used to: obtain the first algorithm information in the editing record of the first image when it has the authority to read the editing record of the first image; and display the third option on the fourth user interface based on the first algorithm information.
[0030] In a possible implementation, the second electronic device is further configured to display a fifth user interface including the first picture when the second electronic device does not have permission to read the editing record of the first picture. The fifth user interface includes the first picture.
[0031] In this way, after the second electronic device receives the first image and the editing record of the first image shared by the first electronic device, the second electronic device can determine whether the first image can be re-edited. If the second electronic device has the authority to re-edit the first image, the second electronic device can display the editing node of the first image, allowing the user to re-edit the first image displayed by the second electronic device. If the second electronic device does not have the authority to re-edit the first image, the second electronic device may not display the editing node of the first image to indicate that the second electronic device does not have the authority to re-edit the first image.
[0032] In conjunction with the first aspect, in one possible implementation, the first electronic device is further configured to send application information of a first application to the second electronic device, wherein the first application is an application that edits the third image to obtain the first image;
[0033] The second electronic device is specifically used to: display the first picture through the second application; obtain the first algorithm information in the editing record of the first picture when the first application and the second application are the same application; and display the third option on the fifth user interface based on the first algorithm information.
[0034] In some embodiments, the first electronic device is further configured to send application information of the first application to the second electronic device, and the second electronic device is further configured to obtain application information of the second application. If the first application and the second application are the same application, the second application has permission to re-edit the first image.
[0035] In other embodiments, when the first application and the second application are not the same application, if the first application and the second application share a common set of image editing algorithms, the second application also has the authority to re-edit the first image.
[0036] In conjunction with the first aspect, in one possible implementation, the application information of the first application includes any one or more of the following: the application name or identifier, the application version number, and the name of the application developer.
[0037] In combination with the first aspect, in a possible implementation method, the description information of the description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, and the parameters of the first image editing algorithm; the description information of the description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, and the parameters of the second image editing algorithm.
[0038] In second aspect, the present application provides a picture editing method, the method comprising: a first electronic device displays a first gallery interface, the first gallery interface including a first picture; the first electronic device receives a user's editing operation on the first picture; in response to the editing operation on the first picture, the first electronic device displays a first user interface, the editing interface of the first picture includes the first picture and a first option, the first option includes a first node and a second node, the first node is related to a first picture editing algorithm, the second node is related to a second picture editing algorithm, the first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; the first electronic device receives the user's first operation on the first node; in response to the first operation, the first electronic device displays a second user interface, the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm on the basis of the third picture.
[0039] In combination with the second aspect, in a possible implementation, before the first electronic device displays the first gallery interface, the method also includes: the first electronic device displays a second gallery interface, the second gallery interface includes a third picture; the first electronic device receives an editing operation of the user on the third picture; in response to the editing operation on the third picture, the first electronic device displays a third user interface, the third user interface includes a third picture and multiple picture editing options; the first electronic device receives a second operation of the user on a first editing option among multiple picture editing options, the first editing option is related to a first picture editing algorithm; in response to the second operation, the first electronic device obtains the second picture; after obtaining the second picture, the first electronic device receives a third operation of the user on a second editing option among multiple picture editing options, the second editing option is related to a second picture editing algorithm; in response to the third operation, the first electronic device obtains the first picture; the first electronic device receives a fourth operation of saving the first picture; in response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.
[0040] In combination with the second aspect, in a possible implementation, before the first electronic device displays the first gallery interface, the method also includes: the first electronic device displays the second gallery interface, the second gallery interface includes the third picture; the first electronic device receives the user's editing operation on the third picture; in response to the editing operation on the third picture, the first electronic device displays a third user interface, the third user interface includes the third picture and multiple picture editing options; the first electronic device receives the user's selection operation for the first editing option and the second editing option among the multiple picture editing options, the first editing option is related to the first picture editing algorithm, and the second editing option is related to the second picture editing algorithm; in response to the selection operation, the first electronic device processes the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain the first picture; the first electronic device receives a fourth operation to save the first picture; in response to the fourth operation, the first electronic device saves the first picture and the editing record of the first picture.
[0041] In combination with the second aspect, in a possible implementation, the second user interface further includes a second option, and the second option includes the first node.
[0042] In combination with the second aspect, in a possible implementation, the second picture is obtained by the first electronic device based on the third picture and a first image editing algorithm.
[0043] In combination with the second aspect, in a possible implementation, before the first electronic device displays the second user interface, the method also includes: in response to the first operation, the first electronic device sends the third picture and the identifier of the first image editing algorithm to the server; the first electronic device receives the second picture sent by the server, and the second picture is obtained by the server based on the first image editing algorithm on the basis of the third picture; the first electronic device displays the second user interface, specifically including: in response to receiving the second picture sent by the server, the first electronic device displays the second user interface.
[0044] In conjunction with the second aspect, in a possible implementation, the first picture is obtained by processing the second picture by the first electronic device according to the second picture editing algorithm.
[0045] In a possible implementation, the first image is obtained by processing the second image by the server according to a second image editing algorithm.
[0046] In combination with the second aspect, in a possible implementation method, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.
[0047] In combination with the second aspect, in one possible implementation, the first electronic device displays a first user interface, specifically including: in response to an editing operation on the first picture, the first electronic device obtains first algorithm information in the editing record of the first picture; the first electronic device displays a first option on the first user interface based on the first algorithm information.
[0048] In combination with the second aspect, in one possible implementation, after the first electronic device saves the first picture and the editing record of the first picture, the method also includes: the first electronic device sends the first picture and the editing record of the first picture to a second electronic device; wherein the editing record of the first picture is used by the second electronic device to process the first picture based on the first picture editing algorithm and the second picture editing algorithm.
[0049] In combination with the second aspect, in a possible implementation method, the descriptive information of the descriptive information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, and the parameters of the first image editing algorithm; the descriptive information of the descriptive information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, and the parameters of the second image editing algorithm.
[0050] In a third aspect, the present application provides an electronic device, which is a first electronic device, and the first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes a picture editing method provided in any possible implementation of any of the above aspects.
[0051] In a fourth aspect, the present application provides an electronic device, which is a second electronic device, and the second electronic device includes a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the second electronic device executes a data sharing method provided in any possible implementation of any of the above aspects.
[0052] In a fifth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a first electronic device, enables the first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0053] In a sixth aspect, the present application provides a computer-readable storage medium comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0054] In a seventh aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0055] In an eighth aspect, the present application provides a chip system, which includes one or more processors, and the processor is used to call computer instructions to enable a second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0056] In a ninth aspect, the present application provides a computer program product comprising instructions, which, when run on a first electronic device, enables the first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0057] In a tenth aspect, the present application provides a computer program product comprising instructions, which, when executed on a second electronic device, enables the second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0058] For the description of the beneficial effects of the second to tenth aspects, reference may be made to the description of the beneficial effects in the first aspect, and this application will not repeat them here. BRIEF DESCRIPTION OF THE DRAWINGS
[0059] 1A-1K are schematic diagrams showing a user editing a picture saved in a gallery application;
[0060] 2A-2D and 3A-3D are schematic diagrams showing the electronic device 100 performing an editing operation on a picture;
[0061] FIG4A is a schematic diagram of a method flow of a picture editing method provided by the present application;
[0062] FIG4B is a schematic diagram of an algorithm structure provided by this application;
[0063] 5A-5S are schematic diagrams showing the electronic device 100 re-editing the picture 3201 based on user operations;
[0064] FIG6 is a flow chart of a method for re-editing an image provided by the present application;
[0065] 7A-7G show UI diagrams of the electronic device 100 sharing the picture 3201 to the electronic device 200;
[0066] FIG8 is a flow chart of a method for an electronic device 100 to re-edit a picture sent by the electronic device 100 provided in this application;
[0067] FIG9 is a schematic diagram of a method flow of a picture editing method provided by the present application;
[0068] FIG10 is a schematic diagram of the hardware structure of an electronic device 100 provided in this application;
[0069] FIG11 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention. DETAILED DESCRIPTION
[0070] The following is a clear and detailed description of the technical solutions in the embodiments of the present application in conjunction with the accompanying drawings. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in the text is only a description of the association relationship between related objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.
[0071] In the following, the terms "first" and "second" are used for descriptive purposes only and should not be understood to imply or suggest relative importance or implicitly indicate the number of the technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of this application, unless otherwise specified, "plurality" means two or more.
[0072] The term "user interface (UI)" in the following embodiments of this application refers to the media interface for interaction and information exchange between an application or operating system and a user, which realizes the conversion between the internal form of information and the form acceptable to the user. The commonly used form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operations displayed in a graphical manner. It can be a visual interface element such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, widgets, etc. displayed on the display screen of a wearable device.
[0073] In some embodiments, users can edit pictures saved in the gallery application in the gallery application. Users can also edit pictures saved in the gallery application in the beauty application.
[0074] Image editing by electronic devices can include adding filters, text, stickers, special effects, cropping and rotating images, adjusting image information, changing image backgrounds, etc. Adjusting image information includes, but is not limited to, adjusting any one or more of the following: brightness, contrast, saturation, sharpness, color temperature, highlights, shadows, etc.
[0075] 1A-1K are schematic diagrams showing a user editing a picture saved in a gallery application.
[0076] Figure 1A shows the desktop of electronic device 100. The desktop of electronic device 100 displays application icons for multiple applications, such as a weather application icon, a stock application icon, a calculator application icon, a settings application icon, an email application icon, a music application icon, a video application icon, a browser application icon, a map application icon, a gallery application icon, a memo application icon, a voice assistant application icon, and a photo application icon. A page indicator is also displayed below the multiple application icons to indicate the total number of pages on the desktop and the position of the currently displayed page in relation to other pages. For example, the desktop may include three pages, and a white dot in the page indicator may indicate that the currently displayed page is the rightmost of the three pages. Optionally, multiple tray icons (such as a dialer application icon, a messaging application icon, a contacts application icon, and a camera application icon) are located below the page indicator. The tray icons remain displayed when switching between pages. Optionally, a status bar is displayed in a portion of the upper area of the desktop. The status bar may include: one or more signal strength indicators for a mobile communication signal (also known as a cellular signal), a battery status indicator, a time indicator, and the like.
[0077] For example, as shown in FIG1A , electronic device 100 may receive a user input operation (e.g., a single click) on a gallery application icon on the desktop. In response to the user input operation, electronic device 100 may display user interface 1100 shown in FIG1B . User interface 1100 is a user interface for categorizing photos displayed on electronic device 100 according to an embodiment of the present application by time. User interface 1100 shows multiple pictures, including picture 1101.
[0078] For example, as shown in FIG1B , the electronic device 100 may receive a user input operation (eg, a single click) on the image 1101 in the user interface 1100 . In response to the user input operation, the electronic device 100 may display the user interface 1200 shown in FIG1C .
[0079] As shown in Figure 1C, user interface 1200 includes picture 1101 and menu 1201. Menu 1201 may include a share button, a favorite button, an edit button, a delete button, and a more button. Picture 1101 may have a title, for example, "Landscape". The share button can be used to trigger the opening of the system sharing interface. The favorite button can be used to trigger the collection of picture 1101 to a picture collection folder. The edit button can be used to trigger editing functions such as rotating, cropping, adding filters, blurring, etc. on picture 1101. The delete button can be used to trigger the deletion of picture 1101. The more button can be used to trigger the opening of more picture-related functions.
[0080] For example, as shown in FIG1C , the electronic device 100 may receive a user input operation (e.g., a single click) on an edit button in the user interface 1200. In response to the user input operation, the electronic device 100 may display the user interface 1300 shown in FIG1D , and the user may edit the picture 1101 in the user interface 1300.
[0081] As shown in FIG1D , user interface 1300 includes image 1101, a return option 1301, a delete option 1303, a save option 1302, an edit bar 1304, and an edit bar 1305. Edit bar 1304 includes multiple editing options, such as adjustment options, adding filters, cropping and rotating options, and an eraser option. The adjustment option is currently selected, and the multiple editing options shown in edit bar 1305 are editing options corresponding to the adjustment option. Edit bar 1305 also includes multiple editing options, such as adjusting brightness, adding shadows, adjusting clarity, adding highlights, adjusting color temperature, and background blurring. The user can slide the area where edit bar 1305 is located to view more editing options.
[0082] Exemplarily, as shown in FIG1D , the electronic device 100 may receive a user input operation (e.g., a single click) for adding a filter option in the user interface 1300. In response to the user input operation, the electronic device 100 may display the user interface 1400 shown in FIG1E , in which the user may add a filter to the picture 1101. The user interface 1400 includes an editing bar 1401, and the multiple editing options shown in the editing bar 1401 are editing options corresponding to the option to add a filter. The editing bar 1401 also includes multiple editing options, such as an option to add no filter, an option to add a warm filter, an option to add a leisurely filter, and the like. The user may slide the area where the editing bar 1401 is located to view more filter options.
[0083] For example, as shown in FIG1E , the electronic device 100 may receive a user input operation (e.g., a single click) for the option to add a warming filter in the user interface 1400. In response to the user input operation, the electronic device 100 may display the user interface 1500 shown in FIG1F . The user interface 1500 includes a picture 1501, which is a picture obtained by adding a warming filter to the picture 1101. Thereafter, the electronic device 100 may receive a user input operation (e.g., a single click) for the option to save 1302 in the user interface 1500. In response to the user input operation, the electronic device 100 may save the picture 1501 and display the user interface 1600 shown in FIG1G . The user interface 1600 is similar to the user interface 1100, except that the user interface 1600 also includes the picture 1501.
[0084] In some embodiments, if the user is not satisfied with the editing effect of picture 1501 , the user can re-edit picture 1101 based on picture 1101 .
[0085] Referring to the description of the embodiment of Figures 1B-1C, when a user needs to re-edit image 1101, electronic device 100 can display user interface 1300 shown in Figure 1D. As shown in Figure 1H, electronic device 100 can receive user input for the cropping and rotating options in user interface 1300 and display user interface 1700 shown in Figure 1I. User interface 1700 includes a picture cropping frame 1701 and picture rotation options 1702. The user can adjust the size of picture cropping frame 1701 to adjust the size of picture 1101. Picture rotation options 1702 include a rotate left option and a rotate right option. The user can rotate picture 1101 90 degrees to the left using the rotate left option, and the user can also rotate picture 1101 90 degrees to the right using the rotate right option.
[0086] After the electronic device 100 crops the size of the image 1101 based on the user operation, the electronic device 100 may display the user interface 1800 shown in FIG. 1J .
[0087] User interface 1800 includes picture 1801, which is a cropped image of picture 1101. Subsequently, electronic device 100 may receive a user input operation (e.g., a single click) for save option 1302 in user interface 1800. In response to the user input operation, electronic device 100 may save picture 1801 and display user interface 1900 shown in FIG. 1K . User interface 1900 is similar to user interface 1600, except that user interface 1800 also includes picture 1701.
[0088] As can be seen from Figures 1G and 1K, when a user adds a filter to an original image, the user can save the image. If the user is not satisfied with the editing result of the added filter, the user only needs to perform a cropping operation on the original image. The user can only perform a cropping operation on the original image based on the original image and save the cropped image. The electronic device 100 not only stores the image after the filter is added, but also stores the image after the cropping operation. The electronic device 100 not only stores the original image, but also stores the image after the filter is added and the image after the cropping operation is performed. That is, not only do multiple similar images exist on the electronic device 100, but they also occupy the storage space of the electronic device 100.
[0089] Based on the above analysis, to improve image editing efficiency, while a user is editing an image, the electronic device 100 can save an edit history of the image. This history can include one or more edit nodes, each of which can include parameter information for the image processing algorithm used. Later, when the user re-edits the saved image, the electronic device 100 can display the edit history and, based on the user's operation, roll back to any edit node to enable re-editing of the image, thereby improving image editing efficiency.
[0090] Optionally, the present application is not only applicable to re-editing pictures, but also to re-editing videos and audios. The specific implementation is similar to the process of re-editing pictures provided in the following embodiments of the present application.
[0091] First, an image editing scenario provided by this application is introduced.
[0092] 1. Perform one or more editing operations on the image and save the edited image and the editing record of the image.
[0093] In some embodiments, the electronic device 100 may perform one or more editing operations on the image in the gallery application. In other embodiments, the electronic device 100 may also perform one or more editing operations on the image in the photo beautification application.
[0094] The embodiments of the present application are described by taking an example of performing one or more editing operations on a picture in a gallery application.
[0095] 2A-2D and 3A-3D are schematic diagrams showing the electronic device 100 performing editing operations on a picture.
[0096] Referring to the description in the embodiments of FIG. 1A to FIG. 1E , the electronic device 100 may receive a user operation to perform a filter adding operation on the image 1101 .
[0097] Exemplarily, as shown in FIG2A , in response to the user performing an editing operation of adding a warm filter to picture 1101, the electronic device 100 may display the user interface 2100 shown in FIG2A , where the user interface 2100 includes picture 1501 , which is a picture obtained by adding a warm filter to picture 1101 .
[0098] The user interface 2100 further displays an editing node 2101 , and the word “filter” is displayed below the editing node 2101 to indicate that the image 1501 is a picture obtained after performing a filter adding operation.
[0099] In some embodiments, the word “Filter” may not be displayed below the edit node 2101 .
[0100] The electronic device 100 also needs to save the editing record of the image 1501. The editing record of the image 1501 may include the image processing algorithm parameter information 1 used for the image 1501. The image processing algorithm parameter information 1 may include, but is not limited to, the algorithm processing structure 1 and the algorithm description information 1. For example, the algorithm processing structure 1 may include a filter algorithm, the algorithm description information 1 may include the description information of the filter algorithm, and the description information of the filter algorithm may include, but is not limited to, the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth".
[0101] In some embodiments, the user can continue to perform other editing operations based on the image 1501 .
[0102] For example, the user can add a watermark based on the picture 1501.
[0103] For example, as shown in FIG2A , the electronic device 100 may receive a user input operation (e.g., a single click) for adjusting an option in the user interface 2100. In response to the user input operation, the electronic device 100 may display the user interface 2200 shown in FIG2B . The user interface 2200 includes an edit bar 1304 and an edit bar 1305.
[0104] As shown in Figure 2B, the electronic device 100 can receive a sliding operation (for example, a sliding operation to the left) performed by the user on the editing bar 1304. In response to the user's sliding operation, the electronic device 100 can display the user interface 2300 shown in Figure 2C. The editing bar 2301 shown in the user interface 2300 is similar to the editing bar 1305, except that the editing bar 2301 also includes an add watermark option, and the user can add a watermark to the picture 1501 through the add watermark option.
[0105] Exemplarily, as shown in FIG2D , in response to adding text to picture 1501 , electronic device 100 may display user interface 2400 shown in FIG2D . User interface 2400 may include picture 2401 , which is obtained by adding text “Good day” to picture 1501 .
[0106] The user interface 2400 also displays an editing node 2101 and an editing node 2402. The editing node 2101 points to the editing node 2402 to indicate the execution order of different image editing algorithms. The word "filter" is displayed below the editing node 2101, and the word "watermark" is displayed below the editing node 2402 to indicate that the image 2401 is the image obtained after performing the filter adding operation and the watermark adding operation.
[0107] In some embodiments, the text “watermark” may not be displayed below the edit node 2402 .
[0108] The electronic device 100 also needs to save the editing record of the picture 2401. The editing record of the picture 2401 may include the picture processing algorithm parameter information 2 used by the picture 2401. The picture processing algorithm parameter information 2 may include but is not limited to the algorithm processing structure 2 and the algorithm description information 2. For example, the algorithm processing structure 2 may include an add filter algorithm pointing to an add watermark algorithm. The algorithm description information 2 may include the description information of the add filter algorithm and the description information of the add watermark algorithm. The description information of the add filter algorithm may include but is not limited to the identifier or name of the add filter algorithm, the version of the add filter algorithm, the parameters of the add filter algorithm, etc. For example, the parameters of the add filter algorithm may be "warmth". The description information of the add watermark algorithm may include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameters of the add watermark algorithm may be "Good day".
[0109] In some embodiments, the user can continue to perform other editing operations based on the image 2401 .
[0110] For example, the user can crop the image 2401 .
[0111] As shown in FIG3A , electronic device 100 can receive a user input operation for the cropping and rotating options in user interface 2400 and display user interface 3100 shown in FIG3B . User interface 3100 includes a picture cropping frame 1701 and picture rotation options 1702. The user can adjust the size of picture cropping frame 1701 to adjust the size of picture 2401. Picture rotation options 1702 include a rotate left option and a rotate right option. The user can rotate picture 2401 90 degrees to the left using the rotate left option, and the user can rotate picture 2401 90 degrees to the right using the rotate right option.
[0112] After the electronic device 100 crops the size of the image 2401 based on the user operation, the electronic device 100 may display the user interface 3200 shown in FIG. 3C .
[0113] User interface 3200 includes picture 3201, which is a cropped picture based on picture 2401. Subsequently, electronic device 100 may receive a user input operation (e.g., a single click) for save option 1302 in user interface 3200. In response to the user input operation, electronic device 100 may save picture 3201 and display user interface 3300 shown in FIG3D . User interface 3300 is similar to user interface 1600, except that user interface 3300 also includes picture 3201, which is a picture obtained by adding a filter, adding a watermark, and cropping the picture 1101.
[0114] The user interface 3200 also displays editing node 2101, editing node 2402 and editing node 3202. Editing node 2101, editing node 2402 and editing node 3202 are used to indicate the execution order of different image editing algorithms. The word "filter" is displayed below editing node 2101, the word "watermark" is displayed below editing node 2402, and the word "crop" is displayed below editing node 3202 to indicate that image 3201 is the image obtained after adding filter, adding watermark and cropping operations.
[0115] In some embodiments, the word “Crop” may not be displayed below the edit node 3202 .
[0116] The electronic device 100 also needs to save the editing record of the image 3201. The editing record of the image 3201 may include the image processing algorithm parameter information three used by the image 3201. The image processing algorithm parameter information three may include but is not limited to the algorithm processing structure three and the algorithm description information three. For example, the algorithm processing structure three may include the adding filter algorithm pointing to the adding watermark algorithm, and the adding watermark algorithm pointing to the cropping algorithm. The algorithm description information three may include the description information of the adding filter algorithm, the description information of the adding watermark algorithm and the description information of the cropping algorithm. The description information of the adding filter algorithm may include but is not limited to the identifier or name of the adding filter algorithm, the version of the adding filter algorithm, the parameters of the adding filter algorithm, etc. For example, the parameters of the adding filter algorithm may be "warmth". The description information of the adding watermark algorithm may include but is not limited to the identifier or name of the adding watermark algorithm, the version of the adding watermark algorithm, the parameters of the adding watermark algorithm, etc. For example, the parameters of the adding watermark algorithm may be "Good day". The description information of the cropping algorithm may include but is not limited to the identifier or name of the cropping algorithm, the version of the cropping algorithm, parameters of the cropping algorithm, etc. For example, the parameters of the cropping algorithm may be the size of the cropping frame.
[0117] The electronic device 100 is not limited to performing operations such as adding filters, adding watermarks, and cropping on the image 1101. The electronic device 100 can also perform other editing operations on the image 1101 based on user operations, and this application does not limit this.
[0118] FIG4A is a schematic diagram of a method flow of a picture editing method provided in this application.
[0119] S401. The electronic device 100 displays a first picture editing interface, which includes a first picture and multiple picture editing options.
[0120] The first picture editing interface can be the picture editing interface in the gallery application, and the first picture editing interface can also be the picture editing interface in the beauty application. This application does not limit this.
[0121] The embodiment of the present application is described by taking the example that the first picture editing interface is a picture editing interface in a gallery application.
[0122] The user can edit or beautify the first image through multiple image editing options. Editing or beautifying the image can include adding filters, adding text, adding stickers, adding special effects, cropping and rotating the image, adjusting image information, changing the image background, etc. Adjusting image information includes, but is not limited to, adjusting any one or more of the following information: brightness, contrast, saturation, sharpness, color temperature, highlights, shadows, etc.
[0123] Exemplarily, the first picture editing interface may be the user interface 1300 shown in FIG. 1D .
[0124] The first picture may be the picture 1101 shown in FIG. 1D .
[0125] The picture editing options may include, but are not limited to, the multiple editing options shown in the editing bar 1304 and the editing bar 1305 shown in FIG. 1D .
[0126] S402. The electronic device 100 receives a user operation on a first editing option among multiple picture editing options, and displays a second picture editing interface, where the second picture editing interface includes a second picture, which is obtained by using a first editing algorithm based on the first picture.
[0127] For example, the first editing option may be the add warming filter option shown in Figure 1E. The first editing algorithm may be an add warming filter algorithm.
[0128] The operation for the first editing option among the multiple picture editing options may be an input operation (eg, a single click) for adding a warm filter option in the user interface 1400 as shown in FIG. 1E .
[0129] The second picture editing interface may be the user interface 2100 shown in FIG. 2A .
[0130] The second picture may be the picture 1501 shown in FIG. 2A .
[0131] S403: The electronic device 100 generates a first picture editing record, where the first picture editing record includes a first algorithm structure and first description information.
[0132] In response to a user operation on a first picture editing option among a plurality of picture editing options, the electronic device 100 generates a first picture editing record, where the first picture editing record includes a first algorithm structure and first description information.
[0133] The first algorithm structure is used to indicate the type of image editing algorithm used for the second image and the order of the image editing algorithms used for the second image.
[0134] For example, the first algorithm structure may be the algorithm structure shown in (a) of Figure 4B . The adding warming filter algorithm may be the root node of the first algorithm structure.
[0135] The first description information is used to indicate description information of a first editing algorithm used for the second picture.
[0136] Exemplarily, the first editing algorithm may be a filter algorithm, and the description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth".
[0137] In some embodiments, after the electronic device 100 generates the image editing record, in order to save the storage space occupied by the image editing record, the electronic device 100 may compress the image editing record before storing it. The compression algorithm may include, but is not limited to, any of the following: RLE compression algorithm, LZ77 compression algorithm, LZR compression algorithm, DEFLATE compression algorithm, etc.
[0138] In some embodiments, the electronic device 100 may store the picture editing record based on a preset file format. For example, in the embodiment of the present application, the preset file format may be referred to as a TBP file format.
[0139] Table 1
[0140] Table 1 shows the structure of the TBP file format.
[0141] As shown in Table 1, the TBP file format includes but is not limited to an SOI segment, one or more TBP-APP segments, one or more GPH segments, an EOI segment, and the like.
[0142] The SOI segment is used to fill in CA FE, and the SOI segment is used to indicate the beginning of the picture.
[0143] One or more TBP-APP segments may include, but are not limited to, TBP-APP0, TBP-APP1, and TBP-APP2. The TBP-APP0 segment is used to fill in the original metadata of the image, and the TBP-APP0 segment is used to represent the image information describing the original image. The TBP-APP1 segment is used to fill in the storage address of the compressed original image, and the TBP-APP1 segment is used to represent the storage address of the original image before editing operations are performed. The TBP-APP2 segment is used to fill in the updated metadata data of the image, and the TBP-APP2 segment is used to represent the image information of the image obtained after performing editing operations on the original image.
[0144] One or more GPH segments may include but are not limited to GPH0, GPH1, GPH2, GPH3, and GPH4. GPH0 is used to fill in the picture editing algorithm structure table. GPH0 is used to record the execution order of the executed picture editing algorithms. GPH1 is used to fill in picture editing algorithm A. GPH1 is used to indicate the identifier of picture editing algorithm A. GPH2 is used to fill in picture editing algorithm B. GPH2 is used to indicate the identifier of picture editing algorithm B. GPH3 is used to fill in picture editing algorithm C. GPH3 is used to indicate the identifier of picture editing algorithm C. GPH4 is used to fill in the storage address of the compressed updated picture. GPH4 is used to indicate the storage address of the original picture on which the editing operation has been performed.
[0145] The EOI segment is used to fill in CA FD and indicates the end of the picture.
[0146] It should be noted that, depending on the type of image editing algorithm used for an image, more or fewer GPH segments may be included, and this application does not limit the number of GPH segments.
[0147] In some embodiments, the data structure of the TBP file format may also include more or fewer fields than those in Table 1, which is not limited in this application.
[0148] For example, referring to the description in the embodiments of FIG. 1D - FIG. 1F , after the electronic device 100 adds a “warm” filter to the picture 1101 based on a user operation, the electronic device 100 may record the identifier of the algorithm for adding the “warm” filter in the GPH1 segment in Table 1.
[0149] For example, referring to the description in the embodiments of FIG. 2C and FIG. 2D , after the electronic device 100 adds a “Good day” text watermark to the picture 1501 based on a user operation, the electronic device 100 may record the identifier of adding the “Good day” text watermark in the GPH2 segment in Table 1.
[0150] For example, referring to the description in the embodiments of FIG. 3A to FIG. 3C , after the electronic device 100 crops the image 2401 based on a user operation, the electronic device 100 may record the identifier of the cropping algorithm in the GPH3 segment in Table 1.
[0151] In some embodiments, the picture editing algorithm structure table in the TBP file format can be represented as the data structure shown in Table 2.
[0152] Table 2
[0153] Table 2 exemplarily shows the data structure of the editing algorithm structure table.
[0154] As shown in Table 2, the data structure may include multiple fields, such as a SOT0 segment, a SOT1 segment, a CPS segment, one or more GPI segments, and an EOT segment.
[0155] Among them, the SOT0 segment is used to fill in CA FO, which indicates the beginning of the image editing algorithm structure.
[0156] The SOT1 segment is used to fill in the length of the image editing algorithm data segment. The SOT1 segment is used to indicate the length of the image editing algorithm data segment.
[0157] The CPS segment is used to fill in the compression bit mark. The CPS segment is used to indicate the compression algorithm type and whether the image is compressed.
[0158] One or more GPI segments may include but are not limited to the GPI0 segment, the GPI1 segment, the GPI2 segment, and the GPI3 segment. The GPI0 segment is used to fill in the image editing algorithm node graph structure. The GPI0 segment can be expressed as image editing algorithm A->image editing algorithm B->image editing algorithm C, thereby indicating that the image uses image editing algorithm A, image editing algorithm B, and image editing algorithm C in sequence. The GPI1 segment is used to fill in the fat pointer of the image editing algorithm A data structure. The GPI1 segment is used to indicate the offset position and length of the image editing algorithm A. The GPI2 segment is used to fill in the fat pointer of the image editing algorithm B data structure. The GPI2 segment is used to indicate the offset position and length of the image editing algorithm B. The GPI3 segment is used to fill in the fat pointer of the image editing algorithm C data structure. The GPI3 segment is used to indicate the offset position and length of the image editing algorithm C.
[0159] The EOT segment is used to fill in CA F1, which indicates the end of the image editing algorithm structure.
[0160] It should be noted that, depending on the type of image editing algorithm used for an image, more or fewer GPI segments may be included, and this application does not limit the number of GPH segments.
[0161] In some embodiments, the data structure of the picture editing algorithm structure table may also include more or fewer fields than Table 2, and this application does not limit this.
[0162] For example, referring to the description in the embodiments of Figures 1D-1F, after the electronic device 100 adds a "warmth" filter to the picture 1101 based on the user operation, the electronic device 100 can record the pointer of the description information of the "warmth" filter algorithm in the GPI1 segment in Table 2.
[0163] For example, referring to the description in the embodiments of FIG. 2C and FIG. 2D , after the electronic device 100 adds a “Good day” text watermark to the picture 1501 based on a user operation, the electronic device 100 may record a pointer to the description information of the algorithm for adding the “Good day” text in the GPI2 segment in Table 2.
[0164] For example, referring to the description in the embodiments of FIG. 3A to FIG. 3C , after the electronic device 100 crops the image 2401 based on a user operation, the electronic device 100 may record a pointer to the description information of the cropping algorithm in the GPH3 segment in Table 2.
[0165] In some embodiments, the fat pointer of the picture editing algorithm data structure in the image editing algorithm structure table can be represented as the data structure shown in Table 3.
[0166] Table 3
[0167] Table 3 exemplarily shows the data structure of the fat pointer of the picture editing algorithm data structure.
[0168] As shown in Table 3, the data structure may include multiple fields, such as SOA segment, VER segment, STR segment, TPE segment, PAR segment, AVR segment, VDR segment, ADR segment, CPX segment, FIL segment and EOA segment.
[0169] The SOA segment is used to fill in CA F2, which indicates the beginning of the image editing algorithm packaging structure.
[0170] The VER segment is used to fill in the image editing algorithm version and image editing algorithm type. The VER segment indicates the image editing algorithm version and image editing algorithm type. The algorithm type can include deterministic algorithm or non-deterministic algorithm.
[0171] The STR segment is used to fill in the image editing algorithm name. The STR segment represents the image editing algorithm name.
[0172] The TPE segment is used to fill in the image format of the input parameter of the image editing algorithm. The TPE segment indicates the data type of the input parameter of the image editing algorithm.
[0173] The PAR segment is used to fill in the image editing algorithm parameter group. The PAR segment represents the image editing algorithm parameters.
[0174] For example, referring to the description in the embodiment of FIG. 1D to FIG. 1F , after the electronic device 100 adds a "warmth" filter to the image 1101 based on a user operation, the electronic device 100 may record the description information of the algorithm for adding the "warmth" filter in multiple segments in Table 3. For example, the electronic device 100 may record the parameter "warmth" of the algorithm for adding the "warmth" filter in the PAR segment in Table 3.
[0175] For example, referring to the description of the embodiment in FIG. 2C and FIG. 2D , after the electronic device 100 adds a "Good day" text watermark to the image 1501 based on a user operation, the electronic device 100 may record the description information of the algorithm for adding the "Good day" text in multiple segments in Table 3. For example, the electronic device 100 may record the parameter "Good day" of the algorithm for adding the "Good day" text in the PAR segment in Table 3.
[0176] For example, referring to the description of the embodiment of Figures 3A-3C, after the electronic device 100 crops the image 2401 based on a user operation, the electronic device 100 may record the description information of the cropping algorithm in multiple segments in Table 3. For example, the electronic device 100 may record the parameter "cropping frame size" of the cropping algorithm in the PAR segment in Table 3. The AVR segment is used to fill in the image editing algorithm version code, and the AVR segment indicates the image editing algorithm version.
[0177] The VDR segment is used to fill in the image editing algorithm provider. The VDR segment indicates the image editing algorithm provider.
[0178] The ADR segment is used to fill in the length of the image editing algorithm data file segment. The ADR segment indicates the length of the image editing algorithm data file segment.
[0179] The CPX segment is used to fill in the complexity of the image editing algorithm. The CPX segment represents the complexity of the image editing algorithm.
[0180] The FIL segment is used to fill in the storage location of the image editing algorithm input data file. The FIL segment indicates the storage location of the image editing algorithm input data file.
[0181] The EOA segment is used to fill in CA F3, which indicates the end of the image editing algorithm packaging structure.
[0182] In some embodiments, the data structure of the fat pointer of the picture editing algorithm data structure may not include the VDR segment, ADR segment, CPX segment, and FIL segment.
[0183] In some embodiments, the data structure of the fat pointer of the picture editing algorithm data structure may also include more or fewer fields than Table 3, and this application does not limit this.
[0184] S404. The electronic device 100 receives the user's operation on the second editing option among the multiple picture editing options in the second picture editing interface, and displays a third picture editing interface. The third picture editing interface includes a third picture, and the third picture is obtained based on the second picture using the second editing algorithm.
[0185] Exemplarily, the second editing option may be the watermarking option shown in Figure 2C. The second editing algorithm may be a watermarking algorithm.
[0186] The operation for the second editing option among the multiple picture editing options may be an input operation (eg, a single click) for the add watermark option in the user interface 2300 shown in FIG. 2C .
[0187] The third picture editing interface may be the user interface 2400 shown in FIG. 2D .
[0188] The third picture may be the picture 2401 shown in FIG. 2D .
[0189] S405: The electronic device 100 generates a second picture editing record, where the second picture editing record includes a second algorithm structure and second description information.
[0190] In response to the user's operation on a second editing option among the multiple picture editing options, the electronic device 100 generates a second picture editing record, where the second picture editing record includes a second algorithm structure and second description information.
[0191] The second algorithm structure is used to indicate the type of image editing algorithm used for the third image and the order of the image editing algorithms used for the third image.
[0192] For example, the second algorithm structure may be the algorithm structure shown in (b) of Figure 4B . The watermarking algorithm may be a child node of the warming filter algorithm.
[0193] The second description information is used to indicate description information of the first editing algorithm and description information of the second editing algorithm used for the third picture.
[0194] Exemplarily, the first editing algorithm may be a filter adding algorithm, and the description information of the first editing algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth".
[0195] Exemplarily, the second editing algorithm may be a watermarking algorithm, and the description information of the second editing algorithm may include but is not limited to the identifier or name of the watermarking algorithm, the version of the watermarking algorithm, the parameters of the watermarking algorithm, etc. For example, the parameters of the watermarking algorithm may be "Good day".
[0196] Optionally, the electronic device 100 may not execute S404-S405.
[0197] S406. The electronic device 100 receives the user's operation on the third editing option among the multiple picture editing options in the third picture editing interface, and displays a fourth picture editing interface. The fourth picture editing interface includes a fourth picture, and the fourth picture is obtained based on the third picture using the third editing algorithm.
[0198] For example, the third editing option may be the crop and rotate option shown in Figure 3 A. The third editing algorithm may be a cropping algorithm.
[0199] The operation on the third editing option among the multiple picture editing options may be an input operation (eg, single click) on the crop and rotate option in the user interface 2400 shown in FIG. 3A .
[0200] The fourth picture editing interface may be the user interface 3200 shown in FIG. 3C .
[0201] The fourth picture may be the picture 3201 shown in FIG3C .
[0202] S407: The electronic device 100 generates a third picture editing record, where the third picture editing record includes a third algorithm structure and third description information.
[0203] In response to the user's operation on the third editing option among the multiple picture editing options, the electronic device 100 generates a third picture editing record, which includes a third algorithm structure and third description information.
[0204] The third algorithm structure is used to indicate the type of image editing algorithm used for the fourth image and the order of the image editing algorithms used for the fourth image.
[0205] For example, the fourth algorithm structure may be the algorithm structure shown in (c) of Figure 4B . The cropping algorithm may be a child node of the watermarking algorithm, and the watermarking algorithm may be a child node of the warming filter algorithm.
[0206] The third description information is used to indicate description information of the first editing algorithm, description information of the second editing algorithm, and description information of the third editing algorithm used for the fourth picture.
[0207] Exemplarily, the first editing algorithm may be a filter adding algorithm, and the description information of the first editing algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth".
[0208] Exemplarily, the second editing algorithm may be a watermarking algorithm, and the description information of the second editing algorithm may include but is not limited to the identifier or name of the watermarking algorithm, the version of the watermarking algorithm, the parameters of the watermarking algorithm, etc. For example, the parameters of the watermarking algorithm may be "Good day".
[0209] Exemplarily, the third editing algorithm may be a cropping algorithm, and the description information of the cropping algorithm may include but is not limited to the identifier or name of the watermarking algorithm, the version of the watermarking algorithm, the parameters of the watermarking algorithm, etc. For example, the parameters of the cropping algorithm may be the cropping frame size.
[0210] Optionally, the electronic device 100 may not execute S406-S407.
[0211] S408. The electronic device 100 receives the user's input operation for the save option in the fourth picture editing interface, and saves the fourth picture and the third picture editing record.
[0212] For example, the save option may be the save option 1302 shown in Figure 3C. The user's input operation for the save option in the fourth picture editing interface may be the user's input operation (eg, single click) for the save option 1302 in the user interface 3200.
[0213] In response to the user's input operation on the save option in the fourth picture editing interface, the electronic device 100 can save the fourth picture and the third picture editing record.
[0214] 2. Re-edit the edited image and save the re-edited image.
[0215] After the electronic device 100 saves the image 3201, the electronic device 100 may also save the image editing record corresponding to the image 3201. The image editing record may include the image editing algorithm structure and algorithm description information corresponding to the image 3201. The image editing algorithm structure includes multiple editing nodes, each node corresponding to an image editing algorithm. Later, when the user re-edits the saved image, the electronic device 100 may display the image editing algorithm structure corresponding to the image 3201 and roll back to any editing node based on the user's operation to re-edit the image, thereby improving the efficiency of image editing.
[0216] 5A-5S are schematic diagrams showing the electronic device 100 re-editing the picture 3201 based on user operations.
[0217] Referring to the description in the embodiments of Figures 3C-3D, after the electronic device 100 saves the edited picture 3201 based on the user operation, the electronic device 100 can display the user interface 3300 shown in Figure 3D. The user interface 3300 includes the picture 3201. The picture 3201 is obtained by adding filters, adding watermarks and cropping operations on the basis of the picture 1101.
[0218] For example, as shown in FIG5A , the electronic device 100 may receive a user input operation (e.g., a single click) on the image 3201 in the user interface 3300. In response to the user input operation, the electronic device 100 may display the user interface 5100 shown in FIG5B , where the user interface 5100 includes the image 3201 and a menu 1201. The menu 1201 may include a share button, a favorite button, an edit button, a delete button, and more buttons.
[0219] When the user needs to re-edit image 3201, as shown in FIG5B , electronic device 100 may receive a user input operation (e.g., a single click) on the edit button in menu 1201. In response to the user input operation, electronic device 100 may display user interface 5200 shown in FIG5C . User interface 5200 includes image 3201, return option 1301, delete option 1303, save option 1302, edit bar 1304, edit bar 1305, and re-edit option 5201. Re-edit option 5201 includes multiple edit nodes, such as edit node 2101, edit node 2402, and edit node 3202. Edit node 2101 points to edit node 2402, which points to edit node 3202. Edit node 2101 is a root node, edit node 2402 is a child node of edit node 2101, and edit node 2402 is a child node of edit node 3202.
[0220] Based on the user's input operation on any editing node in the re-editing option 5201, the electronic device 100 can revert the editing effect of the image 3201 to the editing effect corresponding to the editing node selected by the user.
[0221] In some embodiments, the user can revert the image 3201 to the editing effect corresponding to the editing node 2402 .
[0222] For example, as shown in Figure 5C, the electronic device 100 can receive the user's input operation (such as a single click) on the editing node 2402 in the re-editing option 5201. In response to the user's input operation, the electronic device 100 can revert the image 3201 to the editing effect corresponding to the editing node 2402.
[0223] Specifically, the electronic device 100 can obtain the original image corresponding to the picture 3201, such as the picture 1101, and obtain the description information 1 of the algorithm corresponding to the editing node 2101 and the description information 2 of the algorithm corresponding to the editing node 2402, and edit the picture 1101 in turn according to the description information 1 and the description information 2 of the algorithm to obtain the picture 2401.
[0224] In response to obtaining the image 2401, the electronic device 100 also needs to generate an editing record of the image 2401. The editing record of the image 2401 may include the image processing algorithm parameter information 2 used by the image 2401. The image processing algorithm parameter information 2 may include but is not limited to the algorithm processing structure 2 and the algorithm description information 2. For example, the algorithm processing structure 2 may include an add filter algorithm pointing to an add watermark algorithm. The algorithm description information 2 may include the description information of the add filter algorithm and the description information of the add watermark algorithm. The description information of the add filter algorithm may include but is not limited to the identifier or name of the add filter algorithm, the version of the add filter algorithm, the parameters of the add filter algorithm, etc. For example, the parameters of the add filter algorithm may be "warmth". The description information of the add watermark algorithm may include but is not limited to the identifier or name of the add watermark algorithm, the version of the add watermark algorithm, the parameters of the add watermark algorithm, etc. For example, the parameters of the add watermark algorithm may be "Good day".
[0225] In response to obtaining the image 2401, the electronic device 100 may display the user interface 5300 shown in FIG5D . The user interface 5300 may include the image 2401, the return option 1301, the delete option 1303, the save option 1302, the edit bar 1304, the edit bar 1305, and the re-edit option 5301. The re-edit option 5301 may correspond to the algorithm processing structure 2. The re-edit option 5301 includes multiple editing nodes, such as the editing node 2101 and the editing node 2402. Among them, the editing node 2101 points to the editing node 2402, and the editing node 2402 is a child node of the editing node 2101. The multiple editing nodes in the re-edit option 5301 are used to indicate the image editing algorithm used for the image 2401.
[0226] As shown in Figure 5D, electronic device 100 can receive a user input operation (e.g., a single click) for save option 1302 in user interface 5300. In response to the user input operation, electronic device 100 can save picture 2401 and display user interface 5400 shown in Figure 5E. User interface 5400 is similar to user interface 3300, except that user interface 5400 also includes picture 2401 but does not include picture 3201. Picture 2401 is a picture obtained by adding a filter and a watermark to picture 1101.
[0227] In response to saving the picture 2401 , the electronic device 100 also needs to save the editing record of the picture 2401 .
[0228] In some embodiments, the user can revert the image 3201 to the editing effect corresponding to the editing node 2101 .
[0229] For example, as shown in Figure 5F, the electronic device 100 can receive the user's input operation (such as a single click) on the editing node 2101 in the re-editing option 5201. In response to the user's input operation, the electronic device 100 can revert the image 3201 to the editing effect corresponding to the editing node 2101.
[0230] Specifically, the electronic device 100 can obtain the original image corresponding to the image 3201, such as the image 1101, and obtain the description information 1 of the algorithm corresponding to the editing node 2101, and edit the image 1101 according to the description information 1 of the algorithm to obtain the image 1501.
[0231] In response to acquiring image 1501, electronic device 100 further generates an editing record for image 1501. The editing record for image 1501 may include image processing algorithm parameter information 1 used for image 1501. Image processing algorithm parameter information 1 may include, but is not limited to, algorithm processing structure 1 and algorithm description information 1. For example, algorithm processing structure 1 may include a filter algorithm, algorithm description information 1 may include description information of the filter algorithm, and the description information of the filter algorithm may include, but is not limited to, the identifier or name of the filter algorithm, the version of the filter algorithm, and the parameters of the filter algorithm. For example, the parameters of the filter algorithm may be "warmth."
[0232] In response to acquiring image 1501, electronic device 100 may display user interface 5500 shown in FIG5G . User interface 5500 may include image 1501, return option 1301, delete option 1303, save option 1302, edit bar 1304, edit bar 1305, and re-edit option 5501. Re-edit option 5501 includes an edit node, such as edit node 2101. An edit node in re-edit option 5501 is used to indicate the image editing algorithm used for image 1501.
[0233] As shown in Figure 5G, electronic device 100 can receive a user input operation (e.g., a single click) for save option 1302 in user interface 5500. In response to the user input operation, electronic device 100 can save image 1501 and display user interface 5600 shown in Figure 5H. User interface 5600 is similar to user interface 3300, except that user interface 5600 also includes image 1501 but does not include image 3201. Image 1501 is an image obtained by adding a filter to image 1101.
[0234] In response to saving the picture 1501 , the electronic device 100 also needs to save the editing record of the picture 1501 .
[0235] In some embodiments, the user may also re-edit the image 3201 so that the image 3201 reverts to the original display effect.
[0236] For example, referring to the description in the embodiment of FIG. 5A and FIG. 5B , in response to a user input operation (e.g., a single click) on the edit button, the electronic device 100 may display the user interface 5700 shown in FIG. 5I . The user interface 5700 includes a picture 3201, a return option 1301, a delete option 1303, a save option 1302, an edit bar 1304, an edit bar 1305, and a re-edit option 5701. The re-edit option 5701 includes multiple edit nodes, such as an edit node 5702, an edit node 2101, an edit node 2402, and an edit node 3202. Among them, editing node 5702 points to editing node 2101, editing node 2101 points to editing node 2402, editing node 2402 points to editing node 3202, editing node 5702 is the root node, editing node 2101 is the child node of editing node 5702, editing node 2402 is the child node of editing node 2101, and editing node 3202 is the child node of editing node 2402.
[0237] Optionally, the text "Original Image" is displayed below the edit node 5702. Optionally, the corresponding display effect of the image under the edit operation may also be displayed below the edit node, or the text may not be displayed below the edit node.
[0238] For example, as shown in Figure 5I, the electronic device 100 can receive a user input operation (such as a single click) on the editing node 5702 in the user interface 5700. In response to the user's input operation, the electronic device 100 can revert the image 3201 to the editing effect corresponding to the editing node 5702.
[0239] Specifically, the electronic device 100 can obtain the original image corresponding to the image 3201, such as the image 1101, and obtain the description information of the algorithm corresponding to the editing node 5702. The editing node 5702 corresponds to the original image, and the electronic device 100 can directly obtain the image 1101.
[0240] In response to obtaining image 1501, electronic device 100 may display user interface 5800 shown in FIG5J , which includes image 1101, return option 1301, delete option 1303, save option 1302, edit bar 1304, edit bar 1305, and re-edit option 5801. Re-edit option 5801 includes an edit node, such as edit node 5702. The edit node in re-edit option 5801 is used to indicate that image 1101 is the original image.
[0241] As shown in FIG. 5J , the electronic device 100 may receive a user input operation (eg, a single click) for the save option 1302 in the user interface 5800 . In response to the user input operation, the electronic device 100 may save the picture 1101 .
[0242] Optionally, a picture 1101 has been saved in the gallery application. After the electronic device 100 receives the user's input operation for the save option 1302 in the user interface 5800, the electronic device 100 can display the prompt message 5802 shown in Figure 5K. The prompt message 5802 includes the text "The same picture is saved in the gallery, do you want to continue saving the picture?" The prompt message 5802 is used to prompt the user whether to confirm saving the picture.
[0243] In one possible implementation, as shown in Figure 5K , the electronic device 100 may receive a user input operation (e.g., a single click) for an option in prompt information 5802. In response to the user input operation, the electronic device 100 may display a user interface 5900 as shown in Figure 5L . As shown in Figure 5L , the electronic device 100 stores two pictures 1101.
[0244] In another possible implementation, as shown in FIG5M , the electronic device 100 may receive a user input operation (e.g., a single click) for the "No" option in the prompt information 5802. In response to the user input operation, the electronic device 100 may display the user interface 5910 shown in FIG5N . As shown in FIG5N , the electronic device 100 only stores one picture 1101.
[0245] In some embodiments, the user can also re-edit the image 3201 so that the image 3201 can be rolled back to any of the multiple editing nodes selected by the user. The multiple editing nodes can be adjacent editing nodes or non-adjacent editing nodes.
[0246] For example, referring to the description of the embodiments in FIG. 5A and FIG. 5B , in response to a user input operation (e.g., a single click) on the edit button, electronic device 100 may display user interface 5950 as shown in FIG. User interface 5950 includes image 3201, return option 1301, delete option 1303, save option 1302, edit bar 1304, edit bar 1305, and re-edit option 5951. Re-edit option 5951 includes multiple edit nodes, such as edit node 2101, edit node 2402, and edit node 3202. Re-edit option 5951 also includes multiple edit node options. Edit node 2101 points to edit node 2402, edit node 2402 points to edit node 3202, edit node 5702 is a root node, edit node 2101 is a root node, edit node 2402 is a child node of edit node 2101, and edit node 3202 is a child node of edit node 2402.
[0247] The user can select any one or more editing options from the multiple editing node options, so that the image 3201 can be arbitrarily rolled back to the image editing effect corresponding to any one or more editing options selected by the user.
[0248] For example, as shown in Figure 5P, the electronic device 100 can receive a user input operation (such as a single click) on the editing node 5702 in the user interface 5700. In response to the user's input operation, the electronic device 100 can revert the image 3201 to the editing effect corresponding to the editing node 5702.
[0249] As shown in Figure 5O, the electronic device 100 can receive the user's input operation (such as a single click) for the editing node option corresponding to the editing node 2101 in the re-editing option 5951. In response to the user's input operation, the electronic device 100 can select the editing node 2101, as shown in Figure 5P.
[0250] As shown in Figure 5P, the electronic device 100 can receive the user's input operation (such as a single click) for the editing node option corresponding to the editing node 3202 in the re-editing option 5951. In response to the user's input operation, the electronic device 100 can select the editing node 3202, as shown in Figure 5Q.
[0251] As shown in FIG5Q , electronic device 100 may receive a user input operation, such as a single click, for the Continue option in re-edit option 5951. In response to the user input operation, electronic device 100 may obtain the original image corresponding to image 3201, such as image 1101, and obtain description information 1 of the algorithm corresponding to edit node 2101. Using description information 1 of the algorithm, electronic device 100 edits image 1101 to obtain image 1501. Subsequently, electronic device 100 obtains description information 3 of the algorithm corresponding to edit node 3202, and edits image 1501 using description information 3 of the algorithm, to obtain image 5981 shown in FIG5R .
[0252] In response to acquiring image 5981, electronic device 100 may display user interface 5980 shown in FIG5R , which includes image 5981, return option 1301, delete option 1303, save option 1302, edit bar 1304, edit bar 1305, and re-edit option 5982. Re-edit option 5982 includes two edit nodes, such as edit node 2101 and edit node 3202. The two edit nodes in re-edit option 5982 are used to indicate the image editing algorithm used for image 5981.
[0253] In response to obtaining the image 5981, the electronic device 100 also needs to generate an editing record of the image 5981. The editing record of the image 5981 may include the image processing algorithm parameter information four used by the image 5981. The image processing algorithm parameter information four may include but is not limited to the algorithm processing structure four and the algorithm description information four. For example, the algorithm processing structure four may include a filter algorithm and a cropping algorithm. The algorithm description information four may include the description information of the filter algorithm and the description information of the cropping algorithm. The description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth". The description information of the cropping algorithm may include but is not limited to the identifier or name of the cropping algorithm, the version of the cropping algorithm, the parameters of the cropping algorithm, etc. For example, the parameters of the cropping algorithm may be the cropping frame size.
[0254] As shown in FIG5R , electronic device 100 may receive a user input operation (e.g., a single click) for save option 1302 in user interface 5980. In response to the user input operation, electronic device 100 may save image 5981 and display user interface 5990 shown in FIG5S . User interface 5990 is similar to user interface 3300, except that user interface 5990 also includes image 5981 but does not include image 3201. Image 5981 is a picture obtained by applying a filter operation and a cropping algorithm to image 1101.
[0255] FIG6 is a flow chart of a method for image re-editing provided by this application.
[0256] S601: The electronic device 100 displays a gallery interface including a fourth picture.
[0257] Illustratively, the picture interface may be the user interface 3300 shown in FIG. 5A or the user interface 5100 shown in FIG. 5B .
[0258] Exemplarily, the fourth picture may be the picture 3201 shown in FIG. 5A or FIG. 5B .
[0259] S602: The electronic device 100 receives an editing operation for a fourth picture and displays a fourth picture editing interface, where the fourth picture editing interface includes the fourth picture and a first editing option, where the first editing option includes multiple editing nodes.
[0260] Exemplarily, the user's editing operation on the fourth picture may be an input operation on the edit button in the user interface 5100 shown in FIG5B , such as a single operation.
[0261] Exemplarily, the fourth picture editing interface may be the user interface 5200 shown in FIG. 5C or FIG. 5F .
[0262] Exemplarily, the fourth picture may be the picture 3201 shown in FIG. 5C or FIG. 5F .
[0263] Exemplarily, the first re-editing option may be the re-editing option 5201 shown in FIG. 5C or 5F .
[0264] Illustratively, the multiple edit nodes may be the edit node 2101 , the edit node 2402 , and the edit node 3202 in the re-edit option 5201 shown in FIG. 5C or FIG. 5F .
[0265] In some embodiments, in response to the user receiving an editing operation for the fourth image, before displaying the fourth image editing interface, the electronic device 100 may obtain an editing record of the fourth image. The editing record of the fourth image may include, but is not limited to, algorithm processing structure three and algorithm description information three. The electronic device 100 may display a first editing option based on the algorithm processing structure three.
[0266] The editing operation for the fourth image may include the image processing algorithm parameter information 3 used for image 3201. The image processing algorithm parameter information 3 may include, but is not limited to, the algorithm processing structure 3 and the algorithm description information 3. For example, the algorithm processing structure 3 may include a filter adding algorithm pointing to a watermark adding algorithm, and the watermark adding algorithm pointing to a cropping algorithm. The algorithm description information 3 may include description information of the filter adding algorithm, description information of the watermark adding algorithm, and description information of the cropping algorithm. The description information of the filter adding algorithm may include, but is not limited to, the identifier or name of the filter adding algorithm, the version of the filter adding algorithm, and the parameters of the filter adding algorithm. For example, the parameters of the filter adding algorithm may be "warmth". The description information of the watermark adding algorithm may include, but is not limited to, the identifier or name of the watermark adding algorithm, the version of the watermark adding algorithm, and the parameters of the watermark adding algorithm. For example, the parameters of the watermark adding algorithm may be "good day". The description information of the cropping algorithm may include, but is not limited to, the identifier or name of the watermark adding algorithm, the version of the watermark adding algorithm, and the parameters of the watermark adding algorithm. For example, the parameters of the cropping algorithm may be the cropping frame size.
[0267] S603. The electronic device 100 receives an operation on the first editing node among multiple editing nodes, and displays a third picture editing interface or a second picture editing interface. The third picture editing interface includes a third picture and a second editing option, or the second picture editing interface includes a second picture and a third editing option.
[0268] The first editing node may be any editing node in the first re-editing option.
[0269] Illustratively, the first editing node may be the editing node 2101 or the editing node 2402 shown in FIG. 5C or FIG. 5F .
[0270] When the first edit node is edit node 2402 shown in FIG5C , electronic device 100 receives an operation on the first edit node among the multiple edit nodes, which may be a user input operation, such as a single click, on edit node 2402 shown in FIG5C . The third picture editing interface may be user interface 5300 shown in FIG5D , the third picture may be picture 2401 shown in FIG5D , and the second re-edit option may be re-edit option 5301 shown in FIG5D .
[0271] Illustratively, in response to an operation on the first editing node among multiple editing nodes, the electronic device 100 can obtain the editing record of picture 3201, and based on the editing record of picture 3201, sequentially perform a "warmth" filter algorithm and a "Good day" text watermark algorithm on picture 1101 to obtain the picture 2401 shown in Figure 5D.
[0272] For example, the electronic device 100 can obtain the editing record of the image 3201, and the editing record of the image 3201 can be stored as the data structure shown in Table 1, Table 2, and Table 3. The electronic device 100 can obtain the storage address of the compressed original image (for example, the storage address of the image 3201) from the TBP-APP1 segment in Table 1, and then obtain the image 1101 based on the storage address of the image 3201. Afterwards, the electronic device 100 can obtain the third algorithm structure of the image 3201 from the GPI0 segment in Table 2, and obtain the identifier of the filter algorithm and the identifier of the watermark algorithm corresponding to the edit node 2101 based on the edit node 2402, and then obtain the data structure fat pointer of the filter algorithm from the GPI1 segment in Table 2 based on the identifier of the filter algorithm, and obtain the data structure fat pointer of the watermark algorithm from the GPI2 segment in Table 2 based on the identifier of the watermark algorithm. Afterwards, the electronic device 100 can obtain the parameters of the filter algorithm from the PAR segment of Table 3 based on the fat pointer of the data structure of the filter algorithm, and obtain the parameters of the watermark algorithm from the PAR segment of Table 3 based on the fat pointer of the data structure of the watermark algorithm. Finally, the electronic device 100 can edit the picture 1101 based on the parameters of the filter algorithm and the parameters of the watermark algorithm on the basis of the picture 1101 to obtain the picture 2401. In some embodiments, in response to obtaining the picture 2401, the electronic device 100 also needs to generate an editing record of the picture 2401. The editing record of the picture 2401 can also be stored as the data structure shown in Table 1, Table 2 and Table 3. The editing record of the picture 2401 may include the picture processing algorithm parameter information 2 used by the picture 2401. The picture processing algorithm parameter information 2 may include but is not limited to the algorithm processing structure 2 and the algorithm description information 2. For example, the second algorithm processing structure may include a filter algorithm pointing to a watermark algorithm. The second algorithm description information may include description information of the filter algorithm and description information of the watermark algorithm. The description information of the filter algorithm may include, but is not limited to, the identifier or name of the filter algorithm, the version of the filter algorithm, and the parameters of the filter algorithm. For example, the parameters of the filter algorithm may be "warmth". The description information of the watermark algorithm may include, but is not limited to, the identifier or name of the watermark algorithm, the version of the watermark algorithm, and the parameters of the watermark algorithm. For example, the parameters of the watermark algorithm may be "Good day".
[0273] In some embodiments, in response to an operation on an editing node 2402 among multiple editing nodes, the electronic device 100 can send picture 3201 and the editing record of picture 3201 to the server. The server can re-edit picture 1101 based on picture 1101 and editing node 2402, and sequentially use the filter adding algorithm and watermark adding algorithm recorded in the editing record of picture 3201 to obtain picture 2401.
[0274] The server also needs to generate an editing record of picture 2401 and send picture 2401 and the editing record of picture 2401 to electronic device 100 so that electronic device 100 can save the editing record of picture 2401.
[0275] When the first edit node is edit node 2101 shown in FIG5F , electronic device 100 receives an operation on the first edit node among the multiple edit nodes, which may be a user input operation, such as a single click, on edit node 2101 shown in FIG5F . The second picture editing interface may be user interface 5500 shown in FIG5G , the second picture may be picture 1501 shown in FIG5G , and the third re-edit option may be re-edit option 5501 shown in FIG5G .
[0276] Exemplarily, in response to an operation on the first editing node among multiple editing nodes, the electronic device 100 can obtain the editing record of picture 3201, and based on the editing record of picture 3201, add the "warmth" filter algorithm to picture 1101 in sequence to obtain picture 1501 shown in Figure 5G.
[0277] For example, electronic device 100 can obtain the edit history of image 3201, which can be stored in the data structures shown in Tables 1, 2, and 3. Electronic device 100 can obtain the storage address of the compressed original image (e.g., the storage address of image 3201) from the TBP-APP1 segment in Table 1, and then obtain image 1101 based on the storage address of image 3201. Subsequently, electronic device 100 can obtain the third algorithm structure of image 3201 from the GPI0 segment in Table 2, and obtain the identifier of the added filter algorithm corresponding to edit node 2101 based on edit node 2101. Furthermore, based on the identifier of the added filter algorithm, electronic device 100 can obtain the data structure fat pointer of the added filter algorithm from the GPI1 segment in Table 2. Subsequently, electronic device 100 can obtain the parameters of the added filter algorithm from the PAR segment in Table 3 based on the data structure fat pointer of the added filter algorithm. Finally, electronic device 100 can edit image 1101 based on the parameters of the added filter algorithm, resulting in image 1501. In some embodiments, in response to obtaining image 1501, the electronic device 100 also needs to generate an editing record of 1501, and the editing record of image 2401 can also be stored as the data structures shown in Tables 1, 2, and 3. The editing record of image 1501 may include the image processing algorithm parameter information 1 used by image 1501, and the image processing algorithm parameter information 1 may include but is not limited to the algorithm processing structure 1 and the algorithm description information 1. For example, the algorithm processing structure 1 may include a filter algorithm, the algorithm description information 1 may include the description information of the filter algorithm, and the description information of the filter algorithm may include but is not limited to the identifier or name of the filter algorithm, the version of the filter algorithm, the parameters of the filter algorithm, etc. For example, the parameters of the filter algorithm may be "warmth".
[0278] In some embodiments, in response to an operation on editing node 2101 among multiple editing nodes, the electronic device 100 can send picture 3201 and the editing record of picture 3201 to the server. The server can re-edit picture 1101 based on picture 1101 and editing node 2101, and sequentially use the adding filter algorithm recorded in the editing record of picture 3201 to obtain picture 1501.
[0279] The server also needs to generate an editing record of picture 1501 and send picture 1501 and the editing record of picture 1501 to electronic device 100 so that electronic device 100 can save picture 1501 and the editing record of picture 1501.
[0280] S604: The electronic device 100 receives a user operation to save the third picture or the second picture, and saves the third picture and the editing record of the third picture, or the second picture and the editing record of the second picture.
[0281] In some embodiments, the editing record of the third picture or the editing record of the second picture may also be stored as the data structures shown in Table 1, Table 2, and Table 3.
[0282] In some embodiments, after the electronic device 100 generates the third picture, the electronic device 100 may receive a user operation to save the third picture and an editing record of the third picture.
[0283] Exemplarily, the user operation of saving the third picture may be an input operation for the save option 1302 shown in FIG. 5D , such as a single click.
[0284] In some embodiments, after the electronic device 100 saves the third picture and the editing record of the third picture, the electronic device 100 may display the user interface 5400 shown in FIG. 5E , where the user interface 5400 includes the third picture (picture 2401 ).
[0285] In other embodiments, after the electronic device 100 generates the second picture, the electronic device 100 may receive a user operation to save the second picture and the editing record of the second picture.
[0286] Exemplarily, the user operation of saving the second picture may be an input operation for the save option 1302 shown in FIG. 5G , such as a single click.
[0287] In some embodiments, after the electronic device 100 saves the second picture and the editing record of the second picture, the electronic device 100 may display the user interface 5600 shown in FIG. 5H , where the user interface 5600 includes the second picture (picture 1501 ).
[0288] In some embodiments, if the electronic device 100 receives a user operation to open a picture in the Gallery application in the Meitu application and edits the picture in the Gallery application in the Meitu application, since the Meitu application and the Gallery application are not the same application, the picture editing algorithms of the Gallery application and the Gallery application are different, the electronic device 100 cannot re-edit the picture in the Gallery application in the Meitu application, then the electronic device 100 may not display the first re-editing option.
[0289] In some embodiments, if the electronic device 100 receives a user operation to open a picture in the Gallery application in the Meitu application and edits the picture in the Gallery application in the Meitu application, if the image editing algorithms of the Meitu application and the Gallery application share a set of algorithms, or the Meitu application can call the image editing algorithm in the Gallery application, the electronic device 100 can also re-edit the picture in the Gallery application in the Meitu application, then the electronic device 100 can display a first re-editing option.
[0290] 3. Share pictures, including pictures and picture editing records.
[0291] In some embodiments, after the electronic device 100 saves the edited picture, the electronic device 100 may send the saved edited picture and the editing record of the picture to other electronic devices with which a communication connection is established. The other electronic devices may also re-edit the picture sent by the electronic device 100.
[0292] For example, FIG. 7A to FIG. 7G show UI diagrams of electronic device 100 sharing picture 3201 to electronic device 200 .
[0293] For example, as shown in FIG7A , the electronic device 100 may display a user interface 5100. The user interface 5100 includes a picture 3201 and a menu 1201. The menu 1201 may include a share button, a favorite button, an edit button, a delete button, and a more button. The share button may be used to trigger the opening of the system share interface.
[0294] The electronic device 100 may receive a user input (eg, a single click) on the share button. In response to the input, the electronic device 100 may display a system sharing interface 7100 as shown in FIG. 7B .
[0295] As shown in Figure 7B, the system sharing interface 7100 includes an area 7101, an area 7102, and an area 7103. Among them, area 7101 can be used to display one or more pictures or videos in the gallery of the electronic device 100, and these one or more pictures or videos may include pictures or videos selected by the user. Among them, a mark can be displayed on the selected picture, and the mark can be used to indicate that the corresponding picture is selected (that is, the picture has been selected by the user). Optionally, the picture or video screen displayed in the area 7101 can be a thumbnail.
[0296] A Huawei share option is displayed in area 7102. The Huawei share option allows the electronic device 100 to share the user's selected picture or video to other devices via Bluetooth or Wi-Fi.
[0297] Area 7103 may display one or more service option icons (for example, a chat application icon, a welink application icon, a Changlian application icon, a chat application icon, an email application icon, a browser application icon, a message application icon, a WLAN direct connection icon, etc.). The application or protocol corresponding to the service option may support sharing user-selected pictures with contacts or servers. Users can share data through the application or protocol corresponding to the service option. For example, sharing the selected picture with one or more contacts in the chat application, or sharing the selected picture with the dynamic publishing platform (i.e., server) of the chat application, and so on.
[0298] For example, as shown in FIG7B , the electronic device 100 may receive a user input (eg, a single click) for a sharing option in area 7102 . In response to the input, the electronic device 100 may display a system sharing interface 7200 as shown in FIG7C .
[0299] System sharing interface 7200 is similar to system sharing interface 7100, except that area 7102 of system sharing interface 7200 includes options for nearby devices discovered by electronic device 100 (for example, "Alee's phone" option, "HUAWEIP50" option, "HUAWEIP50Pro" option). When electronic device 100 is searching for nearby devices, it can display a search prompt in area 7102 (for example, a text prompt such as "Discovering nearby devices, the other party needs to turn on Bluetooth or WLAN").
[0300] For example, as shown in 7C, electronic device 100 may receive user input (e.g., a single click) for the option "Alee's phone." In response to this input, electronic device 100 may send the user-selected image 3201 to a nearby device corresponding to the option "Alee's phone" via Bluetooth or Wi-Fi. For example, the identifier "Alee's phone" may be the device identifier of electronic device 200.
[0301] The electronic device 100 is not limited to sharing the picture 3201 on the electronic device 100 with the electronic device 200 in the manner shown in FIG. 1A to FIG. 1C . The electronic device 100 can also share the picture 3201 on the electronic device 100 with the electronic device 200 in other manners.
[0302] Optionally, when the electronic device 100 shares the picture 3201 with the electronic device 200 , the electronic device 100 also needs to send the picture information of the picture 3201 to the electronic device 100 .
[0303] The picture information of picture 3201 may include but is not limited to the editing record of picture 3201 and the application information of the first application that edited picture 3201.
[0304] The editing record of image 3201 may include the image processing algorithm parameter information three used in image 3201. The image processing algorithm parameter information three may include, but is not limited to, the algorithm processing structure three and the algorithm description information three. For example, the algorithm processing structure three may include a filter adding algorithm pointing to a watermark adding algorithm, and the watermark adding algorithm pointing to a cropping algorithm. The algorithm description information three may include description information of the filter adding algorithm, the watermark adding algorithm, and the cropping algorithm. The filter adding algorithm description information may include, but is not limited to, the filter adding algorithm's identifier or name, the filter adding algorithm's version, and the filter adding algorithm's parameters. For example, the filter adding algorithm's parameters may be "warmth." The watermark adding algorithm description information may include, but is not limited to, the watermark adding algorithm's identifier or name, the watermark adding algorithm's version, and the watermark adding algorithm's parameters. For example, the watermark adding algorithm's parameters may be "good day." The cropping algorithm description information may include, but is not limited to, the watermark adding algorithm's identifier or name, the watermark adding algorithm's version, and the watermark adding algorithm's parameters. For example, the cropping algorithm's parameters may be the cropping frame size.
[0305] The application information of the first application in picture 3201 may include but is not limited to one or more of the following: the name or identifier of the first application, the version number of the first application, the name of the developer of the first application, etc.
[0306] In response to receiving the picture 3201 sent by the electronic device 100 , the electronic device 200 may display a user interface 7300 shown in FIG. 7D , where the user interface 7300 includes the picture 3201 , which is sent by the electronic device 100 to the electronic device 100 .
[0307] For example, as shown in FIG7D , the electronic device 100 may receive a user input operation (e.g., a single click) on the image 3201 in the user interface 7300. In response to the user input operation, the electronic device 100 may display the user interface 7400 shown in FIG7E , where the user interface 7400 includes the image 3201 and a menu 7401. The menu 7401 may include a share button, a favorite button, an edit button, a delete button, and more buttons.
[0308] For example, as shown in Figure 7E, when the user needs to re-edit picture 3201, as shown in Figure 7E, the electronic device 200 can receive the user's input operation (for example, a single click) on the edit button in the menu 7401, and in response to the user's input operation, the electronic device 100 can display the editing interface of picture 3201.
[0309] Optionally, before the electronic device 200 displays the editing interface of picture 3201, the electronic device 200 can obtain the application information of the second application currently editing picture 3201, and the application information of the first application editing picture 3201 sent from the electronic device 100. When it is determined that the second application and the first application are the same application based on the application information of the second application and the application information of the first application sent by the electronic device 100, the electronic device 100 can obtain the editing record of picture 3201.
[0310] For example, as shown in FIG7E , when the second application and the first application are the same application, in response to electronic device 100 obtaining the edit record of image 3201, electronic device 100 may display user interface 7500 shown in FIG7F . User interface 7500 includes image 3201, a return option 7501, a delete option 7503, a save option 7502, an edit bar 7504, an edit bar 7505, and a re-edit option 7506. Re-edit option 7506 includes multiple edit nodes, such as edit node 7507, edit node 7508, and edit node 7509. Edit node 7507 points to edit node 7508, which points to edit node 7509. Edit node 7507 is a root node, edit node 7507 is a child node of edit node 7508, and edit node 7508 is a child node of edit node 7509. Optionally, re-edit option 7506 may be derived based on an algorithmic processing structure in the edit record of image 3201.
[0311] Afterwards, the electronic device 200 can re-edit the image 3201 in the manner shown in Figures 5A to 5N. For details, please refer to the description in the embodiments shown in Figures 5A to 5N, which will not be described in detail in this application.
[0312] For example, as shown in FIG7E , when the second application and the first application are not the same application, electronic device 100 may display user interface 7600 shown in FIG7G , where user interface 7600 includes picture 3201, return option 7501, delete option 7503, save option 7502, edit bar 7504, and edit bar 7505. User interface 7600 does not include re-edit option 7506 shown in FIG7F , indicating that when the first application and the second application are not the same application, electronic device 200 cannot perform a re-editing operation on picture 3201.
[0313] In other embodiments, the editing interface of the picture displayed on the electronic device 200 may also be different from the editing interface of the picture displayed on the electronic device 100, and this application is only used to exemplify the present application.
[0314] FIG8 is a flowchart of a method provided by the present application for an electronic device 100 to re-edit a picture sent by the electronic device 100 .
[0315] S801: The electronic device 100 establishes a communication connection with the electronic device 200.
[0316] The electronic device 100 may establish a communication connection via Bluetooth or Wi-Fi, and the electronic device 100 may also communicate with the electronic device 200 via a server.
[0317] For example, referring to the embodiments of FIG. 7A to FIG. 7C , the electronic device 100 can establish a communication connection with the electronic device 200 via Bluetooth or Wi-Fi through the Huawei sharing option.
[0318] S802: The electronic device 100 sends the fourth picture and the editing record of the fourth picture to the electronic device 200 via a communication connection.
[0319] After the user selects the fourth picture, in response to the electronic device 100 and the electronic device 200 establishing a communication connection, the electronic device 100 can obtain the fourth picture and the picture information of the fourth picture, and send the fourth picture and the editing record of the fourth picture to the electronic device 200 through the communication connection.
[0320] Exemplarily, the fourth picture may be the picture 3201 shown in FIG. 7A .
[0321] The editing record of image 3201 may include the image processing algorithm parameter information three used in image 3201. The image processing algorithm parameter information three may include, but is not limited to, the algorithm processing structure three and the algorithm description information three. For example, the algorithm processing structure three may include a filter adding algorithm pointing to a watermark adding algorithm, and the watermark adding algorithm pointing to a cropping algorithm. The algorithm description information three may include description information of the filter adding algorithm, the watermark adding algorithm, and the cropping algorithm. The filter adding algorithm description information may include, but is not limited to, the filter adding algorithm's identifier or name, the filter adding algorithm's version, and the filter adding algorithm's parameters. For example, the filter adding algorithm's parameters may be "warmth." The watermark adding algorithm description information may include, but is not limited to, the watermark adding algorithm's identifier or name, the watermark adding algorithm's version, and the watermark adding algorithm's parameters. For example, the watermark adding algorithm's parameters may be "good day." The cropping algorithm description information may include, but is not limited to, the watermark adding algorithm's identifier or name, the watermark adding algorithm's version, and the watermark adding algorithm's parameters. For example, the cropping algorithm's parameters may be the cropping frame size.
[0322] S803: The electronic device 200 saves the fourth picture and the editing record of the fourth picture.
[0323] After receiving the fourth picture and the editing record of the fourth picture sent by the electronic device 100, the electronic device 200 may save the fourth picture and the editing record of the fourth picture.
[0324] Exemplarily, after the electronic device 200 saves the fourth picture and the editing record of the fourth picture, the electronic device 200 may display the user interface 7300 shown in FIG. 7D .
[0325] S804: The electronic device 200 edits the fourth picture in the second application.
[0326] The electronic device 200 saves the fourth picture and the editing record of the fourth picture. The electronic device 200 can add the fourth picture to the second application and edit the fourth picture.
[0327] Exemplarily, the second application may be a gallery application on the electronic device 200 , or a beauty application on the electronic device 200 , etc., which is not limited in this application.
[0328] S805: The electronic device 200 needs to determine whether the second application has permission to read the editing record of the fourth picture.
[0329] In the case that the second application has permission to read the editing record of the fourth picture, the electronic device 200 can re-edit the fourth picture and roll back to any editing node, that is, execute S806.
[0330] In the case that the second application does not have the permission to read the editing record of the fourth picture, the electronic device 200 cannot re-edit the fourth picture, that is, executes S807.
[0331] In some embodiments, whether the second application has permission to read the edit history of the fourth image may refer to whether the second application and the first application are the same application, or whether the second application and the first application share a common image editing algorithm. Whether the second application has permission to read the edit history of the fourth image may also be determined based on other rules, which are not limited in this application.
[0332] For example, when electronic device 100 sends the fourth image and the editing record of the fourth image to electronic device 200, electronic device 100 may also send application information of the first application to electronic device 200. The first application is the application that edits the first image to obtain the fourth image. The application information of the first application may include, but is not limited to, one or more of the following: the name or identifier of the first application, the version number of the first application, the name of the developer of the first application, etc. The fourth image is obtained using one or more image editing algorithms within the first application.
[0333] The electronic device 200 also needs to obtain application information of the second application. The application information of the second application may include but is not limited to one or more of the following: the name or identifier of the second application, the version number of the second application, the name of the developer of the second application, etc.
[0334] Exemplarily, the second application and the first application are the same application, which may mean that the second application name or identifier is the same as the first application name or identifier, the second application version number is the same as the first application version number, and the second application developer name is the same as the first application developer name.
[0335] S806. The electronic device 200 displays a fifth picture editing interface, which includes the fourth picture and fourth editing options. The fourth editing options are obtained from the picture information of the fourth picture.
[0336] If the second application has permission to read the editing record of the fourth picture, the electronic device 200 can re-edit the fourth picture.
[0337] In response to the user editing the fourth picture within the second application, electronic device 200 may display a fifth picture editing interface including the fourth picture and fourth editing options. The fourth editing options are obtained by electronic device 200 from algorithm processing structure 3 in the editing record of picture 3201.
[0338] Exemplarily, the fifth picture editing interface may be the user interface 7500 shown in FIG. 7F .
[0339] Exemplarily, the fourth picture may be the picture 3201 shown in FIG. 7F .
[0340] Exemplarily, the fourth re-editing option is used to indicate the image editing algorithm to be used sequentially for image 3201. The fourth re-editing option may be re-editing option 7506 shown in FIG7F . Re-editing option 7506 includes multiple edit nodes, such as edit node 7507, edit node 7508, and edit node 7509. Edit node 7507 points to edit node 7508, which points to edit node 7509. Edit node 7507 is a root node, edit node 7507 is a child node of edit node 7508, and edit node 7508 is a child node of edit node 7509.
[0341] Afterwards, the electronic device 200 can re-edit the image 3201 according to the method shown in Figures 5A to 5N through the re-edit option 7506. For details, please refer to the description of the embodiments shown in Figures 5A to 5N, which will not be repeated in this application.
[0342] S807. The electronic device 200 displays a sixth picture editing interface, which does not include a re-editing option.
[0343] In the case that the second application does not have permission to read the editing record of the fourth picture, the electronic device 200 cannot re-edit the fourth picture.
[0344] For example, when the second application is a Meitu application and the first application is a Gallery application, if the electronic device 200 receives a user operation to open a picture in the Gallery application in the Meitu application and edits the picture in the Gallery application in the Meitu application, due to the difference in the picture editing algorithms of the Gallery application and the Gallery application, the electronic device 200 cannot re-edit the picture in the Gallery application in the Meitu application.
[0345] In the case that the second application does not have permission to read the editing record of the fourth picture, in response to the user editing the fourth picture within the second application, the electronic device 200 can display a sixth picture editing interface, which does not include a re-editing option.
[0346] Exemplarily, the sixth picture editing interface may be the user interface 7600 shown in FIG7G . As shown in FIG7G , the user interface 7600 does not include a re-editing option, that is, the user cannot perform a re-editing operation on the fourth picture in the sixth picture editing interface.
[0347] FIG9 is a flow chart of a method for image editing provided by the present application.
[0348] S901. A first electronic device is configured to display a first gallery interface, where the first gallery interface includes a first picture.
[0349] Exemplarily, the first gallery interface may be the user interface 5100 shown in FIG. 5B , and the first picture may be the picture 3201 shown in FIG. 5B .
[0350] S902: The first electronic device is further configured to receive an editing operation from a user on the first picture.
[0351] Exemplarily, the editing operation on the first picture may be an input operation on the editing option in the user interface 5100 shown in FIG5B , such as a single click.
[0352] S903. In response to the editing operation on the first picture, a first user interface is displayed. The editing interface of the first picture includes the first picture and a first option. The first option includes a first node and a second node. The first node is related to the first picture editing algorithm, and the second node is related to the second picture editing algorithm. The first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of the third picture.
[0353] For example, the first user interface may be user interface 5200 shown in FIG5C or FIG5F , the first picture may be picture 3201 shown in FIG5C or FIG5F , and the first option may be re-edit option 5201 shown in FIG5C or FIG5F . The first node and the second node may be any two nodes among edit node 2101, edit node 2402, and edit node 3202 in re-edit option 5201 shown in FIG5C or FIG5F .
[0354] For example, the first user interface may be user interface 5200 shown in FIG5I , the first picture may be picture 3201 shown in FIG5I , and the first option may be re-edit option 5701 shown in FIG5I . The first node and the second node may be any two nodes among edit node 5702, edit node 2101, edit node 2402, and edit node 3202 in re-edit option 5701 shown in FIG5I .
[0355] For example, the first user interface may be user interface 5950 shown in FIG5O, and the first picture may be picture 3201 shown in FIG5O. The first option may be re-edit option 5951 shown in FIG5O. The first node and the second node may be any two nodes among edit node 2101, edit node 2402, and edit node 3202 in re-edit option 5951 shown in FIG5O.
[0356] Exemplarily, the first image editing algorithm and the second image editing algorithm may be any two of an original image, a filter adding algorithm, a watermark adding algorithm, and a cropping algorithm.
[0357] Exemplarily, the third picture may be picture 1101 .
[0358] Optionally, the first image is not limited to the first image editing algorithm and the second image editing algorithm. The first image can also be obtained by combining other more image editing algorithms, and this application does not limit this.
[0359] In some embodiments, the first gallery interface may further include a third picture.
[0360] Through this method, the electronic device can re-edit the pictures saved in the gallery application, so that the saved pictures can be rolled back to any editing node, thereby improving the efficiency of picture editing.
[0361] S904: Receive a first operation from the user on the first node.
[0362] S905 . In response to the first operation, display a second user interface, where the second user interface includes a second picture, which is obtained based on the third picture and the first image editing algorithm.
[0363] Exemplarily, the first node may be the editing node 2402 shown in FIG. 5C , the second user interface may be the user interface 5300 shown in FIG. 5D , the third picture may be the picture 2401 shown in FIG. 5D , and the first image editing algorithm may be a watermarking algorithm.
[0364] Exemplarily, the first node may be the editing node 2101 shown in FIG. 5F , the second user interface may be the user interface 5500 shown in FIG. 5G , the third picture may be the picture 1501 shown in FIG. 5G , and the first image editing algorithm may be a filter adding algorithm.
[0365] Exemplarily, the first node may be the editing node 5702 shown in FIG. 5I , the second user interface may be the user interface 5800 shown in FIG. 5J , the third picture may be the picture 1101 shown in FIG. 5J , and the first image editing algorithm may be none.
[0366] In one possible implementation, the first electronic device is further used to: display a second gallery interface, which includes a third picture; receive an editing operation from a user on the third picture; display a third user interface in response to the editing operation on the third picture, which includes a third picture and multiple picture editing options; receive a second operation from a user on a first editing option among multiple picture editing options, the first editing option being related to a first picture editing algorithm; obtain a second picture in response to the second operation; receive a third operation from a user on a second editing option among multiple picture editing options, the second editing option being related to a second picture editing algorithm; obtain a first picture in response to the third operation; receive a fourth operation to save the first picture; and save the first picture and the editing record of the first picture in response to the fourth operation.
[0367] In one possible implementation, the first electronic device is further used to: display a second gallery interface, which includes a third picture; receive a user's editing operation on the third picture; in response to the editing operation on the third picture, display a third user interface, which includes a third picture and multiple picture editing options; receive a user's selection operation on a first editing option and a second editing option among multiple picture editing options, the first editing option is related to a first picture editing algorithm, and the second editing option is related to a second picture editing algorithm; in response to the selection operation, process the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain a first picture; receive a fourth operation to save the first picture; and in response to the fourth operation, save the first picture and the editing record of the first picture.
[0368] The third picture is the original picture without executing the picture editing algorithm.
[0369] After the user adds an image editing algorithm to the third image, the first electronic device may display the corresponding editing nodes on the image editing interface. This may indicate to the user the image editing algorithm currently used for the image. Furthermore, the user may operate on the editing nodes displayed on the image editing interface to revert the image to the editing effect corresponding to the editing algorithm corresponding to any one or more editing nodes.
[0370] Exemplarily, the second gallery interface may be the user interface 1200 shown in FIG. 1C .
[0371] Exemplarily, the third user interface may be the user interface 1300 shown in FIG. 1D .
[0372] For example, the first editing option or the second editing option can be any two of the "filter" algorithm shown in FIG1E , the watermarking algorithm shown in FIG2C , and the cropping algorithm shown in FIG3A . The second image and the first image can be any two of the image 1501 shown in FIG1E , the image 2401 shown in FIG2D , and the image 3201 shown in FIG3C .
[0373] In a possible implementation, the second user interface further includes a second option, and the second option includes the first node.
[0374] In this way, the first node is used to prompt the user that the second image is obtained based on the first image editing algorithm.
[0375] Exemplarily, the second option may be the re-edit option 5301 shown in FIG. 5D , and the first node may be the edit node 2402 shown in FIG. 5D .
[0376] Exemplarily, the second option may be the re-edit option 5501 shown in FIG. 5G , and the first node may be the edit node 2101 shown in FIG. 5G .
[0377] Exemplarily, the second option may be the re-edit option 5801 shown in FIG. 5J , and the first node may be the edit node 5702 shown in FIG. 5J .
[0378] In a possible implementation, the second picture is obtained by the first electronic device based on the third picture and a first image editing algorithm.
[0379] In this way, when the user re-edits the picture, the electronic device can locally edit the original picture based on the picture editing algorithm selected by the user to obtain the picture editing effect the user wants.
[0380] In one possible implementation, the first electronic device is further used to: respond to the first operation, send the third picture and the identifier of the first image editing algorithm to the server; receive the second picture sent by the server, where the second picture is obtained by the server based on the first image editing algorithm based on the third picture.
[0381] In this way, when the user re-edits the image, the electronic device can use the server to edit the original image based on the image editing algorithm selected by the user. The server's computing power is stronger than that of the electronic device, which can reduce the amount of computing required by the electronic device and increase the speed of the electronic device's image re-editing.
[0382] In a possible implementation, the first picture is obtained by processing the second picture by the first electronic device according to the second picture editing algorithm.
[0383] In one possible implementation, the first electronic device is further configured to send the identifier of the second image editing algorithm and the second image to a server, and the server edits the second image based on the second image editing algorithm to obtain the first image. The server then sends the first image to the first electronic device.
[0384] In one possible implementation, the editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.
[0385] Optionally, the first algorithm structure also includes the order of image editing algorithms, for example, the first image editing algorithm points to the second image editing algorithm, and the identification picture is the first image editing algorithm used first and the second image editing algorithm used later.
[0386] Exemplarily, the first algorithm structure may be the algorithm structure shown in (a) or (b) or (c) in FIG. 4B .
[0387] In one possible implementation, the first electronic device is specifically configured to: in response to an editing operation on a first image, obtain first algorithm information in an editing record of the first image; and display a first option on a first user interface based on the first algorithm information.
[0388] In this way, the electronic device can display the editing nodes on the picture editing interface based on the stored first algorithm information, so that the user can re-edit the picture based on the editing nodes.
[0389] In one possible implementation, the system also includes a second electronic device; the first electronic device is further used to: send the first picture and the editing record of the first picture to the second electronic device; the second electronic device is used to receive a fifth operation; the second electronic device is further used to display a fourth user interface in response to the fifth operation, the fourth user interface including the first picture and a third option, the third option including a third node and a fourth node, the third node is related to the first picture editing algorithm, and the fourth node is related to the second picture editing algorithm.
[0390] For the edited image, the first electronic device not only needs to share the image to the second electronic device, but also needs to share the editing record of the image to the second electronic device.
[0391] Not only can the electronic device re-edit the picture locally, the electronic device can also share the picture and the editing record of the picture to a second electronic device. The second electronic device can also re-edit the picture shared by the first electronic device, further improving the efficiency of picture editing.
[0392] Exemplarily, the first electronic device may be the electronic device 100 , and the second electronic device may be the electronic device 200 .
[0393] Exemplarily, the fourth user interface may be the user interface 7500 shown in FIG7F , the third option may be the re-edit option 7506 shown in FIG7F , and the third node and the fourth node may be any two nodes of the editing node 7507, the editing node 7508, and the editing node 7509 in the re-edit option 7506 shown in FIG7F .
[0394] In one possible implementation, the second electronic device is specifically configured to: obtain first algorithm information in the editing record of the first image when having permission to read the editing record of the first image; and display a third option on a fourth user interface based on the first algorithm information.
[0395] In a possible implementation, the second electronic device is further configured to display a fifth user interface including the first picture when the second electronic device does not have permission to read the editing record of the first picture. The fifth user interface includes the first picture.
[0396] In this way, after the second electronic device receives the first image and the editing record of the first image shared by the first electronic device, the second electronic device can determine whether the first image can be re-edited. If the second electronic device has the authority to re-edit the first image, the second electronic device can display the editing node of the first image, allowing the user to re-edit the first image displayed by the second electronic device. If the second electronic device does not have the authority to re-edit the first image, the second electronic device may not display the editing node of the first image to indicate that the second electronic device does not have the authority to re-edit the first image.
[0397] Exemplarily, the fifth user interface may be the user interface 7600 shown in FIG. 7G .
[0398] In a possible implementation, the first electronic device is further configured to send application information of a first application to the second electronic device, wherein the first application is an application that edits the third image to obtain the first image;
[0399] The second electronic device is specifically used to: display the first picture through the second application; obtain the first algorithm information in the editing record of the first picture when the first application and the second application are the same application; and display the third option on the fifth user interface based on the first algorithm information.
[0400] In some embodiments, the first electronic device is further configured to send application information of the first application to the second electronic device, and the second electronic device is further configured to obtain application information of the second application. If the first application and the second application are the same application, the second application has permission to re-edit the first image.
[0401] In other embodiments, when the first application and the second application are not the same application, if the first application and the second application share a common set of image editing algorithms, the second application also has the authority to re-edit the first image.
[0402] In conjunction with the first aspect, in one possible implementation, the application information of the first application includes any one or more of the following: the application name or identifier, the application version number, and the name of the application developer.
[0403] In one possible implementation, the description information of the description information of the first image editing algorithm includes any one or more of the following: the identifier or name of the first image editing algorithm, the version of the first image editing algorithm, and the parameters of the first image editing algorithm; the description information of the description information of the second image editing algorithm includes any one or more of the following: the identifier or name of the second image editing algorithm, the version of the second image editing algorithm, and the parameters of the second image editing algorithm.
[0404] FIG10 is a schematic diagram of the hardware structure of an electronic device 100 provided in this application.
[0405] The hardware structure of the electronic device 200 is similar to that of the electronic device 100 , and reference may be made to the description of the hardware structure of the electronic device 100 in FIG. 10 .
[0406] The following embodiments are described in detail using electronic device 100 as an example. It should be understood that the electronic device 100 shown in FIG10 is merely an example, and that the electronic device 100 may have more or fewer components than those shown in FIG10 , may combine two or more components, or may have a different component configuration. The various components shown in FIG10 may be implemented in hardware, including one or more signal processing and / or application-specific integrated circuits, software, or a combination of hardware and software.
[0407] The electronic device 100 may include: a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.
[0408] It should be understood that the structure illustrated in the embodiments of the present invention does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown, or may combine or separate certain components, or arrange the components differently. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0409] The processor 110 may include one or more processing units. For example, the processor 110 may include an application processor (AP), a modem processor, a graphics processing unit (GPU), an image signal processor (ISP), a controller, a memory, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU). The different processing units may be independent devices or integrated into one or more processors.
[0410] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.
[0411] Processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in processor 110 is a cache memory. This memory can store instructions or data that have just been used or are being recycled by processor 110. If processor 110 needs to use the same instruction or data again, it can directly access the memory. This avoids duplicate accesses, reduces processor 110 latency, and thus improves system efficiency.
[0412] In some embodiments, the processor 110 may include one or more interfaces. The interfaces may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface.
[0413] The I2C interface is a bidirectional synchronous serial bus that includes a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C bus lines. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, and the like via different I2C bus interfaces. For example, the processor 110 may be coupled to the touch sensor 180K via the I2C interface, enabling communication between the processor 110 and the touch sensor 180K via the I2C bus interface, thereby enabling the touch function of the electronic device 100.
[0414] The I2S interface can be used for audio communication. In some embodiments, the processor 110 can include multiple I2S buses. The processor 110 can be coupled to the audio module 170 via the I2S bus to enable communication between the processor 110 and the audio module 170. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the I2S interface, enabling the function of answering calls through a Bluetooth headset.
[0415] The PCM interface can also be used for audio communication, sampling, quantizing, and encoding analog signals. In some embodiments, the audio module 170 and the wireless communication module 160 can be coupled via a PCM bus interface. In some embodiments, the audio module 170 can also transmit audio signals to the wireless communication module 160 via the PCM interface, enabling the function of answering calls via a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0416] The UART interface is a universal serial data bus used for asynchronous communication. This bus can be a bidirectional communication bus. It converts the data to be transmitted between serial communication and parallel communication. In some embodiments, the UART interface is typically used to connect the processor 110 and the wireless communication module 160. For example, the processor 110 communicates with the Bluetooth module in the wireless communication module 160 via the UART interface to implement Bluetooth functionality. In some embodiments, the audio module 170 can transmit audio signals to the wireless communication module 160 via the UART interface, enabling the function of playing music through Bluetooth headphones.
[0417] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display 194 and the camera 193. MIPI interfaces include the camera serial interface (CSI) and the display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the camera function of the electronic device 100. The processor 110 and the display 194 communicate via the DSI interface to implement the display function of the electronic device 100.
[0418] The GPIO interface can be configured via software. The GPIO interface can be configured as either a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to the camera 193, display 194, wireless communication module 160, audio module 170, sensor module 180, etc. The GPIO interface can also be configured as an I2C interface, an I2S interface, a UART interface, a MIPI interface, etc.
[0419] The USB interface 130 is an interface that complies with USB standards and may be a Mini USB interface, a Micro USB interface, a USB Type-C interface, or the like. The USB interface 130 can be used to connect a charger to charge the electronic device 100, or to transfer data between the electronic device 100 and peripheral devices. It can also be used to connect headphones to play audio. This interface can also be used to connect other electronic devices, such as augmented reality devices.
[0420] It is understood that the interface connection relationship between the modules illustrated in the embodiment of the present invention is merely an illustrative illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods from the above embodiments, or a combination of multiple interface connection methods.
[0421] The charging management module 140 is configured to receive charging input from a charger. The charger can be either a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 can receive charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 can receive wireless charging input via the wireless charging coil of the electronic device 100. While charging the battery 142, the charging management module 140 can also provide power to the electronic device via the power management module 141.
[0422] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and provides power to the processor 110, the internal memory 121, the external memory, the display 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage, impedance). In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0423] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.
[0424] Antenna 1 and Antenna 2 are used to transmit and receive electromagnetic wave signals. Each antenna in electronic device 100 can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve antenna utilization. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In other embodiments, the antennas can be used in conjunction with a tuning switch.
[0425] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.
[0426] The modem processor may include a modulator and a demodulator. The modulator is used to modulate the low-frequency baseband signal to be transmitted into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After being processed by the baseband processor, the low-frequency baseband signal is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to the speaker 170A, the receiver 170B, etc.) or displays an image or video through the display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.
[0427] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices that integrate at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, frequency modulates and filters the electromagnetic wave signals, and sends the processed signals to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, frequency modulate it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.
[0428] In some embodiments, the antenna 1 of the electronic device 100 is coupled to the mobile communication module 150, and the antenna 2 is coupled to the wireless communication module 160, so that the electronic device 100 can communicate with a network and other devices through wireless communication technologies. The wireless communication technologies may include global system for mobile communications (GSM), general packet radio service (GPRS), code division multiple access (CDMA), wideband code division multiple access (WCDMA), time-division code division multiple access (TD-SCDMA), long term evolution (LTE), BT, GNSS, WLAN, NFC, FM, and / or IR technology. The GNSS may include a global positioning system (GPS), a global navigation satellite system (GLONASS), a Beidou navigation satellite system (BDS), a quasi-zenith satellite system (QZSS) and / or a satellite based augmentation system (SBAS).
[0429] Electronic device 100 implements display functionality through a GPU, display screen 194, and an application processor. A GPU is a microprocessor for image processing that connects display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. Processor 110 may include one or more GPUs that execute program instructions to generate or modify display information.
[0430] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display screen panel can also be made of an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), a miniLED, a microLED, a micro-OLED, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device 100 may include one or N display screens 194, where N is a positive integer greater than one.
[0431] The electronic device 100 can implement a shooting function through an ISP, a camera 193, a video codec, a GPU, a display screen 194, and an application processor.
[0432] The ISP processes data fed back by camera 193. For example, when taking a photo, the shutter is opened, and light is transmitted through the lens to the camera's photosensitive element. The light signal is converted into an electrical signal, which is then passed to the ISP for processing and converted into a visible image. The ISP can also perform algorithmic optimization on image noise and brightness. It can also optimize parameters such as exposure and color temperature of the captured scene. In some embodiments, the ISP can be located within camera 193.
[0433] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the light signal into an electrical signal, and then passes the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.
[0434] The digital signal processor is used to process digital signals. In addition to processing digital image signals, it can also process other digital signals. For example, when the electronic device 100 selects a frequency point, the digital signal processor is used to perform Fourier transform on the frequency point energy.
[0435] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. This allows electronic device 100 to play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, and MPEG4.
[0436] The NPU is a neural network (NN) computing processor. Drawing on the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it rapidly processes input information and can continuously self-learn. The NPU can enable intelligent cognitive applications in electronic device 100, such as image recognition, face recognition, speech recognition, and text comprehension.
[0437] The external memory interface 120 can be used to connect an external memory card, such as a Micro SD card, to expand the storage capacity of the electronic device 100. The external memory card communicates with the processor 110 via the external memory interface 120 to implement data storage functions. For example, files such as music and videos can be stored on the external memory card.
[0438] The internal memory 121 can be used to store computer executable program codes, which include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area can store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area can store data created during the use of the electronic device 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.
[0439] The electronic device 100 can implement audio functions such as music playback and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.
[0440] The audio module 170 is used to convert digital audio information into analog audio signal output, and is also used to convert analog audio input into digital audio signals. The audio module 170 can also be used to encode and decode audio signals. In some embodiments, the audio module 170 can be provided in the processor 110, or some functional modules of the audio module 170 can be provided in the processor 110.
[0441] The speaker 170A, also called a "speaker", is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or listen to hands-free calls through the speaker 170A.
[0442] The receiver 170B, also called a "handset", is used to convert audio electrical signals into sound signals. When the electronic device 100 receives a call or a voice message, the user can place the receiver 170B close to the ear to hear the voice.
[0443] Microphone 170C, also known as "microphone" or "microphone", is used to convert sound signals into electrical signals. When making a call or sending a voice message, the user can speak by putting their mouth close to the microphone 170C to input the sound signal into the microphone 170C. The electronic device 100 can be provided with at least one microphone 170C. In other embodiments, the electronic device 100 can be provided with two microphones 170C, which can not only collect sound signals but also realize noise reduction function. In other embodiments, the electronic device 100 can also be provided with three, four or more microphones 170C to collect sound signals, reduce noise, identify the source of sound, realize directional recording function, etc.
[0444] The headphone jack 170D is used to connect a wired headphone and can be the USB interface 130 or a 3.5mm open mobile terminal platform (OMTP) standard interface or a cellular telecommunications industry association of the USA (CTIA) standard interface.
[0445] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be located on display screen 194. There are many types of pressure sensors 180A, such as resistive, inductive, and capacitive. A capacitive pressure sensor can include at least two parallel plates made of conductive material. When force acts on pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the intensity of the pressure based on this change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the touch intensity based on pressure sensor 180A. Electronic device 100 can also calculate the touch location based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch location but with different touch intensities can correspond to different operation instructions. For example, when a touch operation with an intensity less than a first pressure threshold is applied to a short message application icon, a command to view short messages is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to a short message application icon, a command to create a new short message is executed.
[0446] The gyroscope sensor 180B can be used to determine the motion posture of the electronic device 100. In some embodiments, the angular velocity of the electronic device 100 around three axes (i.e., x, y, and z axes) can be determined by the gyroscope sensor 180B. The gyroscope sensor 180B can be used for anti-shake shooting. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the electronic device 100 shaking, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to offset the shaking of the electronic device 100 through reverse movement to achieve anti-shake. The gyroscope sensor 180B can also be used for navigation and somatosensory game scenes.
[0447] The air pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates the altitude using the air pressure value measured by the air pressure sensor 180C to assist in positioning and navigation.
[0448] The magnetic sensor 180D includes a Hall sensor. The electronic device 100 can use the magnetic sensor 180D to detect the opening and closing of the flip case. In some embodiments, when the electronic device 100 is a flip phone, the electronic device 100 can detect the opening and closing of the flip cover based on the magnetic sensor 180D. Based on the detected opening and closing status of the case or flip cover, features such as automatic unlocking of the flip cover can be configured.
[0449] Accelerometer 180E can detect the magnitude of acceleration of electronic device 100 in all directions (generally three axes). It can also detect the magnitude and direction of gravity when electronic device 100 is stationary. It can also be used to identify the electronic device's posture, enabling applications such as switching between landscape and portrait modes and pedometers.
[0450] The distance sensor 180F is used to measure distance. The electronic device 100 can measure distance using infrared or laser. In some embodiments, when shooting a scene, the electronic device 100 can use the distance sensor 180F to measure distance to achieve fast focusing.
[0451] The proximity light sensor 180G may include, for example, a light emitting diode (LED) and a light detector, such as a photodiode. The light emitting diode may be an infrared light emitting diode. The electronic device 100 emits infrared light outward through the light emitting diode. The electronic device 100 uses a photodiode to detect infrared reflected light from nearby objects. When sufficient reflected light is detected, it can be determined that there is an object near the electronic device 100. When insufficient reflected light is detected, the electronic device 100 can determine that there is no object near the electronic device 100. The electronic device 100 can use the proximity light sensor 180G to detect that the user is holding the electronic device 100 close to the ear to talk, so as to automatically turn off the screen to save power. The proximity light sensor 180G can also be used in leather case mode and pocket mode to automatically unlock and lock the screen.
[0452] Ambient light sensor 180L is used to sense ambient light brightness. Electronic device 100 can adaptively adjust the brightness of display screen 194 based on the perceived ambient light. Ambient light sensor 180L can also be used to automatically adjust white balance when taking photos. Ambient light sensor 180L can also work with proximity light sensor 180G to detect whether electronic device 100 is in a pocket to prevent accidental touches.
[0453] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the collected fingerprint characteristics to implement fingerprint unlocking, access application locks, fingerprint photography, fingerprint call answering, etc.
[0454] The temperature sensor 180J is used to detect temperature. In some embodiments, the electronic device 100 uses the temperature detected by the temperature sensor 180J to execute a temperature processing strategy. For example, when the temperature reported by the temperature sensor 180J exceeds a threshold, the electronic device 100 reduces the performance of the processor located near the temperature sensor 180J to reduce power consumption and implement thermal protection. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 heats the battery 142 to prevent the electronic device 100 from shutting down abnormally due to low temperature. In other embodiments, when the temperature is lower than another threshold, the electronic device 100 boosts the output voltage of the battery 142 to prevent abnormal shutdown due to low temperature.
[0455] The touch sensor 180K is also called a "touch panel." The touch sensor 180K can be disposed on the display screen 194. The touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen." The touch sensor 180K is used to detect touch operations applied thereto or in the vicinity thereof. The touch sensor can transmit the detected touch operations to the application processor to determine the type of touch event. Visual output related to the touch operations can be provided via the display screen 194. In other embodiments, the touch sensor 180K can also be disposed on the surface of the electronic device 100, in a location different from that of the display screen 194.
[0456] The bone conduction sensor 180M can obtain vibration signals. In some embodiments, the bone conduction sensor 180M can obtain vibration signals from the vibrating bones of the human body. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure pulse signals. In some embodiments, the bone conduction sensor 180M can also be set in headphones to form bone conduction headphones. The audio module 170 can parse out voice signals based on the vibration signals of the vibrating bones of the human body obtained by the bone conduction sensor 180M to implement voice functions. The application processor can parse heart rate information based on the blood pressure pulse signals obtained by the bone conduction sensor 180M to implement heart rate detection functions.
[0457] The buttons 190 include a power button, a volume button, and the like. The buttons 190 may be mechanical buttons or touch buttons. The electronic device 100 may receive key inputs and generate key signal inputs related to user settings and function control of the electronic device 100.
[0458] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.
[0459] The indicator 192 may be an indicator light, which may be used to indicate the charging status, power level changes, messages, missed calls, notifications, etc.
[0460] The SIM card interface 195 is used to connect a SIM card.
[0461] The following describes the software system of the electronic device 100 provided in the embodiment of the present application.
[0462] The software system of the electronic device 100 can adopt a layered architecture, an event-driven architecture, a micro-kernel architecture, a micro-service architecture, or a cloud architecture. In the embodiment of the present invention, the Android system with a layered architecture is used as an example to illustrate the software structure of the electronic device 100.
[0463] FIG11 is a block diagram of the software structure of the electronic device 100 according to an embodiment of the present invention.
[0464] A layered architecture divides software into several layers, each with distinct roles and responsibilities. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0465] The application layer can include a series of application packages.
[0466] As shown in FIG11 , the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and short message.
[0467] The application framework layer provides an application programming interface (API) and programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0468] As shown in FIG11 , the application framework layer may include a window manager, a content provider, a view system, a telephony manager, a resource manager, a notification manager, and the like.
[0469] The window manager is used to manage window programs. The window manager can obtain the display size, determine whether there is a status bar, lock the screen, take screenshots, etc.
[0470] Content providers are used to store and retrieve data and make it accessible to applications. The data may include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0471] The view system includes visual controls, such as those for displaying text and images. The view system is used to build applications. A display interface can consist of one or more views. For example, a display interface containing a text notification icon might include a view for displaying text and a view for displaying images.
[0472] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including answering, hanging up, etc.).
[0473] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0474] The Notification Manager allows applications to display notifications in the status bar. These messages can be displayed briefly and then disappear automatically without user interaction. For example, the Notification Manager is used to notify users of completed downloads and message reminders. The Notification Manager can also display notifications in the top status bar of the system as icons or scrolling text, such as notifications from background applications, or as dialog windows on the screen. Examples include text messages in the status bar, beeps, vibrations on electronic devices, and flashing indicator lights.
[0475] Android Runtime includes core libraries and a virtual machine. Android runtime is responsible for scheduling and management of the Android system.
[0476] The core library consists of two parts: one is the function that needs to be called by the Java language, and the other is the Android core library.
[0477] The application layer and application framework layer run in a virtual machine. The virtual machine executes Java files in the application layer and application framework layer as binary files. The virtual machine manages object lifecycles, stack management, thread management, security and exception management, and garbage collection.
[0478] The system library can include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0479] The surface manager is used to manage the display subsystem and provide fusion of 2D and 3D layers for multiple applications.
[0480] The media library supports playback and recording of a variety of common audio and video formats, as well as static image files. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0481] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0482] A 2D graphics engine is a drawing engine for 2D drawings.
[0483] The kernel layer is the layer between hardware and software. The kernel layer includes at least display driver, camera driver, audio driver, and sensor driver.
[0484] The above are only some of the embodiments and implementations of this application. The scope of protection of this application is not limited thereto. Any changes or substitutions that can be easily conceived by a person skilled in the art within the technical scope disclosed in this application should be included in the scope of protection of this application. Therefore, the scope of protection of this application should be based on the scope of protection of the claims.
[0485] It is understood that the various user interfaces described in the embodiments of this application are merely exemplary interfaces and do not limit the scope of this application. In other embodiments, the user interface may adopt a different interface layout, include more or fewer controls, and add or remove other functional options. As long as they are based on the same inventive concept provided by this application, they are all within the scope of protection of this application.
[0486] It should be noted that, without causing any contradiction or conflict, any feature in any embodiment of the present application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of the present application.
[0487] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the above embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the above embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present application.
Claims
1. A picture editing system, characterized in that: The system comprises a first electronic device, wherein: The first electronic device is used to display a first gallery interface, wherein the first gallery interface includes a first picture; The first electronic device is further used for: receiving an editing operation from a user on the first picture; In response to an editing operation on the first picture, the first user interface is displayed, the editing interface of the first picture includes the first picture and a first option, the first option includes a first node and a second node, the first node is related to a first picture editing algorithm, the second node is related to a second picture editing algorithm, and the first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; receiving a first operation of a user on the first node; In response to the first operation, a second user interface is displayed, wherein the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm and on the basis of the third picture.
2. The system according to claim 1, characterized in that The first electronic device is further configured to: Used to display a second gallery interface, where the second gallery interface includes the third picture; receiving an editing operation from a user on the third picture; In response to an editing operation on the third picture, displaying a third user interface, the third user interface including the third picture and a plurality of picture editing options; receiving a second operation of a user on a first editing option among the plurality of picture editing options, wherein the first editing option is related to the first picture editing algorithm; In response to the second operation, obtaining the second picture; receiving a third operation of a user on a second editing option among the plurality of picture editing options, wherein the second editing option is related to the second picture editing algorithm; In response to the third operation, obtaining the first picture; receiving a fourth operation of saving the first picture; In response to the fourth operation, the first picture and the editing record of the first picture are saved.
3. The system according to claim 1, characterized in that The first electronic device is further configured to: Used to display a second gallery interface, where the second gallery interface includes the third picture; receiving an editing operation from a user on the third picture; In response to an editing operation on the third picture, displaying a third user interface, the third user interface including the third picture and a plurality of picture editing options; receiving a user's selection operation for a first editing option and a second editing option among the plurality of picture editing options, wherein the first editing option is related to the first picture editing algorithm, and the second editing option is related to the second picture editing algorithm; In response to the selection operation, the third picture is processed according to the first picture editing algorithm and the second picture editing algorithm to obtain the first picture; receiving a fourth operation of saving the first picture; In response to the fourth operation, the first picture and the editing record of the first picture are saved.
4. The system according to any one of claims 1 to 3, characterized in that: The second user interface further includes a second option, and the second option includes the first node.
5. The system according to any one of claims 1 to 4, characterized in that: The second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.
6. The system according to any one of claims 1 to 4, characterized in that: The first electronic device is further used for: In response to the first operation, sending the third picture and the identifier of the first image editing algorithm to a server; The second picture sent by the server is received, where the second picture is obtained by the server based on the first image editing algorithm and on the basis of the third picture.
7. The method according to any one of claims 1 to 6, characterized in that: The first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.
8. The system according to claim 2 or 3, characterized in that: The editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.
9. The system according to claim 8, characterized in that The first electronic device is specifically used for: In response to an editing operation on the first picture, acquiring the first algorithm information in an editing record of the first picture; The first option is displayed on the first user interface based on the first algorithm information.
10. The system according to claim 2, 3 or 8, characterized in that: The system further includes a second electronic device; the first electronic device is further configured to: sending the first picture and the edit record of the first picture to a second electronic device; The second electronic device is used to receive a fifth operation; The second electronic device is further used to display a fourth user interface in response to the fifth operation, wherein the fourth user interface includes the first picture and the third option, the third option includes a third node and a fourth node, the third node is related to the first picture editing algorithm, and the fourth node is related to the second picture editing algorithm.
11. The system according to claim 10, characterized in that The second electronic device is specifically used for: If the user has permission to read the editing record of the first picture, obtaining the first algorithm information in the editing record of the first picture; The third option is displayed on the fourth user interface based on the first algorithm information.
12. The system according to claim 11, characterized in that The second electronic device is also used In the case where there is no permission to read the editing record of the first picture, a fifth user interface is displayed, where the fifth user interface includes the first picture.
13. The system according to claim 11 or 12, characterized in that The first electronic device is further used to send application information of a first application to a second electronic device, wherein the first application is an application that edits the third image to obtain the first image; The second electronic device is specifically used for: displaying the first picture through the second application; When the first application and the second application are the same application, obtaining the first algorithm information in the editing record of the first picture; The third option is displayed on the fifth user interface based on the first algorithm information.
14. The system according to claim 13, characterized in that The application information of the first application includes any one or more of the following: an application name or identifier, an application version number, and a name of a developer of the application.
15. The system according to claim 8 or 9, characterized in that The description information of the description information of the first image editing algorithm includes any one or more of the following: an identifier or a name of the first image editing algorithm, a version of the first image editing algorithm, and parameters of the first image editing algorithm; The description information of the description information of the second image editing algorithm includes any one or more of the following: an identifier or a name of the second image editing algorithm, a version of the second image editing algorithm, and parameters of the second image editing algorithm.
16. A method for editing a picture, characterized in that: The method comprises: The first electronic device displays a first gallery interface, wherein the first gallery interface includes a first picture; The first electronic device receives an editing operation of the user on the first picture; In response to an editing operation on the first picture, the first electronic device displays the first user interface, the editing interface of the first picture includes the first picture and a first option, the first option includes a first node and a second node, the first node is related to a first picture editing algorithm, the second node is related to a second picture editing algorithm, and the first picture is obtained based on the first image editing algorithm and the second image editing algorithm on the basis of a third picture; The first electronic device receives a first operation of a user on the first node; In response to the first operation, the first electronic device displays a second user interface, where the second user interface includes a second picture, and the second picture is obtained based on the first image editing algorithm and on the basis of the third picture.
17. The method according to claim 16, characterized in that Before the first electronic device displays the first gallery interface, the method further includes: The first electronic device displays a second gallery interface, where the second gallery interface includes the third picture; The first electronic device receives an editing operation of the user on the third picture; In response to the editing operation on the third picture, the first electronic device displays a third user interface, where the third user interface includes the third picture and a plurality of picture editing options; The first electronic device receives a second operation of a user on a first editing option among the plurality of picture editing options, where the first editing option is related to the first picture editing algorithm; In response to the second operation, the first electronic device obtains the second picture; After acquiring the second picture, the first electronic device receives a third operation of the user on a second editing option among the plurality of picture editing options, where the second editing option is related to the second picture editing algorithm; In response to the third operation, the first electronic device obtains the first picture; The first electronic device receives a fourth operation of saving the first picture; In response to the fourth operation, the first electronic device saves the first picture and an editing record of the first picture.
18. The method according to claim 16, characterized in that Before the first electronic device displays the first gallery interface, the method further includes: The first electronic device displays a second gallery interface, where the second gallery interface includes the third picture; The first electronic device receives an editing operation of the user on the third picture; In response to the editing operation on the third picture, the first electronic device displays a third user interface, where the third user interface includes the third picture and a plurality of picture editing options; The first electronic device receives a user's selection operation for a first editing option and a second editing option among the plurality of picture editing options, the first editing option being related to the first picture editing algorithm, and the second editing option being related to the second picture editing algorithm; In response to the selection operation, the first electronic device processes the third picture according to the first picture editing algorithm and the second picture editing algorithm to obtain the first picture; The first electronic device receives a fourth operation of saving the first picture; In response to the fourth operation, the first electronic device saves the first picture and an editing record of the first picture.
19. The method according to any one of claims 16 to 18, characterized in that: The second user interface further includes a second option, and the second option includes the first node.
20. The method according to any one of claims 16 to 19, characterized in that: The second picture is obtained by the first electronic device based on the first image editing algorithm on the basis of the third picture.
21. The method according to any one of claims 16 to 18, characterized in that: Before the first electronic device displays the second user interface, the method further includes: In response to the first operation, the first electronic device sends the third picture and the identifier of the first image editing algorithm to a server; The first electronic device receives the second picture sent by the server, where the second picture is obtained by the server based on the third picture and the first image editing algorithm; The first electronic device displays a second user interface, specifically including: In response to receiving the second picture sent by the server, the first electronic device displays a second user interface.
22. The method according to any one of claims 16 to 21, characterized in that: The first picture is obtained by the first electronic device processing the second picture according to the second picture editing algorithm.
23. The method according to claim 17 or 18, characterized in that The editing record of the first picture includes first algorithm information, the first algorithm information includes a first algorithm structure and first description information, the first algorithm structure includes an identifier of the first image editing algorithm and an identifier of the second image editing algorithm, and the first description information includes description information of the first image editing algorithm and description information of the second image editing algorithm.
24. The method according to claim 23, characterized in that The first electronic device displays the first user interface, specifically including: In response to an editing operation on the first picture, the first electronic device obtains the first algorithm information in the editing record of the first picture; The first electronic device displays the first option on the first user interface based on the first algorithm information.
25. The method according to claim 17, 18 or 23, characterized in that: After the first electronic device saves the first picture and the editing record of the first picture, the method further includes: The first electronic device sends the first picture and the editing record of the first picture to the second electronic device; wherein the editing record of the first picture is used by the second electronic device to process the first picture based on the first picture editing algorithm and the second picture editing algorithm.
26. The system according to claim 23, characterized in that The description information of the description information of the first image editing algorithm includes any one or more of the following: an identifier or a name of the first image editing algorithm, a version of the first image editing algorithm, and parameters of the first image editing algorithm; The description information of the description information of the second image editing algorithm includes any one or more of the following: an identifier or a name of the second image editing algorithm, a version of the second image editing algorithm, and parameters of the second image editing algorithm.
27. An electronic device, being a first electronic device, characterized in that: The first electronic device includes a memory and a processor; wherein the memory and the processor are coupled, and the memory is used to store a computer program. When the processor executes and calls the computer program, the first electronic device executes the method described in any one of claims 16-26.
28. A computer-readable storage medium comprising instructions, characterized in that: When the instructions are executed on the first electronic device, the first electronic device executes the method according to any one of claims 16 to 26.
Citation Information
Patent Citations
Picture editing method, electronic equipment and storage medium
CN120066324A
Portable electronic device for photo management
CN101356493A
Media file processing method and electronic device
CN110909180A
Image processing method and electronic equipment
CN111127595A
Image editing rollback method and device
CN113920220A