CN-122023575-A - Image editing method and electronic equipment
Abstract
The embodiment of the application provides an image editing method and electronic equipment. In the scheme, the electronic equipment can edit the expression of the face object in the target image through the expression of the face object in the real-time preview image acquired by the camera, or edit the expression of the face object in the target image according to the expression in the target expression template selected by the user. According to the scheme, the expression of the face object in the image can be edited through simple operation, so that the expression of the face object in the edited image is more natural, the user demand is met, the editing time is shortened, the operation threshold is reduced, the expression editing efficiency of the image is improved, and finally the user experience is improved.
Inventors
- DAI TIANYAO
- LI YUTING
- ZHENG JIANGZHEN
- LI CHONGYI
Assignees
- 华为技术有限公司
Dates
- Publication Date
- 20260512
- Application Date
- 20251105
Claims (20)
- 1. An image editing method applied to an electronic device, comprising: displaying a first interface comprising a first image, wherein the first image comprises at least one face object; The method comprises the steps of responding to a first operation, displaying a second interface, wherein the second interface comprises an editing preview area and a video preview area, the editing preview area displays a first face object in a first image, the first face object is one face object in at least one face object, the video preview area displays a second face object in a real-time preview image acquired through a camera of the electronic equipment, and the expression of the first face object in the editing preview area is dynamically matched with the expression of the second face object in the real-time preview image acquired by the camera; And responding to a second operation, displaying a third interface comprising a second image, wherein the expression of the first face object in the second image is matched with the expression of the second face object in a target image acquired by the camera when the second operation is executed.
- 2. The method of claim 1, wherein in a default state, the face object displayed in the video preview area is a face object in a live preview image acquired by a first camera, the first camera being a front camera or a rear camera; the second interface also comprises a camera switching control, and the camera switching control is used for switching cameras responsible for collecting real-time preview images.
- 3. The method of claim 1 or 2, wherein the video preview area is displayed in suspension in the second interface, the method further comprising: and changing the position of the video preview area in the second interface in response to the operation of the video preview area.
- 4. A method as claimed in claim 3, wherein the method further comprises: And when the operation on the video preview area is finished, moving the position of the video preview area to the edge position of the editing preview area or the edge position of a screen.
- 5. The method of any one of claims 1-4, wherein the method further comprises: Outputting a first prompt message when the real-time preview image acquired by the camera does not contain the face object, wherein the first prompt message is used for prompting that the face object is not detected in the real-time preview image acquired by the camera, or And outputting second prompt information when the second face object in the real-time preview image acquired by the camera is positioned at the edge of the real-time preview image, wherein the second prompt information is used for prompting the moving direction of the second face object.
- 6. The method of any of claims 1-5, wherein the second interface further comprises a region switch control for switching a position of the edit preview region from a position of the video preview region.
- 7. The method of any of claims 1-6, wherein the second interface further comprises a hiding control for hiding the video preview area.
- 8. The method of any one of claims 1-7, wherein the method further comprises: Before displaying the second interface, determining that the first face object does not belong to a specific individual, or Before displaying the second interface, determining that the individual to which the first face object belongs is the same as the individual to which the second face object belongs, or When the individual to which the first face object belongs is different from the individual to which the second face object belongs, alarm information is displayed in the second interface, and/or synthetic prompt information is added in the second image, or Before the third interface is displayed, determining that the expression of the second face object in the target image acquired by the camera does not belong to a specific expression.
- 9. The method of any one of claims 1-8, wherein the second interface further comprises a plurality of recommended expression templates, the method further comprising: And displaying expression guide information in the second interface in response to an operation for selecting a target recommended expression template, wherein the expression guide information is used for guiding a user to make an expression in the target recommended expression template, and the target recommended expression template is any one of the plurality of recommended expression templates.
- 10. The method of claim 9, wherein the method further comprises: and when the expression of the first face object is changed to be matched with the expression in the target facial expression template, outputting third prompt information, wherein the third prompt information is used for prompting a user to execute the second operation.
- 11. The method of any of claims 1-10, wherein the second interface further comprises a first contrast control for switching between displaying the first face object and the first image in an expression edit within the edit preview area in the second interface, and/or, The third interface also comprises a second contrast control, and the second contrast control is used for displaying the second image and the first image in a switching mode in the third interface.
- 12. The method according to any one of claims 1-11, wherein when a plurality of face objects are included in the first image, the editing preview area further displays a third face object in the first image, the third face object being a face object of the plurality of face objects other than the first face object, and an expression of the third face object remaining dynamically matched with an expression of the second face object in the live preview image captured by the camera.
- 13. An image editing method applied to an electronic device, comprising: Displaying a first interface comprising a first image, wherein the first image comprises at least one face object; The method comprises the steps of responding to a first operation, displaying a second interface, wherein the second interface comprises an editing preview area and a template display area, the editing preview area displays a first face object in the first image, and the first face object is one face object in the at least one face object; responding to the operation of the target expression template displayed in the template display area, and displaying the first face object with the modified expression in the editing preview area, wherein the expression of the first face object with the modified expression is matched with the expression in the target expression template; and responding to a second operation, displaying a third interface comprising a second image, wherein the expression of the first face object in the second image is matched with the expression in the target expression template.
- 14. The method of claim 13, wherein the at least one expression template includes at least one system-set expression template and/or at least one target facial expression template selected by a user.
- 15. The method of claim 13 or 14, wherein the stencil presentation area of the second interface further comprises an expression self-selection control, the method further comprising: The method comprises the steps of responding to an operation executed on the expression self-selection control, displaying a first popup window, wherein the first popup window is used for displaying a facial expression template stored in an expression library, and the facial expression template is generated based on a facial object in a stored image; And in response to an operation performed on at least one first facial expression template in the first popup window, displaying the at least one first facial expression template in the template display area in the second interface.
- 16. The method of claim 15, wherein the first popup further comprises adding a control, the method further comprising: responsive to an operation performed on the add control, displaying a second popup that includes thumbnails of a plurality of images stored by the electronic device; Displaying a third popup in response to an operation performed on a thumbnail of a target image in the second popup, wherein the third popup comprises at least one first facial expression image, each first facial expression image comprising a face object in the target image; responding to the operation executed on at least one target facial expression image in the third popup window, and displaying the first popup window in a retreating way, wherein at least one second facial expression template is added in the first popup window, or displaying the second interface in a retreating way, wherein at least one second facial expression template is added in a template display area in the second interface; Wherein the at least one second facial expression template is derived based on the at least one target facial expression image.
- 17. The method of claim 16, wherein the displaying a third pop-up window in response to an operation performed on a thumbnail of a target image in the second pop-up window comprises: displaying a fourth popup containing the target image in response to an operation performed on a thumbnail of the target image, and displaying a first action in the fourth popup in generating the at least one first facial expression image from the target image; And after the at least one first facial expression image is generated according to the target image, displaying the third popup window.
- 18. The method of claim 16 or 17, wherein the method further comprises: and updating the expression library according to the at least one second facial expression template.
- 19. The method of any one of claims 13-18, wherein the method further comprises: Before displaying the second interface, determining that the face object in the first image does not belong to a specific individual, or Before the third interface is displayed, determining that the individual to which the first face object belongs is the same as the individual to which the face object in the target expression template belongs, or When the individual to which the first face object belongs is different from the individual to which the face object in the target expression template belongs, alarm information is displayed in the third interface, and/or synthetic prompt information is added in the second image, or And when at least two of the individual to which the first face object belongs, the individual to which the face object in the target expression template belongs, and the individual to which the face object in the real-time preview image acquired by the camera of the electronic device belongs are different, displaying alarm information in the third interface, and/or adding synthetic prompt information in the second image.
- 20. The method of any of claims 13-19, wherein after displaying the expression-modified first face object in the edit preview area, the method further comprises: Displaying an expression adjustment control in the second interface; and responding to the operation of the expression adjusting control in the second interface, and changing the action amplitude of the expression of the first face object in the editing preview area.
Description
Image editing method and electronic equipment Technical Field The present application relates to the field of electronic devices, and in particular, to an image editing method and an electronic device. Background Along with the development of electronic technology, the image processing technology is more and more powerful, and in many scenes, editing processing is required to be performed on images so as to obtain better visual effects and meet the demands of users. In some scenes, the user needs to adjust the facial expression of the person in the image, however, the facial expression processed by the current image processing technology is not natural enough, and the re-shooting is time-consuming and laborious. For example, in a photographic scene, it is a difficult matter to take a good photograph of a person. Sometimes, the view finding snapshot is in place, the action of the character is perfect, but the facial expression of the character is not in place, so that the film effect is greatly influenced, and especially for scenes which are difficult to reproduce, the secondary shooting is difficult to complement. Therefore, an image editing method supporting facial expression editing is a problem to be solved in the field of image processing. Disclosure of Invention The application provides an image editing method and electronic equipment, which are used for editing the expression of a face object in an image through simple operation, so that the edited image meets the user requirement and the user experience is improved. In a first aspect, an embodiment of the present application provides an image editing method, which may be applied to an electronic device. The electronic device may refer to the electronic device itself, or may refer to a processor, a module, a chip, or a chip system in the electronic device for implementing the method. The following describes an electronic device as an example, the method comprising the steps of: The electronic equipment displays a first interface comprising a first image, wherein the first image comprises at least one face object, the electronic equipment responds to a first operation to display a second interface, the second interface comprises an editing preview area and a video preview area, the editing preview area displays the first face object in the first image, the first face object is one face object in the at least one face object, the video preview area displays a second face object in a real-time preview image acquired through a camera of the electronic equipment, the expression of the first face object in the editing preview area is kept dynamically matched with the expression of the second face object in the real-time preview image acquired through the camera, and finally the electronic equipment responds to a second operation to display a third interface comprising a second image, wherein the expression of the first face object in the second image is matched with the expression of the second face object in a target image acquired through the camera when the second operation is executed. According to the method, the electronic equipment can edit the expression of the face object in the target image through the expression of the face object in the real-time preview image acquired by the camera, so that the substitution of the expression of the face object in the target image is realized. According to the scheme, the expression of the face object in the image can be edited through simple operation, so that the expression of the face object in the edited image is more natural, the user demand is met, the editing time is shortened, the operation threshold is reduced, the expression editing efficiency of the image is improved, and finally the user experience is improved. In one possible design, the electronic device may display the second interface in response to the first operation by: The electronic device responds to editing operation, displays a fourth interface to be edited, wherein the fourth interface comprises each face object in the first image, then responds to operation for selecting the first face object, and displays the second interface, wherein the first operation comprises the editing operation and the operation for selecting the first face object, and the first image comprises one or more face objects. Through the design, the user can select the first face object needing to be subjected to expression editing through performing a plurality of columns of interactive operations with the electronic equipment, and further the first face object is subjected to expression editing in the second interface. In one possible design, the electronic device may also display the second interface in response to an editing operation, wherein the first operation includes the editing operation and the first image includes a face object. Through the design, when the first image comprises the face object, the electronic equipment can directly enter the face object