EP-4742016-A1 - INPUT INTERACTION METHOD, ELECTRONIC DEVICE, AND READABLE MEDIUM
Abstract
This application provides an input interaction method, an electronic device, and a readable medium. The input interaction method includes: An electronic device displays a first interface, where the first interface includes a first area, a first makeup sub-option and a first button are displayed in the first area, and the first makeup sub-option corresponds to a first makeup look; the electronic device displays a first makeup element, a second makeup element, and a second button in the first area in response to a tapping operation of a user on the first button, where the first makeup element is in a first state, the second makeup element is in a second state, and a plurality of options of the first makeup element are further displayed in the first area; the electronic device displays the first makeup sub-option and the second makeup sub-option in the first area in response to a tapping operation of the user on the second button, where the second makeup sub-option corresponds to a second makeup look, so that the user performs the tapping operation on the first button and the second button, and the electronic device obtains, in response to the tapping operation of the user, a makeup sub-option corresponding to a new makeup look, to enrich a facial beautification function.
Inventors
- HUANG, YUFEI
- YI, JIE
- NIU, Siyue
Assignees
- Honor Device Co., Ltd.
Dates
- Publication Date
- 20260513
- Application Date
- 20240805
Claims (20)
- An input interaction method, comprising: displaying, by an electronic device, a first interface, wherein the first interface comprises a first area, a first makeup sub-option and a first button are displayed in the first area, and the first makeup sub-option corresponds to a first makeup look; displaying, by the electronic device, a first makeup element, a second makeup element, and a second button in the first area in response to a tapping operation of a user on the first button, wherein the first makeup element is in a first state, the second makeup element is in a second state, and a plurality of options of the first makeup element are further displayed in the first area; and displaying, by the electronic device, the first makeup sub-option and a second makeup sub-option in the first area in response to a tapping operation of the user on the second button, wherein the second makeup sub-option corresponds to a second makeup look.
- The input interaction method according to claim 1, wherein before displaying, by the electronic device, the first makeup sub-option and the second makeup sub-option in the first area in response to the tapping operation of the user on the second button, the method further comprises: receiving a tapping operation of the user on a first option of the first makeup element; and displaying, by the electronic device in response to the tapping operation of the user on the first option of the first makeup element, that the first option is in the first state and another option of the first makeup element is in the second state.
- The input interaction method according to claim 2, wherein a first portrait is further displayed in the first area of the first interface, and after receiving the tapping operation of the user on the first option of the first makeup element, the method further comprises: displaying, by the electronic device in response to the tapping operation of the user on the first option of the first makeup element, a makeup look of the first option in an area in which the first portrait corresponds to the first makeup element.
- The input interaction method according to claim 1, wherein a first portrait is further displayed in the first area of the first interface, and the method further comprises: displaying, by the electronic device, the second makeup look on the first portrait in response to the tapping operation of the user on the second button.
- The input interaction method according to any one of claims 1 to 4, wherein the electronic device displays the first makeup sub-option and the second makeup sub-option in the first area, the second makeup sub-option is in the first state, and the first makeup sub-option is in the second state; and the electronic device further displays a scale bar of the second makeup sub-option in the first area, the scale bar comprising a scale value and a scale mark.
- The input interaction method according to claim 5, wherein an icon of the second makeup sub-option in the first state is a first icon.
- The input interaction method according to claim 6, wherein after displaying, by the electronic device, the first makeup sub-option and the second makeup sub-option in the first area, the method further comprises: displaying, by the electronic device in response to a tapping operation of the user on the first makeup sub-option, that the first makeup sub-option is in the first state, and the second makeup sub-option is in the second state, wherein an icon of the second makeup sub-option is a second icon; and further displaying, by the electronic device, a scale bar of the first makeup sub-option in the first area, wherein the scale bar comprises a scale value and a scale mark.
- The input interaction method according to any one of claims 1 to 7, wherein the electronic device further displays a third button in the first area in response to the tapping operation of the user on the first button, and the method further comprises: displaying, by the electronic device, the first interface in response to a tapping operation of the user on the third button.
- The input interaction method according to claim 5, wherein the first portrait is further displayed in the first area of the first interface, the scale bar of the second makeup sub-option comprises a first scale value, and the method further comprises: receiving a left-slide operation that is input by the user at the scale bar of the second makeup sub-option; and displaying, by the electronic device, the scale mark and a second scale value at the scale bar of the second makeup sub-option in response to the left-slide operation of the user, wherein the second scale value is greater than the first scale value; and displaying, by the electronic device, an updated makeup look corresponding to the second makeup sub-option on the first portrait.
- The input interaction method according to claim 9, further comprising: displaying, by the electronic device, a first mark at the first scale value in the scale bar of the second makeup sub-option in response to the left-slide operation of the user.
- The input interaction method according to any one of claims 1 to 10, further comprising: receiving a long-press operation of the user on the second makeup sub-option; displaying, by the electronic device in response to the long-press operation of the user on the second makeup sub-option, that the second makeup sub-option is in a third state; displaying, by the electronic device, a second interface in response to a tapping operation of the user on a name of the second makeup sub-option, wherein the second interface comprises a first pop-up window and a keyboard of an input method, and the first pop-up window comprises a text input area and a fourth button; receiving a text that is input by the user in the text input area, and displaying the text that is input by the user in the text input area; and displaying, by the electronic device, the first makeup sub-option and the second makeup sub-option in the first area in response to a tapping operation of the user on the fourth button, wherein the second makeup button is in the third state, and the name of the second makeup sub-option is the text that is input by the user.
- The input interaction method according to claim 11, wherein the second makeup sub-option in the third state further comprises a fifth button, and the method further comprises: displaying, by the electronic device, a second pop-up window in response to a tapping operation of the user on the fifth button, wherein the second pop-up window comprises prompt information for deleting the second makeup sub-option and a sixth button; and in response to a tapping operation of the user on the sixth button, displaying, by the electronic device, the first makeup sub-option, and skipping displaying the second makeup sub-option.
- The input interaction method according to claim 12, wherein the second pop-up window further comprises a seventh button, and the method further comprises: displaying, by the electronic device, the first makeup sub-option and the second makeup sub-option in response to a tapping operation of the user on the seventh button, wherein the second makeup sub-option is in the third state.
- The input interaction method according to any one of claims 1 to 13, wherein the electronic device further displays the first button in the first area in response to the tapping operation of the user on the second button.
- The input interaction method according to any one of claims 1 to 13, wherein a third makeup sub-option is further displayed in the first area of the first interface of the electronic device, the third makeup sub-option corresponds to a third makeup look, and in response to the tapping operation of the user on the second button, the electronic device displays the first makeup sub-option and the second makeup sub-option in the first area, and skips displaying the first button.
- The input interaction method according to claim 15, wherein an icon of the third makeup sub-option is the same as the icon of the second makeup sub-option.
- The input interaction method according to claim 15, wherein the second makeup sub-option is located after the third makeup sub-option in the first area, and the method further comprises: displaying, by the electronic device in response to an operation of dragging the second makeup sub-option to a position before the third makeup sub-option and then releasing the second makeup sub-option, that the second makeup sub-option is located before the third makeup sub-option in the first area.
- An electronic device, comprising: one or more processors, a memory, and a display screen, wherein the memory and the display screen are coupled to the one or more processors, the memory is configured to store a computer program, the computer program comprises computer instructions, and when the one or more processors execute the computer instructions, the electronic device performs the input interaction method according to any one of claims 1 to 17.
- A computer-readable storage medium, configured to store a computer program, wherein the computer program, when executed, is specifically configured to implement the input interaction method according to any one of claims 1 to 17.
- A computer program product, wherein the computer program product, when run on a computer, enables the computer to perform the input interaction method according to any one of claims 1 to 17.
Description
This application claims priority to Chinese Patent Application No. 202311585514.3, filed with the China National Intellectual Property Administration on November 23, 2023 and entitled "INPUT INTERACTION METHOD, ELECTRONIC DEVICE, AND READABLE MEDIUM", which is incorporated herein by reference in its entirety. TECHNICAL FIELD This application relates to the field of data processing technologies, and in particular, to an input interaction method, an electronic device, a computer program product, and a computer-readable storage medium. BACKGROUND Facial beautification is a common function of an electronic device. For example, when using an electronic device to take a picture, a user enables a facial beautification function of a camera, and the facial beautification function is used to perform facial beautification processing on an image captured by the camera. However, the facial beautification function of the electronic device has room for improvement. SUMMARY This application provides an input interaction method, an electronic device, a computer program product, and a computer-readable storage medium, to enrich a facial beautification function by interacting with a user. To achieve the foregoing objective, this application provides the following technical solutions. According to a first aspect, this application provides an input interaction method, including: An electronic device displays a first interface, where the first interface includes a first area, a first makeup sub-option and a first button are displayed in the first area, and the first makeup sub-option corresponds to a first makeup look; the electronic device displays a first makeup element, a second makeup element, and a second button in the first area in response to a tapping operation of a user on the first button, where the first makeup element is in a first state, the second makeup element is in a second state, and a plurality of options of the first makeup element are further displayed in the first area; and the electronic device displays the first makeup sub-option and a second makeup sub-option in the first area in response to a tapping operation of the user on the second button, where the second makeup sub-option corresponds to a second makeup look. The first area may refer to a viewfinder frame of the first interface, the first button may refer to a custom button, and the custom button is used to provide a makeup look created by the user. The second button refers to a save button, and is used to save the makeup look created by the user. It may be learned from the foregoing content that, the user may perform the tapping operations on the first button and the second button, and the electronic device may obtain a makeup sub-option of a user-defined makeup look in response to the tapping operations of the user, to enrich a facial beautification function. In a possible implementation, before that the electronic device displays the first makeup sub-option and the second makeup sub-option in the first area in response to the tapping operation of the user on the second button, the method further includes: The electronic device receives a tapping operation of the user on a first option of the first makeup element; and the electronic device displays, in response to the tapping operation of the user on the first option of the first makeup element, that the first option is in the first state and another option of the first makeup element is in the second state. In the foregoing possible implementation, each option of the first makeup element corresponds to one makeup effect, the first state is a selected state, the second state is a non-selected state, and the user may select, by tapping the first option of the first makeup element, a makeup effect corresponding to the first option. In a possible implementation, a first portrait is further displayed in the first area of the first interface, and after receiving the tapping operation of the user on the first option of the first makeup element, the method further includes: The electronic device displays, in response to the tapping operation of the user on the first option of the first makeup element, a makeup look of the first option in an area in which the first portrait corresponds to the first makeup element. In this way, the makeup look of the first option selected by the user may be added to the portrait displayed in the first area. In a possible implementation, the first portrait is further displayed in the first area of the first interface, and the method further includes: The electronic device displays the second makeup look on the first portrait in response to the tapping operation of the user on the second button. In this way, the makeup look created by the user is added to the portrait displayed in the first area. In a possible implementation, the electronic device displays the first makeup sub-option and the second makeup sub-option in the first area, the second makeup sub-option is in the