Photo processing method and electronic equipment

By displaying a prompt control for adding names to the large image interface of users browsing photos in electronic devices, it solves the problem that users find it difficult to discover and frequently use the character adding names function in photos, and improves the usage rate and user experience of functions.

CN119200893APending Publication Date: 2024-12-27HONOR DEVICE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202310755923.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2023-06-25
Publication Date
2024-12-27

AI Technical Summary

Technical Problem

In the prior art, the user's function of adding names to the characters in the photo in an electronic device is low, mainly because the functional path is deeper and difficult for users to discover.

Method used

When the user browses the large image interface of the photo, when the person in the photo has detected that the person has a threshold value and has not marked the name, a prompt control for adding a name is displayed, prompting the user to add a name to the character. This control includes a prompt focus and button, which is located below the character's face position, displaying the 'Add Name' text. If the user clicks, the input interface will be displayed to complete the name and relationship selection.

Benefits of technology

Increases the frequency and usage of users to add names to characters in photos, simplifies the operation process, reduces interference to users, and only displays prompt controls when necessary.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119200893A_ABST
    Figure CN119200893A_ABST
Patent Text Reader

Abstract

The embodiment of the invention provides a photo processing method and electronic equipment, the method is executed by the electronic equipment, and the method comprises the following steps: when it is detected that a user browses a large picture interface of a first photo, determining whether information of the first photo meets a first condition; if the information of the first photo meets a first condition, a first control is displayed on a large picture interface of the first photo, the information of the first photo meeting the first condition represents that the number of characters in the first photo appearing in all photos stored in the electronic equipment is larger than a first preset threshold value, and the included characters are not marked with names; the first control is used for triggering to add names to characters included in the first photo. According to the method, the name adding prompt can be given when the user browses the photo, the user is promoted to add names for characters in the photo, and the utilization rate of the name adding function is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of electronic technology, and in particular to a photo processing method and electronic equipment. Background Art

[0002] Currently, more and more electronic devices have a shooting function, such as shooting through a camera of the electronic device, and the photos taken can usually be accessed by users through a gallery application.

[0003] As electronic devices become more and more versatile, users can not only view photos through gallery applications, but also edit and set photos, such as beautifying photos, etc. In the case where the photos include people, users can also add names to the people.

[0004] However, the existing path for adding names to people in photos is relatively deep, and users may not easily discover this function or use it less frequently, resulting in a low usage rate of the name adding function. Summary of the invention

[0005] The present application provides a photo processing method and electronic device, which can give a prompt to add a name when the user browses the photos, thereby promoting the user to add names to the characters in the photos and improving the usage rate of the name adding function.

[0006] In a first aspect, the present application provides a photo processing method, which is executed by an electronic device, including: when detecting that a user is browsing a large image interface of a first photo, determining whether information of the first photo satisfies a first condition; if the information of the first photo satisfies the first condition, displaying a first control on the large image interface of the first photo, wherein the information of the first photo satisfies the first condition, indicating that the number of times a person included in the first photo has appeared in all photos stored in the electronic device is greater than a first preset threshold, and the included person is not labeled with a name, and the first control is used to trigger adding a name for the person included in the first photo.

[0007] When users browse photos through the gallery application, they may preview them in order by shooting time, or they may preview them by category by album. During the preview process, users can click on any photo to browse the large image. Then, when the electronic device detects that the user is browsing the large image interface of the first photo, it can determine whether the information of the first photo meets the first condition.

[0008] Optionally, the information of the first photo may include, but is not limited to, an object included in the first photo, the number of photos in which the object appears in all photos stored in the electronic device, and the object may include a person, a thing, or a place. The information of the first photo satisfies the first condition, indicating that the number of photos in which the person included in the first photo appears in all photos exceeds a first preset threshold and the person has not been labeled with a name. Exemplarily, the first preset threshold may be 50 photos.

[0009] When the information of the first photo satisfies the first condition, the electronic device may display a first control (i.e., an add name control). Optionally, the first control may be displayed in the area where the person in the first photo is located. Optionally, the first control may include a prompt focus and a prompt button, the prompt focus may be located at the face position of the person, and the prompt button may be located below the prompt focus, displaying the text "add name".

[0010] It can be understood that if the information of the first photo does not meet the first condition, the electronic device does not display the first control.

[0011] In the above implementation, when the user browses the large picture interface of the first photo, if the person included in the first photo has not been labeled with a name and the number of times the person appears in all photos exceeds a first preset threshold, the electronic device can give a prompt to add a name on the large picture interface of the first photo, thereby encouraging the user to add names to the people in the photo and improving the usage rate of the name adding function.

[0012] In combination with the first aspect, in some implementations of the first aspect, after displaying the first control, the method further includes: if a user click operation on the first control is received, displaying an input interface for adding a name; if no user click operation on the first control is received within a preset time period, or a user click operation on the second control is received, canceling the display of the first control, and the second control is other controls on the large image interface of the first photo except the first control.

[0013] The user's click operation on the first control may be a click operation on the prompt focus in the first control, or a click operation on the prompt button in the first control. When the electronic device receives the user's click operation on the first control, an input interface for adding a name is displayed for the user to add a name for the character.

[0014] In one implementation, the input interface for adding a name can be displayed superimposed on the large image interface of the first photo. The input interface for adding a name can include a name input box and a relationship selection control. The name input box can be used for the user to enter the name of the character. There can be multiple relationship selection controls, each representing a different character relationship. The user can enter the character name in the name input box and select a character relationship to complete the process of adding a name.

[0015] If the user does not want to add a name for the person, the user may not click the first control, and the electronic device may cancel the display of the first control after a preset time period if the user does not input a click operation. Alternatively, if the user clicks other controls on the large image interface of the first photo, the electronic device may also cancel the display of the first control after receiving the click operation.

[0016] In the above implementation, the electronic device can promote and facilitate the user to add a name to the character by displaying the first control on the large picture interface of the first photo, and can also automatically cancel the display of the first control when the user does not add a name to the character to reduce the impact on the user's use.

[0017] In combination with the first aspect, in some implementations of the first aspect, after displaying the input interface for adding a name, the method further includes: receiving the name of a person and the relationship between the person and the character entered by the user in the input interface for adding a name, and returning to a large image interface displaying the first photo, and the first control is not displayed on the large image interface of the first photo.

[0018] Among them, after the user adds the character name and character relationship for the character, the electronic device can return to the large picture interface displaying the first photo, but at this time the above-mentioned first control is no longer displayed on the large picture interface.

[0019] Optionally, although the electronic device no longer displays the first control, it may display the name that has been added for the user, so that the user can know the name of the added character.

[0020] In combination with the first aspect, in some implementations of the first aspect, after canceling the display of the first control, the method further includes: if it is detected that the user is browsing the large image interface of the second photo on the current date, and the information of the second photo meets the first condition, then the first control is not displayed in the large image interface of the second photo.

[0021] That is to say, after the electronic device cancels displaying the add name control, the first control will no longer be repeatedly displayed in the large picture interface of any photo on that day (i.e., it will only be displayed once on the same day) to reduce the impact on user usage.

[0022] Optionally, if the user browses the large picture interface of the first photo, or other large picture interfaces of photos including people, again the next day, the first control may be displayed again.

[0023] In combination with the first aspect, in some implementations of the first aspect, after canceling the display of the first control, the method further includes: if the number of newly added photos corresponding to the person included in the first photo is greater than a second preset threshold, then when the user previews the large picture interface of the photo corresponding to the person, displaying the first control.

[0024] In this implementation, after the electronic device cancels the display of the add name control, the first control will no longer be repeatedly displayed in the large picture interface of the photo on the same day and subsequently. Only when the number of newly added photos of the corresponding person when the first control is canceled is greater than the second preset threshold, the electronic device will display the first control on the photo corresponding to the person (i.e., repeat the prompt). Optionally, the second preset threshold can be 10 photos. Therefore, if the user does not choose to add a name to the person, the electronic device will not frequently prompt the user, and will only prompt when the number of photos of the corresponding person increases to a certain extent, thereby reducing the disturbance of the electronic device to the user during use.

[0025] In conjunction with the first aspect, in some implementations of the first aspect, the input interface for adding a name includes a relationship selection control and a name input box, and the receiving of the character name and the character relationship input by the user in the input interface for adding a name includes:

[0026] If it is detected that the user selects a character relationship in the relationship selection control, it is determined whether the stored character name is empty, or whether the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship;

[0027] If the stored character name is empty, or the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship, the characters corresponding to the character relationship selected by the user are automatically filled into the name input box;

[0028] If the stored character name is not empty, and the characters corresponding to the stored character name are different from the characters corresponding to the character relationship, the character name in the name input box will not be changed.

[0029] When the user adds a name to a character, if the electronic device detects that the user selects a character relationship in the relationship selection control, it may be the first time to select a character relationship, or it may be a change in the character relationship. If it is the first time to select a character relationship, it means that the character name has not been entered, that is, the stored character name is empty; if it is a change in the character relationship, it means that the character name already exists, and it is necessary to determine whether the characters corresponding to the stored character name and the characters corresponding to the character relationship are the same.

[0030] If the stored character name is empty, or the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship, the electronic device can automatically bring the characters corresponding to the character relationship into the name input box (i.e., enter the bring-in mode). In this bring-in mode, if the user changes the character relationship, the electronic device still automatically brings the characters corresponding to the changed character relationship into the name input box.

[0031] If the stored character name is not empty, and the characters corresponding to the stored character name are different from the characters corresponding to the character relationship, the electronic device will no longer bring the characters corresponding to the character relationship into the name input box. The user can change the character relationship at will, or the user can also change the input character name at will (as long as the changed character name is different from the character relationship).

[0032] In the above implementation, the electronic device provides multiple ways to input the name input box and the relationship selection control, which can reduce the user's input operations in the input bring-in mode and improve the user's usage experience.

[0033] In combination with the first aspect, in some implementations of the first aspect, if there are multiple people in the first photo that meet the first condition, a first control is displayed on the large image interface of the first photo, including: displaying the first control at the position of the first person in the first photo, the first person being the person included in the first photo who has appeared in the largest number of photos in all photos stored in the electronic device.

[0034] If the first photo includes multiple characters, for example, character A and character B, the electronic device can obtain the number a of characters A appearing in all the photos stored in the electronic device, and the number b of characters B appearing in all the photos stored in the electronic device. In this implementation, the electronic device can sort the number of characters appearing in all the photos, and preferentially display the first control at the position of characters with more pictures. Exemplarily, assuming that the number a is greater than the number b, the electronic device can display the first control at the position of character A.

[0035] In one implementation, after completing the adding of the name, the electronic device may return to the large picture interface of the first photo, and the first control may no longer be displayed at this time.

[0036] In another implementation, to facilitate the user to add names for other characters in the first photo, after the electronic device returns to the large picture interface of the first photo, since a name has been added to character A but a name has not been added to character B, the electronic device may also display the first control at the position of character B to allow the user to add a name for character B as well.

[0037] In combination with the first aspect, in some implementations of the first aspect, if the first photo is a dynamic photo, the above-mentioned displaying the first control on the large picture interface of the first photo includes: after the dynamic effect of the first photo is played, displaying the first control on the large picture interface of the first photo.

[0038] Wherein, in the case that the first photo is a dynamic photo, in order not to affect the dynamic effect of the photo viewed by the user, the electronic device may display the first control after the dynamic effect of the first photo is played.

[0039] In combination with the first aspect, in some implementations of the first aspect, before the above-mentioned detection that the user is browsing the large picture interface of the first photo, the above-mentioned method also includes: identifying the photos that have been taken but not identified, determining the people included in the photos, and counting the number of photos in which the people have appeared in all photos stored in the electronic device.

[0040] Normally, after a user uses an electronic device to take a photo, the electronic device needs to identify the photo to determine the person, thing or place included in the photo. In one achievable manner, the electronic device can identify photos that have been taken and not identified when the electronic device is in an idle state or the central processing unit (CPU) usage rate is low. For example, if the electronic device is in an idle state from 2:00 to 4:00 in the morning, the electronic device can identify the photos that have been taken during this time period. Alternatively, the electronic device can set a fixed idle time period, for example, the electronic device can set the time period from 1:00 to 5:00 in the morning as an idle time period, and identify N photos during this time period. In this implementation, the electronic device performs photo recognition when it is in an idle state or the CPU usage rate is low, which can reduce the power consumption of the electronic device and reduce power loss.

[0041] In another achievable manner, without considering power consumption, the electronic device can recognize in real time the photos that have been taken and not recognized. For example, when a user takes a photo using an electronic device, the electronic device can instantly recognize the photo. In this implementation, the electronic device recognizes the photos that have been taken in real time, which can improve the real-time performance of photo processing.

[0042] After the electronic device recognizes the photo, it can also count the recognition result and the recognition result obtained by the previous recognition. For example, when the electronic device recognizes a person, it can count the number of photos in which the person appears in all photos for direct acquisition when needed later.

[0043] In combination with the first aspect, in some implementations of the first aspect, a gallery application is installed in the electronic device, and when it is detected that a user browses a large picture interface of the first photo, determining whether the information of the first photo satisfies the first condition includes: when it is detected through the gallery application that the user browses the large picture interface of the first photo, determining through the gallery application whether the information of the first photo satisfies the first condition;

[0044] If the information of the first photo satisfies the first condition, displaying a first control on the large picture interface of the first photo includes:

[0045] If the information of the first photo satisfies the first condition, the first control is displayed on the large picture interface of the first photo through the gallery application.

[0046] In a second aspect, the present application provides a device, which is included in an electronic device, and the device has the function of implementing the electronic device behavior in the above-mentioned first aspect and the possible implementation of the above-mentioned first aspect. The function can be implemented by hardware, or it can be implemented by hardware executing corresponding software. The hardware or software includes one or more modules or units corresponding to the above-mentioned functions. For example, a receiving module or unit, a processing module or unit, etc.

[0047] In a third aspect, the present application provides an electronic device, comprising: a processor, a memory, and an interface; the processor, the memory, and the interface cooperate with each other so that the electronic device executes any one of the methods in the technical solution of the first aspect.

[0048] In a fourth aspect, the present application provides a chip, including a processor. The processor is used to read and execute a computer program stored in a memory to call instructions so that an electronic device executes the method in the first aspect and any possible implementation thereof.

[0049] Optionally, the chip also includes a memory, and the memory is connected to the processor via a circuit or wire.

[0050] Further optionally, the chip also includes a communication interface.

[0051] In a fifth aspect, the present application provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor calls instructions to enable the electronic device to execute any one of the methods in the technical solution of the first aspect.

[0052] In a sixth aspect, the present application provides a computer program product, the computer program product comprising: a computer program code, when the computer program code runs on an electronic device, the electronic device executes any one of the methods in the technical solution of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0053] Figure 1 This is a schematic diagram of an example of a large-image interface for opening a photo provided by the related art;

[0054] Figure 2 This is a schematic diagram of an example of opening a creation interface provided by the related technology;

[0055] Figure 3 This is a schematic diagram of an interface for adding a name provided by the related art;

[0056] Figure 4 This is another example of a schematic diagram of an interface for adding a name provided by the related art;

[0057] Figure 5 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0058] Figure 6 is a software structure block diagram of the electronic device provided in the embodiment of the present application;

[0059] Figure 7 is a schematic diagram of an example of a large-image interface for opening a photo provided in an embodiment of the present application;

[0060] Figure 8 This is a schematic diagram of a process of adding a name provided in an embodiment of the present application;

[0061] Fig. 9 This is a schematic diagram of an example of performing other operations on a large photo interface provided by an embodiment of the present application;

[0062] Fig.10 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0063] Fig.11 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0064] Fig.12 is a schematic diagram of another example of a large-image interface for opening a photo provided in an embodiment of the present application;

[0065] Fig.13 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0066] Fig.14 is a schematic diagram of another example of a large-image interface for opening a photo provided in an embodiment of the present application;

[0067] Fig.15 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0068] Fig.16 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0069] Fig.17 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0070] Fig.18 This is another schematic diagram of the process of adding a name provided in an embodiment of the present application;

[0071] Fig.19 is a flowchart of a photo processing method provided in an embodiment of the present application;

[0072] Fig. 20is a flowchart of another photo processing method provided in an embodiment of the present application;

[0073] Fig.21 is a flowchart of another photo processing method provided in an embodiment of the present application;

[0074] Fig. 22 This is a flowchart of another photo processing method provided in an embodiment of the present application. DETAILED DESCRIPTION

[0075] The technical solutions in the embodiments of the present application will be described below in conjunction with the drawings in the embodiments of the present application. In the description of the embodiments of the present application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in the description of the embodiments of the present application, "multiple" means two or more than two.

[0076] In the following, the terms "first", "second", and "third" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, a feature defined as "first", "second", and "third" may explicitly or implicitly include one or more of the features.

[0077] Currently, when a user uses a camera of an electronic device to take photos, the photos taken are usually accessible to the user through a gallery application. Figure 1 As shown, taking the electronic device as a mobile phone as an example, after the user clicks the gallery icon on the desktop interface of the electronic device, the user can enter the gallery application, and the photos in the gallery can be sorted and previewed according to the shooting time, or can be classified and previewed according to the album (such as divided into photos and videos, etc.). On the preview photo interface, the user can click any photo to enter the large picture interface of the photo.

[0078] As electronic devices become more and more versatile, users can not only view photos through gallery applications, but also edit and set photos, such as Figure 1 The large picture interface of the photo shown includes editing controls at the bottom, through which the photo can be beautified, etc.

[0079] In the scenario where a person is included in the photo, the user can also add a name to the person through the gallery application. The path for adding a name to a person in the related art is usually: Figure 2As shown in the figure, at the bottom of the homepage of the gallery application, there is a creation control. After the user clicks the creation control, the creation interface is entered. On this interface, the gallery application can identify and count the people in the photos, the shooting locations of the photos, the objects in the photos, etc.; taking people as an example, it is to identify the people included in the photos to identify different people, such as Figure 2 Two people are identified in all the photos, and the thumbnails of the two people are displayed under the portrait list. If the user clicks on the more controls in the portrait list, the electronic device can jump to the following Figure 3 The portrait interface shown in the figure. In this interface, the gallery application can identify and display the number of times each person appears in all photos, such as Figure 3 It is recognized that the first character appears 60 times and the second character appears 40 times. At the same time, the interface also presents an add name control on the thumbnail of each character. If the user wants to add a name to a character, he can click the add name control corresponding to the character to add a name to the character.

[0080] Or, if the user clicks Figure 2 If a character is displayed on the creation interface, the electronic device can jump to the following Figure 4 The detailed interface of the person shown in FIG. On this interface, a list of all photos of the person and the number of photos are displayed, and at the same time, an add name control is also presented. If the user wants to add a name for the person, the user can click the add name control to add a name for the person.

[0081] From the above process, it can be seen that the path for adding names to people in photos in related technologies is relatively deep, and users may not easily discover this function or use it less frequently, which leads to a low usage rate of the add name function.

[0082] In view of this, the embodiment of the present application provides a photo processing method, which can give a prompt to add a name when the user browses the large picture interface of the photo, so as to encourage the user to add names to the characters in the photo and improve the utilization rate of the name adding function. It can be understood that the photos processed by the embodiment of the present application, in addition to the photos taken by the camera, can also include pictures downloaded and stored by other means (such as network download, communication software transmission), which are collectively referred to as photos below.

[0083] It should be noted that the photo processing method provided in the embodiments of the present application can be applied to electronic devices with gallery applications or similar photo storage applications, such as mobile phones, tablet computers, laptop computers, ultra-mobile personal computers (UMPCs), netbooks, and personal digital assistants (PDAs). The embodiments of the present application do not impose any restrictions on the specific types of electronic devices.

[0084] For example, Figure 5 1 is a schematic diagram of the structure of an example of an electronic device 100 provided in an embodiment of the present application. Taking the electronic device 100 as a mobile phone as an example, the electronic device 100 may include a processor 110, an external memory interface 120, an internal memory 121, a universal serial bus (USB) interface 130, a charging management module 140, a power management module 141, a battery 142, an antenna 1, an antenna 2, a mobile communication module 150, a wireless communication module 160, an audio module 170, a speaker 170A, a receiver 170B, a microphone 170C, an earphone interface 170D, a sensor module 180, a button 190, a motor 191, an indicator 192, a camera 193, a display screen 194, and a subscriber identification module (SIM) card interface 195, etc. The sensor module 180 may include a pressure sensor 180A, a gyroscope sensor 180B, an air pressure sensor 180C, a magnetic sensor 180D, an acceleration sensor 180E, a distance sensor 180F, a proximity light sensor 180G, a fingerprint sensor 180H, a temperature sensor 180J, a touch sensor 180K, an ambient light sensor 180L, a bone conduction sensor 180M, etc.

[0085] 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 memory, 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.

[0086] The controller may be the nerve center and command center of the electronic device 100. The controller may generate an operation control signal according to the instruction operation code and the timing signal to complete the control of fetching and executing instructions.

[0087] 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.

[0088] In some embodiments, the processor 110 may include one or more interfaces. The interface may include an inter-integrated circuit (I2C) interface, an inter-integrated circuit sound (I2S) interface, a pulse code modulation (PCM) interface, a universal asynchronous receiver / transmitter (UART) interface, a mobile industry processor interface (MIPI), a general-purpose input / output (GPIO) interface, a subscriber identity module (SIM) interface, and / or a universal serial bus (USB) interface, etc.

[0089] The I2C interface is a bidirectional synchronous serial bus, including a serial data line (SDA) and a serial clock line (SCL). In some embodiments, the processor 110 may include multiple groups of I2C buses. The processor 110 may be coupled to the touch sensor 180K, the charger, the flash, the camera 193, etc. through different I2C bus interfaces. For example: the processor 110 may be coupled to the touch sensor 180K through the I2C interface, so that the processor 110 communicates with the touch sensor 180K through the I2C bus interface, thereby realizing the touch function of the electronic device 100.

[0090] The MIPI interface can be used to connect the processor 110 with peripheral devices such as the display screen 194 and the camera 193. The MIPI interface includes a camera serial interface (CSI), a display serial interface (DSI), etc. In some embodiments, the processor 110 and the camera 193 communicate via the CSI interface to implement the shooting function of the electronic device 100. The processor 110 and the display screen 194 communicate via the DSI interface to implement the display function of the electronic device 100.

[0091] It is understandable that the interface connection relationship between the modules illustrated in the embodiment of the present application is only a schematic illustration and does not constitute a structural limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may also adopt different interface connection methods in the above embodiments, or a combination of multiple interface connection methods.

[0092] 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 the electronic device 100. While the charging management module 140 is charging the battery 142, it may also power the electronic device through the power management module 141.

[0093] 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 internal memory 121, the external memory, the display screen 194, the camera 193, and the wireless communication module 160. The power management module 141 can also be used to monitor parameters such as battery capacity, battery cycle 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.

[0094] The wireless communication function of the electronic device 100 can be implemented through the antenna 1, the antenna 2, the mobile communication module 150, the wireless communication module 160, the modem processor and the baseband processor.

[0095] The mobile communication module 150 can provide solutions for wireless communications including 2G / 3G / 4G / 5G, etc., applied to the electronic device 100. The mobile communication module 150 may include at least one filter, a switch, a power amplifier, a low noise amplifier (LNA), etc. The mobile communication module 150 can receive electromagnetic waves from the antenna 1, and filter, amplify, and process the received electromagnetic waves, and transmit them to the modulation and demodulation processor for demodulation. The mobile communication module 150 can also amplify the signal modulated by the modulation and demodulation processor, and convert it into electromagnetic waves for radiation through the antenna 1. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the processor 110. In some embodiments, at least some of the functional modules of the mobile communication module 150 can be set in the same device as at least some of the modules of the processor 110.

[0096] The modem processor may include a modulator and a demodulator. Among them, the modulator is used to modulate the low-frequency baseband signal to be sent into a medium-high frequency signal. The demodulator is used to demodulate the received electromagnetic wave signal into a low-frequency baseband signal. The demodulator then transmits the demodulated low-frequency baseband signal to the baseband processor for processing. After the low-frequency baseband signal is processed by the baseband processor, it is passed to the application processor. The application processor outputs a sound signal through an audio device (not limited to a speaker 170A, a receiver 170B, etc.), or displays an image or video through a display screen 194. In some embodiments, the modem processor may be an independent device. In other embodiments, the modem processor may be independent of the processor 110 and be set in the same device as the mobile communication module 150 or other functional modules.

[0097] The wireless communication module 160 can provide wireless communication solutions including wireless local area networks (WLAN) (such as wireless fidelity (Wi-Fi) networks), bluetooth (BT), global navigation satellite system (GNSS), frequency modulation (FM), near field communication (NFC), infrared (IR), etc., which are applied to the electronic device 100. The wireless communication module 160 can be one or more devices integrating at least one communication processing module. The wireless communication module 160 receives electromagnetic waves via the antenna 2, modulates the frequency of the electromagnetic wave signal and performs filtering, and sends the processed signal to the processor 110. The wireless communication module 160 can also receive the signal to be sent from the processor 110, modulate the frequency of it, amplify it, and convert it into electromagnetic waves for radiation through the antenna 2.

[0098] The electronic device 100 implements the display function through a GPU, a display screen 194, and an application processor. The GPU is a microprocessor for image processing, which connects the display screen 194 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.

[0099] The display screen 194 is used to display images, videos, etc. The display screen 194 includes a display panel. The display panel can be a liquid crystal display (LCD), 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 100 may include 1 or N display screens 194, where N is a positive integer greater than 1.

[0100] The electronic device 100 can realize the shooting function through ISP, camera 193, video codec, GPU, display screen 194 and application processor.

[0101] ISP is used to process the data fed back by camera 193. 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 ISP for processing and converts it into an image visible to the naked eye. ISP can also perform algorithm optimization on the noise, brightness, and skin color of the image. ISP can also optimize the exposure, color temperature and other parameters of the shooting scene. In some embodiments, ISP can be set in camera 193.

[0102] The camera 193 is used to capture still images or videos. The object generates an optical image through the lens and projects it onto the photosensitive element. The photosensitive element can be a charge coupled device (CCD) or a complementary metal-oxide-semiconductor (CMOS) phototransistor. The photosensitive element converts the optical signal into an electrical signal, and then passes the electrical signal to the ISP to be converted into a digital image signal. The ISP outputs the digital image signal to the DSP for processing. The DSP converts the digital image signal into an image signal in a standard RGB, YUV or other format. In some embodiments, the electronic device 100 may include 1 or N cameras 193, where N is a positive integer greater than 1.

[0103] The internal memory 121 can be used to store computer executable program codes, and the executable program codes include instructions. The processor 110 executes various functional applications and data processing of the electronic device 100 by running the instructions stored in the internal memory 121. The internal memory 121 may include a program storage area and a data storage area. Among them, the program storage area 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 100 (such as audio data, a phone book, etc.), etc. In addition, the internal memory 121 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, a universal flash storage (UFS), etc.

[0104] The electronic device 100 can implement audio functions such as music playing and recording through the audio module 170, the speaker 170A, the receiver 170B, the microphone 170C, the headphone jack 170D, and the application processor.

[0105] The touch sensor 180K is also called a "touch panel". The touch sensor 180K can be set on the display screen 194, and the touch sensor 180K and the display screen 194 form a touch screen, also called a "touch screen". The touch sensor 180K is used to detect touch operations 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 194. In other embodiments, the touch sensor 180K can also be set on the surface of the electronic device 100, which is different from the position of the display screen 194.

[0106] The key 190 includes a power key, a volume key, etc. The key 190 may be a mechanical key or a touch key. The electronic device 100 may receive key input and generate key signal input related to user settings and function control of the electronic device 100.

[0107] Motor 191 can generate vibration prompts. Motor 191 can be used for incoming call vibration prompts, and can also be used for touch vibration feedback. For example, touch operations acting on different applications (such as taking pictures, audio playback, etc.) can correspond to different vibration feedback effects. For touch operations acting on different areas of the display screen 194, motor 191 can also correspond to different vibration feedback effects. Different application scenarios (for example: time reminders, receiving messages, alarm clocks, games, etc.) can also correspond to different vibration feedback effects. The touch vibration feedback effect can also support customization.

[0108] Indicator 192 may be an indicator light, which may be used to indicate charging status, power changes, messages, missed calls, notifications, etc.

[0109] The SIM card interface 195 is used to connect a SIM card. The SIM card can be connected to and separated from the electronic device 100 by inserting it into the SIM card interface 195 or pulling it out from the SIM card interface 195. The electronic device 100 can support 1 or N SIM card interfaces, where N is a positive integer greater than 1. The SIM card interface 195 can support Nano SIM cards, Micro SIM cards, SIM cards, and the like. Multiple cards can be inserted into the same SIM card interface 195 at the same time. The types of the multiple cards can be the same or different. The SIM card interface 195 can also be compatible with different types of SIM cards. The SIM card interface 195 can also be compatible with external memory cards. The electronic device 100 interacts with the network through the SIM card to implement functions such as calls and data communications. In some embodiments, the electronic device 100 uses an eSIM, i.e., an embedded SIM card. The eSIM card can be embedded in the electronic device 100 and cannot be separated from the electronic device 100.

[0110] It is to be understood that the structure illustrated in the embodiment of the present application does not constitute a specific limitation on the electronic device 100. In other embodiments of the present application, the electronic device 100 may include more or fewer components than shown in the figure, or combine some components, or split some 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.

[0111] The software system of the electronic device 100 may adopt a layered architecture, an event-driven architecture, a micro-core architecture, a micro-service architecture, or a cloud architecture. The embodiment of the present application takes the Android system of the layered architecture as an example to exemplify the software structure of the electronic device 100.

[0112] Figure 6 1 is a software structure diagram of the electronic device 100 of the embodiment of the present application. The layered architecture divides the software into several layers, each layer has a clear role and division of labor. The layers communicate with each other through software interfaces. In some embodiments, the Android system is divided into four layers, from top to bottom, namely, the application layer, the application framework layer, the Android runtime (Android runtime) and the system library, and the kernel layer. The application layer can include a series of application packages.

[0113] like Figure 6 As shown, the application package may include camera, gallery, calendar, call, map, navigation, WLAN, Bluetooth, music, video, short message and other applications.

[0114] The gallery application may include multiple processing modules, such as a recognition module, a statistics module, a display module, etc. The recognition module may recognize the photographed photos to identify the persons, objects, etc. included in the photos. The statistics module may count the number of the recognized persons, objects, etc. The display module may display the photos and the corresponding photo information, such as displaying the number of times each person appears in all the photos and adding a name control in the gallery application interface.

[0115] The application framework layer provides an application programming interface (API) and a programming framework for the applications in the application layer. The application framework layer includes some predefined functions.

[0116] like Figure 6 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.

[0117] 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.

[0118] Content providers are used to store and retrieve data and make it accessible to applications. The data can include videos, images, audio, calls made and received, browsing history and bookmarks, phone books, etc.

[0119] 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.

[0120] The phone manager is used to provide communication functions of the electronic device 100, such as management of call status (including connecting, hanging up, etc.).

[0121] The resource manager provides various resources for applications, such as localized strings, icons, images, layout files, video files, and so on.

[0122] 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 of applications running in the background, or a notification that appears on the screen in the form of a dialog window. 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.

[0123] Android runtime includes core libraries and virtual machines. Android runtime is responsible for scheduling and management of the Android system.

[0124] The core library consists of two parts: one part is the function that needs to be called by the Java language, and the other part is the Android core library.

[0125] 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.

[0126] The system library may include multiple functional modules, such as surface manager, media libraries, 3D graphics processing library (such as OpenGL ES), 2D graphics engine (such as SGL), etc.

[0127] The surface manager is used to manage the display subsystem and provide the fusion of 2D and 3D layers for multiple applications.

[0128] 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.

[0129] The 3D graphics processing library is used to implement 3D graphics drawing, image rendering, compositing, and layer processing.

[0130] A 2D graphics engine is a drawing engine for 2D drawings.

[0131] 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.

[0132] For ease of understanding, the following embodiments of the present application will be described in detail with Figure 5 and Figure 6 Taking the electronic device with the structure shown as an example, the photo processing method provided in the embodiment of the present application is specifically described in combination with the accompanying drawings and application scenarios.

[0133] Typically, after a user takes a photo using a camera of an electronic device, the electronic device can store the photo in memory and provide access to the photo, such as through a gallery application. At the same time, the gallery application can also recognize the taken photos to identify the people, objects, etc. included in the photos.

[0134] In one feasible manner, the gallery application can identify photos that have been taken but not identified when the electronic device is in an idle state or the CPU usage rate is low. For example, a user takes N photos using an electronic device on a certain day. If the electronic device detects that it is in an idle state between 2:00 and 4:00 in the morning, the electronic device can identify these N photos during this time period. Alternatively, the electronic device can set a fixed idle time period. For example, according to the user's usage habits, the probability of using the electronic device between 1:00 and 5:00 in the morning is relatively low. The electronic device can set this time period as an idle time period and identify N photos during this time period. In this implementation, the electronic device can reduce the power consumption of the electronic device and reduce power loss by performing photo recognition when the electronic device is in an idle state or the CPU usage rate is low.

[0135] In another achievable manner, without considering power consumption, the gallery application can recognize photos that have been taken but not recognized in real time. For example, when a user takes a photo using an electronic device, the electronic device can instantly recognize the photo. In this implementation, the electronic device recognizes the photos that have been taken in real time, which can improve the real-time performance of photo processing.

[0136] In another possible implementation, after the electronic device recognizes a photo, it can also count the recognition result and the recognition result obtained by the previous recognition. For example, when the electronic device recognizes a person, it can query the number of photos in which the person appears in all previous photos, and add 1 to the number. For example, when the electronic device recognizes person A, the electronic device queries that person A appears in 20 previous photos, and the number of photos can be changed to 21, and so on.

[0137] After the electronic device recognizes the photos that have been taken but not recognized, if the user browses the photos through the gallery application, for example, see the above Figure 1 As shown, on the photo preview interface, the user can click on any photo to enter the large photo interface of the photo for browsing. When browsing to the first photo (the first photo is any photo in the gallery application) and the photo includes a person, the electronic device can display an add name control on the photo to prompt the user to add a name to the person.

[0138] In one achievable manner, if the number of photos in which the person included in the first photo appears exceeds a first preset threshold, and the person has not been labeled with a name, the electronic device may display an add name control when the user browses the first photo. This scenario takes into account that if there are already photos that have exceeded the first preset threshold and no name has been added, it means that the user has most likely not used the add name function or has forgotten the function, thereby reminding the user and promoting the user to use the add name function. Optionally, the first preset threshold may be M photos.

[0139] For example, assuming that the first photo includes person A, M=50, if there are more than 50 photos of person A in all photos, and no name is marked, the electronic device can display a name-adding control on the first photo. Figure 7 As shown, the add name control can be displayed in the area where the person in the photo is located. Optionally, the add name control can include a prompt focus and a prompt button, such as Figure 7 As shown, the prompt focus is located at the face position of the character, and the prompt button is located below the prompt focus, displaying the text "Add Name".

[0140] In another achievable manner, the electronic device may also display the add name control only when the person included in the first photo has not been labeled with a name, that is, regardless of whether the person included has appeared in previous photos, as long as the person has not been labeled with a name, the add name control can be displayed.

[0141] In another feasible manner, when the first photo is a dynamic image, if the number of times a person included in the first photo appears in all photos exceeds a first preset threshold, and the person has not been labeled with a name, the electronic device can display an add name control after the dynamic effect of the first photo is played.

[0142] After the above-mentioned Add Name control is displayed, if the user wants to add a name for the character, the user can click the Add Name control, and the electronic device can pop up an input box for adding a name in response to the click operation. Figure 8 As shown, the input box for adding a name can be displayed superimposed on the large picture interface of the first photo. The input box for adding a name can include a name input box and a relationship selection control. The name input box allows users to enter the name of the character. There can be multiple relationship selection controls, each representing a different character relationship. The user can enter the character's name in the name input box, such as Xiao Zhang, and select a character relationship, such as a friend, to complete the process of adding a name. After completing the name addition, the electronic device can return to the large picture interface of the first photo, and the name addition control is no longer displayed. Optionally, at this time, the electronic device can display the added character's name on the first photo, or it can not display the added character's name, and it can also cancel the display of the character's name after displaying the added character's name for T seconds. This embodiment of the present application does not limit this.

[0143] If the user does not want to add a name for the person, the user may not click the add name control. If the user does not input a click operation, the electronic device may cancel the display of the add name control after a preset time. Exemplarily, the preset time may be S seconds, for example, 4 seconds, that is, if the user does not click the add name control in the large picture interface of the first photo, the add name control disappears after 4 seconds.

[0144] In one achievable manner, during the process of displaying the add name control, if the user clicks on other controls on the large image interface of the first photo, the electronic device may cancel the display of the add name control after receiving the click operation. Fig. 9 As shown, after the user clicks the edit control on the large image interface of the first photo, the electronic device will cancel the display of the add name control to allow the user to perform subsequent editing operations.

[0145] In the case where the user completes adding a name, does not choose to add a name, or selects other controls, the electronic device will cancel the display of the add name control. In order to minimize the impact on the user's normal use of the electronic device, the embodiment of the present application will no longer repeatedly display the add name control after the electronic device cancels the display of the add name control.

[0146] In one achievable manner, after the electronic device cancels display of the add name control, the add name control is no longer repeatedly displayed in the large picture interface of any photo on that day (i.e., it is only displayed once on the same day), but if the user browses the large picture interface of the first photo again the next day, or the large picture interface of other photos including people, the add name control can be displayed again. For example, if the add name control is displayed on person A in the first photo, but the user does not choose to add a name, the electronic device cancels display of the add name control; if other photos browsed by the user on that day also include person A or include another person B, the electronic device no longer displays the add name control; if the user browses the first photo or other photos including people again the next day, the electronic device can display the add name control again.

[0147] In another achievable manner, after the electronic device cancels the display of the add name control, the add name control will no longer be repeatedly displayed in the large picture interface of the photo on the same day and in the future. Only when the number of newly added photos of the corresponding person is greater than the second preset threshold when the add name control is canceled, the electronic device will display the add name control on the photo corresponding to the person (i.e., repeat the prompt). For example, the add name control is displayed on the person A in the first photo, but the user does not choose to add a name, then the electronic device cancels the display of the add name control, even if the other photos browsed by the user on the same day and in the future still include the person A, the electronic device will no longer display the add name control; only when the number of newly added photos of the person A is greater than the second preset threshold (for example, 10 photos), the electronic device will display the add name control on the photo of the person A. Therefore, if the user does not choose to add a name for the person, the electronic device will not frequently prompt the user, and will only prompt when the number of photos of the corresponding person increases to a certain extent, thereby reducing the disturbance of the electronic device to the user during use.

[0148] In another achievable method, it can be known from the above description that after completing the name addition, the electronic device will no longer display the add name control when returning to the large picture interface of the first photo. Since this scenario is the result of the user selecting add name, that is, the electronic device has already displayed the add name control, then the electronic device will not prompt to add names for the characters included in other photos on the same day, that is, the add name control will only be displayed once on the same day. For example, the add name control is displayed on character A in the first photo, the user selects to add a name and completes the addition, the electronic device returns to the large picture interface of the first photo, and the user continues to browse other photos. If the other photos include character B, the electronic device will no longer display the add name control. This can reduce the disturbance of the electronic device to the user during use.

[0149] It is understandable that if the electronic device cancels the display of the add name control when the user does not choose to add a name for the character, and the user wants to add a name for the character later, then optionally, the above Figure 3 or Figure 4 Alternatively, you can add a name for the user in the following two ways.

[0150] The first way, such as Fig.10 As shown in FIG. 1 , when the large image interface of the first photo is slid upward, the electronic device can display the portrait recognition result, and a name adding control can be displayed below the portrait reduction image, and the user can click the name adding control to add a name. Figure 2 The Add Name control is displayed on the portrait list in , for example Fig.11 As shown, an add name control is displayed below the reduced images of the two recognized persons, and the user can click the add name control to add a name.

[0151] The above implementations are all based on the first photo including one person A. In actual applications, there may be a scene where two or more people are included in the photo. For this scene, the electronic device can use the following method to display the add name control. For the convenience of description, the following embodiments are all based on the photo including two people. The implementation principle of more people is similar.

[0152] In one achievable manner, it can be seen from the above description that after taking a photo, the electronic device will identify and count the photos, and count the number of times the person in the photo appears in all the photos. Then, if the first photo includes person A and person B, the electronic device can obtain the number a of times person A appears in all the photos and the number b of times person B appears in all the photos. In this implementation, the electronic device can sort the number of times a person appears in all the photos, and preferentially display the add name control on the person with more photos. For example, Fig.12 As shown, assuming that the number a of person A (on the right) appearing in all photos is greater than the number b of person B (on the left) appearing in all photos, the electronic device displays an add name control at the position of person A.

[0153] If the user wants to add a name for character A, he can click the add name control, and the electronic device can pop up an input box for adding a name in response to the click operation. Fig.13 As shown, the input box for adding a name can be displayed superimposed on the large picture interface of the first photo. The input box for adding a name can include a name input box and a relationship selection control. The name input box allows the user to enter the name of the character. There can be multiple relationship selection controls, each representing a different character relationship. The user can enter the character name, such as Xiao Wang, in the name input box, and select a character relationship, such as a colleague, to complete the process of adding a name to character A. After completing the name addition, the electronic device can return to the large picture interface of the first photo, and the name addition control is no longer displayed.

[0154] Optionally, after the electronic device returns to the large picture interface of the first photo, because a name has been added to person A but not to person B, in order to improve the convenience of user operation, the electronic device may also display an add name control at the position of person B, so that the user can add a name to person B as well. Fig.14 As shown, the added name control is displayed at the position of character B.

[0155] If the user does not want to add a name for the person, the user may not click the add name control. If the user does not input a click operation, the electronic device may cancel the display of the add name control after a preset time. For example, the preset time may be S seconds, for example, 4 seconds, that is, if the user does not operate on the large picture interface of the first photo, the add name control disappears after 4 seconds.

[0156] Through the above embodiments, the electronic device can give a prompt to add a name when the user browses the large picture interface of the photo, thereby promoting the user to add names to the characters in the photo and improving the usage rate of the name adding function.

[0157] For the process of adding names to characters, see above Figure 8 or Fig.13 , that is, selection input can be performed on the name input box and the relationship selection control. During the selection input process, the embodiments of the present application can be implemented in the following ways.

[0158] In one achievable manner, if the user first selects a character relationship in the relationship selection control, the electronic device can automatically bring the characters corresponding to the character relationship into the name input box (i.e., enter the bring-in mode). Fig.15 As shown, when the user selects the character relationship of "classmate", the electronic device brings the word "classmate" into the name input box.

[0159] In this import mode, if the user changes the character relationship, the electronic device will still automatically import the characters corresponding to the changed character relationship into the name input box. Fig.16 As shown, the user changes the character relationship from "classmate" to "friend", and the electronic device brings the word "friend" into the name input box. Thus, the electronic device can reduce the user's input operations by bringing in the word with one click.

[0160] In this import mode, if the user changes the name of a character and changes the name to characters that are different from the character relationship, when the user subsequently changes the character relationship, the electronic device will no longer import the characters corresponding to the character relationship into the name input box. Fig.17 As shown, the current character name and character relationship are both "friends". Suppose the user changes the character name to Xiao Li, which is different from the characters of "friends"; if the user changes the character relationship from "friends" to "classmates", the electronic device will not bring the word "classmate" into the name input box, and Xiao Li will still be displayed in the name input box.

[0161] Depend on Fig.16 and Fig.17 It can also be seen that when the electronic device is in the bring-in mode, the characters in the name input box are in a selected state, and after the user manually enters the name of the person, the characters in the name input box are no longer in a selected state, but become a cursor input state.

[0162] In another possible implementation, if the user first enters the character's name in the text input box and then selects the character relationship, there may be two situations: one is that the name entered by the user in the text input box is the same as the characters corresponding to the selected character relationship; the other is that the name entered by the user in the text input box is different from the characters corresponding to the selected character relationship.

[0163] In the case where the name entered by the user in the text input box is the same as the character corresponding to the selected character relationship, if the user changes the character relationship, the electronic device can bring the character corresponding to the changed character relationship into the text input box. Fig.18 As shown, the name entered by the user in the text input box is "best friend", and the selected character relationship is also "best friend", that is, the characters of the two are the same. Then, if the user changes the character relationship to "friend", the electronic device will also bring the word "friend" into the text input box, that is, the electronic device enters the above-mentioned bringing-in mode.

[0164] When the name entered by the user in the text input box is different from the characters corresponding to the selected character relationship, the user can change the entered character name at will (as long as the changed character name is different from the character relationship), or the user can change the character relationship at will, and the electronic device will not bring the characters corresponding to the character relationship into the text input box.

[0165] In another feasible method, the electronic device may not set the import mode, that is, when the user selects the character relationship first, the characters corresponding to the character relationship will not be brought into the text input box. In other words, the user can enter the name in the text input box and select the character relationship in the relationship selection control according to their needs, and the two input contents are not related.

[0166] Through the above embodiments, the electronic device provides multiple ways to input the name input box and the relationship selection control, which can reduce the user's input operations in the input bring-in mode and improve the user's usage experience.

[0167] In some scenarios, in addition to displaying the add name control, the electronic device may also need to display other guidance interfaces, such as gallery application usage guidance, dynamic photo viewing guidance, pop-up window guidance, etc. In the embodiment of the present application, the priority of displaying the add name control can be set to the lowest, and the priority of displaying other guidance interfaces can be set to a higher level, that is, the priority of displaying other guidance interfaces is higher than the priority of displaying the add name control.

[0168] Under this setting, other guide interfaces will not be displayed at the same time as the add name control. If the electronic device conflicts with the time of displaying other guide interfaces, the electronic device will display other guide interfaces first and then display the add name control. Optionally, if the add name control cannot be displayed in the current photo, the add name control can be displayed in the next photo. This can ensure the normal use priority of the electronic device and improve the user experience.

[0169] Combined with the above application scenarios, Fig.19: is a flowchart of a photo processing method provided in an embodiment of the present application. The method is executed by an electronic device and may specifically include:

[0170] S101, when it is detected that a user is browsing a large picture interface of a first photo, determining whether information of the first photo satisfies a first condition.

[0171] When users browse photos through the gallery application, they may preview them in order by shooting time, or they may preview them by category by album. During the preview process, users can click on any photo to browse the large image. Then, when the electronic device detects that the user is browsing the large image interface of the first photo, it can determine whether the information of the first photo meets the first condition.

[0172] Here, the information of the first photo may include but is not limited to the object included in the first photo, the number of photos (or times) in which the object appears in all photos stored in the electronic device, and optionally, the object may include a person, a thing, or a place, etc. The first condition indicates that the number of photos in which the person included in the photo appears in all photos exceeds a first preset threshold and the person has not been labeled with a name.

[0173] If the electronic device wants to determine whether the information of the first photo meets the first condition, it needs to obtain the information of the first photo. Optionally, the electronic device can obtain the information of the first photo by identifying the first photo, for example, by identifying the first photo through an image recognition algorithm, identifying the object included in the photo, and counting the number of photos in which the object appears.

[0174] In one possible implementation, the electronic device can identify photos that have been taken but not identified when it is in an idle state or when the CPU usage is low; for example, the electronic device identifies photos taken that day between 2:00 and 4:00 in the morning. In another possible implementation, the electronic device can identify photos that have been taken but not identified in real time; for example, when a user takes a photo using the electronic device, the electronic device can immediately identify the photo.

[0175] S102: If the information of the first photo satisfies a first condition, display a first control on the large image interface of the first photo.

[0176] If the first photo includes a person, and the number of times the person appears in all photos exceeds a first preset threshold and the person has not been labeled with a name, the electronic device can determine that the information of the first photo meets the first condition, and the electronic device can display a first control on the large image interface of the first photo. The first control can be a control for adding a name.

[0177] Optionally, the first control may be displayed in the area where the person in the first photo is located. Optionally, the first control may also include a prompt focus and a prompt button. Figure 7 As shown, the prompt focus can be located at the face position of the character, and the prompt button can be located below the prompt focus, displaying the text "Add Name".

[0178] It can be understood that if the information of the first photo does not meet the first condition, the electronic device does not display the first control.

[0179] It can also be understood that the above process can also be implemented by the gallery application in the electronic device or the various processing modules in the gallery application. Figure 6 As shown, the gallery application includes a recognition module, a statistics module and a display module; the recognition module can recognize the taken photos to identify the people, things, etc. included in the photos. The statistics module can obtain the recognition results from the recognition module and count the number of the recognized people, things, etc. The display module can obtain the statistics results from the statistics module, and when displaying the large picture interface of the first photo, if it is determined that the information of the first photo meets the first condition, the first control is displayed on the large picture interface of the first photo.

[0180] In the above-mentioned photo processing method, when a user browses the large picture interface of the first photo, if the person included in the first photo has not been labeled with a name and the number of times the person appears in all photos has exceeded a first preset threshold, the electronic device can give a prompt to add a name on the large picture interface, thereby encouraging the user to add a name to the person in the photo and improving the usage rate of the name adding function.

[0181] Fig. 20 is a flowchart of another example of a photo processing method provided by an embodiment of the present application. After the electronic device displays a first control, the user can choose to click the first control or not. Therefore, Fig. 20 As shown, the photo processing method may include:

[0182] S201, when it is detected that a user is browsing a large picture interface of a first photo, determining whether information of the first photo satisfies a first condition.

[0183] S202: If the information of the first photo satisfies a first condition, display a first control on the large image interface of the first photo.

[0184] The implementation process of S201 to S202 can refer to the description of the above embodiment and will not be repeated here.

[0185] S203: If a click operation on the first control by the user is received, an input interface for adding a name is displayed.

[0186] Optionally, the user's click operation on the first control may be a click operation on the prompt focus in the first control, or a click operation on the prompt button in the first control. When the electronic device receives the user's click operation, it displays the above Figure 8 Optionally, the input interface for adding a name includes a name input box and a relationship selection control.

[0187] S204, receiving the character name and character relationship input by the user in the input interface for adding a name, and returning to the large picture interface for displaying the first photo.

[0188] In the above Figure 8 In the input interface for adding a name, a name input box is provided for the user to input a character name, and there may be multiple relationship selection controls, each representing a different character relationship. The user may input a character name, such as Xiao Wang, in the name input box, and select a character relationship, such as a colleague, to complete the process of adding a character name. After completing the process of adding a name, for example, after the user clicks the confirmation control, the electronic device may return to the large picture interface of the first photo, and the add name control is no longer displayed.

[0189] S205: If no click operation on the first control is received from the user within a preset time period, or if a click operation on the second control is received from the user, cancel the display of the first control.

[0190] The second control may be other controls on the large picture interface of the first photo except the first control. If the user does not click on the first control within a preset time (e.g., S seconds), or the user clicks on other controls on the large picture interface of the first photo, the electronic device may cancel displaying the first control, and the user may perform other operations at this time.

[0191] Optionally, if the electronic device cancels display of the first control, then when the number of newly added photos corresponding to the person included in the first photo is greater than a second preset threshold, the electronic device may repeatedly display the first control.

[0192] In the above-mentioned photo processing method, when the user clicks on the first control, the electronic device can display an input interface for adding a name for the user to add a name, so as to facilitate the user to add a name to the character; when the user does not click on the first control or clicks on other controls, the electronic device can cancel the display of the first control to reduce the impact on the user's operation.

[0193] Fig.21 is a flowchart of another example of a photo processing method provided in an embodiment of the present application, which involves the process in which the user enters a character name and a character relationship in the input interface for adding a name in the above S204, such as Fig.21 As shown, the process may specifically include:

[0194] S301, if the character relationship selected by the user is received first and the stored character name is empty, the characters corresponding to the character relationship are automatically filled into the name input box.

[0195] That is to say, if the user first selects a character relationship in the relationship selection control, and because the name has not been marked before, the stored character name is empty, the electronic device can automatically bring the character relationship into the name input box (that is, enter the import mode).

[0196] In this scenario, if the user changes the character relationship, the electronic device will automatically fill in the characters corresponding to the new character relationship into the name input box. If the user changes the character's name and changes the name to characters that are different from the character relationship, when the user subsequently changes the character relationship, the electronic device will no longer bring the characters corresponding to the character relationship into the name input box.

[0197] S302: If the character name input by the user is received first and then the character relationship input is received, the corresponding relationship between the character name and the character relationship is stored.

[0198] S303, when it is detected that the user has changed the character relationship, determine whether the characters corresponding to the stored character names are the same as the characters corresponding to the character relationship.

[0199] S304: If the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship, the characters corresponding to the changed character relationship are automatically filled into the name input box.

[0200] S305: If the characters corresponding to the stored character names are different from the characters corresponding to the character relationships, the corresponding relationship between the character names and the modified character relationships is stored.

[0201] That is, when the user inputs a character name, the input character name may be the same as the characters corresponding to the character relationship, or may be different. If the input character name is the same as the characters corresponding to the character relationship, the electronic device can automatically enter the above-mentioned import mode, and when the character relationship is subsequently changed, the characters corresponding to the changed character relationship can be automatically filled into the name input box. If the input character name is different from the characters corresponding to the character relationship, the electronic device does not enter the import mode, and the user can change the input character name and character relationship at will, as long as the changed character name is different from the character relationship.

[0202] It can be understood that the above S301 and S302-S305 are two parallel situations. In actual processing, if the electronic device detects that the user selects a character relationship, it can determine whether the stored character name is empty, or whether the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship. If the stored character name is empty, or the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship, the electronic device can automatically fill in the characters corresponding to the selected character relationship into the name input box. If the stored character name is not empty, and the characters corresponding to the stored character name are not the same as the characters corresponding to the character relationship, the character name in the name input box will not be changed.

[0203] In the above process of inputting character names and character relationships, the electronic device provides multiple ways to input into the name input box and the relationship selection control, which can reduce the user's input operations and improve the user's experience in the input import mode.

[0204] In the above Fig.19 Based on the embodiment shown, if there are multiple people included in the first photo, the electronic device can add name prompts to the people in the first photo according to the number of people, such as Fig. 22 As shown, the process may include:

[0205] S401, when it is detected that a user is browsing a large picture interface of a first photo, determining the number of people included in the first photo.

[0206] S402: If the number of persons included in the first photo is greater than 1, then among the persons satisfying the first condition, determine the first person who appears in the largest number of photos.

[0207] That is, when the first photo includes multiple persons, the electronic device needs to determine which persons among the multiple persons appear in more than a first preset threshold in all photos and have not been named. If there are multiple persons who meet the first condition, the electronic device determines that the person with the largest number of appearances is the first person, and displays the first control only at the position of the first person.

[0208] S403: Display a first control at the position of the first character.

[0209] It can be understood that if there is only one character that meets the first condition, the electronic device can simply display the first control at the position of the character.

[0210] With the above-mentioned photo processing method, the electronic device can give a prompt to add a name when the user is browsing the large picture interface of the photo, thereby promoting the user to add names to the characters in the photo and improving the usage rate of the name adding function.

[0211] The above describes in detail an example of a photo processing method provided by an embodiment of the present application. It is understandable that, in order to implement the above functions, the electronic device includes hardware and / or software modules corresponding to the execution of each function. Those skilled in the art should easily realize that, in combination with the units and algorithm steps of each example described in the embodiments disclosed herein, the present application can be implemented in the form of hardware or a combination of hardware and computer software. Whether a function is executed in the form of hardware or computer software driving hardware depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application in combination with the embodiments, but such implementation should not be considered to exceed the scope of the present application.

[0212] The embodiment of the present application can divide the functional modules of the electronic device according to the above method example. For example, each function can be divided into various functional modules, such as a detection unit, a processing unit, a display unit, etc., or two or more functions can be integrated into one module. The above integrated module can be implemented in the form of hardware or in the form of a software functional module. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0213] 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.

[0214] The electronic device provided in this embodiment is used to execute the above-mentioned photo processing method, and thus can achieve the same effect as the above-mentioned implementation method.

[0215] In the case of an integrated unit, the electronic device may further include a processing module, a storage module and a communication module. The processing module may be used to control and manage the actions of the electronic device. The storage module may be used to support the electronic device to execute stored program codes and data, etc. The communication module may be used to support the electronic device to communicate with other devices.

[0216] Among them, the processing module can be a processor or a controller. It can implement or execute various exemplary logic boxes, modules and circuits described in conjunction with the disclosure of this application. The processor can also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of a digital signal processor (DSP) and a microprocessor, and so on. The storage module can be a memory. The communication module can specifically be a device that interacts with other electronic devices, such as a radio frequency circuit, a Bluetooth chip, a Wi-Fi chip, etc.

[0217] In one embodiment, when the processing module is a processor and the storage module is a memory, the electronic device involved in this embodiment may be a Figure 5 Device of the structure shown.

[0218] An embodiment of the present application also provides a computer-readable storage medium, in which a computer program is stored. When the computer program is executed by a processor, the processor executes the photo processing method of any of the above embodiments.

[0219] The embodiment of the present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the photo processing method in the above-mentioned embodiment.

[0220] In addition, an embodiment of the present application also provides a device, which can specifically be a chip, component or module, and the device may include a connected processor and memory; wherein the memory is used to store computer-executable instructions, and when the device is running, the processor can execute the computer-executable instructions stored in the memory so that the chip executes the photo processing method in the above-mentioned method embodiments.

[0221] Among them, the electronic device, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the corresponding methods provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding methods provided above and will not be repeated here.

[0222] Through the description of the above implementation methods, technical personnel in the relevant field can 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.

[0223] 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 modules or units is only a logical function division, and 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.

[0224] 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.

[0225] 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.

[0226] 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 various embodiments 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.

[0227] 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 technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.

Claims

1. A photo processing method, the method being executed by an electronic device, characterized in that: The method comprises: When detecting that a user is browsing a large picture interface of a first photo, determining whether information of the first photo satisfies a first condition; If the information of the first photo satisfies the first condition, a first control is displayed on the large image interface of the first photo, wherein the information of the first photo satisfies the first condition, indicating that the number of times a person included in the first photo has appeared in all photos stored in the electronic device is greater than a first preset threshold, and the person included in the first photo is not labeled with a name, and the first control is used to trigger adding a name for the person included in the first photo.

2. The method according to claim 1, characterized in that After displaying the first control, the method further includes: If a click operation of the user on the first control is received, an input interface for adding a name is displayed; If no click operation on the first control by the user is received within a preset time period, or if a click operation on a second control by the user is received, the first control is canceled, and the second control is other controls on the large image interface of the first photo except the first control.

3. The method according to claim 2, characterized in that After the input interface for adding a name is displayed, the method further includes: The character name and character relationship input by the user in the input interface for adding a name are received, and a large picture interface for displaying the first photo is returned, wherein the first control is not displayed on the large picture interface for the first photo.

4. The method according to claim 2, characterized in that: After canceling the display of the first control, the method further includes: If it is detected that the user is browsing the large picture interface of the second photo on the current date, and the information of the second photo satisfies the first condition, the first control is not displayed in the large picture interface of the second photo.

5. The method according to claim 2, characterized in that: After canceling the display of the first control, the method further includes: If the number of newly added photos corresponding to the person included in the first photo is greater than a second preset threshold, the first control is displayed when the user previews the large-picture interface of the photo corresponding to the person.

6. The method according to claim 3, characterized in that The input interface for adding a name includes a relationship selection control and a name input box, and the receiving of the character name and the character relationship input by the user in the input interface for adding a name includes: If it is detected that the user selects a character relationship in the relationship selection control, determining whether the stored character name is empty, or whether the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship; If the stored character name is empty, or the characters corresponding to the stored character name are the same as the characters corresponding to the character relationship, the characters corresponding to the character relationship selected by the user are automatically filled into the name input box; If the stored character name is not empty, and the characters corresponding to the stored character name are different from the characters corresponding to the character relationship, the character name in the name input box is not changed.

7. The method according to any one of claims 1 to 6, characterized in that If there are multiple people in the first photo that meet the first condition, displaying a first control on the large picture interface of the first photo includes: The first control is displayed at the position of a first person in the first photo, where the first person is a person included in the first photo and has appeared in the largest number of photos in all photos stored in the electronic device.

8. The method according to any one of claims 1 to 7, characterized in that The first control includes a prompt focus and a prompt button.

9. The method according to any one of claims 1 to 8, characterized in that If the first photo is a dynamic photo, displaying a first control on the large image interface of the first photo includes: After the dynamic effect of the first photo is played, a first control is displayed on the large picture interface of the first photo.

10. The method according to any one of claims 1 to 9, characterized in that Before detecting that the user browses the large-image interface of the first photo, the method further includes: The photographs that have been taken but not identified are identified, the persons included in the photographs are determined, and the number of photos in which the persons have appeared in all the photos stored in the electronic device is counted.

11. An electronic device, characterized in that: include: one or more processors; one or more memories; The memory stores one or more programs, and when the one or more programs are executed by the processor, the electronic device executes the method according to any one of claims 1 to 10.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program. When the computer program is executed by a processor, the processor calls instructions so that the electronic device executes the method according to any one of claims 1 to 10.