Display method, display device, electronic device and readable storage medium
By segmenting the preview image of the mobile terminal axes and mirroring the target outline, the problem that the image preview display function is limited by the display size is solved, and the clarity of picture details and user experience is improved.
Patent Information
- Application Number
- CN202210206069.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-02-28
- Publication Date
- 2024-11-19
- Estimated Expiration
- 2042-02-28
AI Technical Summary
The image preview and display function of existing mobile terminals is limited by the display size, the screen details are not clear enough, and it is inconvenient to use.
By segmenting the preview image with a axis of symmetry, the user can select and trim the reference area in half area and display the target outline in the other half area. The target outline is mirrored by the outline of the characteristic part of the first half area along the axis of symmetry, which facilitates the user to wear makeup .
It improves the user experience, meets the needs of symmetrical makeup effects, and improves the clarity of screen details and the convenience of use.
Smart Images

Figure CN114554097B_ABST
Abstract
Description
Technical Field
[0001] The present application belongs to the field of display technology, and specifically relates to a display method, a display device, an electronic device and a readable storage medium. Background Art
[0002] At present, with the improvement of mobile terminal imaging capabilities, users can use cameras to preview images anytime and anywhere, and then tidy up their appearance. However, the existing image preview display function usually only displays the whole image, which is limited by the display size of the mobile terminal, the picture details are not clear enough, and it is inconvenient to use. Summary of the invention
[0003] The purpose of the embodiments of the present application is to provide a display method, a display device, an electronic device and a readable storage medium, which can solve the problem that the existing image preview display function usually only displays the whole image, is limited by the display size of the mobile terminal, the picture details are not clear enough, and it is inconvenient to use.
[0004] In a first aspect, an embodiment of the present application provides a display method, the method comprising:
[0005] Collect and display preview images;
[0006] receiving a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrically located feature points in the preview image;
[0007] In response to the first input, a target contour is displayed in the second half of the preview image, where the target contour is obtained by mirror-flipping the contour of the target feature part in the first half along the symmetry axis.
[0008] In a second aspect, an embodiment of the present application provides a display device, the display device comprising:
[0009] A first display module, used for collecting and displaying preview images;
[0010] A first receiving module is configured to receive a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image;
[0011] The second display module is used to display the target outline in the second half area of the preview image in response to the first input, and the target outline is obtained by mirroring the outline of the target feature part in the first half area along the symmetry axis.
[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.
[0013] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.
[0014] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.
[0015] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.
[0016] In an embodiment of the present application, preview images are continuously captured and displayed, and a trimming reference area is selected through a first input to the first half of the preview image, and then the target contour is displayed in the second half of the preview image. That is, the contour of the target feature part in the first half is symmetrically displayed in the second half, thereby making it convenient to apply makeup according to the target contour, thereby satisfying the user's demand for symmetrical makeup effects and improving the user experience. BRIEF DESCRIPTION OF THE DRAWINGS
[0017] Figure 1 A flow chart of a display method provided in an embodiment of the present application;
[0018] Figure 2 A schematic diagram of a preview image provided in an embodiment of the present application;
[0019] Figure 3 A schematic diagram of the axis of symmetry provided in an embodiment of the present application;
[0020] Figure 4 A schematic diagram of a first input provided in an embodiment of the present application;
[0021] Figure 5 A schematic diagram of a target profile provided for an embodiment of the present application;
[0022] Figure 6 A schematic diagram of the structure of a display device provided in an embodiment of the present application;
[0023] Figure 7 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.
[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.
[0027] The display method, display device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.
[0028] Please refer to Figure 1 , Figure 1 A flow chart of a display method provided in an embodiment of the present application. Figure 1 As shown, an embodiment of the present application provides a display method, which is applied to an electronic device. The display method includes the following steps:
[0029] Step 101: Capture and display a preview image.
[0030] Optionally, before step 101, the display method further includes: receiving a start input from the user, that is, step 101 is performed in response to the start input, wherein the start input may be an input for starting the makeup mirror function of the electronic device, for example, the start input is a click input, a long press input, a drag input, etc. of the makeup mirror control on the camera interface, or the start input may also be an input for opening a makeup mirror application, etc. The electronic device will respond to the start input, turn on the makeup mirror function, or open the makeup mirror application, capture a preview image through a default camera and display it on the screen of the electronic device, wherein the default camera is usually the front camera of the electronic device, and the preview image is dynamically updated in real time.
[0031] Please refer to Figure 2 , Figure 2 Schematic diagram of a preview image provided in an embodiment of the present application. Figure 2 As shown, the electronic device displays the preview image captured by the camera in full screen on its screen.
[0032] Step 102: receiving a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image;
[0033] Step 103: In response to the first input, display a target contour in the second half of the preview image, wherein the target contour is obtained by mirroring the contour of the target feature part in the first half along the symmetry axis.
[0034] In the above step 102, optionally, the first input may be an input of clicking or long pressing the first half of the preview image displayed on the screen of the electronic device, that is, the first input may be an input on the screen of the electronic device; the first input may also be a gesture input, for example, the first input is a gesture input of the user's finger pointing to the user's real face or touching the user's real face, and the first input will also cause a corresponding user finger image to appear in the preview image, which is equivalent to a mirror image relationship. Thus, the user can select the first half of the preview image through the first input, and use the first half as a correction reference area, that is, refer to the first half to apply makeup to the second half.
[0035] In some embodiments of the present application, the symmetry axis can be determined based on at least one pair of symmetrical feature points in the preview image. For example, the preview image includes a face image, and the feature points include face feature points. That is, the face feature points can be extracted from the collected preview image, and then at least one pair of symmetrical face feature points can be further determined. Finally, the symmetry axis of the preview image can be determined based on at least one pair of symmetrical face feature points by fitting a straight line or the like. The preview image is divided into a first half area and a second half area by the symmetry axis, and the first half area and the second half area are arranged on the left and the right.
[0036] Please refer to Figure 3 , Figure 3 Schematic diagram of the axis of symmetry provided in the embodiment of the present application. Figure 3 As shown, the symmetry axis divides the preview image into two half areas, the left half area corresponds to the first half area, and the right half area corresponds to the second half area. It can be seen that the preview image is not completely symmetrical in fact, for example, the eyebrow on the right is slightly lower than the eyebrow on the left.
[0037] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the first input provided in the embodiment of the present application. Figure 4 As shown, when the user points to the left half of the preview image with the user's finger 301, the electronic device can detect the user's finger 301 through the object recognition technology or the gesture recognition technology, and then determine whether the area pointed to by the user's finger 301 or the area touched by the user's finger 301 is the first half or the second half of the preview image. Figure 4 The user selects the first half area (i.e., the left half area) as the correction reference surface to assist in applying makeup to the second half area (i.e., the right half area).
[0038] In step 103, if the electronic device receives the above-mentioned first input, it will respond to the first input and display the target contour in the second half area of the preview image. The target contour is obtained by mirroring the contour of the target feature part located in the first half area along the symmetry axis, that is, the target position where the target contour is located in the second half area is symmetrical with the position where the target feature part is located in the first half area about the symmetry axis. In other words, since the face image in the preview image is usually not strictly symmetrical, by symmetrically moving the target feature part in the first half area to the second half area through the symmetry axis, the user can more easily view the position difference between the corresponding feature part in the second half area and the target contour, so as to facilitate the user to obtain a symmetrical makeup effect.
[0039] In some embodiments of the present application, the target feature parts can be detected and identified using facial feature recognition technology, object recognition technology, etc. The target feature parts can be facial features such as eyes, or certain contoured parts of the face, such as eyebrows, cheekbones, freckles, acne marks, etc.
[0040] Please refer to Figure 5 , Figure 5 Schematic diagram of the target profile provided in the embodiment of the present application. Figure 5 As shown, after the first half area is selected as the correction reference surface, the contour of the target feature part 302 in the first half area can be symmetrically displayed in the second half area, that is, the target contour 303 in the second half area. The second half area is used as the surface to be corrected, and the user can use the target contour 303 to assist in makeup. For example, Figure 5 The target contour in is the eyebrow.
[0041] Therefore, in the embodiment of the present application, by continuously capturing and displaying the preview image, and selecting the trimming reference area through the first input of the first half area in the preview image, and then displaying the target contour in the second half area in the preview image, that is, the contour of the target feature part in the first half area is symmetrically displayed in the second half area, thereby making it convenient to apply makeup according to the target contour, thereby satisfying the user's demand for symmetrical makeup effects and improving the user experience.
[0042] In some embodiments of the present application, displaying the target outline in the second half of the preview image includes:
[0043] The target outline is displayed in the second half of the preview image according to a preset transparency.
[0044] In this embodiment, since the second half area usually displays a feature part corresponding to the target feature part in the first half area, in order to facilitate the user to view the details of the target outline without affecting the display of the corresponding feature part in the second half area, the target outline can be displayed according to a preset transparency so that the target outline is displayed in a faded state.
[0045] In some other embodiments of the present application, after displaying the target outline in the second half of the preview image, the method further includes:
[0046] receiving a second input from a user regarding the first target contour in the second half area;
[0047] In response to the second input, a display position or a target parameter of the first target outline is adjusted, wherein the target parameter includes at least one of display size, display shape, contrast, and transparency.
[0048] In this embodiment, if the display position or target parameter of any target contour in the second half area does not meet the user's needs, the user can adjust its display position or target parameter through a second input. Exemplarily, if a second input of the user to the first target contour in the second half area is received, for example, the second input can be an input of clicking or long pressing the first target contour in the preview image displayed on the screen of the electronic device, that is, the second input can be an input on the screen of the electronic device; the second input can also be a gesture input, for example, the second input is a gesture input of the user's finger pointing to the user's real face or touching the user's real face, and the second input will also appear at the location of the first target contour in the preview image, which is equivalent to a mirror image relationship. Then, the electronic device will respond to the second input, adjust the display position or target parameter of the first target contour in the second half area, that is, move the first target contour to the position specified by the user, or adjust the display size, display shape, contrast, transparency, etc. of the first target contour, so that the user can make up according to the adjusted first target contour.
[0049] In some embodiments of the present application, after displaying the target outline in the second half of the preview image, the method further includes:
[0050] receiving a third input from a user regarding a first position in the preview image;
[0051] In response to the third input, an image of a first area is displayed in an enlarged manner, wherein the first area is determined according to the first position.
[0052] In this embodiment, optionally, the third input may be an input of clicking or long pressing the first position in the preview image displayed on the screen of the electronic device, that is, the third input may be an input on the screen of the electronic device; the third input may also be a gesture input, for example, the third input is a gesture input in which the user's finger points to the user's real face or touches the user's real face, and the third input will also have a corresponding user finger image in the preview image, which is equivalent to a mirror image relationship. Thus, the user can select any area in the preview image that he wants to zoom in and view through the third input, so that the user can conveniently and clearly view the details of any position on the face, thereby improving the user's experience in scenarios such as makeup.
[0053] Optionally, when the image of the target area is displayed in an enlarged manner, a window may be popped up, and the image of the target area may be displayed in an enlarged manner in the window.
[0054] In some embodiments of the present application, when determining the first area based on the first position, the area within a preset range centered on the first position can be determined as the first area. The preset range can be a circular area range, a rectangular area range, etc. centered on the first position, and its specific size and other parameters can be set according to actual needs.
[0055] Since the method of framing the first area with a fixed shape such as a circle or rectangle usually selects some areas that the user does not want to pay attention to and then enlarges and displays them, the part that the user wants to enlarge and view cannot be effectively highlighted. Therefore, in other embodiments of the present application, when determining the first area according to the first position, it is possible to detect whether there is a characteristic part within a preset area range centered on the first position, wherein the size of the preset area range can be pre-set. If the characteristic part is detected within the preset area range centered on the first position, the first area can be determined based on the contour of the characteristic part, for example, the area enclosed by the contour boundary of the characteristic part is used as the first area, or the area enclosed by the smallest circle or the smallest rectangle that can frame the contour of the characteristic part is used as the first area. Thus, the size of the first area can be determined in combination with the contour of the specific characteristic part that the user wants to enlarge and view, thereby avoiding the part that the user does not pay attention to from being enlarged, and the characteristic part can be more prominently displayed.
[0056] In some other embodiments of the present application, the enlarged display of the image of the first area includes:
[0057] Displaying the image of the first area in the first window and the second window respectively according to a preset magnification;
[0058] Among them, the display picture in the first window is fixed to the image of the first area in the target frame picture, the display picture in the second window is updated in real time, the first window and the second window do not overlap with the first area, and the target frame picture is determined according to the moment when the first input is received.
[0059] In this embodiment, optionally, after the user selects the first area, two windows can be used for comparison display respectively, so as to facilitate the user to compare the state of the first area before and after makeup. Among them, when the image of the first area is displayed in the first window according to the preset magnification, the picture in the first window is fixed, that is, fixed to the image of the first area in the target frame picture, and the target frame picture can be determined according to the moment when the electronic device receives the third input, for example, the frame preview image corresponding to the moment when the third input is received is determined as the target frame picture; and when the image of the first area is displayed in the second window according to the preset magnification, the picture in the second window is dynamically updated in real time, that is, the camera collects the image of the first area in real time and enlarges it to display it in the second window. If the user puts on makeup in the first area, the corresponding makeup effect can be seen in the second window. As a result, the user can easily check the state of the first area before and after makeup to determine whether the makeup effect is satisfactory, thereby improving the user experience of the makeup mirror function.
[0060] In some other embodiments of the present application, the preset magnification refers to the magnification of the image of the first area, and the magnification may be preset by a user or a default value may be used.
[0061] In some embodiments of the present application, after the image of the first area is magnified and displayed, the method further includes:
[0062] In the case where it is detected that the gesture of the user's finger meets the first preset gesture condition, determining an image of the first area corresponding to the gesture;
[0063] The magnification of the image of the target area corresponding to the gesture is adjusted to a target magnification, wherein the target magnification is determined according to the gesture.
[0064] In this embodiment, the user can enlarge the image of one or more first areas through a third input. At this time, the user does not need to input on the screen of the electronic device, and can conveniently adjust the magnification of the image of the first area through gestures so that the user can better view the details of the corresponding area. Exemplarily, the user may pre-set a first preset gesture condition for adjusting the magnification, for example, the gesture for increasing the magnification is set to an angle formed by two user fingers greater than a preset angle threshold, and the gesture for decreasing the magnification is set to an angle formed by two user fingers less than a preset angle threshold, or the gesture for increasing the magnification is set to a single user finger pointing to a first preset position, and the gesture for decreasing the magnification is set to a single user finger pointing to a second preset position, and so on. Then, when it is detected that the gesture of the user's finger in front of the face satisfies the first preset gesture condition, the target window corresponding to the gesture is determined. For example, if the electronic device currently displays only an image of a first area, the image of the first area is the image of the first area corresponding to the gesture. If the electronic device currently displays at least two images of the first area, the image of the first area with the user's finger displayed can be determined as the image of the first area corresponding to the gesture. Optionally, if the user's finger is displayed in both images of the at least two first areas, the image of the first area containing the most user fingers can be determined as the image of the first area corresponding to the gesture. This can solve the problem of not being able to accurately identify the image of the first area to which the user wants to magnify the image. It can be known that when the image of the target area is enlarged in the window, for example, when there are multiple windows, the display content in different windows corresponds to different target area images. Similarly, the target window corresponding to the gesture can be determined according to the above method, that is, the object for which the magnification factor is to be adjusted can be determined.
[0065] After determining the image of the first area corresponding to the gesture of the user's finger, the magnification of the image of the first area can be adjusted to the target magnification, wherein the target magnification is determined according to the gesture. For example, when the gesture for lowering the magnification is set to an angle formed by two user fingers that is less than a preset angle threshold, the angle formed by the two user fingers and the target magnification can be set to be positively correlated, that is, the smaller the angle formed by the two user fingers, the smaller the target magnification, and the larger the angle formed by the two user fingers, the larger the target magnification.
[0066] In some other embodiments of the present application, after the image of the first area is magnified and displayed, the method further includes:
[0067] In the case where it is detected that the gesture of the user's finger meets the second preset gesture condition, determining an image of the first area corresponding to the gesture;
[0068] The display size of the image of the target area corresponding to the gesture is adjusted to a target size, wherein the target size is determined according to the gesture.
[0069] In this embodiment, the user can enlarge the display of one or more images of the first area through a third input. At this time, the user does not need to input on the screen of the electronic device, and can conveniently adjust the display size of the image of the first area through gestures, so that the user can better view the details of the corresponding area. Exemplarily, the user can pre-set a second preset gesture condition for adjusting the display size of the image of the first area. For example, the gesture for increasing the display size of the image of the first area is set to the angle formed by two non-adjacent fingers of three user fingers being greater than a preset angle threshold, and the gesture for decreasing the display size of the image of the first area is set to the angle formed by two non-adjacent fingers of three user fingers being less than a preset angle threshold, or the gesture for increasing the display size of the image of the first area is set to a single user finger pointing to a third preset direction, and the gesture for decreasing the display size of the image of the first area is set to a single user finger pointing to a fourth preset direction, and so on. Then, when it is detected that the gesture of the user's finger satisfies the condition, Under the second preset gesture condition, the image of the first area corresponding to the gesture is determined. For example, if the electronic device currently displays only one image of the first area, the image of the first area is the image of the first area corresponding to the gesture. If the electronic device currently displays at least two images of the first area, the image of the first area showing the user's finger can be determined as the image of the first area corresponding to the gesture. Optionally, if the user's finger is displayed in at least two images of the first area, the image of the first area containing the largest number of user fingers can be determined as the image of the first area corresponding to the gesture, thereby solving the problem of not being able to accurately identify the image of the first area that the user wants to enlarge. It can be known that when the image of the target area is enlarged in the window, for example, when there are multiple windows, the display content in different windows corresponds to different images of the target area. Similarly, the target window corresponding to the gesture can be determined according to the above method, that is, the object whose display size is to be adjusted can be determined.
[0070] After determining the image of the first area corresponding to the gesture of the user's finger, the display size of the image of the first area corresponding to the gesture can be adjusted to the target size, wherein the target size is determined according to the gesture. For example, when the gesture for increasing the display size of the image in the first area is set to a state where the angle formed by two non-adjacent fingers among three user fingers is greater than a preset angle threshold, the angle formed by two non-adjacent fingers among the three user fingers can be set to be positively correlated with the target size, that is, the smaller the angle formed by two non-adjacent fingers among the three user fingers, the smaller the target size, and the larger the angle formed by two non-adjacent fingers among the three user fingers, the larger the target size.
[0071] In some further embodiments of the present application, after displaying the target area in the window at a preset magnification, the method further includes:
[0072] An image of the first area displayed in an enlarged manner is recorded and saved.
[0073] For example, when the image of the target area is magnified in the form of a window, the display screen in the window can be recorded, and the recorded and saved window is a window with real-time dynamic update of the screen. By recording and saving the display screen in the window, a makeup video file of the first area can be obtained, and the makeup video file saves the makeup steps of the user for the first area, so that the user can share the makeup video file, such as sending it to other users, uploading it to the target social platform, etc.
[0074] In some further embodiments of the present application, after the target contour is displayed at the target position of the second half area in the preview image, the method further includes:
[0075] receiving a fourth input from a user on the second half area in the preview image;
[0076] In response to the fourth input, the target outline displayed in the second half area is removed.
[0077] That is to say, the user can independently cancel the display of any target outline. Exemplarily, if a fourth input from the user to any target outline in the second half area is received, for example, the fourth input is an input of clicking on the target outline, an input of long pressing the target outline, an input of dragging the target outline to a preset position, or the fourth input is a gesture input, the gesture does not contact the screen of the electronic device, and the gesture can be pre-set, then the electronic device will respond to the fourth input and remove the target outline, wherein when removing the target outline, all target outlines in the second half area may be canceled, or only a certain target outline may be canceled, for example, only the target outline determined by the fourth input may be canceled.
[0078] In summary, in the embodiment of the present application, the preview image is continuously captured and displayed, and the trimming reference area is selected through the first input of the first half area in the preview image, and then the target contour is displayed in the second half area in the preview image, that is, the contour of the target feature part in the first half area is symmetrically displayed in the second half area, thereby making it convenient to apply makeup according to the target contour, thereby satisfying the user's demand for symmetrical makeup effects and improving the user experience.
[0079] The display method provided in the embodiment of the present application can be executed by a display device. In the embodiment of the present application, the display method is executed by a display device as an example to illustrate the display device provided in the embodiment of the present application.
[0080] Please refer to Figure 6 , Figure 6 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application. Figure 6 As shown, another aspect of the present application further provides a display device, the display device 600 comprising:
[0081] A first display module 601, used for collecting and displaying preview images;
[0082] A first receiving module 602 is configured to receive a second input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image;
[0083] The second display module 603 is used to display the target outline in the second half area of the preview image in response to the first input, and the target outline is obtained by mirroring the outline of the target feature part in the first half area along the symmetry axis.
[0084] Optionally, the second display module includes:
[0085] The transparency unit is used to display the target outline in the second half area of the preview image according to a preset transparency.
[0086] Optionally, the display device further includes:
[0087] A second receiving module, configured to receive a second input from a user regarding the first target contour in the second half area;
[0088] The third display module is used to adjust the display position or target parameters of the first target outline in response to the second input, and the target parameters include at least one of display size, display shape, contrast, and transparency.
[0089] Optionally, the display device further includes:
[0090] A third receiving module, configured to receive a third input from a user on the first position in the preview image;
[0091] The fourth display module is used to enlarge and display an image of a first area in response to the third input, wherein the first area is determined according to the first position.
[0092] In an embodiment of the present application, preview images are continuously captured and displayed, and a trimming reference area is selected through a first input to the first half of the preview image, and then the target contour is displayed in the second half of the preview image. That is, the contour of the target feature part in the first half is symmetrically displayed in the second half, thereby making it convenient to apply makeup according to the target contour, thereby satisfying the user's demand for symmetrical makeup effects and improving the user experience.
[0093] The display device in the embodiment of the present application can be an electronic device or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc. It can also be a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.
[0094] The display device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.
[0095] The display device provided in the embodiment of the present application can achieve Figures 1 to 5 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0096] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor M01 and a memory 702, wherein the memory 702 stores programs or instructions that can be executed on the processor 701, and when the program or instructions are executed by the processor 701, the various steps of the above-mentioned display method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, they are not described here.
[0097] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0098] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 8010 and other components.
[0099] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 8010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.
[0100] Wherein, the sensor 805 is used to collect the preview image;
[0101] Display unit 806, used to display the preview image;
[0102] A user input unit 807, configured to receive a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image;
[0103] The display unit 806 is further configured to display a target contour in the second half of the preview image in response to the first input, wherein the target contour is obtained by mirroring the contour of the target feature part in the first half along the symmetry axis.
[0104] Optionally, the display unit 806 is further configured to display the target outline in the second half of the preview image according to a preset transparency.
[0105] Optionally, the user input unit 807 is further configured to receive a second input from a user on the first target contour in the second half area;
[0106] The display unit 806 is further configured to adjust a display position or a target parameter of the first target outline in response to the second input, wherein the target parameter includes at least one of a display size, a display shape, a contrast, and a transparency.
[0107] Optionally, the user input unit 807 is further configured to receive a third input from a user on the first position in the preview image;
[0108] The display unit 806 is further configured to, in response to the third input, enlarge and display an image of a first area, wherein the first area is determined according to the first position.
[0109] In an embodiment of the present application, preview images are continuously captured and displayed, and a trimming reference area is selected through a first input to the first half of the preview image, and then the target contour is displayed in the second half of the preview image. That is, the contour of the target feature part in the first half is symmetrically displayed in the second half, thereby making it convenient to apply makeup according to the target contour, thereby satisfying the user's demand for symmetrical makeup effects and improving the user experience.
[0110] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.
[0111] The memory 809 can be used to store software programs and various data. The memory 809 can mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area can store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 can include a volatile memory or a non-volatile memory, or the memory 809 can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0112] The processor 8010 may include one or more processing units; optionally, the processor 8010 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 8010.
[0113] An embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned display method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0114] The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory, a random access memory, a magnetic disk or an optical disk.
[0115] An embodiment of the present application further provides a chip, which includes a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned display method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0116] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.
[0117] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned display method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.
[0118] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.
[0119] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods described in each embodiment of the present application.
[0120] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.
Claims
1. A display method, It is characterized in that include: Capture and display preview images; receiving a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image; In response to the first input, displaying a target outline in a second half of the preview image, wherein the target outline is obtained by mirroring the outline of the target feature part in the first half along the symmetry axis; After the target outline is displayed in the second half of the preview image, the method further comprises: receiving a third input from a user regarding a first position in the preview image; In response to the third input, zoom in and display an image of a first area, wherein the first area is determined according to the first position; The enlarging and displaying the image of the first area comprises: Displaying the image of the first area in the first window and the second window respectively according to a preset magnification; Among them, the display picture in the first window is fixed to the image of the first area in the target frame picture, the display picture in the second window is updated in real time, the first window and the second window do not overlap with the first area, and the target frame picture is determined according to the moment when the first input is received.
2. The display method according to claim 1, It is characterized in that Displaying the target outline in the second half of the preview image comprises: The target outline is displayed in the second half of the preview image according to a preset transparency.
3. The display method according to claim 1, It is characterized in that After the target outline is displayed in the second half of the preview image, the method further comprises: receiving a second input from a user regarding the first target contour in the second half area; In response to the second input, a display position or a target parameter of the first target outline is adjusted, wherein the target parameter includes at least one of display size, display shape, contrast, and transparency.
4. A display device, It is characterized in that include: A first display module, used for collecting and displaying preview images; A first receiving module is configured to receive a first input from a user on a first half region in the preview image, wherein the preview image is divided into a first half region and a second half region by a symmetry axis, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image; A second display module is used for displaying a target outline in a second half area of the preview image in response to the first input, wherein the target outline is obtained by mirror-flipping an outline of a target feature part in the first half area along the symmetry axis; The display device further comprises: A third receiving module, configured to receive a third input from a user on the first position in the preview image; a fourth display module, configured to, in response to the third input, enlarge and display an image of a first area, wherein the first area is determined according to the first position; The fourth display module is specifically used to display the image of the first area in the first window and the second window according to a preset magnification; Among them, the display picture in the first window is fixed to the image of the first area in the target frame picture, the display picture in the second window is updated in real time, the first window and the second window do not overlap with the first area, and the target frame picture is determined according to the moment when the first input is received.
5. The display device according to claim 4, It is characterized in that The second display module comprises: The transparency unit is used to display the target outline in the second half area of the preview image according to a preset transparency.
6. The display device according to claim 4, It is characterized in that Also includes: A second receiving module, configured to receive a second input from a user regarding the first target contour in the second half area; The third display module is used to adjust the display position or target parameters of the first target outline in response to the second input, and the target parameters include at least one of display size, display shape, contrast, and transparency.
7. An electronic device, It is characterized in that The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the display method according to any one of claims 1 to 3 are implemented.
8. A readable storage medium, It is characterized in that The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the display method according to any one of claims 1 to 3 are implemented.
