Picture editing method and electronic equipment
By providing a personalized editing menu based on the information of the thing in the picture on an electronic device, the same problem caused by fixed parameters of picture editing in the prior art is solved, and personalized editing of every thing in the picture is achieved to meet user needs.
Patent Information
- Application Number
- CN202510061158.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-09-22
- Publication Date
- 2025-06-06
AI Technical Summary
The existing photo editing software uses fixed parameters to adjust the image when editing, resulting in the generated pictures being the same and unable to meet the personalized needs of users.
By implementing the image editing method on an electronic device, a personalized editing menu is displayed based on the information of the thing in the picture, allowing users to edit each thing separately to meet their personalized needs.
It realizes personalized editing of every thing in the picture, meets the personalized needs of users, and improves the practicality of picture editing.
Smart Images

Figure CN120107074A_ABST
Abstract
Description
[0001] This application is a divisional application. The application number of the original application is 202311240819.0, and the original application date is September 22, 2023. The entire contents of the original application are incorporated into this application by reference. Technical Field
[0002] The embodiments of the present application relate to the field of image processing technology, and in particular to a picture editing method and an electronic device. Background Art
[0003] In daily life, users can take photos and share photos (or pictures) through electronic devices. In order to make the photos on electronic devices better, users will use photo editing software to edit the photos, such as erasing passers-by and obstacles in the photos, beautifying the faces of people in the photos, etc.
[0004] Existing photo editing software provides many photo editing functions, such as a one-click beautification function. These photo editing functions all have pre-set fixed editing parameters. In this way, when an electronic device uses the photo editing software to edit a picture, the photo editing software can beautify the picture to be edited to a certain extent according to the parameter values of the pre-set different photo editing functions. In addition, when using the photo editing software to edit a picture, the user can save his or her various parameters as a template, and when other users edit the picture, they can apply the template to the user's picture to be edited.
[0005] However, when electronic devices use the photo editing software to edit pictures, fixed parameters are used for adjustment, and the overall picture is adjusted, so that pictures generated using the existing picture editing method are all the same and cannot meet the user's personalized needs for picture editing. Summary of the invention
[0006] The picture editing method and electronic device provided in this application realize personalized photo editing and can meet the user's personalized needs for picture editing.
[0007] In order to achieve the above-mentioned purpose, this application adopts the following technical solution.
[0008] In a first aspect, the present application provides a method for editing a picture. The execution subject of the method may be an electronic device or a component located in the electronic device (e.g., a chip, a chip system, or a processor, etc.). The following description is made by taking the execution subject being an electronic device as an example. The method may include: the electronic device displays a first picture, and the first picture includes a first thing. The electronic device displays an editing menu of the first thing based on information of the first thing, and in response to an operation on the editing menu, the electronic device edits the first thing.
[0009] The information of the first thing may include attribute information of the first thing, characteristic information of the first thing, and the primary and secondary of the first thing on the first picture. The attribute information may include the type of thing, such as the type of thing may include animals, people, plants, buildings, decorations, etc. The feature information may include shape, size, color, proportion in the picture, etc., which is not specifically limited in this application.
[0010] The priority of the first thing on the first picture may be set in advance, or may be determined based on other information of the first thing, such as one or more of attribute information, characteristic information and basic information.
[0011] In this way, the electronic device recommends an editing menu of the object according to the information of the object in the picture. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize individual editing of each object in the picture, and can realize personalized editing of each object, so as to meet the personalized needs of each object, and has high practicality.
[0012] In some design schemes, before displaying the editing menu of the first thing, the present application provides a picture editing method that also includes: the electronic device determines the editing menu of the first thing based on the information of the first thing, the priority of each information, and the correspondence between the information and the editing function items, and the editing menu includes at least one editing function item.
[0013] In this way, the electronic device recommends the editing menu of the object in a targeted manner according to the information of the object in the picture, so that each object corresponds to a separate editing menu. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize separate editing of each object in the picture, and can realize personalized editing of each object, meet the personalized needs of each object, and has high practicality.
[0014] In some design schemes, before displaying the editing menu of the first thing, the present application provides a picture editing method further including: the electronic device determines the editing menu of the first thing based on the information of the first thing and the user's historical behavior information.
[0015] In this way, the electronic device combines the user's historical behavior information and the information of the item to specifically recommend the editing menu of the item, and can recommend the editing menu based on the user's preferences. When the user operates the editing menu, the electronic device edits the first item according to the function of the editing menu, which can meet the preferences and aesthetics of different users, provide convenience for users to edit items, and improve user experience.
[0016] In one design solution, the electronic device displays an edit menu of the first thing based on information of the first thing. Specifically, in response to receiving an operation on the first thing, the electronic device displays an edit menu of the first thing.
[0017] In one design, the method further includes: in response to receiving an operation on the first thing, the electronic device marks and displays the first thing. The mark display may include: dotted line display, red display, bright light display, blurred display, etc. Of course, highlighting is not limited to the above. In this way, the electronic device can facilitate user selection and editing of the things in the picture by highlighting the things in the picture, and provide convenience for the user to edit the things later.
[0018] In one design scheme, the editing menu of the first thing includes at least one of the following items: deletion, beautification, background modification and AI photo editing.
[0019] In some design schemes, the first picture also includes a second thing. Before the electronic device displays an editing menu for the first thing based on information about the first thing, the present application provides a picture editing method that also includes: the electronic device determines, based on information about the first thing and information about the second thing, that the first thing is the main thing in the first picture, and the second thing is the secondary thing in the first picture; or, the first thing and the second thing are both the main things in the first picture.
[0020] In some design schemes, the present application provides a picture editing method that also includes: when the first thing and the second thing are both the main things in the first picture, the electronic device displays an editing menu for the first thing, and a first prompt information for the second thing, and the first prompt information is used to prompt the user whether to edit the second thing. In this way, the electronic device can filter out the main things and the secondary things by determining the primary and secondary of each thing in the picture. Afterwards, the electronic device can uniformly recommend an editing menu for the main things, or recommend an editing menu for the main things separately, or recommend a menu for one main thing, and display prompt information for other main things to prompt the user whether to edit. The electronic device can recommend deleting the editing menu for the secondary things. In this way, the electronic device can have a targeted recommendation menu, so that the image editing operation has primary and secondary, making the image editing operation easier.
[0021] In some design schemes, the present application provides a picture editing method further including: when the second thing is a secondary thing in the first picture, the editing menu of the second thing includes deletion.
[0022] In one design scheme, the editing menu of the first thing includes AI photo editing, and in response to a second operation on the editing menu, the electronic device edits the first thing, specifically: in response to the operation on the AI photo editing, the electronic device displays a first input box, and the first input box is an input box for the editing content of the first thing. The electronic device receives the editing content of the first thing input by the user in the first input box. The electronic device edits the first thing according to the editing content. Among them, the format of the editing content can be text format or audio format, which is not specifically limited in this application. In this way, the electronic device can realize automatic photo editing through AI photo editing, which simplifies the photo editing operation and makes photo editing more convenient and quick.
[0023] In one design scheme, the electronic device edits the first thing according to the edited content, which may be specifically as follows: the electronic device reports the edited content and information about the first thing to other devices, and the other devices edit the first thing according to the edited content and return the edited thing information. The electronic device displays the edited first thing according to the edited thing information. Among them, the other devices may include servers, cloud platforms, etc. In this way, the electronic device reduces the amount of calculation of the electronic device and saves the resources of the electronic device by reporting the edited content and information about the first thing to other devices, and the other devices edit the first thing.
[0024] In one design scheme, the electronic device displays the edited first thing according to the edited thing information, which can be specifically: the electronic device displays the edited first thing in a preset display mode according to the edited thing information. The preset display mode may include gradient display, fade-in display, flip display, blink display, etc., which need to be set according to actual needs during specific implementation. In this way, the electronic device displays the edited first thing in a preset display mode, which can achieve a dynamic photo editing effect, allowing the user to feel the changes before and after the photo editing, and improve the user's visual experience.
[0025] In some design schemes, before the electronic device displays an editing menu for the first thing based on the information of the first thing, the present application provides a picture editing method that also includes: the electronic device splits the first thing in the first picture. In this way, the electronic device can split the things in the picture. The electronic device recommends an editing menu for the thing based on the information of the thing. When the user operates the editing menu, the electronic device edits the first thing according to the function of the editing menu. In this way, the electronic device can edit the thing by splitting the thing in the picture, and can realize separate editing of each thing in the picture; the electronic device then recommends the editing menu of the thing based on the information of the thing, and can realize personalized editing of each thing, meet the personalized needs of each thing, and has high practicality.
[0026] In a design scheme, the electronic device splits the first thing in the first picture, which may specifically be: the electronic device splits the first thing in the first picture according to the correlation of image features of the first thing in the first picture.
[0027] In a design scheme, the electronic device splits the first thing in the first picture, which may specifically be: in response to an operation on the first thing, the electronic device splits the first thing in the first picture.
[0028] In a second aspect, the present application provides an electronic device, comprising: a display module and an editing module, wherein the display module is used to display a first picture, the first picture including a first thing. The display module is used to display an editing menu of the first thing according to information of the first thing. The editing module is used to edit the first thing in response to a second operation on the editing menu.
[0029] The information of the first thing may include attribute information of the first thing, characteristic information of the first thing, and the primary and secondary of the first thing on the first picture. The attribute information may include the type of thing, such as the type of thing may include animals, people, plants, buildings, decorations, etc. The feature information may include shape, size, color, proportion in the picture, etc., which is not specifically limited in this application.
[0030] The priority of the first thing on the first picture may be set in advance, or may be determined based on other information of the first thing, such as one or more of attribute information, characteristic information and basic information.
[0031] In this way, the electronic device recommends an editing menu of the object according to the information of the object in the picture. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize individual editing of each object in the picture, and can realize personalized editing of each object, so as to meet the personalized needs of each object, and has high practicality.
[0032] In some design schemes, the electronic device also includes: a determination module, wherein the determination module is used to determine an editing menu of the first thing based on the information of the first thing, the priority of each information, and the correspondence between the information and the editing function items, and the editing menu includes at least one editing function item.
[0033] In this way, the electronic device recommends the editing menu of the object in a targeted manner according to the information of the object in the picture, so that each object corresponds to a separate editing menu. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize separate editing of each object in the picture, and can realize personalized editing of each object, meet the personalized needs of each object, and has high practicality.
[0034] In one design solution, the determination module is used to determine an editing menu for the first thing based on information about the first thing and historical behavior information of the user.
[0035] In this way, the electronic device combines the user's historical behavior information and the information of the item to specifically recommend the editing menu of the item, and can recommend the editing menu based on the user's preferences. When the user operates the editing menu, the electronic device edits the first item according to the function of the editing menu, which can meet the preferences and aesthetics of different users, provide convenience for users to edit items, and improve user experience.
[0036] In one design solution, the display module is used to: in response to receiving an operation on the first thing, display an edit menu of the first thing.
[0037] In one design, the display module is used to: in response to receiving an operation on the first thing, mark and display the first thing. The highlighting display may include: dotted line display, red display, bright light display, blurred display, etc. Of course, the highlighting display is not limited to the above. In this way, the electronic device can facilitate user selection and editing of each thing by highlighting the thing in the picture, providing convenience for the user to edit the thing later.
[0038] In one design scheme, the editing menu of the first thing includes at least one of the following items: deletion, beautification, background modification and AI photo editing.
[0039] In one design scheme, the first picture also includes a second thing, and the determination module is used to: determine, based on information about the first thing and information about the second thing, that the first thing is the main thing in the first picture, and the second thing is the secondary thing in the first picture; or, that the first thing and the second thing are both the main things in the first picture.
[0040] In one design, the display module is used to: when the first thing and the second thing are both main things in the first picture, display an edit menu for the first thing and a first prompt message for the second thing, wherein the first prompt message is used to prompt the user whether to edit the second thing. In this way, the electronic device can filter out main things and secondary things by determining the primary and secondary of each thing in the picture. Afterwards, the electronic device can uniformly recommend an edit menu for the main things, or recommend an edit menu for the main things separately, or recommend a menu for one main thing and display prompt messages for other main things to prompt the user whether to edit. The electronic device can recommend deleting an edit menu for secondary things. In this way, the electronic device can have a targeted recommendation menu, so that the image editing operation has primary and secondary, making the image editing operation easier.
[0041] In one design solution, the display module is used for: when the second thing is a secondary thing in the first picture, the editing menu of the second thing includes deletion.
[0042] In one design scheme, the editing menu of the first thing includes AI photo editing, and the editing module is used to: in response to the operation of the AI photo editing, display a first input box, the first input box is an input box for the editing content of the first thing; receive the editing content of the first thing input by the user in the first input box; edit the first thing according to the editing content. Among them, the format of the editing content can be text format or audio format, which is not specifically limited in this application. In this way, the electronic device can realize automatic photo editing through AI photo editing, which simplifies the photo editing operation and makes photo editing more convenient and quick.
[0043] In one design, the editing module is used to: report the edited content and the information of the first thing to other devices, and the other devices edit the first thing according to the edited content and return the edited thing information; and display the edited first thing according to the edited thing information. In this way, the electronic device reduces the amount of calculation of the electronic device and saves the resources of the electronic device by reporting the edited content and the information of the first thing to other devices, and the other devices edit the first thing.
[0044] In one design, the display module is used to: display the edited first thing in a preset display mode according to the edited thing information. The preset display mode may include gradient display, fade-in display, flip display, blink display, etc., which need to be set according to actual needs during specific implementation. In this way, the electronic device uses the preset display mode to display the edited first thing, which can achieve a dynamic photo editing effect, allowing the user to feel the changes before and after the photo editing, and improve the user's visual experience.
[0045] In some design schemes, the electronic device further includes: a splitting module, wherein the splitting module is used to split the first thing in the first picture. In this way, the electronic device can split the thing in the picture. The electronic device recommends an editing menu for the thing based on the information of the thing. When the user operates the editing menu, the electronic device edits the first thing according to the function of the editing menu. In this way, the electronic device can edit the thing by splitting the thing in the picture, and can realize separate editing of each thing in the picture; the electronic device then recommends the editing menu of the thing based on the information of the thing, and can realize personalized editing of each thing, meet the personalized needs of each thing, and has high practicality.
[0046] In one design solution, the splitting module is used to split the first thing in the first picture according to the correlation of image features of the first thing in the first picture.
[0047] In one design solution, the splitting module is used to split the first thing in the first picture in response to an operation on the first thing.
[0048] In a third aspect, the present application provides an electronic device, comprising: one or more processors; and a memory, wherein the memory stores a code; when the code is executed by the processor, the electronic device executes the method described in the first aspect.
[0049] In a fourth aspect, the present application provides a computer-readable storage medium, which includes computer instructions. When the computer instructions are executed on an electronic device, the electronic device executes the method described in the first aspect.
[0050] Among them, the specific implementation methods and corresponding technical effects of each of the second to fourth aspects mentioned above can refer to the specific implementation methods and technical effects of the first aspect mentioned above. BRIEF DESCRIPTION OF THE DRAWINGS
[0051] Figure 1 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0052] Figure 2A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0053] Figure 3 A schematic diagram of a software architecture of an electronic device provided in an embodiment of the present application;
[0054] Figure 4 A schematic diagram of a process flow of a picture editing method provided in an embodiment of the present application;
[0055] Figure 5 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0056] Figure 6 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0057] Figure 7 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0058] Figure 8 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0059] Fig. 9 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0060] Fig.10 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0061] Fig.11 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0062] Figure 12-1 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0063] Figure 12-2 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0064] Fig.13 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0065] Fig.14 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0066] Fig.15A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0067] Fig.16 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0068] Fig.17 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0069] Fig.18 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0070] Fig.19 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0071] Fig. 20 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0072] Fig.21 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0073] Fig. 22 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0074] Fig.23 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0075] Fig.24 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0076] Fig.25 A schematic diagram of a gallery interface in an application scenario of a picture editing method provided in an embodiment of the present application;
[0077] Fig.26 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0078] In order to make the pictures on the electronic device better, the electronic device can be installed with photo editing software. Users will use photo editing software to edit photos, such as erasing passers-by and obstacles in the photos, beautifying the faces of portraits in the photos, etc. Specifically, the photo editing software will provide many photo editing functions, such as one-click beauty function, etc. These photo editing functions are all pre-set with fixed editing parameters. In this way, when the electronic device uses the photo editing software to edit pictures, the photo editing software can beautify the pictures to be edited to a certain extent according to the parameter values of different pre-set photo editing functions. In addition, when the user uses the photo editing software to edit pictures, the user can save his various parameters into a template, and when other users edit pictures, the template can be applied to the user's pictures to be edited. However, the photo editing software uses fixed editing parameters or templates to adjust the overall picture, so that the modified pictures are all the same, which cannot meet the user's personalized needs for picture editing.
[0079] In order to solve the above problems, an embodiment of the present application provides a picture editing method, which is applied to an electronic device, and the electronic device is installed with a first application. The electronic device receives an operation on the first interface of the first application, and displays a first picture, and the first picture includes a first thing. The electronic device splits the first thing in the first picture. The electronic device displays an editing menu of the first thing according to the first information of the first thing. In response to the operation on the editing menu, the electronic device edits the first thing according to the function of the editing menu. That is, the electronic device can split the things in the picture. The electronic device recommends an editing menu of the thing according to the information of the thing. When the user operates the editing menu, the electronic device edits the first thing according to the function of the editing menu. In this way, the electronic device can edit the thing by splitting the thing in the picture, and can realize separate editing of each thing in the picture; the electronic device then recommends the editing menu of the thing according to the information of the thing, and can realize personalized editing of each thing, meet the personalized needs of each thing, and has high practicality.
[0080] The first information of the first thing can be understood as the attribute information, feature information, etc. of the first thing. The attribute information may include the type of thing, such as the type of thing may include animals, people, plants, buildings, decorations, etc. The feature information may include shape, size, color, proportion in the picture, etc. Of course, the embodiments of the present application are not limited to this.
[0081] Figure 1 It is a structural block diagram of the above electronic equipment.
[0082] like Figure 1As shown, the electronic device 100 may include a processor 110, a memory 120, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, a wireless communication module 150, a sensor module 160, a button 170, a display screen 180, and a camera 190, etc. The sensor module 160 may include a pressure sensor 160A, a touch sensor 160B, etc.
[0083] It is to be understood that the structure illustrated in the embodiments of the present application does not constitute a specific limitation on the electronic device. In other embodiments of the present application, the electronic device may include more or fewer components than shown in the figure, or combine certain components, or split certain components, or arrange the components differently. The components shown in the figure may be implemented in hardware, software, or a combination of software and hardware.
[0084] The processor 110 may include one or more processing units, for example, the processor 110 may include an application processor (AP), a modem processor, a graphics processor (GPU), an image signal processor (ISP), a controller, a video codec, a digital signal processor (DSP), a baseband processor, and / or a neural-network processing unit (NPU), etc. Different processing units may be independent devices or integrated into one or more processors.
[0085] The controller can generate operation control signals according to the instruction operation code and timing signal to complete the control of instruction fetching and execution.
[0086] The processor 110 may also be provided with a memory for storing instructions and data. In some embodiments, the memory in the processor 110 is a cache memory. The memory may store instructions or data that the processor 110 has just used or cyclically used. If the processor 110 needs to use the instruction or data again, it may be directly called from the memory. This avoids repeated access, reduces the waiting time of the processor 110, and thus improves the efficiency of the system.
[0087] The charging management module 140 is used to receive charging input from a charger. The charger may be a wireless charger or a wired charger. In some wired charging embodiments, the charging management module 140 may receive charging input from a wired charger through the USB interface 130. In some wireless charging embodiments, the charging management module 140 may receive wireless charging input through a wireless charging coil of an electronic device. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.
[0088] The power management module 141 is used to connect the battery 142, the charging management module 140 and the processor 110. The power management module 141 receives input from the battery 142 and / or the charging management module 140, and supplies power to the processor 110, the memory 120, the display screen 180, and the wireless communication module 150. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle number, battery health status (leakage, impedance), etc. In some other embodiments, the power management module 141 can also be set in the processor 110. In other embodiments, the power management module 141 and the charging management module 140 can also be set in the same device.
[0089] The wireless communication function of the electronic device can be implemented through the antenna 1, the wireless communication module 150, the modem processor and the baseband processor.
[0090] Antenna 1 is used to transmit and receive electromagnetic wave signals. Each antenna in the electronic device can be used to cover a single or multiple communication frequency bands. Different antennas can also be reused to improve the utilization of the antenna. For example, antenna 1 can be reused as a diversity antenna for a wireless local area network. In some other embodiments, the antenna can be used in combination with a tuning switch.
[0091] The wireless communication module 150 can provide wireless communication solutions for electronic devices, including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc. The wireless communication module 150 can be one or more devices integrating at least one communication processing module. The wireless communication module 150 receives electromagnetic waves via the antenna 1, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 150 can also receive the signal to be sent from the processor 110, modulate the frequency of the signal, amplify it, and convert it into electromagnetic waves for radiation through the antenna 1.
[0092] The electronic device implements the display function through a GPU, a display screen 180, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 180 and the application processor. The GPU is used to perform mathematical and geometric calculations for graphics rendering. The processor 110 may include one or more GPUs that execute program instructions to generate or change display information.
[0093] The display screen 180 is used to display images, videos, etc. The display screen 180 includes a display panel. The display panel can be a liquid crystal display (LCD), an organic light-emitting diode (OLED), an active-matrix organic light-emitting diode or an active-matrix organic light-emitting diode (AMOLED), a flexible light-emitting diode (FLED), Miniled, MicroLed, Micro-oLed, a quantum dot light-emitting diode (QLED), etc. In some embodiments, the electronic device may include 1 or N display screens 180, where N is a positive integer greater than 1.
[0094] The electronic device can realize the shooting function through an ISP, a video codec, a GPU, a display screen 180, and an application processor.
[0095] The ISP is used to process the data fed back by the camera 190. For example, when taking a photo, the shutter is opened, and the light is transmitted to the camera photosensitive element through the lens. The light signal is converted into an electrical signal, and the camera photosensitive element transmits the electrical signal to the ISP for processing and converts it into an image visible to the naked eye. The ISP can also perform algorithm optimization on the noise and brightness of the image. The ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, the ISP can be set in the camera 190.
[0096] The camera 190 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then transmits the electrical signal to the ISP for conversion into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB (RGB represents the three colors red, green, and blue), YUV ("Y" represents brightness (Luminance or Luma), that is, the grayscale value, and "U" and "V" represent chrominance (Chrominance or Chroma)) format. In some embodiments, the electronic device may include 1 or N cameras 190, where N is a positive integer greater than 1.
[0097] Digital signal processors are used to process digital signals. In addition to processing digital image signals, they can also process other digital signals. For example, when an electronic device selects a frequency point, a digital signal processor is used to perform Fourier transform on the frequency point energy.
[0098] Video codecs are used to compress or decompress digital videos. Electronic devices can support one or more video codecs. In this way, electronic devices can play or record videos in multiple coding formats, such as Moving Picture Experts Group (MPEG) 1, MPEG2, MPEG3, MPEG4, etc.
[0099] NPU is a neural network (NN) computing processor. By drawing on the structure of biological neural networks, such as the transmission mode between neurons in the human brain, it can quickly process input information and continuously self-learn. NPU can realize applications such as intelligent cognition of electronic devices, such as image recognition, face recognition, voice recognition, text understanding, etc.
[0100] The memory 120 can be used to store computer executable program codes, which include instructions. The memory 120 may include a program storage area and a data storage area. Among them, the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc. The data storage area may store data created during the use of the electronic device (such as audio data, a phone book, etc.), etc. In addition, the memory 120 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc. The processor 110 executes various functional applications and data processing of the electronic device by running instructions stored in the memory 120, and / or instructions stored in a memory provided in the processor.
[0101] The pressure sensor 160A is used to sense the pressure signal and can convert the pressure signal into an electrical signal. In some embodiments, the pressure sensor 160A can be set on the display screen 180. There are many types of pressure sensors 160A, such as resistive pressure sensors, inductive pressure sensors, capacitive pressure sensors, etc. The capacitive pressure sensor can be a parallel plate including at least two conductive materials. When a force acts on the pressure sensor 160A, the capacitance between the electrodes changes. The electronic device determines the intensity of the pressure based on the change in capacitance. When a touch operation acts on the display screen 180, the electronic device detects the touch operation intensity according to the pressure sensor 160A. The electronic device can also calculate the touch position according to the detection signal of the pressure sensor 160A. In some embodiments, touch operations acting on the same touch position but with different touch operation intensities can correspond to different operation instructions. For example: when a touch operation with a touch operation intensity less than the first pressure threshold acts on the short message application icon, an instruction to view the short message is executed. When a touch operation with a touch operation intensity greater than or equal to the first pressure threshold acts on the short message application icon, an instruction to create a new short message is executed.
[0102] The touch sensor 160B is also called a "touch control device". The touch sensor 160B can be arranged on the display screen 180, and the touch sensor 160B and the display screen 180 form a touch screen, also called a "touch control screen". The touch sensor 160B is used to detect touch operations acting on or near it. The touch sensor can pass 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 the display screen 180. In other embodiments, the touch sensor 160B can also be arranged on the surface of the electronic device, which is different from the position of the display screen 180.
[0103] The key 170 includes a power key, a volume key, etc. The key 170 can be a mechanical key or a touch key. The electronic device can receive key input and generate key signal input related to user settings and function control of the electronic device.
[0104] Of course, the electronic device may also include other functional units, which are not limited in the embodiments of the present application.
[0105] The electronic device 100 is an electronic device with an image display function. Illustratively, the electronic device 100 may be a mobile phone, a tablet computer (Pad), a laptop, a notebook computer, an ultra-mobile personal computer (UMPC), a handheld computer, a netbook, a personal digital assistant (PDA), a wearable electronic device, etc.
[0106] See also Figure 2 and Figure 3 , Figure 2 and Figure 3 It is a software structure block diagram of the electronic device provided in the embodiment of the present application.
[0107] like Figure 2 and Figure 3 As shown, the layered architecture divides the software into several layers, each with a clear role and division of labor. The layers communicate with each other through software interfaces. In some feasible implementations, the operating system of the electronic device can be divided from top to bottom into: application layer, application framework layer, Android runtime and system library, and kernel layer.
[0108] The application layer can include a series of application packages.
[0109] like Figure 2 and Figure 3 As shown, the application package may include account application, Bluetooth, device management application (application with device management function), navigation, memo, WLAN, short message, gallery, camera, calendar, call and other applications (application, APP).
[0110] The application framework layer provides application programming interface and programming framework for the applications in the application layer. The application framework layer includes some predefined functions.
[0111] like Figure 2 and Figure 3 As shown, the application framework layer may include a window manager, a content provider, a view system, a phone manager, a resource manager, a notification manager, and the like.
[0112] The window manager is used to manage window programs. The window manager can obtain the display screen size, determine whether there is a status bar, lock the screen, capture the screen, etc.
[0113] Content providers are used to store and retrieve data and make it accessible to applications. The above data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.
[0114] The view system includes visual controls, such as controls for displaying text, controls for displaying images, etc. The view system can be used to build applications. A display interface can be composed of one or more views. For example, a display interface including a text notification icon can include a view for displaying text and a view for displaying images.
[0115] The phone manager is used to provide communication functions for the device, such as the management of call status (including answering, hanging up, etc.).
[0116] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.
[0117] The notification manager enables applications to display notification information in the status bar. It can be used to convey notification-type messages and can disappear automatically after a short stay without user interaction. For example, the notification manager is used to notify download completion, message reminders, etc. The notification manager can also be a notification that appears in the system top status bar in the form of a chart or scroll bar text, such as notifications from applications running in the background, or a notification that appears on the screen in the form of a dialogue interface. For example, a text message is displayed in the status bar, a prompt sound is emitted, an electronic device vibrates, an indicator light flashes, etc.
[0118] Android Runtime includes core libraries and virtual machines. Android runtime is responsible for the scheduling and management of the operating system.
[0119] The core library consists of two parts: one part is the function that the Java language needs to call, and the other part is the core library.
[0120] The application layer and the application framework layer run in a virtual machine. The virtual machine executes the Java files of the application layer and the application framework layer as binary files. The virtual machine is used to perform functions such as object life cycle management, stack management, thread management, security and exception management, and garbage collection.
[0121] The system library may include multiple functional modules, such as surface manager, media library, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.
[0122] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.
[0123] The media library supports playback and recording of a variety of commonly used audio and video formats, as well as static image files, etc. The media library can support a variety of audio and video encoding formats, such as: MPEG4, H.264, MP3, AAC, AMR, JPG, PNG, etc.
[0124] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.
[0125] A 2D graphics engine is a drawing engine for 2D drawings.
[0126] The kernel layer is the layer between hardware and software. The kernel layer contains at least display driver, camera driver, audio driver, and sensor driver. The kernel layer also includes image segmentation module, menu module, editing module, and semantic understanding module. Among them, the image segmentation module is used to split the image of each object in the picture. The menu module is used to recommend the editing menu corresponding to each object. The editing module is used to edit the object according to the editing parameters. The semantic understanding module is used to understand the objects in the picture.
[0127] It should be noted that Figure 2 and Figure 3 The modules shown in can be integrated into the application framework layer, or integrated into a specific application, such as the library response in. The embodiments of the present application are not specifically limited.
[0128] In one example, based on the above Figure 2The specific working process of the software architecture of the electronic device 100 shown above can be: Step ① The electronic device 100 receives the user's operation on the application icon of the first application. The electronic device 100 displays the interface of the first application, on which the first picture is displayed, and the first picture may include the first thing. The image segmentation module of the electronic device 100 splits the first thing in the first picture. Step ② The image segmentation module of the electronic device 100 sends the information of the split first thing to the semantic understanding module, and the semantic understanding module understands the first thing according to the information of the first thing. Step ③ The semantic understanding module generates an instruction to command the menu module of the electronic device 100 to recommend an editing menu for the first thing. Step ④ The electronic device 100 displays the editing menu of the first thing recommended by the menu module. Step ⑤ The electronic device 100 receives the user's operation on the editing menu. Step ⑥ In response to the operation, the editing module of the electronic device 100 edits the first thing according to the parameters of the editing menu. Step ⑦ The electronic device 100 displays the edited first picture.
[0129] In another example, based on the above Figure 3 The specific working process of the communication system and software architecture of the electronic device 100 shown above can be: Compared with the above, the difference is that in step ⑤, the electronic device 100 receives the user's operation on the editing menu, and the editing menu can be AI editing. In response to the operation, the electronic device 100 displays an input box. After the user enters the editing content in the input box, the electronic device 100 executes step ⑧ The semantic understanding module understands the semantics expressed by the editing content. Step ⑨ The semantic understanding module uploads the understood semantics and the information of the first thing to other devices, such as the server 200, and the server 200 edits the first thing according to the semantics understood by the semantic understanding module and the information of the first thing to obtain the edited thing information. Step ⑩ The server 200 sends the edited thing information to the editing module, and then, in step ⑦, the editing module sends the edited thing information to the application layer for display, at which time, the electronic device 100 displays the edited first picture. Of course, when the user enters the editing content of the first thing in the first input box, the electronic device 100 can edit the first thing according to the editing content. Specifically, the semantic understanding module of the electronic device 100 understands the semantics expressed by the editing content and sends the understood semantics to the editing module. The editing module can edit the first thing according to the semantics understood by the semantic understanding module, which is not specifically limited in the embodiments of the present application.
[0130] Figure 4 A flowchart of a method for editing a picture provided in an embodiment of the present application is shown in FIG. Figure 4 As shown, the method may include: S400-S406 (some of which are optional). For details of S400-S406, please refer to the description of the following embodiment. Specifically, it may be:
[0131] S400: The electronic device starts a gallery application and displays interface 1 of the gallery application.
[0132] In one example, if Figure 5 As shown, the user clicks on the interface 110 of the electronic device 100 to display the icon 111 of the gallery application. In response to the user's click operation, the electronic device 100 starts the gallery application. The display interface of the electronic device 100 jumps to Figure 6 The interface 120 (ie, interface one) shown includes multiple pictures on the interface 120 , including a first picture. For example, the first picture may be picture 121 .
[0133] S401. The electronic device receives an operation 1 on an interface 1 of a gallery application, where the operation 1 is used to trigger display of a first picture on an interface 2.
[0134] The operation may include a click operation, a press operation, a slide operation, etc.
[0135] In one example, operation 1 may be a click operation, and interface 1 may include thumbnails of multiple pictures. Accordingly, operation 1 on interface 1 of the gallery application may be understood as a click operation on the thumbnail of the first picture. Figure 6 The picture shown (ie, the thumbnail of the first picture) 121. The electronic device receives an operation of the user clicking on the picture 121.
[0136] S402. In response to operation one, the electronic device displays interface two, on which a first picture is displayed, and the first picture includes at least one thing.
[0137] Among them, things may include people, animals, buildings, decorations, etc. Of course, the things may also include others, such as plants, the sky, etc. This is not specifically limited in the embodiments of the present application.
[0138] In one example, continuing with the above example, in response to a user's Figure 6 The electronic device displays the click operation of the picture 121 shown in Figure 7 The interface 130 shown is a display interface of the first picture corresponding to the picture 121. The interface may include the picture 121, and controls for sharing the picture, controls for collecting the picture, controls 131 for editing the picture, controls for deleting the picture, and the like.
[0139] In a specific implementation manner, S400-S402 may refer to the above Figure 2 and Figure 3 Step ① in the above will not be repeated here.
[0140] S403: The electronic device separates the first object in the first picture.
[0141] The splitting of the first thing in the first picture can be understood as separating the first thing from other things in the first picture. In this way, when the user operates the first thing, other things in the picture will not be affected.
[0142] In a specific implementable manner, S403 can be specifically implemented as follows: S4031. The electronic device splits the first thing in the first picture according to the correlation of the image features of the first thing in the first picture. Specifically, the electronic device can use the segment anything model (SAM) to split the first thing in the first picture. Of course, the electronic device can split each thing in the first picture. Alternatively, the electronic device can also split several things in the first picture. This is not specifically limited in the embodiments of the present application, and needs to be determined according to actual conditions during specific implementation.
[0143] In a specific achievable manner, the timing of the electronic device splitting the first thing in the first picture may include:
[0144] At the first opportunity, when the electronic device captures the first picture, the electronic device separates the first thing in the first picture.
[0145] Opportunity two: after the electronic device captures the first picture and is in an idle state, the electronic device separates the first thing in the first picture.
[0146] Opportunity three: when the electronic device displays the first picture, the electronic device splits the first thing in the first picture.
[0147] Opportunity four: When the electronic device receives an operation of the user on the first picture, in response to the operation, the electronic device splits the first thing in the first picture. The operation may include a long press operation, which can be understood as a press time greater than a preset time, for example, a long press operation is an operation of pressing for more than 3 seconds, or a long press operation is an operation of pressing for more than 5 seconds. In one example, when the electronic device receives an operation of the user on the first thing in the first picture, in response to the operation, the electronic device splits the first thing in the first picture. Exemplarily, the electronic device receives a user click on Figure 7 The long press operation of the traffic cone A shown in the figure, in response to which the electronic device splits the traffic cone A in the first picture.
[0148] In a specific implementation method, S403 can be specifically referred to above. Figure 2 and Figure 3 Step ② in the above will not be repeated here.
[0149] In this way, the electronic device can edit the object by splitting the object in the picture, and can edit each object in the picture separately without affecting other objects, so that each object can be personalized edited to meet the personalized needs of each object, which is highly practical.
[0150] S404: The electronic device highlights the first thing in the first picture.
[0151] Among them, highlighting can be understood as marking display. The purpose of the highlighting is to inform the user that the highlighted object can be edited separately. The highlighting can be expressed in the form of dotted line display, red display, bright light display, blurred display, etc. Of course, the highlighting is not limited to the above-mentioned examples, and is not specifically limited in the embodiments of the present application.
[0152] In a specific implementation, S404 may be implemented as follows: when the user operates the first thing in the first picture, the electronic device highlights the first thing in the first picture. Figure 7 When the traffic cone A is shown, the electronic device separates the traffic cone A from other objects in the first picture. At this time, the electronic device displays Figure 8 In the interface 140 shown, the traffic cone A is highlighted, for example, the outline of the traffic cone A is displayed as a dotted line, the traffic cone A is displayed as a red mark, the area frame of the traffic cone A is displayed as a dotted line, or the traffic cone A is displayed as a mark.
[0153] In this way, the electronic device can split the objects in the picture and highlight the split objects, which makes it easier for users to select and edit the objects, thereby facilitating subsequent editing of the objects by the users.
[0154] In a specific implementation, when the electronic device receives an operation on the first picture by the user, in response to the operation, the first thing is highlighted on the electronic device, and the operation may include a long press operation, and the long press operation may be understood as a press time greater than a preset time, for example, a long press operation is an operation of pressing for more than 3 seconds, or a long press operation is an operation of pressing for more than 5 seconds. In addition, when the electronic device highlights the first thing, when the user operates the second thing in the first picture, the electronic device highlights the second thing. The operation on the second thing may include a click operation on the second thing, such as a single-click operation. Exemplarily, the above example is continued, such as Figure 7 As shown, when the user long presses the traffic cone A, the electronic device highlights the traffic cone A. At this time, the electronic device enters the object marking state. Figure 7When the character B shown in the figure is displayed, the electronic device can display the character B in a dotted line display mode. That is, when the electronic device is in the object marking state, it can switch and highlight each object based on the user's switching operation between the objects.
[0155] It should be noted that, in the embodiment of the present application, S404 may be an optional step.
[0156] S405. The electronic device displays an edit menu of the first thing on the second interface according to the information of the first thing.
[0157] In one example, the information of the first thing is used to characterize the first thing. The information of the first thing may include feature information or description information of the first thing. The information of the first thing may include type, attribute, primary and secondary in the picture, etc. The primary and secondary of the thing in the picture may be predefined or determined according to the type and / or attribute of the first thing, which is not specifically limited in the embodiment of the present application.
[0158] In one example, the editing menu may include at least one of the following editing function items: deletion, beautification, background modification, and artificial intelligence (AI) photo editing. Among them, background modification may include at least one of background replacement, background blur, and background decolorization. Beautification may include at least one of one-key beautification, whitening, three-dimensional, smooth, and skin color. Of course, the embodiments of the present application are not limited to the above examples.
[0159] In one example, the editing menu is determined based on the information of the first thing, that is, the electronic device can intelligently recommend the editing menu corresponding to the first thing based on the information of the first thing. In a specific implementable manner, S405 can specifically be: the electronic device determines the editing menu of the first thing based on the information of the first thing, the priority of each information, and the correspondence between the information and the editing function items. Exemplarily, it is assumed that: the priority of a person is greater than the priority of an object, and the editing function items corresponding to the person are deletion, beautification, and modification of the background, and the editing function items corresponding to the object are deletion and modification of the background. Based on this, if the first thing is a person, the electronic device can determine that the editing menu of the first thing can include deletion, beautification, and modification of the background. If the first thing is an object, the electronic device can determine that the editing menu of the first thing can include deletion and modification of the background.
[0160] In the embodiment of the present application, the electronic device specifically recommends an editing menu for the object based on the information of the object in the picture, so that each object corresponds to a separate editing menu. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize separate editing of each object in the picture, and can realize personalized editing of each object, meet the personalized needs of each object, and has high practicality.
[0161] In another specific implementation, S405 may specifically be: the electronic device determines the editing menu of the first thing according to the information of the first thing, the priority of each information, the priority of the first thing in the picture, and the corresponding relationship between the information and the editing function items. Among them, the determination of the priority of the thing in the picture can be referred to in the relevant description below, which will not be repeated here. Exemplarily, it is assumed that the priority of the person is greater than the priority of the object, the person is the main thing in the picture, the object is the secondary thing in the picture, the editing function items corresponding to the person are deletion, beautification, and background modification, and the editing function items corresponding to the object are deletion and background modification. Based on this, if the first thing is a person, the electronic device may determine that the editing menu of the first thing may include deletion, beautification, and background modification. If the first thing is an object, the electronic device may determine that the editing menu of the first thing may include deletion and background modification. Exemplarily, if the first thing is a person and the first thing is the main thing in the picture, the electronic device may determine that the editing menu of the first thing may include beauty. The electronic device may also further determine the blurriness / clarity of things other than the person in the picture, and determine that the editing menu of the thing may include background replacement, high-definition repair, etc.
[0162] In another example, the editing menu is determined based on the user's historical behavior, that is, the electronic device can record the user's historical behavior and recommend an editing menu corresponding to the first thing based on the user's historical behavior. The user's historical behavior may include the user's dressing style, the user's picture editing behavior, the user's preferences, etc. Exemplarily, assuming that the picture includes a user image, and the user's historical behavior includes the user's dressing style, such as an intellectual style. Then, the electronic device can display an editing menu for the user image, and the editing menu may be a one-key beauty, and the editing parameters of the one-key beauty are the intellectual style retouching parameters.
[0163] Of course, the editing menu may also be determined based on the information of the first thing and the historical behavior of the user. For example, assuming that the picture includes a user image, and the historical behavior of the user includes modifying the background of the picture, then the electronic device may display an editing menu for the user image, and the editing menu may be to modify the background.
[0164] In the embodiment of the present application, the electronic device combines the user's historical behavior information and the information of the object to specifically recommend the editing menu of the object, and can recommend the editing menu in combination with the user's preferences. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu, which can meet the preferences and aesthetics of different users, provide convenience for users to edit objects, and improve user experience.
[0165] In one example, the electronic device may spontaneously display an edit menu of the first thing on the second interface according to the information of the first thing; or the electronic device may also display an edit menu of the first thing on the second interface according to the information of the first thing under the triggering of the user. The following is a detailed description:
[0166] First, the electronic device spontaneously displays an editing menu for the first thing.
[0167] That is, the electronic device can spontaneously display an editing menu of the first thing on interface two according to the information of the first thing.
[0168] In a specific implementation, S405 may be: the electronic device may display an edit menu of the first object on interface 2 according to the information of the first object. For example, assuming that object A is a traffic cone A and object B is a person B. The electronic device may display an edit menu of object A as Delete and an edit menu of object B as Beautify.
[0169] In another specific implementation, S405 may be: the electronic device may determine the main thing among the things according to the information of each thing, and then display the editing menu of the main thing on the second interface. That is, the electronic device may display the editing menu of at least one thing on the second interface according to the information of each thing. In other words, when there are multiple main things in the picture, the electronic device may display the editing menu of each main thing, or may display the common editing menu or comprehensive editing menu of the main things, or may display the editing menu of a main thing, and display prompt information for other main things, and the prompt information is used to prompt the user whether to edit the thing.
[0170] Exemplarily, S405 can be specifically implemented as follows: S4051. The electronic device determines that the first thing in the first picture is the main thing based on the information of each thing and its importance level. For example, assume that: the importance level of the person is 3, the importance level of the object is 2, the importance level of the thing size in the picture is greater than the threshold value, the importance level of the thing size in the picture is less than or equal to the threshold value, thing a is a person and its proportion in the picture is greater than the threshold value, thing b is an object and its proportion in the picture is less than the threshold value, then the importance level of thing a is 3+2=5, and the importance level of thing b is 2+1=3. If the importance level of thing a is greater than the importance level of thing b, then the electronic device determines that thing a is the main thing and thing b is the secondary thing. S4052. The electronic device displays the editing menu of the first thing on interface two. Exemplarily, continuing the above example, the electronic device displays the editing menu of thing a.
[0171] Exemplarily, S405 can be specifically implemented as follows: S4053. The electronic device determines that the first thing and the second thing in the first picture are both main things based on the information of each thing and its importance level. For example, suppose: the importance level of the person is 3, the importance level of the object is 2, the importance level of the object size in the picture is greater than the threshold value, the importance level of the object size in the picture is less than or equal to the threshold value, thing a is a person and its proportion in the picture is less than the threshold value, thing b is an object and its proportion in the picture is greater than the threshold value, then the importance level of thing a is 3+2=5, and the importance level of thing b is 2+3=5. If the importance level of thing a is consistent with the importance level of thing b, then the electronic device determines that thing a and thing b are both main things. S4054. The electronic device displays the editing menu of the first thing on interface two, and displays the prompt information of the second thing. Exemplarily, continuing the above example, the electronic device displays the editing menu of thing a as beauty and background modification, and displays the prompt information of thing b as "whether to edit thing b". For another example, Figure 12-2 As shown, in the first picture, both character B and character C are main objects, and the electronic device displays an edit menu for character B and prompt information 143 corresponding to character C, such as "Do you want to edit?" If the user clicks the "Yes" control, the electronic device displays an edit menu for character C; if the user clicks the "No" control, the electronic device determines that the user does not need to edit character C.
[0172] In an embodiment of the present application, the electronic device can screen out the main and secondary things by determining the primary and secondary of each thing in the picture. Afterwards, the electronic device can uniformly recommend an edit menu for the main things, or recommend an edit menu for the main things separately, or recommend a menu for one main thing, and display prompt information for other main things to prompt the user whether to edit. The electronic device can recommend deleting the edit menu for the secondary things. In this way, the electronic device can have a targeted recommendation menu, so that the image editing operation has primary and secondary, making the image editing operation easier.
[0173] The second type is that the electronic device displays an editing menu for the first thing when triggered by the user.
[0174] That is, the electronic device can display an edit menu of the first thing on the second interface in response to the user operation and according to the information of the first thing. The user operation can be understood as the user's operation on the first picture, or the user's operation on a thing on the first picture. The operation can include a click operation, a long press operation, etc. The long press operation can be understood as a press time greater than a preset time, for example, a long press operation is an operation of pressing for more than 3 seconds.
[0175] In a specific implementation, S405 may be: the electronic device receives an operation of the user on the first picture, and in response to the operation, the electronic device displays an edit menu of the first thing on interface 2 according to the information of the first thing. Exemplarily, when the user clicks on the display area of the first picture, the electronic device may display an edit menu of the first thing according to the information of the first thing in the first picture.
[0176] In another specific implementation, S405 may be: the electronic device receives an operation of the user on the first item among the items, and in response to the operation, the electronic device displays an edit menu of the first item on the second interface according to the information of the first item. Figure 7 When the traffic cone A shown in FIG. 1 is clicked, the electronic device receives a click operation by the user. In response to the operation, the electronic device displays Figure 8 The interface 140 shown in the figure displays an edit menu 141 for traffic cone A. The edit menu 141 is for deletion. Fig.10 When the electronic device receives the user's click operation, the electronic device displays Fig.11 The interface 140 shown displays an editing menu 142 of the character B, and the editing menu 142 includes deletion, beautification, and background modification.
[0177] In a specific implementation method, S405 can be specifically referred to above. Figure 2 and Figure 3Steps ③ and ④ in the above will not be repeated here.
[0178] In this way, the electronic device can edit the object by splitting the object in the picture, and can realize individual editing of each object in the picture; the electronic device can then recommend the editing menu of the object through the information of the object, and can realize personalized editing of each object to meet the personalized needs of each object, which is highly practical.
[0179] In addition, the electronic device can also recommend editing menus for various items based on the user's historical behavior, which can meet the preferences and aesthetics of different users, provide convenience for users to edit items, and improve user experience.
[0180] S406: In response to the operation of the edit menu of the first thing, the electronic device edits the first thing according to the function of the edit menu.
[0181] The electronic device may edit the first thing locally, or upload the edited content of the first thing to the server, and the server edits the first thing. The details are as follows:
[0182] In a specific implementation, the editing menu may include AI photo editing, and S406 may specifically be: in response to the AI photo editing operation corresponding to the first thing, the electronic device displays a first input box, and the first input box is the input box of the first thing. When the user enters the editing content of the first thing in the first input box, the electronic device edits the first thing according to the editing content. Among them, the format of the editing content can be text format or audio format, which is not specifically limited in the embodiments of the present application. Specifically, S406 can be specifically referred to above Figure 2 Steps ⑤ to ⑦ in the above are not described in detail here. In the embodiment of the present application, the electronic device can automatically retouch the picture through the AI retouch method, which simplifies the retouch operation and makes the retouch more convenient and quick.
[0183] In another specific implementable manner, the editing menu may include AI photo editing, and S406 may specifically be: The difference compared to the above is that when the user enters the editing content of the first thing in the first input box, the electronic device reports the editing content and the information of the first thing to other devices (such as servers, cloud platforms, etc.), and the other devices edit the first thing according to the editing content, and return the edited thing information. The electronic device displays the edited first thing based on the edited thing information. Among them, the information of the first thing may include the coordinate information of the first thing in the picture. Of course, the electronic device can also report the information of the first picture to other devices. Specifically, S406 can be specifically referred to above Figure 3Steps ⑤, ⑧, ⑨, ⑩ and ⑦ in the embodiment of the present application are not repeated here. In the embodiment of the present application, the electronic device reports the edited content and the information of the first thing to other devices, and the other devices edit the first thing, thereby reducing the calculation amount of the electronic device and saving the resources of the electronic device.
[0184] Different things have different corresponding editing menus. The following is a detailed description of different things, their corresponding editing menus and scenarios:
[0185] Scene 1: The scene of deleting objects.
[0186] In a specific implementation, Figure 8 As shown, the first thing is an object, and the edit menu is delete, then S406 can be specifically implemented as: in response to the delete operation on the first thing, the electronic device deletes the first thing. Figure 8 As shown, the electronic device receives a click operation of the user on the edit menu (i.e., delete) 141 of the traffic cone A. In response to the operation, the electronic device deletes the traffic cone A and fills the area where the traffic cone A is located according to the image features outside the area. At this time, the interface of the electronic device is as follows: Figure 8 The interface 140 shown becomes Fig. 9 The interface 140 shown in the figure shows that the traffic cone A has disappeared, and the area where the original traffic cone A is located is filled with the image features of the street along the edge of the area. Fig. 9 Pictures shown.
[0187] Scene 2: Beautify the portrait.
[0188] In a specific implementation, Fig.11 As shown, the first thing is a person, and the editing menu includes deletion, beautification, background modification, etc. Then, S406 can be specifically implemented as follows: S4061. In response to a click operation on the beautification menu corresponding to the person, the electronic device displays interface three, which displays the image of the person and the function items of the beautification menu, including one-click beautification, smoothness, skin color, whitening, and three-dimensional. Of course, the function items of the beautification menu are not limited to the above-mentioned ones, and can also include enlarged eyes, which is not specifically limited in the embodiments of the present application. For example, Fig.11 As shown, the electronic device receives a click operation of the user on the edit menu (i.e., beauty) of character B. In response to this operation, the electronic device displays Figure 12-1 The interface 140 shown includes first function items such as one-key beauty, smooth, skin color, whitening and three-dimensional. S4062: In response to the operation of the first function item, the electronic device edits the character according to the parameters of the function item. For example, Figure 12-1As shown, the first function item is smooth. When the user clicks on smooth, the electronic device performs a smooth repair operation on the face of person B according to the parameters of the smooth function item. Similarly, the first function item is one-key beautification. When the user clicks on one-key beautification, the electronic device performs a beautification operation on the face of person B according to the parameters of the one-key beautification.
[0189] In another specific implementation, the difference from the above is that the electronic device receives the user's operation on the character image on interface three, and the operation may include a drag operation, a move operation, a zoom operation, etc. In response to the user's operation, the electronic device adjusts the position and size of the character image on interface three. When one or more sides of the character image exceed the display screen of the electronic device, the electronic device receives the user's combined operation on the character image and the above-mentioned function items, and the combined operation may include a long press operation on the character image and a click operation on the function item. In response to this operation, the electronic device adjusts the character image to display in the middle area of the display screen, that is, the electronic device displays the character image in the center of the display screen. Exemplarily, such as Figure 12-1 As shown, when the image of person B exceeds the display screen of the electronic device 100, the user long presses the image of person B and then clicks the one-key beauty function item. At this time, in response to the operation, the electronic device 100 displays the image of person B in the center of the display screen and performs a one-key beauty editing operation on the image of person B.
[0190] In another specific implementation, the difference from the above is that the interface 3 displays the image of the person after one-key beautification and the function items of the beautification menu. That is, when the user operates the beautification editing menu, the electronic device performs the one-key beautification editing operation by default. For example, Fig.11 As shown in FIG. 1 , when the user clicks the beauty editing menu, the electronic device 100 performs a one-key beauty operation on the image of person B and jumps to Figure 12-1 The interface 140 shown in the figure shows that the image of person B is a beautified image. If the user is not satisfied with the image, the user can operate Figure 12-1 The electronic device 100 can readjust the editing parameters of the image of person B according to the user's operation to re-edit the image of person B by showing the function items of smoothness, skin color, whitening and three-dimensional on the interface 140 shown.
[0191] Scene three: the scene of modifying the background of the portrait.
[0192] In a specific implementation, Fig.13As shown, the first thing is a person, and the edit menu includes deletion, beautification, background modification, etc. Then, S406 can be specifically implemented as follows: S4063. In response to a click operation on the background modification menu corresponding to the person, the electronic device displays interface 4, which displays function items of the background modification menu, including background blur, background replacement, background decolorization, etc. For example, Fig.13 As shown, the electronic device receives a click operation of the user on the edit menu (i.e., modify the background) of character B. In response to this operation, the electronic device displays Fig.14 The interface 140 shown includes second function items such as background blur, background replacement, background decolorization, etc. S4064: In response to the operation on the second function item, the electronic device edits the character according to the parameters of the function item.
[0193] For example, Fig.14 As shown, the second function item is background blur 144. When the user clicks on background blur 144, the electronic device blurs the area except person B in the first picture according to the parameters of background blur 144. Fig.15 The interface 140 shown in FIG. 1 displays the blur degree. When the user selects a blur degree of 4, the electronic device blurs the area except the person B in the first picture according to the blur degree, and obtains Fig.15 When the user selects a blur level of 6, the electronic device blurs the area except person B in the first picture according to the blur level, and obtains Fig.16 The blurred first picture is shown. In another example, the electronic device may perform blur processing on the area except person B in the first picture according to the spatial relationship.
[0194] For example, Fig.14 As shown, the second function item is background replacement 145. When the user clicks on background replacement 145, the electronic device replaces the background of the area other than character B in the first picture according to the parameters of background replacement 145. For example, when the user clicks on background replacement 144, the electronic device can jump to the gallery interface and select the picture to be replaced in the interface. At this time, the electronic device pastes the area where character B is located on the selected picture. For another example, when the user clicks on background replacement 145, the electronic device can display the background image without the area where character B is located on the interface 140, and the user can select the background image. It should be noted that in order to make the replaced background have no sense of disobedience with the first thing, the electronic device can recommend the background image to be replaced based on the image information of the first thing (such as the brightness, color and other image information of the first thing).
[0195] For example, Fig.14As shown, the second function item is background decolorization 146. When the user clicks on the background decolorization 146, the electronic device changes the area except the character B in the first picture into grayscale according to the parameters of the background decolorization 146.
[0196] Scene 4: cropping of objects in the picture.
[0197] In a specific implementation, Fig.17 As shown, the first thing is an object, and the editing menu includes cropping. Then, S406 can be specifically implemented as follows: S4065. In response to a click operation on the cropping menu corresponding to the object, the electronic device crops the object to interface five, which is an editing interface of the cropping menu. For example, Fig.17 As shown, the electronic device receives a user's click operation on the edit menu (i.e., crop) 147 of object A. In response to this operation, the electronic device crops Fig.17 The traffic cone A shown in Fig.18 The interface 150 shown includes third function items such as cropping, filtering, and adjusting. S4066. In response to the operation of the third function item, the electronic device performs a cropping operation on the object according to the parameters of the function item to obtain a second picture. S4067. The electronic device recognizes the image information in the second picture. When the image information does not meet the preset conditions, the electronic device corrects the image information. Specifically, the electronic device can adjust the image information of the traffic cone A according to the perspective relationship between the traffic cone A and the first picture.
[0198] Exemplarily, if there is a blurred image or blurred numbers in the second picture, the electronic device can identify the image information of the picture and determine that the image information is blurred information. The electronic device corrects the image information. For example, if there is a blurred font in the second picture, the electronic device identifies the font in the second picture and overlays the clear font on the area where the original font is located.
[0199] Scene five, the sky turns blue.
[0200] In a specific implementation, Fig.19 As shown, the first object is the sky, and the edit menu includes the sky blue. Then, S406 can be specifically implemented as follows: S4068. In response to the click operation on the sky blue menu, the electronic device edits the sky area in the picture according to the image information of the object in the picture and the parameters of the function item to obtain a second picture. The image information of the object may include information such as brightness, color, and the relative position of the object and the light source. For example, Fig.19 As shown, when the user clicks the sky blue menu 148, the electronic device can Fig.19 The brightness, color, and relative position of person B and the light source shown in the figure B are used to edit the sky area in the picture to obtain Fig. 20 Picture shown with sun and blue sky.
[0201] Scene six, high-definition restoration scene.
[0202] In a specific implementation, Fig.21 As shown, the first thing is an object and / or a person, and the editing menu includes high-definition restoration. Then, S406 can be specifically implemented as follows: S4069. In response to a click operation on the high-definition restoration menu, the electronic device recognizes the image information of each thing in the picture through an artificial intelligence deep learning model, and performs high-definition restoration on each thing to obtain a second picture. For example, Fig.21 As shown, when the user clicks the high-definition repair menu 149, the electronic device can Fig.21 The picture shown in is input into the artificial intelligence deep learning model, and the output Fig. 22 The picture shown. The artificial intelligence deep learning model is used to identify blurred images and restore the detailed features in the image in high definition.
[0203] Scene seven, AI photo editing scene.
[0204] In a specific implementation, Fig.23 As shown, the editing menu includes AI photo editing, then S406 can be specifically implemented as follows: S4070, in response to a click operation on the AI photo editing corresponding to the first thing, the electronic device displays a first input box, and the first input box is an input box for the first thing. Fig.23 As shown, the first thing is person B, and the electronic device receives a user click operation on the edit menu (i.e., AI photo editing) 151 of person B. In response to this operation, the electronic device displays Fig.24 The first input box 152 is shown. S4071. When the user inputs the editing content of the first thing in the first input box, the electronic device edits the first thing according to the editing content. Fig.24 As shown, when the user enters the editing content "eyes become bigger, top becomes striped pattern" in the first input box 152, the electronic device enlarges the eyes of character B and changes the top of character B into a striped pattern according to the description. At this time, the electronic device obtains Fig.25 Of course, the editing content in the embodiment of the present application can be arbitrary and is not limited to the above examples. For example, the editing content can also be "change the top of character B to red". In addition, the user can input in the first input box through voice recognition, text input, etc., and the present application does not limit the method of inputting in the first input box.
[0205] In another specific implementable method, compared with the above difference, S4072, when the user enters the edited content of the first thing in the first input box, the electronic device reports the edited content to the server, and the server edits the first thing according to the edited content, and returns the edited thing information. S4073, the electronic device displays the edited first thing according to the edited thing information. Specifically, the electronic device uses a preset display mode to display the edited first thing according to the edited thing information. Among them, the preset display mode may include gradient display, fade-in display, flip display, blinking display, etc. The specific implementation needs to be set according to actual needs, and no specific limitation is made in the embodiment of the present application. In the embodiment of the present application, the electronic device uses a preset display mode to display the edited first thing, which can achieve a dynamic photo editing effect, allowing the user to feel the changes before and after the photo editing, and improve the user's visual experience.
[0206] Of course, the embodiments of the present application are not limited to the above-mentioned scenes, and may also include other scenes, such as weight loss scenes, makeup scenes, etc. The embodiments of the present application will not be listed one by one.
[0207] Unless otherwise specified or there is no logical conflict, the terms and / or descriptions between the various embodiments of the present application are consistent and can be referenced to each other. The technical features in different embodiments can be combined to form new embodiments according to their internal logical relationships.
[0208] Combined with the above Figures 4 to 25 The picture editing method provided by the embodiment of the present application is described in detail. Figure 1-Figure 4 It should be understood that the description of the device embodiment corresponds to the description of the method embodiment, so the contents not described in detail can be referred to the method embodiment above, and will not be repeated here for the sake of brevity.
[0209] Fig.26 : shows a schematic block diagram of an electronic device 2600 provided in an embodiment of the present application, the electronic device 2600 includes: a display module 2601 and an editing module 2602, wherein:
[0210] The display module 2601 is used to display a first picture, and the first picture includes a first object. Exemplarily, the display module 2601 can perform the above steps S400-S402. The display module 2601 can be Figure 1 The processor 110 and the display screen 180 are shown in FIG.
[0211] The display module 2601 is used to display an edit menu of the first thing according to the information of the first thing. Exemplarily, the display module 2601 can execute the above step S405. The display module 2601 can be Figure 1The processor 110 and the display screen 180 are shown in FIG.
[0212] The editing module 2602 is used to edit the first thing in response to the second operation on the editing menu. Exemplarily, the editing module 2602 can execute the above step S406. The editing module 2602 can be Figure 1 The processor 110 shown in .
[0213] In the embodiment of the present application, the electronic device recommends an editing menu of the object according to the information of the object in the picture. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize individual editing of each object in the picture, and can realize personalized editing of each object, meet the personalized needs of each object, and has high practicality.
[0214] In some embodiments, the electronic device 2600 further includes: a determination module 2603, wherein the determination module 2603 is used to determine an edit menu of the first thing according to the information of the first thing, the priority of each information, and the correspondence between the information and the edit function item, and the edit menu includes at least one edit function item. Exemplarily, the determination module 2603 can execute the above step S405. The determination module 2603 can be Figure 1 The processor 110 shown in .
[0215] In the embodiment of the present application, the electronic device specifically recommends an editing menu for the object based on the information of the object in the picture, so that each object corresponds to a separate editing menu. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu. In this way, the electronic device can realize separate editing of each object in the picture, and can realize personalized editing of each object, meet the personalized needs of each object, and has high practicality.
[0216] In one embodiment, the determination module 2603 is used to determine an edit menu of the first thing according to information of the first thing and historical behavior information of the user.
[0217] In the embodiment of the present application, the electronic device combines the user's historical behavior information and the information of the object to specifically recommend the editing menu of the object, and can recommend the editing menu in combination with the user's preferences. When the user operates the editing menu, the electronic device edits the first object according to the function of the editing menu, which can meet the preferences and aesthetics of different users, provide convenience for users to edit objects, and improve user experience.
[0218] In one embodiment, the display module 2601 is used to: in response to receiving an operation on the first thing, display an edit menu of the first thing.
[0219] In one embodiment, the display module 2601 is used to: in response to receiving an operation on the first thing, mark and display the first thing. The expression form of the mark display may include: dotted line display, red display, bright light display, blurred display, etc. Of course, the highlight display is not limited to the above. In this way, the electronic device can facilitate the user to select and edit the things in the picture by highlighting the things in the picture, and provide convenience for the user to edit the things later.
[0220] In one embodiment, the editing menu of the first thing includes at least one of the following: deletion, beautification, background modification, and AI photo editing.
[0221] In one embodiment, the first picture also includes a second thing, and the determination module 2603 is used to: determine, based on information about the first thing and information about the second thing, that the first thing is the main thing in the first picture and the second thing is the secondary thing in the first picture; or, that the first thing and the second thing are both the main things in the first picture.
[0222] In one embodiment, the display module 2601 is used to: when the first thing and the second thing are both main things in the first picture, display the editing menu of the first thing and the first prompt information of the second thing, and the first prompt information is used to prompt the user whether to edit the second thing.
[0223] In one embodiment, the display module 2601 is configured to: when the second thing is a secondary thing in the first picture, the edit menu of the second thing includes deletion.
[0224] In an embodiment of the present application, the electronic device can screen out the main and secondary things by determining the primary and secondary of each thing in the picture. Afterwards, the electronic device can uniformly recommend an edit menu for the main things, or recommend an edit menu for the main things separately, or recommend a menu for one main thing, and display prompt information for other main things to prompt the user whether to edit. The electronic device can recommend deleting the edit menu for the secondary things. In this way, the electronic device can have a targeted recommendation menu, so that the image editing operation has primary and secondary, making the image editing operation easier.
[0225] In one embodiment, the editing menu of the first thing includes AI photo editing, and the editing module 2602 is used to: in response to the operation of AI photo editing, display a first input box, the first input box is an input box for the editing content of the first thing; receive the editing content of the first thing input by the user in the first input box; edit the first thing according to the editing content. Among them, the format of the editing content can be text format or audio format, which is not specifically limited in this application. In this way, the electronic device can realize automatic photo editing through AI photo editing, which simplifies the photo editing operation and makes photo editing more convenient and quick.
[0226] In one embodiment, the editing module 2602 is used to: report the edited content and the information of the first thing to other devices, and the other devices edit the first thing according to the edited content and return the edited thing information; display the edited first thing according to the edited thing information. Among them, the other devices may include servers, cloud platforms, etc. In this way, the electronic device reduces the computational workload of the electronic device and saves the resources of the electronic device by reporting the edited content and the information of the first thing to other devices, and the other devices edit the first thing.
[0227] In one embodiment, the display module 2601 is used to: display the edited first thing in a preset display mode according to the edited thing information. The preset display mode may include gradient display, fade-in display, flip display, blink display, etc., which need to be set according to actual needs during specific implementation. In this way, the electronic device uses the preset display mode to display the edited first thing, which can achieve a dynamic photo editing effect, allowing the user to feel the changes before and after the photo editing, and improve the user's visual experience.
[0228] In some embodiments, the electronic device 2600 further includes: a splitting module 2604, wherein the splitting module is used to split the first object in the first picture. Exemplarily, the splitting module 2604 can perform the above-mentioned step S404. The splitting module 2604 can be Figure 1 The processor 110 shown in .
[0229] In an embodiment of the present application, the electronic device can split the things in the picture. The electronic device recommends an editing menu for the thing based on the information of the thing. When the user operates the editing menu, the electronic device edits the first thing according to the function of the editing menu. In this way, the electronic device can edit the thing by splitting the things in the picture, and can edit each thing in the picture separately; the electronic device then recommends the editing menu for the thing based on the information of the thing, and can implement personalized editing of each thing, meet the personalized needs of each thing, and is highly practical.
[0230] In one embodiment, the splitting module 2604 is used to split the first object in the first picture according to the correlation of image features of the first object in the first picture.
[0231] In one embodiment, the splitting module 2604 is used to split the first object in the first picture in response to an operation on the first object.
[0232] It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module and will not be repeated here.
[0233] An embodiment of the present application also provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute any of the above methods.
[0234] The embodiment of the present application also provides a computer program product including instructions, which, when executed on a computer, enables the computer to execute any of the above methods.
[0235] An embodiment of the present application also provides a chip, which includes a processor and an interface circuit, the interface circuit is coupled to the processor, the processor is used to run a computer program or instruction to implement the above method, and the interface circuit is used to communicate with other modules outside the chip.
[0236] All or part of any features or steps in the embodiments of the present application can be freely combined, and the combined technical solutions are also within the scope of the present application.
[0237] In the description of this application, unless otherwise specified, " / " means "or", for example, A / B can mean A or B. "And / or" in this article is merely a description of the association relationship of associated objects, indicating that three relationships may exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, "at least one" means one or more, and "plurality" means two or more. The words "first", "second", etc. do not limit the quantity and execution order, and the words "first", "second", etc. do not limit them to be different.
[0238] In the description of the present application, words such as "exemplary" or "for example" are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary" or "for example" is intended to present related concepts in a specific way.
[0239] Through the description of the above implementation methods, technical personnel in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0240] In the several embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the modules or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0241] The units described as separate components may or may not be physically separated, and the components shown as units may be one physical unit or multiple physical units, that is, they may be located in one place or distributed in multiple different places. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0242] In addition, each functional unit in each embodiment of the present application may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0243] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a readable storage medium. Based on this understanding, the technical solution of the embodiment of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product, which is stored in a storage medium, including several instructions to enable a device (which can be a single-chip microcomputer, chip, etc.) or a processor (processor) to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program code.
[0244] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any changes or substitutions within the technical scope disclosed in the present application shall be included in the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.
Claims
1. A method for editing a picture, It is characterized in that The method comprises: Display a first picture, wherein the first picture includes a first thing; Determine an edit menu of the first thing according to the information of the first thing, the priority of each information, and the correspondence between the information and the edit function item, wherein the edit menu includes at least one edit function item; According to the information of the first thing, an editing menu of the first thing is displayed.
2. The method according to claim 1, It is characterized in that After displaying the edit menu of the first thing, including: In response to an operation on the edit menu, the first thing is edited.
3. The method according to claim 1 or 2, It is characterized in that Before displaying the edit menu of the first thing, it also includes: An edit menu for the first thing is determined according to the information of the first thing and the user's historical behavior information.
4. The method according to any one of claims 1 to 3, It is characterized in that The step of displaying an edit menu of the first thing according to the information of the first thing includes: In response to receiving an operation on the first thing, an edit menu of the first thing is displayed.
5. The method according to claim 4, It is characterized in that Also includes: In response to receiving an operation on the first thing, marking displays the first thing.
6. The method according to any one of claims 1 to 5, It is characterized in that The editing menu of the first thing includes at least one of the following: deletion, beautification, background modification and AI photo editing.
7. The method according to any one of claims 1 to 6, It is characterized in that The first picture also includes a second thing, and before displaying an edit menu of the first thing according to the information of the first thing, the method further includes: According to the information of the first thing and the information of the second thing, it is determined that the first thing is the main thing in the first picture and the second thing is the secondary thing in the first picture; or, the first thing and the second thing are both the main things in the first picture.
8. The method according to claim 7, It is characterized in that Also includes: When the first thing and the second thing are both main things in the first picture, an editing menu for the first thing and first prompt information for the second thing are displayed, where the first prompt information is used to prompt the user whether to edit the second thing.
9. The method according to claim 7, It is characterized in that Also includes: When the second thing is a secondary thing in the first picture, the editing menu of the second thing includes deletion.
10. The method according to claim 6, It is characterized in that The editing menu of the first thing includes AI photo editing, and in response to an operation on the editing menu, editing the first thing includes: In response to the operation of the AI photo editing, a first input box is displayed, where the first input box is an input box for editing content of the first thing; Receiving editing content of the first thing input by the user in the first input box; The first thing is edited according to the editing content.
11. The method according to claim 10, It is characterized in that The editing of the first thing according to the editing content includes: Reporting the edited content and information of the first thing to other devices, the other devices editing the first thing according to the edited content, and returning the edited thing information; According to the edited thing information, the edited first thing is displayed.
12. The method according to claim 11, It is characterized in that The step of displaying the edited first thing according to the edited thing information includes: According to the edited thing information, a preset display mode is adopted to display the edited first thing.
13. An electronic device, It is characterized in that The electronic device comprises: a display module and an editing module, wherein: The display module is used to display a first picture, wherein the first picture includes a first thing; The display module is used to display an edit menu of the first thing according to the information of the first thing; The editing module is used to edit the first thing in response to an operation on the editing menu.
14. The electronic device according to claim 13, It is characterized in that Also includes: Determine the module, where The determination module is used to determine an editing menu of the first thing according to the information of the first thing, the priority of each information, and the correspondence between the information and the editing function items, and the editing menu includes at least one editing function item.
15. The electronic device according to claim 14, It is characterized in that The determination module is used for: An edit menu for the first thing is determined according to the information of the first thing and the user's historical behavior information.
16. The electronic device according to any one of claims 13 to 15, It is characterized in that The display module is used for: In response to receiving an operation on the first thing, an edit menu of the first thing is displayed.
17. The electronic device according to claim 16, It is characterized in that The display module is used for: In response to receiving an operation on the first thing, marking displays the first thing.
18. The electronic device according to any one of claims 13 to 17, It is characterized in that The editing menu of the first thing includes at least one of the following: deletion, beautification, background modification and AI photo editing.
19. The electronic device according to any one of claims 14 to 18, It is characterized in that The first picture also includes a second thing, and the determining module is used to: According to the information of the first thing and the information of the second thing, it is determined that the first thing is the main thing in the first picture and the second thing is the secondary thing in the first picture; or, the first thing and the second thing are both the main things in the first picture.
20. The electronic device according to claim 19, It is characterized in that The display module is used for: When the first thing and the second thing are both main things in the first picture, an editing menu for the first thing and first prompt information for the second thing are displayed, where the first prompt information is used to prompt the user whether to edit the second thing.
21. The electronic device according to claim 19, It is characterized in that The display module is used for: When the second thing is a secondary thing in the first picture, the editing menu of the second thing includes deletion.
22. The electronic device according to claim 18, It is characterized in that The editing menu of the first thing includes AI photo editing, and the editing module is used to: In response to the operation of the AI photo editing, a first input box is displayed, where the first input box is an input box for editing content of the first thing; Receiving editing content of the first thing input by the user in the first input box; The first thing is edited according to the editing content.
23. The electronic device according to claim 22, It is characterized in that The editing module is used to: Reporting the edited content and information of the first thing to other devices, the other devices editing the first thing according to the edited content, and returning the edited thing information; According to the edited thing information, the edited first thing is displayed.
24. The electronic device according to claim 23, It is characterized in that The display module is used for: According to the edited thing information, a preset display mode is adopted to display the edited first thing.
25. An electronic device, It is characterized in that The electronic device comprises: one or more processors; and a memory, wherein codes are stored in the memory; when the codes are executed by the processor, the electronic device executes the method according to any one of claims 1 to 12.
26. A computer-readable storage medium, It is characterized in that The method comprises computer instructions, which, when executed on an electronic device, cause the electronic device to execute the method according to any one of claims 1 to 12.
Citation Information
Patent Citations
Image editing method and terminal
CN105139357A
Desktop editing method and electronic equipment
CN110750317A
Page editing method and device, equipment and storage medium
CN114385162A
Image editing
US20230114270A1
Cited By
Interface display method, electronic equipment, chip system and medium
CN121541811A