CN109634418A - A kind of display methods and terminal - Google Patents
A kind of display methods and terminal Download PDFInfo
- Publication number
- CN109634418A CN109634418A CN201811536900.2A CN201811536900A CN109634418A CN 109634418 A CN109634418 A CN 109634418A CN 201811536900 A CN201811536900 A CN 201811536900A CN 109634418 A CN109634418 A CN 109634418A
- Authority
- CN
- China
- Prior art keywords
- terminal
- face
- user
- display mode
- display
- 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
Links
- 238000000034 method Methods 0.000 title claims abstract description 67
- 230000003068 static effect Effects 0.000 claims abstract description 28
- 230000005484 gravity Effects 0.000 claims description 34
- 230000008569 process Effects 0.000 claims description 21
- 238000004590 computer program Methods 0.000 claims description 18
- 230000008859 change Effects 0.000 claims description 11
- 230000006870 function Effects 0.000 description 12
- 238000010586 diagram Methods 0.000 description 9
- 210000000887 face Anatomy 0.000 description 9
- 238000004891 communication Methods 0.000 description 2
- 238000001514 detection method Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 230000003287 optical effect Effects 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001133 acceleration Effects 0.000 description 1
- 230000009471 action Effects 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 238000007599 discharging Methods 0.000 description 1
- 210000003128 head Anatomy 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000010295 mobile communication Methods 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 238000010079 rubber tapping Methods 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 230000005236 sound signal Effects 0.000 description 1
- 238000010897 surface acoustic wave method Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/011—Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0487—Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
Landscapes
- Engineering & Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Human Computer Interaction (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Telephone Function (AREA)
Abstract
The embodiment of the present invention provides a kind of display methods and terminal, belongs to field of display technology, and the method is applied to terminal, comprising: in the case where the terminal remains static, obtains the relative direction of user's face and the terminal;According to the relative direction of user's face and the terminal, determine that display mode, the display mode include transverse screen display and vertical screen display.In the embodiment of the present invention, the terminal to remain static can be transverse screen display or vertical screen display automatically according to the relative direction determination of user's face and the terminal, so that the display direction of terminal is consistent with the view direction of user, facilitate the viewing of user, realization confirms display mode according to the demand of user, without clicking the toggle control on display screen manually, user experience is promoted.
Description
Technical Field
The embodiment of the invention relates to the technical field of display, in particular to a display method and a terminal.
Background
Common mobile terminals, such as smart phones and tablets, have a horizontal screen display mode and a vertical screen display mode to meet different viewing requirements of users, such as requirements for viewing videos or pictures in a full screen. At present, the mobile terminal confirms the display mode in real time according to the signal acquired by the gravity sensor, and certainly, the mobile terminal confirms the display mode according to the touch input of the user clicking the switching control on the display screen in the process, but the display mode is still confirmed in real time after that.
Since the signal collected by the gravity sensor can be changed only by rotating the mobile terminal, once the mobile terminal is placed on an object statically, the display mode cannot be confirmed in real time according to the requirements of the user. For the user, once the mobile terminal is statically placed on an object, if the display mode needs to be changed, only the switching control can be found on the display screen, and the user experience is poor.
Disclosure of Invention
The embodiment of the invention provides a display method and a terminal, and aims to solve the problems that once an existing mobile terminal is placed on an object statically, the display mode cannot be confirmed according to the requirements of a user, and the user can only manually click a switching control on a display screen if the user needs to change the display mode.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a display method, applied to a terminal, including:
under the condition that the terminal is in a static state, acquiring the relative direction of a user face and the terminal;
and determining a display mode according to the relative direction of the user face and the terminal, wherein the display mode comprises horizontal screen display and vertical screen display.
In a second aspect, an embodiment of the present invention further provides a terminal, including:
the relative direction acquisition module is used for acquiring the relative direction between the face of the user and the terminal under the condition that the terminal is in a static state;
and the first display mode determining module is used for determining display modes according to the relative direction of the face of the user and the terminal, wherein the display modes comprise horizontal screen display and vertical screen display.
In a third aspect, an embodiment of the present invention further provides a terminal, including a processor, a memory, and a computer program stored on the memory and operable on the processor, where the computer program, when executed by the processor, implements the steps of the display method.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the display method are implemented.
In the embodiment of the invention, under the condition that the terminal is in a static state (the signal acquired by the gravity sensor of the terminal does not change), the terminal automatically determines the display mode according to the relative direction of the face of the user and the terminal, so that the display direction of the terminal is consistent with the viewing direction of the user, the viewing of the user is facilitated, the display mode is determined according to the requirement of the user, the switching control on the display screen does not need to be clicked manually, and the user experience is improved.
Drawings
FIG. 1 is a flowchart illustrating a display method according to a first embodiment of the present invention;
FIG. 2 is a schematic diagram illustrating a face direction of a user according to an embodiment of the present invention;
fig. 3 is a schematic diagram illustrating a placement direction of a terminal according to an embodiment of the present invention;
fig. 4 is a second schematic diagram illustrating a placement direction of a terminal according to a second embodiment of the present invention;
fig. 5 is a schematic view of a scene to which the display method provided by the embodiment of the present invention is applied;
fig. 6 is a schematic structural diagram of a terminal according to a second embodiment of the present invention;
fig. 7 is a schematic structural diagram of a terminal according to a third embodiment of the present invention;
fig. 8 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the drawings of the embodiments of the present invention. It is to be understood that the embodiments described are only a few embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the described embodiments of the invention, are within the scope of the invention.
Referring to fig. 1, fig. 1 is a schematic flowchart of a display method according to an embodiment of the present invention, where the method is applied to a terminal, and includes:
step 11: under the condition that the terminal is in a static state, acquiring the relative direction of a user face and the terminal;
step 12: and determining a display mode according to the relative direction of the user face and the terminal, wherein the display mode comprises a horizontal screen display mode and a vertical screen display mode.
In the embodiment of the invention, under the condition that the terminal is in a static state (the signal acquired by the gravity sensor of the terminal does not change), the terminal automatically determines the display mode according to the relative direction of the face of the user and the terminal, so that the display direction of the terminal is consistent with the viewing direction of the user, the viewing of the user is facilitated, the display mode is determined according to the requirement of the user, the switching control on the display screen does not need to be clicked manually, and the user experience is improved.
The above steps will be exemplified below.
The relative direction of the user face and the terminal can be indicated by the relative relation between the user face direction and the terminal placing direction, and the display mode can be specifically determined according to the size of an included angle between the projection direction of the user face direction on the terminal display screen and the terminal placing direction. For example, when the face direction of the user is a direction perpendicular to a connecting line of two eyes of the user and pointing to the mouth (as shown in fig. 2), and the placement direction of the terminal is a direction in which one long side of the terminal runs from the top end to the bottom end (as shown in fig. 3 or fig. 4, which is an X-axis direction), if an included angle between the projection direction of the face direction of the user on the display screen of the terminal and the placement direction of the terminal is 0 ° to 40 °, the face is displayed on the vertical screen; if the included angle between the projection direction of the face direction of the user on the terminal display screen and the placement direction of the terminal is 50-130 degrees, displaying on a transverse screen and enabling the included angle between the display direction and the face direction of the user to be smaller than or equal to 40 degrees; if the included angle between the projection direction of the face direction of the user on the terminal display screen and the placing direction of the terminal is 140-180 degrees, displaying the face direction on the vertical screen in a reversed mode; if the included angle between the projection direction of the face direction of the user on the terminal display screen and the placing direction of the terminal is other than the above-mentioned angle, the current display mode is not changed, that is, the current display mode is maintained. For another example, when the face direction of the user is a direction (as shown in fig. 2) perpendicular to a connection line of two eyes of the user and pointing to the mouth, and the placement direction of the terminal is a direction (as shown in fig. 3 or fig. 4) in which one long side of the terminal runs from the top end to the bottom end, if an included angle between the projection direction of the face direction of the user on the display screen of the terminal and the placement direction of the terminal is less than or equal to 45 °, the face is displayed on the vertical screen; and if the included angle between the projection direction of the face direction of the user on the terminal display screen and the Y-axis direction (as shown in fig. 3 or fig. 4) is less than 45 degrees, displaying on the horizontal screen.
As an optional specific implementation manner, the display method further includes:
acquiring a signal acquired by a gravity sensor of the terminal under the condition that the terminal is in a non-static state;
and determining a display mode according to the signal acquired by the gravity sensor.
In the embodiment of the invention, because the method which can be used for determining the relative direction of the face of the user and the terminal consumes more power at present, if the user can move the terminal, the display mode can be determined according to the signal detected by the gravity sensor of the terminal.
In the embodiment of the present invention, before the step of obtaining the relative direction between the face of the user and the terminal, the method further includes:
determining that the terminal is in a stationary state when at least one of the following conditions exists:
detecting that an included angle between the terminal and a horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value;
the method comprises the steps of obtaining signals collected by at least two distance sensors distributed on a terminal, wherein the at least two distance sensors are arranged on the back and/or the side of the terminal, and the signals collected by each distance sensor indicate that the distance between the terminal and an object is smaller than a second preset threshold value and lasts for a second preset time.
Specifically, if the following three conditions exist, it is determined that the terminal is in a stationary state:
the included angle between the terminal and the horizontal plane is fixed and lasts for a first preset time, and the included angle is smaller than a first preset threshold value (including the case that the included angle is equal to 0).
And secondly, acquiring signals acquired by at least two distance sensors distributed on the back face of the terminal and/or the side face of the terminal, wherein the signals acquired by each distance sensor indicate that the terminal is close to or contacts an object and lasts for a second preset time.
Thirdly, detecting that an included angle between the terminal and the horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value; and acquiring signals acquired by at least two distance sensors distributed on the back face of the terminal and/or the side face of the terminal, wherein the signals acquired by each distance sensor indicate that the terminal is close to (close to) or contacts an object for a second preset time. The first preset time period may be equal to the second preset time period.
In the first case, if the terminal is held by the user, the angle between the terminal and the horizontal plane will necessarily change because the user cannot keep standing still. Therefore, the embodiment of the invention judges whether the terminal is in a static state by judging whether the included angle between the terminal and the horizontal plane is fixed. A terminal may also be considered stationary if it is placed on a stationary train. For example, in the case of fig. 5 (03 is a user) in which the terminal 01 is placed on a desktop 02, an included angle between the terminal 01 and a horizontal plane is fixed, if the desktop 02 is parallel to the horizontal plane, the included angle between the terminal 01 and the horizontal plane is 0, and if the desktop 02 and the horizontal plane have an included angle of 5 °, the included angle between the terminal 01 and the horizontal plane is also fixed to 5 °. Specifically, a gravity sensor and/or a gyroscope and the like can be used for detecting whether the included angle between the terminal and the horizontal plane is fixed or not, and a timer is used for acquiring the duration of a certain fixed included angle.
For the second case, it is necessary to dispersedly arrange the at least two distance sensors on the back and/or the side of the terminal, for example, one distance sensor is arranged on each of the four corners of the back of the terminal, or one or more distance sensors are arranged on each of the four edges of the back of the terminal, because the current terminal size is generally larger than the palm of the user, if the terminal is held by the user, the hand of the user is basically impossible to be close to all the distance sensors dispersedly arranged on the back and/or the side of the terminal. Thus, if each of the distance sensors discretely disposed on the back and/or side of the terminal collects a signal indicating that the terminal is proximate to an object, the terminal may be considered not to be held by a user but to be placed on an object. For example, in the case of fig. 5 where the terminal 01 is placed on a desktop 02, signals collected by each of the distance sensors distributed around the back of the terminal 01 or four sides of the terminal 01 will indicate that the terminal is close to an object (desktop). The distance sensor may in particular be an infrared sensor.
In other embodiments, the terminal in other cases may be determined to be in a stationary state, and the present invention is not limited thereto.
Optionally, the step of obtaining the relative direction between the face of the user and the terminal includes:
starting a front camera under the condition that the terminal is in a static state;
acquiring an image acquired by the front camera;
identifying a face in the image;
and determining the relative direction of the user face and the terminal according to the recognized face.
In the embodiment of the invention, the relative direction between the user face and the terminal can be determined according to the face recognized from the image collected by the front camera. In addition, because the display mode can be determined according to the signal detected by the gravity sensor when the terminal is in a non-static state, the embodiment of the invention can start the front camera only when the terminal is in a static state, thereby reducing the power consumption of the terminal.
In other embodiments of the present invention, other ways may be adopted to determine the relative direction of the face of the user and the terminal.
Optionally, in a case that at least two faces are recognized from the image and face directions of the at least two faces are not consistent, the step of determining a relative direction between the face of the user and the terminal according to the recognized faces includes:
determining the face with the largest occupied area in the image according to the size of the area occupied by each face in the image;
and determining the relative direction of the user face and the terminal according to the face with the largest occupied area.
In the embodiment of the invention, the face with the largest occupied area in the plurality of faces identified from the images acquired by the front camera generally belongs to the user closest to the terminal, and the user closest to the terminal generally is the master user.
An optional implementation manner of the present invention is that, when the terminal is in a static state, the display manner is determined in real time according to the relative direction between the face of the user and the terminal, and the current display manner is maintained or the display manner is switched in real time according to the determined display manner. Optionally, after the step of determining the display mode according to the relative direction between the face of the user and the terminal, the method further includes:
under the condition that the terminal is detected to be moved, acquiring a signal acquired by a gravity sensor of the terminal, and determining the display mode according to the signal acquired by the gravity sensor, namely if the terminal is detected to be moved, stopping determining the display mode according to the relative direction of the face of the user and the terminal, and resuming to determine the display mode according to the signal acquired by the gravity sensor;
or,
receiving a first input for switching a display mode, and responding to the first input, and switching the current display mode of the terminal into another display mode.
In the embodiment of the invention, the display mode is determined to be only an auxiliary function of the terminal according to the relative direction of the face of the user and the terminal, so that the viewing angle of the user can be kept consistent with the display direction of the terminal under the condition that the user is inconvenient to use a hand to switch the display mode, or the display mode is not required to be switched through a switching control. Therefore, once the user can switch the display mode manually, the initial switching mode is restored, for example, when the user rotates the terminal to change the signal collected by the gravity sensor of the terminal, the display mode is switched according to the changed signal, or when the user inputs a first input (which may be clicking a switching control) for switching the display mode, the display mode is switched in response to the first input.
Another optional implementation manner of the present invention is that, after determining that the terminal is in a stationary state, after obtaining the relative direction between the user face and the terminal for the first time and determining the display manner according to the relative direction between the user face and the terminal, instead of obtaining in real time and determining the display manner according to the relative direction between the user face and the terminal, it is determined whether the display manner needs to be switched according to the changed relative direction only when it is detected that the terminal is moved (in the moving process, an included angle between the terminal and a horizontal plane is always smaller than a preset threshold value) and the relative direction between the user face and the terminal is changed. Specifically, after the step of determining the display mode according to the relative direction between the face of the user and the terminal, the method further includes:
if the relative direction of the face of the user and the terminal is detected to be changed but the terminal is not moved, the current display mode is not changed;
if the fact that the relative direction of the face of the user and the terminal is changed and the terminal is moved on a placing face is detected, whether the display mode needs to be switched or not is determined according to the changed relative direction;
in the moving process of the terminal on the placing surface, an included angle between the terminal and the horizontal plane is smaller than a third preset threshold value, whether the terminal is moved or not can be judged specifically according to data collected by sensors such as a gyroscope and the like, and the included angle between the terminal and the horizontal plane in the moving process is obtained.
In the embodiment of the invention, after the relative direction of the face of the user and the terminal is obtained for the first time and the display mode is determined according to the relative direction of the face of the user and the terminal, the display mode is not switched in real time according to the change of the relative direction of the face of the user and the terminal, so that the error switching caused by accidental head swinging action of the user in the watching process can be prevented. If the user really needs to change the display mode, the terminal can be moved, the terminal is pushed by other parts of the body without manually clicking a switching control, and the terminal can be enabled to switch the display mode according to the relative direction of the currently acquired face of the user and the terminal.
In addition, as an optional implementation manner, after the step of determining the display manner according to the relative direction between the face of the user and the terminal, the method further includes:
under the condition that the terminal is detected to be moved and the included angle between the terminal and the horizontal plane after the terminal is moved is larger than a fourth preset threshold value, acquiring a signal collected by a gravity sensor of the terminal, and determining the display mode according to the signal collected by the gravity sensor;
or,
receiving a first input for switching a display mode, and responding to the first input, and switching the current display mode of the terminal into another display mode.
In the embodiment of the invention, the display mode is determined to be only one auxiliary function of the terminal according to the relative direction of the face of the user and the terminal, the display mode does not need to be switched by manually clicking a switching control on a display screen, and the viewing angle of the user is kept consistent with the display direction of the terminal. Therefore, once the user can switch the display mode manually, the initial switching mode is restored, for example, when the user rotates the terminal to change the signal collected by the gravity sensor of the terminal, the display mode is switched according to the changed signal, or when the user inputs a first input (which may be clicking a switching control) for switching the display mode, the display mode is switched in response to the first input.
Referring to fig. 6, fig. 6 is a schematic structural diagram of a terminal according to a second embodiment of the present invention, where the terminal includes:
a relative direction obtaining module 21, configured to obtain a relative direction between a face of a user and the terminal when the terminal is in a stationary state;
and the first display mode determining module 22 is configured to determine a display mode according to a relative direction between the user face and the terminal, where the display mode includes a horizontal screen display and a vertical screen display.
In the embodiment of the invention, under the condition that the terminal is in a static state (the signal acquired by the gravity sensor of the terminal does not change), the terminal automatically determines the display mode according to the relative direction of the face of the user and the terminal, so that the display direction of the terminal is consistent with the viewing direction of the user, the viewing of the user is facilitated, the display mode is determined according to the requirement of the user, the switching control on the display screen does not need to be clicked manually, and the user experience is improved.
Preferably, the terminal further includes:
the first signal acquisition module is used for acquiring a signal acquired by a gravity sensor of the terminal under the condition that the terminal is in a non-static state;
and the second display mode determining module is used for determining the display mode according to the signal acquired by the gravity sensor.
Preferably, the terminal further includes: a static state determination module, configured to determine that the terminal is in a static state when at least one of the following conditions exists:
detecting that an included angle between the terminal and a horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value;
the method comprises the steps of obtaining signals collected by at least two distance sensors distributed on a terminal, wherein the at least two distance sensors are arranged on the back and/or the side of the terminal, and the signals collected by each distance sensor indicate that the distance between the terminal and an object is smaller than a second preset threshold value and lasts for a second preset time.
Optionally, the relative direction obtaining module 21 includes:
the starting unit is used for starting the front camera under the condition that the terminal is in a static state;
the image acquisition unit is used for acquiring the image acquired by the front camera;
the recognition unit is used for recognizing the human face in the image;
and the direction determining unit is used for determining the relative direction of the user face and the terminal according to the recognized face.
Optionally, the direction determining unit includes:
the face determining subunit is configured to determine, when at least two faces are identified from the image and the face directions of the at least two faces are not the same, a face occupying the largest area in the image according to the size of the area occupied by each face in the image;
and the direction determining subunit is used for determining the relative direction between the user face and the terminal according to the face with the largest occupied area.
Preferably, the terminal further includes:
the third display mode determining module is used for acquiring signals collected by a gravity sensor of the terminal under the condition that the terminal is detected to be moved, and determining the display mode according to the signals collected by the gravity sensor;
or,
and the fourth display mode determining module is used for receiving a first input for switching the display modes and responding to the first input to switch the current display mode of the terminal into another display mode.
Preferably, the terminal further includes:
a fifth display mode determining module, configured to detect that a relative direction between the user face and the terminal changes but the terminal is not moved, and not change a current display mode;
a sixth display mode determining module, configured to detect that a relative direction between the face of the user and the terminal changes and the terminal is moved on a placement surface, and determine whether to switch the display mode according to the changed relative direction;
and in the process of being moved on the placing surface, the included angle between the terminal and the horizontal plane is smaller than a third preset threshold value.
The terminal provided by the embodiment of the present invention can implement each process in the above method embodiments, and is not described herein again to avoid repetition.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a terminal according to a third embodiment of the present invention, where the terminal 30 includes a processor 31, a memory 32, and a computer program stored in the memory 32 and capable of running on the processor 31, and when the computer program is executed by the processor 31, the following steps are implemented:
under the condition that the terminal is in a static state, acquiring the relative direction of a user face and the terminal;
and determining a display mode according to the relative direction of the user face and the terminal, wherein the display mode comprises horizontal screen display and vertical screen display.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
acquiring a signal acquired by a gravity sensor of the terminal under the condition that the terminal is in a non-static state;
and determining a display mode according to the signal acquired by the gravity sensor.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
before the step of obtaining the relative direction between the face of the user and the terminal, the method further comprises:
determining that the terminal is in a stationary state when at least one of the following conditions exists:
detecting that an included angle between the terminal and a horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value;
the method comprises the steps of obtaining signals collected by at least two distance sensors distributed on a terminal, wherein the at least two distance sensors are arranged on the back and/or the side of the terminal, and the signals collected by each distance sensor indicate that the distance between the terminal and an object is smaller than a second preset threshold value and lasts for a second preset time.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
the step of obtaining the relative direction between the face of the user and the terminal comprises the following steps:
starting a front camera under the condition that the terminal is in a static state;
acquiring an image acquired by the front camera;
identifying a face in the image;
and determining the relative direction of the user face and the terminal according to the recognized face.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
when at least two faces are recognized from the image and the face directions of the at least two faces are not consistent, the step of determining the relative direction between the face of the user and the terminal according to the recognized faces comprises the following steps:
determining the face with the largest occupied area in the image according to the size of the area occupied by each face in the image;
and determining the relative direction of the user face and the terminal according to the face with the largest occupied area.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
after the step of determining the display mode according to the relative direction of the user face and the terminal, the method further comprises the following steps:
under the condition that the terminal is detected to be moved, acquiring a signal acquired by a gravity sensor of the terminal, and determining the display mode according to the signal acquired by the gravity sensor; or,
receiving a first input for switching a display mode, and responding to the first input, and switching the current display mode of the terminal into another display mode.
Optionally, the computer program may further implement the following steps when executed by the processor 31:
after the step of determining the display mode according to the relative direction of the user face and the terminal, the method further comprises the following steps:
if the relative direction of the face of the user and the terminal is detected to be changed but the terminal is not moved, the current display mode is not changed;
if the fact that the relative direction of the face of the user and the terminal is changed and the terminal is moved on a placing face is detected, whether the display mode needs to be switched or not is determined according to the changed relative direction;
and in the process of being moved on the placing surface, the included angle between the terminal and the horizontal plane is smaller than a third preset threshold value.
The terminal can realize each process of the method embodiment and achieve the same technical effect, and is not described herein again to avoid repetition.
Fig. 8 is a schematic diagram of a hardware structure of a terminal for implementing various embodiments of the present invention, where the terminal 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 a power supply 811. Those skilled in the art will appreciate that the terminal configuration shown in fig. 8 is not intended to be limiting, and that the terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The processor 810 is configured to, when the terminal is in a stationary state, obtain a relative direction between a face of a user and the terminal; and determining a display mode according to the relative direction of the user face and the terminal, wherein the display mode comprises horizontal screen display and vertical screen display.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 801 may be used for receiving and sending signals during a message sending and receiving process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 810; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 801 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. Further, the radio frequency unit 801 can also communicate with a network and other devices through a wireless communication system.
The terminal provides wireless broadband internet access to the user through the network module 802, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 803 may convert audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into an audio signal and output as sound. Also, the audio output unit 803 may also provide audio output related to a specific function performed by the terminal 800 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
The input unit 804 is used for receiving an audio or video signal. The input Unit 804 may include a Graphics Processing Unit (GPU) 8041 and a microphone 8042, and the Graphics processor 8041 processes image data of a still picture or video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 806. The image frames processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or transmitted via the radio frequency unit 801 or the network module 802. The microphone 8042 can receive sound, and can process such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 801 in case of a phone call mode.
The terminal 800 also includes at least one sensor 805, such as light sensors, motion sensors, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 8061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 8061 and/or the backlight when the terminal 800 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 805 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 806 is used to display information input by the user or information provided to the user. 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 (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 807 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal. Specifically, the user input unit 807 includes a touch panel 8071 and other input devices 8072. The touch panel 8071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 8071 (e.g., operations by a user on or near the touch panel 8071 using a finger, a stylus, or any other suitable object or accessory). The touch panel 8071 may include two portions of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, receives a command from the processor 810, and executes the command. In addition, the touch panel 8071 can be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 8071, the user input unit 807 can include other input devices 8072. In particular, other input devices 8072 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 a joystick, which are not described in detail herein.
Further, the touch panel 8071 can be overlaid on the display panel 8061, and when the touch panel 8071 detects a touch operation on or near the touch panel 8071, the touch operation is transmitted to the processor 810 to determine the type of the touch event, and then the processor 810 provides a corresponding visual output on the display panel 8061 according to the type of the touch event. Although in fig. 8, the touch panel 8071 and the display panel 8061 are two independent components to implement the input and output functions of the terminal, in some embodiments, the touch panel 8071 and the display panel 8061 may be integrated to implement the input and output functions of the terminal, which is not limited herein.
The interface unit 808 is an interface for connecting an external device to the terminal 800. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 808 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the terminal 800 or may be used to transmit data between the terminal 800 and external devices.
The memory 809 may be used to store software programs as well as various data. The memory 809 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 809 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 810 is a control center of the terminal, connects various parts of the entire terminal using various interfaces and lines, and performs various functions of the terminal and processes data by operating or executing software programs and/or modules stored in the memory 809 and calling data stored in the memory 809, thereby integrally monitoring the terminal. Processor 810 may include one or more processing units; preferably, the processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The terminal 800 may also include a power supply 811 (e.g., a battery) for powering the various components, and preferably, the power supply 811 may be logically coupled to the processor 810 via a power management system to provide management of charging, discharging, and power consumption via the power management system.
In addition, the terminal 800 includes some functional modules that are not shown, and are not described in detail herein.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the display method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
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 invention may be embodied in the form of a 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, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.
Claims (14)
1. A display method is applied to a terminal and is characterized by comprising the following steps:
under the condition that the terminal is in a static state, acquiring the relative direction of a user face and the terminal;
and determining a display mode according to the relative direction of the user face and the terminal, wherein the display mode comprises horizontal screen display and vertical screen display.
2. The display method according to claim 1, further comprising:
acquiring a signal acquired by a gravity sensor of the terminal under the condition that the terminal is in a non-static state;
and determining a display mode according to the signal acquired by the gravity sensor.
3. The display method according to claim 1, wherein the step of obtaining the relative direction between the face of the user and the terminal is preceded by the step of:
determining that the terminal is in a stationary state when at least one of the following conditions exists:
detecting that an included angle between the terminal and a horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value;
the method comprises the steps of obtaining signals collected by at least two distance sensors distributed on a terminal, wherein the at least two distance sensors are arranged on the back and/or the side of the terminal, and the signals collected by each distance sensor indicate that the distance between the terminal and an object is smaller than a second preset threshold value and lasts for a second preset time.
4. The display method according to claim 1, wherein the step of obtaining the relative direction between the face of the user and the terminal comprises:
starting a front camera under the condition that the terminal is in a static state;
acquiring an image acquired by the front camera;
identifying a face in the image;
and determining the relative direction of the user face and the terminal according to the recognized face.
5. The display method according to claim 4, wherein, in a case where at least two faces are recognized from the image and the face directions of the at least two faces are not identical, the step of determining the relative direction of the face of the user and the terminal according to the recognized faces comprises:
determining the face with the largest occupied area in the image according to the size of the area occupied by each face in the image;
and determining the relative direction of the user face and the terminal according to the face with the largest occupied area.
6. The display method according to claim 1, wherein after the step of determining the display mode according to the relative direction between the face of the user and the terminal, the method further comprises:
under the condition that the terminal is detected to be moved, acquiring a signal acquired by a gravity sensor of the terminal, and determining the display mode according to the signal acquired by the gravity sensor; or,
receiving a first input for switching a display mode, and responding to the first input, and switching the current display mode of the terminal into another display mode.
7. The display method according to claim 1, wherein after the step of determining the display mode according to the relative direction between the face of the user and the terminal, the method further comprises:
if the relative direction of the face of the user and the terminal is detected to be changed but the terminal is not moved, the current display mode is not changed;
if the fact that the relative direction of the face of the user and the terminal is changed and the terminal is moved on a placing face is detected, whether the display mode needs to be switched or not is determined according to the changed relative direction;
and in the process of being moved on the placing surface, the included angle between the terminal and the horizontal plane is smaller than a third preset threshold value.
8. A terminal, comprising:
the relative direction acquisition module is used for acquiring the relative direction between the face of the user and the terminal under the condition that the terminal is in a static state;
and the first display mode determining module is used for determining display modes according to the relative direction of the face of the user and the terminal, wherein the display modes comprise horizontal screen display and vertical screen display.
9. The terminal of claim 8, further comprising:
the first signal acquisition module is used for acquiring a signal acquired by a gravity sensor of the terminal under the condition that the terminal is in a non-static state;
and the second display mode determining module is used for determining the display mode according to the signal acquired by the gravity sensor.
10. The terminal of claim 8, further comprising: a static state determination module, configured to determine that the terminal is in a static state when at least one of the following conditions exists:
detecting that an included angle between the terminal and a horizontal plane is fixed and lasts for a first preset time, wherein the included angle is smaller than a first preset threshold value;
the method comprises the steps of obtaining signals collected by at least two distance sensors distributed on a terminal, wherein the at least two distance sensors are arranged on the back and/or the side of the terminal, and the signals collected by each distance sensor indicate that the distance between the terminal and an object is smaller than a second preset threshold value and lasts for a second preset time.
11. The terminal of claim 8, further comprising:
the third display mode determining module is used for acquiring signals collected by a gravity sensor of the terminal under the condition that the terminal is detected to be moved, and determining the display mode according to the signals collected by the gravity sensor;
or,
and the fourth display mode determining module is used for receiving a first input for switching the display modes and responding to the first input to switch the current display mode of the terminal into another display mode.
12. The terminal of claim 8, further comprising:
a fifth display mode determining module, configured to detect that a relative direction between the user face and the terminal changes but the terminal is not moved, and not change a current display mode;
a sixth display mode determining module, configured to detect that a relative direction between the face of the user and the terminal changes and the terminal is moved on a placement surface, and determine whether to switch the display mode according to the changed relative direction;
and in the process of being moved on the placing surface, the included angle between the terminal and the horizontal plane is smaller than a third preset threshold value.
13. A terminal, characterized in that it comprises a processor, a memory and a computer program stored on the memory and executable on the processor, the computer program, when executed by the processor, implementing the steps of the display method according to any one of claims 1 to 7.
14. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the display method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536900.2A CN109634418A (en) | 2018-12-14 | 2018-12-14 | A kind of display methods and terminal |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811536900.2A CN109634418A (en) | 2018-12-14 | 2018-12-14 | A kind of display methods and terminal |
Publications (1)
Publication Number | Publication Date |
---|---|
CN109634418A true CN109634418A (en) | 2019-04-16 |
Family
ID=66074262
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201811536900.2A Pending CN109634418A (en) | 2018-12-14 | 2018-12-14 | A kind of display methods and terminal |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN109634418A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347290A (en) * | 2021-04-30 | 2021-09-03 | 华为技术有限公司 | Terminal equipment, and method and device for controlling terminal equipment |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050104848A1 (en) * | 2003-09-25 | 2005-05-19 | Kabushiki Kaisha Toshiba | Image processing device and method |
CN101989126A (en) * | 2009-08-07 | 2011-03-23 | 深圳富泰宏精密工业有限公司 | Handheld electronic device and automatic screen picture rotating method thereof |
CN102043942A (en) * | 2009-10-12 | 2011-05-04 | 纬创资通股份有限公司 | Visual direction judging method, image processing method, image processing device and display device |
CN105759968A (en) * | 2016-02-22 | 2016-07-13 | 深圳市金立通信设备有限公司 | Display interface adjusting method and terminal |
CN106303029A (en) * | 2016-08-15 | 2017-01-04 | 广东欧珀移动通信有限公司 | The method of controlling rotation of a kind of picture, device and mobile terminal |
-
2018
- 2018-12-14 CN CN201811536900.2A patent/CN109634418A/en active Pending
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20050104848A1 (en) * | 2003-09-25 | 2005-05-19 | Kabushiki Kaisha Toshiba | Image processing device and method |
CN101989126A (en) * | 2009-08-07 | 2011-03-23 | 深圳富泰宏精密工业有限公司 | Handheld electronic device and automatic screen picture rotating method thereof |
CN102043942A (en) * | 2009-10-12 | 2011-05-04 | 纬创资通股份有限公司 | Visual direction judging method, image processing method, image processing device and display device |
CN105759968A (en) * | 2016-02-22 | 2016-07-13 | 深圳市金立通信设备有限公司 | Display interface adjusting method and terminal |
CN106303029A (en) * | 2016-08-15 | 2017-01-04 | 广东欧珀移动通信有限公司 | The method of controlling rotation of a kind of picture, device and mobile terminal |
Cited By (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113347290A (en) * | 2021-04-30 | 2021-09-03 | 华为技术有限公司 | Terminal equipment, and method and device for controlling terminal equipment |
CN113347290B (en) * | 2021-04-30 | 2024-05-17 | 华为技术有限公司 | Terminal equipment, method and device for controlling terminal equipment |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108459797B (en) | Control method of folding screen and mobile terminal | |
CN108182043B (en) | Information display method and mobile terminal | |
CN109078319B (en) | Game interface display method and terminal | |
CN108600668B (en) | Screen recording frame rate adjusting method and mobile terminal | |
CN109343788B (en) | Operation control method of mobile terminal and mobile terminal | |
CN109523253B (en) | Payment method and device | |
CN108881617B (en) | Display switching method and mobile terminal | |
CN109710349B (en) | Screen capturing method and mobile terminal | |
CN109739429B (en) | Screen switching processing method and mobile terminal equipment | |
CN109889757B (en) | Video call method and terminal equipment | |
CN107734170B (en) | Notification message processing method, mobile terminal and wearable device | |
CN107728923B (en) | Operation processing method and mobile terminal | |
CN109144393B (en) | Image display method and mobile terminal | |
CN109257505B (en) | Screen control method and mobile terminal | |
CN109240577A (en) | A kind of screenshotss method and terminal | |
CN107608606A (en) | A kind of image display method, mobile terminal and computer-readable recording medium | |
CN109542321B (en) | Control method and device for screen display content | |
CN107895143A (en) | A kind of finger print information processing method, mobile terminal and computer-readable recording medium | |
CN108196781B (en) | Interface display method and mobile terminal | |
CN109871253A (en) | A kind of display methods and terminal | |
CN109443261B (en) | Method for acquiring folding angle of folding screen mobile terminal and mobile terminal | |
CN108540642B (en) | Mobile terminal and operation method thereof | |
CN110764650A (en) | Key trigger detection method and electronic equipment | |
CN108536513B (en) | Picture display direction adjusting method and mobile terminal | |
CN110058686A (en) | A kind of control method and terminal 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 | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20190416 |