WO2014113951A1 - 屏幕显示模式确定方法及终端设备 - Google Patents

屏幕显示模式确定方法及终端设备 Download PDF

Info

Publication number
WO2014113951A1
WO2014113951A1 PCT/CN2013/070935 CN2013070935W WO2014113951A1 WO 2014113951 A1 WO2014113951 A1 WO 2014113951A1 CN 2013070935 W CN2013070935 W CN 2013070935W WO 2014113951 A1 WO2014113951 A1 WO 2014113951A1
Authority
WO
WIPO (PCT)
Prior art keywords
screen
display mode
viewer
avatar information
positive direction
Prior art date
Application number
PCT/CN2013/070935
Other languages
English (en)
French (fr)
Inventor
陈磊
Original Assignee
华为终端有限公司
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 华为终端有限公司 filed Critical 华为终端有限公司
Priority to PCT/CN2013/070935 priority Critical patent/WO2014113951A1/zh
Priority to EP13873069.2A priority patent/EP2950180B1/en
Priority to CN201380000397.8A priority patent/CN103718148B/zh
Publication of WO2014113951A1 publication Critical patent/WO2014113951A1/zh
Priority to US14/798,629 priority patent/US9589325B2/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F1/00Details not covered by groups G06F3/00 - G06F13/00 and G06F21/00
    • G06F1/16Constructional details or arrangements
    • G06F1/1613Constructional details or arrangements for portable computers
    • G06F1/1633Constructional details or arrangements of portable computers not specific to the type of enclosures covered by groups G06F1/1615 - G06F1/1626
    • G06F1/1684Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675
    • G06F1/1686Constructional details or arrangements related to integrated I/O peripherals not covered by groups G06F1/1635 - G06F1/1675 the I/O peripheral being an integrated camera
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/012Head tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/017Gesture based interaction, e.g. based on a set of recognized hand gestures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input 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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • G06T7/73Determining position or orientation of objects or cameras using feature-based methods
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/10Image acquisition modality
    • G06T2207/10004Still image; Photographic image
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30196Human being; Person
    • G06T2207/30201Face

Definitions

  • the present invention relates to image technologies, and in particular, to a screen display mode determining method and a terminal device. Background technique
  • smartphones basically support horizontal and vertical display and switching functions.
  • the implementation of the horizontal and vertical screen switching is as follows:
  • a gravity sensing chip is disposed inside the smart phone, and the gravity sensing chip has a three-axis or six-axis form, and the current component of the gravity is obtained by determining the gravity in the respective axial directions.
  • Embodiments of the present invention provide a method for determining a screen display mode and a terminal device for improving the accuracy of determining a screen display mode, thereby improving user convenience.
  • the first aspect provides a method for determining a screen display mode, including: determining, by identifying an avatar information of each of at least two viewers, a connection between two eyes in each avatar information, according to the binoculars in each avatar information.
  • the line and the preset forward determination rule determine the positive direction of each line; when the positive direction of all the lines of the eyes is the same, calculate the positive direction of each line and the positive direction of the line An angle is averaged for all angles to obtain a first angle; the reference line is determined according to a long side of the screen or a short side of the screen; determining the screen according to the first angle Display mode.
  • the forward determination The rule includes: determining a positive direction of the connection line on a right side of a connection line of the eyes in the avatar information in the avatar information; or, in a position of a nose or a mouth in the avatar information The left side of the line connecting the eyes in the avatar information determines the positive direction of the line.
  • the included angle includes: a horizontal coordinate and a longitudinal coordinate respectively corresponding to the binocular positions in each avatar information, wherein the direction of the horizontal coordinate axis where the lateral coordinate is located refers to a direction perpendicular to a positive direction of the reference line, The direction of the longitudinal coordinate axis where the longitudinal coordinate is located is the positive direction of the reference line; the absolute value of the difference between the two lateral coordinates and the absolute value of the difference between the two longitudinal coordinates is inverse tangent, and the clip is obtained angle.
  • the determining the display mode of the screen according to the first angle includes: Setting the first angle between the first degree threshold and the second degree threshold, determining that the display mode of the screen is a vertical screen forward display mode; if the first angle is at the second degree threshold Determining, between the third degree threshold, a display mode of the screen as a horizontal screen rightward display mode; if the first angle is between the third degree threshold and a fourth degree threshold, determining display of the screen The mode is a vertical screen reverse display mode; if the first angle is between the fourth degree threshold and the first degree threshold, determining that the display mode of the screen is a horizontal screen leftward display mode.
  • the method further includes: if the display mode of the screen is a vertical screen forward display mode or a vertical screen reverse display mode, using a 2D display mode or a 3D display mode;
  • the display mode of the screen is the horizontal right display mode or the horizontal left display mode
  • 2 use the 2D display mode.
  • the second aspect provides a method for determining a screen display mode, including: determining, by identifying an avatar information of each of two viewers, a connection of two eyes in each avatar information, according to the binoculars in each avatar information.
  • the connection and the preset positive determination rule determine the positive direction of each connection; if the two lines are opposite in the positive direction, mutually independent images are displayed to the two viewers.
  • the displaying the mutually independent images to the two viewers comprises: displaying the two viewers in a 3D display manner or a 2D display manner Independent image.
  • the method further includes: receiving a viewer of the two viewers that is operating on the screen a first operation instruction issued; processing an image to be operated by a viewer operating on the screen among the two mutually independent images according to the first operation instruction.
  • the two mutually independent images are on the screen according to the first operation instruction
  • the method includes: determining, according to an operation direction of the viewer operating on the screen of the two viewers, from the two mutually independent images on the screen An image to be operated by the operated viewer; or receiving a switching instruction issued by the viewer operating on the screen by switching a button, determining from the two mutually independent images that the screen is being performed according to the switching instruction The image of the operator of the operation to operate.
  • the operation direction of the viewer that is operating on the screen in the two viewers is Determining, from the two mutually independent images, an image to be operated by a viewer operating on the screen comprises: acquiring, by a camera, an operation direction of a viewer operating on the screen among the two viewers; Alternatively, the operation direction of the viewer who is operating on the screen of the two viewers is acquired, wherein the screen is a touch screen supporting a floating touch function.
  • displaying the mutually independent images to the two viewers in a 3D display manner includes: displaying on the screen Two independent windows, respectively displaying the two mutually independent images in the two independent windows in a 3D display manner; the screen mode determining method further includes: receiving the two viewers respectively Manipulating a second operation instruction of the image corresponding to the two independent images, and operating the corresponding image according to the second operation instruction, wherein the second operation instruction is that the viewer passes the screen The corresponding window is sent out.
  • the third aspect provides a method for determining a screen display mode, including: identifying a avatar information of a viewer, determining a connection line of the two eyes in the avatar information, according to the connection and preset of the two eyes a forward determination rule, determining a positive direction of the connection; calculating an angle between a positive direction of the connection and a positive direction of the reference line, the reference line being according to a long side of the screen or the The short side of the screen is determined; the display mode of the screen is determined according to the included angle.
  • a fourth aspect provides a terminal device, including: a first determining module, configured to: determine, by identifying an avatar information of each of at least two viewers, a connection of two eyes in each avatar information, according to each The connection between the eyes of the avatar information and the preset forward determination rule determine the positive direction of each connection; the calculation module is configured to calculate the positive direction of each connection when the positive directions of the connections of all the eyes are the same The angle between the positive directions of the reference lines, averaging all the included angles to obtain a first angle; the reference line is determined according to the long side of the screen or the short side of the screen; the second determining module And determining a display mode of the screen according to the first angle.
  • the forward determining rule includes: a location of a nose or a mouth in the avatar information is located at a right of a line connecting the eyes in the avatar information The side determines the positive direction of the connection; or, determines the positive direction of the connection by the left side of the line connecting the eyes of the avatar information in the avatar information.
  • the calculating module is configured to calculate a positive direction and a reference line of each connection
  • the angle between the positive directions includes: the calculating module is configured to determine a horizontal coordinate and a vertical coordinate respectively corresponding to the binocular positions in each avatar information; an absolute value of the difference between the two lateral coordinates and the two The absolute value of the difference between the longitudinal coordinates is inverse tangent, and the angle is obtained, wherein the direction of the lateral coordinate axis where the lateral coordinate is located refers to a direction perpendicular to the positive direction of the reference line, where the longitudinal coordinate is located The direction of the longitudinal coordinate axis is the positive direction of the reference line.
  • the second determining module is configured to perform Determining the display mode of the screen by the first angle includes: the second determining module is configured to: in the forward determination rule, the position of the nose or the mouth in the avatar information is located in the avatar information When the right side of the connection determines the positive direction of the connection, if the first angle is between the first degree threshold and the second degree threshold, determining that the display mode of the screen is the vertical display mode If the first angle is between the second degree threshold and the third degree threshold, determining that the display mode of the screen is a horizontal right display mode, if the first angle is in the first Between the third degree threshold and the fourth degree threshold, determining that the display mode of the screen is a vertical screen reverse display mode, if The first angle is between the fourth degree threshold and the first degree threshold, and the display mode of the screen is determined to be a horizontal left display mode.
  • the second determining module is further configured to: if the display mode of the screen is a vertical screen forward display mode or a vertical screen reverse display mode, use a 2D display mode or a 3D display mode, if the screen is The display mode is the horizontal right display mode or the horizontal left display mode, and the 2D display mode is used.
  • a fifth aspect provides a terminal device, including: a memory, configured to store a program, and a processor, configured to: execute, by using, the program, by: identifying, by using an avatar information of each of the at least two viewers, Determine the connection of the two eyes in each avatar information, determine the positive direction of each connection according to the connection line of the two eyes in each avatar information and the preset forward determination rule; when the positive directions of all the connections of the two eyes are the same Calculating an angle between a positive direction of each line and a positive direction of the reference line, averaging all the angles to obtain a first angle; the reference line is according to a long side of the screen or the screen The short side is determined; determining a display mode of the screen according to the first angle.
  • the forward determining rule includes: a location of a nose or a mouth in the avatar information is located at a right of a line connecting the eyes in the avatar information The side determines the positive direction of the connection; or, determines the positive direction of the connection by the left side of the line connecting the eyes of the avatar information in the avatar information.
  • the processor is configured to calculate a positive direction of each connection and a positive direction of the reference line
  • the included angle includes: the processor is configured to determine a horizontal coordinate and a vertical coordinate respectively corresponding to the binocular positions in each avatar information; and an absolute value of a difference between the two lateral coordinates and a difference between the two longitudinal coordinates The absolute value is taken as an inverse tangent to obtain the included angle, wherein the direction of the horizontal coordinate axis where the lateral coordinate is located refers to a direction perpendicular to the positive direction of the reference line, and the longitudinal coordinate axis where the longitudinal coordinate is located The direction is the positive direction of the reference line.
  • Determining the display mode of the screen includes: the processor is configured to: in the forward determination rule, a position of a nose or a mouth in the avatar information is located on a right side of a line connecting the eyes in the avatar information Determining the positive direction of the connection, if the first angle is between the first degree threshold and the second degree threshold, determining that the display mode of the screen is a vertical screen forward display mode; An angle between the second degree gate limit and the third degree threshold, determining that the display mode of the screen is a horizontal screen rightward display mode; if the first angle is at the third degree threshold and Determining, between the four-degree threshold, a display mode of the screen as a vertical screen reverse display mode; determining the screen if the first angle is between the fourth degree threshold and the first degree threshold The display mode is the horizontal screen left display mode.
  • the processor is further configured to: if the display mode of the screen is a vertical screen forward display mode or a vertical screen reverse display mode, use a 2D display mode or a 3D display mode; if the screen is displayed The mode is the horizontal right display mode or the horizontal left display mode, and the 2D display mode is used.
  • the sixth aspect provides a terminal device, including: a first determining module, configured to determine, by identifying an avatar information of each of the two viewers, determining a connection of the two eyes in each avatar information, according to each avatar a connection between two eyes in the information and a preset forward determination rule to determine a positive direction of each connection; a display module, configured to display to the two viewers when the positive directions of the two connections are opposite Independent images.
  • the display module is specifically configured to display mutually independent images to the two viewers in a 3D display manner or a 2D display manner.
  • the terminal device further includes: a first receiving module, configured to receive the a first operation instruction issued by a viewer operating on the screen; a first processing module, configured to: according to the first operation instruction, a viewer who is operating on the screen in the two mutually independent images The image of the operation is processed.
  • the terminal device further includes: a second determining module, configured to perform, at the first processing module Before the image of the two mutually independent images being operated by the viewer operating on the screen is processed, according to the operation of the viewer who is operating on the screen among the two viewers Direction, determining an image to be operated by a viewer operating on the screen from the two mutually independent images; and/or a third determining module for pairing the two in the first processing module Before the image to be operated by the viewer operating on the screen in the mutually independent image is processed, receiving a switching instruction issued by the viewer operating on the screen by switching the button, according to the switching instruction from the two Among the mutually independent images, an image to be operated by a viewer operating on the screen is determined.
  • a second determining module configured to perform, at the first processing module Before the image of the two mutually independent images being operated by the viewer operating on the screen is processed, according to the operation of the viewer who is operating on the screen among the two viewers Direction, determining an image to be operated by a viewer operating on the screen from the two mutually
  • the terminal device further includes: a fourth determining module, configured to perform, according to the second determining module, Describe the operation direction of the viewer operating on the screen among the two viewers, and obtain the image by the camera before determining the image to be operated by the viewer operating on the screen from the two mutually independent images An operation direction of a viewer operating on the screen among two viewers; and/or a fifth determination module for operating on the screen according to the two determinations by the second determination module
  • the direction of operation of the viewer before determining an image to be operated by the viewer operating on the screen from the two mutually independent images, perceptually acquiring the viewing of the two viewers that are operating on the screen
  • the operation direction of the user wherein the screen is a touch screen supporting a floating touch function.
  • the display module is configured to display mutually independent images to the two viewers in a 3D display manner, including
  • the display module is specifically configured to display two independent windows on the screen, and display the two mutually independent images in the two independent windows in a 3D display manner;
  • the terminal device further includes a second receiving module, configured to receive a second operation instruction that is respectively sent by the two viewers to operate an image corresponding to the two independent images, where the second operation instruction is that the viewer passes
  • the second processing module is configured to operate the corresponding image according to the second operation instruction.
  • a seventh aspect provides a terminal device, including: a memory, configured to store a program; and a processor, configured to execute the program, by: identifying, by identifying, identifiographic information of each of the two viewers The connection of the two eyes in each avatar information, determining the positive direction of each connection according to the connection line of the two eyes in each avatar information and the preset forward determination rule; the display is used in the two connections When the positive directions are opposite, mutually independent images are displayed to the two viewers.
  • the display device The body is used to display mutually independent images to the two viewers in a 3D display mode or a 2D display mode.
  • the terminal device further includes: a communications interface, configured to receive the two of the two viewers a first operation instruction issued by a viewer operating on the screen; the processor is further configured to: according to the first operation instruction, perform operation on a viewer who is operating on the screen among the two mutually independent images The image is processed.
  • the processor is further configured to be on the screen in the two mutually independent images Before the image to be operated by the operated viewer is processed, determining that the screen is operating from the two mutually independent images according to the operation direction of the viewer operating on the screen among the two viewers The image that the viewer wants to operate.
  • the communication interface is further configured to receive a switch that is performed by a viewer operating on the screen by using a switch button
  • the processor is further configured to determine, from the two mutually independent images, an image to be operated by a viewer operating on the screen according to the switching instruction.
  • the processor is further configured to perform on the screen according to the two viewers The direction of operation of the viewer, before determining an image to be operated by the viewer operating on the screen from the two mutually independent images, acquiring, by the camera, viewing of the two viewers operating on the screen Or the direction of operation of the viewer who is operating on the screen of the two viewers, wherein the screen is a touch screen supporting a floating touch function.
  • the displaying, by the display, the displaying the mutually independent images to the two viewers in a 3D display manner includes: The display is specifically configured to display two independent windows on the screen, and display the two mutually independent images in the two independent windows in a 3D display manner; the communication interface is further configured to receive a second operation instruction respectively sent by the two viewers to operate an image corresponding to the two independent images, where the second operation instruction is sent by the viewer through a window corresponding to the screen The processor is further configured to perform a second operation instruction according to the second operation instruction The corresponding image is operated.
  • the eighth aspect provides a terminal device, including: a first determining module, configured to identify a avatar information of a viewer, and determine a connection between two eyes in the avatar information, according to the connection between the eyes and a preset forward direction Determining a rule, determining a positive direction of the connection; a calculation module, configured to calculate an angle between a positive direction of the connection and a positive direction of the reference line, the reference line being according to a long side of the screen or The short side of the screen is determined; the second determining module is configured to determine a display mode of the screen according to the included angle.
  • a ninth aspect provides a terminal device, including: a memory, configured to store a program; a processor, configured to: execute the program, to: identify a avatar information of a viewer, and determine a binocular in the avatar information Connecting, determining a positive direction of the connection according to the connection line of the two eyes and a preset forward determination rule; calculating an angle between a positive direction of the connection line and a positive direction of the reference line, The reference line is determined according to a long side of the screen or a short side of the screen; a display mode of the screen is determined according to the included angle.
  • the terminal device identifies the connection of the two eyes in the avatar information of each of the at least two viewers by using the image recognition technology, and calculates the connection of the eyes of the two eyes.
  • the angle between the positive direction and the positive direction of the reference line, the average of all the angles is obtained to obtain the first angle, and the display mode of the screen is determined according to the first angle, so that the screen display can be overcome by simply relying on the gravity sensing chip
  • the problem of inaccurate mode setting is beneficial to improve the accuracy of determining the display mode of the screen, thereby improving the convenience of the user.
  • FIG. 1 is a flowchart of a method for determining a screen display mode according to an embodiment of the present invention
  • FIG. 2 is a schematic structural diagram of a front camera on a terminal device according to an embodiment of the present invention
  • FIG. 3 is a schematic diagram of header information of two viewers collected by a camera according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of connection of determined eyes according to an embodiment of the present invention
  • FIG. 5 is a schematic diagram of a positive direction of a determined connection of two eyes according to an embodiment of the present invention.
  • FIG. 6 is another schematic diagram of a positive direction of a determined connection of two eyes according to an embodiment of the present invention.
  • FIG. 10 are schematic diagrams showing the angle between the positive direction of the connection of the eyes and the reference direction according to an embodiment of the present invention.
  • FIG. 14 are schematic diagrams showing display modes supported by a terminal device according to an embodiment of the present invention.
  • FIG. 15 is a schematic diagram of another display mode supported by a terminal device according to an embodiment of the present invention.
  • FIG. 18 is a flowchart of a method for determining a screen display mode according to another embodiment of the present invention
  • FIG. 19 is a flowchart of a method for determining a screen display mode according to another embodiment of the present invention.
  • FIG. 21 is a schematic structural diagram of a terminal device according to an embodiment of the present invention.
  • FIG. 22 is a schematic structural diagram of a terminal device according to another embodiment of the present disclosure.
  • FIG. 23 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 24 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 25 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 26 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • FIG. 27 is a schematic structural diagram of a terminal device according to another embodiment of the present invention.
  • the technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention.
  • the embodiments are a part of the embodiments of the invention, and not all of the embodiments. All other embodiments obtained by those skilled in the art based on the embodiments of the present invention without creative efforts are within the scope of the present invention.
  • FIG. 1 is a flowchart of a method for determining a screen display mode according to an embodiment of the present invention.
  • Figure 1 As shown, the method of this embodiment includes:
  • Step 101 Determine, by identifying the avatar information of each of the at least two viewers, the connection of the two eyes in each avatar information, and determine the rule according to the connection of the eyes in each avatar information and the preset forward direction. , determine the positive direction of each connection.
  • the executor of this embodiment may be any terminal device that can support the horizontal and vertical screen switching function, and may be, for example, a smart phone, a tablet computer, a personal digital assistant (PDA), or the like.
  • a smart phone for example, a smart phone, a tablet computer, a personal digital assistant (PDA), or the like.
  • PDA personal digital assistant
  • This embodiment is applicable not only to a terminal device supporting the 2D display mode but also to a terminal device supporting the 3D display mode.
  • the grating of the slit eye 3D is only suitable for a person who watches the screen in the vertical direction while holding the terminal device, for the horizontal
  • the screen display mode determining method provided by the embodiment is particularly suitable for the terminal device supporting the 3D display mode.
  • the terminal device can collect the viewer's head in real time through the camera of the terminal device (for example, the front camera), thereby obtaining the viewer's avatar information.
  • the avatar information of each viewer is essentially image information composed of the head of each viewer.
  • Figure 2 it is a schematic diagram of the structure of the front camera on the terminal device.
  • Figure 3 a schematic diagram of the head information of two viewers collected by the camera.
  • the terminal device can perform image recognition on each viewer's avatar information, and determine from each viewer's avatar information. Characterizing the various features of the viewer, such as determining the more prominent features of the viewer's eyes, mouth, etc., and the location of the features in the viewer's avatar information. Image recognition belongs to the prior art, and implementation will not be repeated. Also, the process of image recognition for each viewer's head image information is the same.
  • the terminal device determines the position of both eyes in each avatar information by performing image recognition on each viewer's avatar information, thereby obtaining a connection between the eyes, as shown in FIG. 4, wherein the eyes are directly viewed in the past direction and the eyes.
  • the direction of the connection is vertical; in addition, in addition to the connection of the eyes, it is necessary to determine a direction for Distinguish whether the avatar information is positive or backward and to distinguish the size of the angle that appears later, so a positive direction determination rule can be set in advance to determine the positive direction of the connection of the eyes, so as to distinguish the positive and negative of the avatar information. And the size of the angle behind.
  • the positive direction determining rule may be: determining, in the avatar information, the positive direction of the connecting line on the right side of the line connecting the eyes of the eyes in the avatar information, that is, the line along the eyes, from the connection One end of the line looks at the past, and the position of the nose or mouth in the avatar information is on the right side of the line.
  • the direction in the past is the positive direction of the line, as shown in the arrow on the line of the eyes in Figure 5.
  • determining the positive direction of each connection includes: determining that the position of the nose or the mouth in each avatar information is located on the right side of the connection
  • the direction is the positive direction of the connection.
  • the positive direction determining rule may also be: determining, in the avatar information, the positive direction of the connecting line on the left side of the line connecting the eyes of the avatar information in the avatar information, that is, the connecting along the eyes, One end of the line looks at the past.
  • the position of the nose or mouth in the avatar information is based on the left side of the line.
  • the direction of the past is the positive direction of the line, as shown by the arrows on the line of the eyes in Figure 6.
  • the direction shown. Based on this, according to the connection line of the two eyes in each avatar information and the preset forward determination rule, determining the positive direction of each connection includes: determining that the position of the nose or the mouth in each avatar information is located on the left side of the connection The direction is the positive direction of the connection.
  • the positive direction of the connection of the eyes in the avatar information is determined in the same manner. Therefore, only one viewer's avatar information is taken as an example in FIGS. 5 and 6.
  • the terminal device obtains the connection of the eyes in each viewer's avatar information and the positive direction of each connection.
  • Step 102 When the positive directions of the lines of all the eyes are the same, calculate an angle between the positive direction of each line and the positive direction of the reference line, and average all the angles to obtain a first angle;
  • the reference line is determined based on the long side of the screen or the short side of the screen.
  • a reference line needs to be determined, and then the angle between the positive direction of the line connecting each eye and the positive direction of the reference line is calculated, and the first angle is obtained by averaging all the angles. And determine the display mode of the screen by calculating the first angle.
  • the reference line is determined based on the long side of the screen or the short side of the screen. For example, the long side of the screen or the short side of the screen may be directly used as a reference line.
  • the reference line in this embodiment may be a parallel line of the long side of the screen or a parallel line of the short side of the screen.
  • the parallel line of the long side of the screen refers to a line parallel to the long side of the screen; the parallel line of the short side of the screen refers to the parallel with the short side of the screen. Line.
  • the screen is displayed vertically, you can select the long side of the screen or the parallel line of the long side of the screen as the baseline; if the screen is displayed horizontally, you can select the short side of the screen or the parallel of the short side of the screen.
  • the line serves as a baseline, but is not limited to this.
  • the positive direction of the baseline For example, you can determine the direction in which one of the extension lines of the baseline line points as the positive direction of the baseline. For example, you can first set the top, bottom, left, and right sides of the screen, and select the direction pointed by an extension line from the extension line of the baseline based on the top, bottom, left, and right sides of the screen. As the positive direction of the baseline. For example, taking the top, bottom, left, and right sides of the screen as the vertical display of the screen, and taking the baseline as the long side of the screen or the parallel line of the long side of the screen, you can select the extension of the baseline.
  • the direction in the line pointing to the extension line at the bottom of the screen is taken as the positive direction of the reference line, or the direction in which the extension line pointing to the top of the screen in the extension line of the reference line is pointed can be selected as the positive direction of the reference line.
  • the top, bottom, left, and right sides of the screen are determined according to the horizontal display of the screen, and the reference line is the short side of the screen or the parallel line of the short side of the screen, for example, the extension of the reference line can be selected.
  • the direction in which the extension line pointing to the bottom of the screen points is the positive direction of the reference line, or the direction of the extension line pointing to the top of the screen in the extension line of the reference line may be selected as the positive direction of the reference line.
  • the terminal device may first determine the horizontal coordinate and the vertical coordinate corresponding to the binocular positions in each viewer's avatar information, for example ( Xa, Ya ) and (Xb, Yb ).
  • the direction of the horizontal coordinate axis where the horizontal coordinate is located refers to the direction perpendicular to the positive direction of the reference line
  • the direction of the longitudinal coordinate axis where the longitudinal coordinate is located is the positive direction of the reference line.
  • the screen is short.
  • the direction of the parallel line of the short side of the screen or the screen pointing to the right side of the screen is the direction of the horizontal coordinate axis.
  • the direction of the long axis of the screen or the parallel line of the long side of the screen pointing to the bottom of the screen is the direction of the longitudinal coordinate axis; Select the short side of the screen or the parallel line of the short side of the screen as the reference line when the screen is displayed horizontally, and use the direction pointing to the bottom of the screen in the extension line of the reference line as the positive direction of the reference line, then the short side of the screen or the screen
  • the direction of the parallel line of the short side pointing to the bottom of the screen is the direction of the longitudinal axis.
  • the direction of the horizontal axis is the direction of the long side of the screen or the parallel line of the long side of the screen pointing to the right side of the screen.
  • the terminal device After determining the horizontal coordinate and the vertical coordinate corresponding to the binocular positions in each viewer's avatar information, the terminal device further calculates an absolute value and two longitudinal coordinates of the difference between the two lateral coordinates determined in each avatar information.
  • the absolute value of the difference and then the inverse of the absolute value between the two lateral coordinates and the difference between the two longitudinal coordinates, to obtain the positive direction of the line connecting the eyes in the avatar information and the positive direction of the reference line
  • the direction in which the long side of the screen points to the bottom of the screen is the positive direction of the reference line
  • the direction of the longitudinal coordinate axis is the direction in which the long side of the screen points to the bottom of the screen.
  • the direction of the horizontal coordinate axis is the short side of the screen or the parallel line of the short side of the screen points to the right side of the screen. Based on this, the angle between the positive direction of the line connecting each eye and the positive direction of the reference line is two. The situation is shown in Figure ⁇ and Figure 8, respectively.
  • the short side of the screen is used as the reference line
  • the direction of the right side of the screen pointing to the right side of the screen is the positive direction of the reference line
  • the direction of the vertical coordinate axis is the direction of the short side of the screen pointing to the right side of the screen.
  • the direction of the coordinate axis is the direction in which the long side of the screen points to the bottom of the screen.
  • the first angle is obtained by averaging all the angles.
  • each viewer can directly view (ie, face) the image on the screen, or the viewer can also be based on the actual situation.
  • the image on the screen is viewed in a squint manner, ie the viewer is not facing the image on the screen. Among them, as far as possible, it is ensured that each viewer can directly view the image on the screen as a preferred viewing state, and the screen display mode determining method of the embodiment is proposed for the purpose.
  • Step 103 Determine a display mode of the screen according to the first angle.
  • the display mode of the screen can be determined according to the first angle.
  • the display mode adjusted according to the first angle can take into account the viewing situation of each viewer.
  • determining the display mode of the screen mainly refers to determining whether the screen is displayed in landscape or portrait orientation.
  • step 103 The implementation of step 103 is exemplified below.
  • the guide line with the long side of the screen pointing to the bottom of the screen as the positive direction of the baseline, then the long side of the screen points to the bottom of the screen, which is the ordinate axis.
  • the short side of the screen points to the right side of the screen.
  • the horizontal axis, and the position of the nose or mouth in the avatar information is located on the right side of the line connecting the eyes to determine the positive direction of the connection, and the terminal device supports the vertical display mode, the horizontal display mode, and the vertical screen.
  • the four display modes of the reverse display mode and the horizontal display leftward display mode are taken as an example to illustrate the process of determining the display mode used by the screen according to the first angle b.
  • the vertical screen forward display mode is shown in FIG. 11; the horizontal screen rightward display mode is shown in FIG. 12; the vertical screen reverse display mode is as shown in FIG. 13; and the horizontal screen leftward display mode is as shown in FIG. 14.
  • the circles in Figures 11-14 represent the operation buttons or touch buttons.
  • the display mode 14 is first determined by whether the terminal device is vertically or horizontally, and then determined by the positional relationship between the LCD screen and the operation buttons or touch buttons on the terminal device, for example, if the terminal device is vertical Towards, and the LCD screen is located above the operation button or the touch button, the display mode is the vertical screen forward direction, as shown in FIG. 11; if the terminal device is vertical, and the LCD screen is located below the operation button or the touch button , the display mode is vertical screen reverse, as shown in FIG. 13; if the terminal device is horizontal, and the LCD screen is located on the left side of the operation button or the touch button, the display mode is horizontally left, as shown in FIG. 14 As shown in the figure, if the terminal device is horizontal and the LCD screen is located on the right side of the operation button or the touch button, the display mode is the horizontal screen right direction, as shown in FIG.
  • the operation buttons may be physical buttons or various function buttons.
  • the process of determining the display mode used by the screen according to the first angle b includes: if the first angle b is between the first degree threshold and the second degree threshold, determining that the display mode of the screen is vertical The screen is in the positive display mode.
  • the display mode of the screen is the horizontal right display mode.
  • the display mode of the screen is the vertical screen reverse display mode.
  • the display mode of the screen is the horizontal left display mode.
  • the first degree threshold is 45.
  • the second degree threshold is 135.
  • the third degree threshold is 225.
  • the fourth degree threshold is 315. (ie -45.)
  • the terminal device can be at 45 at the first angle b. ⁇ 135.
  • the display mode of the screen is displayed in the vertical direction as shown in Figure 15; at the first angle b is 135 ° ⁇ 225.
  • the display mode of the setting screen is horizontally displayed in the right direction.
  • the display mode of the setting screen is the vertical screen reverse display, as shown in Figure 17; at the first angle b is 315 ° ⁇
  • the display mode of the setting screen is horizontally displayed in the left direction.
  • the direction in which the long side of the LCD points to the bottom of the screen is the positive direction of the reference line.
  • the above degree threshold is just a simple implementation example. In fact, this degree threshold can be adjusted according to the actual application.
  • the display mode is switched, so that when the first angle b changes around a certain degree threshold, the first angle b is caused.
  • the above degree threshold can be set by a specific value. For a range of values, for example, a certain degree threshold can be set to 45. ⁇ 48. So when the first angle b is at 45. ⁇ 58. The change only needs to occur after more than 48°, which reduces the number of display mode switching.
  • the development trend of the LCD is to support the 3D effect of the eye, that is, relying on the grating principle, the light emitted by different pixel points can only be output at a certain angle, so that the viewer's two eyes Different images will be visible to create a 3D stereo effect.
  • most terminal devices can support both 2D and 3D display modes.
  • For terminal devices that support both 2D and 3D display modes in addition to screen display orientation (such as horizontal screen and vertical screen), Switch between 2D and 3D display modes.
  • the display mode of the screen is the vertical forward display mode or the vertical reverse display mode, since the vertical and horizontal directions are displayed, the left and right eyes are polarized, and the grating can distinguish the left and right eyes respectively.
  • the image that is seen can further superimpose the image seen by the left and right eyes to form a 3D image, that is to say, the raster angle can satisfy the requirement of the 3D display mode in the vertical screen display mode, so the 2D display mode or the 3D display mode can be used.
  • the display mode of the screen is the horizontal right display mode or the horizontal left display mode, in the case of the horizontal right or left display, usually only the right eye direction or the left eye direction is polarized, the grating It can only distinguish the image seen by the right eye or the image seen by the left eye, so only the plane image can be displayed, that is to say, in the right or left display mode of the horizontal screen, the grating angle can not meet the requirements of the 3D display mode. Therefore, you can use the 2D display mode.
  • the terminal device can switch the display mode of the screen from 2D to 3D; if the original is in 3D display mode Display, but need to switch to 2D display mode, the terminal device can switch the display mode of the screen from 3D to 2D.
  • the eye 3D is a display technology that uses the grating technology to ensure that the image displayed on the LCD screen can only be seen by the outside world at a certain angle.
  • the screen of the terminal device is required to simultaneously display two different images, which are images for the left and right eyes of the viewer, and each image can only be at a specified angle.
  • the display mode of the screen is switched from 3D to 2D, and only two different images simultaneously displayed on the original screen can be changed to two images with the same content, so that the viewer's left and right eyes can be seen.
  • it is an image, which is the ordinary 2D display effect.
  • switch the display mode of the screen from 2D to 3D, and change the same image displayed on the original screen to display two different images at the same time, so that the viewer's left and right eyes see differently.
  • the image, superimposed in the brain forms a three-dimensional concept.
  • the vertical display reverse display mode in addition to displaying the image in reverse 3D display mode, it is also necessary to consider viewing. Switching between left and right eye images. For example, if the image seen by the left eye is output from the raster side in the vertical screen forward display mode, the image is output from the same side of the raster in the vertical screen reverse display mode. It is the image seen by the right eye.
  • the terminal device identifies the connection of the two eyes in the avatar information of each of the at least two viewers by using the image recognition technology, and determines the connection of each line in the avatar information of each of the at least two viewers.
  • FIG. 18 is a flowchart of a method for determining a screen display mode according to another embodiment of the present invention. As shown
  • the method of this embodiment includes:
  • Step 201 Determine the connection between the eyes of each of the two viewers by identifying the avatar information of each of the two viewers, and determine the rules according to the connection between the eyes of each avatar information and the preset positive direction. Determine the positive direction of each connection.
  • the execution body of this embodiment may be any terminal device that can support the vertical screen switching function, for example. Such as smartphones, tablets, PDAs, etc.
  • This embodiment is applicable not only to a terminal device supporting the 2D display mode but also to a terminal device supporting the 3D display mode.
  • the grating of the slit eye 3D is only suitable for a person who watches the screen in the vertical direction while holding the terminal device, for the horizontal
  • the screen display mode determining method provided by the embodiment is particularly suitable for the terminal device supporting the 3D display mode.
  • the terminal device can first collect each viewer's head in real time through the front camera of the terminal device, thereby acquiring the head image information of each viewer.
  • the avatar information of each viewer is essentially the image information composed of the head of each viewer.
  • FIG. 3 a schematic diagram of the avatar information of two viewers is collected for the front camera. Since most terminal devices support the image recognition technology, after acquiring the avatar information of each of the two viewers, the terminal device can perform image recognition on each viewer's avatar information to confirm the current image. There are two viewers' avatar information, and each feature characterization of the viewer is determined from each viewer's avatar information, for example, determining the viewer's eyes, mouth, and the like, and the features in the avatar information. position. Image recognition belongs to the prior art, and the implementation will not be described again. Also, the process of image recognition for each viewer's avatar information is the same.
  • the terminal device determines the binocular position in the avatar information by performing image recognition on the avatar information of the viewer, thereby obtaining the connection of the eyes in the avatar information; in addition, except for the binocular position and the binocular eyes
  • the positive direction determining rule may be: determining the positive direction of the connection by the right side of the line connecting the eyes of the eyes in the avatar information in the avatar information, that is, the connection along the eyes, from the connection One end of the line looks at the past. The position of the nose or mouth in the avatar information is based on the right side of the line. The direction of the past is the positive direction of the line connecting the eyes. Based on this, according to the connection between the eyes of each avatar information and the preset positive The direction determining rule determines the positive direction of each connection includes: determining a direction in which the position of the nose or the mouth in the avatar information is located on the right side of the connection is the positive direction of the connection.
  • the positive direction determining rule may also be: determining the positive direction of the connecting line by the nose or the mouth of the avatar in the avatar information on the left side of the line connecting the eyes, that is, the line along the eyes, from the connected line Looking at one end, the position of the nose or mouth in the avatar information is based on the left side of the line, and the direction in the past is the positive direction of the line connecting the eyes.
  • determining the positive direction of each connection includes: determining the direction in which the position of the nose or the mouth in the avatar information is located on the left side of the connection line. Is the positive direction of the connection.
  • the positive direction of the connection of the eyes in the avatar information is determined in the same manner, and the specific illustration can be seen in FIG. 5 and FIG. 6.
  • the terminal device obtains the connection of the eyes in each viewer's avatar information and the positive direction of each connection.
  • Step 202 If the two wires are opposite in direction, display mutually independent images to the two viewers.
  • the terminal device can continue to maintain the original display mode. For example, if the current display mode of the terminal device is the 3D display mode, the 3D display mode can be continued. It is also possible to set the display mode of the screen to vertical 3D display or vertical reverse 3D display; in addition, the terminal device can also switch the display mode, for example, if the current display mode of the terminal device is 3D display mode, the display of the screen can be set.
  • the mode is a 2D display mode.
  • the display mode of the screen can be set to a vertical 2D display or a vertical 2D display.
  • the terminal device in this embodiment can display mutually independent images to two viewers in a 3D display manner or a 2D display manner when the positive directions of the connections of the two eyes of the two viewers are opposite, so that two viewings are performed. You can see the image on the screen, but the images you see may be different.
  • the viewer is two, and the avatar information of the two viewers is opposite to the positive direction of the connection of the eyes, that is, the scene where the two viewers face the screen together, the face-to-face viewing screen is similar
  • the chessboard corresponds to the screen of the present embodiment, and the positions of the two chess players on both sides of the chessboard are related to the positional relationship of the two viewers corresponding to the present embodiment. If the terminal device supports the 3D display mode, it can be displayed in the 3D display mode through the screen. The viewers display the image.
  • the terminal device can display mutually independent images to the two viewers through the screen in a 3D display mode, that is, display different images to the two viewers, which is especially suitable for playing the cards for two viewers.
  • a 3D display mode that is, display different images to the two viewers, which is especially suitable for playing the cards for two viewers.
  • An application scenario such as military chess or the like that requires two viewers to see different content and cannot see each other's content, but is not limited to this display mode.
  • the screen display mode determining method further includes the following steps:
  • the terminal device receives a first operation instruction issued by a viewer who is operating on the screen among the two viewers; the first operation instruction herein may be an operation instruction issued by one of the two viewers through the screen, for example, may be touched
  • the first operation instruction is issued by the screen, clicking the screen or double-clicking the screen.
  • the "first” here does not indicate the number, nor the order of the order, only to distinguish it from other operating instructions that appear later.
  • the terminal device processes an image operated by a viewer operating on the screen according to the first operation instruction, wherein the two images can be independently displayed on the screen.
  • the terminal device may perform different processing on the image operated by the viewer operating on the screen according to the first operation instruction, for example, may move part of the image information in the image, or may modify Part of the image information in the image may also be partial image information in the deleted image or the like.
  • the first operation instruction issued by the viewer who is operating on the screen may be an instruction to move a certain chess to the specified position, and the terminal device may according to the first operation instruction. , move a certain chess in the image that the viewer who is operating on the screen can see to the specified position, and so on.
  • the terminal device processes the image operated by the viewer operating on the screen according to the first operation instruction, it is determined that the image operated by the viewer operating on the screen is two independent images. Which one.
  • the terminal device determines an image to be operated by a viewer operating on the screen from two mutually independent images based on the direction of operation of the viewer operating on the screen among the two viewers. Since the two viewers are face-to-face, if the different operation commands for issuing the operation image are distinguished by the action direction on the screen, the action directions of the two viewers issuing the operation are opposite for the same operation instruction, , the terminal device can be operated by recognition The direction of operation of the viewer of the screen to determine which direction the viewer is, and which image the viewer should operate on.
  • the terminal device can capture the operation process of the viewer who is operating the screen through the camera, thereby obtaining the operation direction of the viewer who is operating the screen.
  • the terminal device only the terminal device has a camera, and there is no special requirement for the specific implementation of the screen.
  • the terminal device can use a touch screen that supports the floating touch function as its screen. Then, the terminal device can acquire the operation direction of the viewer who is operating on the screen among the two viewers by sensing. Specifically, hovering touch is achieved by running self-capacitance and mutual capacitance on a capacitive touch screen. Mutual capacitance is used to complete normal touch sensing, including multi-touch; and self-capacitance is used to detect fingers hovering above. Since the hovering touch technology relies on self-capacitance, it is impossible to implement floating multi-touch. In other words, when the floating operation is performed, the screen does not support multi-touch. The screen can only achieve multi-touch in the case of contact and touch.
  • the hovering touch and touch touch functions are simultaneously implemented on the screen of the terminal device, this can be utilized to determine the direction of operation of the viewer who is operating on the screen.
  • the specific process is as follows: After the contact touch interrupt occurs, the touch screen data is read, and the coordinates of the touch occurrence point are determined.
  • the touch screen data is read, and the coordinates of the touch occurrence point are determined.
  • the operation habit of the viewer clicking the touch screen by hand that is, there is a tilt angle between the general finger and the touch screen, so that by simultaneously reading the coordinates of the self-inductance capacitor, the viewer's The pointing of the finger. That is, since the viewer's finger has a certain oblique angle to contact the screen, the coordinates of the center point obtained by the mutual inductance capacitor and the self-inductance capacitor are different.
  • the control screen also determines the image that the viewer should control.
  • the terminal device can provide a switch button for switching by two viewers, the button being a hardware component disposed on the terminal device.
  • the terminal device can receive a switching instruction issued by the viewer operating on the screen through the switching button, determine, according to the switching instruction, which viewer controls the screen, and also determines an image to be operated by the viewer who is operating on the screen.
  • the viewer who first operates on the screen can be preset, and when the terminal device receives the switching instruction issued by the viewer through the switch button for the first time, it can be determined that the viewer who issued the switching instruction is different from the first Another viewer of the viewer operating on the screen, after which the terminal device receives a switching instruction, it can be determined that the viewer operating on the screen at this time is different from the viewer operating on the screen before receiving the switching instruction. Another viewer, and thus sure The image that another viewer wants to operate on should be an image that another viewer can see.
  • the manner in which the terminal device displays mutually independent images through the screen includes: displaying two independent windows on the screen, and displaying two independent images in two separate windows. .
  • the method of the embodiment further includes: the terminal device receives a second operation instruction separately sent by two viewers to operate an image corresponding to the two independent images, and operates the corresponding image according to the second operation instruction.
  • the operation instruction issued by each viewer through the corresponding window is referred to as a second operation instruction, and the "second" here does not represent the number, nor the order of the order, only for the purpose of Distinguish from the operational command (ie, the first operational command) that appears above. It is explained here that each viewer operates in his own corresponding window to issue an operation instruction to the terminal device to operate an image in the window (ie, an image that the viewer can see).
  • the terminal device simultaneously obtains the positive direction of the connection of the eyes in each avatar information according to the connection of the two eyes in the avatar information of the two viewers.
  • the positive direction of the line is opposite, two independent images are displayed to the two viewers, thereby solving the problem that a viewer may not be able to see the image when the two viewers simultaneously view the screen.
  • FIG. 19 is a flowchart of a method for determining a screen display mode according to another embodiment of the present invention. As shown in FIG. 19, the method in this embodiment includes:
  • Step 301 Identify a viewer's avatar information, determine a connection between the two eyes in the avatar information, and determine a positive direction of the connection according to the connection between the eyes and a preset forward determination rule.
  • Step 302 Calculate an angle between a positive direction of the connection line and a positive direction of the reference line, where the reference line is determined according to a long side of the screen or a short side of the screen.
  • Step 303 Determine a display mode of the screen according to the included angle.
  • the execution body of this embodiment may be any terminal device that can support the horizontal and vertical screen switching function, and may be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the terminal device can collect the viewer's head in real time through the camera of the terminal device (for example, a front camera), thereby acquiring the avatar information of the viewer.
  • each viewer's avatar information is essentially composed of the head of each viewer.
  • Image information As shown in FIG. 2, it is a schematic structural diagram of a front camera on a terminal device. As shown in FIG. 20, a schematic diagram of the viewer's head information collected by the camera.
  • the terminal device can perform image recognition on the avatar information of the viewer, and determine each of the avatar information of the viewer to represent the viewer.
  • Features such as determining the more prominent features of the viewer's eyes, mouth, etc., and the location of these features in the viewer's avatar information.
  • Image recognition belongs to the prior art, and the implementation will not be described again.
  • the terminal device determines the position of the eyes in the avatar information by performing image recognition on the avatar information of the viewer, thereby obtaining the connection of the eyes, as shown in FIG. 4, in addition to the connection of the eye, a direction is also determined to distinguish the avatar information. Whether it is positive or backward and easy to distinguish the angle of the angle appearing behind, so a positive direction determination rule can be set in advance to determine the positive direction of the connection of the eyes, so as to distinguish the front and back of the avatar information from the back and forth The size of the angle.
  • the positive direction determining rule may be: determining the positive direction of the connection line, that is, the line along the eyes, from the side of the line connecting the eyes of the eyes in the avatar information in the avatar information, One end of the line looks at the past. The position of the nose or mouth in the avatar information is based on the right side of the line. The direction in the past is the positive direction of the line. The arrow on the line connecting the eyes in Figure 5 The direction shown. Based on this, according to the connection between the two eyes in each avatar information and the preset forward determination rule, determining the positive direction of each connection includes: determining that the position of the nose or the mouth in each avatar information is located on the right side of the connection The direction is the positive direction of the connection.
  • the positive direction determining rule may also be: determining, in the avatar information, the positive direction of the connecting line on the left side of the line connecting the eyes of the avatar information in the avatar information, that is, the connecting along the eyes, One end of the line looks at the past.
  • the position of the nose or mouth in the avatar information is on the left side of the line.
  • the direction in the past is the positive direction of the line, as shown in the arrow on the line of the eyes in Figure 6.
  • determining the positive direction of each connection includes: determining that the position of the nose or the mouth in each avatar information is located on the left side of the connection The direction is the positive direction of the connection.
  • the embodiment further needs to determine a reference line, and then calculate an angle between the positive direction of the line connecting the eyes and the positive direction of the reference line, and determine the display mode of the screen by the calculated angle.
  • the reference line is determined based on the long side or the short side of the screen.
  • can be directly The long side of the screen or the short side of the screen is used as the reference line.
  • the reference line in this embodiment may be a parallel line of the long side of the screen or a parallel line of the short side of the screen.
  • the parallel line of the long side of the screen refers to a line parallel to the long side of the screen
  • the parallel line of the short side of the screen refers to a line parallel to the short side of the screen.
  • the screen is displayed vertically, you can select the long side of the screen or the parallel line of the long side of the screen as the baseline; if the screen is displayed horizontally, you can select the short side of the screen or the parallel of the short side of the screen.
  • the line serves as a baseline, but is not limited to this.
  • the positive direction of the baseline For example, you can determine the direction in which one of the extension lines of the baseline line points as the positive direction of the baseline. For example, you can first set the top, bottom, left, and right sides of the screen, and select the direction pointed by an extension line from the extension line of the baseline as the basis of the top, bottom, left, and right sides of the screen.
  • the positive direction of the baseline For example, taking the top, bottom, left, and right sides of the screen as the vertical display of the screen, and taking the baseline as the long side of the screen or the parallel line of the long side of the screen, you can select the extension of the baseline.
  • the direction in the line pointing to the extension line at the bottom of the screen is taken as the positive direction of the reference line, or the direction in which the extension line pointing to the top of the screen in the extension line of the reference line is pointed can be selected as the positive direction of the reference line.
  • the top, bottom, left, and right sides of the screen are determined according to the horizontal display of the screen, and the reference line is the short side of the screen or the parallel line of the short side of the screen, for example, the extension of the reference line can be selected.
  • the direction in which the extension line pointing to the bottom of the screen points is the positive direction of the reference line, or the direction of the extension line pointing to the top of the screen in the extension line of the reference line may be selected as the positive direction of the reference line.
  • the terminal device may first determine the horizontal coordinate and the vertical coordinate corresponding to the position of the two eyes in the avatar information of the viewer, for example, (Xa, Ya) And (Xb, Yb).
  • the direction of the horizontal coordinate axis where the horizontal coordinate is located refers to the direction perpendicular to the positive direction of the reference line
  • the direction of the longitudinal coordinate axis where the longitudinal coordinate is located is the positive direction of the reference line.
  • the screen is short.
  • the direction of the parallel line of the short side of the screen or the screen pointing to the right side of the screen is the direction of the horizontal coordinate axis.
  • the direction of the long axis of the screen or the parallel line of the long side of the screen pointing to the bottom of the screen is the direction of the longitudinal coordinate axis; Select the short side of the screen or the parallel line of the short side of the screen as the reference line when the screen is displayed horizontally, and use the direction pointing to the bottom of the screen in the extension line of the reference line as the positive direction of the reference line, then the short side of the screen or the screen The short side of the parallel line points to the screen
  • the direction of the bottom is the direction of the longitudinal axis.
  • the direction of the horizontal axis is the direction of the long side of the screen or the parallel line of the long side of the screen pointing to the right side of the screen.
  • the terminal device After determining the horizontal coordinate and the vertical coordinate corresponding to the positions of the eyes in the avatar information of the viewer, the terminal device further calculates the absolute value of the difference between the two lateral coordinates and the absolute value of the difference between the two longitudinal coordinates, and then the two lateral directions
  • the direction in which the long side of the screen points to the bottom of the screen is the positive direction of the reference line
  • the direction of the longitudinal coordinate axis is the direction in which the long side of the screen points to the top of the screen.
  • the direction of the horizontal coordinate axis is the short side of the screen or the parallel line of the short side of the screen points to the right side of the screen.
  • the short side of the screen is used as the reference line
  • the direction of the right side of the screen pointing to the right side of the screen is the positive direction of the reference line
  • the direction of the vertical coordinate axis is the direction of the short side of the screen pointing to the right side of the screen.
  • the direction of the coordinate axis is the direction in which the long side of the screen points to the bottom of the screen.
  • the display mode of the screen can be determined according to the angle a.
  • the display mode of the screen is determined according to the angle a, which is similar to the display mode of the screen according to the first angle b.
  • the screen in addition to the horizontal and vertical screen switching of the screen, the screen can be displayed in a slant screen manner. Since the viewer is looking at the screen of the terminal device, it is most desirable for the viewer to look directly at the past direction and the image displayed on the screen, and the present embodiment calculates the connection of the eyes in the viewer's avatar information.
  • It may be inclined with respect to the long side of the screen or the short side direction of the LCD, that is, the embodiment may also allow the image displayed on the screen to be dynamically adjusted as the viewer's head swings.
  • the above-mentioned viewer's eyes are an optimal implementation for the image displayed on the screen, but are not limited thereto.
  • the viewer can also view the image on the screen in a squint manner.
  • the method provided by the embodiment of the present invention can also be used to determine the display mode of the screen.
  • FIG. 21 is a schematic structural diagram of a terminal device according to an embodiment of the present invention. As shown in FIG. 21, the terminal device of this embodiment includes: a first determining module 31, a calculating module 32, and a second determining module 33.
  • the first determining module 31 is configured to determine, by identifying the avatar information of each of the at least two viewers, the connection of the two eyes in each avatar information, according to the connection and preset of the two eyes in each avatar information.
  • the forward determination rules determine the positive direction of each connection.
  • the calculating module 32 is connected to the first determining module 31, and is configured to calculate an angle between a positive direction of each connecting line and a positive direction of the reference line when all the lines of the two eyes are in the same positive direction, for all the angles Performing averaging to obtain a first angle; the reference line is determined according to a long side of the screen or a short side of the screen;
  • the second determining module 33 is connected to the calculating module 32, and is configured to determine a display mode of the screen according to the first angle.
  • the forward determination rule includes: determining, in a direction of a nose or a mouth of the avatar information, a right direction of a line connecting the eyes in the avatar information; first determining module 31, rules for determining the forward shell 1 J avatar according to each message and a preset connection eyes, determining a positive direction of each connection comprises: a first determining module for determining for each avatar 31 The direction in which the position of the nose or mouth in the message is located to the right of the line is the positive direction of the line connecting the eyes in the avatar information.
  • the determining module comprises: determining, by using a position of a nose or a mouth in the avatar information, on a left side of a line connecting the eyes in the avatar information, determining a positive direction of the connection, and then determining a positive direction of the connection.
  • 31 is configured to determine a positive direction of each connection according to the connection line of the two eyes in each avatar information and the preset forward determination rule.
  • the first determining module 31 is configured to determine that the position of the nose or the mouth is located in each avatar information. The direction when the left side of the connection is the positive direction of the connection of the eyes in the avatar information.
  • the calculation module 32 is configured to calculate an angle between a positive direction of each connection and a positive direction of the reference line
  • the method includes: the calculation module 33 is configured to determine that the positions of the two eyes in each avatar information respectively correspond to The horizontal coordinate and the longitudinal coordinate; the absolute value of the difference between the two lateral coordinates and the absolute value of the difference between the two longitudinal coordinates are inverse tangent to obtain the angle, wherein the lateral coordinate is in the lateral direction
  • the direction of the coordinate axis means a direction perpendicular to the positive direction of the reference line, and the direction of the longitudinal coordinate axis where the longitudinal coordinate is located is the positive direction of the reference line.
  • the second determining module 33 is configured to determine, according to the first angle, a display mode of the screen, where the second determining module 33 is configured to determine, in the forward direction, that the rule is The position of the nose or the mouth in the avatar information is located on the right side of the line connecting the eyes in the avatar information to determine the positive direction of the connection, if the first angle is at the first degree threshold and the second degree threshold Determining, the display mode of the screen is a vertical screen forward display mode, if the first angle is between the second degree threshold and the third degree threshold, determining that the display mode of the screen is a horizontal screen a rightward display mode, if the first angle is between the third degree threshold and the fourth degree threshold, determining that the display mode of the screen is a vertical screen reverse display mode, if the first angle is Between the fourth degree threshold and the first degree threshold, determining that the display mode of the screen is a horizontal screen leftward display mode.
  • the second determining module 33 is further configured to determine that the screen is displayed in a 2D display manner or a 3D display if the display mode of the screen is a vertical screen forward display mode or a vertical screen reverse display mode. In the mode, if the display mode of the screen is the horizontal right display mode or the horizontal left display mode, the screen is determined to be in the 2D display mode.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the function modules of the terminal device provided in this embodiment can be used to execute the process of the method for determining the screen display module shown in FIG. 1.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device uses the image recognition technology to identify the connection of the two eyes in the avatar information of each of the at least two viewers, and determines the binoculars in each avatar information according to the preset forward determination rule.
  • the positive direction of the line and then calculate the angle between the positive direction of each line and the positive direction of the reference line, average all the angles to obtain a first angle, and determine the display mode of the screen according to the first angle.
  • FIG. 22 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. As shown in FIG. 22, the terminal device of this embodiment includes: a memory 42 and a processor 43.
  • the memory 42 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 42 may include a high speed RAM memory, and may also include a non-volatile memory, such as at least one Disk storage.
  • the processor 43 is configured to execute a program stored in the memory 42, configured to: determine, by identifying the avatar information of each of the at least two viewers, the connection of the eyes in each avatar information, according to each The connection between the eyes in the avatar information and the preset positive determination rule determine the positive direction of each connection; when the positive directions of all the connections of the two eyes are the same, calculate the positive direction of each connection and the positive of the reference line An angle between the directions, averaging all the angles to obtain a first angle; the reference line is determined according to a long side of the screen or a short side of the screen; determining according to the first angle The display mode of the screen.
  • the processor 43 may be a central processing unit (CPU), or an application specific integrated circuit (ASIC), or one or more configured to implement the embodiments of the present invention. integrated circuit.
  • CPU central processing unit
  • ASIC application specific integrated circuit
  • the forward determination rule includes: determining, in a direction of a nose or a mouth of the avatar information, a right direction of a line connecting the eyes in the avatar information, determining a positive direction of the connection,
  • the processor 43 is configured to determine a positive direction of each connection according to a connection between the eyes of each avatar information and a preset forward determination rule, and the processor 43 is configured to determine a position of the nose or the mouth in each avatar information.
  • the direction when the right side of the connection line is the positive direction of the connection of the eyes in the avatar information.
  • the forward determination rule includes: determining a positive direction of the connection line on a left side of a line connecting the eyes of the eyes in the avatar information in the avatar information, and the processor 43 is configured to The connection between the two eyes in each avatar information and the preset forward determination rule, determining the positive direction of each connection includes: The processor 43 is configured to determine that the position of the nose or the mouth in each avatar information is located at the left of the connection The direction in the side is the positive direction of the line connecting the eyes in the avatar information.
  • the processor 43 is configured to calculate an angle between a positive direction of each connection and a positive direction of the reference line, where the processor 43 is configured to determine that the binocular positions in each avatar information respectively correspond to a transverse coordinate and a longitudinal coordinate; an inverse tangent of an absolute value of a difference between the two lateral coordinates and a difference between the two longitudinal coordinates, the angle is obtained, wherein the lateral coordinate of the lateral coordinate
  • the direction of the axis refers to a direction perpendicular to the positive direction of the reference line, and the direction of the longitudinal coordinate axis where the longitudinal coordinate is located is the positive direction of the reference line.
  • the determining, by the processor 43, the display mode of the screen according to the first angle includes: the processor 43 is configured to determine, in the forward direction, that the nose or The position of the mouth is located on the right side of the line connecting the eyes in the avatar information to determine the positive direction of the line And if the first angle is between the first degree threshold and the second degree threshold, determining that the display mode of the screen is a vertical screen forward display mode, if the first angle is at the second Determining between the degree threshold and the third degree threshold, determining that the display mode of the screen is a horizontal screen rightward display mode, and if the first angle is between the third degree threshold and the fourth degree threshold, determining The display mode of the screen is a vertical screen reverse display mode. If the first angle is between the fourth degree threshold and the first degree threshold, determining that the display mode of the screen is horizontally left. Display mode.
  • the processor 43 is further configured to determine that the screen is in a 2D display mode or a 3D display mode if the display mode of the screen is a vertical screen forward display mode or a vertical screen reverse display mode. If the display mode of the screen is the horizontal right display mode or the horizontal left display mode, the screen is determined to be in the 2D display mode.
  • the terminal device of this embodiment may further include: a camera 41 and a communication interface 44.
  • the camera 41 is configured to acquire avatar information of each viewer; and the communication interface 44 is configured to be responsible for communication between the terminal device and other devices in the embodiment.
  • the camera 41, the memory 42, the processor 43, and the communication interface 44 may be connected to each other through a bus and communicate with each other.
  • the bus may be an Industry Standard Architecture (ISA) bus, a Peripheral Component (PCI) bus, or an Extended Industry Standard Architecture (EISA). Bus, etc.
  • ISA Industry Standard Architecture
  • PCI Peripheral Component
  • EISA Extended Industry Standard Architecture
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 22, but it does not mean that there is only one bus or one type of bus.
  • the camera 41, the memory 42, the processor 43, and the communication interface 44 are integrated on a single chip, the camera 41, the memory 42, the processor 43, and the communication interface 44 can communicate with each other through an internal interface.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the terminal device provided in this embodiment can be used to perform the process of the method for determining the screen display module shown in FIG. 1.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device uses image recognition technology to identify a connection between two eyes in each of the at least two viewers, and determines each according to a predetermined forward determination rule.
  • Determining the display mode of the screen can overcome the problem of inaccurate setting of the screen display mode by relying solely on the gravity sensing chip, and is beneficial to improving the accuracy of determining the display mode of the screen, thereby improving the convenience of the user.
  • FIG. 23 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. As shown in FIG. 23, the terminal device of this embodiment includes: a first determining module 51 and a display module 52.
  • the first determining module 51 is configured to determine, by identifying the avatar information of each of the two viewers, the connection of the two eyes in each avatar information, according to the connection between the eyes of each avatar information and the preset The forward determination rules determine the positive direction of each connection.
  • the display module 52 is connected to the first determining module 51 for displaying mutually independent images to the two viewers when the positive directions of the two wires are opposite.
  • the display module 52 is specifically configured to display mutually independent images to the two viewers in a 3D display mode or a 2D display mode.
  • the terminal device further includes:
  • the first receiving module 53 and the first processing module 54 are identical to The first receiving module 53 and the first processing module 54.
  • the first receiving module 53 is configured to receive a first operation instruction issued by a viewer who is operating on the screen among the two viewers.
  • the first processing module 54 coupled to the first receiving module 53, is operative to process an image to be operated by a viewer operating on the screen in accordance with the first operational command.
  • the first processing module 54 is further connected to the display module 52.
  • the terminal device of this embodiment further includes: a second determining module 55 and/or a third determining module 56.
  • a second determining module 55 coupled to the first processing module 54, for using the viewer operating on the screen before the first processing module 54 processes the image to be operated by the viewer operating on the screen
  • the direction of operation determines an image to be operated by a viewer operating on the screen from the two mutually independent images.
  • a third determining module 56 coupled to the first processing module 54, for receiving a viewer operating on the screen before the first processing module 54 processes an image to be operated by a viewer operating on the screen Determining, by the switching instruction, a map to be operated by a viewer operating on the screen from the two mutually independent images according to the switching instruction Like.
  • the second determining module 55 and the third determining module 56 are for providing the first processing module 54 with indication information of an image to be operated by a viewer operating on the screen.
  • the terminal device of this embodiment further includes: a fourth determining module 57 and/or a fifth determining module 58.
  • a fourth determining module 57 coupled to the second determining module 55, for determining, in the second determining module 55, from the two mutually independent images according to an operating direction of a viewer operating on the screen
  • the direction of operation of the viewers operating on the screen among the two viewers is acquired by the camera before the image to be operated by the viewer operating on the screen.
  • the fifth determining module 58 is connected to the second determining module 55, and is configured to be independent from the two in the second determining module 55 according to the operating direction of the viewer operating on the screen among the two viewers. Before determining an image to be operated by a viewer operating on the screen, sensing an operation direction of a viewer who is operating on the screen of the two viewers, wherein the screen supports floating touch Touch screen for control functions.
  • the fourth determining module 57 and the fifth determining module 58 are for providing the second determining module 55 with indication information of the operating directions of the viewers who are operating on the screen among the two viewers.
  • the displaying module 52 is configured to display mutually independent images to the two viewers in a 3D display manner, including: the display module 52 is specifically configured to display two independent windows on the screen, to 3D The display mode displays the two mutually independent images in the two separate windows.
  • the terminal device of this embodiment further includes: a second receiving module 59 and a second processing module 60.
  • a second receiving module 59 configured to receive a second operation instruction that is respectively sent by the two viewers to operate an image corresponding to the two independent images, where the second operation instruction is that the viewer passes the The corresponding window on the screen is issued.
  • the second processing module 60 is coupled to the second receiving module 59 for operating the corresponding image according to the second operating command.
  • the second processing module 60 is connected to the display module 52.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the function modules of the terminal device provided in this embodiment can be used to perform the process of the method for determining the screen display mode shown in FIG. 18.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device provided in this embodiment obtains the positive direction of the connection of the eyes in each avatar information according to the connection of the two eyes in the avatar information of the two viewers. When the positive directions of the two connections are opposite, the two The viewers display images that are independent of each other, thereby solving the problem that a viewer may not be able to see the image when two viewers are simultaneously watching the screen.
  • FIG. 25 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. As shown in FIG. 25, the terminal device of this embodiment includes: a memory 72, a processor 73, and a display 74.
  • the memory 72 is used to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 72 may include a high speed RAM memory and may also include a non-volatile memory such as at least one disk memory.
  • the processor 73 is configured to execute the program stored in the memory 72, to: determine, by identifying the avatar information of each of the two viewers, the connection of the eyes in each avatar information, according to each avatar The connection between the eyes in the message and the preset positive determination rule determine the positive direction of each connection.
  • Processor 73 may be a CPU, or a particular ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the display 74 is configured to display mutually independent images to the two viewers when the positive directions of the two wires are opposite.
  • the display is specifically configured to display mutually independent images to the two viewers in a 3D display mode or a 2D display mode.
  • the terminal device of this embodiment further includes: a communication interface 75.
  • the communication interface 75 is configured to receive a first operation instruction issued by a viewer of the two viewers who is operating on the screen.
  • the processor 73 is further operative to process an image to be operated by a viewer operating on the screen in accordance with a first operational command received by the communication interface 75.
  • the processor 73 is further configured to: according to the viewer operating on the screen of the two viewers before processing the image to be operated by the viewer operating on the screen The direction of operation determines an image to be operated by a viewer operating on the screen from the two mutually independent images.
  • the terminal device in this embodiment further includes: a camera 71, configured to acquire information such as a viewer's avatar information and an operation direction when the viewer performs an operation on the screen.
  • Processor 73 also Before determining, from among the two mutually independent images, an image to be operated by a viewer operating on the screen, according to an operation direction of a viewer operating on the screen according to the two viewers, The operation direction of the viewer who is operating on the screen among the two viewers is acquired by the camera 71.
  • the processor 73 is further configured to determine, from the two mutually independent images, a viewer who is operating on the screen according to an operation direction of a viewer operating on the screen among the two viewers Before the image to be operated, the operation direction of the viewer who is operating on the screen of the two viewers is acquired, wherein the screen is a touch screen supporting the floating touch function.
  • the communication interface 75 is further configured to receive a switching instruction issued by a viewer operating on the screen via a toggle button.
  • the processor 73 is further configured to determine an image to be operated by a viewer operating on the screen from the two mutually independent images in accordance with a switching instruction received by the communication interface 75.
  • the display 74 is configured to display mutually independent images to the two viewers in a 3D display manner, including: the display 74 is specifically configured to display two independent windows on the screen, in a 3D display manner. The two mutually independent images are respectively displayed in the two separate windows.
  • the communication interface 75 is further configured to receive a second operation instruction separately issued by the two viewers to operate an image corresponding to the two independent images.
  • the processor 73 is further configured to operate the corresponding image according to the second operation instruction, where the second operation instruction is sent by the viewer through a window corresponding to the screen.
  • the camera 71 the memory 72, the processor 73, the display 74, and the communication interface
  • the 75 independent implementation, the camera 71, the memory 72, the processor 73, the display 74, and the communication interface 75 can be connected to each other through a bus and complete communication with each other.
  • the bus can be an ISA bus, a PCI bus or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 25, but it does not mean that there is only one bus or one type of bus.
  • the camera 71, the memory 72, the processor 73, the display 74, and the communication interface 75 are integrated on one chip, the camera 71, the memory 72, the processor 73, the display 74, and the communication interface 75 can be implemented through an internal interface. Communication with each other.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the terminal device provided in this embodiment can be used to perform the process of the screen display mode determining method shown in FIG. 18.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device provided in this embodiment obtains the positive direction of the connection of the eyes in each avatar information according to the connection of the two eyes in the avatar information of the two viewers.
  • the two The viewers display images that are independent of each other, thereby solving the problem that a viewer may not be able to see the image when two viewers are simultaneously watching the screen.
  • FIG. 26 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. As shown in FIG. 26, the terminal device of this embodiment includes: a first determining module 81, a calculating module 82, and a second determining module 83.
  • the first determining module 81 identifies the avatar information of the viewer, determines a connection line of the two eyes in the avatar information, and determines a positive connection of the connection according to the connection line of the two eyes and a preset forward determination rule. direction.
  • the calculation module 82 is connected to the first determining module 81, and configured to calculate an angle between a positive direction of the connection line and a positive direction of the reference line, the reference line being according to a long side of the screen or the screen The short side is determined.
  • the second determining module 83 is connected to the calculating module 82, and is configured to determine a display mode of the screen according to the included angle.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the function modules of the terminal device provided in this embodiment can be used to execute the process of the method for determining the screen display mode shown in FIG. 19.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device uses the image recognition technology to identify the connection between the eyes of the viewer's avatar information, and calculates the angle between the positive direction of the connection of the eyes and the positive direction of the reference line, according to the clip.
  • the angle determines the display mode of the screen, which can overcome the problem that the screen display mode setting is inaccurate by relying solely on the gravity sensing chip, which is beneficial to improve the accuracy of determining the display mode of the screen, thereby improving the convenience of the user.
  • FIG. 27 is a schematic structural diagram of a terminal device according to another embodiment of the present invention. As shown in FIG. 27, the terminal device of this embodiment includes: a memory 92 and a processor 93.
  • the memory 92 is configured to store a program.
  • the program can include program code, the program code including computer operating instructions.
  • the memory 92 may include a high speed RAM memory.
  • the memory may also include a non-volatile memory, such as at least one disk storage.
  • the processor 93 is configured to execute a program stored in the memory 92, to: identify a viewer's avatar information, determine a connection between the eyes in the avatar information, according to the connection between the eyes and the preset Determining a rule, determining a positive direction of the connection; calculating an angle between a positive direction of the connection and a positive direction of the reference line, the reference line being according to a long side of the screen or the screen The short side is determined; the display mode of the screen is determined according to the included angle.
  • Processor 93 may be a CPU, or a particular ASIC, or one or more integrated circuits configured to implement embodiments of the present invention.
  • the terminal device of this embodiment may further include: a camera 91 and a communication interface 94.
  • the camera 91 is configured to acquire avatar information of the viewer; and the communication interface 94 is configured to be responsible for communication between the terminal device and other devices in the embodiment.
  • the camera 91, the memory 92, the processor 93, and the communication interface 94 may be connected to each other through a bus and communicate with each other.
  • the bus can be an ISA bus, a PCI bus or an EISA bus.
  • the bus can be divided into an address bus, a data bus, a control bus, and the like. For ease of representation, only one thick line is shown in Figure 28, but it does not mean that there is only one bus or one type of bus.
  • the camera 91, the memory 92, the processor 93, and the communication interface 94 are integrated on a single chip, the camera 91, the memory 92, the processor 93, and the communication interface 94 can communicate with each other through an internal interface.
  • the terminal device of this embodiment can support the horizontal and vertical screen switching function, and can be, for example, a smart phone, a tablet computer, a PDA, or the like.
  • the function modules of the terminal device provided in this embodiment can be used to execute the process of the method for determining the screen display mode shown in FIG. 19.
  • the specific working principle is not described here. For details, refer to the description of the method embodiment.
  • the terminal device uses the image recognition technology to identify the connection between the eyes of the viewer's avatar information, and calculates the angle between the positive direction of the connection of the eyes and the positive direction of the reference line, according to the clip.
  • the angle determines the display mode of the screen, which can overcome the problem that the screen display mode setting is inaccurate by relying solely on the gravity sensing chip, which is beneficial to improve the accuracy of determining the display mode of the screen, thereby improving the convenience of the user.
  • the foregoing program may be stored in a computer readable storage medium, and when executed, the program includes the steps of the foregoing method embodiment; and the foregoing storage medium includes: ROM, RAM , a variety of media that can store program code, such as a disk or an optical disk.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Computer Hardware Design (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

本发明实施例提供一种屏幕显示模式确定方法及终端设备。方法包括:通过对至少两个观看者中每个观看者的头像信息进行识别,确定每个头像信息中双眼的连线,根据每个头像信息中双眼的连线和预设正向确定规则,确定每条连线的正方向,当所有连线的正方向相同时,计算每条连线的正方向与基准线的正方向之间的夹角,对所有夹角进行平均,获得第一夹角,根据第一夹角确定屏幕的显示模式。本发明技术方案可以提高确定屏幕显示模式的准确性,进而提高用户使用的便利性。

Description

屏幕显示模式确定方法及终端设备 技术领域 本发明涉及图像技术,尤其涉及一种屏幕显示模式确定方法及终端设备。 背景技术
目前智能手机基本都支持横竖屏显示及切换功能。 横竖屏切换的实现方 式为: 智能手机内部设置一个重力感应芯片, 该重力感应芯片有三轴向或六 轴向的形式, 通过获取地心引力在各个轴向上的分量, 以此判断智能手机当 前的姿态并决定智能手机是以横屏显示还是以竖屏显示。
但是, 单纯的依靠重力感应芯片, 很难保证在各个场合都能准确判断出 智能手机以用户希望的方式进行显示。 例如, 当用户以左侧卧或右侧卧的方 式躺在床上时, 以用户为基准, 用户竖向持着智能手机的情况对重力感应芯 片来说该智能手机确是处于横向状态, 因此, 会将屏幕的显示模式设置为横 屏显示; 而用户以横向持着智能手机的情况对重力感应芯片来说该智能手机 确是处于竖向状态, 因此, 会将屏幕的显示模式设置为竖屏显示, 这就出现 屏幕显示模式设置不准确的问题, 给用户的使用带来不便。 发明内容 本发明实施例提供一种屏幕显示模式确定方法及终端设备, 用以提高确 定屏幕显示模式的准确性, 进而提高用户使用的便利性。
第一方面提供一种屏幕显示模式确定方法, 包括: 通过对至少两个观看 者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根 据每个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正方 向; 当所有双眼的连线的正方向相同时, 计算每条连线的正方向与基准线的 正方向之间的夹角, 对所有夹角进行平均, 获得第一夹角; 所述基准线是根 据所述屏幕的长边或者所述屏幕的短边确定的; 根据所述第一夹角确定所述 屏幕的显示模式。
结合第一方面, 在第一方面的第一种可能的实现方式中, 所述正向确定 规则包括: 以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连 线的右侧确定所述连线的正方向; 或者, 以所述头像信息中鼻子或嘴的位置 位于所述头像信息中双眼的连线的左侧确定所述连线的正方向。
结合第一方面或第一方面的第一种可能的实现方式, 在第一方面的第二 种可能的实现方式中, 所述计算每条连线的正方向和基准线的正方向之间的 夹角包括: 确定每个头像信息中双眼位置分别对应的横向坐标和纵向坐标, 其中, 所述横向坐标所在的横向坐标轴的方向是指与所述基准线的正方向垂 直的方向, 所述纵向坐标所在的纵向坐标轴的方向为所述基准线的正方向; 对所述两个横向坐标之差的绝对值和所述两个纵向坐标之差的绝对值取反正 切, 获得所述夹角。
结合第一方面的第一种可能的实现方式或第一方面的第二种可能的实现 方式, 在第一方面的第三种可能的实现方式中, 如果所述正向确定规则为以 所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右侧确定 所述连线的正方向,则所述根据所述第一夹角确定所述屏幕的显示模式包括: 如果所述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕的显 示模式为竖屏正向显示模式; 如果所述第一夹角在所述第二度数门限与第三 度数门限之间, 确定所述屏幕的显示模式为横屏右向显示模式; 如果所述第 一夹角在所述第三度数门限与第四度数门限之间, 确定所述屏幕的显示模式 为竖屏反向显示模式; 如果所述第一夹角在所述第四度数门限与所述第一度 数门限之间, 确定所述屏幕的显示模式为横屏左向显示模式。
结合第一方面或第一方面的第一种可能的实现方式或第一方面的第二种 可能的实现方式或第一方面的第三种可能的实现方式, 在第一方面的第四种 可能的实现方式中, 所述方法还包括: 如果所述屏幕的显示模式为竖屏正向 显示模式或竖屏反向显示模式, 釆用 2D显示方式或 3D显示方式;
如果所述屏幕的显示模式为横屏右向显示模式或横屏左向显示模式, 釆 用 2D显示方式。
第二方面提供一种屏幕显示模式确定方法, 包括: 通过对两个观看者中 每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每 个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正方向; 如果所述两条连线的正方向相反, 向所述两个观看者显示相互独立的图像。 结合第二方面, 在第二方面的第一种可能的实现方式中, 向所述两个观 看者显示相互独立的图像包括: 以 3D显示方式或 2D显示方式向所述两个观 看者显示相互独立的图像。
结合第二方面的第一种可能的实现方式, 在第二方面的第二种可能的实 现方式中, 所述方法还包括: 接收所述两个观看者中正在所述屏幕上操作的 观看者发出的第一操作指令; 根据所述第一操作指令, 对所述两个相互独立 的图像中正在所述屏幕上操作的观看者所要操作的图像进行处理。
结合第二方面的第二种可能的实现方式, 在第二方面的第三种可能的实 现方式中, 根据所述第一操作指令, 对所述两个相互独立的图像中正在所述 屏幕上操作的观看者所要操作的图像进行处理之前包括: 根据所述两个观看 者中正在所述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像 中确定正在所述屏幕上操作的观看者所要操作的图像; 或者, 接收正在所述 屏幕上操作的观看者通过切换按键发出的切换指令, 根据所述切换指令从所 述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图 像。
结合第二方面的第三种可能的实现方式, 在第二方面的第四种可能的实 现方式中, 所述根据所述两个观看者中正在所述屏幕上操作的观看者的操作 方向, 从所述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要 操作的图像之前包括: 通过摄像头获取所述两个观看者中正在所述屏幕上操 作的观看者的操作方向; 或者, 感知获取所述两个观看者中正在所述屏幕上 操作的观看者的操作方向, 其中, 所述屏幕为支持悬浮触控功能的触摸屏。
结合第二方面的第一种可能的实现方式, 在第二方面的第五种可能的实 现方式中, 以 3D显示方式向所述两个观看者显示相互独立的图像包括: 在 所述屏幕显示两个独立的窗口, 以 3D显示方式将所述两个相互独立的图像 分别在所述两个独立的窗口中显示; 所述屏幕模式确定方法还包括: 接收所 述两个观看者分别发出的操作所述两个独立的图像中所对应的图像的第二操 作指令, 并根据所述第二操作指令对所对应的图像进行操作, 所述第二操作 指令是所述观看者通过所述屏幕上所对应的窗口发出的。
第三方面提供一种屏幕显示模式确定方法, 包括: 对观看者的头像信息 进行识别, 确定所述头像信息中的双眼的连线, 根据所述双眼的连线和预设 的正向确定规则, 确定所述连线的正方向; 计算所述连线的正方向和基准线 的正方向之间的夹角, 所述基准线是根据所述屏幕的长边或者所述屏幕的短 边确定的; 根据所述夹角确定所述屏幕的显示模式。
第四方面提供一种终端设备, 包括: 第一确定模块, 用于通过对至少两 个观看者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连 线, 根据每个头像信息中双眼的连线和预设正向确定规则, 确定每条连线的 正方向; 计算模块, 用于在所有双眼的连线的正方向相同时, 计算每条连线 的正方向和基准线的正方向之间的夹角, 对所有夹角进行平均, 获得第一夹 角; 所述基准线是根据所述屏幕的长边或者所述屏幕的短边确定的; 第二确 定模块, 用于根据所述第一夹角确定所述屏幕的显示模式。
结合第四方面, 在第四方面的第一种可能的实现方式中, 所述正向确定 规则包括: 以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连 线的右侧确定所述连线的正方向; 或者, 以所述头像信息中鼻子或嘴的位置 位于所述头像信息中双眼的连线的左侧确定所述连线的正方向。
结合第四方面或第四方面的第一种可能的实现方式, 在第四方面的第二 种可能的实现方式中, 所述计算模块, 用于计算每条连线的正方向和基准线 的正方向之间的夹角, 包括: 所述计算模块用于确定每个头像信息中双眼位 置分别对应的横向坐标和纵向坐标; 对所述两个横向坐标之差的绝对值和所 述两个纵向坐标之差的绝对值取反正切, 获得所述夹角, 其中, 所述横向坐 标所在的横向坐标轴的方向是指与所述基准线的正方向垂直的方向, 所述纵 向坐标所在的纵向坐标轴的方向为所述基准线的正方向。
结合第四方面的第一种可能的实现方式或第四方面的第二种可能的实现 方式, 在第四方面的第三种可能的实现方式中, 所述第二确定模块, 用于根 据所述第一夹角确定所述屏幕的显示模式, 包括: 所述第二确定模块用于在 所述正向确定规则为以所述头像信息中鼻子或嘴的位置位于所述头像信息中 双眼的连线的右侧确定所述连线的正方向时, 如果所述第一夹角在第一度数 门限与第二度数门限之间, 确定所述屏幕的显示模式为竖屏正向显示模式, 如果所述第一夹角在所述第二度数门限度与第三度数门限之间, 确定所述屏 幕的显示模式为横屏右向显示模式, 如果所述第一夹角在所述第三度数门限 与第四度数门限之间, 确定所述屏幕的显示模式为竖屏反向显示模式, 如果 所述第一夹角在所述第四度数门限与所述第一度数门限之间, 确定所述屏幕 的显示模式为横屏左向显示模式。
结合第四方面或第四方面的第一种可能的实现方式或第四方面的第二种 可能的实现方式或第四方面的第三种可能的实现方式, 在第四方面的第四种 可能的实现方式中, 所述第二确定模块还用于如果所述屏幕的显示模式为竖 屏正向显示模式或竖屏反向显示模式, 釆用 2D显示方式或 3D显示方式, 如 果所述屏幕的显示模式为横屏右向显示模式或横屏左向显示模式, 釆用 2D 显示方式。
第五方面提供一种终端设备, 包括: 存储器, 用于存储程序; 处理器, 用于执行所述程序, 以用于: 通过对至少两个观看者中每个观看者的头像信 息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的 连线和预设的正向确定规则, 确定每条连线的正方向; 当所有双眼的连线的 正方向相同时, 计算每条连线的正方向与基准线的正方向之间的夹角, 对所 有夹角进行平均, 获得第一夹角; 所述基准线是根据所述屏幕的长边或者所 述屏幕的短边确定的; 根据所述第一夹角确定所述屏幕的显示模式。
结合第五方面, 在第五方面的第一种可能的实现方式中, 所述正向确定 规则包括: 以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连 线的右侧确定所述连线的正方向; 或者, 以所述头像信息中鼻子或嘴的位置 位于所述头像信息中双眼的连线的左侧确定所述连线的正方向。
结合第五方面或第五方面的第一种可能的实现方式, 在第五方面的第二 种可能的实现方式中, 所述处理器用于计算每条连线的正方向和基准线的正 方向之间的夹角包括: 所述处理器用于确定每个头像信息中双眼位置分别对 应的横向坐标和纵向坐标; 对所述两个横向坐标之差的绝对值和所述两个纵 向坐标之差的绝对值取反正切, 获得所述夹角, 其中, 所述横向坐标所在的 横向坐标轴的方向是指与所述基准线的正方向垂直的方向, 所述纵向坐标所 在的纵向坐标轴的方向为所述基准线的正方向。
结合第五方面的第一种可能的实现方式或第五方面的第二种可能的实现 方式, 在第五方面的第三种可能的实现方式中, 所述处理器用于根据所述第 一夹角确定所述屏幕的显示模式包括: 所述处理器用于在所述正向确定规则 为以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右侧 确定所述连线的正方向时, 如果所述第一夹角在第一度数门限与第二度数门 限之间, 确定所述屏幕的显示模式为竖屏正向显示模式; 如果所述第一夹角 在所述第二度数门限度与第三度数门限之间, 确定所述屏幕的显示模式为横 屏右向显示模式; 如果所述第一夹角在所述第三度数门限与第四度数门限之 间, 确定所述屏幕的显示模式为竖屏反向显示模式; 如果所述第一夹角在所 述第四度数门限与所述第一度数门限之间, 确定所述屏幕的显示模式为横屏 左向显示模式。
结合第五方面或第五方面的第一种可能的实现方式或第五方面的第二种 可能的实现方式或第五方面的第三种可能的实现方式, 在第五方面的第四种 可能的实现方式中, 所述处理器还用于如果所述屏幕的显示模式为竖屏正向 显示模式或竖屏反向显示模式, 釆用 2D显示方式或 3D显示方式; 如果所述 屏幕的显示模式为横屏右向显示模式或横屏左向显示模式, 釆用 2D显示方 式。
第六方面提供一种终端设备, 包括: 第一确定模块, 用于通过对两个观 看者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正 方向; 显示模块, 用于在所述两条连线的正方向相反时, 向所述两个观看者 显示相互独立的图像。
结合第六方面, 在第六方面的第一种可能的实现方式中, 所述显示模块 具体用于以 3D显示方式或 2D显示方式向所述两个观看者显示相互独立的图 像。
结合第六方面的第一种可能的实现方式, 在第六方面的第二种可能的实 现方式中, 所述终端设备还包括: 第一接收模块, 用于接收所述两个观看者 中正在所述屏幕上操作的观看者发出的第一操作指令; 第一处理模块, 用于 根据所述第一操作指令, 对所述两个相互独立的图像中正在所述屏幕上操作 的观看者所要操作的图像进行处理。
结合第六方面的第二种可能的实现方式, 在第六方面的第三种可能的实 现方式中, 所述终端设备还包括: 第二确定模块, 用于在所述第一处理模块 对所述两个相互独立的图像中正在所述屏幕上操作的观看者所要操作的图像 进行处理之前, 根据所述两个观看者中正在所述屏幕上操作的观看者的操作 方向, 从所述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要 操作的图像; 和 /或, 第三确定模块, 用于在所述第一处理模块对所述两个相 互独立的图像中正在所述屏幕上操作的观看者所要操作的图像进行处理之 前, 接收正在所述屏幕上操作的观看者通过切换按键发出的切换指令, 根据 所述切换指令从所述两个相互独立的图像中确定正在所述屏幕上操作的观看 者所要操作的图像。
结合第六方面的第三种可能的实现方式, 在第六方面的第四种可能的实 现方式中, 所述终端设备还包括: 第四确定模块, 用于在所述第二确定模块 根据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从所述两 个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图像之 前, 通过摄像头获取所述两个观看者中正在所述屏幕上操作的观看者的操作 方向; 和 /或, 第五确定模块, 用于在所述第二确定模块根据所述两个观看者 中正在所述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中 确定正在所述屏幕上操作的观看者所要操作的图像之前, 感知获取所述两个 观看者中正在所述屏幕上操作的观看者的操作方向, 其中, 所述屏幕为支持 悬浮触控功能的触摸屏。
结合第六方面的第一种可能的实现方式, 在第六方面的第五种可能的实 现方式中, 所述显示模块用于以 3D显示方式向所述两个观看者显示相互独 立的图像包括: 所述显示模块具体用于在所述屏幕显示两个独立的窗口, 以 3D显示方式将所述两个相互独立的图像分别在所述两个独立的窗口中显示; 所述终端设备还包括: 第二接收模块, 用于接收所述两个观看者分别发出的 操作所述两个独立的图像中所对应的图像的第二操作指令, 所述第二操作指 令是所述观看者通过所述屏幕上所对应的窗口发出的; 第二处理模块, 用于 根据所述第二操作指令对所对应的图像进行操作。
第七方面提供一种终端设备, 包括: 存储器, 用于存储程序; 处理器, 用于执行所述程序, 以用于: 通过对两个观看者中每个观看者的头像信息进 行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线 和预设的正向确定规则, 确定每条连线的正方向; 显示器, 用于在所述两个 连线的正方向相反时, 向所述两个观看者显示相互独立的图像。
结合第七方面, 在第七方面的第一种可能的实现方式中, 所述显示器具 体用于以 3D显示方式或 2D显示方式向所述两个观看者显示相互独立的图 像。
结合第七方面的第一种可能的实现方式, 在第七方面的第二种可能的实 现方式中, 所述终端设备还包括: 通信接口, 用于接收所述两个观看者中正 在所述屏幕上操作的观看者发出的第一操作指令; 所述处理器还用于根据所 述第一操作指令, 对所述两个相互独立的图像中正在所述屏幕上操作的观看 者所要操作的图像进行处理。
结合第七方面的第二种可能的实现方式, 在第七方面的第三种可能的实 现方式中, 所述处理器还用于在对所述两个相互独立的图像中正在所述屏幕 上操作的观看者所要操作的图像进行处理之前, 根据所述两个观看者中正在 所述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中确定正 在所述屏幕上操作的观看者所要操作的图像。
结合第七方面的第三种可能的实现方式, 在第七方面的第四种可能的实 现方式中, 所述通信接口还用于接收正在所述屏幕上操作的观看者通过切换 按键发出的切换指令; 所述处理器还用于根据所述切换指令从所述两个相互 独立的图像中确定正在所述屏幕上操作的观看者所要操作的图像。
结合第七方面的第三种可能的实现方式, 在第七方面的第五种可能的实 现方式中, 所述处理器还用于在根据所述两个观看者中正在所述屏幕上操作 的观看者的操作方向, 从所述两个相互独立的图像中确定正在所述屏幕上操 作的观看者所要操作的图像之前, 通过摄像头获取所述两个观看者中正在所 述屏幕上操作的观看者的操作方向, 或者, 感知获取所述两个观看者中正在 所述屏幕上操作的观看者的操作方向, 其中, 所述屏幕为支持悬浮触控功能 的触摸屏。
结合第七方面的第一种可能的实现方式, 在第七方面的第六种可能的实 现方式中, 所述显示器用于以 3D显示方式向所述两个观看者显示相互独立 的图像包括: 所述显示器具体用于在所述屏幕显示两个独立的窗口, 以 3D 显示方式将所述两个相互独立的图像分别在所述两个独立的窗口中显示; 所 述通信接口还用于接收所述两个观看者分别发出的操作所述两个独立的图像 中所对应的图像的第二操作指令, 所述第二操作指令是所述观看者通过所述 屏幕上所对应的窗口发出的; 所述处理器还用于根据所述第二操作指令对所 对应的图像进行操作。
第八方面提供一种终端设备, 包括: 第一确定模块, 对观看者的头像信 息进行识别, 确定所述头像信息中的双眼的连线, 根据所述双眼的连线和预 设的正向确定规则, 确定所述连线的正方向; 计算模块, 用于计算所述连线 的正方向和基准线的正方向之间的夹角, 所述基准线是根据所述屏幕的长边 或者所述屏幕的短边确定的; 第二确定模块, 用于根据所述夹角确定所述屏 幕的显示模式。
第九方面提供一种终端设备, 包括: 存储器, 用于存储程序; 处理器, 用于执行所述程序, 以用于: 对观看者的头像信息进行识别, 确定所述头像 信息中的双眼的连线, 根据所述双眼的连线和预设的正向确定规则, 确定所 述连线的正方向; 计算所述连线的正方向和基准线的正方向之间的夹角, 所 述基准线是根据所述屏幕的长边或者所述屏幕的短边确定的; 根据所述夹角 确定所述屏幕的显示模式。
本发明实施例提供的屏幕显示模式确定方法及终端设备, 终端设备通过 利用图像识别技术, 识别出至少两个观看者中每个观看者的头像信息中双眼 的连线, 计算双眼的连线的正方向与基准线的正方向之间的夹角, 对所有夹 角进行平均获得第一夹角, 根据该第一夹角确定屏幕的显示模式, 这样可以 克服单纯的依靠重力感应芯片造成屏幕显示模式设置不准确的问题, 有利于 提高确定屏幕显示模式的准确性, 进而提高用户使用的便利性。 附图说明 为了更清楚地说明本发明实施例或现有技术中的技术方案, 下面将对实 施例或现有技术描述中所需要使用的附图作一简单地介绍, 显而易见地, 下 面描述中的附图是本发明的一些实施例, 对于本领域普通技术人员来讲, 在 不付出创造性劳动性的前提下, 还可以根据这些附图获得其他的附图。
图 1为本发明一实施例提供的屏幕显示模式确定方法的流程图; 图 2 为本发明一实施例提供的终端设备上前置摄像头的一种结构示意 图;
图 3为本发明一实施例提供的摄像头釆集到的两个观看者的头部信息的 示意图; 图 4为本发明一实施例提供的确定的双眼的连线示意图;
图 5 为本发明一实施例提供的确定的双眼的连线的正方向的一种示意 图;
图 6为本发明一实施例提供的确定的双眼的连线的正方向的另一种示意 图;
图 7-图 10为本发明一实施例提供的双眼的连线的正方向与基准方向的夹 角的几种示意图;
图 11-图 14为本发明一实施例提供的终端设备支持的显示模式的几种示 意图;
图 15-图 17为本发明一实施例提供的终端设备支持的显示模式的另外几 种示意图;
图 18为本发明另一实施例提供的屏幕显示模式确定方法的流程图; 图 19为本发明又一实施例提供的屏幕显示模式确定方法的流程图; 图 20 为本发明又一实施例提供的摄像头釆集到的观看者的头像信息的 示意图;
图 21为本发明一实施例提供的终端设备的结构示意图;
图 22为本发明另一实施例提供的终端设备的结构示意图;
图 23为本发明又一实施例提供的终端设备的结构示意图;
图 24为本发明又一实施例提供的终端设备的结构示意图;
图 25为本发明又一实施例提供的终端设备的结构示意图;
图 26为本发明又一实施例提供的终端设备的结构示意图;
图 27为本发明又一实施例提供的终端设备的结构示意图。 具体实施方式 为使本发明实施例的目的、 技术方案和优点更加清楚, 下面将结合本发 明实施例中的附图, 对本发明实施例中的技术方案进行清楚、 完整地描述, 显然, 所描述的实施例是本发明一部分实施例, 而不是全部的实施例。 基于 本发明中的实施例, 本领域普通技术人员在没有作出创造性劳动前提下所获 得的所有其他实施例, 都属于本发明保护的范围。
图 1 为本发明一实施例提供的屏幕显示模式确定方法的流程图。 如图 1 所示, 本实施例的方法包括:
步骤 101、 通过对至少两个观看者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和预设的 正向确定规则, 确定每条连线的正方向。
本实施例的执行主体可以是任何可以支持横竖屏切换功能的终端设备, 例如可以是智能手机、 平板电脑、 个人数字助理( Personal Digital Assistant, 简称为 PDA )等。
本实施例不仅适用于支持 2D显示方式的终端设备,也适用于支持 3D显 示方式的终端设备。 对于支持 3D显示方式的终端设备来说, 由于其光栅的 狭缝方向是固定的, 所以狭缝棵眼 3D 的光栅仅适用于一个人竖直方向持握 终端设备情况下观看屏幕, 对于在横屏模式下观看屏幕以及在多人同时观看 屏幕的情况就会存在问题, 因此, 本实施例提供的屏幕显示模式确定方法尤 其适用于支持 3D显示方式的终端设备。
由于大部分终端设备都具有摄像功能, 因此, 终端设备可以通过终端设 备的摄像头 (例如, 前置摄像头) 实时釆集观看者的头部, 从而获取观看者 的头像信息。 这里每个观看者的头像信息实质上是由每个观看者的头部构成 的图像信息。 如图 2所示, 为终端设备上前置摄像头的结构示意图。 如图 3 所示, 为摄像头釆集到的两个观看者的头部信息的示意图。
由于大部分终端设备都支持图像识别技术, 因此, 在获取到每个观看者 的头像信息之后, 终端设备可以对每个观看者的头像信息进行图像识别, 从 每个观看者的头像信息中确定表征该观看者的各个特征, 例如确定出该观看 者的眼睛、 嘴等比较突出的特征以及这些特征在该观看者的头像信息中的位 置。 图像识别属于现有技术, 实现方式不再赘述。 并且, 对每个观看者的头 像信息进行图像识别的过程也相同。
无论是一个观看者观看终端设备的屏幕, 还是同时有多个观看者观看终 端设备的屏幕, 对每个观看者来说, 在观看终端设备的屏幕时, 通常观看者 的双眼是直视观看终端设备的屏幕的, 即观看者正对屏幕。 因此, 终端设备 通过对每个观看者的头像信息进行图像识别, 确定每个头像信息中的双眼位 置, 进而获得双眼的连线, 如图 4所示, 其中双眼直视过去的方向与双眼的 连线的方向相垂直; 另外, 除了双眼的连线外, 还需要确定一个方向, 用于 区分头像信息是正的还是倒着的以及便于区分后面出现的夹角的大小, 故可 以预先设定一个正方向确定规则, 用于确定双眼的连线的正方向, 以便于区 分头像信息的正反和后面出现夹角的大小。 例如, 该正方向确定规则可以是: 以头像信息中鼻子或嘴的位置位于该头像信息中双眼的连线的右侧确定该连 线的正方向, 即沿着双眼的连线, 从该连线的一端看过去, 以头像信息中鼻 子或嘴的位置位于该连线的右侧为准,则看过去的方向即为该连线的正方向, 如图 5 中双眼的连线上的箭头所示的方向。 基于此, 根据每个头像信息中双 眼的连线和预设正向确定规则, 确定每条连线的正方向包括: 确定每个头像 信息中鼻子或嘴的位置位于所述连线右侧时的方向为所述连线的正方向。 或 者, 该正方向确定规则也可以是: 以头像信息中鼻子或嘴的位置位于该头像 信息中双眼的连线的左侧确定该连线的正方向, 即沿着双眼的连线, 从连线 的一端看过去, 以头像信息中鼻子或嘴的位置位于该连线的左侧为准, 则看 过去的方向即为该连线的正方向,如图 6中双眼的连线上的箭头所示的方向。 基于此, 根据每个头像信息中双眼的连线和预设正向确定规则, 确定每条连 线的正方向包括: 确定每个头像信息中鼻子或嘴的位置位于所述连线左侧时 的方向为所述连线的正方向。 在此说明, 对每个观看者来说, 其头像信息中 双眼的连线的正方向的确定方式都相同, 故在图 5和图 6中仅以一个观看者 的头像信息为例进行说明。
经过上述处理, 终端设备就会得到每个观看者的头像信息中双眼的连线 以及每条连线的正方向。
步骤 102、 当所有双眼的连线的正方向相同时, 计算每条连线的正方向 和基准线的正方向之间的夹角, 对所有的夹角进行平均, 获得第一夹角; 所 述基准线是根据所述屏幕的长边或者屏幕的短边确定的。
本实施例中, 需要确定一个基准线, 进而通过计算每条双眼的连线的正 方向与该基准线的正方向之间的夹角, 通过对所有的夹角进行平均, 获得第 一夹角, 并通过计算出的第一夹角确定屏幕的显示模式。 本实施例中, 以屏 幕的长边或者屏幕的短边为基准来确定基准线。 例如, 可以直接将屏幕的长 边或者屏幕的短边作为基准线, 除此之外, 本实施例中的基准线还可以是屏 幕的长边的平行线或者是屏幕的短边的平行线。 其中, 屏幕的长边的平行线 是指与屏幕的长边平行的线; 屏幕的短边的平行线是指与屏幕的短边平行的 线。 可选的, 如果屏幕是竖向显示, 则可以选择屏幕的长边或者屏幕的长边 的平行线作为基准线; 如果屏幕是横向显示, 则可以选择屏幕的短边或者屏 幕的短边的平行线作为基准线, 但不限于此。
在确定基准线之后, 还需要确定基准线的正方向。 例如, 可以确定基准 线的延长线中一条延长线所指向的方向作为基准线的正方向。 举例说明, 首 先可以设定屏幕的顶部、 底部、 左侧和右侧, 并以屏幕的顶部、 底部、 左侧 和右侧为基准, 从基准线的延长线中选择一条延长线所指向的方向作为基准 线的正方向。 例如, 以屏幕竖向显示为准确定出屏幕的顶部、 底部、 左侧和 右侧, 并以基准线为屏幕的长边或屏幕的长边的平行线为例, 则可以选择基 准线的延长线中指向屏幕底部的延长线所指向的方向作为基准线的正方向, 或者可以选择基准线的延长线中指向屏幕顶部的延长线所指向的方向作为基 准线的正方向。 又例如, 以屏幕横向显示为准确定出屏幕的顶部、 底部、 左 侧和右侧, 并以基准线为屏幕的短边或屏幕的短边的平行线为例, 则可以选 择基准线的延长线中指向屏幕的底部的延长线所指向的方向作为基准线的正 方向, 或者可以选择基准线的延长线中指向屏幕顶部的延长线所指向的方向 作为基准线的正方向。
在确定出每条双眼的连线的正方向和基准线的正方向之后, 可选的, 终 端设备可以先确定每个观看者的头像信息中双眼位置分别对应的横向坐标和 纵向坐标, 例如(Xa, Ya )和(Xb, Yb ) 。 其中, 横向坐标所在的横向坐 标轴的方向是指与基准线的正方向垂直的方向, 纵向坐标所在纵向坐标轴的 方向为所述基准线的正方向。 例如, 如果在屏幕竖向显示时选择屏幕的长边 或屏幕的长边的平行线作为基准线, 且以基准线的延长线中指向屏幕底部的 方向为基准线的正方向, 则屏幕的短边或屏幕的短边的平行线指向屏幕右侧 的方向即为横向坐标轴的方向, 屏幕的长边或屏幕的长边的平行线指向屏幕 的底部的方向即为纵向坐标轴的方向; 如果在屏幕横向显示时选择屏幕的短 边或者屏幕的短边的平行线作为基准线, 并以基准线的延长线中指向屏幕的 底部的方向作为基准线的正方向, 则屏幕的短边或屏幕的短边的平行线指向 屏幕的底部的方向即为纵向坐标轴的方向, 屏幕的长边或屏幕的长边的平行 线指向屏幕的右侧的方向即为横向坐标轴的方向。 其中, 在确定横向坐标轴 和纵向坐标轴之后, 可以先确定坐标系中的原点坐标, 进而可以确定每个头 像信息中任一点的坐标值。
在确定出每个观看者的头像信息中双眼位置分别对应的横向坐标和纵向 坐标之后, 终端设备进一步计算出每个头像信息中所确定的两个横向坐标之 差的绝对值和两个纵向坐标之差的绝对值, 然后对两个横向坐标之间的绝对 值和两个纵向坐标之差的绝对值取反正切, 获得该头像信息中双眼的连线的 正方向与基准线的正方向之间的夹角, 即夹角 a=arctan{ ( Xb - Xa ) I ( Yb - Ya ) }。 举例说明, 假设以屏幕的长边为基准线, 且以屏幕的长边指向屏幕的 底部的方向为基准线的正方向, 则纵向坐标轴的方向为屏幕的长边指向屏幕 的底部的方向, 横向坐标轴的方向为屏幕的短边或屏幕的短边的平行线指向 屏幕的右侧的方向, 基于此, 每条双眼的连线的正方向与基准线的正方向的 夹角 a的两种情况分别如图 Ί和图 8所示。 假设以屏幕的短边为基准线, 且 以屏幕的短边指向屏幕的右侧的方向为基准线的正方向, 则纵向坐标轴的方 向为屏幕的短边指向屏幕的右侧的方向, 横向坐标轴的方向为屏幕的长边指 向屏幕的底部的方向, 基于此, 双眼的连线的正方向与基准线的正方向的夹 角 a的两种情况分别如图 9和图 10所示。 其中, 在图 9所示情景中, 夹角 a 为 0, 故未图示出。 在此说明, 计算每个头像信息中双眼的连线的正方向与 基准线的正方向之间的夹角的方式相同,故在图 7-图 10中仅以一个头像信息 为例进行说明。
终端设备计算出每条连线的正方向与基准线的正方向之间的夹角之后, 对所有夹角进行平均可以得到第一夹角。 在本实施例中, 对每个观看者观看 屏幕上显示的图像的角度不做限制, 例如每个观看者都可以直视(即正对) 屏幕上的图像, 或者观看者也可以根据实际情况以斜视的方式观看屏幕上的 图像, 即观看者不是正对屏幕上的图像。 其中, 尽量保证每个观看者都能正 对屏幕上的图像是一种优选的观看状态, 本实施例的屏幕显示模式确定方法 正是为达到该目的而提出的。
步骤 103、 根据所述第一夹角确定屏幕的显示模式。
计算出第一夹角之后, 就可以根据第一夹角确定屏幕的显示模式。 根据 第一夹角调整的显示模式能够考虑到每个观看者的观看情况。 其中, 确定屏 幕的显示模式主要是指确定屏幕是以横向显示还是纵向显示。
下面对步骤 103的实施方式进行举例说明。 首先假设以屏幕的长边为基 准线, 以屏幕的长边指向屏幕底部的方向为基准线的正方向, 则屏幕的长边 指向屏幕的底部的方向即为纵坐标轴, 屏幕的短边指向屏幕的右侧的方向即 为横坐标轴, 并以头像信息中鼻子或嘴的位置位于双眼的连线右侧确定该连 线的正方向, 则以终端设备支持竖屏正向显示模式、 横屏右向显示模式、 竖 屏反向显示模式和横屏左向显示模式这四种显示模式为例, 说明根据第一夹 角 b确定屏幕使用的显示模式的过程。其中,竖屏正向显示模式如图 11所示; 横屏右向显示模式如图 12所示; 竖屏反向显示模式如图 13所示; 横屏左向 显示模式如图 14所示。 图 11-图 14中的圓圈代表操作按键或触摸按键。 图 11-图 14所示显示模式,首先以终端设备是竖向还是横向进行区分,再以 LCD 屏与终端设备上的操作按键或触摸按键之间的位置关系确定, 例如, 如果终 端设备是竖向的, 且 LCD屏位于操作按键或触摸按键的上方, 则该显示模式 为竖屏正向, 如图 11所示; 如果终端设备是竖向的, 且 LCD屏位于操作按 键或触摸按键的下方, 则该显示模式为竖屏反向, 如图 13所示; 如果终端设 备是横向的, 且 LCD屏位于操作按键或触摸按键的左侧, 则该显示模式是横 屏左向, 如图 14所示; 如果终端设备是横向的, 且 LCD屏位于操作按键或 触摸按键的右侧, 则该显示模式是横屏右向, 如图 12所示。 所述操作按键可 以是物理按键, 也可以是各种功能按键。
基于上述假设, 根据第一夹角 b确定屏幕使用的显示模式的过程包括: 如果所述第一夹角 b在第一度数门限且与第二度数门限之间, 确定屏幕 的显示模式为竖屏正向显示模式。
如果所述第一夹角 b在第二度数门限度与第三度数门限之间, 确定屏幕 的显示模式为横屏右向显示模式。
如果所述第一夹角 b在第三度数门限与第四度数门限之间, 确定屏幕的 显示模式为竖屏反向显示模式。
如果所述第一夹角 b在第四度数门限与第一度数门限之间, 确定屏幕的 显示模式为横屏左向显示模式。
具体的, 以第一度数门限为 45。 , 第二度数门限为 135。, 第三度数门限 为 225。, 第四度数门限为 315。(即 -45。 )为例, 则终端设备可以在第一夹角 b在 45。 〜135。 之间时,设置屏幕的显示模式为竖屏正向显示,如图 15所示; 在第一夹角 b在 135° 〜225。 之间时, 设置屏幕的显示模式为横屏右向显示, 如图 16所示; 在第一夹角 b在 225° 〜315° 之间时, 设置屏幕的显示模式为 竖屏反向显示, 如图 17所示; 在第一夹角 b在 315° 〜45° 之间时, 设置屏 幕的显示模式为横屏左向显示。 在图 15-图 17中, LCD长边指向屏幕的底部 的方向即为基准线的正方向。
上面的度数门限只是简单的实现举例, 实际上, 这个度数门限可以根据 实际应用进行调整。 另外, 才艮据上面的度数门限, 如果第一夹角 b位于不同 度数门限范围, 就会发生显示模式的切换, 这样当第一夹角 b在某个度数门 限附近变化导致第一夹角 b属于不同度数门限范围时, 就会引起频繁的切换 显示模式。 这种情况下频繁切换显示模式实际上是不必要的, 所以为了避免 在第一夹角 b在某个度数门限附近时引起频繁切换显示模式的问题, 可以将 上述度数门限由某个具体数值设置为一个数值范围, 例如某个度数门限可以 设置为 45。 〜48。 ,这样当第一夹角 b在 45。 〜58。 之间变化时只需要在大于 48° 之后才发生一次切换, 减少了显示模式切换的次数。
在一可选实施方式中, LCD的发展趋势是支持棵眼 3D效果, 即依赖光 栅原理等方式, 将不同的象素点发出的光线只能以一定的角度输出, 这样观 看者的两只眼睛将可以看到不同的图像, 从而形成 3D 的立体效果。 目前, 大部分终端设备可以同时支持 2D和 3D显示模式,则对于同时支持 2D和 3D 显示模式的终端设备来说, 除了可以进行屏幕显示方向 (例如横屏、 竖屏) 切换之外, 还可以进行 2D和 3D显示方式之间的切换。 可选的, 如果屏幕的 显示模式为竖屏正向显示模式或竖屏反向显示模式, 由于在竖屏显示这种情 况下, 对左右眼两个方向做了偏光, 光栅可以区分左右眼分别看到的图像, 进而可以对左右眼看到的图像进行叠加处理形成 3D 图像, 也就是说在竖屏 显示模式下光栅角度可以满足 3D显示方式的要求,故可以釆用 2D显示方式 或 3D显示方式; 如果屏幕的显示模式为横屏右向显示模式或横屏左向显示 模式, 在横屏右向或左向显示这种情况下, 通常只对右眼方向或左眼方向做 了偏光, 光栅只能区分出右目艮看到的图像或是左眼看到的图像, 因此只能显 示平面图像, 也就是说在横屏右向或左向显示模式下, 光栅角度基本不能满 足 3D显示方式的要求, 故可以釆用 2D显示方式。
其中, 如果原来以 2D显示方式显示, 但需要切换为 3D显示方式, 则终 端设备可以将屏幕的显示方式由 2D切换为 3D; 如果原来是以 3D显示方式 显示, 但需要切换为 2D显示方式, 则终端设备可以将屏幕的显示方式由 3D 切换为 2D。其中,棵眼 3D是一种釆用光栅技术保证 LCD屏幕显示的图象只 能以一定的角度被外界看到的显示技术。 要实现 3D显示, 则要求终端设备 的屏幕能同时显示两幅不同的图象, 这两幅图像分别是针对观看者的左眼和 右眼的图像, 且每幅图象只能在指定的角度被观看者看到, 这样观看者的左 眼和右眼会分别接收不同的图象, 在大脑中, 将两幅图象进行叠加就形成了 立体的概念。 基于此, 将屏幕的显示模式由 3D切换为 2D, 只需将原先屏幕 同时显示的两幅不同的图象, 变更为两幅内容完全一致的图像即可, 这样观 看者的左眼和右眼看到的其实是一幅图象, 也就是日常普通的 2D显示效果。 相反, 将屏幕的显示模式由 2D切换为 3D, 只需将原先屏幕同时显示的相同 的图像, 变更为同时显示两幅不同的图像即可, 这样观看者的左眼和右眼看 到的就是不同的图像, 在大脑中经过叠加就会形成立体的概念。
由于在 3D显示方式中, 观看者的左右眼看到的图像是不同的, 因此, 对于竖屏反向显示模式来说, 除了要将图像颠倒后以 3D显示方式进行显示 之外, 还要考虑观看者的左右眼图像的切换。 例如, 与竖屏正向显示方式相 比, 如果在竖屏正向显示方式下从光栅一侧输出的是左眼看到的图像的话, 那么在竖屏反向显示方式下从光栅的相同侧输出的是右眼看到的图像。
由上述可见, 本实施例提供的屏幕显示模式确定方法, 终端设备通过利 用图像识别技术, 识别出至少两个观看者中每个观看者的头像信息中双眼的 连线, 确定每条连线的正方向, 计算每条连线的正方向与根据屏幕的长边或 短边确定的基准线的正方向之间的夹角, 再对所有夹角进行平均获得第一夹 角, 根据该第一夹角确定屏幕的显示模式, 这样可以克服单纯的依靠重力感 应芯片造成屏幕显示模式设置不准确的问题, 有利于提高确定屏幕显示模式 的准确性, 进而提高用户使用的便利性。
图 18为本发明另一实施例提供的屏幕显示模式确定方法的流程图。如图
18所示, 本实施例的方法包括:
步骤 201、 通过对两个观看者中每个观看者的头像信息进行识别, 确定 每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和预设的正方 向确定规则, 确定每条连线的正方向。
本实施例的执行主体可以是任何可以支持竖屏切换功能的终端设备, 例 如可以是智能手机、 平板电脑、 PDA等。
本实施例不仅适用于支持 2D显示方式的终端设备,也适用于支持 3D显 示方式的终端设备。 对于支持 3D显示方式的终端设备来说, 由于其光栅的 狭缝方向是固定的, 所以狭缝棵眼 3D 的光栅仅适用于一个人竖直方向持握 终端设备情况下观看屏幕, 对于在横屏模式下观看屏幕以及在多人同时观看 屏幕的情况就会存在问题, 因此, 本实施例提供的屏幕显示模式确定方法尤 其适用于支持 3D显示方式的终端设备。
由于大部分终端设备都具有摄像功能, 因此, 终端设备首先可以通过终 端设备的前置摄像头实时釆集每个观看者的头部, 从而获取每个观看者的头 像信息。 这里每个观看者的头像信息实质上是由每个观看者的头部构成的图 像信息。
如图 3所示, 为前置摄像头釆集到两个观看者的头像信息的示意图。 由于大部分终端设备都支持图像识别技术, 因此, 在获取到两个观看者 中每个观看者的头像信息之后, 终端设备可以分别对每个观看者的头像信息 进行图像识别, 确认当前图片上有两个观看者的头像信息, 从每个观看者的 头像信息中确定表征该观看者的各个特征, 例如确定出该观看者的眼睛、 嘴 等比较突出的特征以及这些特征在头像信息中的位置。 图像识别属于现有技 术, 实现方式不再赘述。 并且, 对每个观看者的头像信息进行图像识别的过 程也相同。
无论是一个观看者观看终端设备的屏幕, 还是同时有两个观看者观看终 端设备的屏幕, 对每个观看者来说, 观看者可以双眼直视观看终端设备的屏 幕。 因此, 对每个观看者来说, 终端设备通过对该观看者的头像信息进行图 像识别, 确定该头像信息中的双眼位置, 进而获得头像信息中双眼的连线; 另外, 除了双眼位置和双眼的连线外, 还需要确定一个方向, 用于区分观看 者的头像信息是正的还是倒着的, 故可以预先设定一个正方向确定规则, 用 于确定双眼的连线的正方向, 以便于区分头像信息的正反。 例如, 该正方向 确定规则可以是: 以头像信息中的鼻子或嘴的位置位于头像信息中双眼的连 线的右侧确定该连线的正方向, 即沿着双眼的连线, 从该连线的一端看过去, 以头像信息中鼻子或嘴的位置位于该连线的右侧为准, 则看过去的方向即为 双眼的连线的正方向。 基于此, 根据每个头像信息中双眼的连线和预设的正 方向确定规则, 确定每条连线的正方向包括: 确定头像信息中鼻子或嘴的位 置位于所述连线右侧时的方向为所述连线的正方向。 或者, 该正方向确定规 则也可以是: 以头像信息中的鼻子或嘴位于头像信息中双眼的连线的左侧确 定该连线的正方向, 即沿着双眼的连线, 从连线的一端看过去, 以头像信息 中鼻子或嘴的位置位于该连线的左侧为准, 则看过去的方向为双眼的连线的 正方向。 基于此, 根据每个头像信息中双眼的连线和预设正向确定规则, 确 定每条连线的正方向包括: 确定头像信息中鼻子或嘴的位置位于所述连线左 侧时的方向为所述连线的正方向。 在此说明, 对每个观看者来说, 其头像信 息中双眼的连线的正方向的确定方式都相同, 具体图示可参见图 5和图 6。
经过上述处理, 终端设备就会得到每个观看者的头像信息中双眼的连线 以及每条连线的正方向。
步骤 202、 如果两条连线的正方向相反, 向两个观看者显示相互独立的 图像。
在 3D显示方式下有一种特殊情况, 当观看者为两个, 且这两个观看者 的头像信息中双眼的连线的正方向相反时, 无论终端设备是釆用 3D显示方 式还是釆用 2D显示方式, 都会有一个观看者无法看到显示屏上的内容, 所 以终端设备可以继续保持原有的显示方式, 例如, 如果终端设备当前显示模 式为 3D显示方式, 则可以继续使用 3D显示方式, 还可以设置屏幕的显示模 式为竖屏正向 3D显示或竖屏反向 3D显示; 另外, 终端设备也可以切换显示 方式, 例如如果终端设备当前显示模式为 3D显示方式, 则可以设置屏幕的 显示模式为 2D显示方式, 例如, 可以设置屏幕的显示模式为竖屏正向 2D显 示或竖屏反向 2D显示。 基于此, 本实施例中的终端设备可以在两个观看者 的双眼的连线的正方向相反时, 以 3D显示方式或 2D显示方式向两个观看者 显示相互独立的图像, 使得两个观看者都能在屏幕上看到图像, 只是看到的 图像可能不同。
其中, 观看者为两个, 且这两个观看者的头像信息中双眼的连线的正方 向相反的情景, 也即是两个观看者面对面一起观看屏幕的情景, 所述面对面 一起观看屏幕类似于两人下棋的情景, 棋盘相当于本实施例的屏幕, 两个下 棋者在棋盘两侧的位置关于相当于本实施例所述的两个观看者面对面的位置 关系。 如果终端设备支持 3D显示方式, 则可以通过屏幕以 3D显示模式向两 个观看者显示图像。 可选的, 终端设备可以通过屏幕, 以 3D显示模式向两 个观看者显示相互独立的图像, 即给两个观看者分别显示不同的图像, 这种 方式尤其适用于两个观看者在玩打牌或军棋等这类需要两个观看者看到不同 内容且互相不能看到对方内容的应用场景, 但不限于这种显示方式。
针对观看者为两个, 且这两个观看者的头像信息中双眼的连线的正方向 相反, 且终端设备通过屏幕分别向两个观看者显示相互独立的图像的情况, 需要解决对屏幕的区分控制问题。 基于此, 在一可选实施方式中, 所述屏幕 显示模式确定方法还包括以下步骤:
终端设备接收两个观看者中正在屏幕上操作的观看者发出的第一操作指 令; 这里的第一操作指令可以是两个观看者中的一个观看者通过屏幕发出的 操作指令, 例如可以以触摸屏幕、 点击屏幕或双击屏幕等方式发出第一操作 指令。 这里的 "第一" 既不表示个数, 也没有先后顺序的限定, 仅是为了与 后续出现的其他操作指令进行区分。
终端设备根据第一操作指令, 对正在屏幕上操作的观看者所操作的图像 进行处理, 其中所述屏幕上可以独立显示两个图像。 根据显示的图像的不同, 终端设备根据第一操作指令, 对正在屏幕上操作的观看者所操作的图像所进 行的处理可能不同, 例如可能是移动该图像中的部分图像信息、 也可能是修 改该图像中的部分图像信息、 还可能是删除图像中的部分图像信息等。 举例 说明, 如果两个观看者正通过屏幕下象棋, 则正在屏幕上操作的观看者发出 的第一操作指令可能是移动某个象棋到指定位置的指令, 则终端设备可以根 据该第一操作指令, 将正在屏幕上操作的观看者所能看到的图像中的某个象 棋移动到指定位置, 等等。
可选的, 终端设备根据第一操作指令, 对正在屏幕上操作的观看者所操 作的图像进行处理之前, 需要先确定正在屏幕上操作的观看者所操作的图像 是两个相互独立的图像中哪个。
在一可选实施方式, 终端设备根据两个观看者中正在屏幕上操作的观看 者的操作方向, 从两个相互独立的图像中确定正在屏幕上操作的观看者所要 操作的图像。 由于两个观看者是面对面的, 所以如果发出操作图像的不同操 作指令是以在屏幕上的动作方向进行区分的, 则对于同一操作指令, 两个观 看者发出操作的动作方向是相反的, 因此, 终端设备可以通过识别正在操作 屏幕的观看者的操作方向, 从而确定是哪一方向的观看者, 也就确定了该观 看者应该操作的图像是哪个。
可选的, 终端设备可以通过摄像头拍摄正在操作屏幕的观看者的操作过 程, 从而获取正在操作屏幕的观看者的操作方向。 该实施方式只需终端设备 具有摄像头即可, 对屏幕的具体实现可以没有特殊要求。
可选的, 终端设备可以釆用支持悬浮触控功能的触摸屏作为其屏幕。 则 终端设备可以通过感知获取两个观看者中正在屏幕上操作的观看者的操作方 向。 具体的, 悬浮触控是通过在一个电容触摸屏幕上, 同时运行自电容和互 电容来实现的。 互电容用于完成正常的触碰感应, 包括多点触控; 而自电容 用于检测悬停在上方的手指。 由于悬浮触控技术依赖于自电容, 因此不可能 实现悬浮多点触控。 也就是说, 当进行悬浮操作时, 屏幕不支持多点触控。 屏幕只能在接触触碰情况下实现多点触控。
当悬浮触控和接触触控功能同时在终端设备的屏幕上实现时, 可以利用 此来判断正在屏幕上操作的观看者的操作方向。 具体过程为: 当接触触控中 断发生后, 读取触摸屏数据, 确定接触触控发生点的坐标。 在有接触触控的 时候, 考虑到观看者用手点击触摸屏的操作习惯, 即一般手指会和触摸屏之 间有一个倾斜角度, 这样, 通过同时读取自感电容坐标, 就可以确定观看者 的手指的指向。 即由于观看者的手指有一定的倾斜角度接触屏幕, 互感电容 和自感电容获取的中心点坐标信息是不一样的, 比较这个信息, 就可以确定 观看者的手指的朝向, 从而确定由哪个观看者控制屏幕, 也就确定了该观看 者应该控制的图像。
在另一可选实施方式中, 终端设备可以提供供两个观看者进行切换的切 换按键, 该按键是设置在终端设备上硬件部件。 具体的, 终端设备可以接收 正在屏幕上操作的观看者通过切换按键发出的切换指令, 根据该切换指令确 定由哪个观看者控制屏幕, 也就确定了正在屏幕上操作的观看者所要操作的 图像。 例如, 可以预先设定首先在屏幕上操作的观看者, 则当终端设备第一 次接收到观看者通过切换按键发出的切换指令时, 则可以确定发出该切换指 令的观看者是不同于首先在屏幕上操作的观看者的另一个观看者, 之后终端 设备每接收到一次切换指令, 就可以确定此时在屏幕上操作的观看者是与接 收到该切换指令之前在屏幕上操作的观看者不同的另一观看者, 从而也就确 定了另一个观看者所要操作的图像, 应该是另一观看者所能看到的图像。 基于上述各实施方式, 终端设备通过屏幕向两个观看者显示相互独立的 图像的方式包括: 在屏幕上显示两个独立的窗口, 将两个相互独立的图像分 别在两个独立的窗口中显示。 这种方式实际上是将屏幕一分为二, 这两个区 域单独显示并单独控制。 基于此, 本实施例的方法还包括: 终端设备接收两 个观看者分别发出的操作两个独立图像中所对应的图像的第二操作指令, 并 根据第二操作指令对所对应的图像进行操作。 在该实施方式中, 将每个观看 者通过各自所对应的窗口发出的操作指令称为第二操作指令, 这里的 "第二" 既不表示个数,也没有先后顺序的限定,仅是为了与上面出现的操作指令(即 第一操作指令)相区分。 在此说明, 每个观看者在自己对应的窗口中进行操 作以向终端设备发出操作该窗口中的图像(即观看者所能看到的图像) 的操 作指令。
由上述可见, 本实施例提供的屏幕显示模式确定方法, 终端设备同时根 据两个观看者的头像信息中双眼的连线, 得到每个头像信息中双眼的连线的 正方向, 在两条连线的正方向相反时, 向两个观看者显示相互独立的图像, 从而解决了两个观看者同时观看屏幕时可能出现的某个观看者无法看到图像 的问题。
图 19为本发明又一实施例提供的屏幕显示模式确定方法的流程图。如图 19所示, 本实施例的方法包括:
步骤 301、 对观看者的头像信息进行识别, 确定所述头像信息中的双眼 的连线, 根据所述双眼的连线和预设的正向确定规则, 确定所述连线的正方 向。
步骤 302、 计算所述连线的正方向和基准线的正方向之间的夹角, 所述 基准线是根据所述屏幕的长边或者所述屏幕的短边确定的。
步骤 303、 根据所述夹角确定所述屏幕的显示模式。
本实施例的执行主体可以是任何可以支持横竖屏切换功能的终端设备, 例如可以是智能手机、 平板电脑、 PDA等。
由于大部分终端设备都具有摄像功能, 因此, 终端设备可以通过终端设 备的摄像头 (例如, 前置摄像头) 实时釆集观看者的头部, 从而获取观看者 的头像信息。 这里每个观看者的头像信息实质上是由每个观看者的头部构成 的图像信息。 如图 2所示, 为终端设备上前置摄像头的结构示意图。 如图 20 所示, 为摄像头釆集到的观看者的头部信息的示意图。
由于大部分终端设备都支持图像识别技术, 因此, 在获取到观看者的头 像信息之后, 终端设备可以对观看者的头像信息进行图像识别, 从观看者的 头像信息中确定表征该观看者的各个特征, 例如确定出该观看者的眼睛、 嘴 等比较突出的特征以及这些特征在该观看者的头像信息中的位置。 图像识别 属于现有技术, 实现方式不再赘述。
观看者在观看终端设备的屏幕时, 通常观看者的双眼是直视观看终端设 备的屏幕的, 即观看者正对屏幕。 因此, 终端设备通过对观看者的头像信息 进行图像识别, 确定头像信息中的双眼位置, 进而获得双眼的连线, 如图 4 眼的连线外, 还需要确定一个方向, 用于区分头像信息是正的还是倒着的以 及便于区分后面出现的夹角的大小, 故可以预先设定一个正方向确定规则, 用于确定双眼的连线的正方向, 以便于区分头像信息的正反和后面出现夹角 的大小。 例如, 该正方向确定规则可以是: 以头像信息中鼻子或嘴的位置位 于该头像信息中双眼的连线的右侧确定该连线的正方向,即沿着双眼的连线, 从该连线的一端看过去, 以头像信息中鼻子或嘴的位置位于该连线的右侧为 准, 则看过去的方向即为该连线的正方向, 如图 5 中双眼的连线上的箭头所 示的方向。 基于此, 根据每个头像信息中双眼的连线和预设正向确定规则, 确定每条连线的正方向包括: 确定每个头像信息中鼻子或嘴的位置位于所述 连线右侧时的方向为所述连线的正方向。 或者, 该正方向确定规则也可以是: 以头像信息中鼻子或嘴的位置位于该头像信息中双眼的连线的左侧确定该连 线的正方向, 即沿着双眼的连线, 从连线的一端看过去, 以头像信息中鼻子 或嘴的位置位于该连线的左侧为准, 则看过去的方向即为该连线的正方向, 如图 6中双眼的连线上的箭头所示的方向。 基于此, 根据每个头像信息中双 眼的连线和预设正向确定规则, 确定每条连线的正方向包括: 确定每个头像 信息中鼻子或嘴的位置位于所述连线左侧时的方向为所述连线的正方向。
其次, 本实施例还需要确定一个基准线, 进而计算双眼的连线的正方向 与该基准线的正方向之间的夹角,并通过计算出的夹角确定屏幕的显示模式。 本实施例中, 以屏幕的长边或者短边为基准来确定基准线。 例如, 可以直接 将屏幕的长边或者是屏幕的短边作为基准线, 除此之外, 本实施例中的基准 线还可以是屏幕的长边的平行线或者是屏幕的短边的平行线。 其中, 屏幕的 长边的平行线是指与屏幕的长边平行的线; 屏幕的短边的平行线是指与屏幕 的短边平行的线。 可选的, 如果屏幕是竖向显示, 则可以选择屏幕的长边或 者屏幕的长边的平行线作为基准线; 如果屏幕是横向显示, 则可以选择屏幕 的短边或者屏幕的短边的平行线作为基准线, 但不限于此。
在确定基准线之后, 还需要确定基准线的正方向。 例如, 可以确定基准 线的延长线中一条延长线所指向的方向作为基准线的正方向。 举例说明, 首 先可以设定屏幕的顶部、 底部、 左侧和右侧, 并以屏幕的顶部、 底部、 左侧 和右侧为基准从基准线的延长线中选择一条延长线所指向的方向作为基准线 的正方向。 例如, 以屏幕竖向显示为准确定出屏幕的顶部、 底部、 左侧和右 侧, 并以基准线为屏幕的长边或屏幕的长边的平行线为例, 则可以选择基准 线的延长线中指向屏幕底部的延长线所指向的方向作为基准线的正方向, 或 者可以选择基准线的延长线中指向屏幕顶部的延长线所指向的方向作为基准 线的正方向。 又例如, 以屏幕横向显示为准确定出屏幕的顶部、 底部、 左侧 和右侧, 并以基准线为屏幕的短边或屏幕的短边的平行线为例, 则可以选择 基准线的延长线中指向屏幕的底部的延长线所指向的方向作为基准线的正方 向, 或者可以选择基准线的延长线中指向屏幕顶部的延长线所指向的方向作 为基准线的正方向。
在确定出双眼的连线的正方向和基准线的正方向之后, 可选的, 终端设 备可以先确定观看者的头像信息中双眼位置分别对应的横向坐标和纵向坐 标, 例如(Xa, Ya )和(Xb, Yb ) 。 其中, 横向坐标所在的横向坐标轴的 方向是指与基准线的正方向垂直的方向, 纵向坐标所在纵向坐标轴的方向为 所述基准线的正方向。 例如, 如果在屏幕竖向显示时选择屏幕的长边或屏幕 的长边的平行线作为基准线, 且以基准线的延长线中指向屏幕底部的方向为 基准线的正方向, 则屏幕的短边或屏幕的短边的平行线指向屏幕右侧的方向 即为横向坐标轴的方向, 屏幕的长边或屏幕的长边的平行线指向屏幕的底部 的方向即为纵向坐标轴的方向; 如果在屏幕横向显示时选择屏幕的短边或者 屏幕的短边的平行线作为基准线, 并以基准线的延长线中指向屏幕的底部的 方向作为基准线的正方向, 则屏幕的短边或屏幕的短边的平行线指向屏幕的 底部的方向即为纵向坐标轴的方向, 屏幕的长边或屏幕的长边的平行线指向 屏幕的右侧的方向即为横向坐标轴的方向。 其中, 在确定横向坐标轴和纵向 坐标轴之后, 可以先确定坐标系中的原点坐标, 进而可以确定头像信息中任 一点的坐标值。
在确定出观看者的头像信息中双眼位置分别对应的横向坐标和纵向坐标 之后, 终端设备进一步计算两个横向坐标之差的绝对值和两个纵向坐标之差 的绝对值, 然后对两个横向坐标之间的绝对值和两个纵向坐标之差的绝对值 取反正切, 获得该头像信息中双眼的连线的正方向与基准线的正方向之间的 夹角, 即夹角 a=arctan{ ( Xb _ Xa ) / ( Yb _ Ya ) }。 举例说明, 假设以屏幕 的长边为基准线,且以屏幕的长边指向屏幕的底部的方向为基准线的正方向, 则纵向坐标轴的方向为屏幕的长边指向屏幕的顶部的方向, 横向坐标轴的方 向为屏幕的短边或屏幕的短边的平行线指向屏幕的右侧的方向, 基于此, 双 眼的连线的正方向与基准线的正方向的夹角 a的两种情况分别如图 7和图 8 所示。 假设以屏幕的短边为基准线, 且以屏幕的短边指向屏幕的右侧的方向 为基准线的正方向, 则纵向坐标轴的方向为屏幕的短边指向屏幕的右侧的方 向, 横向坐标轴的方向为屏幕的长边指向屏幕的底部的方向, 基于此, 双眼 的连线的正方向与基准线的正方向的夹角 a的两种情况分别如图 9和图 10所 示。 其中, 在图 9所示情景中, 夹角 a为 0, 故未图示出。
计算出夹角 a之后, 就可以根据夹角 a确定屏幕的显示模式。 其中, 根 据夹角 a确定屏幕的显示模式, 与根据第一夹角 b确定屏幕的显示模式相类 似, 具体举例说明可参见上述对步骤 103的举例说明, 在此不再赘述。
在一可选实施方式中, 除了对屏幕进行横屏和竖屏切换之外, 还可以使 屏幕以斜屏方式显示。 由于观看者在观看终端设备的屏幕时, 观看者双眼直 视过去的方向与屏幕上显示的图像正对是最理想的情况, 而本实施例计算出 了观看者头像信息中双眼的连线的正方向与基准线的正方向之间的夹角, 因 此可以根据该夹角调整屏幕上显示的图像的角度, 使得观看者双眼的连线与 图像的上边平行, 此时, 屏幕上显示的图像相对于屏幕的长边或 LCD短边方 向来说可能是倾斜的, 即本实施例还可以让屏幕上显示的图像随着观看者头 部的摆动而动态调整。 上述观看者的双眼正对屏幕上显示的图像是一种最优 的实施方式, 但不限于此, 例如观看者也可以以斜视的方式观看屏幕上的图 像。 对于观看者以斜视的方式观看屏幕上的图像的情况, 同样可以釆用本发 明实施例提供的方法来确定屏幕的显示模式。
图 21为本发明一实施例提供的终端设备的结构示意图。 如图 21所示, 本实施例的终端设备包括: 第一确定模块 31、 计算模块 32和第二确定模块 33。
第一确定模块 31 , 用于通过对至少两个观看者中每个观看者的头像信息 进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连 线和预设正向确定规则, 确定每条连线的正方向。
计算模块 32, 与第一确定模块 31 连接, 用于在所有双眼的连线的正方 向相同时, 计算每条连线的正方向和基准线的正方向之间的夹角, 对所有夹 角进行平均, 获得第一夹角; 所述基准线是根据所述屏幕的长边或者所述屏 幕的短边确定的; 。
第二确定模块 33 , 与计算模块 32连接, 用于根据所述第一夹角确定所 述屏幕的显示模式。
在一可选实施方式中, 所述正向确定规则包括: 以所述头像信息中鼻子 或嘴的位置位于所述头像信息中双眼的连线的右侧确定所述连线的正方向; 则第一确定模块 31 , 用于根据每个头像信息中双眼的连线和预设正向确定规 贝1 J , 确定每条连线的正方向包括: 第一确定模块 31用于确定每个头像信息中 鼻子或嘴的位置位于所述连线右侧时的方向为该头像信息中双眼的连线的正 方向。 或者, 或者, 所述正向确定规则包括: 以所述头像信息中鼻子或嘴的 位置位于所述头像信息中双眼的连线的左侧确定所述连线的正方向, 则第一 确定模块 31用于根据每个头像信息中双眼的连线和预设正向确定规则,确定 每条连线的正方向包括:第一确定模块 31用于确定每个头像信息中鼻子或嘴 的位置位于所述连线左侧时的方向为该头像信息中双眼的连线的正方向。
在一可选实施方式中,计算模块 32用于计算每条连线的正方向与基准线 的正方向之间的夹角, 包括: 计算模块 33用于确定每个头像信息中双眼位置 分别对应的横向坐标和纵向坐标; 对所述两个横向坐标之差的绝对值和所述 两个纵向坐标之差的绝对值取反正切, 获得所述夹角, 其中, 所述横向坐标 所在的横向坐标轴的方向是指与所述基准线的正方向垂直的方向, 所述纵向 坐标所在的纵向坐标轴的方向为所述基准线的正方向。 在一可选实施方式中, 第二确定模块 33 , 用于根据所述第一夹角确定所 述屏幕的显示模式包括:第二确定模块 33用于在所述正向确定规则为以所述 头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右侧确定所述 连线的正方向时, 如果所述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕的显示模式为竖屏正向显示模式, 如果所述第一夹角在所述第 二度数门限度与第三度数门限之间, 确定所述屏幕的显示模式为横屏右向显 示模式, 如果所述第一夹角在所述第三度数门限与第四度数门限之间, 确定 所述屏幕的显示模式为竖屏反向显示模式, 如果所述第一夹角在所述第四度 数门限与所述第一度数门限之间, 确定所述屏幕的显示模式为横屏左向显示 模式。
在一可选实施方式中,第二确定模块 33还用于如果所述屏幕的显示模式 为竖屏正向显示模式或竖屏反向显示模式, 确定所述屏幕釆用 2D显示方式 或 3D显示方式, 如果所述屏幕的显示模式为横屏右向显示模式或横屏左向 显示模式, 确定所述屏幕釆用 2D显示方式。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。
本实施例提供的终端设备的各功能模块可用于执行图 1所示屏幕显示模 块确定方法的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
本实施例提供的终端设备, 利用图像识别技术, 识别出至少两个观看者 中每个观看者的头像信息中双眼的连线, 根据预设正向的确定规则确定每个 头像信息中双眼的连线的正方向, 进而计算每条连线的正方向与基准线的正 方向之间的夹角, 对所有夹角进行平均获得第一夹角, 根据该第一夹角确定 屏幕的显示模式, 这样可以克服单纯的依靠重力感应芯片造成屏幕显示模式 设置不准确的问题, 有利于提高确定屏幕显示模式的准确性, 进而提高用户 使用的便利性。
图 22为本发明另一实施例提供的终端设备的结构示意图。如图 22所示, 本实施例的终端设备包括: 存储器 42和处理器 43。
存储器 42, 用于存储程序。 具体地, 程序可以包括程序代码, 所述程序 代码包括计算机操作指令。 在具体实现上, 存储器 42可能包含高速 RAM存 储器, 也可能还包括非易失性存储器(non-volatile memory ) , 例如至少一个 磁盘存储器。
处理器 43 , 用于执行存储器 42所存储的程序, 以用于: 通过对至少两 个观看者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连 线, 根据每个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线 的正方向; 当所有双眼的连线的正方向相同时, 计算每条连线的正方向与基 准线的正方向之间的夹角, 对所有夹角进行平均, 获得第一夹角; 所述基准 线是根据所述屏幕的长边或者所述屏幕的短边确定的; 根据所述第一夹角确 定所述屏幕的显示模式。
处理器 43可能是一个中央处理器( Central Processing Unit,简称为 CPU ), 或者是特定集成电路( Application Specific Integrated Circuit , 简称为 ASIC ) , 或者是被配置成实施本发明实施例的一个或多个集成电路。
在一可选实施方式中, 所述正向确定规则包括: 以所述头像信息中鼻子 或嘴的位置位于所述头像信息中双眼的连线的右侧确定所述连线的正方向, 则处理器 43用于根据每个头像信息中双眼的连线和预设的正向确定规则,确 定每条连线的正方向包括:处理器 43用于确定每个头像信息中鼻子或嘴的位 置位于所述连线右侧时的方向为该头像信息中双眼的连线的正方向。 或者, 所述正向确定规则包括: 以所述头像信息中鼻子或嘴的位置位于所述头像信 息中双眼的连线的左侧确定所述连线的正方向,则处理器 43用于根据每个头 像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正方向包括: 处理器 43 用于确定每个头像信息中鼻子或嘴的位置位于所述连线左侧时的 方向为该头像信息中双眼的连线的正方向。
在一可选实施方式中,处理器 43用于计算每条连线的正方向和基准线的 正方向之间的夹角包括:处理器 43用于确定每个头像信息中双眼位置分别对 应的横向坐标和纵向坐标; 对所述两个横向坐标之差的绝对值和所述两个纵 向坐标之差的绝对值取反正切, 获得所述夹角, 其中, 所述横向坐标所在的 横向坐标轴的方向是指与所述基准线的正方向垂直的方向, 所述纵向坐标所 在的纵向坐标轴的方向为所述基准线的正方向。
在一可选实施方式中,处理器 43用于根据所述第一夹角确定所述屏幕的 显示模式包括:处理器 43用于在所述正向确定规则为以所述头像信息中鼻子 或嘴的位置位于所述头像信息中双眼的连线的右侧确定所述连线的正方向 时, 如果所述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕 的显示模式为竖屏正向显示模式, 如果所述第一夹角在所述第二度数门限度 与第三度数门限之间, 确定所述屏幕的显示模式为横屏右向显示模式, 如果 所述第一夹角在所述第三度数门限与第四度数门限之间, 确定所述屏幕的显 示模式为竖屏反向显示模式, 如果所述第一夹角在所述第四度数门限与所述 第一度数门限之间, 确定所述屏幕的显示模式为横屏左向显示模式。
在一可选实施方式中,处理器 43还用于如果所述屏幕的显示模式为竖屏 正向显示模式或竖屏反向显示模式,确定所述屏幕釆用 2D显示方式或 3D显 示方式,如果所述屏幕的显示模式为横屏右向显示模式或横屏左向显示模式, 确定所述屏幕釆用 2D显示方式。
进一步, 本实施例的终端设备还可以包括: 摄像头 41和通信接口 44。 摄像头 41 , 用于获取每个观看者的头像信息; 通信接口 44, 用于负责本实施 例终端设备与其他设备之间的通信。
可选的,如果摄像头 41、存储器 42、处理器 43和通信接口 44独立实现, 摄像头 41、存储器 42、 处理器 43和通信接口 44可以通过总线相互连接并完 成相互间的通信。 所述总线可以是工业标准体系结构 (Industry Standard Architecture, 简称为 ISA ) 总线、 夕卜部设备互连 ( Peripheral Component, 简 称为 PCI ) 总线或扩展工业标准体系结构 ( Extended Industry Standard Architecture, 简称为 EISA )总线等。 所述总线可以分为地址总线、数据总线、 控制总线等。 为便于表示, 图 22中仅用一条粗线表示, 但并不表示仅有一根 总线或一种类型的总线。
可选的, 如果摄像头 41、 存储器 42、 处理器 43和通信接口 44集成在一 块芯片上实现, 则摄像头 41、 存储器 42、 处理器 43和通信接口 44可以通过 内部接口实现相互间的通信。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。
本实施例提供的终端设备可用于执行图 1所示屏幕显示模块确定方法的 流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
本实施例提供的终端设备, 利用图像识别技术, 识别出至少两个观看者 中每个观看者的头像信息中双眼的连线, 根据预设正向的确定规则确定每个 头像信息中双眼的连线的正方向, 进而计算每条连线的正方向与基准线的正 方向之间的夹角, 对所有夹角进行平均获得第一夹角, 根据该第一夹角确定 屏幕的显示模式, 这样可以克服单纯的依靠重力感应芯片造成屏幕显示模式 设置不准确的问题, 有利于提高确定屏幕显示模式的准确性, 进而提高用户 使用的便利性。
图 23为本发明又一实施例提供的终端设备的结构示意图。如图 23所示, 本实施例的终端设备包括: 第一确定模块 51和显示模块 52。
第一确定模块 51 , 用于通过对两个观看者中每个观看者的头像信息进行 识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和 预设的正向确定规则, 确定每条连线的正方向。
显示模块 52, 与第一确定模块 51 连接, 用于在所述两条连线的正方向 相反时, 向所述两个观看者显示相互独立的图像。
在一可选实施方式中, 显示模块 52具体用于以 3D显示方式或 2D显示 方式向所述两个观看者显示相互独立的图像。
在一可选实施方式中, 如图 24所示, 所述终端设备还包括:
第一接收模块 53和第一处理模块 54。
第一接收模块 53 , 用于接收所述两个观看者中正在所述屏幕上操作的观 看者发出的第一操作指令。 第一处理模块 54, 与第一接收模块 53连接, 用 于根据所述第一操作指令, 对正在所述屏幕上操作的观看者所要操作的图像 进行处理。 可选的, 第一处理模块 54还与显示模块 52连接。
进一步, 如图 24所示, 本实施例的终端设备还包括: 第二确定模块 55 和 /或第三确定模块 56。
第二确定模块 55 , 与第一处理模块 54连接, 用于在第一处理模块 54对 正在所述屏幕上操作的观看者所要操作的图像进行处理之前, 根据正在所述 屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中确定正在所 述屏幕上操作的观看者所要操作的图像。
第三确定模块 56, 与第一处理模块 54连接, 用于在第一处理模块 54对 正在所述屏幕上操作的观看者所要操作的图像进行处理之前, 接收正在所述 屏幕上操作的观看者通过切换按键发出的切换指令, 根据所述切换指令从所 述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图 像。
第二确定模块 55和第三确定模块 56用于向第一处理模块 54提供正在所 述屏幕上操作的观看者所要操作的图像的指示信息。
进一步, 如图 24所示, 本实施例的终端设备还包括: 第四确定模块 57 和 /或第五确定模块 58。
第四确定模块 57 , 与第二确定模块 55连接, 用于在第二确定模块 55根 据正在所述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中 确定正在所述屏幕上操作的观看者所要操作的图像之前, 通过摄像头获取所 述两个观看者中正在所述屏幕上操作的观看者的操作方向。
第五确定模块 58 , 与第二确定模块 55连接, 用于在第二确定模块 55根 据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从所述两个 相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图像之前, 感知获取所述两个观看者中正在所述屏幕上操作的观看者的操作方向,其中 , 所述屏幕为支持悬浮触控功能的触摸屏。
第四确定模块 57和第五确定模块 58用于向第二确定模块 55提供两个观 看者中正在所述屏幕上操作的观看者的操作方向的指示信息。
在一可选实施方式中, 显示模块 52用于以 3D显示方式向所述两个观看 者显示相互独立的图像包括:显示模块 52具体可用于在所述屏幕显示两个独 立的窗口, 以 3D显示方式将所述两个相互独立的图像分别在所述两个独立 的窗口中显示。 基于此, 本实施例的终端设备还包括: 第二接收模块 59和第 二处理模块 60。
第二接收模块 59, 用于接收所述两个观看者分别发出的操作所述两个独 立的图像中所对应的图像的第二操作指令, 所述第二操作指令是所述观看者 通过所述屏幕上所对应的窗口发出的。
第二处理模块 60, 与第二接收模块 59连接, 用于根据所述第二操作指 令对所对应的图像进行操作。 可选的, 第二处理模块 60与显示模块 52连接。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。
本实施例提供的终端设备的各功能模块可用于执行图 18 所示屏幕显示 模式确定方法的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。 本实施例提供的终端设备, 同时根据两个观看者的头像信息中双眼的连 线, 得到每个头像信息中双眼的连线的正方向, 在两条连线的正方向相反时, 向两个观看者显示相互独立的图像, 从而解决了两个观看者同时观看屏幕时 可能出现的某个观看者无法看到图像的问题。
图 25为本发明又一实施例提供的终端设备的结构示意图。如图 25所示, 本实施例的终端设备包括: 存储器 72、 处理器 73和显示器 74。
存储器 72, 用于存储程序。 具体地, 程序可以包括程序代码, 所述程序 代码包括计算机操作指令。 在具体实现上, 存储器 72可能包含高速 RAM存 储器, 也可能还包括非易失性存储器(non-volatile memory ) , 例如至少一个 磁盘存储器。
处理器 73 , 用于执行存储器 72所存储的程序, 以用于: 通过对两个观 看者中每个观看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正 方向。
处理器 73可能是一个 CPU, 或者是特定 ASIC, 或者是被配置成实施本 发明实施例的一个或多个集成电路。
显示器 74, 用于在所述两个连线的正方向相反时, 向所述两个观看者显 示相互独立的图像。
可选的,显示器具体用于以 3D显示方式或 2D显示方式向所述两个观看 者显示相互独立的图像。
进一步, 本实施例的终端设备还包括: 通信接口 75。 通信接口 75, 用于 接收所述两个观看者中正在所述屏幕上操作的观看者发出的第一操作指令。 处理器 73还用于根据通信接口 75接收的第一操作指令, 对正在所述屏幕上 操作的观看者所要操作的图像进行处理。
在一可选实施方式中,处理器 73还用于在对正在所述屏幕上操作的观看 者所要操作的图像进行处理之前, 根据所述两个观看者中正在所述屏幕上操 作的观看者的操作方向, 从所述两个相互独立的图像中确定正在所述屏幕上 操作的观看者所要操作的图像。
可选的, 本实施例的终端设备还包括: 摄像头 71 , 主要用于获取观看者 的头像信息以及观看者在屏幕上进行操作时的操作方向等信息。处理器 73还 用于在根据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从 所述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图 像之前,通过摄像头 71获取所述两个观看者中正在所述屏幕上操作的观看者 的操作方向。 或者, 处理器 73还用于在根据所述两个观看者中正在所述屏幕 上操作的观看者的操作方向, 从所述两个相互独立的图像中确定正在所述屏 幕上操作的观看者所要操作的图像之前, 感知获取所述两个观看者中正在所 述屏幕上操作的观看者的操作方向, 其中, 所述屏幕为支持悬浮触控功能的 触摸屏。
在一可选实施方式中,通信接口 75还用于接收正在所述屏幕上操作的观 看者通过切换按键发出的切换指令。 处理器 73还用于根据通信接口 75接收 到的切换指令从所述两个相互独立的图像中确定正在所述屏幕上操作的观看 者所要操作的图像。
在一可选实施方式中, 显示器 74用于以 3D显示方式向所述两个观看者 显示相互独立的图像包括:显示器 74具体可用于在所述屏幕显示两个独立的 窗口, 以 3D显示方式将所述两个相互独立的图像分别在所述两个独立的窗 口中显示。基于此, 通信接口 75还用于接收所述两个观看者分别发出的操作 所述两个独立的图像中所对应的图像的第二操作指令。处理器 73还用于根据 所述第二操作指令对所对应的图像进行操作, 所述第二操作指令是所述观看 者通过所述屏幕上所对应的窗口发出的。
可选的, 如果摄像头 71、 存储器 72、 处理器 73、 显示器 74和通信接口
75独立实现, 摄像头 71、 存储器 72、 处理器 73、 显示器 74和通信接口 75 可以通过总线相互连接并完成相互间的通信。所述总线可以是 ISA总线、 PCI 总线或 EISA总线等。 所述总线可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 25中仅用一条粗线表示, 但并不表示仅有一根总线或一种类 型的总线。
可选的, 如果摄像头 71、 存储器 72、 处理器 73、 显示器 74和通信接口 75集成在一块芯片上实现, 则摄像头 71、 存储器 72、 处理器 73、 显示器 74 和通信接口 75可以通过内部接口实现相互间的通信。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。 本实施例提供的终端设备可用于执行图 18 所示屏幕显示模式确定方法 的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
本实施例提供的终端设备, 同时根据两个观看者的头像信息中双眼的连 线, 得到每个头像信息中双眼的连线的正方向, 在两条连线的正方向相反时, 向两个观看者显示相互独立的图像, 从而解决了两个观看者同时观看屏幕时 可能出现的某个观看者无法看到图像的问题。
图 26为本发明又一实施例提供的终端设备的结构示意图。如图 26所示, 本实施例的终端设备包括: 第一确定模块 81、 计算模块 82和第二确定模块 83。
第一确定模块 81 , 对观看者的头像信息进行识别, 确定所述头像信息中 的双眼的连线, 根据所述双眼的连线和预设的正向确定规则, 确定所述连线 的正方向。
计算模块 82, 与第一确定模块 81 连接, 用于计算所述连线的正方向和 基准线的正方向之间的夹角, 所述基准线是根据所述屏幕的长边或者所述屏 幕的短边确定的。
第二确定模块 83 , 与计算模块 82连接, 用于根据所述夹角确定所述屏 幕的显示模式。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。
本实施例提供的终端设备的各功能模块可用于执行图 19 所示屏幕显示 模式确定方法的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
本实施例提供的终端设备, 通过利用图像识别技术, 识别出观看者的头 像信息中双眼的连线, 计算双眼的连线的正方向与基准线的正方向之间的夹 角, 根据该夹角确定屏幕的显示模式, 这样可以克服单纯的依靠重力感应芯 片造成屏幕显示模式设置不准确的问题, 有利于提高确定屏幕显示模式的准 确性, 进而提高用户使用的便利性。
图 27为本发明又一实施例提供的终端设备的结构示意图。如图 27所示, 本实施例的终端设备包括: 存储器 92和处理器 93。
存储器 92, 用于存储程序。 具体地, 程序可以包括程序代码, 所述程序 代码包括计算机操作指令。 在具体实现上, 存储器 92可能包含高速 RAM存 储器, 也可能还包括非易失性存储器(non-volatile memory ) , 例如至少一个 磁盘存储器。
处理器 93 , 用于执行存储器 92所存储的程序, 以用于: 对观看者的头 像信息进行识别, 确定所述头像信息中的双眼的连线, 根据所述双眼的连线 和预设的正向确定规则, 确定所述连线的正方向; 计算所述连线的正方向和 基准线的正方向之间的夹角, 所述基准线是根据所述屏幕的长边或者所述屏 幕的短边确定的; 根据所述夹角确定所述屏幕的显示模式。
处理器 93可能是一个 CPU, 或者是特定 ASIC, 或者是被配置成实施本 发明实施例的一个或多个集成电路。
进一步, 本实施例的终端设备还可以包括: 摄像头 91和通信接口 94。 摄像头 91 , 用于获取观看者的头像信息; 通信接口 94, 用于负责本实施例终 端设备与其他设备之间的通信。
可选的,如果摄像头 91、存储器 92、处理器 93和通信接口 94独立实现, 摄像头 91、存储器 92、 处理器 93和通信接口 94可以通过总线相互连接并完 成相互间的通信。 所述总线可以是 ISA总线、 PCI总线或 EISA总线等。 所述 总线可以分为地址总线、 数据总线、 控制总线等。 为便于表示, 图 28中仅用 一条粗线表示, 但并不表示仅有一根总线或一种类型的总线。
可选的, 如果摄像头 91、 存储器 92、 处理器 93和通信接口 94集成在一 块芯片上实现, 则摄像头 91、 存储器 92、 处理器 93和通信接口 94可以通过 内部接口实现相互间的通信。
本实施例的终端设备可以支持横竖屏切换功能, 例如可以是智能手机、 平板电脑、 PDA等。
本实施例提供的终端设备的各功能模块可用于执行图 19 所示屏幕显示 模式确定方法的流程, 其具体工作原理不再赘述, 详见方法实施例的描述。
本实施例提供的终端设备, 通过利用图像识别技术, 识别出观看者的头 像信息中双眼的连线, 计算双眼的连线的正方向与基准线的正方向之间的夹 角, 根据该夹角确定屏幕的显示模式, 这样可以克服单纯的依靠重力感应芯 片造成屏幕显示模式设置不准确的问题, 有利于提高确定屏幕显示模式的准 确性, 进而提高用户使用的便利性。
本领域普通技术人员可以理解: 实现上述方法实施例的全部或部分步骤 可以通过程序指令相关的硬件来完成, 前述的程序可以存储于一计算机可读 取存储介质中, 该程序在执行时, 执行包括上述方法实施例的步骤; 而前述 的存储介质包括: ROM, RAM, 磁碟或者光盘等各种可以存储程序代码的介 质。
最后应说明的是: 以上各实施例仅用以说明本发明的技术方案, 而非对 其限制; 尽管参照前述各实施例对本发明进行了详细的说明, 本领域的普通 技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改, 或者对其中部分或者全部技术特征进行等同替换; 而这些修改或者替换, 并 不使相应技术方案的本质脱离本发明各实施例技术方案的范围。

Claims

权 利 要求 书
1、 一种屏幕显示模式确定方法, 其特征在于, 包括:
通过对至少两个观看者中每个观看者的头像信息进行识别, 确定每个头 像信息中双眼的连线, 根据每个头像信息中双眼的连线和预设的正向确定规 则, 确定每条连线的正方向;
当所有双眼的连线的正方向相同时, 计算每条连线的正方向与基准线的 正方向之间的夹角, 对所有夹角进行平均, 获得第一夹角; 所述基准线是根 据所述屏幕的长边或者所述屏幕的短边确定的;
根据所述第一夹角确定所述屏幕的显示模式。
2、 根据权利要求 1所述的屏幕显示模式确定方法, 其特征在于, 所述正 向确定规则包括:
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右 侧确定所述连线的正方向; 或者
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的左 侧确定所述连线的正方向。
3、 根据权利要求 1或 2所述的屏幕显示模式确定方法, 其特征在于, 所 述计算每条连线的正方向和基准线的正方向之间的夹角包括:
确定每个头像信息中双眼位置分别对应的横向坐标和纵向坐标, 其中, 所述横向坐标所在的横向坐标轴的方向是指与所述基准线的正方向垂直的方 向, 所述纵向坐标所在的纵向坐标轴的方向为所述基准线的正方向;
对所述两个横向坐标之差的绝对值和所述两个纵向坐标之差的绝对值取 反正切, 获得所述夹角。
4、 根据权利要求 2或 3所述的屏幕显示模式确定方法, 其特征在于, 如 果所述正向确定规则为以所述头像信息中鼻子或嘴的位置位于所述头像信息 中双眼的连线的右侧确定所述连线的正方向, 则所述根据所述第一夹角确定 所述屏幕的显示模式包括:
如果所述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕 的显示模式为竖屏正向显示模式;
如果所述第一夹角在所述第二度数门限与第三度数门限之间, 确定所述 屏幕的显示模式为横屏右向显示模式; 如果所述第一夹角在所述第三度数门限与第四度数门限之间, 确定所述 屏幕的显示模式为竖屏反向显示模式;
如果所述第一夹角在所述第四度数门限与所述第一度数门限之间, 确定 所述屏幕的显示模式为横屏左向显示模式。
5、 根据权利要求 1-4任一所述的屏幕显示模式确定方法, 其特征在于, 还包括:
如果所述屏幕的显示模式为竖屏正向显示模式或竖屏反向显示模式, 釆 用 2D显示方式或 3D显示方式;
如果所述屏幕的显示模式为横屏右向显示模式或横屏左向显示模式, 釆 用 2D显示方式。
6、 一种屏幕显示模式确定方法, 其特征在于, 包括:
通过对两个观看者中每个观看者的头像信息进行识别, 确定每个头像信 息中双眼的连线, 根据每个头像信息中双眼的连线和预设的正向确定规则, 确定每条连线的正方向;
如果所述两条连线的正方向相反, 向所述两个观看者显示相互独立的图 像。
7、 根据权利要求 6所述的屏幕显示模式确定方法, 其特征在于, 向所述 两个观看者显示相互独立的图像包括:
以 3D显示方式或 2D显示方式向所述两个观看者显示相互独立的图像。
8、根据权利要求 7所述的屏幕显示模式确定方法,其特征在于,还包括: 接收所述两个观看者中正在所述屏幕上操作的观看者发出的第一操作指 令;
根据所述第一操作指令, 对所述两个相互独立的图像中正在所述屏幕上 操作的观看者所要操作的图像进行处理。
9、 根据权利要求 8所述的屏幕显示模式确定方法, 其特征在于, 根据所 述第一操作指令, 对所述两个相互独立的图像中正在所述屏幕上操作的观看 者所要操作的图像进行处理之前包括:
根据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从所 述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图 像; 或者 接收正在所述屏幕上操作的观看者通过切换按键发出的切换指令, 根据 所述切换指令从所述两个相互独立的图像中确定正在所述屏幕上操作的观看 者所要操作的图像。
10、 根据权利要求 9所述的屏幕显示模式确定方法, 其特征在于, 所述 根据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从所述两 个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图像之前 包括:
通过摄像头获取所述两个观看者中正在所述屏幕上操作的观看者的操作 方向; 或者
感知获取所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 其中, 所述屏幕为支持悬浮触控功能的触摸屏。
11、 根据权利要求 7所述的屏幕显示模式确定方法, 其特征在于, 以 3D 显示方式向所述两个观看者显示相互独立的图像包括:
在所述屏幕显示两个独立的窗口, 以 3D显示方式将所述两个相互独立 的图像分别在所述两个独立的窗口中显示;
所述屏幕模式确定方法还包括:
接收所述两个观看者分别发出的操作所述两个独立的图像中所对应的图 像的第二操作指令, 并根据所述第二操作指令对所对应的图像进行操作, 所 述第二操作指令是所述观看者通过所述屏幕上所对应的窗口发出的。
12、 一种屏幕显示模式确定方法, 其特征在于, 包括:
对观看者的头像信息进行识别, 确定所述头像信息中的双眼的连线, 根 据所述双眼的连线和预设的正向确定规则, 确定所述连线的正方向;
计算所述连线的正方向和基准线的正方向之间的夹角, 所述基准线是根 据所述屏幕的长边或者所述屏幕的短边确定的;
根据所述夹角确定所述屏幕的显示模式。
13、 一种终端设备, 其特征在于, 包括:
第一确定模块, 用于通过对至少两个观看者中每个观看者的头像信息进 行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线 和预设正向确定规则, 确定每条连线的正方向;
计算模块, 用于在所有双眼的连线的正方向相同时, 计算每条连线的正 方向和基准线的正方向之间的夹角, 对所有夹角进行平均, 获得第一夹角; 所述基准线是根据所述屏幕的长边或者所述屏幕的短边确定的;
第二确定模块, 用于根据所述第一夹角确定所述屏幕的显示模式。
14、 根据权利要求 13所述的终端设备, 其特征在于, 所述正向确定规则 包括:
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右 侧确定所述连线的正方向; 或者
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的左 侧确定所述连线的正方向。
15、 根据权利要求 13或 14所述的终端设备, 其特征在于, 所述计算模 块, 用于计算每条连线的正方向和基准线的正方向之间的夹角, 包括:
所述计算模块用于确定每个头像信息中双眼位置分别对应的横向坐标和 纵向坐标; 对所述两个横向坐标之差的绝对值和所述两个纵向坐标之差的绝 对值取反正切, 获得所述夹角, 其中, 所述横向坐标所在的横向坐标轴的方 向是指与所述基准线的正方向垂直的方向, 所述纵向坐标所在的纵向坐标轴 的方向为所述基准线的正方向。
16、 根据权利要求 14或 15所述的终端设备, 其特征在于, 所述第二确 定模块, 用于根据所述第一夹角确定所述屏幕的显示模式, 包括:
所述第二确定模块用于在所述正向确定规则为以所述头像信息中鼻子或 嘴的位置位于所述头像信息中双眼的连线的右侧确定所述连线的正方向时, 如果所述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕的显 示模式为竖屏正向显示模式, 如果所述第一夹角在所述第二度数门限度与第 三度数门限之间, 确定所述屏幕的显示模式为横屏右向显示模式, 如果所述 第一夹角在所述第三度数门限与第四度数门限之间, 确定所述屏幕的显示模 式为竖屏反向显示模式, 如果所述第一夹角在所述第四度数门限与所述第一 度数门限之间, 确定所述屏幕的显示模式为横屏左向显示模式。
17、 根据权利要求 13-16任一项所述的终端设备, 其特征在于, 所述第 二确定模块还用于如果所述屏幕的显示模式为竖屏正向显示模式或竖屏反向 显示模式, 釆用 2D显示方式或 3D显示方式, 如果所述屏幕的显示模式为横 屏右向显示模式或横屏左向显示模式, 釆用 2D显示方式。
18、 一种终端设备, 其特征在于, 包括:
存储器, 用于存储程序;
处理器, 用于执行所述程序, 以用于: 通过对至少两个观看者中每个观 看者的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像 信息中双眼的连线和预设的正向确定规则, 确定每条连线的正方向; 当所有 双眼的连线的正方向相同时, 计算每条连线的正方向与基准线的正方向之间 的夹角, 对所有夹角进行平均, 获得第一夹角; 所述基准线是根据所述屏幕 的长边或者所述屏幕的短边确定的; 根据所述第一夹角确定所述屏幕的显示 模式。
19、 根据权利要求 18所述的终端设备, 其特征在于, 所述正向确定规则 包括:
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的右 侧确定所述连线的正方向; 或者
以所述头像信息中鼻子或嘴的位置位于所述头像信息中双眼的连线的左 侧确定所述连线的正方向。
20、 根据权利要求 18或 19所述的终端设备, 其特征在于, 所述处理器 用于计算每条连线的正方向和基准线的正方向之间的夹角包括:
所述处理器用于确定每个头像信息中双眼位置分别对应的横向坐标和纵 向坐标; 对所述两个横向坐标之差的绝对值和所述两个纵向坐标之差的绝对 值取反正切, 获得所述夹角, 其中, 所述横向坐标所在的横向坐标轴的方向 是指与所述基准线的正方向垂直的方向, 所述纵向坐标所在的纵向坐标轴的 方向为所述基准线的正方向。
21、 根据权利要求 19或 20所述的终端设备, 其特征在于, 所述处理器 用于根据所述第一夹角确定所述屏幕的显示模式包括:
所述处理器用于在所述正向确定规则为以所述头像信息中鼻子或嘴的位 置位于所述头像信息中双眼的连线的右侧确定所述连线的正方向时, 如果所 述第一夹角在第一度数门限与第二度数门限之间, 确定所述屏幕的显示模式 为竖屏正向显示模式; 如果所述第一夹角在所述第二度数门限度与第三度数 门限之间, 确定所述屏幕的显示模式为横屏右向显示模式; 如果所述第一夹 角在所述第三度数门限与第四度数门限之间, 确定所述屏幕的显示模式为竖 屏反向显示模式; 如果所述第一夹角在所述第四度数门限与所述第一度数门 限之间, 确定所述屏幕的显示模式为横屏左向显示模式。
22、 根据权利要求 18-21 任一项所述的终端设备, 其特征在于, 所述处 理器还用于如果所述屏幕的显示模式为竖屏正向显示模式或竖屏反向显示模 式, 釆用 2D显示方式或 3D显示方式; 如果所述屏幕的显示模式为横屏右向 显示模式或横屏左向显示模式, 釆用 2D显示方式。
23、 一种终端设备, 其特征在于, 包括:
第一确定模块, 用于通过对两个观看者中每个观看者的头像信息进行识 另1 J , 确定每个头像信息中双眼的连线, 根据每个头像信息中双眼的连线和预 设的正向确定规则, 确定每条连线的正方向;
显示模块, 用于在所述两条连线的正方向相反时, 向所述两个观看者显 示相互独立的图像。
24、 根据权利要求 23所述的终端设备, 其特征在于, 所述显示模块具体 用于以 3D显示方式或 2D显示方式向所述两个观看者显示相互独立的图像。
25、 根据权利要求 24所述的终端设备, 其特征在于, 还包括: 第一接收模块, 用于接收所述两个观看者中正在所述屏幕上操作的观看 者发出的第一操作指令;
第一处理模块, 用于根据所述第一操作指令, 对所述两个相互独立的图 像中正在所述屏幕上操作的观看者所要操作的图像进行处理。
26、 根据权利要求 25所述的终端设备, 其特征在于, 还包括: 第二确定模块, 用于在所述第一处理模块对所述两个相互独立的图像中 正在所述屏幕上操作的观看者所要操作的图像进行处理之前, 根据所述两个 观看者中正在所述屏幕上操作的观看者的操作方向, 从所述两个相互独立的 图像中确定正在所述屏幕上操作的观看者所要操作的图像; 和 /或,
第三确定模块, 用于在所述第一处理模块对所述两个相互独立的图像中 正在所述屏幕上操作的观看者所要操作的图像进行处理之前, 接收正在所述 屏幕上操作的观看者通过切换按键发出的切换指令, 根据所述切换指令从所 述两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图 像。
27、 根据权利要求 26所述的终端设备, 其特征在于, 还包括: 第四确定模块, 用于在所述第二确定模块根据所述两个观看者中正在所 述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中确定正在 所述屏幕上操作的观看者所要操作的图像之前, 通过摄像头获取所述两个观 看者中正在所述屏幕上操作的观看者的操作方向; 和 /或,
第五确定模块, 用于在所述第二确定模块根据所述两个观看者中正在所 述屏幕上操作的观看者的操作方向, 从所述两个相互独立的图像中确定正在 所述屏幕上操作的观看者所要操作的图像之前, 感知获取所述两个观看者中 正在所述屏幕上操作的观看者的操作方向, 其中, 所述屏幕为支持悬浮触控 功能的触摸屏。
28、 根据权利要求 24所述的终端设备, 其特征在于, 所述显示模块用于 以 3D显示方式向所述两个观看者显示相互独立的图像包括:
所述显示模块具体用于在所述屏幕显示两个独立的窗口, 以 3D显示方 式将所述两个相互独立的图像分别在所述两个独立的窗口中显示;
所述终端设备还包括:
第二接收模块, 用于接收所述两个观看者分别发出的操作所述两个独立 的图像中所对应的图像的第二操作指令, 所述第二操作指令是所述观看者通 过所述屏幕上所对应的窗口发出的;
第二处理模块, 用于根据所述第二操作指令对所对应的图像进行操作。
29、 一种终端设备, 其特征在于, 包括:
存储器, 用于存储程序;
处理器, 用于执行所述程序, 以用于: 通过对两个观看者中每个观看者 的头像信息进行识别, 确定每个头像信息中双眼的连线, 根据每个头像信息 中双眼的连线和预设的正向确定规则, 确定每条连线的正方向;
显示器, 用于在所述两个连线的正方向相反时, 向所述两个观看者显示 相互独立的图像。
30、 根据权利要求 29所述的终端设备, 其特征在于, 所述显示器具体用 于以 3D显示方式或 2D显示方式向所述两个观看者显示相互独立的图像。
31、 根据权利要求 30所述的终端设备, 其特征在于, 还包括: 通信接口, 用于接收所述两个观看者中正在所述屏幕上操作的观看者发 出的第一操作指令; 所述处理器还用于根据所述第一操作指令, 对所述两个相互独立的图像 中正在所述屏幕上操作的观看者所要操作的图像进行处理。
32、 根据权利要求 30所述的终端设备, 其特征在于, 所述处理器还用于 在对所述两个相互独立的图像中正在所述屏幕上操作的观看者所要操作的图 像进行处理之前, 根据所述两个观看者中正在所述屏幕上操作的观看者的操 作方向, 从所述两个相互独立的图像中确定正在所述屏幕上操作的观看者所 要操作的图像。
33、 根据权利要求 32所述的终端设备, 其特征在于, 所述通信接口还用 于接收正在所述屏幕上操作的观看者通过切换按键发出的切换指令;
所述处理器还用于根据所述切换指令从所述两个相互独立的图像中确定 正在所述屏幕上操作的观看者所要操作的图像。
34、 根据权利要求 32所述的终端设备, 其特征在于, 所述处理器还用于 在根据所述两个观看者中正在所述屏幕上操作的观看者的操作方向, 从所述 两个相互独立的图像中确定正在所述屏幕上操作的观看者所要操作的图像之 前, 通过摄像头获取所述两个观看者中正在所述屏幕上操作的观看者的操作 方向, 或者, 感知获取所述两个观看者中正在所述屏幕上操作的观看者的操 作方向, 其中, 所述屏幕为支持悬浮触控功能的触摸屏。
35、 根据权利要求 30所述的终端设备, 其特征在于, 所述显示器用于以 3D显示方式向所述两个观看者显示相互独立的图像包括:
所述显示器具体用于在所述屏幕显示两个独立的窗口, 以 3D显示方式 将所述两个相互独立的图像分别在所述两个独立的窗口中显示;
所述通信接口还用于接收所述两个观看者分别发出的操作所述两个独立 的图像中所对应的图像的第二操作指令, 所述第二操作指令是所述观看者通 过所述屏幕上所对应的窗口发出的;
所述处理器还用于根据所述第二操作指令对所对应的图像进行操作。
36、 一种终端设备, 其特征在于, 包括:
第一确定模块, 对观看者的头像信息进行识别, 确定所述头像信息中的 双眼的连线, 根据所述双眼的连线和预设的正向确定规则, 确定所述连线的 正方向;
计算模块, 用于计算所述连线的正方向和基准线的正方向之间的夹角, 所述基准线是根据所述屏幕的长边或者所述屏幕的短边确定的; 第二确定模块, 用于根据所述夹角确定所述屏幕的显示模式。
37、 一种终端设备, 其特征在于, 包括:
存储器, 用于存储程序;
处理器, 用于执行所述程序, 以用于: 对观看者的头像信息进行识别, 确定所述头像信息中的双眼的连线, 根据所述双眼的连线和预设的正向确定 规则, 确定所述连线的正方向; 计算所述连线的正方向和基准线的正方向之 间的夹角 , 所述基准线是根据所述屏幕的长边或者所述屏幕的短边确定的; 根据所述夹角确定所述屏幕的显示模式。
PCT/CN2013/070935 2013-01-24 2013-01-24 屏幕显示模式确定方法及终端设备 WO2014113951A1 (zh)

Priority Applications (4)

Application Number Priority Date Filing Date Title
PCT/CN2013/070935 WO2014113951A1 (zh) 2013-01-24 2013-01-24 屏幕显示模式确定方法及终端设备
EP13873069.2A EP2950180B1 (en) 2013-01-24 2013-01-24 Method for determining screen display mode and terminal device
CN201380000397.8A CN103718148B (zh) 2013-01-24 2013-01-24 屏幕显示模式确定方法及终端设备
US14/798,629 US9589325B2 (en) 2013-01-24 2015-07-14 Method for determining display mode of screen, and terminal device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2013/070935 WO2014113951A1 (zh) 2013-01-24 2013-01-24 屏幕显示模式确定方法及终端设备

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US14/798,629 Continuation US9589325B2 (en) 2013-01-24 2015-07-14 Method for determining display mode of screen, and terminal device

Publications (1)

Publication Number Publication Date
WO2014113951A1 true WO2014113951A1 (zh) 2014-07-31

Family

ID=50409481

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2013/070935 WO2014113951A1 (zh) 2013-01-24 2013-01-24 屏幕显示模式确定方法及终端设备

Country Status (4)

Country Link
US (1) US9589325B2 (zh)
EP (1) EP2950180B1 (zh)
CN (1) CN103718148B (zh)
WO (1) WO2014113951A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688183A (zh) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 界面切换方法、界面切换装置、存储介质与显示设备

Families Citing this family (14)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP3198558A4 (en) * 2014-09-25 2018-04-18 Intel Corporation Facilitating efficient free in-plane rotation landmark tracking of images on computing devices
US20160210452A1 (en) * 2015-01-19 2016-07-21 Microsoft Technology Licensing, Llc Multi-gesture security code entry
CN105867780A (zh) * 2015-01-23 2016-08-17 中兴通讯股份有限公司 一种显示方法及其装置
CN106060520B (zh) * 2016-04-15 2018-01-16 深圳超多维光电子有限公司 一种显示模式切换方法及其装置、智能终端
CN106095372B (zh) * 2016-06-20 2019-04-23 联想(北京)有限公司 一种显示控制方法和电子设备
CN106231101B (zh) * 2016-07-29 2019-05-17 维沃移动通信有限公司 一种提醒消息的显示方法及移动终端
CN106951078B (zh) * 2017-03-16 2021-01-08 维沃移动通信有限公司 一种横竖屏切换方法及移动终端
CN108040179B (zh) * 2017-12-25 2021-02-09 Oppo广东移动通信有限公司 屏幕切换方法及相关产品
US10924645B2 (en) 2018-11-29 2021-02-16 Microsoft Technology Licensing, Llc Polarization imaging to detect display screen
US11050944B2 (en) * 2018-11-29 2021-06-29 Microsoft Technology Licensing, Llc Switched polarization imaging to detect display screen
CN112929637A (zh) * 2019-12-05 2021-06-08 北京芯海视界三维科技有限公司 实现3d图像显示的方法、3d显示设备
CN112486380B (zh) * 2020-11-13 2022-06-07 北京安博盛赢教育科技有限责任公司 一种显示界面的处理方法、装置、介质和电子设备
CN114520905B (zh) * 2020-11-19 2024-04-19 京东方科技集团股份有限公司 图像处理方法、图像显示方法及图像显示系统
CN112684917A (zh) * 2020-12-25 2021-04-20 南昌逸勤科技有限公司 一种穿戴设备显示方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101794193A (zh) * 2010-02-23 2010-08-04 华为终端有限公司 画面控制方法及电子设备
CN101989126A (zh) * 2009-08-07 2011-03-23 深圳富泰宏精密工业有限公司 手持式电子装置及其屏幕画面自动旋转方法
CN102436304A (zh) * 2011-11-14 2012-05-02 华为技术有限公司 一种屏幕横竖显示模式切换的方法和终端
CN102760024A (zh) * 2011-04-26 2012-10-31 鸿富锦精密工业(深圳)有限公司 屏幕图像旋转方法及系统

Family Cites Families (28)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4400172B2 (ja) * 2003-02-28 2010-01-20 日本電気株式会社 画像表示装置、携帯端末装置、表示パネル及び画像表示方法
FI117217B (fi) * 2003-10-01 2006-07-31 Nokia Corp Menetelmä ja järjestelmä käyttöliittymän (User Interface) hallitsemiseksi, vastaava laite ja ohjelmalliset (Software) välineet menetelmän toteuttamiseksi
US20110298829A1 (en) * 2010-06-04 2011-12-08 Sony Computer Entertainment Inc. Selecting View Orientation in Portable Device via Image Analysis
US8244068B2 (en) * 2007-03-28 2012-08-14 Sony Ericsson Mobile Communications Ab Device and method for adjusting orientation of a data representation displayed on a display
KR20090101733A (ko) * 2008-03-24 2009-09-29 삼성전자주식회사 휴대 단말기 및 그의 얼굴 인식을 이용한 표시정보의 표시방법
US20090322690A1 (en) * 2008-06-30 2009-12-31 Nokia Corporation Screen display
WO2010030985A1 (en) 2008-09-12 2010-03-18 Gesturetek, Inc. Orienting displayed elements relative to a user
TWI413979B (zh) * 2009-07-02 2013-11-01 Inventec Appliances Corp 調整顯示畫面的方法、電子裝置,與電腦程式產品
US8587498B2 (en) * 2010-03-01 2013-11-19 Holovisions LLC 3D image display with binocular disparity and motion parallax
US20110310003A1 (en) * 2010-05-21 2011-12-22 Fraunhofer-Gesellschaft Zur Forderung Der Angewandten Forschung E.V. Image display device and method of displaying images
JP5527055B2 (ja) * 2010-07-02 2014-06-18 富士通株式会社 電子機器、制御プログラムおよび制御方法
KR20120059947A (ko) * 2010-12-01 2012-06-11 삼성전자주식회사 3차원 안경 및 이에 적용되는 3차원 안경 제어방법
KR20120105199A (ko) 2011-03-15 2012-09-25 엘지디스플레이 주식회사 다중 시청 가능한 입체영상 표시장치 및 그 구동방법
US8358321B1 (en) * 2011-04-29 2013-01-22 Google Inc. Change screen orientation
US9286819B2 (en) * 2011-05-10 2016-03-15 Panasonic Intellectual Property Management Co., Ltd. Display device, display method, integrated circuit, and program
KR101802760B1 (ko) * 2011-06-27 2017-12-28 엘지전자 주식회사 이동 단말기 및 그 제어방법
KR101905038B1 (ko) * 2011-11-16 2018-10-08 삼성전자주식회사 다중 어플리케이션 환경 하에서 터치스크린을 가지는 장치 및 그 제어 방법
US8643741B2 (en) * 2012-01-17 2014-02-04 Apple Inc. Orientation detection using image processing
US20130290867A1 (en) * 2012-04-27 2013-10-31 Litera Technologies, LLC Systems and Methods For Providing Dynamic and Interactive Viewing and Control of Applications
EP2662748B1 (en) * 2012-05-09 2018-09-26 BlackBerry Limited A display system with image sensor based display orientation
US9494973B2 (en) * 2012-05-09 2016-11-15 Blackberry Limited Display system with image sensor based display orientation
US9244499B2 (en) * 2012-06-08 2016-01-26 Apple Inc. Multi-stage device orientation detection
US9123142B2 (en) * 2012-10-02 2015-09-01 At&T Intellectual Property I, L.P. Adjusting content display orientation on a screen based on user orientation
US8896533B2 (en) * 2012-10-29 2014-11-25 Lenova (Singapore) Pte. Ltd. Display directional sensing
KR20140085048A (ko) * 2012-12-27 2014-07-07 삼성전자주식회사 멀티 디스플레이 장치 및 제어 방법
US9262999B1 (en) * 2013-05-13 2016-02-16 Amazon Technologies, Inc. Content orientation based on user orientation
CN104423794A (zh) * 2013-09-11 2015-03-18 上海帛茂信息科技有限公司 一种具有双窗口显示功能的智能型移动设备
CN104598136B (zh) * 2013-10-31 2018-07-31 纬创资通(昆山)有限公司 移动装置及移动装置的显示画面旋转方法

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101989126A (zh) * 2009-08-07 2011-03-23 深圳富泰宏精密工业有限公司 手持式电子装置及其屏幕画面自动旋转方法
CN101794193A (zh) * 2010-02-23 2010-08-04 华为终端有限公司 画面控制方法及电子设备
CN102760024A (zh) * 2011-04-26 2012-10-31 鸿富锦精密工业(深圳)有限公司 屏幕图像旋转方法及系统
CN102436304A (zh) * 2011-11-14 2012-05-02 华为技术有限公司 一种屏幕横竖显示模式切换的方法和终端

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See also references of EP2950180A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110688183A (zh) * 2019-09-24 2020-01-14 Oppo广东移动通信有限公司 界面切换方法、界面切换装置、存储介质与显示设备
CN110688183B (zh) * 2019-09-24 2023-04-21 Oppo广东移动通信有限公司 界面切换方法、界面切换装置、存储介质与显示设备

Also Published As

Publication number Publication date
EP2950180B1 (en) 2020-09-02
US9589325B2 (en) 2017-03-07
CN103718148B (zh) 2019-09-20
CN103718148A (zh) 2014-04-09
US20150317768A1 (en) 2015-11-05
EP2950180A1 (en) 2015-12-02
EP2950180A4 (en) 2016-08-03

Similar Documents

Publication Publication Date Title
WO2014113951A1 (zh) 屏幕显示模式确定方法及终端设备
US10948993B2 (en) Picture-taking within virtual reality
US10349034B2 (en) Information processing apparatus, stereoscopic display method, and program
US9430045B2 (en) Special gestures for camera control and image processing operations
EP3063602B1 (en) Gaze-assisted touchscreen inputs
TWI543019B (zh) 自動化裝置顯示器的定向偵測技術
JP7005161B2 (ja) 電子機器及びその制御方法
US9432652B2 (en) Information processing apparatus, stereoscopic display method, and program
US10694115B2 (en) Method, apparatus, and terminal for presenting panoramic visual content
KR102450236B1 (ko) 전자 장치, 그 제어 방법 및 컴퓨터 판독가능 기록 매체
WO2017147748A1 (zh) 一种可穿戴式系统的手势控制方法以及可穿戴式系统
JP5764390B2 (ja) 画像生成プログラム、画像生成方法、画像生成装置及び画像生成システム
JP2012238293A (ja) 入力装置
EP2557482A2 (en) Input device, system and method
TWI499938B (zh) 觸控系統
CN105867597B (zh) 3d交互方法及3d显示设备
CN110494915B (zh) 电子装置及其控制方法和计算机可读介质
EP3702008A1 (en) Displaying a viewport of a virtual space
JP2021089382A (ja) 電子機器、電子機器の制御方法、プログラム、記憶媒体
JP7005160B2 (ja) 電子機器及びその制御方法
JP6686319B2 (ja) 画像投影装置及び画像表示システム
JP5759797B2 (ja) 画像生成プログラム、画像生成方法、画像生成装置及び画像生成システム
JP5950806B2 (ja) 入力装置、情報処理方法、及び情報処理プログラム
CN117930970A (zh) 电子设备控制方法、装置、设备及介质
WO2022241328A1 (en) Hand gesture detection methods and systems with hand shape calibration

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 13873069

Country of ref document: EP

Kind code of ref document: A1

WWE Wipo information: entry into national phase

Ref document number: 2013873069

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE