Display method, display device and electronic equipment

By generating the target area on the display interface of the electronic device and enlarging the object outline in the target area, the problem of inconsistency in the magnification position caused by inaccurate user operations is solved, and a more accurate magnification display function is realized, improving the user experience.

CN114063845BActive Publication Date: 2025-04-25VIVO MOBILE COMM CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111407015.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-11-24
Publication Date
2025-04-25
Estimated Expiration
2041-11-24

AI Technical Summary

Technical Problem

In the prior art, when a user uses the magnifying glass function of an electronic device, the position deviation of the touch operation causes the enlarged position to be inconsistent with the user's expected enlarged position, which affects the user's user experience.

Method used

By displaying the target image on the display interface of the electronic device, receiving the user's first input position, generating the target area, and enlarging the object outline in the target area, thereby intelligently determining the object that the user wants to enlarge.

Benefits of technology

It effectively avoids the actual enlarged position due to inaccurate user click position and the expected enlarged position of the user, and provides a more accurate enlarged display function, which improves the user's user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114063845B_ABST
    Figure CN114063845B_ABST
Patent Text Reader

Abstract

The present application discloses a display method, a display device and an electronic device, which belong to the field of image processing. The display method comprises: displaying a target image on a display interface, the target image being captured by a camera of an electronic device; receiving a first input from a user regarding a target position of the target image; in response to the first input, displaying an enlarged image including the object when a target area of ​​the target image includes a contour of the object, the target area being determined based on the target position.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of image processing, and specifically relates to a display method, a display device and an electronic device. Background Art

[0002] As the functions of electronic devices increase, more and more electronic devices have added magnifying glass functions on the display interface. In the related technology, when a user clicks on a corresponding position, the position can be partially enlarged. However, in actual use, due to the position deviation of the touch operation, the enlarged position often does not match the user's expected enlarged position, affecting the user's experience. Summary of the invention

[0003] The purpose of the embodiments of the present application is to provide a display method, a display device and an electronic device, which can solve the problems of inaccurate magnification position and poor user experience.

[0004] In a first aspect, an embodiment of the present application provides a display method, the method comprising:

[0005] Displaying a target image on a display interface, wherein the target image is captured by a camera of the electronic device;

[0006] receiving a first input from a user regarding a target position of the target image;

[0007] In response to the first input, in a case where a target area of ​​the target image includes a contour of the object, an enlarged image including the object is displayed, the target area being determined based on the target position.

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

[0009] A first display module, used to display a target image on a display interface, wherein the target image is captured by a camera of the electronic device;

[0010] A first receiving module, configured to receive a first input from a user regarding a target position of the target image;

[0011] A second display module is configured to, in response to the first input, display an enlarged image including the object when a target area of ​​the target image includes a contour of the object, the target area being determined based on the target position.

[0012] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the method described in the first aspect.

[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, a target area is generated based on the target position where the user makes the first input, and the outline of the object within the target area is enlarged and displayed, so that the object that the user wants to enlarge can be intelligently judged based on the user's operation, and the situation where the actual enlarged position is inconsistent with the user's expected enlarged position due to inaccurate user click position is effectively avoided, thereby providing the user with a more accurate enlargement display function, which helps to further improve the user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] Figure 1 It is one of the flow charts of the display method provided in the embodiment of the present application;

[0018] Figure 2 This is the second flow chart of the display method provided in the embodiment of the present application;

[0019] Figure 3 This is one of the interface schematic diagrams of the display method provided in the embodiment of the present application;

[0020] Figure 4 This is the second interface schematic diagram of the display method provided in the embodiment of the present application;

[0021] Figure 5 This is the third interface schematic diagram of the display method provided in the embodiment of the present application;

[0022] Figure 6 is a schematic diagram of the structure of a display device provided in an embodiment of the present application;

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

[0024] Figure 8 It is a hardware schematic diagram of the electronic device provided in the embodiment of the present application. DETAILED DESCRIPTION

[0025] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0026] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0027] The display method, display device, electronic device and readable storage medium provided in the embodiments of the present application are described in detail below with reference to the accompanying drawings through specific embodiments and their application scenarios.

[0028] The display method can be applied to a terminal, and can be specifically executed by hardware or software in the terminal. The execution subject of the display method can be a terminal, or a control device of the terminal, etc.

[0029] The terminal includes but is not limited to a portable communication device such as a mobile phone or tablet computer with display and photography functions. It should also be understood that in some embodiments, the terminal may not be a portable communication device, but a desktop computer with display and photography functions.

[0030] In the following embodiments, a terminal including a display and a photographing function is described. However, it should be understood that the terminal may include one or more other physical user interface devices such as a touch panel, a physical keyboard, a mouse, and a joystick.

[0031] An embodiment of the present application provides a display method, and the execution subject of the display method can be a terminal, including but not limited to a mobile terminal, such as a mobile phone, a tablet and a camera, a non-mobile terminal, or a control device of a terminal, etc.

[0032] like Figure 1 As shown, the display method includes: step 110, step 120 and step 130.

[0033] Step 110: displaying a target image on a display interface, where the target image is captured by a camera of the electronic device;

[0034] In this step, the display interface may be a camera preview interface, for example, a front camera preview interface and a rear camera preview interface, wherein in the case of a front camera preview interface, the display interface may also be a display interface simulating a mirror.

[0035] It is understandable that, when the display mirror surface is a display interface of a simulated mirror, when the electronic device is working normally, the user can click on the simulated mirror software installed on the electronic device to open the display interface of the simulated mirror.

[0036] The display interface includes a target image, which is an image captured by a camera of the electronic device.

[0037] It can be understood that the target image may be a dynamically changing image, and the dynamic changes of the target image are consistent with the dynamic changes of the actual object captured by the camera.

[0038] In the actual implementation process, the camera is generally a front camera arranged on the electronic device, and the target image is an image captured by the front camera.

[0039] If the user clicks on the application in the mobile phone that provides the simulated mirror function, the front camera set on the mobile phone will automatically collect external image information and display the collected target image on the mobile phone screen, such as the user's own selfie.

[0040] like Figure 3 A display interface is shown, wherein the interface includes a user's head portrait captured by a front camera. When the user adjusts his expression facing the phone, the target image displayed on the screen will also change accordingly. For example, when the user blinks, the person in the target image will also blink accordingly.

[0041] Step 120: receiving a first input from a user regarding a target position of a target image;

[0042] In this step, the first input is used to determine the target position.

[0043] The first input may be expressed in at least one of the following ways:

[0044] First, the first input may be a touch input, including but not limited to a click input, a slide input, and a press input.

[0045] In this implementation, receiving the first input from the user may be performed by receiving a touch operation of the user in the display area of ​​the terminal display screen.

[0046] For example, when the simulated mirror display interface is displayed, the first input can be achieved by touching the target position on the target image; or the first input can be set to be a continuous multiple tapping operation on the target position of the display area within a target time interval.

[0047] Secondly, the first input may be a physical key input.

[0048] In this embodiment, the terminal is provided with a physical button, such as a mouse, and receiving the user's first input can be performed by receiving the first input of the user moving or pressing the physical button; the first input can also be a combination operation of pressing multiple physical buttons at the same time.

[0049] Third, the first input may be voice input.

[0050] In this implementation, the terminal may perform semantic recognition on the voice when receiving the voice, and determine the target location based on the result of the semantic recognition.

[0051] Of course, in other embodiments, the first input may also be in other forms, including but not limited to somatosensory gesture input, etc., which can be determined according to actual needs and is not limited in this embodiment of the present application.

[0052] In this step, the target position is the actual position of the input performed by the user, such as the position on the screen where the user actually clicks.

[0053] It is understandable that, usually, when a user needs to partially zoom in on a certain content on a target image, the user can click or double-click the position to perform the zooming operation, and the position is the target position.

[0054] However, in the actual execution process, there may be a situation where the position actually clicked by the user does not match the position that the user expects to be enlarged and displayed. In this embodiment, the position actually clicked by the user is used as the target position.

[0055] For example, when a user needs to Figure 3 In the case where a pimple on the right side of the face of the person in the target image is magnified, the position of the pimple can be clicked on the screen to implement the first input. The position on the screen clicked by the user, in this case, is the target position where the pimple is located.

[0056] Alternatively, the user can also click a location near the acne on the screen, such as clicking the location at the lower right corner of the acne. Figure 3 As shown, in this case, the target position is the position of the lower right corner of the acne, that is, the position on the screen actually clicked by the user.

[0057] Step 130 : In response to the first input, when a target area of ​​the target image includes a contour of the object, displaying an enlarged image including the object, the target area being determined based on the target position.

[0058] The target area is an area generated with the target position as the center.

[0059] For example, it can be a region with fixed length and width generated with the target position as the center, such as Figure 4 As shown in the dotted box in ; or, it can also be a circular area with a fixed radius generated with the target position as the center; or, it can also be an area of ​​other shapes generated with the target position as the center.

[0060] It should be noted that the area size of the region can be a system default size, or can be customized by the user, such as being set to a circular area with a diameter of 1 cm centered on the target position, and this application does not limit this.

[0061] The contour of the object is the contour of the object on the target image, where the object can be any visible content on the target image, such as Figure 3 The target image shown includes the person's hair, facial features, acne on the face, and clothes.

[0062] In the actual implementation process, when the user clicks Figure 3 The first input can be achieved by moving the target position on the target image shown.

[0063] In response to the first input, the terminal generates a Figure 4 The area with fixed length and width shown is the target area.

[0064] The terminal performs image recognition on the image in the target area to detect whether there is an object contour in the target area.

[0065] When it is determined that there is an outline of an object in the target area, for example, the terminal determines through detection that there is an outline of a pimple at the upper left corner of the target position clicked by the user, an enlarged image including the pimple is displayed.

[0066] The magnified image includes the magnified content of the object after being magnified.

[0067] In some embodiments, the magnified image may further include magnified contents of other objects around the outline of the object.

[0068] Of course, in other embodiments, the enlarged image may also include a blank area.

[0069] For example, when the user is using a mobile phone to look in the mirror, he clicks on the right corner of the person's eye on the target image to implement the first input; the terminal responds to the first input, determines the target area with the right corner of the eye as the center, and after determining that the outline of the right eye pupil exists in the target area, the outline of the right eye pupil is enlarged, and the enlarged image of the entire right eye is displayed at the same time.

[0070] It should be noted that the display of the enlarged image including the object in step 130 of the present application can be manifested as displaying the enlarged image including the object on the entire screen, or can be manifested as displaying the enlarged image including the object in a partial area of ​​the screen, or can also be manifested as displaying the enlarged image including the object in the form of floating or split screen.

[0071] The following takes floating display as an example to illustrate the implementation method of this step.

[0072] In some embodiments, the displaying of the enlarged image including the object in step 130 includes: hovering and displaying the enlarged image including the object on the target image.

[0073] In this embodiment, in response to the first input, the terminal displays the target image and at the same time displays the enlarged image in a floating manner in an area near the target position.

[0074] like Figure 5 As shown in FIG. 1 , when the terminal displays the character image in actual size on the entire screen, an enlarged pimple is also displayed floating above the pimple, such as Figure 5 The circle area is shown in the figure.

[0075] The image in the circular area is the magnified image, which includes the magnified content of the acne itself and the magnified skin texture around the acne.

[0076] In this embodiment, by simultaneously displaying a conventional image including the outline of the object in the target area and an enlarged image including the outline of the object, a comparison reference before and after enlargement can be provided to the user, thereby helping to improve the user's usage experience.

[0077] The inventor discovered during the research and development process that in the related technology, after the user clicks the target position, the terminal will directly magnify and display the image at the target position. In the actual implementation process, there are often reasons such as inaccurate click position of the user or deviation in the position of touch recognition, resulting in the situation that the magnified image is not the image expected by the user, thereby affecting the user's experience.

[0078] In the present application, when the user makes the first input at the target position, the image at the target position is not simply enlarged and displayed, but a target area is generated based on the target position, and the object in the target area is enlarged and displayed, so as to intelligently judge the object that the user wants to enlarge based on the user's operation, thereby providing a more accurate enlargement display function.

[0079] According to the display method provided in the embodiment of the present application, a target area is generated based on the target position where the user makes a first input, and the objects within the target area are enlarged and displayed, so that the object that the user wants to enlarge can be intelligently judged based on the user's operation, and the situation where the actual enlarged position is inconsistent with the user's expected enlarged position due to inaccurate user click position is effectively avoided, thereby providing the user with a more accurate enlargement display function, which helps to improve the user experience.

[0080] In some embodiments, step 130 further includes: taking the center of the object as the center point, enlarging and displaying the object, and the outline of the object is within the enlarged image.

[0081] In this embodiment, the center point is the center of enlargement during the enlargement process.

[0082] The center of the object is taken as the center point, that is, the center of the object is taken as the magnification center, and the area where the object is located is magnified.

[0083] The enlarged image may include an enlarged portion of the object and enlarged portions of other images around the outline of the object.

[0084] It should be noted that, in this embodiment, enlarging the display object may be performed by enlarging the display object according to the target magnification, or may be performed by displaying the enlarged image according to the target size. The specific implementation method will be described in the subsequent embodiments and will not be elaborated here.

[0085] For example, continue to refer to Figure 5 After the user clicks a position near the pimple to implement the first input, the terminal generates a target area with the position clicked by the user as the center in response to the first input, and when the outline of the pimple is recognized in the target area, the image of the area where the pimple is located is enlarged with the center of the pimple as the center point, to generate an enlarged image, and the enlarged image is displayed. The enlarged image includes the entire enlarged pimple object and the enlarged image of the local skin around the pimple.

[0086] According to the display method provided in the embodiment of the present application, by enlarging the object with the center of the object as the center point and displaying the enlarged image including the outline of the object, the full picture of the enlarged object can be displayed to the user, making the enlarged displayed picture more complete, avoiding affecting the normal use of the user due to incomplete display content, thereby helping to further improve the user experience.

[0087] It is understandable that, in the actual execution process, there may be a situation where the contours of one or more objects exist in the target area selected by the user.

[0088] The implementation of step 130 is described in detail below from two different implementation perspectives.

[0089] 1. There is a single object outline in the target area.

[0090] like Figure 2 As shown, in some embodiments, step 130 includes: when the target area includes the outline of a single object, the single object is magnified and displayed with the center of the single object as the center point.

[0091] In this embodiment, it can be understood that after the terminal generates a target area in response to the first input and determines whether there is an outline of an object in the target area, if it is determined that there is an outline of an object in the target area, the object outline needs to be further identified to determine the number of object outlines.

[0092] For example, when the terminal recognizes that the target area only includes the outline of a single object, such as only the outline of a pimple, the terminal zooms in and displays the image of the area where the pimple is located, taking the center of the pimple as the center point.

[0093] It should be noted that, in the actual implementation process, image recognition can be achieved through a neural network model to determine the object to which the outline of the object belongs based on the outline of the object. For example, based on the outlines of multiple objects to be judged, they can be determined as the outline of acne, the outline of the corner of the eye, and the outline of the eyebrow, etc.

[0094] The neural network model can be trained by taking the contour of the sample object as a sample and taking the sample object corresponding to the contour of the sample object as a sample label.

[0095] Second, there are contours of multiple objects in the target area.

[0096] Continue to refer to Figure 2 In some embodiments, step 130 includes:

[0097] In the case where the target area includes contours of multiple objects, displaying an object contour selection interface, the object contour selection interface including contours of the multiple objects;

[0098] receiving a second input from a user regarding a contour of a target object among contours of a plurality of objects;

[0099] In response to the second input, the target object is displayed in an enlarged manner with the center of the target object as the center point.

[0100] In this embodiment, the second input is used to determine the target object contour.

[0101] The second input may be expressed as touch input, physical key input, voice input, and somatosensory gesture input, etc., which are the same as the first input and will not be elaborated here.

[0102] The target object is the object that the user wants to enlarge and display.

[0103] The object outline interface should include the outlines of all objects within the target area.

[0104] The object outline selection interface is used for the user to select the outline of the target object to be magnified and displayed.

[0105] It can be understood that the number of contours of the target object can be one or more.

[0106] In the actual implementation process, after determining that there are contours of objects in the target area, the terminal identifies and distinguishes the contours of the objects to obtain the number of contours of the objects in the target area. The specific implementation process is as described above and will not be repeated here.

[0107] When the terminal determines that the number of contours of the objects in the target area is not less than two, an object contour selection interface is displayed, where the object contour selection interface includes contours of all identified objects.

[0108] Of course, in other embodiments, the object outline selection interface may also include selection controls corresponding to the outlines of each object.

[0109] In the object outline selection interface, the user can implement the second input by clicking the outline of the object to be enlarged or the selection control corresponding to the outline of the object.

[0110] In response to the second input, the terminal determines the outline of the object selected by the user as the outline of the target object, and magnifies and displays the area where the target object is located with the center of the target object as the center point.

[0111] For example, when a user draws eyeliner on a display interface, the display interface includes a picture of the user's entire face.

[0112] When the user needs to enlarge the eye area, the user clicks a position near the eye on the target image to implement a first input. In response to the first input, the terminal generates a target area centered on the position clicked by the user and identifies the outline of the object in the target area.

[0113] When the terminal recognizes that the target area includes multiple object contours such as eyes, eye bags, eyebrows, and acne under the eyebrows, an object contour selection interface is displayed, and the object contour display interface includes the contours of multiple objects such as eyes, eye bags, eyebrows, and acne.

[0114] The user clicks on the outline of the eye to implement the second input.

[0115] In response to the second input, the terminal determines the outline of the eye as the outline of the target object, and magnifies and displays the area near the eye with the center of the eye as the center point.

[0116] Of course, in other embodiments, when the terminal does not recognize the existence of the outline of the object in the target area, or when there is no outline of any object in the target area itself, the area is directly enlarged and displayed with the target position as the center. According to the display method provided in the embodiment of the present application, by judging the number of outlines of objects in the target area, and realizing different displays for different judgment results, when there are outlines of multiple objects, the outline of the target object is determined through the user's second input, and the target object is enlarged and displayed, which has high flexibility and human-computer interactivity, thereby helping to further improve the user experience.

[0117] The inventors also found during the research and development process that in the related art, the magnifying glass simulating a mirror is a magnifying glass of a fixed size and a fixed magnification. During use, the user not only needs to manually adjust the size of the magnifying glass based on the selected area, but also the magnification cannot be adjusted according to the actual situation, thus affecting the user's experience.

[0118] In the present application, during the actual execution process, the user can set the magnification mode in advance, such as choosing whether to magnify based on the target magnification or based on the target size.

[0119] According to some embodiments of the present application, the method further includes:

[0120] receiving a third input from the user;

[0121] In response to the third input, a target amplification mode is entered.

[0122] In this embodiment, the third input is used to determine a target magnification mode, wherein the magnification mode includes a target magnification-based magnification mode and a target size-based magnification mode.

[0123] The third input may be expressed as touch input, physical key input, voice input, and somatosensory gesture input, etc., which are the same as the first input and will not be elaborated here.

[0124] When the user chooses to zoom in based on the target magnification mode, the terminal automatically zooms in on the object in accordance with the target magnification mode.

[0125] When the user selects to zoom in based on the target size mode, the terminal automatically zooms in on the object in accordance with the zoom mode of the target size.

[0126] The amplification mode of the embodiment of the present application is described below from two different implementation perspectives.

[0127] 1. Zoom in according to the target magnification.

[0128] Continue to refer Figure 2 In some embodiments, the display in step 130 includes a magnified image of the object, including: magnifying and displaying the object according to a target magnification, where the target magnification is preset.

[0129] In this embodiment, the target magnification is the magnification desired by the user, such as 2 times, 3 times or other times.

[0130] The magnification ratio is the ratio between the size of the enlarged object and the size of the actual object.

[0131] The target magnification can be a system default magnification or a user-defined magnification.

[0132] Based on the target magnification and the actual size of the object, the size of the target image can be determined.

[0133] The size of the target image is the size of the magnifying glass. For example, when the magnified image is displayed in full screen mode, the target size is the size of the entire display screen. Figure 5 In the case of a zoomed-in image displayed in the form of a hover, the target size is Figure 5 The size of the medium circular floating area.

[0134] Generally, the size of the target image should be larger than or equal to the size of the object after being magnified by the target magnification, so as to better display the overall appearance of the magnified object.

[0135] It can be understood that, in this embodiment, the magnification is fixed and can be adjusted based on user needs; while the size of the magnified image can be non-fixed and changes based on changes in the object.

[0136] For example, when the user sets the target magnification to 2.5 times, the terminal can calculate the magnified size of the pimple after being magnified 2.5 times as 2.5a based on the actual size a of the pimple when executing step 130, and display the pimple after being magnified 2.5 times.

[0137] It should be noted that, during the display process, some intervals may be appropriately reserved in the enlarged image to display the full picture of the acne. For example, based on the size of 2.5a, the size of the enlarged image may be determined to be (4 / 3)*2.5a.

[0138] In this embodiment, the terminal can adjust the enlarged image to the most appropriate size for display based on the target magnification that the user wants to enlarge.

[0139] 2. Enlarge according to the target size.

[0140] Continue to refer Figure 2 In some embodiments, the display in step 130 includes a magnified image of the object, including: displaying the magnified image according to the target size, and the magnification is determined based on the target size and the size of the object.

[0141] In this embodiment, the target size is the size of the magnified image that the user wants to display, that is, the size of the magnifying glass that the user wants.

[0142] The target size may be a system default size, or may be user-defined, such as being set to 1 / 3 of the screen display area or 1 / 5 of the screen display area.

[0143] Based on the target size and the size of the object, the magnification of the object can be determined.

[0144] It can be understood that, in this embodiment, the size of the enlarged image is fixed, and the size can be set based on the needs of the user; while the magnification can be non-fixed and varies based on changes in the object.

[0145] For example, when the user sets the target size to size b, the terminal performs proportional conversion based on the actual size a of the acne and the target size b, thereby determining that the magnification should not exceed b / a.

[0146] In actual implementation, the magnification may be determined to be a value slightly smaller than b / a, so as to reserve a portion of space in the magnified image to show the full picture of the acne.

[0147] In this embodiment, the terminal may automatically adjust the magnification of the object outline based on the target size of the enlarged image that the user wants to display, so as to achieve an optimal magnification.

[0148] According to the display method provided in the embodiment of the present application, by providing a variety of different magnification modes such as magnification based on target magnification and magnification based on target size, it helps the user to choose the most suitable magnification method based on actual needs. The terminal can also automatically adjust the magnification to the optimal magnification or the size of the enlarged image to the optimal size based on the user's selection. It is highly flexible and universal, and significantly improves the user experience.

[0149] It should be noted that the display method provided in the embodiment of the present application can be executed by a display device or a control module in the display device for executing the display method. In the embodiment of the present application, the method of executing the display of a simulated mirror by a display device is taken as an example to illustrate the device for simulating the display of a mirror provided in the embodiment of the present application.

[0150] The embodiment of the present application also provides a display device.

[0151] like Figure 6 As shown, the display device includes: a first display module 610 , a first receiving module 620 and a second display module 630 .

[0152] A first display module 610 is used to display a target image on a display interface, where the target image is captured by a camera of the electronic device;

[0153] A first receiving module 620 is used to receive a first input of a target position of a target image by a user;

[0154] The second display module 630 is configured to display, in response to the first input, an enlarged image including the object when a target area of ​​the target image includes a contour of the object, the target area being determined based on the target position.

[0155] According to the display device provided in the embodiment of the present application, a target area is generated based on the target position where the user makes the first input, and the object existing in the target area is magnified and displayed, so that the object that the user wants to magnify can be intelligently judged based on the user's operation, and the situation that the actual magnified position is inconsistent with the user's expected magnified position due to the inaccurate user click position is effectively avoided, thereby providing the user with a more accurate magnification display function, which helps to further improve the user's usage experience

[0156] In some embodiments, the second display module is further used for:

[0157] The object is magnified with the center of the object as the center point, and the outline of the object is within the magnified image.

[0158] In some embodiments, when the target area includes the outline of a single object, the second display module 630 is further configured to magnify and display the single object with the center of the single object as the center point.

[0159] In some embodiments, the device further includes a second receiving module and a third display module, and in the case where the target area includes contours of multiple objects,

[0160] The third display module is used to display an object outline selection interface, where the object outline selection interface includes outlines of multiple objects;

[0161] The second receiving module is used to receive a second input from a user regarding the outline of a target object among the outlines of multiple objects;

[0162] The second display module 630 is further configured to, in response to the second input, enlarge and display the target object with the center of the target object as the center point.

[0163] In some embodiments, the second display module 630 is further used for:

[0164] On the target image, an enlarged image including the object is hovered and displayed.

[0165] In some embodiments, the second display module 630 is further used to: magnify the displayed object according to a target magnification, and the target magnification is preset.

[0166] In some embodiments, the second display module 630 is further used to: display the enlarged image according to the target size, and the magnification is determined based on the target size and the size of the object.

[0167] According to the display device provided in the embodiment of the present application, by providing a plurality of different magnification modes such as magnification based on target magnification and magnification based on target size, it is helpful for users to select the most suitable magnification method based on actual needs. The terminal can also automatically adjust the magnification to the optimal magnification or the size of the magnified image to the optimal size based on the user's selection, which is highly flexible and universal, and significantly improves the user experience

[0168] The display device in the embodiment of the present application can be a device, or a component, integrated circuit, or chip in a terminal. The device can be a mobile electronic device or a non-mobile electronic device. Exemplarily, the mobile electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, an in-vehicle electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook, or a personal digital assistant (PDA), etc. The non-mobile electronic device can be a server, a network attached storage (NAS), a personal computer (PC), a television (TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

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

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

[0171] Alternatively, if Figure 7 As shown, an embodiment of the present application also provides an electronic device 700, including a processor 701, a memory 702, and a program or instruction stored in the memory 702 and executable on the processor 701. When the program or instruction is executed by the processor 701, 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 described here.

[0172] It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and non-mobile electronic devices mentioned above.

[0173] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0174] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, a processor 810 and other components.

[0175] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0176] The display unit 806 is used to display the target image on the display interface, where the target image is captured by the camera of the electronic device;

[0177] A user input unit 807, used to receive a first input from a user regarding a target position of a target image;

[0178] The display unit 806 is further configured to, in response to the first input, display an enlarged image including the object when a target area of ​​the target image includes a contour of the object, the target area being determined based on the target position.

[0179] According to the electronic device provided in the embodiment of the present application, a target area is generated based on the target position where the user makes a first input, and objects within the target area are enlarged and displayed, so that the object that the user wants to enlarge can be intelligently judged based on the user's operation, and the situation where the actual enlarged position is inconsistent with the user's expected enlarged position due to inaccurate user click position is effectively avoided, thereby providing the user with a more accurate enlargement display function, which helps to further improve the user experience.

[0180] Optionally, the display unit 806 is further configured to: magnify and display the object with the center of the object as the center point, and the outline of the object is within the magnified image.

[0181] Optionally, the display unit 806 is further configured to: when the target area includes the outline of a single object, display the single object in an enlarged manner with the center of the single object as the center point.

[0182] Optionally, in the case where the target area includes contours of multiple objects,

[0183] The display unit 806 is further used to display an object outline selection interface, which includes outlines of multiple objects;

[0184] The user input unit 807 is further used to receive a second input from a user regarding the outline of a target object among the outlines of the multiple objects;

[0185] The display unit 806 is further configured to: in response to the second input, enlarge and display the target object with the center of the target object as the center point.

[0186] Optionally, the display unit 806 is further configured to: suspend and display an enlarged image including the object on the target image.

[0187] Optionally, the display unit 806 is further used to: magnify the display object according to a target magnification, and the target magnification is preset.

[0188] Optionally, the display unit 806 is further configured to: display the enlarged image according to the target size, and the magnification ratio is determined based on the target size and the size of the object.

[0189] The electronic device provided in the embodiment of the present application helps users to select the most suitable magnification method based on actual needs by providing a variety of different magnification modes such as magnification based on target magnification and magnification based on target size. The terminal can also automatically adjust the magnification to the optimal magnification or the size of the enlarged image to the optimal size based on the user's selection. It has high flexibility and universality, and significantly improves the user experience.

[0190] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include but are not limited to a physical keyboard, a function key (such as a volume control button, a switch button, etc.), a trackball, a mouse, and a joystick, which will not be repeated here. The memory 809 can be used to store software programs and various data, including but not limited to applications and operating systems. The processor 810 can integrate an application processor and a modem processor, wherein the application processor mainly processes the operating system, the user interface, and the application program, etc., and the modem processor mainly processes wireless communication. It is understandable that the above-mentioned modem processor may not be integrated into the processor 810.

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

[0192] The processor is a 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 (ROM), a random access memory (RAM), a magnetic disk or an optical disk.

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

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

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

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

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

[0198] 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: Displaying a target image on a display interface, wherein the target image is captured by a camera of the electronic device; receiving a first input from a user regarding a target position of the target image; In response to the first input, in a case where a target area of ​​the target image includes a contour of an object, displaying an enlarged image including the object, the target area being an area generated with the target position as a center, wherein the contour of the object is within the enlarged image, and the enlarged image includes an enlarged portion of the object and enlarged portions of other images around the contour of the object, In a case where the target area of ​​the target image includes the outline of the object, displaying the enlarged image including the object comprises: In the case where the target area includes the outline of a single object, the single object is magnified and displayed with the center of the single object as the center point; In a case where the target area includes contours of a plurality of objects, displaying an object contour selection interface, the object contour selection interface including the contours of the plurality of objects; receiving a second input from a user regarding a contour of a target object among the contours of the plurality of objects; In response to the second input, the target object is displayed in an enlarged manner with the center of the target object as a center point.

2. The display method according to claim 1, characterized in that: The display includes a magnified image of the object, including: An enlarged image including the object is displayed on the target image in a floating manner.

3. The display method according to any one of claims 1 to 2, characterized in that: The display includes a magnified image of the object, including: Enlarge and display the object according to a target magnification, where the target magnification is preset; Alternatively, the enlarged image is displayed according to a target size, and a magnification ratio is determined based on the target size and a size of the object.

4. A display device, characterized in that: include: A first display module, used to display a target image on a display interface, wherein the target image is captured by a camera of the electronic device; A first receiving module, configured to receive a first input from a user regarding a target position of the target image; a second display module, configured to, in response to the first input, display an enlarged image including the object when a target area of ​​the target image includes a contour of the object, the target area being an area generated with the target position as the center, wherein the contour of the object is within the enlarged image, and the enlarged image includes an enlarged portion of the object and enlarged portions of other images around the contour of the object, In a case where the target area of ​​the target image includes the outline of the object, displaying the enlarged image including the object comprises: In the case where the target area includes the outline of a single object, the single object is magnified and displayed with the center of the single object as the center point; In a case where the target area includes contours of a plurality of objects, displaying an object contour selection interface, the object contour selection interface including the contours of the plurality of objects; receiving a second input from a user regarding a contour of a target object among the contours of the plurality of objects; In response to the second input, the target object is displayed in an enlarged manner with the center of the target object as a center point.

5. The display device according to claim 4, characterized in that: The second display module is also used for: An enlarged image including the object is displayed on the target image in a floating manner.

6. The display device according to any one of claims 4 to 5, characterized in that: The second display module is also used for: Enlarge and display the object according to a target magnification, where the target magnification is preset; Alternatively, the enlarged image is displayed according to a target size, and a magnification ratio is determined based on the target size and a size of the object.

7. An electronic device, characterized in that: The method comprises a processor, a memory, and a program or instruction stored in the memory and executable on the processor, wherein the program or instruction, when executed by the processor, implements the steps of the display method according to any one of claims 1 to 3.

8. 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 the processor, the steps of the display method according to any one of claims 1 to 3 are implemented.

Citation Information

Patent Citations

  • Imaging method and device, electronic equipment and storage medium

    CN113038008A

  • High-magnification shooting method and electronic equipment

    CN113438410A