Display method, display device, electronic device and readable storage medium

By collecting preview images in the image preview display function of the mobile terminal and enlarging and displaying symmetrical image areas in two windows according to user input, the problem of insufficient clear details of image preview display in the prior art is solved, and better The satisfaction of user experience and symmetrical makeup effects.

CN114546203BActive Publication Date: 2025-02-07VIVO MOBILE COMM CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210187697.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-02-28
Publication Date
2025-02-07
Estimated Expiration
2042-02-28

AI Technical Summary

Technical Problem

The existing image preview display function is limited by the display size of the mobile terminal, resulting in insufficient screen details and inconvenient use.

Method used

By collecting and displaying the preview image, the user receives input to the target position in the preview image, and zooms in and displays the symmetrical image area in two windows in response to the input, and determines the area based on the feature point using the axis of symmetry.

Benefits of technology

It realizes the enlarged display of any area in the preview image, and the local details are displayed clearly, enriches the makeup mirror function, improves the user experience, and meets the user's needs for symmetrical makeup effects.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114546203B_ABST
    Figure CN114546203B_ABST
Patent Text Reader

Abstract

The present application discloses a display method, a display device, an electronic device and a readable storage medium, which belongs to the field of display technology. The display method includes: collecting and displaying a preview image; receiving a first input of a first position in the preview image; in response to the first input, zooming in and displaying an image of the first area in a first window, and zooming in and displaying an image of the second area in a second window, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical with the first position about the symmetry axis of the preview image, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image.
Need to check novelty before this filing date? Find Prior Art

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 of a first position in the preview image;

[0007] In response to the first input, an image of a first area is magnified and displayed in a first window, and an image of a second area is magnified and displayed in a second window, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical to the first position about an axis of symmetry of the preview image, and the axis of symmetry is determined according to at least one pair of feature points that are symmetrically positioned in the preview image.

[0008] In a second aspect, an embodiment of the present application provides a display device, the device comprising:

[0009] A first display module, used for collecting and displaying preview images;

[0010] A first receiving module, configured to receive a first input of a first position in the preview image;

[0011] A second display module is used to respond to the first input, enlarge the image of the first area in the first window and display the image of the second area in the second window, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical with the first position about the symmetry axis of the preview image, and the symmetry axis is determined according to at least one pair of symmetrical feature points in the preview image.

[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 first position is selected by a first input of a target position in the preview image, and then images of the first area and the second area in the preview image that need to be enlarged are obtained according to the first position, and finally two enlarged windows are displayed, and the images of the first and second areas are enlarged and displayed in the two windows respectively, so that the enlarged image of any area in the preview image can be conveniently viewed, and local details are clearly displayed, thereby enriching the makeup mirror function and improving the user experience; and, the dual-window enlarged display of the images of the first area and the second area in a symmetrical relationship can facilitate user comparison and viewing, meet the user's demand for symmetrical makeup effects, and improve 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 a first input provided in an embodiment of the present application;

[0020] Figure 4 A schematic diagram of a first preset area range provided in an embodiment of the present application;

[0021] Figure 5 A schematic diagram of a first window and a second window provided in an embodiment of the present application;

[0022] Figure 6 A schematic diagram of synchronously reducing the sizes of a first window and a second window provided in an embodiment of the present application;

[0023] Figure 7 A schematic diagram of the structure of a display device provided in an embodiment of the present application;

[0024] Figure 8 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;

[0025] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

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

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

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

[0029] 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:

[0030] Step 101: Capture and display a preview image.

[0031] 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 first input may be an input for starting the makeup mirror function of the electronic device, for example, the first 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 first input, turn on the makeup mirror function, or turn on 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.

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

[0033] Step 102: receiving a first input of a first position in the preview image;

[0034] Step 103: In response to the first input, an image of a first area is displayed in a first window with enlarged image, and an image of a second area is displayed in a second window with enlarged image, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical with the first position about an axis of symmetry of the face image, and the axis of symmetry is determined according to at least one pair of feature points that are symmetrically positioned in the preview image.

[0035] In the above step 102, optionally, the first input can 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 first input can be an input on the screen of the electronic device; the first input can also be a gesture input, for example, the first 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 first input will also have a corresponding user finger image in the preview image, which is equivalent to a mirror image relationship. Therefore, the user can select any area of ​​the face that he wants to enlarge and view through the first input, so that the user can observe the facial details.

[0036] Please refer to Figure 3 , Figure 3 This is a schematic diagram of the first input provided in the embodiment of the present application. Figure 3 As shown, when the user points to a certain area of ​​the face with the user's finger 301, the electronic device can detect the user's finger 301 through object recognition technology or gesture recognition technology, and then determine the position pointed to by the user's finger 301 or the position touched by the user's finger 301 as the first position.

[0037] In step 103, if the electronic device receives the above-mentioned first input, it will respond to the first input, determine the first area according to the first position, and, according to the symmetry axis of the preview image, determine the second position in the preview image that is symmetrical with the first position about the symmetry axis, and then determine the second area according to the second position. After that, the image of the first area and the image of the second area can be enlarged and displayed respectively through two windows, and the images of the first area and the second area can be enlarged and displayed through two enlarged windows, so that the user can conveniently and clearly view the details of any position in the preview image, thereby improving the user's experience in makeup and other scenarios; and the enlarged areas in the two windows are symmetrical, so that it is convenient for the user to compare and view, meet the user's demand for symmetrical makeup effects, and improve the user experience.

[0038] In some embodiments of the present application, the axis of symmetry can be determined based on at least one pair of symmetrically positioned feature points in the preview image. For example, the preview image includes a face image, and the feature points include face feature points. Face feature points can be extracted from the collected preview image, and then at least one pair of symmetrically positioned face feature points can be further determined. Finally, the axis of symmetry of the preview image can be determined based on the at least one pair of symmetrically positioned face feature points by using a fitting straight line or other method.

[0039] Therefore, in the embodiment of the present application, by continuously capturing and displaying the preview image, and selecting the first position through the first input of the target position in the preview image, and then obtaining the images of the first area and the second area in the preview image to be enlarged according to the first position, two enlarged windows are finally displayed, and the images of the first and second areas are enlarged and displayed in the two windows respectively, so that the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the makeup mirror function and improves the user experience; and, the dual-window enlarged display of the images of the first area and the second area in a symmetrical relationship can facilitate the user to compare and view, meet the user's demand for symmetrical makeup effects, and improve the user experience.

[0040] In some embodiments of the present application, the first window and the second window can be displayed on top of the screen of the electronic device, that is, the layers where the first window and the second window are located are located above the layer where the face image is located. The first window and the second window can be displayed at the location where the first area and the second area are located in the preview image, or can be displayed in the face display area other than the first area and the second area in the preview image, or can be displayed outside the face display area of ​​the preview image, so that the user can still check the complete face.

[0041] In some other embodiments of the present application, the magnification of the images of the first area and the second area may be a preset magnification, and the preset magnification may be pre-set by a user or a default value may be used.

[0042] In some embodiments of the present application, the step of magnifying and displaying an image of the first area in the first window and magnifying and displaying an image of the second area in the second window comprises:

[0043] When a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is detected within a second preset area with the second position as the center, an image of the first area is displayed in a first window at a preset magnification, and an image of the second area is displayed in a second window at a preset magnification, wherein the first area includes the first characteristic part and the second area includes the second characteristic part.

[0044] That is, after receiving the first input of the first position in the preview image, it is possible to detect whether the first characteristic part exists within the first preset area centered on the first position, and to detect whether the second characteristic part corresponding to the first characteristic part exists within the second preset area centered on the second position, and then determine the specific shape, size, etc. of the first area and the second area according to the detection results. Exemplarily, if the first characteristic part is detected within the first preset area centered on the first position, and the second characteristic part corresponding to the first characteristic part is detected within the second preset area centered on the second position, then the area containing the first characteristic part can be determined as the first area, and the area containing the second characteristic part can be determined as the second area. Thus, the first area and the second area can be determined in combination with the outline of the specific characteristic part that the user wants to zoom in and view, thereby avoiding the part that the user does not pay attention to from being zoomed in, and the characteristic part can be displayed more prominently.

[0045] Among them, the first preset area range can be a circular area range, a rectangular area range, etc. centered at the first position, and its specific size and other parameters can be set according to actual needs, and the second preset area range is the same.

[0046] Please refer to Figure 4 , Figure 4 This is a schematic diagram of the first preset area range provided in the embodiment of the present application. Figure 4 As shown, in some embodiments of the present application, the position where the user's finger 301 contacts the face is the first position, and the first preset area range 302 is a rectangular area range of a preset size centered on the first position.

[0047] In the embodiment of the present application, optionally, the first characteristic part and the second characteristic part can be detected and identified using facial feature recognition technology, object recognition technology, etc. The first characteristic part and the second characteristic part can be facial features such as eyes, or certain parts with contours in the face, such as the location of cheekbones, eyebrows, freckles, acne marks, etc.

[0048] In some embodiments of the present application, the shape and size of the first area and the first window are determined according to the contour of the first characteristic part, and the shape and size of the second area and the second window are determined according to the contour of the second characteristic part.

[0049] Since the method of framing the target area with a fixed circle, rectangle or other shape 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 zoom in on cannot be effectively highlighted. Therefore, in an embodiment of the present application, if the first characteristic part is detected within the first preset area centered on the first position, the first area can be determined according to the outline of the first characteristic part, that is, the first characteristic part is located within the first area, and the shape and size of the first area are determined according to the detected outline of the first characteristic part. For example, the area enclosed by the outline boundary of the first characteristic part is used as the first area, or the area enclosed by the smallest circle or the smallest rectangle that can frame the outline of the first characteristic part is used as the first area, and the second area is the same. Therefore, the size of the first area and the second area can be determined in combination with the outline of the specific characteristic part that the user wants to zoom in on, thereby avoiding the part that the user does not pay attention to from being enlarged, and the characteristic part can be more prominently displayed.

[0050] Please refer to Figure 5 , Figure 5 Schematic diagram of the first window and the second window provided in the embodiment of the present application. Figure 5 As shown, in some embodiments, after receiving a first input of a first position in the preview image, it is possible to detect whether a first characteristic part exists within a first preset area centered on the first position. Figure 5 That is, there is a first characteristic part, the left eye, and then according to the symmetry relationship, it is detected whether there is a second characteristic part corresponding to the first characteristic part within a second preset area centered on the second position. Figure 5 That is, if there is a right eye in the second characteristic part, the image of the left eye in the first characteristic part can be displayed in the first window, and the image of the right eye in the second characteristic part can be displayed in the second window. Optionally, the shapes of the first window and the second window can be determined according to the contours of the first characteristic part and the second characteristic part.

[0051] In some embodiments of the present application, the second area is composed of a third preset area range centered on the center point of the second characteristic part. Specifically, taking the preview image containing a face image as an example, considering that parts such as eyes in the face image are not completely symmetrical, therefore, when the first position is symmetrically moved to the second position through the axis of symmetry, and the second characteristic part corresponding to the first characteristic part is detected within the second preset area range centered on the second position, the second characteristic part may not be at the center of the second preset area, and then in the second area directly determined according to the second position, the second characteristic part may not be at the center of the second area, therefore, after the second characteristic part is detected according to the second position, the center point of the second characteristic part can be obtained according to the characteristic points on the second characteristic part, and then the second area is formed by the third preset area range centered on the center point of the second characteristic part, so that the second characteristic part in the second area can be in the central position, thereby realizing the correction of the enlarged content in the corresponding second window, which is more conducive to user viewing.

[0052] In some embodiments of the present application, after receiving a first input of a first position in the preview image, the method further includes:

[0053] When a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position as the center, an image of the first area is displayed in a first window with enlargement, and the first area is determined according to the first position;

[0054] receiving a second input from a user on the first window;

[0055] In response to the second input, a third window is displayed, the third window being used to magnify an image of a third area, the third area being determined according to the second input.

[0056] In this embodiment, if a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position of the symmetry axis with respect to the preview image, it means that there is no symmetrical part with the first characteristic part, and then a window, namely the first window, can be displayed by default at this time, so that the image of the first area determined according to the first position is magnified and displayed in the first window. At this time, if the user wants to add a window, the user can make a second input to the first window, for example, the second input is an input of long pressing and dragging the first window, then the electronic device will respond to the second input after receiving the second input, create and display a third window, the magnified content in the third window is the image of the third area, and the third area can be determined according to the second input, for example, the second input is an input of long pressing and dragging the first window to the third position, then the third area is composed of a fourth preset area with the third position as the center.

[0057] In some other embodiments of the present application, after the image of the first area is magnified and displayed in the first window, and the image of the second area is magnified and displayed in the second window, the method further includes:

[0058] receiving a third input from a user on a target window, where the target window is the first window or the second window;

[0059] In response to the third input, the display positions or target parameters of the first window and the second window are synchronously adjusted, and the target parameters include at least one of a display size, a display shape, and a magnification.

[0060] Since the shape and / or size of the window is determined according to the shape of the corresponding area, etc., there may be a situation where the shape, size, display position, etc. of the window do not meet the actual needs of the user. Therefore, the user can adjust the display position or target parameter of the window through the third input to the target window. In this embodiment, since the first area corresponding to the first window and the second area corresponding to the second window are symmetrical about the axis of symmetry, the user can realize the synchronous linkage operation of the two windows. Exemplarily, if the user receives the third input to the target window, optionally, the third input can be an input of clicking the control of the target window, an input of long pressing the target window, an input of dragging the target window in different directions with two fingers, or the third 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 third input, synchronously adjust the display position or target parameter of the first window and the second window, wherein the target parameter includes at least one of the display size, display shape, and magnification.

[0061] In some embodiments of the present application, the synchronously adjusting the display positions or target parameters of the first window and the second window includes at least one of the following:

[0062] Synchronously adjusting the display sizes of the first window and the second window to a target size, where the target size is determined according to the third input;

[0063] Synchronously adjusting the display shapes of the first window and the second window to a target shape, where the target shape is determined according to the third input;

[0064] Synchronously adjusting the magnifications corresponding to the first window and the second window to a target magnification, where the target magnification is determined according to the third input;

[0065] The display positions of the first window and the second window are synchronously moved.

[0066] That is to say, no matter whether the third input is made to the first window or the second window, the first window and the second window can be synchronously controlled. Specifically, the display size of the first window and the second window can be adjusted to the target size, that is, the window size is adjusted; the magnification of the first window and the second window can be adjusted to the target magnification, that is, the magnification of the image in the window is adjusted; the display shape of the first window and the second window can be adjusted to the target shape, that is, the window shape is adjusted; or the display position of the first window and the second window can be synchronously moved, etc.

[0067] Please refer to Figure 6 , Figure 6 A schematic diagram of synchronously reducing the size of the first window and the second window provided in an embodiment of the present application. Figure 6 As shown, in some embodiments of the present application, if a third input is received from the user to reduce the size of either the first window 3031 or the second window 3032, the electronic device will respond to the third input and reduce the size of both the first window 3031 and the second window 3032. Figure 6 Compared to Figure 5 In particular, the sizes of the first window 3031 and the second window 3032 have been reduced.

[0068] In some embodiments of the present application, optionally, the user can 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 direction, and the gesture for decreasing the magnification is set to a single user finger pointing to a second preset direction, 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 one window, the window is the target window. If the electronic device currently displays at least two windows, the window displaying the user's finger can be determined as the target window. Optionally, if at least two windows contain the user's finger, the window containing the most user fingers can be determined as the target window corresponding to the gesture, thereby solving the problem of not being able to accurately identify the window to be adjusted by the user.

[0069] In other embodiments, for example, the user can pre-set a second preset gesture condition for adjusting the window size, thereby, without the need to input on the screen of the electronic device, the magnification of the images displayed in the first window and the second window can be conveniently adjusted through gestures, so that the user can better view the details of the corresponding area. For example, the gesture for increasing the window size is set to an angle formed by two non-adjacent fingers of three user fingers that is greater than a preset angle threshold, and the gesture for decreasing the window size is set to an angle formed by two non-adjacent fingers of three user fingers that is less than a preset angle threshold, or, the gesture for increasing the window size is set to a single user finger pointing to a third preset direction, and the gesture for decreasing the window size 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 finger in front of the face satisfies the second preset gesture condition, the target window corresponding to the gesture is determined. For example, if the electronic device currently displays only one window, this window is the target window. If the electronic device currently displays at least two windows, the window displaying the user finger can be determined as the target window. Optionally, if at least two windows contain user fingers, the window containing the most user fingers can be determined as the target window corresponding to the gesture. This can solve the problem of not being able to accurately identify the window to be adjusted by the user.

[0070] In some embodiments of the present application, optionally, the first window is displayed over the detected first characteristic part, and the second window is displayed over the detected second characteristic part. That is to say, the display position of the first window for magnified display is located above the first characteristic part detected near the first position, and the transparency of the first window can be set to 0, that is, the first characteristic part is completely covered and replaced by the first window, and the second window is the same. As a result, it is convenient for users to directly view the first characteristic part and the second characteristic part in the first window and the enlarged images of the first characteristic part and the second characteristic part in the second window at the location where the first characteristic part and the second characteristic part are located.

[0071] In some other embodiments of the present application, after the image of the first area is magnified and displayed in the first window, and the image of the second area is magnified and displayed in the second window, the method further includes:

[0072] When the overlapping area of ​​the first window and the second window is greater than a preset area threshold, the first window and the second window are combined and displayed as a fourth window, and the fourth window is used to enlarge and display images of the first area and the second area.

[0073] After the first window and the second window are displayed, for example, after the sizes of the first window and the second window are enlarged, the display areas of the first window and the second window may overlap. Therefore, if the overlapping area of ​​the first window and the second window is greater than a preset area threshold, the first window and the second window can be combined and displayed as one window, i.e., the fourth window, and the fourth window is used to enlarge and display the images of the first area and the second area. In this way, the problem of the two windows blocking each other and affecting the user's viewing can be avoided.

[0074] Of course, in some optional implementations, if the overlapping area of ​​the first window and the second window is greater than a preset area threshold, either the first window or the second window may be removed, that is, only one of them is retained to avoid affecting the user's viewing of facial details.

[0075] In some embodiments of the present application, after receiving the second input of the user on the first position in the face image, the method further includes:

[0076] While displaying the image of the first area in the first window at a preset magnification, and displaying the image of the second area in the second window at a preset magnification, a first display processing is performed on other display areas in the face image except the first window, the first area, the second window and the second area, wherein the first display processing includes any one of hiding processing, blurring processing and replacing processing.

[0077] In this embodiment, in order to enable the user to better view the details of the first area and the second area, make the details of the first area and the second area more prominent, and avoid being disturbed by the pictures that other users do not want to pay attention to, the first display processing can be performed on the other display areas except the first window, the first area, the second window and the second area in the face image displayed by the electronic device, wherein the first display processing can adopt Gaussian blur and other technologies, specifically, it can be any one of hiding processing, blurring processing and filling processing; the so-called hiding processing is to hide the image of the corresponding area and not display it, such as cropping, the so-called blurring processing is to change the brightness, color, etc. of the image of the corresponding area from dark to light, and blur the image, and the so-called filling processing is to fill the image of the corresponding area with a solid color background, such as a black background, a white background, a gray background, etc.

[0078] In some further embodiments of the present application, after the image of the first area is magnified and displayed in the first window, and the image of the second area is magnified and displayed in the second window, the method further includes:

[0079] Record and save the display screen in the first window and / or the second window.

[0080] The first window or the second window recorded and saved is a window whose screen is dynamically updated in real time. By recording and saving the display screen in the first window and / or the second window, a makeup video file of the first area and / or the second area can be obtained, and the makeup video file saves the makeup steps of the user for the first area and / or the second area, so that the user can share the makeup video file, such as sending it to other users, uploading it to a target social platform, etc.

[0081] In some embodiments of the present application, after the image of the first area is magnified and displayed in the first window, and the image of the second area is magnified and displayed in the second window, the method further includes:

[0082] receiving a fourth input from a user on a target window, where the target window is the first window or the second window;

[0083] In response to the fourth input, the enlarged display of the target window is cancelled.

[0084] That is, the user can close any window on his own to cancel the enlargement of the image in the corresponding area. Exemplarily, if a fourth input from the user to the target window is received, such as the fourth input is an input of clicking the close control of the window, an input of long pressing the window, an input of dragging the window 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 cancel the display of the target window, which can be at least one of the first window and the second window.

[0085] In summary, in the embodiment of the present application, by continuously capturing and displaying preview images, and selecting the first position through the first input of the target position in the preview image, and then obtaining the images of the first area and the second area in the preview image to be enlarged according to the first position, two enlarged windows are finally displayed, and the images of the first and second areas are enlarged and displayed in the two windows respectively, so that the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the makeup mirror function and improves the user experience; and, the dual-window enlarged display of the images of the first area and the second area in a symmetrical relationship can facilitate the user to compare and view, meet the user's demand for symmetrical makeup effects, and improve the user experience.

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

[0087] Please refer to Figure 7 , Figure 7 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application. Figure 7 As shown, another aspect of the present application further provides a display device, the display device 700 comprising:

[0088] The first display module 701 is used to collect and display preview images;

[0089] A first receiving module 702, configured to receive a first input of a first position in the preview image;

[0090] The second display module 703 is used to respond to the first input, enlarge the image of the first area in the first window and display the image of the second area in the second window, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical with the first position about the symmetry axis of the face image, and the symmetry axis is determined according to at least one pair of feature points symmetrically positioned in the preview image.

[0091] Optionally, the second display module includes:

[0092] A display unit is used to display an image of the first area at a preset magnification in a first window and display an image of the second area at a preset magnification in a second window when a first characteristic part is detected within a first preset area with the first position as the center and a second characteristic part corresponding to the first characteristic part is detected within a second preset area with the second position as the center, wherein the first area includes the first characteristic part and the second area includes the second characteristic part.

[0093] Optionally, the first window is displayed over the first characteristic part, and the second window is displayed over the second characteristic part.

[0094] Optionally, the shape and size of the first area and the first window are determined according to the contour of the first characteristic part, and the shape and size of the second area and the second window are determined according to the contour of the second characteristic part.

[0095] Optionally, the second area is composed of a third preset area range centered on the center point of the second characteristic part.

[0096] Optionally, the display device further includes:

[0097] a third display module, for displaying an image of a first area in a first window, where the first area is determined according to the first position, when a first characteristic part is detected within a first preset area with the first position as the center and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position as the center;

[0098] A second receiving module, used for receiving a second input of the user to the first window;

[0099] The fourth display module is used to display a third window in response to the second input, wherein the third window is used to magnify an image of a third area, and the third area is determined according to the second input.

[0100] Optionally, the display device further includes:

[0101] A third receiving module, configured to receive a third input from a user to a target window, where the target window is the first window or the second window;

[0102] The fifth display module is used to synchronously adjust the display positions or target parameters of the first window and the second window in response to the third input, and the target parameters include at least one of display size, display shape, and magnification.

[0103] Optionally, the display device further includes:

[0104] The sixth display module is used to combine the first window and the second window to display as a fourth window when the overlapping area of ​​the first window and the second window is greater than a preset area threshold, and the fourth window is used to enlarge and display the images of the first area and the second area.

[0105] In an embodiment of the present application, preview images are continuously captured and displayed, and a first position is selected by a first input of a target position in the preview image, and then images of the first area and the second area in the preview image that need to be enlarged are obtained according to the first position, and finally two enlarged windows are displayed, and the images of the first and second areas are enlarged and displayed in the two windows respectively, so that the enlarged image of any area in the preview image can be conveniently viewed, and local details are clearly displayed, thereby enriching the makeup mirror function and improving the user experience; and, the dual-window enlarged display of the images of the first area and the second area in a symmetrical relationship can facilitate user comparison and viewing, meet the user's demand for symmetrical makeup effects, and improve the user experience.

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

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

[0108] The display device provided in the embodiment of the present application can achieve Figures 1 to 6 To avoid repetition, the various processes implemented by the method embodiment are not described here.

[0109] Alternatively, if Figure 8 As shown, an embodiment of the present application also provides an electronic device 800, including a processor 801 and a memory 802, wherein the memory 802 stores programs or instructions that can be executed on the processor 801, and when the program or instructions are executed by the processor 801, 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.

[0110] Fig. 9 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0111] The electronic device 900 includes but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, and a processor 9010 and other components.

[0112] Those skilled in the art will appreciate that the electronic device 900 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 9010 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig. 9 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.

[0113] Wherein, the sensor 905 is used to collect the preview image;

[0114] A display unit 906, configured to display the preview image;

[0115] The user input unit 907 is further configured to receive a first input for a first position in the preview image;

[0116] The display unit 906 is further used to display an image of a first area in a first window at a preset magnification in response to the first input, and to display an image of a second area in a second window at a preset magnification, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetrical to the first position about an axis of symmetry of the preview image, and the axis of symmetry is determined according to at least one pair of feature points symmetrically positioned in the preview image.

[0117] Optionally, the display unit 906 is also used to display an image of the first area at a preset magnification in a first window and display an image of the second area at a preset magnification in a second window when a first characteristic part is detected within a first preset area with the first position as the center and a second characteristic part corresponding to the first characteristic part is detected within a second preset area with the second position as the center, wherein the first area includes the first characteristic part and the second area includes the second characteristic part.

[0118] Optionally, the first window is displayed over the first characteristic part, and the second window is displayed over the second characteristic part.

[0119] Optionally, the shape and size of the first area and the first window are determined according to the contour of the first characteristic part, and the shape and size of the second area and the second window are determined according to the contour of the second characteristic part.

[0120] Optionally, the second area is composed of a third preset area range centered on the center point of the second characteristic part.

[0121] Optionally, the display unit 906 is further configured to, when a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position as the center, enlarge and display an image of the first area in the first window, the first area being determined according to the first position;

[0122] The user input unit 907 is further used to receive a second input from the user on the first window;

[0123] The display unit 906 is further configured to display a third window in response to the second input, wherein the third window is configured to magnify an image of a third area, where the third area is determined according to the second input.

[0124] Optionally, the user input unit 907 is further configured to receive a third input from a user on a target window, where the target window is the first window or the second window;

[0125] The display unit 906 is further used to synchronously adjust the display positions or target parameters of the first window and the second window in response to the third input, where the target parameters include at least one of a display size, a display shape, and a magnification factor.

[0126] Optionally, the display unit 906 is further used to combine the first window and the second window to display a fourth window when the overlapping area of ​​the first window and the second window is greater than a preset area threshold, and the fourth window is used to enlarge and display the images of the first area and the second area.

[0127] In an embodiment of the present application, preview images are continuously captured and displayed, and a first position is selected by a first input of a target position in the preview image, and then images of the first area and the second area in the preview image that need to be enlarged are obtained according to the first position, and finally two enlarged windows are displayed, and the images of the first and second areas are enlarged and displayed in the two windows respectively, so that the enlarged image of any area in the preview image can be conveniently viewed, and local details are clearly displayed, thereby enriching the makeup mirror function and improving the user experience; and, the dual-window enlarged display of the images of the first area and the second area in a symmetrical relationship can facilitate user comparison and viewing, meet the user's demand for symmetrical makeup effects, and improve the user experience.

[0128] It should be understood that in the embodiment of the present application, the input unit 904 may include a graphics processor (Graphics Processing Unit, GPU) 9041 and a microphone 9042, and the graphics processor 9041 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 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 907 includes a touch panel 9071 and at least one of other input devices 9072. The touch panel 9071 is also called a touch screen. The touch panel 9071 may include two parts: a touch detection device and a touch controller. Other input devices 9072 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.

[0129] The memory 909 can be used to store software programs and various data. The memory 909 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 909 can include a volatile memory or a non-volatile memory, or the memory 909 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 909 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0130] The processor 9010 may include one or more processing units; optionally, the processor 9010 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 9010.

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

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

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

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

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

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

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

[0138] 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, characterized in that: include: Collect and display preview images; receiving a first input of a first position in the preview image; In response to the first input, an image of a first area is displayed in a first window by magnifying the image, and an image of a second area is displayed in a second window by magnifying the image, wherein the first area is determined according to the first position, the second area is determined according to the second position, the second position is symmetric to the first position about an axis of symmetry of the preview image, and the axis of symmetry is determined according to at least one pair of symmetrically located feature points in the preview image; After receiving a first input of a first position in the preview image, the method further includes: When a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position as the center, an image of the first area is displayed in a first window with enlargement, and the first area is determined according to the first position; receiving a second input from a user on the first window; In response to the second input, a third window is displayed, the third window being used to magnify an image of a third area, the third area being determined according to the second input.

2. The display method according to claim 1, characterized in that: The step of displaying the image of the first area in the first window by enlarging the image of the first area, and displaying the image of the second area in the second window by enlarging the image of the first area comprises: When a first characteristic part is detected within a first preset area with the first position as the center, and a second characteristic part corresponding to the first characteristic part is detected within a second preset area with the second position as the center, an image of the first area is displayed in a first window at a preset magnification, and an image of the second area is displayed in a second window at a preset magnification, wherein the first area includes the first characteristic part and the second area includes the second characteristic part.

3. The display method according to claim 2, characterized in that: The first window is displayed over the first characteristic part, and the second window is displayed over the second characteristic part.

4. The display method according to claim 2, characterized in that: The shape and size of the first area and the first window are determined according to the contour of the first characteristic part, and the shape and size of the second area and the second window are determined according to the contour of the second characteristic part.

5. The display method according to claim 2, characterized in that: The second area is composed of a third preset area range centered at the center point of the second characteristic part.

6. The display method according to claim 1, characterized in that: After the image of the first area is displayed in the first window by enlarging it, and the image of the second area is displayed in the second window by enlarging it, the method further comprises: receiving a third input from a user on a target window, where the target window is the first window or the second window; In response to the third input, the display positions or target parameters of the first window and the second window are synchronously adjusted, and the target parameters include at least one of a display size, a display shape, and a magnification.

7. The display method according to claim 1, characterized in that: After the image of the first area is displayed in the first window by enlarging it, and the image of the second area is displayed in the second window by enlarging it, the method further comprises: When the overlapping area of ​​the first window and the second window is greater than a preset area threshold, the first window and the second window are combined and displayed as a fourth window, and the fourth window is used to enlarge and display images of the first area and the second area.

8. A display device, characterized in that: include: A first display module, used for collecting and displaying preview images; A first receiving module, configured to receive a first input of a first position in the preview image; a second display module, configured to, in response to the first input, magnify and display an image of a first area in a first window, and magnify and display an image of a second area in a second window, wherein the first area is determined according to the first position, the second area is determined according to a second position, the second position is symmetrical with the first position about an axis of symmetry of the preview image, and the axis of symmetry is determined according to at least one pair of symmetrically located feature points in the preview image; The display device further includes: a third display module, for displaying an image of a first area in a first window, where the first area is determined according to the first position, when a first characteristic part is detected within a first preset area with the first position as the center and a second characteristic part corresponding to the first characteristic part is not detected within a second preset area with the second position as the center; A second receiving module, used for receiving a second input of the user to the first window; The fourth display module is used to display a third window in response to the second input, wherein the third window is used to magnify an image of a third area, and the third area is determined according to the second input.

9. An electronic device, 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 7 are implemented.

10. A readable storage medium, 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 7 are implemented.

Citation Information

Patent Citations

  • Image processing system, image processing method, and program

    JP2013223001A