A picture editing method, an electronic device, and a storage medium
Patent Information
- Application Number
- CN202311641626.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-11-30
- Publication Date
- 2026-09-18
- Estimated Expiration
- 2043-11-30
AI Technical Summary
但是用户多次保存不同编辑效果的图片,电子设备上不仅会保存多张类似的图片,还会浪费电子设备的存储空间
[0055] Ninthly, this application provides a computer program product containing instructions that, when the computer program product is run on a first electronic device, causes the first electronic device to execute a data sharing method provided in any possible implementation of any aspect above.
Smart Images

Figure CN120066324B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of terminal technology, and in particular to an image editing method, electronic device, and storage medium. Background Technology
[0002] With the development of terminal technology, users can edit images saved on their electronic devices, such as adjusting contrast, brightness, sharpness, adding skin smoothing effects, adding filters, adding watermarks, and adding mosaic effects to meet their display needs. After editing, users can save the edited image to their electronic device and view it there.
[0003] If a user is not satisfied with the edited image, they can re-edit the original image and save the edited version again. However, saving images with different edit effects multiple times not only results in multiple similar images being stored on the electronic device, but also wastes storage space. How to improve image editing efficiency requires further research. Summary of the Invention
[0004] This application provides an image editing method, electronic device, and storage medium, which improves image editing efficiency.
[0005] In a first aspect, this application provides an image editing system, comprising a first electronic device, wherein the first electronic device is configured to display a first image library interface, the first image library interface including a first image; the first electronic device is further configured to: receive an editing operation by a user on the first image; in response to the editing operation on the first image, display a first user interface, the editing interface of the first image including the first image and a first option, the first option including a first node and a second node, the first node being related to a first image editing algorithm, the second node being related to a second image editing algorithm, the first image being obtained based on a third image using the first image editing algorithm and the second image editing algorithm; receive a first operation by a user on the first node; in response to the first operation, display a second user interface, the second user interface including a second image, the second image being obtained based on a third image using the first image editing algorithm.
[0006] Optionally, and 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.
[0007] In some embodiments, the first gallery interface may also include a third image.
[0008] This method allows electronic devices to re-edit images stored in a gallery application, enabling saved images to be rolled back to any editing node, thus improving image editing efficiency.
[0009] In conjunction with the first aspect, in one possible implementation, the first electronic device is further configured to: display a second gallery interface, the second gallery interface including a third image; receive an editing operation from a user on the third image; in response to the editing operation on the third image, display a third user interface, the third user interface including the third image and multiple image editing options; receive a second operation from the user on a first editing option among the multiple image editing options, the first editing option being related to a first image editing algorithm; in response to the second operation, obtain the second image; receive a third operation from the user on the second editing option among the multiple image editing options, the second editing option being related to a second image editing algorithm; in response to the third operation, obtain the first image; receive a fourth operation to save the first image; and in response to the fourth operation, save the first image and the editing history of the first image.
[0010] In one possible implementation, the first electronic device is further configured to: display a second gallery interface, the second gallery interface including a third image; receive an editing operation from a user on the third image; in response to the editing operation on the third image, display a third user interface, the third user interface including the third image and multiple image editing options; receive a selection operation from a user on a first editing option and a second editing option among the multiple image editing options, the first editing option being associated with a first image editing algorithm and the second editing option being associated with a second image editing algorithm; in response to the selection operation, process the third image according to the first image editing algorithm and the second image editing algorithm to obtain a first image; receive a fourth operation to save the first image; and in response to the fourth operation, save the first image and the editing record of the first image.
[0011] The third image is the original image without the image editing algorithm being applied.
[0012] After the user adds an image editing algorithm to the third image, the first electronic device can display the corresponding editing nodes on the image editing interface. On one hand, this indicates to the user that the image editing algorithm currently being used is active. On the other hand, the user can also interact with the editing nodes displayed on the image editing interface, allowing the image to revert to the editing effect corresponding to any one or more editing nodes and their respective algorithms.
[0013] In conjunction with the first aspect, in one possible implementation, the second user interface also includes a second option, which includes the first node.
[0014] Thus, the first node is used to prompt the user that the second image is obtained based on the first image editing algorithm.
[0015] In conjunction with the first aspect, in one possible implementation, the second image is obtained by the first electronic device based on the third image and using the first image editing algorithm.
[0016] In this way, when a user re-edits an image, the electronic device can edit the original image locally based on the image editing algorithm selected by the user to achieve the desired image editing effect.
[0017] In conjunction with the first aspect, in one possible implementation, the first electronic device is further configured to: respond to the first operation by sending the identifier of the third image and the identifier of the first image editing algorithm to the server; and receive a second image sent by the server, the second image being obtained by the server based on the third image and the first image editing algorithm.
[0018] In this way, when a user re-edits an image, the electronic device can edit the original image using a server based on the image editing algorithm selected by the user. Since the server has greater computing power than the electronic device, this reduces the computational load on the electronic device and also increases the speed at which the electronic device can re-edit images.
[0019] In conjunction with the first aspect, in one possible implementation, the first image is obtained by processing the second image using a first electronic device according to a second image editing algorithm.
[0020] 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, whereby 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 back to the first electronic device.
[0021] In conjunction with the first aspect, in one possible implementation, the editing record of the first image 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.
[0022] Optionally, the first algorithm structure may also include the order of image editing algorithms, for example, the first image editing algorithm points to the second image editing algorithm, indicating that the image was edited by the first image editing algorithm first and then by the second image editing algorithm.
[0023] In conjunction with the first aspect, in one possible implementation, the first electronic device is specifically configured to: in response to an editing operation on the first image, acquire first algorithm information from the editing record of the first image; and display a first option on a first user interface based on the first algorithm information.
[0024] In this way, the electronic device can display editing nodes on the image editing interface based on the saved first algorithm information, so that the user can re-edit the image based on the editing nodes.
[0025] In conjunction with the first aspect, in one possible implementation, the system further includes a second electronic device; the first electronic device is further configured to: send the first image and the editing record of the first image to the second electronic device; the second electronic device is configured to receive a fifth operation; the second electronic device is further configured to, in response to the fifth operation, display a fourth user interface, the fourth user interface including the first image and a third option, the third option including a third node and a fourth node, the third node being related to the first image editing algorithm, and the fourth node being related to the second image editing algorithm.
[0026] For edited images, the first electronic device not only needs to share the image to the second electronic device, but also needs to share the image editing history to the second electronic device.
[0027] Not only can images be re-edited locally on electronic devices, but they can also be shared with a second electronic device along with the image editing history. The second electronic device can then re-edit the images shared by the first electronic device, further improving image editing efficiency.
[0028] In conjunction with the first aspect, in one possible implementation, the second electronic device is specifically used to: obtain first algorithm information in the editing record of the first image when it has 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.
[0029] In one possible implementation, the second electronic device is also used to display a fifth user interface, which includes the first image, in the absence of permission to read the editing history of the first image.
[0030] In this way, after receiving the first image and its editing history shared by the first electronic device, the second electronic device can determine whether it can re-edit the first image. If the second electronic device has permission to re-edit the first image, it can display the editing node for the first image, allowing the user to re-edit the image displayed by the second electronic device. If the second electronic device does not have permission to re-edit the first image, it can not display the editing node for the first image, thus indicating that it does not have permission to re-edit the first image.
[0031] In conjunction with the first aspect, in one possible implementation, the first electronic device is further configured to send application information of the first application to the second electronic device, wherein the first application is an application that edits the third image to obtain the first image;
[0032] The second electronic device is specifically used for: displaying a first image through a second application; obtaining first algorithm information from the editing history of the first image when the first application and the second application are the same application; and displaying a third option on a fifth user interface based on the first algorithm information.
[0033] 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, then the second application has the authority to re-edit the first image.
[0034] In other embodiments, if the first application and the second application are not the same application, and if the first application and the second application share a common image editing algorithm, then the second application also has the right to re-edit the first image.
[0035] 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: application name or identifier, application version number, and the name of the application's developer.
[0036] In conjunction with the first aspect, in one possible implementation, 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 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.
[0037] Secondly, this application provides an image editing method, the method comprising: a first electronic device displaying a first image library interface, the first image library interface including a first image; the first electronic device receiving an editing operation from a user on the first image; in response to the editing operation on the first image, the first electronic device displaying a first user interface, the editing interface of the first image including the first image and a first option, the first option including a first node and a second node, the first node being related to a first image editing algorithm, the second node being related to a second image editing algorithm, the first image being obtained based on a third image using the first image editing algorithm and the second image editing algorithm; the first electronic device receiving a first operation from a user on the first node; in response to the first operation, the first electronic device displaying a second user interface, the second user interface including a second image, the second image being obtained based on a third image using the first image editing algorithm.
[0038] In conjunction with the second aspect, in one possible implementation, before the first electronic device displays the first image gallery interface, the method further includes: the first electronic device displaying a second image gallery interface, the second image gallery interface including a third image; the first electronic device receiving an editing operation from a user on the third image; in response to the editing operation on the third image, the first electronic device displaying a third user interface, the third user interface including the third image and multiple image editing options; the first electronic device receiving a second operation from a user on a first editing option among the multiple image editing options, the first editing option being related to a first image editing algorithm; in response to the second operation, the first electronic device obtaining the second image; after obtaining the second image, the first electronic device receiving a third operation from a user on the second editing option among the multiple image editing options, the second editing option being related to a second image editing algorithm; in response to the third operation, the first electronic device obtaining the first image; the first electronic device receiving a fourth operation to save the first image; in response to the fourth operation, the first electronic device saving the first image and the editing history of the first image.
[0039] In conjunction with the second aspect, in one possible implementation, before the first electronic device displays the first image gallery interface, the method further includes: the first electronic device displaying a second image gallery interface, the second image gallery interface including a third image; the first electronic device receiving an editing operation from a user on the third image; in response to the editing operation on the third image, the first electronic device displaying a third user interface, the third user interface including the third image and multiple image editing options; the first electronic device receiving a selection operation from a user on a first editing option and a second editing option among the multiple image editing options, the first editing option being related to a first image editing algorithm, and the second editing option being related to a second image editing algorithm; in response to the selection operation, the first electronic device processing the third image according to the first image editing algorithm and the second image editing algorithm to obtain a first image; the first electronic device receiving a fourth operation to save the first image; in response to the fourth operation, the first electronic device saving the first image and the editing record of the first image.
[0040] In conjunction with the second aspect, in one possible implementation, the second user interface also includes a second option, which includes the first node.
[0041] In conjunction with the second aspect, in one possible implementation, the second image is obtained by the first electronic device based on the third image and using a first image editing algorithm.
[0042] In conjunction with the second aspect, in one possible implementation, before the first electronic device displays the second user interface, the method further includes: in response to a first operation, the first electronic device sends the identifier of a third image and a first image editing algorithm to a server; the first electronic device receives a second image sent by the server, the second image being obtained by the server based on the third image and the first image editing algorithm; the first electronic device displays the second user interface, specifically including: in response to receiving the second image sent by the server, the first electronic device displays the second user interface.
[0043] In conjunction with the second aspect, in one possible implementation, the first image is obtained by processing the second image using a first electronic device according to a second image editing algorithm.
[0044] In one possible implementation, the first image is obtained by the server processing the second image according to a second image editing algorithm.
[0045] In conjunction with the second aspect, in one possible implementation, the editing record of the first image includes first algorithm information, which includes a first algorithm structure and first description information. The first algorithm structure includes an identifier for the first image editing algorithm and an identifier for the second image editing algorithm, and the first description information includes description information for the first image editing algorithm and description information for the second image editing algorithm.
[0046] In conjunction 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 image, the first electronic device acquires first algorithm information from the editing record of the first image; the first electronic device displays a first option on the first user interface based on the first algorithm information.
[0047] In conjunction with the second aspect, in one possible implementation, after the first electronic device saves the first image and the editing record of the first image, the method further includes: the first electronic device sending the first image and the editing record of the first image to the second electronic device; wherein, the editing record of the first image is used by the second electronic device to process the first image based on the first image editing algorithm and the second image editing algorithm.
[0048] In conjunction with the second aspect, in one possible implementation, 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 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.
[0049] Thirdly, this application provides an electronic device, namely a first electronic device, which includes a memory and a processor; wherein the memory and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the first electronic device performs an image editing method provided in any possible implementation of any of the above aspects.
[0050] Fourthly, this application provides an electronic device, which is a second electronic device, including a camera, a memory, and a processor; wherein the camera, the memory, and the processor are coupled, the memory is used to store a computer program, and when the processor executes and calls the computer program, the second electronic device performs a data sharing method provided in any possible implementation of any of the above aspects.
[0051] Fifthly, this application provides a computer-readable storage medium including instructions that, when executed on a first electronic device, cause the first electronic device to perform a data sharing method provided in any possible implementation of any of the above aspects.
[0052] Sixthly, this application provides a computer-readable storage medium including instructions that, when executed on a second electronic device, cause the second electronic device to perform a data sharing method provided in any possible implementation of any of the above aspects.
[0053] In a seventh aspect, this application provides a chip system including one or more processors, the processors being configured to invoke computer instructions to cause a first electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0054] Eighthly, this application provides a chip system including one or more processors, the processors being used to invoke computer instructions to cause a second electronic device to execute a data sharing method provided in any possible implementation of any of the above aspects.
[0055] Ninthly, this application provides a computer program product containing instructions that, when the computer program product is run on a first electronic device, causes the first electronic device to execute a data sharing method provided in any possible implementation of any aspect above.
[0056] In a tenth aspect, this application provides a computer program product containing instructions that, when executed on a second electronic device, causes the second electronic device to perform a data sharing method provided in any possible implementation of any of the above aspects.
[0057] For a description of the beneficial effects in aspects two through ten, please refer to the description of the beneficial effects in aspect one; this application will not repeat them here. Attached Figure Description
[0058] Figures 1A-1K This illustration shows how a user edits images saved within the Gallery app.
[0059] Figures 2A-2D , Figures 3A-3D A schematic diagram of an electronic device 100 performing editing operations on an image is shown;
[0060] Figure 4A This application provides a flowchart illustrating an image editing method.
[0061] Figure 4B A schematic diagram of an algorithm structure provided in this application;
[0062] Figures 5A-5S A schematic diagram of an electronic device 100 re-editing an image 3201 based on user operations is shown;
[0063] Figure 6 This application provides a flowchart illustrating a method for re-editing an image.
[0064] Figures 7A-7G A UI diagram showing how electronic device 100 shares image 3201 to electronic device 200 is shown;
[0065] Figure 8 A schematic flowchart illustrating a method for re-editing images sent by an electronic device 100, as provided in this application;
[0066] Figure 9 This application provides a flowchart illustrating an image editing method.
[0067] Figure 10 A schematic diagram of the hardware structure of an electronic device 100 provided in this application;
[0068] Figure 11 This is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention. Detailed Implementation
[0069] The technical solutions in the embodiments of this application will be clearly and thoroughly described below with reference to the accompanying drawings. In the description of the embodiments of this application, unless otherwise stated, " / " means "or," for example, A / B can mean A or B; the word "and / or" in the text is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone. Furthermore, in the description of the embodiments of this application, "multiple" refers to two or more than two.
[0070] Hereinafter, the terms "first" and "second" are used for descriptive purposes only and should not be construed as implying or suggesting relative importance or implicitly indicating the number of indicated technical features. Thus, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature, and in the description of the embodiments of this application, unless otherwise stated, "multiple" means two or more.
[0071] The term "user interface (UI)" used in the following embodiments of this application refers to the medium interface through which an application or operating system interacts and exchanges information with a user. It realizes the conversion between the internal form of information and the form that the user can accept. The most common form of user interface is the graphical user interface (GUI), which refers to a user interface related to computer operation displayed in a graphical manner. It can be visual interface elements such as text, icons, buttons, menus, tabs, text boxes, dialog boxes, status bars, navigation bars, and widgets displayed on the screen of a wearable device.
[0072] In some embodiments, users can edit images saved within the gallery app. Users can also edit images saved within the Meitu app.
[0073] Editing images using electronic devices can refer to adding filters, text, stickers, effects, cropping and rotating images, adjusting image information, and changing image backgrounds. Adjusting image information includes, but is not limited to, adjusting one or more of the following: brightness, contrast, saturation, sharpness, color temperature, highlights, and shadows.
[0074] Figures 1A-1K This illustration shows a user editing images saved within the Gallery app.
[0075] Figure 1A The desktop of electronic device 100 is shown, displaying application icons for multiple applications, such as weather, stock, calculator, settings, email, music, video, browser, map, gallery, memo, voice assistant, and photo editing apps. Below these application icons is a page indicator showing the total number of pages on the desktop and the position of the currently displayed page relative to other pages. For example, the desktop may include three pages, and a white dot in the page indicator indicates that the currently displayed page is the rightmost of the three. Optionally, multiple tray icons (e.g., dialer, messaging, contacts, and camera) are displayed below the page indicator, remaining visible during page switching. Optionally, a status bar is displayed in the upper part of the desktop. This status bar may include one or more signal strength indicators for mobile communication signals (also known as cellular signals), a battery status indicator, and a time indicator.
[0076] For example, such as Figure 1A As shown, the electronic device 100 can receive user input (e.g., clicking) on the gallery application icon on the desktop, and in response to the user's input, the electronic device 100 can display... Figure 1B The user interface 1100 shown is a user interface on the electronic device 100 provided in this application embodiment that displays photos categorized by time. The user interface 1100 shows multiple pictures, including picture 1101.
[0077] For example, such as Figure 1B As shown, the electronic device 100 can receive user input (e.g., click) on the image 1101 in the user interface 1100, and in response to the user's input, the electronic device 100 can display... Figure 1C The user interface shown is 1200.
[0078] like Figure 1CAs shown, the user interface 1200 includes an image 1101 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 image 1101 may have a title, such as "Landscape". The share button can be used to open the system sharing interface. The favorite button can be used to add the image 1101 to the image collection folder. The edit button can be used to perform editing functions such as rotating, cropping, adding filters, and blurring the image 1101. The delete button can be used to delete the image 1101. The more button can be used to open more image-related functions.
[0079] For example, such as Figure 1C As shown, the electronic device 100 can receive user input (e.g., click) on the edit button in the user interface 1200, and in response to the user's input, the electronic device 100 can display... Figure 1D The user interface 1300 shown allows users to edit image 1101.
[0080] like Figure 1D As shown, the user interface 1300 includes an image 1101, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, and an editing bar 1305. The editing bar 1304 includes multiple editing options, such as adjustment options, filter addition options, cropping and rotation options, and an eraser option. Currently, the adjustment option is selected. The multiple editing options shown in the editing bar 1305 are the editing options corresponding to the adjustment option. The editing bar 1305 also includes multiple editing options, such as brightness adjustment options, shadow addition options, sharpness adjustment options, highlight addition options, color temperature adjustment options, and background blur options. Users can slide the area of the editing bar 1305 to view more editing options.
[0081] For example, such as Figure 1D As shown, the electronic device 100 can receive user input (e.g., a click) regarding adding filter options to the user interface 1300, and in response to the user's input, the electronic device 100 can display... Figure 1E The user interface 1400 shown allows users to add filters to image 1101. The user interface 1400 includes an editing bar 1401, which displays multiple editing options corresponding to the filter options. The editing bar 1401 includes various editing options, such as adding or removing filters, adding a warm filter, and adding a relaxing filter. Users can slide the area of the editing bar 1401 to view more filter options.
[0082] For example, such as Figure 1EAs shown, the electronic device 100 can receive user input (e.g., a click) regarding the option to add a warm filter in the user interface 1400, and in response to the user's input, the electronic device 100 can display... Figure 1F The user interface 1500 is shown. User interface 1500 includes image 1501, which is an image obtained by adding a warm filter to image 1101. Then, electronic device 100 can receive user input (e.g., a click) on the save option 1302 in user interface 1500. In response to the user's input, electronic device 100 can save image 1501 and display it. Figure 1G The user interface 1600 shown is similar to user interface 1100, except that user interface 1600 also includes picture 1501.
[0083] In some embodiments, if the user is not satisfied with the edited result of image 1501, the user can re-edit image 1101 based on it.
[0084] refer to Figures 1B-1C As described in the embodiments, when the user needs to re-edit image 1101, the electronic device 100 can display... Figure 1D The user interface shown is 1300. (As shown...) Figure 1H As shown, the electronic device 100 can receive user input for the cropping and rotation options in the user interface 1300 and display... Figure 1I The user interface 1700 shown includes an image cropping frame 1701 and an image rotation option 1702. The user can adjust the size of the image cropping frame 1701 to resize the image 1101. The image rotation option 1702 includes a left rotation option and a right rotation option. The user can rotate the image 1101 90 degrees to the left using the left rotation option, and the user can also rotate the image 1101 90 degrees to the right using the right rotation option.
[0085] After the electronic device 100 crops the size of the image 1101 based on user operation, the electronic device 100 can display it. Figure 1J The user interface shown is 1800.
[0086] User interface 1800 includes image 1801, which is a cropped image obtained from image 1101. Then, electronic device 100 can receive user input (e.g., a click) regarding the save option 1302 in user interface 1800. In response to the user's input, electronic device 100 can save image 1801 and display it. Figure 1KThe user interface 1900 shown is similar to user interface 1600, except that user interface 1800 also includes picture 1701.
[0087] from Figure 1G and Figure 1K As can be seen, when a user adds a filter to the original image, they can save the image. If the user is not satisfied with the edited result, they only need to crop the original image. The user can only crop the original image and save the cropped image. The electronic device 100 not only stores the image with the added filter but also the image after cropping. This means that the electronic device 100 not only contains multiple similar images but also occupies its storage space.
[0088] Based on the above analysis, to improve image editing efficiency, the electronic device 100 can save the image editing history during the user's image editing process. This history can include one or more editing nodes, each of which can include the parameter information of the image processing algorithm used. Later, when the user re-edits the saved image, the electronic device 100 can display the image editing history and, based on the user's operation, revert to any editing node to perform the re-editing, thereby improving image editing efficiency.
[0089] Optionally, this application is not only applicable to re-editing images, but also to re-editing videos and audios. The specific implementation is similar to the process of re-editing images provided in the following embodiments of this application.
[0090] First, let me introduce one image editing scenario provided in this application.
[0091] 1. Perform one or more editing operations on an image and save the edited image and the image editing history.
[0092] In some embodiments, the electronic device 100 can perform one or more editing operations on an image in a gallery application. In other embodiments, the electronic device 100 can also perform one or more editing operations on an image in a photo editing application.
[0093] This application example illustrates the use of performing one or more editing operations on an image in a gallery application.
[0094] Figures 2A-2D , Figures 3A-3D This diagram illustrates an electronic device 100 performing editing operations on an image.
[0095] refer to Figures 1A-1E As described in the embodiments, the electronic device 100 can receive user operations to perform a filter addition operation on the image 1101.
[0096] For example, such as Figure 2A As shown, in response to the user performing an editing operation to add a warm filter to image 1101, electronic device 100 can display... Figure 2A The user interface 2100 shown includes image 1501, which is an image obtained by adding a warm filter to image 1101.
[0097] The user interface 2100 also displays an editing node 2101, with the text "Filter" displayed below the editing node 2101 to indicate that image 1501 is the image obtained after performing the filter addition operation.
[0098] In some embodiments, the text "Filter" may not be displayed below the edit node 2101.
[0099] The electronic device 100 also needs to save the editing history of image 1501. The editing history of image 1501 may include image processing algorithm parameter information one used by image 1501. This image processing algorithm parameter information one may include, but is not limited to, algorithm processing structure one and algorithm description information one. For example, algorithm processing structure one may include a filter algorithm, and algorithm description information one may include the description information of the filter 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, such as the parameter of the filter algorithm being "warm".
[0100] In some embodiments, the user can continue to perform other editing operations based on image 1501.
[0101] For example, users can add a watermark to image 1501.
[0102] For example, such as Figure 2A As shown, the electronic device 100 can receive user input (e.g., a click) for adjustment options in the user interface 2100, and in response to the user's input, the electronic device 100 can display... Figure 2B The user interface 2200 is shown. The user interface 2200 includes an editing bar 1304 and an editing bar 1305.
[0103] like Figure 2B As shown, the electronic device 100 can receive a user's swipe operation (e.g., a left swipe) on the editing bar 1304, and in response to the user's swipe operation, the electronic device 100 can display... Figure 2CThe user interface 2300 shown in the user interface 2300 has an editing bar 2301 similar to the editing bar 1305, except that the editing bar 2301 also includes an option to add a watermark, which allows the user to add a watermark to the image 1501.
[0104] For example, such as Figure 2D As shown, in response to adding text to image 1501, electronic device 100 can display... Figure 2D The user interface 2400 shown may include image 2401, which is obtained by adding the text "Good day" to image 1501.
[0105] The user interface 2400 also displays editing nodes 2101 and 2402. Editing node 2101 points to editing node 2402, which is used to indicate the execution order of different image editing algorithms. The text "Filter" is displayed below editing node 2101, and the text "Watermark" is displayed below editing node 2402, to indicate that image 2401 is the image obtained after performing the filter addition operation and the watermark addition operation.
[0106] In some embodiments, the text "watermark" may not be displayed below the edit node 2402.
[0107] The electronic device 100 also needs to save the editing history of image 2401. The editing history of image 2401 may include image processing algorithm parameter information two, which may include, but is not limited to, algorithm processing structure two and algorithm description information two. For example, algorithm processing structure two may include a filter-adding algorithm pointing to a watermark-adding algorithm. Algorithm description information two may include descriptions of the filter-adding algorithm and the watermark-adding algorithm. The filter-adding algorithm description may include, but is not limited to, the filter-adding algorithm's identifier or name, version, and parameters, such as "warm". The watermark-adding algorithm description may include, but is not limited to, the watermark-adding algorithm's identifier or name, version, and parameters, such as "Good day".
[0108] In some embodiments, the user can also continue to perform other editing operations based on image 2401.
[0109] For example, users can crop image 2401.
[0110] like Figure 3AAs shown, the electronic device 100 can receive user input for the cropping and rotation options in the user interface 2400 and display... Figure 3B The user interface 3100 shown includes an image cropping frame 1701 and an image rotation option 1702. The user can adjust the size of the image cropping frame 1701 to resize the image 2401. The image rotation option 1702 includes a left rotation option and a right rotation option. The user can rotate the image 2401 90 degrees to the left using the left rotation option, and the user can also rotate the image 2401 90 degrees to the right using the right rotation option.
[0111] After the electronic device 100 crops the image 2401 based on user operation, the electronic device 100 can display it. Figure 3C The user interface shown is 3200.
[0112] User interface 3200 includes image 3201, which is a cropped image obtained from image 2401. Then, electronic device 100 can receive user input (e.g., a click) regarding the save option 1302 in user interface 3200. In response to the user's input, electronic device 100 can save image 3201 and display it. Figure 3D The user interface 3300 shown is similar to the user interface 1600, except that the user interface 3300 also includes an image 3201, which is an image obtained by adding filters, adding watermarks and cropping on the basis of image 1101.
[0113] The user interface 3200 also displays editing nodes 2101, 2402, and 3202, which are used to indicate the execution order of different image editing algorithms. The text "Filter" is displayed below editing node 2101, the text "Watermark" is displayed below editing node 2402, and the text "Crop" is displayed below editing node 3202, to indicate that image 3201 is the image obtained after performing the operations of adding filters, adding watermarks, and cropping.
[0114] In some embodiments, the text "Crop" may not be displayed below the edit node 3202.
[0115] The electronic device 100 also needs to save the editing history of image 3201. The editing history of image 3201 may include image processing algorithm parameter information three, which may include, but is not limited to, algorithm processing structure three and algorithm description information three. For example, algorithm processing structure three may include a filter-adding algorithm pointing to a watermark-adding algorithm, and a watermark-adding algorithm pointing to a cropping algorithm. Algorithm description information three may include descriptions of the filter-adding algorithm, the watermark-adding algorithm, and the cropping algorithm. The filter-adding algorithm description may include, but is not limited to, the filter-adding algorithm's identifier or name, version, and parameters, such as "warm". The watermark-adding algorithm description may include, but is not limited to, the watermark-adding algorithm's identifier or name, version, and parameters, such as "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, the parameters of the cropping algorithm, such as the cropping frame size.
[0116] In addition to adding filters, watermarks, and cropping operations to image 1101, electronic device 100 can also perform other editing operations on image 1101 based on user operations, and this application does not limit this.
[0117] Figure 4A This is a flowchart illustrating an image editing method provided in this application.
[0118] S401, Electronic device 100 displays a first image editing interface, which includes a first image and multiple image editing options.
[0119] The first image editing interface can be an image editing interface in a gallery application, or it can be an image editing interface in a Meitu application; this application does not limit it in this regard.
[0120] This application embodiment uses the example of an image editing interface in a gallery application as the first image editing interface for illustration.
[0121] Users can edit or enhance the first image through multiple image editing options. Editing or enhancing the image can include adding filters, text, stickers, effects, cropping and rotating, adjusting image information, and changing the background. Adjusting image information includes, but is not limited to, adjusting one or more of the following: brightness, contrast, saturation, sharpness, color temperature, highlights, and shadows.
[0122] For example, the first image editing interface can be Figure 1D The user interface shown is 1300.
[0123] The first image could be Figure 1D The image shown is 1101.
[0124] Image editing options may include, but are not limited to: Figure 1D The editing options shown in editing bar 1304 and editing bar 1305 are as follows.
[0125] S402, Electronic device 100 receives the user's operation on the first editing option among multiple image editing options, and displays a second image editing interface. The second image editing interface includes a second image, which is obtained by applying the first editing algorithm to the first image.
[0126] For example, the first editing option could be Figure 1E The option to add a warm filter is shown. The first editing algorithm can be the warm filter algorithm.
[0127] The operation for the first editing option among multiple image editing options can be... Figure 1E The input action shown is (e.g., clicking) for adding the warm filter option in user interface 1400.
[0128] The second image editing interface can be Figure 2A The user interface 2100 shown is shown.
[0129] The second image could be Figure 2A The image shown is 1501.
[0130] S403, Electronic device 100 generates a first image editing record, the first image editing record including a first algorithm structure and first description information.
[0131] In response to a user's operation on the first image editing option among multiple image editing options, the electronic device 100 generates a first image editing record, which includes a first algorithm structure and first descriptive information.
[0132] The first algorithm structure is used to indicate the type of image editing algorithm used in the second image and the order in which the image editing algorithms are used in the second image.
[0133] For example, the first algorithm structure can be Figure 4B The algorithm structure shown in (a) is as follows. The algorithm for adding a warm filter can be the root node of the first algorithm structure.
[0134] The first descriptive information is used to indicate the description of the first editing algorithm used for the second image.
[0135] For example, the first editing algorithm can be a filter algorithm. The description information of the filter algorithm can 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 can be "warm".
[0136] In some embodiments, after the electronic device 100 generates an image editing record, in order to save 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.
[0137] In some embodiments, the electronic device 100 may store image editing records based on a preset file format. For example, in this application embodiment, the preset file format may be referred to as the TBP file format.
[0138] Table 1
[0139]
[0140] Table 1 shows the composition structure of the TBP file format.
[0141] As shown in Table 1, the TBP file format includes, but is not limited to, SOI segments, one or more TBP-APP segments, one or more GPH segments, EOI segments, etc.
[0142] The SOI segment is used to fill in CA FE, and the SOI segment is used to indicate the beginning of the image.
[0143] One or more TBP-APP segments may include, but are not limited to, TBP-APP0, TBP-APP1, and TBP-APP2 segments. TBP-APP0 segment is used to fill in the original metadata of the image; TBP-APP0 segment represents image information describing the original image. TBP-APP1 segment is used to fill in the storage address of the compressed original image; TBP-APP1 segment represents the storage address of the original image before any editing operations were performed. TBP-APP2 segment is used to fill in the updated metadata of the image; TBP-APP2 segment represents 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 image editing algorithm structure table, and it indicates the execution order of the image editing algorithms that have been executed. GPH1 is used to fill in image editing algorithm A, and it represents the identifier of image editing algorithm A. GPH2 is used to fill in image editing algorithm B, and it represents the identifier of image editing algorithm B. GPH3 is used to fill in image editing algorithm C, and it represents the identifier of image editing algorithm C. GPH4 is used to fill in the storage address of the compressed and updated image, and it represents the storage address of the original image for which editing operations have been performed.
[0145] The EOI field is used to fill in CA FD, and the EOI field is used to indicate the end of the image.
[0146] It should be noted that, depending on the type of image editing algorithm used, the number of GPH segments may vary, and this application does not limit the number of GPH segments.
[0147] In some embodiments, the data structure of the TBP file format may include more or fewer fields than those in Table 1, and this application does not limit this.
[0148] For example, refer to Figures 1D-1F As described in the embodiment, when the electronic device 100 adds a "warm" filter to the image 1101 based on user operation, the electronic device 100 can record the identifier of the algorithm for adding the "warm" filter in the GPH1 segment of Table 1.
[0149] For example, refer to Figures 2C-2D As described in the embodiment, when the electronic device 100 adds the text watermark "Good day" to the image 1501 based on user operation, the electronic device 100 can record the identifier of adding the "Good day" text watermark in the GPH2 segment of Table 1.
[0150] For example, refer to Figures 3A-3C As described in the embodiment, after the electronic device 100 crops the image 2401 based on user operation, the electronic device 100 can record the identifier of the cropping algorithm in the GPH3 segment of Table 1.
[0151] In some embodiments, the image editing algorithm structure table in the TBP file format can be represented as the data structure shown in Table 2.
[0152] Table 2
[0153]
[0154] Table 2 illustrates the data structure of the edit algorithm structure table.
[0155] As shown in Table 2, this data structure may include multiple fields, such as the SOT0 segment, the SOT1 segment, the CPS segment, one or more GPI segments, and the EOT segment.
[0156] The SOT0 section is used to fill in CA FO, where CA FO represents the beginning of the image editing algorithm structure.
[0157] 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.
[0158] The CPS segment is used to fill in compression bit flags and indicates the compression algorithm type and whether the image is compressed.
[0159] One or more GPI segments may include, but are not limited to, GPI0, GPI1, GPI2, and GPI3. GPI0 is used to fill in the node graph structure of the image editing algorithms. GPI0 can be represented as Image Editing Algorithm A -> Image Editing Algorithm B -> Image Editing Algorithm C, indicating that the image sequentially used Image Editing Algorithm A, Image Editing Algorithm B, and Image Editing Algorithm C. GPI1 is used to fill in the fat pointer of the Image Editing Algorithm A data structure, representing the offset position and length of Image Editing Algorithm A. GPI2 is used to fill in the fat pointer of the Image Editing Algorithm B data structure, representing the offset position and length of Image Editing Algorithm B. GPI3 is used to fill in the fat pointer of the Image Editing Algorithm C data structure, representing the offset position and length of Image Editing Algorithm C.
[0160] The EOT section is used to fill in CA F1, where CA F1 indicates the end of the image editing algorithm structure.
[0161] It should be noted that, depending on the type of image editing algorithm used, the number of GPI segments may vary, and this application does not limit the number of GPH segments.
[0162] In some embodiments, the data structure of the image editing algorithm structure table may include more or fewer fields than Table 2, and this application does not limit this.
[0163] For example, refer to Figures 1D-1F As described in the embodiment, when the electronic device 100 adds a "warm" filter to the image 1101 based on user operation, the electronic device 100 can record the pointer of the description information of the algorithm for adding the "warm" filter in the GPI1 segment of Table 2.
[0164] For example, refer to Figures 2C-2DAs described in the embodiment, when the electronic device 100 adds the text watermark "Good day" to the image 1501 based on user operation, the electronic device 100 can record the pointer of the description information of the algorithm for adding the "Good day" text in the GPI2 segment of Table 2.
[0165] For example, refer to Figures 3A-3C As described in the embodiment, after the electronic device 100 crops the image 2401 based on user operation, the electronic device 100 can record the pointer of the description information of the cropping algorithm in the GPH3 segment of Table 2.
[0166] In some embodiments, the image editing algorithm data structure fat pointer in the image editing algorithm structure table can be represented as the data structure shown in Table 3.
[0167] Table 3
[0168]
[0169] Table 3 provides an example of the data structure for the fat pointer in the image editing algorithm.
[0170] As shown in Table 3, this data structure can 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.
[0171] The SOA section is used to fill in CA F2, where CA F2 indicates the beginning of the image editing algorithm packaging structure.
[0172] The VER field is used to specify the image editing algorithm version and algorithm type. The VER field indicates the image editing algorithm version and algorithm type. The algorithm type can include deterministic or non-deterministic algorithms.
[0173] The STR field is used to fill in the image editing algorithm name; the STR field represents the image editing algorithm name.
[0174] The TPE field is used to fill in the image format of the input parameters for the image editing algorithm. The TPE field indicates the data type of the input parameters for the image editing algorithm.
[0175] The PAR section is used to fill in the input parameter group of the image editing algorithm. The PAR section represents the image editing algorithm parameters.
[0176] For example, refer to Figures 1D-1FAs described in the embodiments, when the electronic device 100 adds a "warm" filter to the image 1101 based on user operation, the electronic device 100 can record the description information of the "warm" filter addition algorithm in multiple segments of Table 3. For example, the electronic device 100 can record the parameter "warm" of the "warm" filter addition algorithm in the PAR segment of Table 3.
[0177] For example, refer to Figures 2C-2D As described in the embodiment, after the electronic device 100 adds the text watermark "Good day" to the image 1501 based on user operation, the electronic device 100 can 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 can record the parameter "Good day" of the algorithm for adding the "Good day" text in the PAR segment of Table 3.
[0178] For example, refer to Figures 3A-3C As described in the embodiments, after the electronic device 100 crops the image 2401 based on user operations, the electronic device 100 can record the description information of the cropping algorithm in multiple segments of Table 3. For example, the electronic device 100 can record the parameter "cropping frame size" of the cropping algorithm in the PAR segment of Table 3. The AVR segment is used to fill in the image editing algorithm version code, where AVR segment represents the image editing algorithm version.
[0179] The VDR field is used to specify the image editing algorithm provider; the VDR field represents the image editing algorithm provider.
[0180] The ADR segment is used to specify the length of the image editing algorithm data file segment. The ADR segment indicates the length of the image editing algorithm data file segment.
[0181] The CPX section is used to specify the complexity of the image editing algorithm. The CPX section represents the complexity of the image editing algorithm.
[0182] The FIL segment is used to specify the storage location of the image editing algorithm input parameter data file. The FIL segment indicates the storage location of the image editing algorithm input parameter data file.
[0183] The EOA section is used to fill in CA F3, which indicates the end of the image editing algorithm packaging structure.
[0184] In some embodiments, the data structure of the fat pointer in the image editing algorithm data structure may not include the VDR segment, ADR segment, CPX segment, and FIL segment.
[0185] In some embodiments, the data structure of the image editing algorithm data structure fat pointer may also include more or fewer fields than Table 3, and this application does not limit this.
[0186] S404, Electronic device 100 receives the user's operation on the second editing option among multiple image editing options in the second image editing interface, and displays a third image editing interface, which includes a third image, which is obtained by using the second editing algorithm based on the second image.
[0187] For example, the second editing option could be Figure 2C The options for adding a watermark are shown. The second editing algorithm can be a watermarking algorithm.
[0188] The operation for the second editing option among multiple image editing options can be... Figure 2C The input action shown is (e.g., clicking) for adding a watermark option in the user interface 2300.
[0189] The third image editing interface can be Figure 2D The user interface shown is 2400.
[0190] The third image could be Figure 2D The image shown is 2401.
[0191] S405, Electronic device 100 generates a second image editing record, which includes a second algorithm structure and second descriptive information.
[0192] In response to a user's operation on the second editing option among multiple image editing options, the electronic device 100 generates a second image editing record, which includes a second algorithm structure and second descriptive information.
[0193] The second algorithm structure is used to indicate the type of image editing algorithm used in the third image and the order in which the image editing algorithms are used in the third image.
[0194] For example, the second algorithm structure can be Figure 4B The algorithm structure is shown in (b) above. The watermarking algorithm can be a child node of the warm filter algorithm.
[0195] The second descriptive information is used to indicate the descriptive information of the first editing algorithm and the descriptive information of the second editing algorithm used for the third image.
[0196] For example, the first editing algorithm may be a filter addition algorithm. 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 "warm".
[0197] For example, the second editing algorithm can be a watermarking algorithm. The description information of the second editing algorithm can 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 can be "Good day".
[0198] Optionally, electronic device 100 may also choose not to execute S404-S405.
[0199] S406, Electronic device 100 receives the user's operation on the third editing option among multiple image editing options in the third image editing interface, and displays a fourth image editing interface, which includes a fourth image, which is obtained by using the third editing algorithm based on the third image.
[0200] For example, the third editing option could be Figure 3A The cropping and rotation options are shown. The third editing algorithm can be a cropping algorithm.
[0201] The operation for the third editing option among multiple image editing options can be... Figure 3A The input action shown is (e.g., a click) for the crop rotation option in user interface 2400.
[0202] The fourth image editing interface can be Figure 3C The user interface shown is 3200.
[0203] The fourth image could be Figure 3C The image shown is 3201.
[0204] S407, Electronic device 100 generates a third image editing record, which includes a third algorithm structure and third description information.
[0205] In response to a user's action on the third editing option among multiple image editing options, the electronic device 100 generates a third image editing record, which includes a third algorithm structure and third descriptive information.
[0206] The third algorithm structure is used to indicate the type of image editing algorithm used in the fourth image and the order in which the image editing algorithms are used in the fourth image.
[0207] For example, the fourth algorithm structure could be Figure 4B The algorithm structure is shown in (c). The cropping algorithm can be a child node of the watermarking algorithm, and the watermarking algorithm can be a child node of the warm filter algorithm.
[0208] The third descriptive information is used to indicate the descriptive information of the first editing algorithm, the second editing algorithm, and the third editing algorithm used in the fourth image.
[0209] For example, the first editing algorithm may be a filter addition algorithm. 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 "warm".
[0210] For example, the second editing algorithm can be a watermarking algorithm. The description information of the second editing algorithm can 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 can be "Good day".
[0211] For example, the third editing algorithm can be a cropping algorithm. The description information of the cropping algorithm can 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 can be the cropping box size.
[0212] Optionally, electronic device 100 may also choose not to execute S406-S407.
[0213] S408, Electronic device 100 receives user input for the save option in the fourth image editing interface, and saves the editing records of the fourth image and the third image.
[0214] For example, the save option could be Figure 3C The save option 1302 is shown. The user's input operation for the save option in the fourth image editing interface can be the user's input operation for the save option 1302 in the user interface 3200 (e.g., clicking).
[0215] In response to the user's input of the save option in the fourth image editing interface, the electronic device 100 can save the editing records of the fourth image and the third image.
[0216] 2. Re-edit the edited image and save the re-edited image.
[0217] After saving image 3201 on electronic device 100, electronic device 100 can simultaneously save the image editing record corresponding to image 3201. This image editing record may include the image editing algorithm structure and algorithm description information corresponding to 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, electronic device 100 can display the image editing algorithm structure corresponding to image 3201 and, based on the user's operation, revert to any editing node to re-edit the image, thereby improving image editing efficiency.
[0218] Figures 5A-5S A schematic diagram of an electronic device 100 re-editing image 3201 based on user operation is shown.
[0219] refer to Figures 3C-3D As described in the embodiments, after the electronic device 100 saves the edited image 3201 based on user operation, the electronic device 100 can display... Figure 3D The user interface 3300 shown includes an image 3201, which is an image obtained by sequentially adding filters, adding watermarks, and cropping based on the image 1101.
[0220] For example, such as Figure 5A As shown, the electronic device 100 can receive user input (e.g., click) on the image 3201 in the user interface 3300, and in response to the user's input, the electronic device 100 can display... Figure 5B The user interface 5100 shown includes an image 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.
[0221] When a user needs to re-edit image 3201, such as Figure 5B As shown, the electronic device 100 can receive user input (e.g., click) on the edit button in the menu 1201, and in response to the user's input, the electronic device 100 can display... Figure 5C The user interface 5200 shown includes an image 3201, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5201. The re-edit option 5201 includes multiple editing nodes, such as editing node 2101, editing node 2402, and editing node 3202. Editing node 2101 points to editing node 2402, editing node 2402 points to editing node 3202, editing node 2101 is the root node, and editing node 2402 is a child node of editing node 2101 and editing node 3202.
[0222] The electronic device 100 can revert the editing effect of the image 3201 to the editing effect corresponding to the user-selected editing node based on the user's input operation on any editing node in the re-editing option 5201.
[0223] In some embodiments, the user can revert image 3201 to the editing effect corresponding to editing node 2402.
[0224] For example, such as Figure 5CAs shown, the electronic device 100 can receive user input (e.g., click) on the edit node 2402 in the re-edit option 5201. In response to the user's input, the electronic device 100 can revert the image 3201 to the edit effect corresponding to the edit node 2402.
[0225] Specifically, the electronic device 100 can obtain the original image corresponding to image 3201, such as image 1101, and obtain the algorithm description information one corresponding to editing node 2101 and the algorithm description information two corresponding to editing node 2402. Then, it can edit image 1101 sequentially through the algorithm description information one and the algorithm description information two to obtain image 2401.
[0226] In response to acquiring image 2401, electronic device 100 also needs to generate an editing record for image 2401. This editing record may include image processing algorithm parameter information two, which may include, but is not limited to, algorithm processing structure two and algorithm description information two. For example, algorithm processing structure two may include a filter-adding algorithm pointing to a watermark-adding algorithm. Algorithm description information two may include descriptions of both the filter-adding and watermark-adding algorithms. The filter-adding algorithm description may include, but is not limited to, the filter-adding algorithm's identifier or name, version, and parameters, such as "warmth." The watermark-adding algorithm description may include, but is not limited to, the watermark-adding algorithm's identifier or name, version, and parameters, such as "Goodday."
[0227] In response to receiving image 2401, electronic device 100 can display it. Figure 5D The user interface 5300 shown may include image 2401, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5301. The re-edit option 5301 corresponds to algorithm processing structure two and includes multiple editing nodes, such as editing node 2101 and editing node 2402. Editing node 2101 points to editing node 2402, and editing node 2402 is a child node of editing node 2101. The multiple editing nodes in the re-edit option 5301 are used to indicate the image editing algorithm used by image 2401.
[0228] like Figure 5DAs shown, the electronic device 100 can receive user input (e.g., a click) on the save option 1302 in the user interface 5300. In response to the user's input, the electronic device 100 can save the image 2401 and display it. Figure 5E The user interface 5400 is shown. User interface 5400 is similar to user interface 3300, except that user interface 5400 also includes image 2401, but does not include image 3201. Image 2401 is an image obtained by adding filters and watermarks to image 1101 in sequence.
[0229] In response to saving image 2401, electronic device 100 also needs to save the editing history of image 2401.
[0230] In some embodiments, the user can revert image 3201 to the editing effect corresponding to editing node 2101.
[0231] For example, such as Figure 5F As shown, the electronic device 100 can receive user input (e.g., click) on the edit node 2101 in the re-edit option 5201. In response to the user's input, the electronic device 100 can revert the image 3201 to the editing effect corresponding to the edit node 2101.
[0232] Specifically, the electronic device 100 can obtain the original image corresponding to image 3201, such as image 1101, and obtain the algorithm description information corresponding to the editing node 2101. Then, it can edit image 1101 using the algorithm description information to obtain image 1501.
[0233] In response to acquiring image 1501, electronic device 100 also needs to generate an editing record for image 1501. The editing record for image 1501 may include image processing algorithm parameter information one used by image 1501. This image processing algorithm parameter information one may include, but is not limited to, an algorithm processing structure one and an algorithm description one. For example, the algorithm processing structure one may include a filter algorithm, and the algorithm description information one may include the description information of the filter 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, such as the parameter of the filter algorithm being "warm".
[0234] In response to receiving image 1501, electronic device 100 can display it. Figure 5GThe user interface 5500 shown may include an image 1501, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5501. The re-edit option 5501 includes an edit node, such as edit node 2101. An edit node in the re-edit option 5501 indicates the image editing algorithm used for image 1501.
[0235] like Figure 5G As shown, the electronic device 100 can receive user input (e.g., a click) at the save option 1302 in the user interface 5500. In response to the user's input, the electronic device 100 can save the image 1501 and display it. Figure 5H The user interface 5600 is shown. 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.
[0236] In response to saving image 1501, electronic device 100 also needs to save the editing history of image 1501.
[0237] In some embodiments, the user can also re-edit the image 3201 to restore the original display effect of the image 3201.
[0238] For example, refer to Figures 5A-5B As described in the embodiments, in response to a user's input operation (e.g., clicking) on the edit button, the electronic device 100 can display... Figure 5I The user interface 5700 is shown. User interface 5700 includes image 3201, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5701. The re-edit option 5701 includes multiple editing nodes, such as editing node 5702, editing node 2101, editing node 2402, and editing node 3202. 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 a child node of editing node 5702, editing node 2402 is a child node of editing node 2101, and editing node 3202 is a child node of editing node 2402.
[0239] Optionally, the text "Original Image" can be displayed below edit node 5702. Optionally, the image display effect under this editing operation can also be displayed below the edit node, or the text can be left undisplayed below the edit node.
[0240] For example, such as Figure 5I As shown, the electronic device 100 can receive user input operations (e.g., clicks) 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.
[0241] Specifically, electronic device 100 can obtain the original image corresponding to image 3201, such as image 1101, and obtain the algorithm description information corresponding to editing node 5702. Editing node 5702 corresponds to the original image, and electronic device 100 can directly obtain image 1101.
[0242] In response to image acquisition 1501, electronic device 100 can display... Figure 5J The user interface 5800 shown includes image 1101, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5801. The re-edit option 5801 includes an editing node, such as editing node 5702. One editing node in the re-edit option 5801 indicates that image 1101 is the original image.
[0243] like Figure 5J As shown, the electronic device 100 can receive user input (e.g., click) on the save option 1302 in the user interface 5800, and in response to the user's input, the electronic device 100 can save the image 1101.
[0244] Optionally, if an image 1101 is already saved in the gallery application, the electronic device 100 can display it after receiving input from the user regarding the save option 1302 in the user interface 5800. Figure 5K The prompt message 5802 shown includes the text "The same image is saved in the gallery. Do you want to continue saving the image?". Prompt message 5802 is used to prompt the user to confirm whether to save the image.
[0245] In one possible implementation, such as Figure 5K As shown, the electronic device 100 can receive user input (e.g., a click) regarding the option in the prompt information 5802, and in response to the user's input, the electronic device 100 can display... Figure 5L The user interface shown is 5900. (As shown...) Figure 5LAs shown, electronic device 100 stores two images 1101.
[0246] In other possible implementations, such as Figure 5M As shown, the electronic device 100 can receive user input (e.g., a click) for the "No" option in the prompt message 5802, and in response to the user's input, the electronic device 100 can display... Figure 5N The user interface shown is 5910. (As shown...) Figure 5N As shown, the electronic device 100 only stores one image 1101.
[0247] In some embodiments, the user can also re-edit image 3201, allowing image 3201 to arbitrarily revert to multiple edit nodes selected by the user. These multiple edit nodes can be adjacent or non-adjacent edit nodes.
[0248] For example, refer to Figures 5A-5B As described in the embodiments, in response to a user's input operation (e.g., clicking) on the edit button, the electronic device 100 can display... Figure 5O The user interface 5950 is shown. User interface 5950 includes image 3201, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5951. The re-edit option 5951 includes multiple editing nodes, such as editing node 2101, editing node 2402, and editing node 3202. The re-edit option 5951 also includes multiple editing node options. 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 root node, editing node 2402 is a child node of editing node 2101, and editing node 3202 is a child node of editing node 2402.
[0249] Users can select any one or more editing options from multiple editing node options, so that image 3201 can be reverted to the image editing effect corresponding to any one or more editing options selected by the user.
[0250] For example, such as Figure 5P As shown, the electronic device 100 can receive user input operations (e.g., clicks) 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.
[0251] like Figure 5OAs shown, the electronic device 100 can receive user input (e.g., a click) on the edit node option corresponding to edit node 2101 in the re-edit option 5951. In response to the user's input, the electronic device 100 can select the edit node 2101, such as... Figure 5P As shown.
[0252] like Figure 5P As shown, the electronic device 100 can receive user input (e.g., a click) on the edit node option corresponding to edit node 3202 in the re-edit option 5951. In response to the user's input, the electronic device 100 can select edit node 3202, such as... Figure 5Q As shown.
[0253] like Figure 5Q As shown, the electronic device 100 can receive user input operations for the "Continue" option in the re-editing option 5951, such as a click operation. In response to the user's input operation, the electronic device 100 can obtain the original image corresponding to image 3201, such as image 1101, and obtain the algorithm description information one corresponding to the editing node 2101. Then, it edits image 1101 using the algorithm description information one to obtain image 1501. Afterwards, the electronic device 100 obtains the algorithm description information three corresponding to the editing node 3202, and edits image 1501 using the algorithm description information three to obtain... Figure 5R Image 5981 is shown.
[0254] In response to receiving image 5981, electronic device 100 can display it. Figure 5R The user interface 5980 shown includes an image 5981, a return option 1301, a delete option 1303, a save option 1302, an editing bar 1304, an editing bar 1305, and a re-edit option 5982. The re-edit option 5982 includes two editing nodes, such as editing node 2101 and editing node 3202. These two editing nodes in the re-edit option 5982 indicate the image editing algorithm used for image 5981.
[0255] In response to acquiring image 5981, electronic device 100 also needs to generate an editing record for image 5981. The editing record for image 5981 may include image processing algorithm parameter information four, which may include, but is not limited to, algorithm processing structure four and algorithm description information four. For example, algorithm processing structure four may include filter algorithms and cropping algorithms. Algorithm description information four may include descriptions of filter algorithms and cropping algorithms. The description of filter algorithms 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, such as the parameter "warm". The description of cropping algorithms may include, but is not limited to, the identifier or name of the cropping algorithm, the version of the cropping algorithm, and the parameters of the cropping algorithm, such as the parameter of the cropping algorithm being the cropping frame size.
[0256] like Figure 5R As shown, the electronic device 100 can receive user input (e.g., a click) at the save option 1302 in the user interface 5980. In response to the user's input, the electronic device 100 can save the image 5981 and display it. Figure 5S The user interface 5990 is shown. 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 an image obtained by adding filters and cropping algorithms to image 1101.
[0257] Figure 6 This is a flowchart illustrating a method for re-editing an image provided in this application.
[0258] S601, Electronic device 100 displays a gallery interface, which includes a fourth image.
[0259] For example, the image interface can be Figure 5A The user interface shown is 3300 or Figure 5B The user interface shown is 5100.
[0260] For example, the fourth image could be Figure 5A or Figure 5B The image shown is 3201.
[0261] S602, Electronic device 100 receives an editing operation for the fourth image and displays a fourth image editing interface. The fourth image editing interface includes the fourth image and a first-level editing option, which includes multiple editing nodes.
[0262] For example, a user's editing operation on the fourth image could be... Figure 5BThe input operation shown is for the edit button in the user interface 5100, such as a single operation.
[0263] For example, the fourth image editing interface can be Figure 5C or Figure 5F The user interface shown is 5200.
[0264] For example, the fourth image could be Figure 5C or Figure 5F The image shown is 3201.
[0265] For example, the first editing option could be Figure 5C or Figure 5F The re-editing option 5201 is shown.
[0266] For example, multiple edit nodes can be Figure 5C or Figure 5F The edit nodes 2101, 2402, and 3202 in the re-edit option 5201 shown.
[0267] In some embodiments, in response to a user receiving an editing operation on a fourth image, the electronic device 100 may acquire the editing history of the fourth image before displaying the fourth image editing interface. The editing history of the fourth image may include, but is not limited to, the algorithm processing structure three and the algorithm description information three. The electronic device 100 may display a first level of editing options based on the algorithm processing structure three.
[0268] The fourth image editing operation can include the image processing algorithm parameter information three used by image 3201. This third image processing algorithm parameter information can include, but is not limited to, the algorithm processing structure three and the algorithm description information three. For example, the algorithm processing structure three can include a filter-adding algorithm pointing to a watermark-adding algorithm, and a watermark-adding algorithm pointing to a cropping algorithm. The algorithm description information three can include descriptions of the filter-adding algorithm, the watermark-adding algorithm, and the cropping algorithm. The filter-adding algorithm description information can include, but is not limited to, the filter algorithm's identifier or name, version, and parameters, for example, the filter algorithm parameter could be "warm". The watermark-adding algorithm description information can include, but is not limited to, the watermark algorithm's identifier or name, version, and parameters, for example, the watermark algorithm parameter could be "Good day". The cropping algorithm description information can include, but is not limited to, the watermark algorithm's identifier or name, version, and parameters, for example, the cropping algorithm parameter could be the cropping frame size.
[0269] S603, the electronic device 100 receives an operation on the first editing node among multiple editing nodes and displays a third image editing interface or a second image editing interface. The third image editing interface includes a third image and a second editing option, or the second image editing interface includes a second image and a third editing option.
[0270] The first edit node can be any edit node in the first edit option.
[0271] For example, the first edit node could be Figure 5C or Figure 5F The edit node 2101 or edit node 2402 shown.
[0272] The first edit node is Figure 5C In the case of edit node 2402 shown, the electronic device 100 receives an operation for the first edit node among a plurality of edit nodes, which may be Figure 5C The user input action shown is for editing node 2402, such as clicking. The third image editing interface can be... Figure 5D The user interface 5300 shown, the third image could be... Figure 5D The second editing option for image 2401 shown is... Figure 5D The re-editing option 5301 is shown.
[0273] For example, in response to an operation on the first editing node among multiple editing nodes, the electronic device 100 can acquire the editing history of image 3201, and based on the editing history of image 3201, sequentially apply an algorithm to add a "warm" filter and an algorithm to add a "Good day" text watermark to image 1101 to obtain... Figure 5D The image shown is 2401.
[0274] For example, electronic device 100 can obtain the editing history of image 3201, which can be stored as 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. Next, electronic device 100 can obtain the third algorithm structure of image 3201 from the GPI0 segment in Table 2, and obtain the identifiers of the filter addition algorithm and watermarking algorithm corresponding to edit node 2101 based on edit node 2402. Then, based on the filter addition algorithm identifier, it obtains the fat pointer of the filter addition algorithm data structure from the GPI1 segment in Table 2, and the fat pointer of the watermarking algorithm data structure from the GPI2 segment in Table 2. Subsequently, the electronic device 100 can obtain the parameters of the filter-adding algorithm from the PAR segment of Table 3 based on the fat pointer of the data structure for the filter-adding algorithm, and obtain the parameters of the watermarking algorithm from the PAR segment of Table 3 based on the fat pointer of the data structure for the watermarking algorithm. Finally, the electronic device 100 can edit image 1101 based on the parameters of the filter-adding algorithm and the watermarking algorithm to obtain image 2401. In some embodiments, in response to obtaining image 2401, the electronic device 100 also needs to generate an editing record for image 2401. The editing record for image 2401 can also be stored as the data structure shown in Tables 1, 2, and 3. The editing record for image 2401 may include image processing algorithm parameter information two, which may include, but is not limited to, algorithm processing structure two and algorithm description information two. For example, algorithm processing structure two can include a filter-adding algorithm pointing to a watermark-adding algorithm. Algorithm description information two can include descriptions of both the filter-adding and watermark-adding algorithms. The filter-adding algorithm description can include, but is not limited to, its identifier or name, version, and parameters; for example, the filter-adding algorithm parameter could be "warm." The watermark-adding algorithm description can include, but is not limited to, its identifier or name, version, and parameters; for example, the watermark-adding algorithm parameter could be "Good day."
[0275] In some embodiments, in response to an operation on editing node 2402 among multiple editing nodes, electronic device 100 can send image 3201 and its editing record to a server. The server can then re-edit image 1101 based on image 1101 and editing node 2402, sequentially using the filter addition algorithm and watermark addition algorithm recorded in the editing record of image 3201, to obtain image 2401.
[0276] The server also needs to generate an editing record for image 2401 and send image 2401 and its editing record to electronic device 100 so that electronic device 100 can save the editing record of image 2401.
[0277] The first edit node is Figure 5F In the case of the edit node 2101 shown, the electronic device 100 receives an operation for the first edit node among a plurality of edit nodes, which may be Figure 5F The user input action shown is for editing node 2101, such as clicking. The second image editing interface can be... Figure 5G The user interface shown is 5500, and the second image could be... Figure 5G The third editing option shown in image 1501 is... Figure 5G The re-edit option 5501 is shown.
[0278] For example, in response to an operation on the first edit node among multiple edit nodes, the electronic device 100 can acquire the editing history of image 3201, and based on the editing history of image 3201, sequentially apply a "warm" filter algorithm to image 1101 to obtain... Figure 5G The image shown is 1501.
[0279] For example, electronic device 100 can obtain the editing history of image 3201, which can be stored as 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. Next, 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 filter addition algorithm corresponding to edit node 2101 based on the edit node 2101. Then, based on the identifier of the filter addition algorithm, electronic device 100 can obtain the fat pointer of the filter addition algorithm's data structure from the GPI1 segment in Table 2. Next, electronic device 100 can obtain the parameters of the filter addition algorithm from the PAR segment in Table 3 based on the fat pointer of the filter addition algorithm's data structure. Finally, electronic device 100 can edit image 1101 based on the parameters of the filter addition algorithm to obtain image 1501. In some embodiments, in response to acquiring image 1501, electronic device 100 also needs to generate an editing record for image 1501. The editing record for image 2401 can also be stored as a data structure as shown in Tables 1, 2, and 3. The editing record for image 1501 may include image processing algorithm parameter information one used by image 1501. The image processing algorithm parameter information one may include, but is not limited to, an algorithm processing structure one and an algorithm description information one. For example, the algorithm processing structure one may include a filter algorithm, and the algorithm description information one may include the description information of the filter 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 parameter of the filter algorithm may be "warm".
[0280] In some embodiments, in response to an operation on editing node 2101 among multiple editing nodes, electronic device 100 can send image 3201 and its editing record to a server. The server can then re-edit image 1101 based on image 1101 and editing node 2101, sequentially applying the filter addition algorithm recorded in the editing record of image 3201 to obtain image 1501.
[0281] The server also needs to generate an editing record for image 1501 and send image 1501 and its editing record to electronic device 100 so that electronic device 100 can save image 1501 and its editing record.
[0282] S604, Electronic device 100 receives a user operation to save a third image or a second image, and saves the third image and its editing history, or the second image and its editing history.
[0283] In some embodiments, the editing records of the third image or the second image may also be stored as the data structures shown in Tables 1, 2 and 3.
[0284] In some embodiments, after the electronic device 100 generates the third image, the electronic device 100 may receive user operations to save the third image and the editing history of the third image.
[0285] For example, the user action of saving a third image could be... Figure 5D The input action shown for save option 1302 is, for example, clicking.
[0286] In some embodiments, after the electronic device 100 saves the third image and the editing history of the third image, the electronic device 100 may display... Figure 5E The user interface 5400 shown includes a third picture (picture 2401).
[0287] In other embodiments, after the electronic device 100 generates the second image, the electronic device 100 can receive user operations to save the second image and the editing history of the second image.
[0288] For example, the user action of saving the second image could be... Figure 5G The input action shown for save option 1302 is, for example, clicking.
[0289] In some embodiments, after the electronic device 100 saves the second image and the editing history of the second image, the electronic device 100 may display... Figure 5H The user interface 5600 shown includes a second picture (picture 1501).
[0290] In some embodiments, if the electronic device 100 receives a user's operation to open an image in the gallery application within the Meitu application and edit the image in the gallery application within the Meitu application, since the Meitu application and the gallery application are not the same application and their image editing algorithms differ, the electronic device 100 cannot re-edit the image in the gallery application within the Meitu application. Therefore, the electronic device 100 may not display the first editing option.
[0291] In some embodiments, if the electronic device 100 receives a user operation to open an image in the gallery application within the Meitu application and edit the image in the gallery application within the Meitu application, and if the image editing algorithms of the Meitu application and the gallery application share the same algorithm, or if the Meitu application can call the image editing algorithm in the gallery application, the electronic device 100 can also re-edit the image in the gallery application within the Meitu application, then the electronic device 100 can display the first editing option.
[0292] 3. Share images, including the images themselves and their editing history.
[0293] In some embodiments, after the electronic device 100 saves the edited image, the electronic device 100 can send the saved edited image and the editing history of the image to other electronic devices with which a communication connection has been established. Other electronic devices can also re-edit the image sent by the electronic device 100.
[0294] For example, Figures 7A-7G The UI diagram shows how electronic device 100 shares image 3201 to electronic device 200.
[0295] For example, such as Figure 7A As shown, the electronic device 100 can display a user interface 5100. This user interface 5100 includes an image 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 can be used to trigger the opening of the system's sharing interface.
[0296] The electronic device 100 can receive user input (e.g., a click) to the share button, and in response to the input, the electronic device 100 can display, as shown below. Figure 7B The system sharing interface shown is 7100.
[0297] like Figure 7B As shown, the system sharing interface 7100 includes areas 7101, 7102, and 7103. Area 7101 can be used to display one or more images or videos from the electronic device 100's gallery, which may include images or videos selected by the user. Selected images may be marked with a label indicating that the corresponding image has been selected (i.e., the image has been selected by the user). Optionally, the images or videos displayed in area 7101 can be thumbnails.
[0298] Zone 7102 displays the Huawei Share option. This Huawei Share option allows electronic device 100 to share user-selected pictures or videos to other devices via Bluetooth or Wi-Fi.
[0299] Zone 7103 can display icons for one or more service options (e.g., chat application icon, WeLink application icon, Connect application icon, chat application icon, email application icon, browser application icon, messaging application icon, WLAN Direct icon, etc.). The application or protocol corresponding to the service option supports sharing the user-selected image to contacts or a server. Users can share data through the application or protocol corresponding to the service option. For example, sharing the selected image to one or more contacts in the chat application, or sharing the selected image to the chat application's dynamic publishing platform (i.e., server), etc.
[0300] For example, such as Figure 7B As shown, electronic device 100 can receive user input (e.g., a click) regarding the Huawei Share option in area 7102, and in response to this input, electronic device 100 can display as shown in the image. Figure 7C The system sharing interface shown is 7200.
[0301] The system sharing interface 7200 is similar to the system sharing interface 7100, except that area 7102 of the system sharing interface 7200 includes options for nearby devices discovered by the electronic device 100 (e.g., "Alee's phone", "HUAWEI P50", "HUAWEI P50 Pro"). When the electronic device 100 is searching for nearby devices, it can display search prompts in area 7102 (e.g., "Discovering nearby devices; the other party needs to enable Bluetooth and WLAN").
[0302] For example, as shown in 7C, electronic device 100 can receive user input (e.g., a click) regarding the option for "Alee's phone," and in response to this input, electronic device 100 can send the image 3201 selected by the user to a nearby device corresponding to the option for "Alee's phone" via Bluetooth or Wi-Fi. For example, the identifier for "Alee's phone" can be the device identifier of electronic device 200.
[0303] Not limited to passing Figures 1A-1C The method shown allows sharing image 3201 from electronic device 100 to electronic device 200. Electronic device 100 can also share image 3201 from electronic device 100 to electronic device 200 in other ways.
[0304] Optionally, while electronic device 100 shares image 3201 to electronic device 200, electronic device 100 also needs to send image information of image 3201 to electronic device 200.
[0305] The image information of image 3201 may include, but is not limited to, the editing history of image 3201 and the application information of the first application that edited image 3201.
[0306] The editing history of image 3201 can include image processing algorithm parameter information three, which can include, but is not limited to, algorithm processing structure three and algorithm description information three. For example, algorithm processing structure three can include adding a filter algorithm pointing to adding a watermark algorithm, and adding a watermark algorithm pointing to a cropping algorithm. Algorithm description information three can include descriptions of the adding filter algorithm, the adding watermark algorithm, and the cropping algorithm. The adding filter algorithm description can include, but is not limited to, the identifier or name of the adding filter algorithm, the version of the adding filter algorithm, and the parameters of the adding filter algorithm, for example, the parameter of the adding filter algorithm could be "warm". The adding watermark algorithm description can include, but is not limited to, the identifier or name of the adding watermark algorithm, the version of the adding watermark algorithm, and the parameters of the adding watermark algorithm, for example, the parameter of the adding watermark algorithm could be "Good day". The cropping algorithm description can include, but is not limited to, the identifier or name of the adding watermark algorithm, the version of the adding watermark algorithm, and the parameters of the adding watermark algorithm, for example, the parameter of the cropping algorithm could be the cropping frame size.
[0307] The application information of the first application in Figure 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.
[0308] In response to receiving image 3201 sent by electronic device 100, electronic device 200 can display Figure 7D The user interface 7300 shown includes a picture 3201, which is sent from electronic device 100 to electronic device 100.
[0309] For example, such as Figure 7D As shown, the electronic device 100 can receive user input (e.g., a click) on the image 3201 in the user interface 7300, and in response to the user's input, the electronic device 100 can display... Figure 7E The user interface 7400 shown includes an image 3201 and a menu 7401. The menu 7401 may include a share button, a favorite button, an edit button, a delete button, and a more button.
[0310] For example, such as Figure 7E As shown, when a user needs to re-edit image 3201, such as... Figure 7EAs shown, electronic device 200 can receive user input (e.g., click) on the edit button in menu 7401, and in response to the user's input, electronic device 100 can display the editing interface of image 3201.
[0311] Optionally, before the electronic device 200 displays the editing interface of the image 3201, the electronic device 200 can obtain the application information of the second application currently editing the image 3201, and the application information of the first application for editing the image 3201 sent by 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 the image 3201.
[0312] For example, such as Figure 7E As shown, when the second application and the first application are the same application, in response to the electronic device 100 being able to obtain the editing history of image 3201, the electronic device 100 can display... Figure 7F The user interface 7500 shown includes image 3201, a return option 7501, a delete option 7503, a save option 7502, an editing bar 7504, an editing bar 7505, and a re-edit option 7506. The re-edit option 7506 includes multiple editing nodes, such as editing nodes 7507, 7508, and 7509. Editing node 7507 points to editing node 7508, editing node 7508 points to editing node 7509, editing node 7507 is the root node, editing node 7507 is a child node of editing node 7508, and editing node 7508 is a child node of editing node 7509. Optionally, the re-edit option 7506 can be obtained based on the algorithmic processing structure in the editing record of image 3201.
[0313] Afterwards, electronic device 200 can be in accordance with Figures 5A-5N The image 3201 was re-edited using this method. For details, please refer to... Figures 5A-5N The descriptions in the embodiments are not repeated here.
[0314] For example, such as Figure 7E As shown, when the second application and the first application are not the same application, the electronic device 100 can display... Figure 7G The user interface 7600 shown includes image 3201, a return option 7501, a delete option 7503, a save option 7502, an editing bar 7504, and an editing bar 7505. The user interface 7600 does not include... Figure 7FThe re-edit option 7506 shown indicates that the electronic device 200 cannot perform a re-edit operation on the image 3201 when the first application and the second application are not the same application.
[0315] In other embodiments, the editing interface of the image displayed on the electronic device 200 may be different from the editing interface of the image displayed on the electronic device 100. This application is only used as an example to explain this application.
[0316] Figure 8 This application provides a flowchart illustrating a method for re-editing images sent by an electronic device 100.
[0317] S801, Electronic device 100 and electronic device 200 establish a communication connection.
[0318] Electronic device 100 can establish a communication connection via Bluetooth or Wi-Fi, and electronic device 100 can also communicate with electronic device 200 through a server.
[0319] For example, refer to Figures 7A-7C In this embodiment, electronic device 100 can establish a communication connection with electronic device 200 via Bluetooth or Wi-Fi through Huawei Share option.
[0320] S802, electronic device 100 sends the fourth picture and the editing record of the fourth picture to electronic device 200 via a communication connection.
[0321] After the user selects the fourth image, in response to the establishment of a communication connection between electronic device 100 and electronic device 200, electronic device 100 can obtain the fourth image and its image information, and send the fourth image and its editing history to electronic device 200 through the communication connection.
[0322] For example, the fourth image could be Figure 7A The image shown is 3201.
[0323] The editing history of image 3201 can include image processing algorithm parameter information three, which can include, but is not limited to, algorithm processing structure three and algorithm description information three. For example, algorithm processing structure three can include adding a filter algorithm pointing to adding a watermark algorithm, and adding a watermark algorithm pointing to a cropping algorithm. Algorithm description information three can include descriptions of the adding filter algorithm, the adding watermark algorithm, and the cropping algorithm. The adding filter algorithm description can include, but is not limited to, the identifier or name of the adding filter algorithm, the version of the adding filter algorithm, and the parameters of the adding filter algorithm, for example, the parameter of the adding filter algorithm could be "warm". The adding watermark algorithm description can include, but is not limited to, the identifier or name of the adding watermark algorithm, the version of the adding watermark algorithm, and the parameters of the adding watermark algorithm, for example, the parameter of the adding watermark algorithm could be "Good day". The cropping algorithm description can include, but is not limited to, the identifier or name of the adding watermark algorithm, the version of the adding watermark algorithm, and the parameters of the adding watermark algorithm, for example, the parameter of the cropping algorithm could be the cropping frame size.
[0324] S803, Electronic device 200 saves the fourth image and the editing history of the fourth image.
[0325] After receiving the fourth image and its editing history from the electronic device 100, the electronic device 200 can save the fourth image and its editing history.
[0326] For example, after the electronic device 200 saves the fourth image and the editing history of the fourth image, the electronic device 200 can display... Figure 7D The user interface shown is 7300.
[0327] S804, electronic device 200 edits the fourth image within the second application.
[0328] The electronic device 200 stores the fourth image and its editing history. The electronic device 200 can add the fourth image to the second application and edit the fourth image.
[0329] For example, the second application could be a gallery application on the electronic device 200, or a photo editing application on the electronic device 200, etc. This application does not limit the application in this regard.
[0330] S805, Electronic device 200 needs to determine whether the second application has permission to read the editing history of the fourth image.
[0331] If the second application has permission to read the editing history of the fourth image, the electronic device 200 can re-edit the fourth image and revert to any editing node, i.e., execute S806.
[0332] If the second application does not have permission to read the editing history of the fourth image, the electronic device 200 cannot re-edit the fourth image, i.e., it executes S807.
[0333] In some embodiments, whether the second application has permission to read the editing 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 set of image editing algorithms. Other rules can also be used to determine whether the second application has permission to read the editing history of the fourth image, and this application does not limit this.
[0334] For example, when electronic device 100 sends the fourth image and its editing history 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 through one or more image editing algorithms within the first application.
[0335] The electronic device 200 also needs to obtain the application information of the second application, which 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.
[0336] For example, the second application and the first application are the same application, which may mean that the name or identifier of the second application is the same as the name or identifier of the first application, the version number of the second application is the same as the version number of the first application, or the name of the developer of the second application is the same as the name of the developer of the first application.
[0337] S806, electronic device 200 displays a fifth image editing interface, which includes a fourth image and a fourth editing option, the fourth editing option being obtained from the image information of the fourth image.
[0338] If the second application has permission to read the editing history of the fourth image, the electronic device 200 can re-edit the fourth image.
[0339] In response to the user editing the fourth image within the second application, the electronic device 200 can display a fifth image editing interface, which includes the fourth image and a fourth set of editing options. These fourth editing options are obtained by the electronic device 200 from the algorithm processing structure three in the editing record of image 3201.
[0340] For example, the fifth image editing interface can be Figure 7F The user interface shown is 7500.
[0341] For example, the fourth image could be Figure 7F The image shown is 3201.
[0342] For example, the fourth editing option is used to indicate the image editing algorithms that image 3201 will use in sequence. The fourth editing option can be... Figure 7F The re-edit option 7506 is shown. Re-edit option 7506 includes multiple edit nodes, such as edit nodes 7507, 7508, and 7509. Edit node 7507 points to edit node 7508, edit node 7508 points to edit node 7509, edit node 7507 is the 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.
[0343] Afterwards, electronic device 200 can be in accordance with Figures 5A-5N Image 3201 can be re-edited using the re-edit option 7506. For details, please refer to... Figures 5A-5N The descriptions in the embodiments are not repeated here.
[0344] The S807 electronic device 200 displays a sixth image editing interface, which does not include a re-editing option.
[0345] Since the second application does not have permission to read the editing history of the fourth image, the electronic device 200 is unable to re-edit the fourth image.
[0346] For example, if the second application is a photo editing app and the first application is a photo gallery app, and the electronic device 200 receives a user's operation to open a picture in the photo gallery app within the photo editing app and edit the picture in the photo gallery app within the photo editing app, the electronic device 200 cannot re-edit the picture in the photo gallery app within the photo editing app because the image editing algorithms of the photo gallery app and the photo gallery app are different.
[0347] If the second application does not have permission to read the editing history of the fourth image, in response to the user editing the fourth image within the second application, the electronic device 200 may display a sixth image editing interface, which does not include a re-edit option.
[0348] For example, the sixth image editing interface can be Figure 7G The user interface 7600 shown is as follows: Figure 7G As shown, the user interface 7600 does not include a re-edit option, meaning that the user cannot perform a re-edit operation on the fourth image in the sixth image editing interface.
[0349] Figure 9 This is a flowchart illustrating an image editing method provided in this application.
[0350] S901, a first electronic device, used to display a first image gallery interface, the first image gallery interface including a first image.
[0351] For example, the first gallery interface could be Figure 5B The user interface 5100 shown can have the first image as an example. Figure 5B The image shown is 3201.
[0352] S902, the first electronic device, is also used to: receive editing operations by the user on the first image.
[0353] For example, the editing operation on the first image can be Figure 5B The input action shown is for editing options in the user interface 5100, such as clicking.
[0354] S903. In response to an editing operation on the first image, a first user interface is displayed. The editing interface of the first image includes the first image and a first option. The first option includes a first node and a second node. The first node is related to the first image editing algorithm, and the second node is related to the second image editing algorithm. The first image is obtained based on the third image using the first image editing algorithm and the second image editing algorithm.
[0355] For example, the first user interface could be Figure 5C or Figure 5F The user interface 5200 shown can have the first image as an example. Figure 5C or Figure 5F The first option for the image 3201 shown is... Figure 5C or Figure 5F The re-edit option 5201 is shown. The first and second nodes can be... Figure 5C or Figure 5F Any two nodes from edit node 2101, edit node 2402, and edit node 3202 in the re-edit option 5201 shown.
[0356] For example, the first user interface can also be Figure 5I The user interface 5200 shown can have the first image as an example. Figure 5I The first option for the image 3201 shown is... Figure 5I The re-edit option 5701 is shown. The first and second nodes can be... Figure 5I Any two nodes from edit node 5702, edit node 2101, edit node 2402, and edit node 3202 in the re-edit option 5701 shown.
[0357] For example, the first user interface can also be Figure 5O The user interface shown is 5950, and the first image can also be... Figure 5O Image 3201 is shown. The first option could be... Figure 5O The re-edit option shown is 5951. The first and second nodes can be... Figure 5O Any two nodes from edit node 2101, edit node 2402, and edit node 3202 in the re-edit option 5951 shown.
[0358] For example, the first image editing algorithm and the second image editing algorithm can be any two of the following: original image, filter addition algorithm, watermark addition algorithm, and cropping algorithm.
[0359] For example, the third image could be image 1101.
[0360] Optionally, and 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.
[0361] In some embodiments, the first gallery interface may also include a third image.
[0362] This method allows electronic devices to re-edit images stored in a gallery application, enabling saved images to be rolled back to any editing node, thus improving image editing efficiency.
[0363] S904: Receive the user's first operation on the first node.
[0364] S905. In response to the first operation, a second user interface is displayed. The second user interface includes a second image, which is obtained based on the third image and the first image editing algorithm.
[0365] For example, the first node could be Figure 5C The edit node 2402 shown can be a second user interface. Figure 5D The user interface 5300 shown, the third image could be... Figure 5D The first image editing algorithm shown in image 2401 could be a watermarking algorithm.
[0366] For example, the first node could also be Figure 5F The edit node 2101 shown can be a second user interface. Figure 5G The user interface shown is 5500, and the third image could be... Figure 5G The first image editing algorithm shown in image 1501 could be a filter addition algorithm.
[0367] For example, the first node could also be Figure 5I The edit node 5702 shown can be a second user interface. Figure 5J The user interface shown is 5800, and the third image could be... Figure 5J The first image editing algorithm for the image 1101 shown can be none.
[0368] In one possible implementation, the first electronic device is further configured to: display a second gallery interface, the second gallery interface including a third image; receive an editing operation from a user on the third image; in response to the editing operation on the third image, display a third user interface, the third user interface including the third image and multiple image editing options; receive a second operation from the user on a first editing option among the multiple image editing options, the first editing option being related to a first image editing algorithm; in response to the second operation, obtain a second image; receive a third operation from the user on the second editing option among the multiple image editing options, the second editing option being related to a second image editing algorithm; in response to the third operation, obtain a first image; receive a fourth operation to save the first image; and in response to the fourth operation, save the first image and the editing history of the first image.
[0369] In one possible implementation, the first electronic device is further configured to: display a second gallery interface, the second gallery interface including a third image; receive an editing operation from a user on the third image; in response to the editing operation on the third image, display a third user interface, the third user interface including the third image and multiple image editing options; receive a selection operation from a user on a first editing option and a second editing option among the multiple image editing options, the first editing option being associated with a first image editing algorithm and the second editing option being associated with a second image editing algorithm; in response to the selection operation, process the third image according to the first image editing algorithm and the second image editing algorithm to obtain a first image; receive a fourth operation to save the first image; and in response to the fourth operation, save the first image and the editing record of the first image.
[0370] The third image is the original image without the image editing algorithm being applied.
[0371] After the user adds an image editing algorithm to the third image, the first electronic device can display the corresponding editing nodes on the image editing interface. On one hand, this indicates to the user that the image editing algorithm currently being used is active. On the other hand, the user can also interact with the editing nodes displayed on the image editing interface, allowing the image to revert to the editing effect corresponding to any one or more editing nodes and their respective algorithms.
[0372] For example, the second gallery interface can be Figure 1C The user interface shown is 1200.
[0373] For example, a third user interface could be Figure 1D The user interface shown is 1300.
[0374] For example, the first editing option or the second editing option could be Figure 1E The algorithm for adding "filters" shown Figure 2C The watermarking algorithm shown is Figure 3A Any two of the cropping algorithms shown. The second image and the first image can be... Figure 1E Image 1501 shown Figure 2D The images shown are 2401 and Figure 3C Any two of the images shown in picture 3201.
[0375] In one possible implementation, the second user interface also includes a second option, which includes the first node.
[0376] Thus, the first node is used to prompt the user that the second image is obtained based on the first image editing algorithm.
[0377] For example, the second option could be Figure 5D The re-edit option 5301 shown can have the first node as... Figure 5D The edit node shown is 2402.
[0378] For example, the second option could be Figure 5G The re-edit option 5501 shown can have the first node as... Figure 5G The edit node 2101 is shown.
[0379] For example, the second option could be Figure 5J The re-edit option 5801 shown can have the first node as... Figure 5J The edit node shown is 5702.
[0380] In one possible implementation, the second image is obtained by the first electronic device based on the third image and using a first image editing algorithm.
[0381] In this way, when a user re-edits an image, the electronic device can edit the original image locally based on the image editing algorithm selected by the user to achieve the desired image editing effect.
[0382] In one possible implementation, the first electronic device is further configured to: in response to a first operation, send the identifiers of a third image and a first image editing algorithm to a server; and receive a second image sent by the server, the second image being obtained by the server based on the third image and the first image editing algorithm.
[0383] In this way, when a user re-edits an image, the electronic device can edit the original image using a server based on the image editing algorithm selected by the user. Since the server has greater computing power than the electronic device, this reduces the computational load on the electronic device and also increases the speed at which the electronic device can re-edit images.
[0384] In one possible implementation, the first image is obtained by processing the second image using a first electronic device according to a second image editing algorithm.
[0385] 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, whereby 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 back to the first electronic device.
[0386] In one possible implementation, the editing record of the first image includes first algorithm information, which 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.
[0387] Optionally, the first algorithm structure may also include the order of image editing algorithms, for example, the first image editing algorithm points to the second image editing algorithm, indicating that the image was edited by the first image editing algorithm first and then by the second image editing algorithm.
[0388] For example, the first algorithm structure can be Figure 4B The algorithm structure is shown in (a), (b), or (c).
[0389] In one possible implementation, the first electronic device is specifically configured to: in response to an editing operation on the first image, acquire first algorithm information from the editing record of the first image; and display a first option on a first user interface based on the first algorithm information.
[0390] In this way, the electronic device can display editing nodes on the image editing interface based on the saved first algorithm information, so that the user can re-edit the image based on the editing nodes.
[0391] In one possible implementation, the system further includes a second electronic device; the first electronic device is further configured to: send the first image and the editing record of the first image to the second electronic device; the second electronic device is configured to receive a fifth operation; the second electronic device is further configured to, in response to the fifth operation, display a fourth user interface, the fourth user interface including the first image and a third option, the third option including a third node and a fourth node, the third node being related to the first image editing algorithm, and the fourth node being related to the second image editing algorithm.
[0392] For edited photos, the first electronic device not only needs to share the image to the second electronic device, but also needs to share the image editing history to the second electronic device.
[0393] Not only can images be re-edited locally on electronic devices, but they can also be shared with a second electronic device along with the image editing history. The second electronic device can then re-edit the images shared by the first electronic device, further improving image editing efficiency.
[0394] For example, the first electronic device may be electronic device 100, and the second electronic device may be electronic device 200.
[0395] For example, the fourth user interface could be Figure 7F The user interface 7500 shown has a third option that can be... Figure 7F The re-edit option 7506 shown allows the third and fourth nodes to be... Figure 7F Any two nodes of edit node 7507, edit node 7508, and edit node 7509 in the re-edit option 7506 shown.
[0396] In one possible implementation, the second electronic device is specifically used to: obtain first algorithm information from the editing history of the first image when it has permission to read the editing history of the first image; and display a third option on a fourth user interface based on the first algorithm information.
[0397] In one possible implementation, the second electronic device is also used to display a fifth user interface, which includes the first image, in the absence of permission to read the editing history of the first image.
[0398] In this way, after receiving the first image and its editing history shared by the first electronic device, the second electronic device can determine whether it can re-edit the first image. If the second electronic device has permission to re-edit the first image, it can display the editing node for the first image, allowing the user to re-edit the image displayed by the second electronic device. If the second electronic device does not have permission to re-edit the first image, it can not display the editing node for the first image, thus indicating that it does not have permission to re-edit the first image.
[0399] For example, the fifth user interface could be Figure 7G The user interface shown is 7600.
[0400] In one possible implementation, the first electronic device is further configured to send application information of the first application to the second electronic device, wherein the first application is an application that edits the third image to obtain the first image;
[0401] The second electronic device is specifically used for: displaying a first image through a second application; obtaining first algorithm information from the editing history of the first image when the first application and the second application are the same application; and displaying a third option on a fifth user interface based on the first algorithm information.
[0402] 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, then the second application has the authority to re-edit the first image.
[0403] In other embodiments, if the first application and the second application are not the same application, and if the first application and the second application share a common image editing algorithm, then the second application also has the right to re-edit the first image.
[0404] 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: application name or identifier, application version number, and the name of the application's developer.
[0405] In one possible implementation, 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 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.
[0406] Figure 10 This is a schematic diagram of the hardware structure of an electronic device 100 provided in this application.
[0407] The hardware structure of electronic device 200 is similar to that of electronic device 100, and can be referred to for reference. Figure 10 The description of the hardware structure of electronic device 100.
[0408] The following description uses electronic device 100 as an example to illustrate the embodiment. It should be understood that... Figure 10 The electronic device 100 shown is merely an example, and the electronic device 100 may have more than Figure 10 The more or fewer components shown can be combined into two or more components, or they can have different component configurations. Figure 10 The various components shown can be implemented in hardware, software, or a combination of hardware and software, including one or more signal processing and / or application-specific integrated circuits.
[0409] Electronic device 100 may include: processor 110, external memory interface 120, internal memory 121, universal serial bus (USB) interface 130, charging management module 140, power management module 141, battery 142, antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, sensor module 180, button 190, motor 191, indicator 192, camera 193, display screen 194, and subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, a barometric pressure sensor 180C, a magnetic sensor 180D, an accelerometer sensor 180E, a distance sensor 180F, a proximity 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.
[0410] It is understood that the structures illustrated in the embodiments of the present invention do not constitute a specific limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may include more or fewer components than illustrated, or combine some components, or split some components, or have different component arrangements. The illustrated components may be implemented in hardware, software, or a combination of software and hardware.
[0411] Processor 110 may include one or more processing units, such as: application processor (AP), modem processor, graphics processing unit (GPU), image signal processor (ISP), controller, memory, video codec, digital signal processor (DSP), baseband processor, and / or neural network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0412] The controller can be the nerve center and command center of the electronic device 100. The controller can generate operation control signals according to the instruction opcode and timing signals to complete the control of fetching and executing instructions.
[0413] The processor 110 may also include a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. This memory can store instructions or data that the processor 110 has just used or that are used repeatedly. If the processor 110 needs to use the instruction or data again, it can retrieve it directly from the memory. This avoids repeated accesses, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0414] In some embodiments, the processor 110 may include one or more interfaces. 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, etc.
[0415] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple I2C buses. The processor 110 can couple to the touch sensor 180K, charger, flash, camera 193, etc., through different I2C bus interfaces. For example, the processor 110 can couple to the touch sensor 180K through the I2C interface, enabling the processor 110 and the touch sensor 180K to communicate through the I2C bus interface, thereby realizing the touch function of the electronic device 100.
[0416] The I2S interface can be used for audio communication. In some embodiments, the processor 110 may 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 to enable the function of answering phone calls through a Bluetooth headset.
[0417] 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 the 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 phone calls through a Bluetooth headset. Both the I2S interface and the PCM interface can be used for audio communication.
[0418] 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 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 to enable music playback through Bluetooth headphones.
[0419] The MIPI interface can be used to connect the processor 110 to peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI) and a display serial interface (DSI). In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to enable the electronic device 100 to capture images. The processor 110 and the display screen 194 communicate via the DSI interface to enable the electronic device 100 to display images.
[0420] The GPIO interface can be configured via software. It can be configured as a control signal or a data signal. In some embodiments, the GPIO interface can be used to connect the processor 110 to a camera 193, a display screen 194, a wireless communication module 160, an audio module 170, a 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.
[0421] USB port 130 is a USB standard compliant interface, specifically a Mini USB port, Micro USB port, USB Type-C port, etc. USB port 130 can be used to connect a charger to charge electronic device 100, and can also be used for data transfer between electronic device 100 and peripheral devices. It can also be used to connect headphones for audio playback. This interface can also be used to connect other electronic devices, such as AR devices.
[0422] It is understood that the interface connection relationships between the modules illustrated in the embodiments of the present invention are merely illustrative and do not constitute a structural limitation on the electronic device 100. In other embodiments of this application, the electronic device 100 may also employ different interface connection methods or combinations of multiple interface connection methods as described in the above embodiments.
[0423] The charging management module 140 receives charging input from a charger. The charger can be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 receives charging input from the wired charger via the USB interface 130. In some wireless charging embodiments, the charging management module 140 receives 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 supply power to the electronic device via the power management module 141.
[0424] The power management module 141 connects 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, providing power to the processor 110, internal memory 121, external memory, display screen 194, camera 193, and wireless communication module 160, etc. The power management module 141 can also monitor parameters such as battery capacity, battery cycle count, and battery health status (leakage current, impedance). In some other embodiments, the power management module 141 may also be located within the processor 110. In other embodiments, the power management module 141 and the charging management module 140 may be located in the same device.
[0425] The wireless communication function of electronic device 100 can be implemented through antenna 1, antenna 2, mobile communication module 150, wireless communication module 160, modem processor, and baseband processor.
[0426] 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 one or more communication frequency bands. Different antennas can also be multiplexed to improve antenna utilization. For example, antenna 1 can be multiplexed as a diversity antenna for a wireless local area network. In some other embodiments, the antennas can be used in conjunction with tuning switches.
[0427] The mobile communication module 150 can provide solutions for wireless communication, including 2G / 3G / 4G / 5G, applied to the electronic device 100. The mobile communication module 150 may include at least one filter, switch, power amplifier, low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves via antenna 1, and perform filtering, amplification, and other processing on the received electromagnetic waves before transmitting them to a modem processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modem processor and convert it into electromagnetic waves for radiation via antenna 1. In some embodiments, at least some functional modules of the mobile communication module 150 may be housed in the processor 110. In some embodiments, at least some functional modules of the mobile communication module 150 and at least some modules of the processor 110 may be housed in the same device.
[0428] The modem processor may include a modulator and a demodulator. The modulator modulates the low-frequency baseband signal to be transmitted into a mid-to-high frequency signal. The demodulator demodulates 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 processing by the baseband processor, the low-frequency baseband signal is transmitted to the application processor. The application processor outputs sound signals through an audio device (not limited to speaker 170A, receiver 170B, etc.) or displays images or videos through the display screen 194. In some embodiments, the modem processor may be a separate device. In other embodiments, the modem processor may be independent of the processor 110 and may be housed in the same device as the mobile communication module 150 or other functional modules.
[0429] The wireless communication module 160 can provide solutions for wireless communication applications on the electronic device 100, including wireless local area networks (WLANs) (such as wireless fidelity (Wi-Fi) networks), Bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), and infrared (IR) technologies. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via antenna 2, performs frequency modulation and filtering of the electromagnetic wave signals, and sends the processed signal to processor 110. The wireless communication module 160 can also receive signals to be transmitted from processor 110, perform frequency modulation and amplification, and convert them into electromagnetic waves for radiation via antenna 2.
[0430] In some embodiments, antenna 1 of electronic device 100 is coupled to mobile communication module 150, and antenna 2 is coupled to wireless communication module 160, enabling electronic device 100 to communicate with networks and other devices via wireless communication technology. The wireless communication technology 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 technologies, etc. The GNSS may include the Global Positioning System (GPS), the Global Navigation Satellite System (GLONASS), the BeiDou Navigation Satellite System (BDS), the Quasi-Zenith Satellite System (QZSS), and / or satellite-based augmentation systems (SBAS).
[0431] Electronic device 100 implements display functions through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, connected to the display screen 194 and the application processor. The GPU is used to perform mathematical and geometric calculations and for graphics rendering. Processor 110 may include one or more GPUs, which execute program instructions to generate or modify display information.
[0432] Display screen 194 is used to display images, videos, etc. Display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD). The display panel can also be manufactured using organic light-emitting diodes (OLEDs), active-matrix organic light-emitting diodes (AMOLEDs), flexible light-emitting diodes (FLEDs), miniled, microled, micro-OLEDs, quantum dot light-emitting diodes (QLEDs), etc. In some embodiments, electronic device 100 may include one or N displays 194, where N is a positive integer greater than 1.
[0433] Electronic device 100 can perform shooting functions through ISP, camera 193, video codec, GPU, display 194 and application processor.
[0434] The ISP (Image Signal Processor) is used to process data fed back from the camera 193. For example, when taking a picture, 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, and the camera's photosensitive element transmits the electrical signal to the ISP for processing, converting it into an image visible to the naked eye. The ISP can also perform algorithmic optimization on image noise and brightness. The ISP can also optimize parameters such as exposure and color temperature of the shooting scene. In some embodiments, the ISP can be set in the camera 193.
[0435] Camera 193 is used to capture still images or videos. An object is projected onto a photosensitive element by generating an optical image through the lens. 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, which is then passed to an ISP for conversion into a digital image signal. The ISP outputs the digital image signal to a DSP for processing. The DSP converts the digital image signal into image signals in standard RGB, YUV, or other formats. In some embodiments, the electronic device 100 may include one or N cameras 193, where N is a positive integer greater than 1.
[0436] Digital signal processors (DSPs) are used to process digital signals. Besides digital image signals, they can also process other digital signals. For example, when electronic device 100 selects a frequency, the DSP can perform Fourier transforms on the frequency energy.
[0437] Video codecs are used to compress or decompress digital video. Electronic device 100 may support one or more video codecs. Thus, electronic device 100 can play or record videos in various encoding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0438] An NPU (Neural Processing Unit) is a computational processor for neural networks (NNs). By borrowing the structure of biological neural networks, such as the transmission patterns between neurons in the human brain, it can rapidly process input information and continuously learn on its own. NPUs enable intelligent cognitive applications in electronic devices, such as image recognition, facial recognition, speech recognition, and text understanding.
[0439] The external storage 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 through the external storage interface 120 to perform data storage functions. For example, music, video, and other files can be saved on the external memory card.
[0440] Internal memory 121 can be used to store computer executable program code, which includes instructions. Processor 110 executes various functional applications and data processing of electronic device 100 by running the instructions stored in internal memory 121. Internal memory 121 may include a program storage area and a data storage area. The program storage area may store the operating system, at least one application program required for a function (such as sound playback, image playback, etc.), etc. The data storage area may store data created during the use of electronic device 100 (such as audio data, phonebook, etc.). Furthermore, internal memory 121 may include high-speed random access memory and may also include non-volatile memory, such as at least one disk storage device, flash memory device, universal flash storage (UFS), etc.
[0441] Electronic device 100 can implement audio functions, such as music playback and recording, through audio module 170, speaker 170A, receiver 170B, microphone 170C, headphone jack 170D, and application processor.
[0442] The audio module 170 is used to convert digital audio information into analog audio signals for output, and also to convert analog audio input into digital audio signals. The audio module 170 can also be used for encoding and decoding audio signals. In some embodiments, the audio module 170 may be located in the processor 110, or some functional modules of the audio module 170 may be located in the processor 110.
[0443] The speaker 170A, also known as a "loudspeaker," is used to convert audio electrical signals into sound signals. The electronic device 100 can listen to music or make hands-free calls through the speaker 170A.
[0444] The receiver 170B, also known as the "earpiece," is used to convert audio electrical signals into sound signals. When the electronic device 100 answers a telephone call or voice message, the receiver 170B can be brought close to the ear to listen to the voice.
[0445] Microphone 170C, also known as a "microphone" or "voice transducer," is used to convert sound signals into electrical signals. When making a phone call or sending a voice message, the user can speak by bringing their mouth close to microphone 170C, inputting the sound signal into microphone 170C. Electronic device 100 may have at least one microphone 170C. In some embodiments, electronic device 100 may have two microphones 170C, which, in addition to collecting sound signals, can also perform noise reduction. In other embodiments, electronic device 100 may also have three, four, or more microphones 170C, which can collect sound signals, reduce noise, identify the sound source, and perform directional recording, etc.
[0446] The 170D headphone jack is used to connect wired headphones. The 170D headphone jack can be a USB 130 interface or a 3.5mm Open Mobile Terminal Platform (OMTP) standard interface, a CTIA (Cellular Telecommunications Industry Association of the USA) standard interface.
[0447] Pressure sensor 180A is used to sense pressure signals and convert them into electrical signals. In some embodiments, pressure sensor 180A can be disposed on display screen 194. There are many types of pressure sensors 180A, such as resistive pressure sensors, inductive pressure sensors, and capacitive pressure sensors. A capacitive pressure sensor may include at least two parallel plates with conductive material. When force is applied to pressure sensor 180A, the capacitance between the electrodes changes. Electronic device 100 determines the pressure intensity based on the change in capacitance. When a touch operation is applied to display screen 194, electronic device 100 detects the intensity of the touch operation based on pressure sensor 180A. Electronic device 100 can also calculate the touch position based on the detection signal from pressure sensor 180A. In some embodiments, touch operations applied to the same touch position but with different touch operation intensities can correspond to different operation commands. For example, when a touch operation with an intensity less than a first pressure threshold is applied to the SMS application icon, a command to view an SMS is executed. When a touch operation with an intensity greater than or equal to the first pressure threshold is applied to the SMS application icon, a command to create a new SMS is executed.
[0448] The gyroscope sensor 180B can be used to determine the motion attitude of the electronic device 100. In some embodiments, the gyroscope sensor 180B can determine the angular velocity of the electronic device 100 about three axes (i.e., the x, y, and z axes). The gyroscope sensor 180B can be used for image stabilization. For example, when the shutter is pressed, the gyroscope sensor 180B detects the angle of the shake of the electronic device 100, calculates the distance that the lens module needs to compensate based on the angle, and allows the lens to counteract the shake of the electronic device 100 by moving in the opposite direction, thus achieving image stabilization. The gyroscope sensor 180B can also be used in navigation and motion-sensing game scenarios.
[0449] The barometric pressure sensor 180C is used to measure air pressure. In some embodiments, the electronic device 100 calculates altitude using the air pressure value measured by the barometric pressure sensor 180C to assist in positioning and navigation.
[0450] 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 cover. 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 using the magnetic sensor 180D. Then, based on the detected opening and closing state of the cover or the flip cover, features such as automatic flip unlocking can be set.
[0451] The 180E accelerometer can detect the magnitude of acceleration of electronic device 100 in various directions (typically three axes). When electronic device 100 is stationary, it can detect the magnitude and direction of gravity. It can also be used to identify the posture of electronic devices and applied to applications such as screen orientation switching and pedometers.
[0452] A distance sensor 180F is used to measure distance. Electronic device 100 can measure distance via infrared or laser. In some embodiments, during a shooting scene, electronic device 100 can utilize the distance sensor 180F to measure distance for rapid focusing.
[0453] The proximity sensor 180G may include, for example, a light-emitting diode (LED) and a light detector, such as a photodiode. The LED may be an infrared LED. The electronic device 100 emits infrared light outward through the LED. The electronic device 100 uses the 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 may use the proximity sensor 180G to detect when a user holds the electronic device 100 close to their ear for a call, so as to automatically turn off the screen to save power. The proximity sensor 180G can also be used in holster mode and pocket mode for automatic unlocking and locking of the screen.
[0454] The ambient light sensor 180L is used to sense the brightness of ambient light. The electronic device 100 can adaptively adjust the brightness of the display screen 194 based on the sensed ambient light brightness. The ambient light sensor 180L can also be used to automatically adjust the white balance when taking pictures. The ambient light sensor 180L can also work with the proximity sensor 180G to detect whether the electronic device 100 is in a pocket to prevent accidental touches.
[0455] The fingerprint sensor 180H is used to collect fingerprints. The electronic device 100 can use the characteristics of the collected fingerprints to achieve fingerprint unlocking, accessing application locks, taking photos with fingerprints, answering calls with fingerprints, etc.
[0456] Temperature sensor 180J is used to detect temperature. In some embodiments, electronic device 100 uses the temperature detected by temperature sensor 180J to execute a temperature handling strategy. For example, when the temperature reported by temperature sensor 180J exceeds a threshold, electronic device 100 performs thermal protection by reducing the performance of a processor located near temperature sensor 180J to reduce power consumption. In other embodiments, when the temperature is below another threshold, electronic device 100 heats battery 142 to prevent abnormal shutdown of electronic device 100 due to low temperature. In still other embodiments, when the temperature is below yet another threshold, electronic device 100 boosts the output voltage of battery 142 to prevent abnormal shutdown due to low temperature.
[0457] Touch sensor 180K, also known as a "touch panel," can be located on display screen 194. The touch sensor 180K and display screen 194 together form a touchscreen, also known as a "touch screen." Touch sensor 180K detects touch operations applied to or near it. The touch sensor can transmit the detected touch operation to the application processor to determine the type of touch event. Visual output related to the touch operation can be provided through display screen 194. In other embodiments, touch sensor 180K may also be located on the surface of electronic device 100, in a different position than display screen 194.
[0458] The bone conduction sensor 180M can acquire vibration signals. In some embodiments, the bone conduction sensor 180M can acquire vibration signals from the vibrating bone segments of the human vocal cords. The bone conduction sensor 180M can also contact the human pulse to receive blood pressure signals. In some embodiments, the bone conduction sensor 180M can also be incorporated into headphones to form bone conduction headphones. The audio module 170 can parse the voice signals from the vibrating bone segments of the vocal cords acquired by the bone conduction sensor 180M to realize voice functionality. The application processor can parse heart rate information from the blood pressure signals acquired by the bone conduction sensor 180M to realize heart rate detection functionality.
[0459] Buttons 190 include a power button, volume buttons, etc. Buttons 190 can be mechanical buttons or touch-sensitive buttons. Electronic device 100 can receive button input and generate key signal inputs related to user settings and function control of electronic device 100.
[0460] Motor 191 can generate vibration alerts. Motor 191 can be used for incoming call vibration alerts or for touch vibration feedback. For example, different vibration feedback effects can correspond to touch operations performed on different applications (such as taking photos, playing audio, etc.). Motor 191 can also correspond to different vibration feedback effects for touch operations performed on different areas of the display screen 194. Different application scenarios (such as time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also be customized.
[0461] Indicator 192 can be an indicator light, used to indicate charging status, power changes, or to indicate messages, missed calls, notifications, etc.
[0462] The SIM card interface 195 is used to connect the SIM card.
[0463] The software system of the electronic device 100 provided in the embodiments of this application is described below.
[0464] The software system of electronic device 100 can adopt a layered architecture, event-driven architecture, microkernel architecture, microservice architecture, or cloud architecture. This embodiment of the invention uses the layered architecture Android system as an example to exemplify the software structure of electronic device 100.
[0465] Figure 11 This is a software structure block diagram of the electronic device 100 according to an embodiment of the present invention.
[0466] A layered architecture divides software into several layers, each with a clear role and function. Layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom: the application layer, the application framework layer, the Android runtime and system libraries, and the kernel layer.
[0467] The application layer can include a series of application packages.
[0468] like Figure 11 As shown, the application package may include applications such as camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, and SMS.
[0469] The application framework layer provides application programming interfaces (APIs) and a programming framework for applications in the application layer. The application framework layer includes some predefined functions.
[0470] like Figure 11 As shown, the application framework layer may include a window manager, content provider, view system, phone manager, resource manager, notification manager, etc.
[0471] The window manager is used to manage windowed applications. It can retrieve screen size, determine the presence of a status bar, lock the screen, and capture screenshots, among other things.
[0472] Content providers store and retrieve data, making that data accessible to applications. This data may include videos, images, audio, made and received phone calls, browsing history and bookmarks, phone books, etc.
[0473] A view system includes visual controls, such as controls for displaying text and controls for displaying images. View systems can be used to build applications. A display interface can consist of one or more views. For example, a display interface including a text notification icon could include views for displaying text and views for displaying images.
[0474] The phone manager is used to provide communication functions for electronic device 100. For example, it manages call status (including connection and disconnection).
[0475] The file explorer provides applications with various resources, such as localized strings, icons, images, layout files, video files, and more.
[0476] The notification manager allows applications to display notifications in the status bar. These notifications can be used to deliver informational messages and can disappear automatically after a short pause, requiring no user interaction. For example, the notification manager can be used to notify users of completed downloads or message alerts. The notification manager can also display notifications as icons or scrolling text in the top status bar, such as notifications from background applications, or as dialog boxes on the screen. Examples include displaying text messages in the status bar, emitting sounds, vibrating electronic devices, and flashing indicator lights.
[0477] The Android Runtime consists of core libraries and a virtual machine. The Android runtime is responsible for the scheduling and management of the Android system.
[0478] The core library consists of two parts: one part is the functionalities that need to be called by the Java language, and the other part is the Android core library.
[0479] The application layer and application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and application framework layer as binary files. The virtual machine is used to perform functions such as object lifecycle management, stack management, thread management, security and exception management, and garbage collection.
[0480] System libraries can include multiple functional modules. For example: surface manager, media libraries, 3D graphics processing libraries (e.g., OpenGL ES), 2D graphics engines (e.g., SGL), etc.
[0481] The Surface Manager is used to manage the display subsystem and provides the blending of 2D and 3D layers for multiple applications.
[0482] The media library supports playback and recording of various common audio and video formats, as well as still image files. It supports multiple audio and video encoding formats, such as MPEG4, H.264, MP3, AAC, AMR, JPG, and PNG.
[0483] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0484] A 2D graphics engine is a graphics engine for 2D drawing.
[0485] The kernel layer is the layer between hardware and software. The kernel layer contains at least the display driver, camera driver, audio driver, and sensor driver.
[0486] The above are merely some embodiments and implementation methods of this application. The scope of protection of this application is not limited thereto. Any variations or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in this application should be included within the scope of protection of this application. Therefore, the scope of protection of this application should be determined by the scope of the claims.
[0487] It is understood that the user interfaces described in the embodiments of this application are merely example interfaces and do not constitute a limitation on the solution of this application. In other embodiments, the user interface may adopt different interface layouts, may include more or fewer controls, and may add or remove other functional options, as long as they are based on the same inventive concept provided in this application, they are all within the protection scope of this application.
[0488] It should be noted that, without causing contradictions or conflicts, any feature in any embodiment of this application, or any part of any feature, can be combined, and the combined technical solution is also within the scope of the embodiments of this application.
[0489] The above-described embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit it. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of this application.
Claims
1. An image editing system, characterized in that, The first electronic device stores a first image and its editing history. The editing history of the first image includes description information of a first image editing algorithm and description information of a second image editing algorithm. The system includes the first electronic device and the second electronic device. The first electronic device is configured to display a first gallery interface, wherein the first gallery interface includes the first image; The first electronic device is further configured to: Receive user editing operations on the first image; In response to an editing operation on the first image, a first user interface is displayed. The first user interface includes the first image, a first node, and a second node. The first node includes descriptive information of the first image editing algorithm, and the second node includes descriptive information of the second image editing algorithm. The first image is obtained based on the third image using the first image editing algorithm and the second image editing algorithm. Receive a first operation from the user on the editing interface of the first image, wherein the first operation is used to select the first node; In response to the first operation, a second user interface is displayed, the second user interface including a second image, which is obtained based on the third image and the first image editing algorithm; The first electronic device is further configured to: Send the first image and its editing history to the second electronic device; The second electronic device is used to receive the fifth operation; The second electronic device is further configured to display a fourth user interface in response to the fifth operation, the fourth user interface including the first image, a third node, and a fourth node, the third node including descriptive information of the first image editing algorithm, and the fourth node including descriptive information of the second image editing algorithm.
2. The system according to claim 1, characterized in that, The first electronic device is also used for: Used to display a second gallery interface, which includes the third image; Receive user editing operations on the third image; In response to an editing operation on the third image, a third user interface is displayed, the third user interface including the third image and multiple image editing options; Receive a second operation from the user on a first editing option among the plurality of image editing options, wherein the first editing option is related to the first image editing algorithm; In response to the second operation, the second image is obtained; Receive a third operation from the user on the second editing option among the plurality of image editing options, wherein the second editing option is related to the second image editing algorithm; In response to the third operation, the first image is obtained; Receive the fourth operation to save the first image; In response to the fourth operation, the first image and its editing history are saved.
3. The system according to claim 1, characterized in that, The first electronic device is also used for: Used to display a second gallery interface, which includes the third image; Receive user editing operations on the third image; In response to an editing operation on the third image, a third user interface is displayed, the third user interface including the third image and multiple image editing options; The system receives a user's selection of a first editing option and a second editing option from among the multiple image editing options. The first editing option is related to the first image editing algorithm, and the second editing option is related to the second image editing algorithm. In response to the selection operation, the third image is processed according to the first image editing algorithm and the second image editing algorithm to obtain the first image; Receive the fourth operation to save the first image; In response to the fourth operation, the first image and its editing history are saved.
4. The system according to any one of claims 1-3, characterized in that, The second user interface also includes the first node.
5. The system according to any one of claims 1-3, characterized in that, The second image was obtained by the first electronic device based on the first image editing algorithm on the basis of the third image.
6. The system according to any one of claims 1-3, characterized in that, The first electronic device is further configured to: In response to the first operation, the third image and the identifier of the first image editing algorithm are sent to the server; The server receives the second image, which is obtained by the server based on the third image and using the first image editing algorithm.
7. The system according to any one of claims 1-3, characterized in that, The first image is obtained by processing the second image using the second image editing algorithm by the first electronic device.
8. The system according to any one of claims 1-3, characterized in that, The editing record of the first image also includes the identifier of the first image editing algorithm and the identifier 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 image, the identifier of the first image editing algorithm and the identifier of the second image editing algorithm are obtained from the editing record of the first image; The first node and the second node are displayed on the first user interface based on the identifiers of the first image editing algorithm and the second image editing algorithm.
10. The system according to claim 8, characterized in that, The second electronic device is specifically used for; If you have permission to read the editing history of the first image, you can obtain the identifier of the first image editing algorithm and the identifier of the second image editing algorithm from the editing history of the first image. The third node and the fourth node are displayed on the fourth user interface based on the identifier of the first image editing algorithm and the identifier of the second image editing algorithm.
11. The system according to claim 10, characterized in that, The second electronic device is also used for If the user does not have permission to read the editing history of the first image, a fifth user interface is displayed, which includes the first image.
12. The system according to claim 10, characterized in that, The first electronic device is further configured to send application information of the first application to the second electronic device, wherein the first application is the application that edits the third image to obtain the first image; The second electronic device is specifically used for; The first image is displayed through the second application; When the first application and the second application are the same application, the identifier of the first image editing algorithm and the identifier of the second image editing algorithm are obtained from the editing record of the first image; The third node and the fourth node are displayed on the fourth user interface based on the identifier of the first image editing algorithm and the identifier of the second image editing algorithm.
13. The system according to claim 12, characterized in that, The application information for the first application includes any one or more of the following: application name or identifier, application version number, and the name of the application's developer.
14. The system according to claim 8, characterized in that, 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 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.
15. A method for editing images, characterized in that, The first electronic device stores a first image and editing records of the first image. The editing records of the first image include description information of a first image editing algorithm and description information of a second image editing algorithm. The method includes: The first electronic device displays a first image gallery interface, which includes the first image. The first electronic device receives editing operations from the user on the first image; In response to an editing operation on the first image, the first electronic device displays a first user interface, the first user interface including the first image, a first node and a second node, the first node including descriptive information of the first image editing algorithm, the second node including descriptive information of the second image editing algorithm, and the first image being obtained based on the third image using the first image editing algorithm and the second image editing algorithm; The first electronic device receives a first operation from the user on the editing interface of the first image, the first operation being used to select the first node; In response to the first operation, the first electronic device displays a second user interface, which includes a second image, which is obtained based on the third image and the first image editing algorithm. The method further includes: The first electronic device sends the first image and the editing record of the first image to the second electronic device; wherein, the first image and the editing record of the first image are used by the second electronic device to display a fourth user interface, the fourth user interface including the first image, a third node and a fourth node, the third node including the description information of the first image editing algorithm, and the fourth node including the description information of the second image editing algorithm.
16. The method according to claim 15, 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, which includes the third image; The first electronic device receives editing operations from the user on the third image; In response to an editing operation on the third image, the first electronic device displays a third user interface, which includes the third image and multiple image editing options; The first electronic device receives a second operation from the user on a first editing option among the plurality of image editing options, wherein the first editing option is related to the first image editing algorithm; In response to the second operation, the first electronic device obtains the second image; After acquiring the second image, the first electronic device receives a third operation from the user on the second editing option among the plurality of image editing options, the second editing option being related to the second image editing algorithm; In response to the third operation, the first electronic device obtains the first image; The first electronic device receives a fourth operation to save the first image; In response to the fourth operation, the first electronic device saves the first image and the editing history of the first image.
17. The method according to claim 15, 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, which includes the third image; The first electronic device receives editing operations from the user on the third image; In response to an editing operation on the third image, the first electronic device displays a third user interface, which includes the third image and multiple image 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 image editing options, wherein the first editing option is related to the first image editing algorithm and the second editing option is related to the second image editing algorithm; In response to the selection operation, the first electronic device processes the third image according to the first image editing algorithm and the second image editing algorithm to obtain the first image; The first electronic device receives a fourth operation to save the first image; In response to the fourth operation, the first electronic device saves the first image and the editing history of the first image.
18. The method according to any one of claims 15-17, characterized in that, The second user interface also includes the first node.
19. The method according to any one of claims 15-17, characterized in that, The second image was obtained by the first electronic device based on the first image editing algorithm on the basis of the third image.
20. The method according to any one of claims 15-17, 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 image and the identifier of the first image editing algorithm to the server; The first electronic device receives the second image sent by the server, the second image being obtained by the server based on the third image and using the first image editing algorithm; The first electronic device displays a second user interface, specifically including: In response to receiving the second image sent by the server, the first electronic device displays a second user interface.
21. The method according to any one of claims 15-17, characterized in that, The first image is obtained by processing the second image using the second image editing algorithm by the first electronic device.
22. The method according to any one of claims 15-17, characterized in that, The editing record of the first image also includes the identifier of the first image editing algorithm and the identifier of the second image editing algorithm.
23. The method according to claim 22, characterized in that, The first electronic device displays the first user interface, specifically including: In response to an editing operation on the first image, the first electronic device obtains the identifier of the first image editing algorithm and the identifier of the second image editing algorithm from the editing record of the first image; The first electronic device displays the first node and the second node on the first user interface based on the identifier of the first image editing algorithm and the identifier of the second image editing algorithm.
24. The method according to claim 22, characterized in that, 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 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.
25. An electronic device, specifically 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, the memory is used to store a computer program, and when the processor executes the computer program, the first electronic device performs the method of any one of claims 15-24.
26. A computer-readable storage medium comprising instructions, characterized in that, When the instructions are executed on the first electronic device, the first electronic device performs the method of any one of claims 15-24.
Citation Information
Patent Citations
Picture processing method and device and storage medium
CN107181670A
Method and device for displaying a history of image processing information
US6750890B1