CN113656132A - Display method and device - Google Patents

Display method and device Download PDF

Info

Publication number
CN113656132A
CN113656132A CN202110943621.3A CN202110943621A CN113656132A CN 113656132 A CN113656132 A CN 113656132A CN 202110943621 A CN202110943621 A CN 202110943621A CN 113656132 A CN113656132 A CN 113656132A
Authority
CN
China
Prior art keywords
interface
screen
image
mirror surface
mirror
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202110943621.3A
Other languages
Chinese (zh)
Inventor
段绪芳
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Hangzhou Co Ltd
Original Assignee
Vivo Mobile Communication Hangzhou Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Hangzhou Co Ltd filed Critical Vivo Mobile Communication Hangzhou Co Ltd
Priority to CN202110943621.3A priority Critical patent/CN113656132A/en
Publication of CN113656132A publication Critical patent/CN113656132A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The application discloses a display method, a display device, electronic equipment and a readable storage medium, and belongs to the technical field of display. The display method comprises the following steps: under the condition that a first interface is displayed, acquiring a first image through a target camera of the electronic equipment; under the condition that the screen of the electronic equipment faces the mirror surface according to the first image, carrying out mirror image turning on display content in the first interface to obtain a second interface; displaying the second interface; the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.

Description

Display method and device
Technical Field
The application belongs to the technical field of display, and particularly relates to a display method and device.
Background
Generally, a user encounters a scenario during the use of an electronic device: when a user washes the face and rinses the mouth in a toilet, the user wants to synchronously chase a drama, watch live broadcast, read documents, read novels and the like on the electronic equipment, and at the moment, the user can stick the electronic equipment on a mirror on the wall surface so as to meet the watching requirement of the electronic equipment while brushing teeth and washing the face; when a user makes up in front of the mirror, the user wants to play, watch live broadcast, read documents, read novels and the like on the electronic equipment synchronously, and at the moment, the user can stick the electronic equipment to the mirror, so that the operation requirements on the electronic equipment are met while making up.
Therefore, in the prior art, when a user watches the electronic equipment in front of the mirror, the electronic equipment needs to be pasted on the mirror, and when the user answers a call or leaves the mirror, the electronic equipment needs to be torn off from the mirror, so that the operation of the user is complicated.
Disclosure of Invention
The embodiment of the application aims to provide a display method, and the problem that in the prior art, when a user watches electronic equipment in front of a mirror, the electronic equipment needs to be pasted on the mirror, and when the user receives a call or leaves the mirror, the electronic equipment needs to be torn off from the mirror, so that the operation of the user is complicated is solved.
In a first aspect, an embodiment of the present application provides a display method, where the method includes: under the condition that a first interface is displayed, acquiring a first image through a target camera of the electronic equipment; under the condition that the screen of the electronic equipment faces the mirror surface according to the first image, carrying out mirror image turning on display content in the first interface to obtain a second interface; displaying the second interface; the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.
In a second aspect, an embodiment of the present application provides a display device, including: the first acquisition module is used for acquiring a first image through a target camera of the electronic equipment under the condition that a first interface is displayed; the processing module is used for carrying out mirror image turning on display content in the first interface under the condition that the screen of the electronic equipment faces the mirror surface according to the first image so as to obtain a second interface; the display module is used for displaying the second interface; the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, and when executed by the processor, the program or instructions implement the steps of the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
Thus, in the embodiment of the application, when the first interface is displayed, the electronic device acquires a first image through the target camera which is in the same plane with the screen, so as to determine whether the screen faces the mirror surface according to the first image. Therefore, in a scene, a user faces the mirror surface, places the electronic device in front of the mirror surface (for example, hangs the electronic device on clothes, places the electronic device on a shelf, and the like), faces the screen toward the mirror surface, and the electronic device can recognize the scene through the first image collected by the target camera, so that in the scene, the display content in the first interface is subjected to mirror image turning to display the turned second interface. Based on the mirror imaging principle, the mirror surface will present a mirrored second interface, i.e. the first interface. Therefore, the user can display the content from the mirror surface as well as view the display content in the electronic device. Therefore, based on the embodiment of the application, the method for displaying the interface in the electronic equipment on the mirror surface is realized for the requirement that the user watches the electronic equipment in front of the mirror surface, the user does not need to stick the electronic equipment on the mirror surface, and the user operation is simplified.
Drawings
FIG. 1 is a flow chart of a display method according to an embodiment of the present application;
FIGS. 2 to 4 are schematic diagrams illustrating a display method according to an embodiment of the present application;
FIG. 5 is a block diagram of a display device according to an embodiment of the present application;
fig. 6 is one of the hardware configuration diagrams of the electronic device according to the embodiment of the present application;
fig. 7 is a second schematic diagram of a hardware structure of the electronic device according to the embodiment of the present application.
+ detailed description of the invention
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The display method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a flowchart illustrating a display method according to an embodiment of the present application, which is applied to an electronic device, and includes:
s1: and under the condition that the first interface is displayed, acquiring a first image through a target camera of the electronic equipment.
Optionally, the first interface is an arbitrary interface.
The target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is collected.
Illustratively, the electronic equipment comprises a screen, and the target camera is a front camera of the electronic equipment, and the front camera and the screen are located in the same plane.
Exemplarily, the electronic device includes a first screen and a second screen, and cameras are respectively disposed on the two screens. The first screen displays a first interface, and the target camera is a camera which is positioned on the same plane with the first screen.
Illustratively, the electronic device comprises a reversible target camera, a screen of the electronic device displays the first interface, and the target camera is turned to be positioned on the same plane with the screen.
Prior to this step, the switch for the mirror-in-front function may be manually turned on by the user.
Further, under the condition that a switch of the mirror image function in front of the mirror is turned on, the target camera collects images in real time.
Correspondingly, defined as: when the screen displays the first interface, the image collected by the target camera is the first image.
S2: and under the condition that the screen of the electronic equipment is determined to face the mirror surface according to the first image, mirror image turning is carried out on the display content in the first interface to obtain a second interface.
In this embodiment, the first image is captured for the purpose of determining whether the screen of the electronic device is facing the mirror.
In reference, if most of the area in the first image is used for displaying the face of the user, the screen of the electronic device is determined to face the user; if the face of the user is not displayed in most of the area in the first image, the screen of the electronic device is determined not to face the user, and further, whether the screen of the electronic device faces the mirror surface is determined in the first image.
In this way, the first image is subjected to image feature recognition to identify which object features are included in the first image, such as features of an electronic device, features of a mirror surface, and spatial relationship features of the two. Thus, the screen orientation mirror of the electronic device is determined according to the recognized image features.
Wherein the mirror surface is formed by any material capable of reflecting plane/curved surface.
In the application scenario of the embodiment, for example, in front of the mirror surface, the user carries the electronic device on his body, and the screen of the electronic device faces the mirror surface, for example, the screen is hung on a garment; as another example, the user places the electronic device on a stand in front of the mirror with the screen of the electronic device facing the mirror.
Therefore, in this step, the display content in the first interface can be mirror-flipped to obtain the second interface. In this way, the second interface of the electronic device, which is seen by the user in the mirror surface, is the interface after the mirror image effect processing is performed on the first interface, that is, the display content in the second interface is still the same as the display content of the first interface.
S3: and displaying the second interface.
In this step, the screen displays a second interface. Correspondingly, under the mirror image effect of the mirror surface, the user can see the content in the first interface (the second interface) from the mirror surface.
It should be understood that the first interface and the second interface are actually the same interface, and the display contents are the same, except that the arrangement directions of the contents are opposite.
Referring to fig. 2, the right side of the electronic device is shown, and the left and right arrangement of the display content in the first interface is shown in the figure; the left side shows the first interface after the mirror 1, which can be seen as a mirror image, with the left and right arrangement of the display content as shown.
Referring to fig. 3, the right side shows the electronic device, and the left and right arrangement of the display content in the second interface is shown; the left side shows the mirrored second interface seen at mirror 1, with the left and right arrangement of the display shown.
Thus, in the embodiment of the application, when the first interface is displayed, the electronic device acquires a first image through the target camera which is in the same plane with the screen, so as to determine whether the screen faces the mirror surface according to the first image. Therefore, in a scene, a user faces the mirror surface, places the electronic device in front of the mirror surface (for example, hangs the electronic device on clothes, places the electronic device on a shelf, and the like), faces the screen toward the mirror surface, and the electronic device can recognize the scene through the first image collected by the target camera, so that in the scene, the display content in the first interface is subjected to mirror image turning to display the turned second interface. Based on the mirror imaging principle, the mirror surface will present a mirrored second interface, i.e. the first interface. Therefore, the user can display the content from the mirror surface as well as view the display content in the electronic device. Therefore, based on the embodiment of the application, the method for displaying the interface in the electronic equipment on the mirror surface is realized for the requirement that the user watches the electronic equipment in front of the mirror surface, the user does not need to stick the electronic equipment on the mirror surface, and the user operation is simplified.
In a display method according to another embodiment of the present application, a scheme for determining a screen orientation of an electronic device to a screen based on a first image is provided.
In the first image, if at least two of the following three conditions are satisfied, it is determined that the screen of the electronic device is facing the mirror surface.
The first condition is as follows: the first image comprises electronic equipment;
and a second condition: the interface displayed in the electronic equipment in the first image is a mirrored first interface;
and (3) carrying out a third condition: the first image has abnormal spatial position relation between the shooting scene in the first image area and the shooting scene in the second image area.
For reference, the embodiment provides one implementation manner, which is divided into three steps:
first, the electronic device is identified in a first image.
Optionally, an image recognition technique is used to identify whether the first image includes an image feature of the electronic device. Specifically, the electronic apparatus is the same as the photographed electronic apparatus.
Secondly, after the electronic device is identified, the mirrored first interface is identified in the first image.
Optionally, the display interface of the electronic device in the first image is compared with the first interface, and if the display contents of the two interfaces are the same and the arrangement directions are opposite, the next step is performed.
Illustratively, the alignment is: and comparing partial characters, symbols and the like of the display interface of the electronic equipment in the first image with the characters and symbols at the corresponding position of the first interface.
Finally, an image feature of a mirror is identified in the first image.
If the mirror surface and the background around the mirror surface are acquired in the first image, the background opposite to the mirror surface appears in the mirror surface, and the background opposite to the mirror surface and the background around the mirror surface are fused in the same image, which inevitably causes the abnormality in the image, such as the obvious discontinuity of the building structure in the fused background. Thus, it can be understood that: an abnormal spatial positional relationship exists between a first image region in which the mirror surface is located and a second image region other than the mirror surface.
This step can thus identify a mirror in the first image by means of the above-mentioned features.
In this embodiment, the order of the three steps is not limited, and the mirror surface, the electronic device, and the mirrored first interface may be sequentially recognized in the first image.
Therefore, based on the implementation mode provided above, the three conditions are respectively judged, and the accuracy of the final result can be improved.
In addition, in the present embodiment, in a more simplified scheme, only two of the three steps may be performed.
For example, in the first image, if the electronic device and the mirrored first interface are successfully identified, it is determined that the screen of the electronic device faces the mirror surface.
For another example, in the first image, if the electronic device and the mirror are successfully identified, it is determined that the screen of the electronic device is oriented toward the mirror.
In this embodiment, in a first aspect, the electronic device needs to be identified in the first image; in a second aspect, the mirrored first interface needs to be identified in the first image; in a third aspect, a mirror needs to be identified in the first image. Therefore, based on the three aspects, the screen of the electronic device can be determined to face the mirror surface, and then the display method of the application is timely realized, so that a user can conveniently watch the electronic device in front of the mirror surface.
In this embodiment, the first image may be collected in real time or at preset time intervals. If the screen of the electronic equipment is determined not to face the mirror surface according to the first image acquired at a certain moment, the first interface is restored to be displayed under the condition that the electronic equipment displays the second interface; or, in the case that the electronic device displays the first interface, the display of the first interface is continuously maintained.
In the flow of the display method according to another embodiment of the present application, S2 includes:
substep A1: and under the condition that the angle between the screen and the mirror surface meets the preset condition, carrying out mirror image turning on the display content in the first interface according to the target symmetry axis of the screen.
The angle between the screen and the mirror surface in this embodiment satisfies the preset condition: and under the condition that the angle between the screen and the mirror surface meets the preset condition, the display visual angle of the mirror surface is optimal.
Referring to fig. 4, the angle between the screen 2 and the mirror surface 1 satisfies the preset condition: the screen 2 and the mirror 1 are parallel to each other.
When the screen and the mirror are parallel to each other, the screen is projected to the mirror, and the shape of the screen in the mirror is the same as that of the screen in the environment, for example, the screen is rectangular. In the mirror surface, the second interface cannot deform along with the deformation of the screen, and the display visual angle of the mirror surface is optimal.
Therefore, in the present embodiment, in order to ensure the optimal viewing effect, the display content in the first interface is mirror-flipped in the case that the screen and the mirror surface satisfy the preset condition.
And outputting a prompt message to prompt a user to adjust under the condition that the screen and the mirror surface do not meet the preset condition.
In this embodiment, when the screen is in the vertical screen display state, the target symmetry axis is parallel to the long frame of the screen.
When the screen is in a horizontal screen display state, the target symmetry axis is parallel to the short border of the screen.
In this embodiment, the user may adjust the angle between the screen and the mirror surface in advance to satisfy the preset condition, so that, when the angle between the screen and the mirror surface satisfies the preset condition, the display content in the first interface is mirror-inverted to display the inverted second interface in the mirror surface. Therefore, the initial state of the interface in the screen is restored from the shape of the interface on the basis of restoring the initial state of the interface in the screen based on the arrangement direction of the display content, so that the optimal viewing experience is brought to the user.
In the flow of the display method according to another embodiment of the present application, before step a1, the method further includes:
step B1: in the first image, a first length-width ratio of a first sub-image corresponding to the screen is acquired.
Referring to fig. 2, the left image is taken as the first image for the convenience of explanation of the present embodiment.
In fig. 2, a first aspect ratio of the first sub-image 3 corresponding to the screen can be obtained from the first image, i.e. in the first image, the aspect ratio of the screen in the mirror plane is obtained.
Step B2: and under the condition that the first length-width ratio is matched with the second length-width ratio of the screen, determining that the angle between the screen and the mirror surface meets a preset condition.
The second length-width ratio is: and determining the length-width ratio of the screen on the electronic equipment. Wherein the second aspect ratio is constant when the electronic device is constant.
When the screen and the mirror surface are parallel to each other, the orthographic projection of the screen is positioned on the mirror surface, so that the shape of the screen in the mirror surface is not changed compared with the screen in the environment, and the screen is reduced or enlarged according to the distance between the screen and the mirror surface. Thus, a first aspect ratio of the screen captured in the first image matches a second aspect ratio of the screen in the environment determined on the electronic device.
In the case that the second interface is displayed, it is common for the electronic device that the aspect ratio of the screen and the second interface is the same, for example, the second interface is displayed in full screen in the screen. Therefore, the length-width ratio of the second interface can be determined on the electronic device as the second length-width ratio; correspondingly, the aspect ratio of the second interface may also be acquired in the first image as the first aspect ratio.
The "match" in this embodiment may be interpreted as: "consistent".
Therefore, the present embodiment utilizes the mirror surface presenting principle to determine whether the angle between the screen and the mirror surface satisfies the predetermined condition by comparing the first aspect ratio with the second aspect ratio.
In the embodiment, a scheme for determining whether an angle between a screen and a mirror meets a preset condition is provided, which is implemented by comparing a first length-width ratio of the screen in the mirror with a second length-width ratio of the screen in an environment. Therefore, the angle between the screen and the mirror surface can be judged by simple size comparison, so that the display method of the embodiment is perfected.
In the flow of the display method according to another embodiment of the present application, after S3, the method further includes:
step C1: and under the condition that the second interface is displayed, acquiring a second image through the target camera.
In this embodiment, when the first interface mirror image is flipped to the second interface, the target camera continues to capture images.
Correspondingly, defined as: and when the screen displays the second interface, the image collected by the target camera is a second image.
The purpose of the target camera for acquiring the second image is as follows: and determining whether the angle between the mirror surface and the screen meets a preset condition or not according to the second image.
Step C2: and under the condition that the angle between the screen and the mirror surface does not meet the preset condition, adjusting the third length-width ratio of the second interface so that the fourth length-width ratio of a second sub-image corresponding to the second interface is matched with the second length-width ratio of the screen in the second image.
In this step, in the case where the angle between the screen and the mirror does not satisfy the preset condition, that is, the screen and the mirror are no longer parallel to each other.
For example, with the mirror surface remaining stationary, the screen may be tilted toward and away from the mirror surface relative to the mirror surface, such that the screen in the mirror surface changes shape compared to the screen in the environment, e.g., the screen in the environment is rectangular in shape and the screen in the mirror surface is trapezoidal in shape. Correspondingly, the second aspect ratio of the screen in the environment is no longer consistent with the first aspect ratio of the screen in the mirror.
Further, as the shape of the screen in the mirror surface changes, the shape of the second interface in the mirror surface changes, and the aspect ratio of the second interface in the mirror surface coincides with the aspect ratio of the screen.
Therefore, the present embodiment provides a solution for adjusting the third aspect ratio of the second interface in the electronic device to correct the shape of the second interface in the mirror surface, so as to restore the original shape of the second interface in the electronic device in the mirror surface.
In the adjusting process, the fourth length-width ratio may be obtained based on a second sub-image corresponding to a second interface in the second image. And a fourth aspect ratio, i.e., the aspect ratio of the second interface displayed in the mirror.
The final adjustment effect to be achieved in this embodiment is: the fourth aspect ratio of the second interface displayed in the mirror matches the second aspect ratio of the screen.
In this way, even if the angle between the screen and the mirror surface does not satisfy the preset condition, the display effect of the second interface seen from the mirror surface by the user can be ensured to be the same as the display effect of the second interface seen from the mirror surface by the user when the angle between the screen and the mirror surface satisfies the preset condition.
In one scenario, when the angle between the screen and the mirror surface meets a preset condition, the display content in the current first interface is turned over in a mirror image mode, and the second interface after the mirror image turning is displayed. Further, during the period of displaying the second interface, if the angle between the screen and the mirror surface does not meet the preset condition, the second interface is adjusted.
In another scenario, regardless of whether the angle between the screen and the mirror surface meets a preset condition, the display content in the current first interface can be mirror-inverted, and the mirror-inverted second interface is displayed. Further, after the second interface is displayed, if the angle between the screen and the mirror surface does not meet the preset condition, the second interface is adjusted.
Optionally, in this embodiment, after the second interface is adjusted, a prompt message is output to prompt the user that the aspect ratio of the second interface has been adjusted.
In this embodiment, for the case that the angle between the screen of the electronic device and the mirror surface does not satisfy the preset condition, the shape of the second interface in the mirror surface is changed, so that the display viewing angle of the mirror surface is abnormal. In the embodiment, in the electronic device, the shape (i.e., the length-width ratio) of the second interface is finely adjusted to restore the shape of the second interface in the mirror surface, so that the display viewing angle of the mirror surface is normal, and the viewing experience of a user is ensured.
In the flow of the display method according to another embodiment of the present application, after S2, the method further includes:
step D1: the distance between the screen and the mirror surface is acquired.
Optionally, the vertical distance from the center point of the screen to the mirror surface is taken as the distance between the screen and the mirror surface.
Optionally, the distance between the screen and the mirror surface is acquired by an infrared sensor in the electronic device.
Step D2: and under the condition that the distance is larger than the first threshold value, zooming in and adjusting the display content in the second interface.
Optionally, the setting of the first threshold depends on the actual requirement.
For example, when the distance between the screen and the mirror surface is kept within a certain distance range, the size of the display content in the second interface seen by the user from the mirror surface is moderate, and once the distance between the screen and the mirror surface exceeds the distance range, the display content in the second interface seen by the user from the mirror surface is smaller, so that based on this phenomenon, a threshold value can be defined to adjust the size of the display content in the second interface according to the distance between the screen and the mirror surface.
Alternatively, the larger the distance between the screen and the mirror, the larger the magnification.
Optionally, the magnification adjustment includes, but is not limited to: the font is enlarged.
In this embodiment, for the case that the distance between the screen of the electronic device and the mirror surface is large, so that the display content of the second interface in the mirror surface is small, the display content in the second interface can be enlarged and adjusted in the electronic device, so as to improve the display effect of the mirror surface as much as possible, and ensure the viewing experience of the user.
In the two embodiments, the first embodiment does not adjust the display content, but adjusts the length-width ratio of the interface, and after adjustment, blank areas appear around the second interface except the second interface in the screen. In the second embodiment, the display content in the second interface is adjusted instead of adjusting the second interface, and after adjustment, the second interface is displayed in the display area of the screen, but the display content in the second interface is correspondingly enlarged.
In the present application, the different embodiments may be implemented individually or in combination with each other.
In one scenario, the display content in the second interface is multimedia content, the multimedia content includes movies, games, videos, and the like, and the multimedia content has a high requirement on the integrity of the final presentation, so that when the angle between the screen and the mirror does not satisfy a preset condition, the length-width ratio of the second interface is adjusted in the electronic device to restore the initial shape of the second interface in the electronic device in the mirror. Thus, under the adjustment effect, the second interface is zoomed out, but the display content is complete.
Further, after adjustment, if the second interface has a certain amplification space compared with the screen, the second interface can be properly amplified according to the distance between the screen and the mirror surface, so that the display effect in the mirror surface is perfected.
In another scenario, the display content of the second interface is text content, the text content includes documents, novels, web pages, and the like, and the text content has a low requirement on the integrity of the final presentation and a high requirement on the size of the displayed font. Therefore, when the angle between the screen and the mirror surface does not meet the preset condition, the display content in the second interface can be enlarged according to the distance between the screen and the mirror surface. In this way, under the adjustment effect, part of the content in the second interface may not be displayed, and may be displayed in the mirror surface along with the operations of page turning, sliding and the like of the user.
In addition, when the first interface is a system interface, an interactive interface, or the like, the original interface should be maintained as much as possible without corresponding adjustment because the viewing requirement on the interface is not high, but the operation requirement is high.
In the application, a prompt message may also be output to prompt a user to adjust the posture of the electronic device, adjust the position of the electronic device relative to the mirror surface, and the like, when the angle between the screen and the mirror surface does not meet a preset condition, or when the distance between the screen and the mirror surface is greater than a first threshold value.
In the application, the output prompt message is output in the modes of an indicator light, a screen display prompt character and the like. ,
in summary, in the present application, a scene in which a screen of an electronic device faces a mirror surface is determined by a first image collected by a target camera, and in the scene, the electronic device performs left and right mirror images of simply displayed content, so that the displayed content in a correct direction can be seen in the mirror surface. Thus meeting the entertainment requirement in the unique scene of facing mirror surfaces.
The electronic device can be attached to the body of the user or other objects as long as the screen of the electronic device faces the mirror surface. In this way, the target camera of the electronic device detects that there is one identical electronic device in the mirror surface, and the content displayed by the electronic device in the mirror surface is identical to the content displayed by the electronic device, but the left and right directions are exactly opposite. At this time, if the user enables the mirror-before-mirror function, the display screen of the electronic device is displayed as left and right mirror images of the original content. And the processing of the display content by the electronic equipment does not involve related hardware, and is easy to realize.
In the display method provided in the embodiment of the present application, the execution main body may be a display device, or a control module for executing the display method in the display device. In the embodiment of the present application, a display device executing a display method is taken as an example, and the display device provided in the embodiment of the present application is described.
Fig. 5 shows a block diagram of a display device according to another embodiment of the present application, the device comprising:
the first acquisition module 10 is configured to acquire a first image through a target camera of the electronic device when the first interface is displayed;
the processing module 20 is configured to perform mirror image turning on display content in the first interface to obtain a second interface under the condition that the screen of the electronic device is determined to face the mirror plane according to the first image;
a display module 30, configured to display a second interface;
the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is collected.
Thus, in the embodiment of the application, when the first interface is displayed, the electronic device acquires a first image through the target camera which is in the same plane with the screen, so as to determine whether the screen faces the mirror surface according to the first image. Therefore, in a scene, a user faces the mirror surface, places the electronic device in front of the mirror surface (for example, hangs the electronic device on clothes, places the electronic device on a shelf, and the like), faces the screen toward the mirror surface, and the electronic device can recognize the scene through the first image collected by the target camera, so that in the scene, the display content in the first interface is subjected to mirror image turning to display the turned second interface. Based on the mirror imaging principle, the mirror surface will present a mirrored second interface, i.e. the first interface. Therefore, the user can display the content from the mirror surface as well as view the display content in the electronic device. Therefore, based on the embodiment of the application, the method for displaying the interface in the electronic equipment on the mirror surface is realized for the requirement that the user watches the electronic equipment in front of the mirror surface, the user does not need to stick the electronic equipment on the mirror surface, and the user operation is simplified.
Optionally, the processing module 20 includes:
and the overturning unit is used for carrying out mirror image overturning on the display content in the first interface according to the target symmetry axis of the screen under the condition that the angle between the screen and the mirror surface meets the preset condition.
Optionally, the apparatus further comprises:
the first acquisition module is used for acquiring a first length-width ratio of a first sub-image corresponding to a screen in the first image;
and the determining module is used for determining that the angle between the screen and the mirror surface meets the preset condition under the condition that the first length-width ratio is matched with the second length-width ratio of the screen.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring a second image through the target camera under the condition that a second interface is displayed;
and the first adjusting module is used for adjusting the third length-width ratio of the second interface under the condition that the angle between the screen and the mirror surface does not meet the preset condition, so that the fourth length-width ratio of the second sub-image corresponding to the second interface is matched with the second length-width ratio of the screen in the second image.
Optionally, the apparatus further comprises:
the second acquisition module is used for acquiring the distance between the screen and the mirror surface;
and the second adjusting module is used for amplifying and adjusting the display content in the second interface under the condition that the distance is greater than the first threshold value.
The display device in the embodiment of the present application may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine or a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The display device in the embodiment of the present application may be a device having an action system. The action system may be an Android (Android) action system, an ios action system, or other possible action systems, and the embodiment of the present application is not particularly limited.
The display device provided in the embodiment of the present application can implement each process implemented by the above method embodiment, and is not described here again to avoid repetition.
Optionally, as shown in fig. 6, an electronic device 100 is further provided in this embodiment of the present application, and includes a processor 101, a memory 102, and a program or an instruction stored in the memory 102 and executable on the processor 101, where the program or the instruction is executed by the processor 101 to implement each process of any one of the display method embodiments, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present application includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 7 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 7 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The processor 1010 is configured to control the input unit 1004 to acquire a first image through a target camera of the electronic device under the condition that the first interface is displayed; under the condition that the screen of the electronic equipment faces the mirror surface according to the first image, carrying out mirror image turning on display content in the first interface to obtain a second interface; controlling the display unit 1006 to display the second interface; the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.
Thus, in the embodiment of the application, when the first interface is displayed, the electronic device acquires a first image through the target camera which is in the same plane with the screen, so as to determine whether the screen faces the mirror surface according to the first image. Therefore, in a scene, a user faces the mirror surface, places the electronic device in front of the mirror surface (for example, hangs the electronic device on clothes, places the electronic device on a shelf, and the like), faces the screen toward the mirror surface, and the electronic device can recognize the scene through the first image collected by the target camera, so that in the scene, the display content in the first interface is subjected to mirror image turning to display the turned second interface. Based on the mirror imaging principle, the mirror surface will present a mirrored second interface, i.e. the first interface. Therefore, the user can display the content from the mirror surface as well as view the display content in the electronic device. Therefore, based on the embodiment of the application, the method for displaying the interface in the electronic equipment on the mirror surface is realized for the requirement that the user watches the electronic equipment in front of the mirror surface, the user does not need to stick the electronic equipment on the mirror surface, and the user operation is simplified.
Optionally, the processor 1010 is further configured to perform mirror image flipping on the display content in the first interface according to a target symmetry axis of the screen when an angle between the screen and the mirror plane meets a preset condition.
Optionally, the processor 1010 is further configured to obtain, in the first image, a first length-to-width ratio of a first sub-image corresponding to the screen; determining that an angle between the screen and the mirror surface satisfies a preset condition under the condition that the first length-width ratio is matched with a second length-width ratio of the screen.
Optionally, the processor 1010 is further configured to control the input unit 1004 to acquire a second image through the target camera if the second interface is displayed; and under the condition that the angle between the screen and the mirror surface does not meet the preset condition, adjusting the third length-width ratio of the second interface so that the fourth length-width ratio of a second sub-image corresponding to the second interface is matched with the second length-width ratio of the screen in the second image.
Optionally, a processor 1010, further configured to obtain a distance between the screen and the mirror; and under the condition that the distance is larger than a first threshold value, carrying out amplification adjustment on display content in the second interface.
In summary, in the present application, a scene in which a screen of an electronic device faces a mirror surface is determined by a first image collected by a target camera, and in the scene, the electronic device performs left and right mirror images of simply displayed content, so that the displayed content in a correct direction can be seen in the mirror surface. Thus meeting the entertainment requirement in the unique scene of facing mirror surfaces.
The electronic device can be attached to the body of the user or other objects as long as the screen of the electronic device faces the mirror surface. In this way, the target camera of the electronic device detects that there is one identical electronic device in the mirror surface, and the content displayed by the electronic device in the mirror surface is identical to the content displayed by the electronic device, but the left and right directions are exactly opposite. At this time, if the user enables the mirror-before-mirror function, the display screen of the electronic device is displayed as left and right mirror images of the original content. And the processing of the display content by the electronic equipment does not involve related hardware, and is easy to realize.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of a still picture or a video image obtained by an image capturing device (such as a camera) in a video image capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and an action stick, which are not described in detail herein. The memory 1009 may be used to store software programs as well as various data, including but not limited to applications and action systems. The processor 1010 may integrate an application processor, which primarily handles motion systems, user pages, applications, etc., and a modem processor, which primarily handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements the processes of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
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 Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and so on.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the display method embodiment, and can achieve the same technical effect, and the details are not repeated here to avoid repetition.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method of displaying, the method comprising:
under the condition that a first interface is displayed, acquiring a first image through a target camera of the electronic equipment;
under the condition that the screen of the electronic equipment faces the mirror surface according to the first image, carrying out mirror image turning on display content in the first interface to obtain a second interface;
displaying the second interface;
the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.
2. The method of claim 1, wherein the mirror flipping of the display content in the first interface comprises:
and under the condition that the angle between the screen and the mirror surface meets a preset condition, carrying out mirror image turning on the display content in the first interface according to the target symmetry axis of the screen.
3. The method according to claim 2, wherein before performing mirror flipping on the display content in the first interface according to the target symmetry axis of the screen in the case that the angle between the screen and the mirror plane satisfies a preset condition, the method further comprises:
in the first image, acquiring a first length-width ratio of a first sub-image corresponding to the screen;
determining that an angle between the screen and the mirror surface satisfies a preset condition under the condition that the first length-width ratio is matched with a second length-width ratio of the screen.
4. The method of claim 1, wherein after said displaying the second interface, the method further comprises:
under the condition that the second interface is displayed, acquiring a second image through the target camera;
and under the condition that the angle between the screen and the mirror surface does not meet the preset condition, adjusting the third length-width ratio of the second interface so that the fourth length-width ratio of a second sub-image corresponding to the second interface is matched with the second length-width ratio of the screen in the second image.
5. The method of claim 1, wherein after determining that the screen of the electronic device is facing the mirror surface according to the first image, and performing mirror image flipping on display content in the first interface to obtain a second interface, the method further comprises:
acquiring the distance between the screen and the mirror surface;
and under the condition that the distance is larger than a first threshold value, carrying out amplification adjustment on display content in the second interface.
6. A display device, characterized in that the device comprises:
the first acquisition module is used for acquiring a first image through a target camera of the electronic equipment under the condition that a first interface is displayed;
the processing module is used for carrying out mirror image turning on display content in the first interface under the condition that the screen of the electronic equipment faces the mirror surface according to the first image so as to obtain a second interface;
the display module is used for displaying the second interface;
the target camera and the screen of the electronic equipment are located on the same plane of the electronic equipment when the first image is acquired.
7. The apparatus of claim 6, wherein the processing module comprises:
and the turning unit is used for carrying out mirror image turning on the display content in the first interface according to the target symmetry axis of the screen under the condition that the angle between the screen and the mirror surface meets the preset condition.
8. The apparatus of claim 7, further comprising:
the first acquisition module is used for acquiring a first length-width ratio of a first sub-image corresponding to the screen in the first image;
the determining module is used for determining that the angle between the screen and the mirror surface meets a preset condition under the condition that the first length-width ratio is matched with the second length-width ratio of the screen.
9. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring a second image through the target camera under the condition that the second interface is displayed;
the first adjusting module is configured to adjust a third aspect ratio of the second interface when the angle between the screen and the mirror surface does not meet a preset condition, so that a fourth aspect ratio of a second sub-image corresponding to the second interface in the second image is matched with the second aspect ratio of the screen.
10. The apparatus of claim 6, further comprising:
the second acquisition module is used for acquiring the distance between the screen and the mirror surface;
and the second adjusting module is used for carrying out amplification adjustment on the display content in the second interface under the condition that the distance is greater than the first threshold value.
CN202110943621.3A 2021-08-17 2021-08-17 Display method and device Pending CN113656132A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110943621.3A CN113656132A (en) 2021-08-17 2021-08-17 Display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110943621.3A CN113656132A (en) 2021-08-17 2021-08-17 Display method and device

Publications (1)

Publication Number Publication Date
CN113656132A true CN113656132A (en) 2021-11-16

Family

ID=78480026

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110943621.3A Pending CN113656132A (en) 2021-08-17 2021-08-17 Display method and device

Country Status (1)

Country Link
CN (1) CN113656132A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766315A (en) * 2015-03-30 2015-07-08 联想(北京)有限公司 Method for calibrating relative position relation between image collection device and display screen and equipment
JP2018137627A (en) * 2017-02-22 2018-08-30 キヤノン株式会社 Display device, control method thereof, and program
KR20200085591A (en) * 2019-01-07 2020-07-15 이완행 Image display device using mirrors

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104766315A (en) * 2015-03-30 2015-07-08 联想(北京)有限公司 Method for calibrating relative position relation between image collection device and display screen and equipment
JP2018137627A (en) * 2017-02-22 2018-08-30 キヤノン株式会社 Display device, control method thereof, and program
KR20200085591A (en) * 2019-01-07 2020-07-15 이완행 Image display device using mirrors

Similar Documents

Publication Publication Date Title
CN110012209B (en) Panoramic image generation method and device, storage medium and electronic equipment
US20240004676A1 (en) Screen Capture Method and Apparatus, Electronic Device, and Readable Storage Medium
CN112954193B (en) Shooting method, shooting device, electronic equipment and medium
US11949986B2 (en) Anti-shake method, anti-shake apparatus, and electronic device
CN112911147B (en) Display control method, display control device and electronic equipment
CN112333382B (en) Shooting method and device and electronic equipment
EP4322520A1 (en) Photographing method and apparatus, and electronic device
CN112702533B (en) Sight line correction method and sight line correction device
WO2023083279A1 (en) Photographing method and apparatus
CN113656132A (en) Display method and device
CN114125297B (en) Video shooting method, device, electronic equipment and storage medium
CN112887607B (en) Shooting prompting method and device
CN115499589A (en) Shooting method, shooting device, electronic equipment and medium
CN112672057B (en) Shooting method and device
CN114895813A (en) Information display method and device, electronic equipment and readable storage medium
JP2023553089A (en) Image generation method, device and electronic equipment
CN113362749A (en) Display method and device
CN112291474A (en) Image acquisition method and device and electronic equipment
CN112333388B (en) Image display method and device and electronic equipment
CN112887621B (en) Control method and electronic device
CN114390205B (en) Shooting method and device and electronic equipment
CN114339050B (en) Display method and device and electronic equipment
CN116774784A (en) Folding device control method and electronic device
CN115103119A (en) Shooting method and device and electronic equipment
CN113485660A (en) Folding screen picture display method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination