CN112764864A - Display direction adjusting method and device - Google Patents

Display direction adjusting method and device Download PDF

Info

Publication number
CN112764864A
CN112764864A CN202110099385.1A CN202110099385A CN112764864A CN 112764864 A CN112764864 A CN 112764864A CN 202110099385 A CN202110099385 A CN 202110099385A CN 112764864 A CN112764864 A CN 112764864A
Authority
CN
China
Prior art keywords
earphone
target
display direction
determining
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
Application number
CN202110099385.1A
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 Co Ltd
Original Assignee
Vivo Mobile Communication 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 Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202110099385.1A priority Critical patent/CN112764864A/en
Publication of CN112764864A publication Critical patent/CN112764864A/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)

Abstract

The application discloses a display direction adjusting method and device, and belongs to the field of mobile communication. The method comprises the following steps: acquiring an initial display direction of a display screen of electronic equipment and acquiring posture information of an earphone in communication connection with the electronic equipment; the earphones comprise a first earphone and a second earphone; determining a target earphone in the first earphone and the second earphone according to the posture information; and determining a target display direction according to the initial display direction and the target earphone, and adjusting the display direction of a display screen of the electronic equipment to the target display direction. The embodiment of the application solves the problem that in the prior art, the screen automatic rotation function of the electronic equipment is inaccurate when a user lies on one side.

Description

Display direction adjusting method and device
Technical Field
The application belongs to the field of mobile communication, and particularly relates to a display direction adjusting method and device.
Background
With the rapid development of mobile communication technology, various mobile electronic devices and non-mobile electronic devices have become indispensable tools in various aspects of people's lives. The functions of various Application programs (APPs) of the electronic equipment are gradually improved, and the functions do not only play a role in communication, but also provide various intelligent services for users, so that great convenience is brought to the work and life of the users.
At present, electronic devices have a screen rotation function, and a built-in sensor (e.g., a gyroscope) is used to calculate attitude information of the electronic devices, so as to realize automatic rotation of the screen. However, the automatic screen rotation function is not very accurate in some postures, for example, in a state that a user lies on his side, the electronic device is placed vertically on a horizontal plane, and when the electronic device is adjusted according to the existing screen rotation direction, the display direction is adjusted to be displayed on a vertical screen; however, the display direction is not correct for the user, and if the user needs to adjust the display direction to the horizontal screen display, the user needs to manually adjust the display direction and then lock the display direction, which is cumbersome to operate.
Disclosure of Invention
An object of the embodiments of the present application is to provide a display direction adjustment method and apparatus, which can solve the problem in the prior art that an automatic screen rotation function of an electronic device is inaccurate when a user is in a lateral lying state.
In order to solve the technical problem, the present application is implemented as follows:
in a first aspect, an embodiment of the present application provides a display direction adjustment method, where the method includes:
acquiring an initial display direction of a display screen of electronic equipment and acquiring posture information of an earphone in communication connection with the electronic equipment; the earphones comprise a first earphone and a second earphone;
determining a target earphone in the first earphone and the second earphone according to the posture information;
and determining a target display direction according to the initial display direction and the target earphone, and adjusting the display direction of a display screen of the electronic equipment to the target display direction.
In a second aspect, an embodiment of the present application further provides a display direction adjusting apparatus, where the display direction adjusting apparatus includes:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an initial display direction of a display screen of the electronic equipment and acquiring the posture information of an earphone in communication connection with the electronic equipment; the earphones comprise a first earphone and a second earphone;
a determining module, configured to determine a target earphone of the first earphone and the second earphone according to the posture information;
and the adjusting module is used for determining a target display direction according to the initial display direction and the target earphone and adjusting the display direction of the display screen of the electronic equipment to the target display direction.
In a third aspect, an embodiment of the present application further provides an electronic device, which includes a memory, a processor, and a program or an instruction stored on the memory and executable on the processor, where the processor executes the program or the instruction to implement the steps in the display direction adjustment method described above.
In a fourth aspect, the present application further provides a readable storage medium, on which a program or instructions are stored, where the program or instructions, when executed by a processor, implement the steps in the display direction adjustment method as described above.
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.
In the embodiment of the application, the method comprises the steps of obtaining an initial display direction of a display screen of electronic equipment and obtaining posture information of an earphone in communication connection with the electronic equipment; determining a target earphone in the first earphone and the second earphone according to the posture information; and determining a target display direction according to the initial display direction and the target earphone, and adjusting the display direction of a display screen of the electronic equipment to the target display direction. The method comprises the steps of determining posture information of the electronic equipment according to the initial display direction, determining user posture information according to the earphone posture information, and determining and adjusting the target display direction by combining the posture information of the electronic equipment and the user posture information, so that the problem that the screen automatic rotation function of the electronic equipment is inaccurate when a user lies on the side is solved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings needed to be used in the description of the embodiments of the present application will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a flowchart illustrating a display direction adjustment method according to an embodiment of the present application;
FIG. 2 is a schematic diagram illustrating a first example provided by an embodiment of the present application;
FIG. 3 shows one of the schematic diagrams of a second example provided by an embodiment of the present application;
fig. 4 shows a second schematic diagram of a second example provided by an embodiment of the present application;
FIG. 5 is a third schematic diagram of a second example provided by an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating a third example provided by an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating a fourth example provided by an embodiment of the present application;
fig. 8 is a block diagram of a display direction adjustment apparatus according to an embodiment of the present application;
fig. 9 shows a block diagram of an electronic device provided by an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described 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, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present application. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In various embodiments of the present application, it should be understood that the sequence numbers of the following processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
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 is to be understood that the data so used is interchangeable under appropriate circumstances such that the embodiments of the application are capable of operation in sequences other than those illustrated or described herein. 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 direction adjustment 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.
Referring to fig. 1, an embodiment of the present application provides a display orientation adjustment method, which is optionally applicable to electronic devices including various handheld devices, vehicle-mounted devices, wearable devices, computing devices or other processing devices connected to a wireless modem, and various forms of Mobile Stations (MSs), Terminal devices (Terminal devices), and the like.
The method comprises the following steps:
step 101, acquiring an initial display direction of a display screen of electronic equipment and acquiring gesture information of an earphone in communication connection with the electronic equipment; the earphone comprises a first earphone and a second earphone.
The electronic equipment comprises electronic equipment and a display device, wherein the initial display direction of the electronic equipment is the current display direction of the electronic equipment, and the initial display direction is used for determining the posture information of the electronic equipment; the coordinate system and the display direction mentioned in the embodiment of the application are based on the sensor coordinate system; specifically, the sensor coordinate system uses a standard three-axis coordinate system to represent data values; as a first example, referring to fig. 2, taking the sensor coordinate system of the electronic device as an example, when the electronic device is in the default screen orientation, the X-axis extends horizontally to the right, the Y-axis extends vertically upward, and the Z-axis extends outward perpendicular to the screen, such that the coordinates behind the screen will have a negative Z value; also, when the screen orientation of the electronic device is changed, the coordinate axes are not converted. In fig. 2, the current display direction of the electronic device is a positive Y-axis direction, and the display directions include a negative Y-axis direction, a positive X-axis direction, and a negative X-axis direction. The display direction of the electronic equipment is the current positive direction and has uniqueness, the positive direction of the electronic equipment can be determined according to the initial display direction of the electronic equipment,
the earphone which is connected with the electronic device in a communication way can be connected with the electronic device in a wired or wireless way.
Optionally, a sensor is arranged inside the earphone, and the posture information of the earphone is determined according to a sensor coordinate system of the sensor arranged inside the earphone; as a second example, referring to fig. 3, fig. 3 is a schematic diagram of a user wearing a headset, where L denotes a left headset and R denotes a right headset, where coordinate axes (X, Y and Z axes) on the left headset L denote a sensor coordinate system of the headset and coordinate axes on the left headset L denote the sensor coordinate system of the headset for determining a headset posture, as shown in fig. 4.
The first earphone and the second earphone are respectively a left earphone and a right earphone; the first earphone can be a left earphone, and the second earphone can be a right earphone; or the first earphone can be a right earphone and the second earphone can be a left earphone; for convenience of description, in the embodiment of the present application, the first earphone is exemplified as a left earphone, and the second earphone is exemplified as a right earphone.
And step 102, determining a target earphone in the first earphone and the second earphone according to the posture information.
Determining attitude information according to the sensor data, wherein the attitude information comprises coordinate data of the earphone in a sensor coordinate axis and whether the earphone is worn correctly; for example, if the L-headphone is worn on the left ear of the user and the R-headphone is worn on the right ear of the user, it indicates that the wearing is correct; otherwise, the wearing is incorrect.
In the lateral position of the user, the target earphone can be an earphone with a relatively upward position, namely the earphone with positive Y-axis data; for example, in fig. 3, the target earphone is an L earphone; the target earphone can also be an earphone with a position facing downwards, namely the earphone with the Y-axis data being a negative value; for convenience of description, in the embodiment of the present application, the target earphone is taken as an example of the earphone located relatively upward.
Step 103, determining a target display direction according to the initial display direction and the target earphone, and adjusting the display direction of the display screen of the electronic device to the target display direction.
After the target earphone and the initial display direction are determined, the target display direction is further determined, so that the posture information of the user is determined according to the posture information of the earphone, and the display direction of the electronic equipment is further adjusted. For example, taking the posture information of the headset in fig. 3 as an example, it is determined that the posture information of the user is a lateral lying posture with the left ear facing upward, at this time, if the user holds the electronic device and the posture of the electronic device is as shown in fig. 2, in the prior art, according to the sensor data, the display direction of the electronic device is adjusted to be a positive Y-axis direction at this time; for the user in the lateral position, the display direction is obviously unreasonable; in the embodiment of the present application, the initial display direction is a positive Y-axis direction, the posture information of the headset determines that the target headset is a left headset, and at this time, the display direction of the adjustable electronic device is a positive X-axis direction as shown in fig. 5, so as to obtain a correct display direction. Therefore, the posture information of the electronic equipment is determined according to the initial display direction, the user posture information is determined according to the earphone posture information, the user posture information comprises the side-lying posture, and the final target display direction is determined by combining the posture information of the electronic equipment and the user posture information.
In the embodiment of the application, the method comprises the steps of obtaining an initial display direction of a display screen of electronic equipment and obtaining posture information of an earphone in communication connection with the electronic equipment; determining a target earphone in the first earphone and the second earphone according to the posture information; and determining a target display direction according to the initial display direction and the target earphone, adjusting the display direction of a display screen of the electronic equipment to the target display direction, determining posture information of the electronic equipment according to the initial display direction, determining user posture information according to the earphone posture information, and determining and adjusting the target display direction by combining the posture information of the electronic equipment and the user posture information, so that the problem that the screen automatic rotation function of the electronic equipment is inaccurate when the user lies on the side is solved.
In an optional embodiment, the pose information comprises sensor data measured by sensors of the headset;
the determining a target earphone of the first earphone and the second earphone according to the posture information includes:
determining a target earphone in the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data; the horizontal coordinate axis is a coordinate axis in a sensor coordinate system, and is data of an X coordinate axis by combining the graph of FIG. 3 and the graph of FIG. 4; take the target earphone as an example that the relative position is upward, the first earphone is a left earphone, the second earphone is a right earphone, and the left and right direction wearing is correct; referring to fig. 3, if the coordinate data of the horizontal coordinate axis of the first headphone in fig. 3 is a positive value, the target headphone is the first headphone, and the user has a posture in which the left ear is lying on the upper side; as a third example, referring to fig. 6, when the coordinate data of the horizontal axis of the second headphone in fig. 6 is a positive value, the target headphone is the second headphone, and the user posture is that the right ear is lying on the upper side and the side.
In an optional embodiment, the determining a target earphone of the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data comprises:
determining whether the wearing direction of the first earphone and the second earphone is a target direction; the target direction is right wearing left and right, for example, the first earphone is a left earphone, and the second earphone is a right earphone; the first earphone is worn on the left ear of the user, and the second earphone is worn on the right ear of the user, so that the wearing direction is the target direction; if the left earphone and the right earphone are in a reverse band, for example, the left earphone is worn on the right ear, and the right earphone is worn on the left ear, the wearing direction is not the target direction; optionally, in the process of determining whether the wearing direction of the first earphone and the second earphone is the target direction, the wearing direction may be measured by a sensor built in the earphone, for example, a sensor is disposed at a position of the left earphone corresponding to the ear canal for detecting the ear canal; if the ear canal is detected, the wearing is correct.
If so, the earphone with the coordinate data of the horizontal coordinate axis being positive is taken as a target earphone; referring to fig. 6, in the posture in which the right ear of the user lies on the upper side and the wearing direction is the target direction, the coordinate data of the horizontal coordinate axis of the right earphone R is a positive number;
otherwise, the earphone whose coordinate data of the horizontal coordinate axis is negative is the target earphone, as a fourth example, see fig. 7, which is also the posture that the right ear of the user lies on the upper side, if the wearing direction is not the target direction, that is, the left and right earphones are reversed, the right earphone R is worn on the left ear, and the coordinate data of the horizontal coordinate axis of the right earphone R is negative.
In an optional embodiment, the determining a target display direction according to the initial display direction and the target headphone includes:
and determining a target display direction corresponding to the initial display direction and the target earphone according to a preset corresponding relation.
Wherein, the corresponding relation is the corresponding relation between the initial display direction and the target earphone; in particular, the amount of the solvent to be used,
as a fifth example, in combination with table 1 below, the first direction is a positive Y-axis direction, the second direction is a positive X-axis direction, the third direction is a negative Y-axis direction, and the fourth direction is a negative X-axis direction are taken as examples;
table 1:
Figure BDA0002915152220000081
the correspondence relationship includes the following cases one to four:
in case one, if the target earphone is the first earphone, the target display direction is a second direction when the initial display direction is a first direction; and if the target earphone is the second earphone, the target display direction is a fourth direction.
If the initial display direction is the positive direction of the Y axis, the electronic equipment is placed upwards along the length direction (namely the direction of the long edge), and if the target earphone is the first earphone and the user is in a posture that the left ear is laid on the upper side, the target display direction is adjusted to be the second direction, namely the positive direction of the X axis; if the user is in the posture that the right ear is facing upwards and lying on the side at the moment, the target display direction is adjusted to be the fourth direction, namely the X-axis negative direction.
In case two, if the target earphone is the first earphone, the target display direction is a third direction when the initial display direction is a second direction; and if the target earphone is the second earphone, the target display direction is the first direction.
If the initial display direction is the positive direction of the X axis, the electronic equipment is placed upwards along the width direction (namely the direction of the short edge), and if the target earphone is the first earphone and the user is in a posture that the left ear is laid on the upper side, the target display direction is adjusted to be the third direction, namely the negative direction of the Y axis; if the user is in the posture that the right ear is facing upwards and lying on the side at the moment, the target display direction is adjusted to be the first direction, namely the positive direction of the Y axis at the moment.
In a third case, when the initial display direction is the third direction, if the target earphone is the first earphone, the target display direction is the fourth direction; and if the target earphone is the second earphone, the target display direction is the second direction.
If the initial display direction is the positive direction of the Y axis, the electronic equipment is indicated to be placed upwards along the negative direction of the length direction, and at the moment, if the target earphone is the first earphone and the user is in a posture that the left ear is laid upwards and on the side, the target display direction is adjusted to be the fourth direction; if the user is in the posture that the right ear is facing upwards and lying on the side at the moment, the target display direction is adjusted to be the second direction at the moment.
In case that the initial display direction is the fourth direction, if the target earphone is the first earphone, the target display direction is the first direction; and if the target earphone is the second earphone, the target display direction is the third direction.
If the initial display direction is the X-axis negative direction, the electronic equipment is indicated to be placed upwards along the width direction in the negative direction, and at the moment, if the target earphone is the first earphone and the user is in a posture that the left ear is laid upwards and on the side, the target display direction is adjusted to be the first direction; if the user is in the posture that the right ear is facing upwards and lying on the side at the moment, the target display direction is adjusted to be the third direction at the moment.
In the embodiment of the application, the method comprises the steps of obtaining an initial display direction of a display screen of electronic equipment and obtaining posture information of an earphone in communication connection with the electronic equipment; determining a target earphone in the first earphone and the second earphone according to the posture information; and determining a target display direction according to the initial display direction and the target earphone, adjusting the display direction of a display screen of the electronic equipment to the target display direction, determining posture information of the electronic equipment according to the initial display direction, determining user posture information according to the earphone posture information, and determining and adjusting the target display direction by combining the posture information of the electronic equipment and the user posture information, so that the problem that the screen automatic rotation function of the electronic equipment is inaccurate when the user lies on the side is solved.
Having described the display direction adjustment method according to the embodiment of the present application, a display direction adjustment apparatus according to the embodiment of the present application will be described with reference to the accompanying drawings.
It should be noted that, in the display direction adjusting method provided in the embodiment of the present application, the execution main body may be a display direction adjusting device, or a control module in the display direction adjusting device for executing the display direction adjusting method. In the embodiment of the present application, a display direction adjusting method executed by a display direction adjusting apparatus is taken as an example to describe the display direction adjusting method provided in the embodiment of the present application.
Referring to fig. 8, an embodiment of the present application further provides a display direction adjustment apparatus 800, including:
an obtaining module 801, configured to obtain an initial display direction of a display screen of an electronic device and obtain gesture information of an earphone communicatively connected to the electronic device; the earphone comprises a first earphone and a second earphone.
The electronic equipment comprises electronic equipment and a display device, wherein the initial display direction of the electronic equipment is the current display direction of the electronic equipment, and the initial display direction is used for determining the posture information of the electronic equipment; the coordinate system and the display direction mentioned in the embodiment of the application are based on the sensor coordinate system; specifically, the sensor coordinate system uses a standard three-axis coordinate system to represent data values; as a first example, referring to fig. 2, taking the sensor coordinate system of the electronic device as an example, when the electronic device is in the default screen orientation, the X-axis extends horizontally to the right, the Y-axis extends vertically upward, and the Z-axis extends outward perpendicular to the screen, such that the coordinates behind the screen will have a negative Z value; also, when the screen orientation of the electronic device is changed, the coordinate axes are not converted. In fig. 2, the current display direction of the electronic device is a positive Y-axis direction, and the display directions include a negative Y-axis direction, a positive X-axis direction, and a negative X-axis direction. The display direction of the electronic equipment is the current positive direction and has uniqueness, the positive direction of the electronic equipment can be determined according to the initial display direction of the electronic equipment,
the earphone which is connected with the electronic device in a communication way can be connected with the electronic device in a wired or wireless way.
Optionally, a sensor is arranged inside the earphone, and the posture information of the earphone is determined according to a sensor coordinate system of the sensor arranged inside the earphone; as a second example, referring to fig. 3, fig. 3 is a schematic diagram of a user wearing a headset, where L denotes a left headset and R denotes a right headset, where coordinate axes (X, Y and Z axes) on the left headset L denote a sensor coordinate system of the headset and coordinate axes on the left headset L denote the sensor coordinate system of the headset for determining a headset posture, as shown in fig. 4.
The first earphone and the second earphone are respectively a left earphone and a right earphone; the first earphone can be a left earphone, and the second earphone can be a right earphone; or the first earphone can be a right earphone and the second earphone can be a left earphone; for convenience of description, in the embodiment of the present application, the first earphone is exemplified as a left earphone, and the second earphone is exemplified as a right earphone.
A determining module 802, configured to determine a target earphone of the first earphone and the second earphone according to the posture information.
Determining attitude information according to the sensor data, wherein the attitude information comprises coordinate data of the earphone in a sensor coordinate axis and whether the earphone is worn correctly; for example, if the L-headphone is worn on the left ear of the user and the R-headphone is worn on the right ear of the user, it indicates that the wearing is correct; otherwise, the wearing is incorrect.
In the lateral position of the user, the target earphone can be an earphone with a relatively upward position, namely the earphone with positive Y-axis data; for example, in fig. 3, the target earphone is an L earphone; the target earphone can also be an earphone with a position facing downwards, namely the earphone with the Y-axis data being a negative value; for convenience of description, in the embodiment of the present application, the target earphone is taken as an example of the earphone located relatively upward.
An adjusting module 803, configured to determine a target display direction according to the initial display direction and the target earphone, and adjust the display direction of the display screen of the electronic device to the target display direction.
After the target earphone and the initial display direction are determined, the target display direction is further determined, so that the posture information of the user is determined according to the posture information of the earphone, and the display direction of the electronic equipment is further adjusted. For example, taking the posture information of the headset in fig. 3 as an example, it is determined that the posture information of the user is a lateral lying posture with the left ear facing upward, at this time, if the user holds the electronic device and the posture of the electronic device is as shown in fig. 2, in the prior art, according to the sensor data, the display direction of the electronic device is adjusted to be a positive Y-axis direction at this time; for the user in the lateral position, the display direction is obviously unreasonable; in the embodiment of the present application, the initial display direction is a positive Y-axis direction, the posture information of the headset determines that the target headset is a left headset, and at this time, the display direction of the adjustable electronic device is a positive X-axis direction as shown in fig. 5, so as to obtain a correct display direction. Therefore, the posture information of the electronic equipment is determined according to the initial display direction, the user posture information is determined according to the earphone posture information, the user posture information comprises the side-lying posture, and the final target display direction is determined by combining the posture information of the electronic equipment and the user posture information.
Optionally, in this embodiment of the present application, the posture information includes sensor data measured by a sensor of the headset;
the determining module 802 includes:
the first determining submodule is used for determining a target earphone in the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data; the horizontal coordinate axis is a coordinate axis in a sensor coordinate system.
Optionally, in an embodiment of the present application, the first determining sub-module is configured to:
determining whether the wearing direction of the first earphone and the second earphone is a target direction;
if so, the earphone with the coordinate data of the horizontal coordinate axis being positive is taken as a target earphone;
otherwise, the earphone with the negative coordinate data of the horizontal coordinate axis is the target earphone.
Optionally, in this embodiment of the present application, the adjusting module 803 includes:
and the second determining submodule is used for determining the initial display direction and the target display direction corresponding to the target earphone according to the preset corresponding relation.
Optionally, in the embodiment of the present application, in the correspondence relationship,
under the condition that the initial display direction is a first direction, if the target earphone is the first earphone, the target display direction is a second direction; if the target earphone is the second earphone, the target display direction is a fourth direction;
under the condition that the initial display direction is a second direction, if the target earphone is the first earphone, the target display direction is a third direction; if the target earphone is the second earphone, the target display direction is the first direction;
under the condition that the initial display direction is the third direction, if the target earphone is the first earphone, the target display direction is the fourth direction; if the target earphone is the second earphone, the target display direction is the second direction;
under the condition that the initial display direction is the fourth direction, if the target earphone is the first earphone, the target display direction is the first direction; and if the target earphone is the second earphone, the target display direction is the third direction.
In the embodiment of the present application, an obtaining module 801 obtains an initial display direction of a display screen of an electronic device and obtains posture information of an earphone in communication connection with the electronic device; the determining module 802 determines a target earphone of the first earphone and the second earphone according to the posture information; the adjusting module 803 determines a target display direction according to the initial display direction and the target earphone, adjusts the display direction of the display screen of the electronic device to the target display direction, determines the posture information of the electronic device according to the initial display direction, determines the posture information of the user according to the earphone posture information, determines the target display direction and adjusts the target display direction by combining the posture information of the electronic device and the posture information of the user, and solves the problem that the screen automatic rotating function of the electronic device is inaccurate when the user is in a lateral lying state.
The display direction adjusting 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 direction adjusting device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present application are not limited specifically.
The display direction adjusting device provided in the embodiment of the present application can implement each process implemented by the display direction adjusting device in the method embodiments of fig. 1 to fig. 7, and is not described herein again to avoid repetition.
Optionally, as shown in fig. 9, an electronic device is further provided in this embodiment of the present application, and includes a processor 910, a memory 909, and a program or an instruction that is stored in the memory 909 and is executable on the processor 910, and when the program or the instruction is executed by the processor 910, the processes of the foregoing offline caching method embodiment are implemented, and the same technical effect can be achieved, and details are not repeated here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 9 is a hardware configuration diagram of an electronic device 900 implementing various embodiments of the present application;
the electronic device 900 includes, but is not limited to: a radio frequency unit 901, a network module 902, an audio output unit 903, an input unit 904, a sensor 905, a display unit 906, a user input unit 907, an interface unit 908, a memory 909, a processor 910, and a power supply 911.
Those skilled in the art will appreciate that the electronic device 900 may further include a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 910 through a power management system, so as to manage charging, discharging, and power consumption management functions through the power management system. The electronic device structure shown in fig. 9 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 not repeated here.
The processor 910 is configured to obtain an initial display direction of a display screen of an electronic device and obtain posture information of an earphone communicatively connected to the electronic device; the earphones comprise a first earphone and a second earphone;
determining a target earphone in the first earphone and the second earphone according to the posture information;
a display unit 906, configured to determine a target display direction according to the initial display direction and the target earphone, and adjust the display direction of the display screen of the electronic device to the target display direction.
Optionally, the gesture information comprises sensor data measured by sensors of the headset;
a processor 910 configured to:
determining a target earphone in the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data; the horizontal coordinate axis is a coordinate axis in a sensor coordinate system.
Optionally, the processor 910 is configured to:
determining whether the wearing direction of the first earphone and the second earphone is a target direction;
if so, the earphone with the coordinate data of the horizontal coordinate axis being positive is taken as a target earphone;
otherwise, the earphone with the negative coordinate data of the horizontal coordinate axis is the target earphone.
Optionally, the processor 910 is configured to:
and determining a target display direction corresponding to the initial display direction and the target earphone according to a preset corresponding relation.
Optionally, in the correspondence relationship,
under the condition that the initial display direction is a first direction, if the target earphone is the first earphone, the target display direction is a second direction; if the target earphone is the second earphone, the target display direction is a fourth direction;
under the condition that the initial display direction is a second direction, if the target earphone is the first earphone, the target display direction is a third direction; if the target earphone is the second earphone, the target display direction is the first direction;
under the condition that the initial display direction is the third direction, if the target earphone is the first earphone, the target display direction is the fourth direction; if the target earphone is the second earphone, the target display direction is the second direction;
under the condition that the initial display direction is the fourth direction, if the target earphone is the first earphone, the target display direction is the first direction; and if the target earphone is the second earphone, the target display direction is the third direction.
In the embodiment of the application, an initial display direction of a display screen of electronic equipment is acquired, and attitude information of an earphone in communication connection with the electronic equipment is acquired; determining a target earphone in the first earphone and the second earphone according to the posture information; and determining a target display direction according to the initial display direction and the target earphone, adjusting the display direction of a display screen of the electronic equipment to the target display direction, determining posture information of the electronic equipment according to the initial display direction, determining user posture information according to the earphone posture information, and determining and adjusting the target display direction by combining the posture information of the electronic equipment and the user posture information, so that the problem that the screen automatic rotation function of the electronic equipment is inaccurate when the user lies on the side is solved.
It should be understood that, in the embodiment of the present application, the input Unit 904 may include a Graphics Processing Unit (GPU) 9041 and a microphone 9042, and the Graphics Processing Unit 9041 processes image data of a still picture or a video obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 906 may include a display panel 9061, and the display panel 9061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 907 includes a touch panel 9071 and other input devices 9072. A touch panel 9071 also referred to as a touch screen. The touch panel 9071 may include two parts, a touch detection device and a touch controller. Other input devices 9072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. Memory 909 can be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 910 may integrate an application processor, which primarily handles operating systems, user interfaces, applications, etc., and a modem processor, which primarily handles wireless communications. It is to be appreciated that the modem processor described above may not be integrated into processor 910.
The embodiments of the present application further provide 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 each process of the above-mentioned offline caching 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 run a program or an instruction to implement each process of the above-mentioned offline caching method embodiment, and can achieve the same technical effect, and is not described here again 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.
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. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
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 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 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 (11)

1. A method for adjusting a display direction, the method comprising:
acquiring an initial display direction of a display screen of electronic equipment and acquiring posture information of an earphone in communication connection with the electronic equipment; the earphones comprise a first earphone and a second earphone;
determining a target earphone in the first earphone and the second earphone according to the posture information;
and determining a target display direction according to the initial display direction and the target earphone, and adjusting the display direction of a display screen of the electronic equipment to the target display direction.
2. The display direction adjustment method according to claim 1, wherein the posture information includes sensor data measured by a sensor of the headphone;
the determining a target earphone of the first earphone and the second earphone according to the posture information includes:
determining a target earphone in the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data; the horizontal coordinate axis is a coordinate axis in a sensor coordinate system.
3. The method of claim 2, wherein the determining a target one of the first and second earphones according to coordinate data of a horizontal coordinate axis in the sensor data comprises:
determining whether the wearing direction of the first earphone and the second earphone is a target direction;
if so, the earphone with the coordinate data of the horizontal coordinate axis being positive is taken as a target earphone;
otherwise, the earphone with the negative coordinate data of the horizontal coordinate axis is the target earphone.
4. The method according to claim 1, wherein the determining a target display direction according to the initial display direction and the target headphone comprises:
and determining a target display direction corresponding to the initial display direction and the target earphone according to a preset corresponding relation.
5. The display direction adjustment method according to claim 4, wherein, in the correspondence relationship,
under the condition that the initial display direction is a first direction, if the target earphone is the first earphone, the target display direction is a second direction; if the target earphone is the second earphone, the target display direction is a fourth direction;
under the condition that the initial display direction is a second direction, if the target earphone is the first earphone, the target display direction is a third direction; if the target earphone is the second earphone, the target display direction is the first direction;
under the condition that the initial display direction is the third direction, if the target earphone is the first earphone, the target display direction is the fourth direction; if the target earphone is the second earphone, the target display direction is the second direction;
under the condition that the initial display direction is the fourth direction, if the target earphone is the first earphone, the target display direction is the first direction; and if the target earphone is the second earphone, the target display direction is the third direction.
6. A display direction adjustment apparatus, characterized in that the apparatus comprises:
the system comprises an acquisition module, a display module and a display module, wherein the acquisition module is used for acquiring an initial display direction of a display screen of the electronic equipment and acquiring the posture information of an earphone in communication connection with the electronic equipment; the earphones comprise a first earphone and a second earphone;
a determining module, configured to determine a target earphone of the first earphone and the second earphone according to the posture information;
and the adjusting module is used for determining a target display direction according to the initial display direction and the target earphone and adjusting the display direction of the display screen of the electronic equipment to the target display direction.
7. The display direction adjustment apparatus according to claim 6, wherein the posture information includes sensor data measured by a sensor of the headphones;
the determining module comprises:
the first determining submodule is used for determining a target earphone in the first earphone and the second earphone according to coordinate data of a horizontal coordinate axis in the sensor data; the horizontal coordinate axis is a coordinate axis in a sensor coordinate system.
8. The display direction adjustment apparatus according to claim 7, wherein the first determination sub-module is configured to:
determining whether the wearing direction of the first earphone and the second earphone is a target direction;
if so, the earphone with the coordinate data of the horizontal coordinate axis being positive is taken as a target earphone;
otherwise, the earphone with the negative coordinate data of the horizontal coordinate axis is the target earphone.
9. The display direction adjustment apparatus according to claim 6, wherein the adjustment module comprises:
and the second determining submodule is used for determining the initial display direction and the target display direction corresponding to the target earphone according to the preset corresponding relation.
10. The display direction adjustment apparatus according to claim 9, wherein, in the correspondence relationship,
under the condition that the initial display direction is a first direction, if the target earphone is the first earphone, the target display direction is a second direction; if the target earphone is the second earphone, the target display direction is a fourth direction;
under the condition that the initial display direction is a second direction, if the target earphone is the first earphone, the target display direction is a third direction; if the target earphone is the second earphone, the target display direction is the first direction;
under the condition that the initial display direction is the third direction, if the target earphone is the first earphone, the target display direction is the fourth direction; if the target earphone is the second earphone, the target display direction is the second direction;
under the condition that the initial display direction is the fourth direction, if the target earphone is the first earphone, the target display direction is the first direction; and if the target earphone is the second earphone, the target display direction is the third direction.
11. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the display orientation adjustment method according to any one of claims 1 to 5.
CN202110099385.1A 2021-01-25 2021-01-25 Display direction adjusting method and device Pending CN112764864A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110099385.1A CN112764864A (en) 2021-01-25 2021-01-25 Display direction adjusting method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110099385.1A CN112764864A (en) 2021-01-25 2021-01-25 Display direction adjusting method and device

Publications (1)

Publication Number Publication Date
CN112764864A true CN112764864A (en) 2021-05-07

Family

ID=75707298

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110099385.1A Pending CN112764864A (en) 2021-01-25 2021-01-25 Display direction adjusting method and device

Country Status (1)

Country Link
CN (1) CN112764864A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240555A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Display picture control method and apparatus, electronic device and readable storage medium

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110298829A1 (en) * 2010-06-04 2011-12-08 Sony Computer Entertainment Inc. Selecting View Orientation in Portable Device via Image Analysis
US20140062842A1 (en) * 2012-08-28 2014-03-06 Sony Mobile Communications, Inc. Display device
CN105760130A (en) * 2016-03-10 2016-07-13 联想(北京)有限公司 Display processing method and electronic equipment
CN106125933A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The method of a kind of display interface rotation and mobile terminal
CN106547350A (en) * 2016-10-10 2017-03-29 上海斐讯数据通信技术有限公司 A kind of system and method for intelligent terminal horizontal/vertical screen switching
CN106982403A (en) * 2017-05-25 2017-07-25 深圳市金立通信设备有限公司 Detection method and terminal that a kind of earphone is worn
CN107977079A (en) * 2017-11-28 2018-05-01 维沃移动通信有限公司 A kind of screen rotation method and mobile terminal
CN110602588A (en) * 2019-09-26 2019-12-20 上海摩勤智能技术有限公司 Mistaken touch prevention method and touch earphone
US20200264684A1 (en) * 2019-02-19 2020-08-20 Samsung Electronics Co., Ltd. Electronic device and method for controlling operation of display in same
CN111766548A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Information prompting method and device, electronic equipment and readable storage medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110298829A1 (en) * 2010-06-04 2011-12-08 Sony Computer Entertainment Inc. Selecting View Orientation in Portable Device via Image Analysis
US20140062842A1 (en) * 2012-08-28 2014-03-06 Sony Mobile Communications, Inc. Display device
CN105760130A (en) * 2016-03-10 2016-07-13 联想(北京)有限公司 Display processing method and electronic equipment
CN106125933A (en) * 2016-06-28 2016-11-16 维沃移动通信有限公司 The method of a kind of display interface rotation and mobile terminal
CN106547350A (en) * 2016-10-10 2017-03-29 上海斐讯数据通信技术有限公司 A kind of system and method for intelligent terminal horizontal/vertical screen switching
CN106982403A (en) * 2017-05-25 2017-07-25 深圳市金立通信设备有限公司 Detection method and terminal that a kind of earphone is worn
CN107977079A (en) * 2017-11-28 2018-05-01 维沃移动通信有限公司 A kind of screen rotation method and mobile terminal
US20200264684A1 (en) * 2019-02-19 2020-08-20 Samsung Electronics Co., Ltd. Electronic device and method for controlling operation of display in same
CN110602588A (en) * 2019-09-26 2019-12-20 上海摩勤智能技术有限公司 Mistaken touch prevention method and touch earphone
CN111766548A (en) * 2020-05-29 2020-10-13 维沃移动通信有限公司 Information prompting method and device, electronic equipment and readable storage medium

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
杨伟等: "基于Android移动设备的传感器技术应用研究", 《电子世界》 *
杨伟等: "基于Android移动设备的传感器技术应用研究", 《电子世界》, no. 11, 15 June 2013 (2013-06-15), pages 14 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023240555A1 (en) * 2022-06-16 2023-12-21 北京小米移动软件有限公司 Display picture control method and apparatus, electronic device and readable storage medium

Similar Documents

Publication Publication Date Title
CN109712224B (en) Virtual scene rendering method and device and intelligent device
CN109308205B (en) Display adaptation method, device, equipment and storage medium of application program
CN106445339B (en) A kind of method and apparatus that double screen terminal shows stereo-picture
CN109558837B (en) Face key point detection method, device and storage medium
CN109862412B (en) Method and device for video co-shooting and storage medium
WO2022134632A1 (en) Work processing method and apparatus
CN109348019B (en) Display method and device
CN112230908B (en) Method and device for aligning components, electronic equipment and storage medium
CN112581358B (en) Training method of image processing model, image processing method and device
CN111754386B (en) Image area shielding method, device, equipment and storage medium
CN106445340A (en) Method and device for displaying stereoscopic image by double-screen terminal
WO2021164760A1 (en) Parameter adjustment method and electronic device
CN110248197B (en) Voice enhancement method and device
CN116871982A (en) Device and method for detecting spindle of numerical control machine tool and terminal equipment
US10908684B2 (en) 3D display method and user terminal
CN109618055B (en) Position sharing method and mobile terminal
CN113160031B (en) Image processing method, device, electronic equipment and storage medium
CN112612405B (en) Window display method, device, equipment and computer readable storage medium
CN107967086B (en) Icon arrangement method and device for mobile terminal and mobile terminal
CN112764864A (en) Display direction adjusting method and device
CN108494946B (en) Method and device for correcting electronic compass in mobile terminal
CN113472943B (en) Audio processing method, device, equipment and storage medium
CN112184802A (en) Calibration frame adjusting method and device and storage medium
CN113592874B (en) Image display method, device and computer equipment
CN112230828B (en) Component layout method and device and storage medium

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

Application publication date: 20210507