CN107483709A - A kind of horizontal/vertical screen switching method and mobile terminal - Google Patents

A kind of horizontal/vertical screen switching method and mobile terminal Download PDF

Info

Publication number
CN107483709A
CN107483709A CN201610865142.3A CN201610865142A CN107483709A CN 107483709 A CN107483709 A CN 107483709A CN 201610865142 A CN201610865142 A CN 201610865142A CN 107483709 A CN107483709 A CN 107483709A
Authority
CN
China
Prior art keywords
mobile terminal
vector
facial
screen
angle
Prior art date
Application number
CN201610865142.3A
Other languages
Chinese (zh)
Inventor
浠gゥ
代祥
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 CN201610865142.3A priority Critical patent/CN107483709A/en
Publication of CN107483709A publication Critical patent/CN107483709A/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING; COUNTING
    • G06KRECOGNITION OF DATA; PRESENTATION OF DATA; RECORD CARRIERS; HANDLING RECORD CARRIERS
    • G06K9/00Methods or arrangements for reading or recognising printed or written characters or for recognising patterns, e.g. fingerprints
    • G06K9/00221Acquiring or recognising human faces, facial parts, facial sketches, facial expressions
    • G06K9/00268Feature extraction; Face representation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers; Analogous equipment at exchanges
    • H04M1/72Substation extension arrangements; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selecting
    • H04M1/725Cordless telephones
    • H04M1/72519Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status
    • H04M1/72563Portable communication terminals with improved user interface to control a main telephone operation mode or to indicate the communication status with means for adapting by the user the functionality or the communication capability of the terminal under specific circumstances
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/222Studio circuitry; Studio devices; Studio equipment ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, TV cameras, video cameras, camcorders, webcams, camera modules for embedding in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/225Television cameras ; Cameras comprising an electronic image sensor, e.g. digital cameras, video cameras, camcorders, webcams, camera modules specially adapted for being embedded in other devices, e.g. mobile phones, computers or vehicles
    • H04N5/232Devices for controlling television cameras, e.g. remote control ; Control of cameras comprising an electronic image sensor
    • H04N5/23218Control of camera operation based on recognized objects
    • H04N5/23219Control of camera operation based on recognized objects where the recognized objects include parts of the human body, e.g. human faces, facial parts or facial expressions

Abstract

The present invention provides a kind of horizontal/vertical screen switching method and mobile terminal, wherein, the horizontal/vertical screen switching method includes:The face feature information of mobile terminal user is gathered by front camera, according to the face feature information, it is determined that facial reference vector, and according to the position relationship between the facial reference vector and screen coordinate system, carries out that transverse screen is shown or portrait layout is shown.The solution of the present invention, it can be shown by user using during mobile terminal with the relative position of mobile terminal determining transverse screen or portrait layout is shown, do not limited by mobile terminal itself posture, improve user experience.

Description

A kind of horizontal/vertical screen switching method and mobile terminal

Technical field

The present invention relates to field of terminal technology, more particularly to a kind of horizontal/vertical screen switching method and mobile terminal.

Background technology

Currently, widely used horizontal/vertical screen switching method is to determine phase by gravity sensor in mobile terminal such as mobile phone The posture of mobile terminal is answered, so as to terminal display interface in rotary moving.Wherein, gravity sensor is to be in upright in default user Posture of the mobile terminal relative to ground is judged in the case of posture, so, existing horizontal/vertical screen switching method can only be accurate Mobile terminal is determined relative to the horizontal/vertical screen posture during vertical state of ground, and mobile terminal relative to ground it is parallel or Close to it is parallel when, just can not definitely obtain the horizontal/vertical screen posture of mobile terminal.Mobile terminal is kept flat on the table for example, working as In use, or when user is in lying position and uses mobile terminal, gravity sensor does not just have corresponding effect, to enter Row horizontal/vertical screen switches.

That is, the handoff scenario of existing horizontal/vertical screen switching method is subject to certain restrictions, brought not to user's use Just.

The content of the invention

The embodiment of the present invention provides a kind of horizontal/vertical screen switching method and mobile terminal, to solve existing horizontal/vertical screen switching side The problem of handoff scenario of method is subject to certain restrictions.

On the one hand, the embodiment of the present invention provides a kind of horizontal/vertical screen switching method, including:

The face feature information of mobile terminal user is gathered by front camera;

According to the face feature information, it is determined that facial reference vector;

According to the position relationship between the facial reference vector and screen coordinate system, progress transverse screen is shown or portrait layout shows Show, the screen coordinate system is the plane coordinate system parallel with mobile terminal screen.

On the other hand, the embodiment of the present invention also provides a kind of mobile terminal, including:

Acquisition module, for gathering the face feature information of mobile terminal user by front camera;

Determining module, for according to the face feature information, it is determined that facial reference vector;

Display module, for according to the position relationship between the facial reference vector and screen coordinate system, carrying out transverse screen Display or portrait layout show that the screen coordinate system is the plane coordinate system parallel with mobile terminal screen.

So, the horizontal/vertical screen switching method of the embodiment of the present invention, the face of mobile terminal user is gathered by front camera Portion's characteristic information, according to the face feature information, it is determined that facial reference vector, and according to the facial reference vector and screen Position relationship between coordinate system, carry out transverse screen and show or portrait layout is shown, when can use mobile terminal by user and movement The relative position of terminal shows determining transverse screen or portrait layout is shown, is not limited by mobile terminal itself posture, improves user Usage experience.

Brief description of the drawings

In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.

Fig. 1 represents the flow chart of the horizontal/vertical screen switching method of first embodiment of the invention.

Fig. 2 represents the flow chart of the horizontal/vertical screen switching method of second embodiment of the invention.

Fig. 3 represents the schematic diagram of the three-dimensional system of coordinate centered on mobile terminal in the specific embodiment of the invention.

Fig. 4 represents to calculate one of situation of angle of facial reference vector a and X-axis in the specific embodiment of the invention.

Fig. 5 represents to calculate the two of the situation of facial reference vector a and the angle of X-axis in the specific embodiment of the invention.

Fig. 6 represents one of structural representation of mobile terminal of third embodiment of the invention.

Fig. 7 represents the two of the structural representation of the mobile terminal of third embodiment of the invention.

Fig. 8 represents the structural representation of the mobile terminal of fourth embodiment of the invention.

Embodiment

In order to illustrate the technical solution of the embodiments of the present invention more clearly, it will make below to required in the embodiment of the present invention Accompanying drawing is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, for For those of ordinary skill in the art, without having to pay creative labor, it can also be obtained according to these accompanying drawings His accompanying drawing.

First embodiment

Shown in Figure 1, first embodiment of the invention provides a kind of horizontal/vertical screen switching method, applied to mobile terminal, bag Step 101~step 103 is included, details are as follows.

Step 101:The face feature information of mobile terminal user is gathered by front camera.

In the embodiment of the present invention, the face feature information of mobile terminal user is gathered primarily to subsequently determining that user makes With during mobile terminal and mobile terminal relative position.Wherein, the main face information with user of the face feature information of user It is related.

When obtaining the face feature information of mobile terminal user, can be adopted first by the front camera in mobile terminal Collect the face-image of user, corresponding face information i.e. face feature information is obtained further according to the face-image collected.

Step 102:According to the face feature information, it is determined that facial reference vector.

In the embodiment of the present invention, the eye characteristic of facial reference vector major embodiment user, it can pay the utmost attention to according to user Two between line and preset standard direction determine that but the present invention is not limited, such as also can be (or other according to two ears Face) between horizontal line and preset standard direction determine.

It should be noted that preset standard direction herein need to determine by the face feature information of user.For example, in advance The reference direction of setting is under the direction that place between the eyebrows points to eye center is, in this case, to correspond to the side of facial reference vector To can be absolute presupposition reference direction (or to the left) to the right;Or the reference direction pre-set is that nose is pointed at face center Direction be on, in this case, the direction of corresponding facial reference vector can be absolute presupposition reference direction to the right (or to It is left).

Step 103:According to the position relationship between the facial reference vector and screen coordinate system, carry out transverse screen show or Portrait layout is shown.

In the embodiment of the present invention, the screen coordinate system is the plane coordinate system parallel with mobile terminal screen.For example, In the screen coordinate system, the width of mobile terminal screen and length direction can be set to X-axis and Y-axis, and X-axis or Y The origin of axle is the central point of mobile terminal screen.

Also, due to general face mobile terminal when user uses mobile terminal, facial reference vector is according to user What face feature information determined, so, facial reference vector is generally parallel with the plane where mobile terminal screen.

So, according to the position relationship between facial reference vector and screen coordinate system, so that it may it is determined that facial reference vector It is biased into X-axis and is also biased into Y-axis, specifically determines that facial reference vector is biased into the width of mobile terminal screen or inclined To the length direction of mobile terminal screen, and then the deviation progress transverse screen based on facial reference vector is shown or portrait layout is shown.

The horizontal/vertical screen switching method of the embodiment of the present invention, the facial characteristics of mobile terminal user is gathered by front camera Information, according to the face feature information, it is determined that facial reference vector, and according to the facial reference vector and screen coordinate system Between position relationship, carry out transverse screen and show or portrait layout is shown, when can use mobile terminal by user and mobile terminal Relative position shows determining transverse screen or portrait layout is shown, is not limited by mobile terminal itself posture, improves user and use body Test.

Second embodiment

Shown in Figure 2, second embodiment of the invention provides a kind of horizontal/vertical screen switching method, applied to mobile terminal, bag Step 201~step 207 is included, details are as follows.

Step 201:The three-dimensional of the acceleration of gravity of the mobile terminal is detected by the gravity sensor in mobile terminal Component.

Wherein, the symbol of acceleration of gravity is g, is existed because of centrifugal force.The gravity sensor of mobile terminal is built in, Can according to the difference of mobile terminal placement direction, on the three-dimensional for acceleration of gravity being decomposed X-axis, Y-axis and Z axis, generally, The direction that mobile terminal is placed is different, and component of the acceleration of gravity on different dimensions direction is also different.

Relative to mobile terminal, conventional three-dimensional system of coordinate reference direction is as shown in figure 3, i.e. by the width of mobile terminal screen Degree direction and length direction are set to X, Y-axis, the direction of vertical screen are set into Z axis, the central point of the three-dimensional system of coordinate is physics The central point of screen.

Step 202:Judge whether the three-dimensional component of the acceleration of gravity meets preparatory condition.

In the embodiment of the present invention, only when the three-dimensional component of acceleration of gravity meets preparatory condition, it can just determine to move Dynamic terminal is to be in portrait layout state in transverse screen state.

Specifically, the preparatory condition in step 202 is, for example,:Acceleration of gravity component on Z axis is less than gcosx, and x can use It is worth for 25 degree or 30 degree etc., depending on the actual conditions of mobile terminal.I.e. the embodiment of the present invention is mainly according to Z axis and acceleration The angle y (referring to the angle less than 90 degree) in direction, to judge that mobile terminal can be determined according to the three-dimensional component of acceleration of gravity It is to be in portrait layout state in transverse screen state.When y is less than x, it is impossible to determined according to the three-dimensional component of acceleration of gravity Mobile terminal is to be in portrait layout state in transverse screen state, only when y is more than or equal to x, is possible to determine.

203:If the three-dimensional component of the acceleration of gravity meets the preparatory condition, according to the three of the acceleration of gravity Component is tieed up, progress transverse screen is shown or portrait layout is shown.

In the embodiment of the present invention, the X-axis component and Y-axis component mainly in the three-dimensional component of acceleration of gravity are come really Determine the state of mobile terminal.Specific method is as follows:It is that tan calculates to carry out trigonometric function using Y-axis component and X-axis component, If tangent value is more than 1, Y-axis component is more than X-axis component, and mobile terminal is in portrait layout state, and if tangent value is less than 1, Y-axis Component is less than X-axis component, and mobile terminal is in transverse screen state.

Wherein, mobile terminal will carry out transverse screen and show when in transverse screen state, and when in portrait layout state, to enter Row portrait layout is shown.

Step 204:If the three-dimensional component of the acceleration of gravity is unsatisfactory for the preparatory condition, adopted by front camera Collect the face feature information of mobile terminal user.

In the embodiment of the present invention, the face feature information of user is mainly related to the face information of user.Moved obtaining During the face feature information of terminal user, the face-image of user can be gathered by the front camera in mobile terminal first, Corresponding face information i.e. face feature information is obtained further according to the face-image collected.

Step 205:According to the face feature information, the position of two of the mobile terminal user and pre- bidding are determined Quasi- direction.

In the embodiment of the present invention, preset standard direction need to determine by the face feature information of user.For example, pre-set Reference direction for place between the eyebrows point to eye center direction be under, or, the reference direction pre-set be face center refer to On being to the direction of nose.

Step 206:Facial reference vector is determined by the line between described two and the preset standard direction.

Wherein, it is determined that the size and Orientation of facial reference vector need to be determined during facial reference vector.Due to mobile terminal Screen is generally watched by the eyes of user, so, the length of line between user two can be defined as facial reference vector Size.

It is determined that facial reference vector direction when, be based primarily upon preset standard direction.For example, the standard side pre-set Under being to the direction for place between the eyebrows sensing eye center, in this case, the direction of corresponding facial reference vector can be relatively pre- If reference direction is to the right (or to the left);Or the reference direction pre-set be face center point to nose direction be on, In this case, the direction of corresponding facial reference vector can be absolute presupposition reference direction (or to the left) to the right.

Step 207:Calculate the angle of the facial reference vector and the plane coordinates axle in the screen coordinate system.

Specifically, calculating facial reference vector and the mode of the angle of the plane coordinates axle in screen coordinate system can be:Weight The starting point of facial reference vector and the origin of plane coordinates axle are closed, by facial reference vector according to being rotated clockwise to face When the direction of reference vector is consistent with the positive direction of plane coordinates axle across angle be considered as facial reference vector and plane and sit The angle of parameter.

For example, when calculating facial reference vector a and X-axis angle, in the case of figure 4, both angles are angle 1, and in the case of fig. 5, both angles are angle 2.

Step 208:According to the angle being calculated, progress transverse screen is shown or portrait layout is shown.

In the embodiment of the present invention, when being shown according to the angle progress transverse screen being calculated or portrait layout is shown, because plane is sat The difference in the direction of parameter, it can at least be divided into following two situations:

Situation one:The direction of plane coordinates axle is consistent with the width of mobile terminal screen

In situation once, it is assumed that the angle of facial reference vector and plane coordinates axle is α, then:

If 45 ° or 135 ° of α <, 225 ° of < α < or 315 ° of α >, facial reference vector compares the length of mobile terminal screen The width of mobile terminal screen is inclined in direction, is carried out portrait layout and is shown;Or

If 45 °≤α≤135 ° or 225 °≤α≤315 °, facial reference vector compares the width side of mobile terminal screen To the length direction of deviation mobile terminal screen, carry out transverse screen and show.

Situation two:The direction of plane coordinates axle is consistent with the length direction of mobile terminal screen

In situation two, it is assumed that the angle of facial reference vector and plane coordinates axle is β, then:

If 45 ° or 135 ° of β <, 225 ° of < β < or 315 ° of β >, facial reference vector compares the width of mobile terminal screen The length direction of mobile terminal screen is inclined in direction, is carried out transverse screen and is shown;Or

If 45 °≤β≤135 ° or 225 °≤β≤315 °, facial reference vector compares the length side of mobile terminal screen To the width of deviation mobile terminal screen, carry out portrait layout and show.

In practical application, shown or when portrait layout is shown according to α or β, carrying out transverse screen, can be by corresponding with α or β vertical and horizontal Screen parameter is shown.For example, it can pre-set as 135 ° of 45 ° or 135 ° of α < 225 ° of < α < or α >, corresponding horizontal/vertical screen Parameter is 0, now carries out portrait layout and shows;It can pre-set when 45 °≤α≤135 ° or 225 °≤α≤315 °, it is corresponding vertical and horizontal It is 1 to shield parameter, now carries out transverse screen and shows;It can pre-set as 135 ° of 45 ° or 135 ° of β < 225 ° of < β < or β >, it is corresponding Horizontal/vertical screen parameter be 2, now carry out transverse screen show;It can pre-set when 45 °≤β≤135 ° or 225 °≤β≤315 °, it is right The horizontal/vertical screen parameter answered is 3, now carries out portrait layout and shows.

The horizontal/vertical screen switching method of the embodiment of the present invention, the vertical and horizontal of mobile terminal can interpolate that out by gravity sensor During screen state, the result judged by means of gravity sensor carries out transverse screen or portrait layout is shown, and is passing through gravity sensor When can not judge the horizontal/vertical screen state of mobile terminal, when using mobile terminal by user and mobile terminal relative position , can be in the case where improving the horizontal/vertical screen handoff functionality of mobile terminal to determine that transverse screen is shown or portrait layout is shown, effective control Power consumption processed, improve user experience.

3rd embodiment

Shown in Figure 6, third embodiment of the invention provides a kind of mobile terminal, with the horizontal/vertical screen switching side shown in Fig. 1 Method is corresponding, can realize the details of the horizontal/vertical screen switching method in first embodiment, and reaches identical effect.The movement Terminal includes acquisition module 61, determining module 62 and display module 63, and details are as follows.

Wherein, the acquisition module 61, for gathering the face feature information of mobile terminal user by front camera.

The determining module 62, for according to the face feature information, it is determined that facial reference vector.

The display module 63, for according to the position relationship between the facial reference vector and screen coordinate system, entering Row transverse screen is shown or portrait layout is shown, the screen coordinate system is the plane coordinate system parallel with mobile terminal screen.

Shown in Figure 7 in the embodiment of the present invention, the determining module 62 includes the first determination sub-module 621 and second Determination sub-module 622, details are as follows.

Wherein, first determination sub-module 621, for according to the face feature information, determining the mobile terminal The position of two of user and preset standard direction.

Second determination sub-module 622, for true by the line between described two and the preset standard direction The fixed facial reference vector.

Further, shown in Figure 7, the display module 63 includes calculating sub module 631 and display sub-module 632, Details are as follows.

Wherein, the calculating sub module 631, for calculating the facial reference vector and putting down in the screen coordinate system The angle of areal coordinate axle.

The display sub-module 632, for according to the angle being calculated, progress transverse screen is shown or portrait layout is shown.

Wherein, calculating sub module 631, specifically for the starting point for overlapping the facial reference vector and the plane coordinates axle Origin, by the facial reference vector according to being rotated clockwise to the direction of the facial reference vector and the plane When the positive direction of reference axis is consistent across angle be considered as the angle of the facial reference vector and the plane coordinates axle.

Specifically, the direction of the plane coordinates axle is consistent with the width of the mobile terminal screen, the face The angle of reference vector and the plane coordinates axle is α, and the display sub-module 63 is specifically used for:

In 315 ° of 45 ° or 135 ° of α < 225 ° of < α < or α >, carry out portrait layout and show;Or

At 45 °≤α≤135 ° or 225 °≤α≤315 °, carry out transverse screen and show.

Specifically, the direction of the plane coordinates axle is consistent with the length direction of the mobile terminal screen, the face The angle of reference vector and the plane coordinates axle is β, and the display sub-module 63 is specifically used for:

In 315 ° of 45 ° or 135 ° of β < 225 ° of < β < or β >, carry out transverse screen and show;Or

At 45 °≤β≤135 ° or 225 °≤β≤315 °, carry out portrait layout and show.

Further, shown in Figure 7, the mobile terminal also includes detection module 64 and judge module 65, is described in detail such as Under.

Wherein, the detection module 64, it is described mobile whole for being detected by the gravity sensor in the mobile terminal The three-dimensional component of the acceleration of gravity at end.

The judge module 65, for judging whether the three-dimensional component of the acceleration of gravity meets preparatory condition, wherein, When the three-dimensional component of the acceleration of gravity is unsatisfactory for the preparatory condition, it is impossible to which it is in horizontal stroke to determine the mobile terminal Screen state is in portrait layout state.

And the acquisition module 61 is specifically used for:The preparatory condition is unsatisfactory in the three-dimensional component of the acceleration of gravity When, pass through the face feature information of front camera collection mobile terminal user.

The mobile terminal of the embodiment of the present invention, the face feature information of mobile terminal user is gathered by front camera, According to the face feature information, it is determined that facial reference vector, and according between the facial reference vector and screen coordinate system Position relationship, carry out transverse screen and show or portrait layout is shown, when can use mobile terminal by user and mobile terminal it is relative Position shows determining transverse screen or portrait layout is shown, is not limited by mobile terminal itself posture, improves user experience.

Fourth embodiment

Fig. 8 is the structural representation of the mobile terminal of fourth embodiment of the invention.Mobile terminal 800 shown in Fig. 8 includes: At least one processor 801, memory 802, at least one network interface 804 and user interface 803.In mobile terminal 800 Each component is coupled by bus system 805.It is understood that bus system 805 is used to realize the company between these components Connect letter.Bus system 805 is in addition to including data/address bus, in addition to power bus, controlling bus and status signal bus in addition.But It is for the sake of clear explanation, various buses is all designated as bus system 805 in fig. 8.

Wherein, user interface 803 can include display, keyboard or pointing device (for example, mouse, trace ball (trackball), touch-sensitive plate or touch-screen, front camera etc..

It is appreciated that the memory 802 in the embodiment of the present invention can be volatile memory or nonvolatile memory, Or it may include both volatibility and nonvolatile memory.Wherein, nonvolatile memory can be read-only storage (Read- Only Memory, ROM), programmable read only memory (Programmable ROM, PROM), the read-only storage of erasable programmable Device (Erasable PROM, EPROM), Electrically Erasable Read Only Memory (Electrically EPROM, EEPROM) or Flash memory.Volatile memory can be random access memory (Random Access Memory, RAM), and it is used as outside high Speed caching.By exemplary but be not restricted explanation, the RAM of many forms can use, such as static RAM (Static RAM, SRAM), dynamic random access memory (Dynamic RAM, DRAM), Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), double data speed synchronous dynamic RAM (Double Data Rate SDRAM, DDRSDRAM), enhanced Synchronous Dynamic Random Access Memory (Enhanced SDRAM, ESDRAM), synchronized links Dynamic random access memory (Synchlink DRAM, SLDRAM) and direct rambus random access memory (Direct Rambus RAM, DRRAM).The memory 802 of system and method described herein be intended to including but not limited to these and it is any its It is adapted to the memory of type.

In some embodiments, memory 802 stores following element, can perform module or data structure, or Their subset of person, or their superset:Operating system 8021 and application program 8022.

Wherein, operating system 8021, comprising various system programs, such as ccf layer, core library layer, driving layer etc., it is used for Realize various basic businesses and the hardware based task of processing.Application program 8022, include various application programs, such as media Player (Media Player), browser (Browser) etc., for realizing various applied business.Realize the embodiment of the present invention The program of method may be embodied in application program 8022.

In embodiments of the present invention, by calling program or the instruction of the storage of memory 802, specifically, can be application The program stored in program 8022 or instruction, the front camera collection movement that processor 801 is used to pass through in user interface 803 The face feature information of the user of terminal 800, according to the face feature information, it is determined that facial reference vector, and according to the face Position relationship between portion's reference vector and screen coordinate system, progress transverse screen is shown on user interface 803 or portrait layout is shown.

The method that the embodiments of the present invention disclose can apply in processor 801, or be realized by processor 801. Processor 801 is probably a kind of IC chip, has the disposal ability of signal.In implementation process, the above method it is each Step can be completed by the integrated logic circuit of the hardware in processor 801 or the instruction of software form.Above-mentioned processing Device 801 can be general processor, digital signal processor (Digital Signal Processor, DSP), special integrated electricity Road (Application Specific Integrated Circuit, ASIC), ready-made programmable gate array (Field Programmable Gate Array, FPGA) either other PLDs, discrete gate or transistor logic, Discrete hardware components.It can realize or perform disclosed each method, step and the logic diagram in the embodiment of the present invention.It is general Processor can be microprocessor or the processor can also be any conventional processor etc..With reference to institute of the embodiment of the present invention The step of disclosed method, can be embodied directly in hardware decoding processor and perform completion, or with the hardware in decoding processor And software module combination performs completion.Software module can be located at random access memory, flash memory, read-only storage, may be programmed read-only In the ripe storage medium in this area such as memory or electrically erasable programmable memory, register.The storage medium is located at Memory 802, processor 801 read the information in memory 802, with reference to the step of its hardware completion above method.

It is understood that embodiments described herein can use hardware, software, firmware, middleware, microcode or its Combine to realize.Realized for hardware, processing unit can be realized in one or more application specific integrated circuit (Application Specific Integrated Circuits, ASIC), digital signal processor (Digital Signal Processing, DSP), digital signal processing appts (DSP Device, DSPD), programmable logic device (Programmable Logic Device, PLD), field programmable gate array (Field-Programmable Gate Array, FPGA), general processor, In controller, microcontroller, microprocessor, other electronic units for performing herein described function or its combination.

Realize, can be realized herein by performing the module (such as process, function etc.) of function described herein for software Described technology.Software code is storable in memory and passes through computing device.Memory can within a processor or Realized outside processor.

Alternatively, processor 801 is additionally operable to:According to the face feature information, the two of the mobile terminal user is determined The position and preset standard direction of eye, determine that the face is joined by the line between described two and the preset standard direction Examine vector.

Alternatively, processor 801 is additionally operable to:The facial reference vector is calculated to sit with the plane in the screen coordinate system The angle of parameter, according to the angle being calculated, progress transverse screen is shown or portrait layout is shown.

Wherein, the facial reference vector and the mode of the angle of the plane coordinates axle in the screen coordinate system are calculated For:

The starting point of the facial reference vector and the origin of the plane coordinates axle are overlapped, the facial reference vector is pressed According to be rotated clockwise to the direction of the facial reference vector it is consistent with the positive direction of the plane coordinates axle when institute across Angle be considered as the angle of the facial reference vector and the plane coordinates axle.

Alternatively, the direction of the plane coordinates axle is consistent with the width of the mobile terminal screen, the face The angle of reference vector and the plane coordinates axle is α, and processor 801 is additionally operable to:In 45 ° or 135 ° of α <, 225 ° of < α < or α 315 ° of >, progress portrait layout is shown on user interface 803;Or in 45 °≤α≤135 ° or 225 °≤α≤315 °, connect in user Transverse screen is carried out on mouth 803 to show.

Alternatively, the direction of the plane coordinates axle is consistent with the length direction of the mobile terminal screen, the face The angle of reference vector and the plane coordinates axle is β, and processor 801 is additionally operable to:In 45 ° or 135 ° of β <, 225 ° of < β < or β 315 ° of >, progress transverse screen is shown on user interface 803;Or in 45 °≤β≤135 ° or 225 °≤β≤315 °, connect in user Portrait layout is carried out on mouth 803 to show.

Alternatively, processor 801 is additionally operable to:The movement is detected by the gravity sensor in the mobile terminal 800 The three-dimensional component of the acceleration of gravity of terminal 800, judges whether the three-dimensional component of the acceleration of gravity meets preparatory condition, its In, only when the three-dimensional component of the acceleration of gravity meets the preparatory condition, it can just determine that the mobile terminal is Portrait layout state is in transverse screen state, if the three-dimensional component of the acceleration of gravity is unsatisfactory for the preparatory condition, is led to The face feature information of the front camera collection user of mobile terminal 800 crossed in user interface 803.

Mobile terminal 800 can realize each process that mobile terminal is realized in previous embodiment, to avoid repeating, here Repeat no more.

The mobile terminal 800 of the embodiment of the present invention, the facial characteristics of the user of mobile terminal 800 is gathered by front camera Information, according to the face feature information, it is determined that facial reference vector, and according to the facial reference vector and screen coordinate system Between position relationship, carry out transverse screen and show or portrait layout is shown, when can use mobile terminal by user and mobile terminal Relative position shows determining transverse screen or portrait layout is shown, is not limited by mobile terminal itself posture, improves user and use body Test.

Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed The scope of the present invention.

It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.

In embodiment provided herein, it should be understood that disclosed apparatus and method, others can be passed through Mode is realized.For example, device embodiment described above is only schematical, for example, the division of the unit, is only A kind of division of logic function, can there is an other dividing mode when actually realizing, for example, multiple units or component can combine or Person is desirably integrated into another system, or some features can be ignored, or does not perform.Another, shown or discussed is mutual Between coupling or direct-coupling or communication connection can be INDIRECT COUPLING or communication link by some interfaces, device or unit Connect, can be electrical, mechanical or other forms.

The unit illustrated as separating component can be or may not be physically separate, show as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.

In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.

If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention. And foregoing storage medium includes:USB flash disk, mobile hard disk, ROM, RAM, magnetic disc or CD etc. are various can be with store program codes Medium.

The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained Cover within protection scope of the present invention.Therefore, protection scope of the present invention should be defined by scope of the claims.

Claims (14)

  1. A kind of 1. horizontal/vertical screen switching method, it is characterised in that including:
    The face feature information of mobile terminal user is gathered by front camera;
    According to the face feature information, it is determined that facial reference vector;
    According to the position relationship between the facial reference vector and screen coordinate system, progress transverse screen is shown or portrait layout is shown, institute It is the plane coordinate system parallel with mobile terminal screen to state screen coordinate system.
  2. 2. according to the method for claim 1, it is characterised in that it is described according to the face feature information, it is determined that face ginseng Examining the step of vector includes:
    According to the face feature information, the position of two and preset standard direction of the mobile terminal user are determined;
    The facial reference vector is determined by the line between described two and the preset standard direction.
  3. 3. according to the method for claim 2, it is characterised in that described according to the facial reference vector and screen coordinate system Between position relationship, carry out transverse screen show or portrait layout show the step of include:
    Calculate the angle of the facial reference vector and the plane coordinates axle in the screen coordinate system;
    According to the angle being calculated, progress transverse screen is shown or portrait layout is shown.
  4. 4. according to the method for claim 3, it is characterised in that calculate the facial reference vector and the screen coordinate system In the mode of angle of plane coordinates axle be:
    The starting point of the facial reference vector and the origin of the plane coordinates axle are overlapped, by the facial reference vector according to suitable Clockwise rotate to the direction of the facial reference vector when consistent with the positive direction of the plane coordinates axle across angle Degree is considered as the angle of the facial reference vector and the plane coordinates axle.
  5. 5. according to the method for claim 4, it is characterised in that the direction of the plane coordinates axle and the mobile terminal screen The width of curtain is consistent, and the angle of the facial reference vector and the plane coordinates axle is α, what the basis was calculated Angle, carry out transverse screen show or portrait layout show the step of include:
    If 45 ° or 135 ° of α <, 225 ° of < α < or 315 ° of α >, carry out portrait layout and show;Or
    If 45 °≤α≤135 ° or 225 °≤α≤315 °, carry out transverse screen and show.
  6. 6. according to the method for claim 4, it is characterised in that the direction of the plane coordinates axle and the mobile terminal screen The length direction of curtain is consistent, and the angle of the facial reference vector and the plane coordinates axle is β, what the basis was calculated Angle, carry out transverse screen show or portrait layout show the step of include:
    If 45 ° or 135 ° of β <, 225 ° of < β < or 315 ° of β >, carry out transverse screen and show;Or
    If 45 °≤β≤135 ° or 225 °≤β≤315 °, carry out portrait layout and show.
  7. 7. according to the method for claim 1, it is characterised in that described to gather mobile terminal user's by front camera Before the step of face feature information, methods described also includes:
    The three-dimensional component of the acceleration of gravity of the mobile terminal is detected by the gravity sensor in the mobile terminal;
    Judge whether the three-dimensional component of the acceleration of gravity meets preparatory condition, wherein, only in the acceleration of gravity When three-dimensional component meets the preparatory condition, it is to be in portrait layout shape in transverse screen state that can just determine the mobile terminal State;
    It is described by front camera gather mobile terminal user face feature information the step of include:
    If the three-dimensional component of the acceleration of gravity is unsatisfactory for the preparatory condition, gathered by the front camera mobile whole The face feature information of end subscriber.
  8. A kind of 8. mobile terminal, it is characterised in that including:
    Acquisition module, for gathering the face feature information of mobile terminal user by front camera;
    Determining module, for according to the face feature information, it is determined that facial reference vector;
    Display module, for according to the position relationship between the facial reference vector and screen coordinate system, carrying out transverse screen and showing Or portrait layout is shown, the screen coordinate system is the plane coordinate system parallel with mobile terminal screen.
  9. 9. mobile terminal according to claim 8, it is characterised in that the determining module includes:
    First determination sub-module, for according to the face feature information, determining the position of two of the mobile terminal user With preset standard direction;
    Second determination sub-module, for determining that the face is joined by the line between described two and the preset standard direction Examine vector.
  10. 10. mobile terminal according to claim 9, it is characterised in that the display module includes:
    Calculating sub module, for calculating the angle of the facial reference vector and the plane coordinates axle in the screen coordinate system;
    Display sub-module, for according to the angle being calculated, progress transverse screen is shown or portrait layout is shown.
  11. 11. mobile terminal according to claim 10, it is characterised in that
    The calculating sub module, specifically for overlapping the starting point of the facial reference vector and the origin of the plane coordinates axle, By the facial reference vector according to being rotated clockwise to the direction of the facial reference vector and the plane coordinates axle Positive direction it is consistent when across angle be considered as the angle of the facial reference vector and the plane coordinates axle.
  12. 12. mobile terminal according to claim 11, it is characterised in that the direction of the plane coordinates axle and the movement The width of terminal screen is consistent, and the angle of the facial reference vector and the plane coordinates axle is α;
    The display sub-module is specifically used for:In 315 ° of 45 ° or 135 ° of α < 225 ° of < α < or α >, carry out portrait layout and show;
    Or
    At 45 °≤α≤135 ° or 225 °≤α≤315 °, carry out transverse screen and show.
  13. 13. mobile terminal according to claim 11, it is characterised in that the direction of the plane coordinates axle and the movement The length direction of terminal screen is consistent, and the angle of the facial reference vector and the plane coordinates axle is β;
    The display sub-module is specifically used for:In 315 ° of 45 ° or 135 ° of β < 225 ° of < β < or β >, carry out transverse screen and show;
    Or
    At 45 °≤β≤135 ° or 225 °≤β≤315 °, carry out portrait layout and show.
  14. 14. mobile terminal according to claim 8, it is characterised in that the mobile terminal also includes:
    Detection module, for the acceleration of gravity by the gravity sensor detection mobile terminal in the mobile terminal Three-dimensional component;
    Judge module, for judging whether the three-dimensional component of the acceleration of gravity meets preparatory condition, wherein, when the gravity When the three-dimensional component of acceleration is unsatisfactory for the preparatory condition, it is impossible to determine the mobile terminal be in transverse screen state or In portrait layout state;
    The acquisition module is specifically used for:
    When the three-dimensional component of the acceleration of gravity is unsatisfactory for the preparatory condition, is gathered and moved by the front camera The face feature information of terminal user.
CN201610865142.3A 2016-09-29 2016-09-29 A kind of horizontal/vertical screen switching method and mobile terminal CN107483709A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610865142.3A CN107483709A (en) 2016-09-29 2016-09-29 A kind of horizontal/vertical screen switching method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610865142.3A CN107483709A (en) 2016-09-29 2016-09-29 A kind of horizontal/vertical screen switching method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107483709A true CN107483709A (en) 2017-12-15

Family

ID=60593847

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610865142.3A CN107483709A (en) 2016-09-29 2016-09-29 A kind of horizontal/vertical screen switching method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107483709A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153422A (en) * 2018-01-08 2018-06-12 维沃移动通信有限公司 A kind of display object control method and mobile terminal
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Image pickup method, device, mobile terminal and storage medium
CN111372028A (en) * 2020-02-13 2020-07-03 广州视源电子科技股份有限公司 Picture rotation control method, device, terminal and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915188A (en) * 2011-08-01 2013-02-06 中国移动通信集团公司 Method and device for controlling display status of terminal screen
CN104125327A (en) * 2013-04-29 2014-10-29 深圳富泰宏精密工业有限公司 Screen rotation control method and system
CN104122983A (en) * 2013-04-27 2014-10-29 中国移动通信集团公司 Adjusting method and device for screen displaying direction
CN104182114A (en) * 2013-05-22 2014-12-03 辉达公司 Method and system for adjusting image display direction of mobile equipment
CN104820555A (en) * 2015-05-06 2015-08-05 努比亚技术有限公司 Transverse and vertical screen modes switching method and device, and terminal
CN104991723A (en) * 2015-07-08 2015-10-21 上海斐讯数据通信技术有限公司 Transverse and vertical screen switching system and method
EP3035165A1 (en) * 2012-01-12 2016-06-22 LG Electronics Inc. Mobile terminal and control method thereof

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102915188A (en) * 2011-08-01 2013-02-06 中国移动通信集团公司 Method and device for controlling display status of terminal screen
EP3035165A1 (en) * 2012-01-12 2016-06-22 LG Electronics Inc. Mobile terminal and control method thereof
CN104122983A (en) * 2013-04-27 2014-10-29 中国移动通信集团公司 Adjusting method and device for screen displaying direction
CN104125327A (en) * 2013-04-29 2014-10-29 深圳富泰宏精密工业有限公司 Screen rotation control method and system
CN104182114A (en) * 2013-05-22 2014-12-03 辉达公司 Method and system for adjusting image display direction of mobile equipment
CN104820555A (en) * 2015-05-06 2015-08-05 努比亚技术有限公司 Transverse and vertical screen modes switching method and device, and terminal
CN104991723A (en) * 2015-07-08 2015-10-21 上海斐讯数据通信技术有限公司 Transverse and vertical screen switching system and method

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108153422A (en) * 2018-01-08 2018-06-12 维沃移动通信有限公司 A kind of display object control method and mobile terminal
CN108540718A (en) * 2018-04-08 2018-09-14 Oppo广东移动通信有限公司 Image pickup method, device, mobile terminal and storage medium
CN111372028A (en) * 2020-02-13 2020-07-03 广州视源电子科技股份有限公司 Picture rotation control method, device, terminal and storage medium

Similar Documents

Publication Publication Date Title
TWI599922B (en) Electronic device with a user interface that has more than two degrees of freedom, the user interface comprising a touch-sensitive surface and contact-free detection means
EP2769289B1 (en) Method and apparatus for determining the presence of a device for executing operations
US9069386B2 (en) Gesture recognition device, method, program, and computer-readable medium upon which program is stored
US9092125B2 (en) Multi-mode touchscreen user interface for a multi-state touchscreen device
KR101116442B1 (en) Apparatus, method and computer program product for manipulating a device using dual side input devices
CN104407709B (en) The disposal route of the wearing state of wearable device and device
US9542541B1 (en) System and method for distinguishing human swipe input sequence behavior
CN106843739B (en) A kind of display control method and mobile terminal of mobile terminal
US10126824B2 (en) Generating a screenshot
US9910541B2 (en) Mis-touch recognition method and device
CN104571829B (en) The display control method and terminal of a kind of terminal
CN105824545A (en) Display adjusting method for display interface and mobile terminal
WO2012094656A9 (en) Systems and methods to present multiple frames on a touch screen
CN103488403B (en) interface layout switching method, device and mobile terminal
CN104571918A (en) Terminal single-hand operation interface triggering method and device
DK201970127A9 (en) Implementation of biometric authentication
CN103869960B (en) Tactile feedback system and its method that tactile feedback is provided
US8933885B2 (en) Method, apparatus, and computer program product for reducing hand or pointing device occlusions of a display
WO2013030441A1 (en) Method and apparatus for precluding operations associated with accidental touch inputs
CN104331168B (en) Display adjusting method and electronic equipment
EP2783472A1 (en) Apparatus and method for providing dynamic fiducial markers for devices
TW201104220A (en) Method for operating naivgation apparatus, navigation apparatus and computer program product
CN104636649A (en) Electronic apparatus and guiding method thereof
CN105243345B (en) The method and electronic equipment of a kind of electronic equipment false-touch prevention
CN103168281A (en) Methods and apparatus to detect a presence of a conductive object

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20171215

RJ01 Rejection of invention patent application after publication