Display method, display device, electronic device and readable storage medium
By collecting and displaying preview images on the mobile terminal and enlarging the images of featured parts and areas according to user input, the problem of unclear image preview display in the prior art is solved, and clearer local details are realized and better user-friendly Experience.
Patent Information
- Application Number
- CN202210187690.0
- 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
The existing image preview display function is limited by the display size of the mobile terminal, resulting in insufficient screen details and inconvenient use.
By collecting and displaying a preview image, receiving input from the target position, enlarging the image of the target area, which contains featured parts, and the shape and size are determined according to the outline of the featured parts.
It realizes the image display of enlarged meetings in any area in the preview image, and the local details are displayed clearly, enriching the makeup mirror function and improving the user experience.
Smart Images

Figure CN114546576B_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, and the picture details are not clear enough, which 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 target position in the preview image;
[0007] In response to the first input, an image of a target area is magnified and displayed, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of a shape and a size of the target area is determined according to a contour of the characteristic part.
[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 target position in the preview image;
[0011] The second display module is used to respond to the first input and enlarge the image of the target area, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of the shape and size of the target area is determined according to the outline of the characteristic part.
[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 the embodiment of the present application, by continuously capturing and displaying preview images, and selecting the target area to be enlarged by first inputting the target position in the preview image, and then enlarging and displaying the image of the target area, the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the function of the makeup mirror and improves the user experience. In addition, by combining the outline of the specific feature part that the user wants to enlarge and view, the shape and / or size of the target area and the image of the corresponding enlarged target area are determined, thereby avoiding the enlargement of parts that the user does not pay attention to, and the feature parts can be displayed more prominently. 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 window shape corresponding to a mouth when the characteristic part provided in an embodiment of the present application is a mouth;
[0022] Figure 6A schematic diagram of a window shape corresponding to an eye when the characteristic part provided in an embodiment of the present application is an eye;
[0023] Figure 7 A schematic diagram of a gesture for reducing the size of a window provided in an embodiment of the present application;
[0024] Figure 8 A schematic diagram of a gesture for enlarging the size of a window provided in an embodiment of the present application;
[0025] Fig. 9 A schematic diagram of the structure of a display device provided in an embodiment of the present application;
[0026] Fig.10 A schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0027] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION
[0028] 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.
[0029] 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.
[0030] 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.
[0031] 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:
[0032] Step 101: Capture and display a preview image.
[0033] 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 start input, turn on the makeup mirror function, or turn on the makeup mirror application, and continuously collect facial images through the default camera and display them 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.
[0034] 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.
[0035] Step 102: receiving a first input of a target position in the preview image;
[0036] Step 103: In response to the first input, an image of a target area is magnified and displayed, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of a shape and a size of the target area is determined according to a contour of the characteristic part.
[0037] In the above step 102, optionally, the first input can be an input of clicking or long pressing a target position in a 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's finger image in the preview image, which is equivalent to a mirror image relationship. Thus, 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.
[0038] 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 position of the preview image 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 target position.
[0039] In step 103, if the electronic device receives the above-mentioned first input, it will respond to the first input and detect whether there is a characteristic part within a first preset area range centered on the target position, wherein the first preset area range can be a circular area range, a rectangular area range, etc. centered on the target position, and its specific size and other parameters can be set according to actual needs, and the characteristic part can be detected and identified using facial feature recognition technology, object recognition technology, etc. The characteristic part can be facial features such as eyes, nose, and mouth, or it can be certain parts with contours on the face, such as the location of cheekbones, freckles, acne marks, etc.
[0040] 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 target position, and the first preset area range 302 is a rectangular area range of a preset size centered on the target position.
[0041] 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 the embodiment of the present application, if the characteristic part is detected within the preset area range centered on the target position, the target area can be determined according to the outline of the characteristic part, that is, the characteristic part is located within the target area, and the shape and size of the target area are determined according to the outline of the detected characteristic part. For example, the area enclosed by the outline boundary of the characteristic part is used as the target area, or the area enclosed by the smallest circle or the smallest rectangle that can frame the outline of the characteristic part is used as the target area. In this way, the size of the target 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 displayed more prominently.
[0042] After that, the image of the target area can be magnified and displayed. That is to say, in the embodiment of the present application, by magnifying and displaying any target area determined by the user, the user can conveniently and clearly view the details of any position on the face, thereby improving the user experience in scenarios such as makeup. In addition, the shape and size of the target area to be magnified and displayed can also be determined according to the contour of the characteristic part contained in the target area, that is, the shape of the target area to be magnified and displayed can be set to the same shape as the contour of the characteristic part, and the size of the target area to be magnified and displayed can also be set according to the size of the characteristic part, thereby making the image of the target area to be magnified and displayed closer to the shape of the characteristic part, and more intuitively indicating the content of the magnified display.
[0043] In some embodiments of the present application, optionally, when the image of the target area is magnified and displayed, a window may pop up, and the image of the target area may be magnified and displayed in the window. When the image of the target area is magnified and displayed in the window, the shape of the window may be determined by the shape of the target area, and the size of the window may also be determined according to the size of the target area, for example, the shape of the window is the same as the shape of the target area, that is, the same as the outline of the characteristic part included in the target area.
[0044] Please refer to Figure 5 and Figure 6 , Figure 5 A schematic diagram of a window shape corresponding to a mouth when the characteristic part provided in an embodiment of the present application is a mouth, Figure 6 The following is a schematic diagram of the window shape corresponding to the eye when the characteristic part provided in the embodiment of the present application is an eye. Figure 5 As shown, in some embodiments of the present application, if the detected characteristic part is a mouth, the target area can be determined to be the same shape as the outline of the mouth according to the outline of the mouth, and the shape of the window 303 used to display the characteristic part of the mouth is also determined to be the same shape as the outline of the mouth according to the shape of the target area (that is, according to the outline of the characteristic part). Figure 6 As shown, if the characteristic part is detected to be an eye, the target area can be determined to be the same shape as the outline of the eye based on the outline of the eye, and the shape of the window 303 used to display the characteristic part of the eye is also determined to be the same shape as the outline of the eye based on the shape of the target area (that is, based on the outline of the characteristic part).
[0045] Therefore, in the embodiment of the present application, by continuously capturing and displaying the preview image, and selecting the target area to be enlarged by the first input of the target position in the preview image, and then enlarging and displaying the image of the target area, the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the function of the makeup mirror and improves the user experience. In addition, by combining the outline of the specific feature part that the user wants to enlarge and view, the shape and / or size of the target area and the image of the corresponding enlarged target area are determined, thereby avoiding the enlargement of the parts that the user does not pay attention to, and the feature parts can be displayed more prominently.
[0046] In some embodiments of the present application, the image of the target area to be displayed in an enlarged manner can be displayed on top of the screen of the electronic device, that is, the layer where the image of the target area to be displayed in an enlarged manner is located is located above the layer where the preview image is located. The image of the target area to be displayed in an enlarged manner can be displayed at the location where the target area (i.e., the feature outline) in the preview image is located, or it can be displayed in the face display area other than the target area in the preview image, or it can be displayed outside the face display area of the preview image, so that the user can still check the complete face.
[0047] In some other embodiments of the present application, the magnification of the image of the target area may be a preset magnification, and the preset magnification may be pre-set by a user or a default value may be used.
[0048] In some embodiments of the present application, the image of the target area displayed in the enlarged display is optionally displayed over the detected characteristic part. The transparency of the image of the target area displayed in the enlarged display can be set to 0, that is, the characteristic part is completely covered and replaced by the image of the target area displayed in the enlarged display, thereby facilitating the user to directly view the image of the target area displayed in the enlarged display at the position of the characteristic part.
[0049] In some embodiments of the present application, after the image of the target area is magnified and displayed, the method further includes:
[0050] 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 target area corresponding to the gesture;
[0051] 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.
[0052] In this embodiment, the magnification of the image displayed in the window can be conveniently adjusted through gestures without inputting on the screen of the electronic device, so that the user can better view the details of the corresponding area. Exemplarily, 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 be that the angle formed by two user fingers is greater than a preset angle threshold, and the gesture for decreasing the magnification is set to be that the angle formed by two user fingers is less than a preset angle threshold, or the gesture for increasing the magnification is set to be that a single user finger points to a first preset orientation, and the gesture for decreasing the magnification is set to be that a single user finger points to a second preset orientation, etc., then when it is detected that the gesture of the user's finger in front of the face meets the first preset gesture condition, the image of the target area corresponding to the gesture is determined, for example, if the electronic device currently displays only an image of one target area, the image of the target area is the image of the target area corresponding to the gesture, and if the electronic device currently displays at least two images of the target area, the image of the target area containing the user's finger can be determined as the image of the target area corresponding to the gesture. Optionally, if the images of at least two target areas both contain the user's finger, the image of the target area containing the most user fingers can be determined as the image of the target area corresponding to the gesture, thereby solving the problem of not being able to accurately identify the image of the target area that the user wants to adjust. It can be known that when the image of the target area is magnified and displayed in a 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 whose magnification is to be adjusted can be determined.
[0053] After determining the image of the target area corresponding to the gesture of the user's finger, the magnification of the image of the target 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.
[0054] In some other embodiments of the present application, after the image of the target area is magnified and displayed, the method further includes:
[0055] receiving a second input from a user regarding the image of the target area to be displayed in an enlarged manner;
[0056] In response to the second input, a target parameter of the image of the target area displayed in the enlarged manner is adjusted, where the target parameter includes at least one of a display size and a display shape.
[0057] Since the shape, size, etc. of the target area are determined according to the contour of the characteristic parts contained in the target area, there may be a situation where the shape, size, etc. of the target area do not meet the actual needs of the user. Therefore, the user can adjust the target parameters of the enlarged image of the target area through a second input to the enlarged image of the target area, and the target parameters include at least one of the display size and the display shape.
[0058] Optionally, when the image of the target area is displayed in the form of a window, the second input may be an input of clicking on the zoom-in / zoom-out control of the window, an input of long pressing the window, or an input of dragging the window in different directions with two fingers. Alternatively, the second input is a gesture input, and the gesture does not contact the screen of the electronic device. The gesture may be pre-set. For example, the user may pre-set a second preset gesture condition for adjusting the target parameter of the image of the target area to be displayed in the zoomed-in state. For example, the gesture for increasing the display size of the image of the target area to be displayed in the zoomed-in state is set to an angle formed by two non-adjacent fingers of three user fingers greater than a preset angle threshold, and the gesture for decreasing the display size of the image of the target area to be displayed in the zoomed-in state is set to an angle formed by two non-adjacent fingers of three user fingers less than a preset angle threshold, or the gesture for increasing the display size of the image of the target area to be displayed in the zoomed-in state 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 target area to be displayed in the zoomed-in state is set to a single user finger pointing to a third preset direction. The finger points to a fourth preset orientation, etc., then when it is detected that the second input satisfies the second preset gesture condition, the image of the target area corresponding to the second input is determined to be enlarged and displayed. For example, if the electronic device currently displays only an image of one target area, the image of the target area is the image of the target area corresponding to the second input. If the electronic device currently displays at least two images of the target area, the image of the target area containing the user's finger can be determined as the image of the target area corresponding to the second input. Optionally, if the images of at least two target areas both contain the user's finger, the image of the target area containing the largest number of user fingers can be determined as the image of the target area corresponding to the second input, thereby solving the problem of not being able to accurately identify the image of the target area that the user wants to adjust. It can be known that when the image of the target area is enlarged and displayed in a 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 whose target parameters are to be adjusted can be determined.
[0059] After determining the image of the target area corresponding to the second input, the target parameter of the image of the target area can be adjusted. If the target parameter is the display size, the display size of the image of the target area 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 of the target area is set to the angle formed by two non-adjacent fingers among three user fingers being greater than a certain preset angle threshold, the angle formed by two non-adjacent fingers among 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 three user fingers, the smaller the target size, and the larger the angle formed by two non-adjacent fingers among three user fingers, the larger the target size.
[0060] In this embodiment, optionally, when the image of the target area is enlarged and displayed in the form of a window, the second input to the enlarged image of the target area can also be the second input to the window. Through the second input, the target parameters of the corresponding window can also be adjusted, and the target parameters include at least one of the display size and the display shape.
[0061] Please refer to Figure 7 and Figure 8 , Figure 7 A schematic diagram of a gesture for reducing the size of a window provided in an embodiment of the present application, Figure 8 A schematic diagram of a gesture for enlarging the size of a window provided in an embodiment of the present application. Figure 7 As shown, the window 303 displays an image including a characteristic part, the mouth. If a second input to the window 303 is received, for example, the second input is a gesture input of moving two fingers together, the electronic device will respond to the second input and reduce the size of the window 303. The amount of adjustment can be determined according to the amount of movement of the two fingers. Figure 8 As shown, window 303 displays an image including a characteristic part, namely, an eye. If a second input from the user to window 303 is received, for example, the second input is a gesture input of moving two fingers away from each other, the electronic device will increase the size of window 303 in response to the second input. The amount of adjustment can be determined according to the amount of movement of the two fingers.
[0062] In some other embodiments of the present application, after receiving a first input of a target position in the preview image, the method further includes:
[0063] If no characteristic part is detected within a first preset area centered on the target position, enlarging and displaying an image of the first area;
[0064] The first area is composed of a second preset area range centered on the target position, and the shape and size of the first area are a preset shape and a preset size.
[0065] In this embodiment, after receiving the first input of the user for the target position in the preview image, if no characteristic part is detected in the first preset area centered on the target position, the area within the second preset range centered on the target position is directly determined as the first area, and the shape and size of the first area can be a preset shape and preset size. For example, the second preset range can be a circular area range, a rectangular area range, etc. centered on the target position, and the shape of the first area corresponds to a circle or a rectangle, and its specific size and other parameters can be set according to actual needs. The second preset range can be the same as or different from the first preset range.
[0066] In some embodiments of the present application, after the image of the first area is magnified and displayed, the method further includes:
[0067] A first display process is performed on other display areas in the preview interface except for a display area for magnifying and displaying an image of the target area and the target area, wherein the first display process includes any one of a hiding process, a blurring process, and a filling process.
[0068] In this embodiment, in order to enable the user to better view the details of the target area, make the details of the target 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 preview interface of the electronic device for displaying the preview image, except for the display area for enlarging and displaying the image of the target area and the other display areas other than the target area, 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 and not display the image of the corresponding area, 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, or other image content, such as a black background, a white background, a gray background, etc.
[0069] In some other embodiments of the present application, the enlarged display of the image of the target area includes:
[0070] Displaying the image of the target area in the first window and the second window respectively according to a preset magnification;
[0071] Among them, the display picture in the first window is fixed to the image of the target 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 target area, and the target frame picture is determined according to the moment when the first input is received.
[0072] In this embodiment, optionally, after the user selects a certain target area, two windows can be used for comparison display respectively, so as to facilitate the user to compare the state of the target area before and after makeup. Among them, when the image of the target 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 target area in the target frame picture, and the target frame picture can be determined according to the moment when the electronic device receives the first input, for example, the frame preview image corresponding to the moment when the first input is received is determined as the target frame picture; and when the image of the target 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 target area in real time and enlarges and displays it in the second window. If the user puts on makeup in the target area, the corresponding makeup effect can be seen in the second window. As a result, the user can easily check the state of the target area before and after makeup to determine whether the makeup effect is satisfactory, thereby improving the user experience of the makeup mirror function.
[0073] In some further embodiments of the present application, after displaying the image of the target area in the window at a preset magnification, the method further includes:
[0074] An image of the target area shown magnified is recorded and saved.
[0075] For example, when the image of the target area is enlarged and displayed 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 target area can be obtained, and the makeup video file saves the makeup steps of the user for the target 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.
[0076] In some embodiments of the present application, before the image of the target area is enlarged and displayed, the method further includes:
[0077] In the case where at least two characteristic parts are detected within a first preset area centered on the target position, marking each of the characteristic parts;
[0078] receiving a third input from a user on a first characteristic part of the at least two characteristic parts;
[0079] The image of the target area is magnified and displayed, comprising:
[0080] An image of a first target area including the first characteristic part is magnified and displayed, and at least one of a shape and a size of the first target area is determined according to a contour of the first characteristic part.
[0081] In this embodiment, after receiving a first input of a target position in a preview image, in response to the first input, a detection will be made as to whether a characteristic part exists within a first preset area centered on the target position. If at least two characteristic parts are detected within the first preset area centered on the target position, each detected characteristic part can be identified to prompt the user to make a selection. If a third input of a first characteristic part of two characteristic parts is received from the user, it indicates that the user has selected the first characteristic part for enlarged display. When the image of the target area is enlarged and displayed, the image of the first target area containing the first characteristic part is enlarged and displayed. Similarly, at least one of the shape and size of the first target area is determined according to the contour of the first characteristic part.
[0082] In some embodiments of the present application, after the image of the target area is magnified and displayed, the method further includes:
[0083] receiving a fourth input from the user for enlarging the image of the target area;
[0084] In response to the fourth input, the image of the target area is cancelled from being enlarged.
[0085] That is to say, the user can independently cancel the enlarged display of the image of the target area. Exemplarily, when the image of the target area is enlarged and displayed in the window, if a fourth input from the user to the window is received, for example, 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 window, wherein when canceling the display of the window, all windows can be canceled, or only a certain window can be canceled, for example, only the window determined according to the fourth input can be canceled.
[0086] In summary, in the example of the present application, by continuously capturing and displaying preview images, and selecting the target area to be enlarged by first inputting the target position in the preview image, and then enlarging and displaying the image of the target area, the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the function of the makeup mirror and improves the user experience. In addition, by combining the outline of the specific feature part that the user wants to enlarge and view, the shape and / or size of the target area and the image of the corresponding enlarged target area are determined, thereby avoiding the enlargement of parts that the user does not pay attention to, and the feature parts can be displayed more prominently.
[0087] 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.
[0088] Please refer to Fig. 9 , Fig. 9 This is a schematic diagram of the structure of a display device provided in an embodiment of the present application. Fig. 9 As shown, another aspect of the present application further provides a display device, the display device 900 comprising:
[0089] A first display module 901, used for collecting and displaying preview images;
[0090] A first receiving module 902, configured to receive a first input of a target position in the preview image;
[0091] The second display module 903 is used to respond to the first input and enlarge the image of the target area, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of the shape and size of the target area is determined according to the contour of the characteristic part.
[0092] Optionally, the image of the enlarged target area is overlaid on the characteristic part.
[0093] Optionally, the display device further includes:
[0094] A second receiving module is used to receive a second input from a user regarding the image of the target area to be displayed in an enlarged manner;
[0095] The third display module is used to adjust the target parameter of the image of the target area of the enlarged display in response to the second input, and the target parameter includes at least one of a display size and a display shape.
[0096] Optionally, the display device further includes:
[0097] A fourth display module, configured to, when no characteristic part is detected within a first preset area centered on the target position, enlarge and display an image of the first area;
[0098] The first area is composed of a second preset area range centered on the target position, and the shape and size of the first area are a preset shape and a preset size.
[0099] Optionally, the display device further includes:
[0100] An identification module, configured to identify each of the characteristic parts when at least two characteristic parts are detected within a first preset area centered on the target position;
[0101] A third receiving module, configured to receive a third input from a user on a first characteristic part of the at least two characteristic parts;
[0102] The second display module comprises:
[0103] The enlarged display unit is used to enlarge and display an image of a first target area including the first characteristic part, and at least one of a shape and a size of the first target area is determined according to the contour of the first characteristic part.
[0104] In the example of the present application, by continuously capturing and displaying preview images, and selecting the target area to be enlarged by first inputting the target position in the preview image, and then enlarging and displaying the image of the target area, the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the function of the makeup mirror and improves the user experience. In addition, by combining the outline of the specific feature part that the user wants to enlarge and view, the shape and / or size of the target area and the image of the corresponding enlarged target area are determined, thereby avoiding the enlargement of parts that the user does not pay attention to, and the feature parts can be displayed more prominently.
[0105] 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.
[0106] 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.
[0107] The display device provided in the embodiment of the present application can achieve Figures 1 to 8 To avoid repetition, the various processes implemented by the method embodiment are not described here.
[0108] Alternatively, if Fig.10As shown, an embodiment of the present application also provides an electronic device 1000, including a processor 1001 and a memory 1002, wherein the memory 1002 stores programs or instructions that can be executed on the processor 1001, and when the program or instructions are executed by the processor 1001, 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.
[0109] Fig.11 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.
[0110] The electronic device 1100 includes but is not limited to: a radio frequency unit 1101, a network module 1102, an audio output unit 1103, an input unit 1104, a sensor 1105, a display unit 1106, a user input unit 1107, an interface unit 1108, a memory 1109, and a processor 1110 and other components.
[0111] Those skilled in the art will appreciate that the electronic device 1100 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 1110 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Fig.11 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.
[0112] Wherein, the sensor 1105 is used to collect the preview image;
[0113] A display unit 1106, configured to display the preview image;
[0114] The user input unit 1107 is further configured to receive a first input for a target position in the preview image;
[0115] The display unit 1106 is also used to enlarge and display an image of a target area in response to the first input, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of the shape and size of the target area is determined according to the contour of the characteristic part.
[0116] Optionally, the image of the enlarged target area is overlaid on the characteristic part.
[0117] Optionally, the user input unit 1107 is further used to receive a second input from the user on the image of the target area to be displayed in an enlarged manner;
[0118] The display unit 1106 is further configured to adjust a target parameter of the image of the target area of the enlarged display in response to the second input, wherein the target parameter includes at least one of a display size and a display shape.
[0119] Optionally, the display unit 1106 is further configured to, when no characteristic part is detected within a first preset area centered on the target position, enlarge and display an image of the first area;
[0120] The first area is composed of a second preset area range centered on the target position, and the shape and size of the first area are a preset shape and a preset size.
[0121] Optionally, the display unit 1106 is further configured to mark each of the characteristic parts when at least two characteristic parts are detected within a first preset area centered on the target position;
[0122] The user input unit 1107 is further used to receive a third input from the user on a first characteristic part of the at least two characteristic parts;
[0123] The display unit 1106 is further configured to display an enlarged image of a first target region including the first characteristic part, wherein at least one of a shape and a size of the first target region is determined according to a contour of the first characteristic part.
[0124] In the example of the present application, by continuously capturing and displaying preview images, and selecting the target area to be enlarged by first inputting the target position in the preview image, and then enlarging and displaying the image of the target area, the enlarged image of any area in the preview image can be conveniently viewed, and the local details are clearly displayed, which enriches the function of the makeup mirror and improves the user experience. In addition, by combining the outline of the specific feature part that the user wants to enlarge and view, the shape and / or size of the target area and the image of the corresponding enlarged target area are determined, thereby avoiding the enlargement of parts that the user does not pay attention to, and the feature parts can be displayed more prominently.
[0125] It should be understood that in the embodiment of the present application, the input unit 1104 may include a graphics processor (Graphics Processing Unit, GPU) 11041 and a microphone 11042, and the graphics processor 11041 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 1106 may include a display panel 11061, and the display panel 11061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 1107 includes a touch panel 11071 and at least one of other input devices 11072. The touch panel 11071 is also called a touch screen. The touch panel 11071 may include two parts: a touch detection device and a touch controller. Other input devices 11072 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.
[0126] The memory 1109 can be used to store software programs and various data. The memory 1109 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 1109 can include a volatile memory or a non-volatile memory, or the memory 1109 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 1109 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.
[0127] The processor 1110 may include one or more processing units; optionally, the processor 1110 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 1110.
[0128] 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, the various processes of the above-mentioned display method embodiment are implemented and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.
[0129] 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.
[0130] 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.
[0131] 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.
[0132] 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.
[0133] 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.
[0134] 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.
[0135] 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 target position in the preview image; In response to the first input, an image of a target area is displayed in an enlarged manner, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of a shape and a size of the target area is determined according to the contour of the characteristic part; the enlarged display of the image of the target area comprises: displaying the image of the target area in a first window and a second window at a preset magnification, respectively; wherein the display screen in the first window is fixed to the image of the target area in the target frame screen and remains unchanged, and the display screen in the second window is updated in real time, the first window and the second window do not overlap with the target area, and the target frame screen is determined according to the moment when the first input is received; When it is detected that the gesture of the user's finger satisfies the first preset gesture condition, an image of the target area corresponding to the gesture is determined; when at least two images of the target areas both contain the user's finger, the image of the target area corresponding to the gesture is the image of the target area containing the most user fingers; adjusting the magnification of the image of the target area corresponding to the gesture to a target magnification, wherein the target magnification is determined according to the gesture; When it is detected that the second input of the user on the image of the enlarged displayed target area satisfies the second preset gesture condition, determining the image of the enlarged displayed target area corresponding to the second input; when at least two images of the target areas both contain the user's fingers, the image of the target area corresponding to the second input is the image of the target area containing the largest number of user fingers; adjusting a target parameter of the image of the target area to be displayed in the enlarged state, wherein the target parameter includes at least one of a display size and a display shape; when the target parameter is a display size, the display size of the image of the target area to be displayed in the enlarged state corresponding to the second input is adjusted to a target size, wherein the target size is determined according to the gesture corresponding to the second input; An image of the target area shown magnified is recorded and saved.
2. The display method according to claim 1, characterized in that: The image of the enlarged target area is overlaid on the characteristic part.
3. The display method according to claim 1, characterized in that: After receiving the first input of the target position in the preview image, the method further includes: If no characteristic part is detected within a first preset area centered on the target position, enlarging and displaying an image of the first area; The first area is composed of a second preset area range centered on the target position, and the shape and size of the first area are a preset shape and a preset size.
4. The display method according to claim 1, characterized in that: Before the image of the target area is enlarged and displayed, the method further includes: In the case where at least two characteristic parts are detected within a first preset area centered on the target position, marking each of the characteristic parts; receiving a third input from a user on a first characteristic part of the at least two characteristic parts; The image of the target area is magnified and displayed, comprising: An image of a first target area including the first characteristic part is magnified and displayed, and at least one of a shape and a size of the first target area is determined according to a contour of the first characteristic part.
5. 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 target position in the preview image; a second display module, configured to, in response to the first input, magnify and display an image of a target area, wherein the target area includes a characteristic part, the characteristic part is located within a first preset area centered on the target position, and at least one of a shape and a size of the target area is determined according to a contour of the characteristic part; A second display module is specifically used to display the image of the target area in the first window and the second window according to a preset magnification; wherein the display screen in the first window is fixed to the image of the target area in the target frame screen, and the display screen in the second window is updated in real time, and the first window and the second window do not overlap with the target area, and the target frame screen is determined according to the moment when the first input is received; The second display module is further used to determine the image of the target area corresponding to the gesture when it is detected that the gesture of the user's finger meets the first preset gesture condition; when the images of at least two target areas both contain the user's finger, the image of the target area corresponding to the gesture is the image of the target area containing the most user fingers; and adjust the magnification of the image of the target area corresponding to the gesture to a target magnification, wherein the target magnification is determined according to the gesture; A third display module is used to determine the image of the enlarged displayed target area corresponding to the second input when it is detected that the second input of the user on the image of the enlarged displayed target area meets the second preset gesture condition; when the images of at least two target areas both contain the user's fingers, the image of the target area corresponding to the second input is the image of the target area containing the largest number of user fingers; adjust the target parameter of the image of the enlarged displayed target area, the target parameter including at least one of a display size and a display shape; when the target parameter is a display size, the display size of the image of the enlarged displayed target area corresponding to the second input is adjusted to a target size, wherein the target size is determined according to the gesture corresponding to the second input; The saving module is used to record and save the enlarged image of the target area.
6. The display device according to claim 5, characterized in that: The image of the enlarged target area is overlaid on the characteristic part.
7. The display device according to claim 5, characterized in that: Also includes: A fourth display module, configured to, when no characteristic part is detected within a first preset area centered on the target position, enlarge and display an image of the first area; The first area is composed of a second preset area range centered on the target position, and the shape and size of the first area are a preset shape and a preset size.
8. The display device according to claim 5, characterized in that Also includes: An identification module, configured to identify each of the characteristic parts when at least two characteristic parts are detected within a first preset area centered on the target position; A third receiving module, configured to receive a third input from a user on a first characteristic part of the at least two characteristic parts; The second display module comprises: The enlarged display unit is used to enlarge and display an image of a first target area including the first characteristic part, and at least one of a shape and a size of the first target area is determined according to the contour of the first characteristic part.
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 4 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 4 are implemented.
Citation Information
Patent Citations
Image processing method and device
CN111273837A
Display method, display device and electronic equipment
CN114063845A