CN104346030A - Display direction switching method, device and electronic equipment - Google Patents

Display direction switching method, device and electronic equipment Download PDF

Info

Publication number
CN104346030A
CN104346030A CN201310332357.5A CN201310332357A CN104346030A CN 104346030 A CN104346030 A CN 104346030A CN 201310332357 A CN201310332357 A CN 201310332357A CN 104346030 A CN104346030 A CN 104346030A
Authority
CN
China
Prior art keywords
switched
image
visual lines
screen
electronic equipment
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201310332357.5A
Other languages
Chinese (zh)
Inventor
廖海珍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN201310332357.5A priority Critical patent/CN104346030A/en
Priority to TW103119273A priority patent/TW201506812A/en
Priority to PCT/CN2014/083269 priority patent/WO2015014280A1/en
Publication of CN104346030A publication Critical patent/CN104346030A/en
Priority to HK15102641.2A priority patent/HK1202174A1/en
Pending legal-status Critical Current

Links

Classifications

    • 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • G06F3/013Eye tracking input arrangements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/161Indexing scheme relating to constructional details of the monitor
    • G06F2200/1614Image rotation following screen orientation, e.g. switching from landscape to portrait mode
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2200/00Indexing scheme relating to G06F1/04 - G06F1/32
    • G06F2200/16Indexing scheme relating to G06F1/16 - G06F1/18
    • G06F2200/163Indexing scheme relating to constructional details of the computer
    • G06F2200/1637Sensing arrangement for detection of housing movement or orientation, e.g. for controlling scrolling or cursor movement on the display of an handheld computer

Landscapes

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

Abstract

The invention discloses a display direction switching method, device and electronic equipment and belongs to the field of Internet terminals. The method includes: determining the to-be-switched display direction of contents displayed on a screen after the electronic equipment is rotated; capturing a facial image by a front camera to determine a face position; detecting whether the to-be-switched direction is consistent with the face position or not; if so, switching the current display direction of the contents displayed on the screen according to the to-be-switched direction. By the method, the problem that after the display direction of the contents displayed on the screen is switched along with the direction of gravity acceleration, the display direction and the actual viewing direction of a user are inconsistent, and the user can only watch normally by rotating back the electronic equipment and closing the function is solved, and the current display direction of the contents displayed on the screen is switched only when the to-be-switched direction is consistent with the face position.

Description

Display direction changing method, device and electronic equipment
Technical field
The present invention relates to internet terminal field, particularly a kind of display direction changing method, device and electronic equipment.
Background technology
At present, horizontal/vertical screen handoff technique has been widely used in the electronic equipment of such as smart mobile phone, panel computer, E-book reader or notebook and so on.When horizontal/vertical screen handoff technique refers to that electronic equipment rotates, on the screen of electronic equipment, the current display direction of displaying contents switches accordingly, to adapt to the technology of user's direction of visual lines, its essence is a kind of display direction self-adaptation handoff technique.
Common display direction changing method, comprising: electronic equipment gathers acceleration of gravity direction by built-in Gravity accelerometer; Then, on electronic equipment detection screen, whether the current display direction of displaying contents is consistent with the acceleration of gravity direction collected; If testing result is that display direction and acceleration of gravity direction are inconsistent, then the current display direction of displaying contents on toggle screen, makes this display direction and acceleration of gravity direction be consistent.Meanwhile, electronic equipment generally all provides the option opened or cut out display direction handoff functionality, and also, when this function is opened, on screen, the current display direction of displaying contents can be followed acceleration of gravity direction and switched; When this function is closed, on screen, the current display direction of displaying contents can remain unchanged, and does not follow acceleration of gravity direction and switch.
Realizing in process of the present invention, inventor finds that prior art at least exists following problem: when user lies on a bed use mobile phone or panel computer, on screen, the display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, and the direction of visual lines of meeting and user's reality is inconsistent.Now, user need by electronic equipment rotate return after, closing this function can normally watch.
Summary of the invention
In order to solve the current display direction of displaying contents on screen after automatically following the switching of acceleration of gravity direction, problem that may be inconsistent with the direction of visual lines of user's reality, embodiments provides a kind of display direction changing method, device and electronic equipment.Described technical scheme is as follows:
An aspect, provides a kind of display direction changing method, and for including in the electronic equipment of front-facing camera, described method comprises:
After described electronic equipment rotates, determine the to be switched direction of displaying contents on screen;
The facial image determination face location of being caught by described front-facing camera;
Detect described to be switched direction whether consistent with described face location;
If testing result is that described to be switched direction is consistent with described face location, then according to described to be switched direction, the current display direction of displaying contents on described screen is switched.
On the other hand, provide a kind of display direction switching device shifter, for including in the electronic equipment of front-facing camera, described device comprises:
Direction determination module, for after described electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
Face determination module, for the facial image determination face location of being caught by described front-facing camera;
Whether angle detecting module is consistent for detecting the described face location that described to be switched direction that described direction determination module determines and described face determination module determine;
Direction handover module, if be that described to be switched direction is consistent with described face location for the testing result of described angle detecting module, then switches the current display direction of displaying contents on described screen according to described to be switched direction.
Again on the one hand, provide a kind of electronic equipment, described electronic equipment comprises display direction switching device shifter as above.
The beneficial effect that the technical scheme that the embodiment of the present invention provides is brought is:
The facial image determination face location of being caught by front-facing camera, detects to be switched direction whether consistent with face location, according to the display direction of displaying contents on testing result toggle screen; Solve when electronic equipment rotates, on screen, the display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, the direction of visual lines of meeting and user's reality is inconsistent, user need by electronic equipment rotate return after, close the problem that this function can normally be watched, reach only when to be switched direction is consistent with face location, the effect of the display direction of displaying contents on ability toggle screen.
Accompanying drawing explanation
In order to be illustrated more clearly in the technical scheme in the embodiment of the present invention, below the accompanying drawing used required in describing embodiment is briefly described, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the method flow diagram of the display direction changing method that one embodiment of the invention provides;
Fig. 2 A is the method flow diagram of the display direction changing method that another embodiment of the present invention provides;
Fig. 2 B is the enforcement schematic diagram of the to be switched direction that provides of another embodiment of the present invention and eyes place straight line;
Fig. 2 C is to be switched direction that another embodiment of the present invention the provides enforcement schematic diagram consistent with eyes place straight line;
Fig. 2 D is to be switched direction that another embodiment of the present invention the provides enforcement schematic diagram consistent with eyes place straight line
Fig. 3 A is the method flow diagram of the display direction changing method that another embodiment of the present invention provides;
Fig. 3 B is the enforcement schematic diagram of the to be switched direction that provides of another embodiment of the present invention and direction of visual lines;
Fig. 3 C is to be switched direction that another embodiment of the present invention the provides enforcement schematic diagram consistent with direction of visual lines;
Fig. 3 D is current display direction that another embodiment of the present invention the provides enforcement schematic diagram consistent with direction of visual lines;
Fig. 3 E is the inconsistent enforcement schematic diagram of the current display direction that provides of another embodiment of the present invention and direction of visual lines;
Fig. 4 is the structural representation of the display direction switching device shifter that one embodiment of the invention provides;
Fig. 5 is the structural representation of the display direction switching device shifter that another embodiment of the present invention provides;
Fig. 6 is the structural representation of the display direction switching device shifter that another embodiment of the present invention provides.
Embodiment
For making the object, technical solutions and advantages of the present invention clearly, below in conjunction with accompanying drawing, embodiment of the present invention is described further in detail.
Described herein " electronic equipment ", normally comprises the electronic equipment of front-facing camera.Can be specifically: smart mobile phone, panel computer, E-book reader, MP3 player (Moving Picture Experts Group Audio Layer III, dynamic image expert compression standard audio frequency aspect 3), MP4(Moving Picture Experts Group Audio Layer IV, dynamic image expert compression standard audio frequency aspect 3) player, pocket computer on knee and desk-top computer etc.It should be noted that, " front-facing camera " herein namely refers to the front-facing camera being built in electronic equipment, also refers to be connected with electronic equipment, for gathering the external camera of electronic equipment screen forward image.
Please refer to Fig. 1, it illustrates the method flow diagram of the display direction changing method that one embodiment of the invention provides.The present embodiment is mainly applied in the electronic equipment including front-facing camera with this display direction changing method and illustrates.This display direction changing method, comprising:
Step 102, after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
Step 104, the facial image determination face location of being caught by front-facing camera;
Step 106, detects to be switched direction whether consistent with face location;
Step 108, if testing result is that to be switched direction is consistent with face location, then switches according to the current display direction of to be switched direction by displaying contents on screen.
In sum, the display direction changing method that the embodiment of the present invention provides, the facial image determination face location of being caught by front-facing camera, detects to be switched direction whether consistent with face location, according to the display direction of displaying contents on testing result toggle screen; Solve when electronic equipment rotates, on screen, the current display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, the direction of visual lines of meeting and user's reality is inconsistent, user need by electronic equipment rotate return after, close the problem that this function can normally be watched, reach only when to be switched direction is consistent with face location, the effect of the current display direction of displaying contents on ability toggle screen.
Because face location can adopt at least two kinds of different features to characterize: 1, eyes place straight line; 2, direction of visual lines, direction of visual lines is also namely vertical with eyes line in face and point to the direction of face, so below respectively by two different embodiments to being described in detail.
Please refer to Fig. 2 A, it illustrates the method flow diagram of the display direction changing method that another embodiment of the present invention provides.The present embodiment is mainly applied to this display direction changing method and includes in the electronic equipment of front-facing camera, and face location adopts eyes place straight line to characterize and illustrates.This display direction changing method, comprising:
Step 201, after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
After electronic equipment rotates, usually determine the to be switched direction of displaying contents on screen according to acceleration of gravity direction.Specifically, this step includes but not limited to following three sub-steps:
1, electronic equipment gathers the acceleration of gravity direction of electronic equipment every predetermined time interval by built-in sensors;
Built-in sensors can be Gravity accelerometer, and predetermined time interval can be the default sample time interval of Gravity accelerometer.
2, whether whether electronic equipment detection acceleration of gravity direction consistent with the current display direction of displaying contents on screen;
If 3 testing results are that on acceleration of gravity direction and screen, the current display direction of displaying contents is inconsistent, then acceleration of gravity direction is defined as the to be switched direction of displaying contents on screen by electronic equipment.
Such as, at electronic equipment from vertically rotating to laterally, to be switched direction can as shown in direction a in Fig. 2 B.
Step 202, the facial image determination face location of being caught by front-facing camera;
Electronic equipment is also by the facial image determination face location that front-facing camera is caught, and in the present embodiment, face location is eyes position.Specifically, this step includes but not limited to following three sub-steps:
1, electronic equipment catches at least one image by front-facing camera;
Electronic equipment can only catch an image by front-facing camera, also can catch multiple images continuously, merges into an image after can also catching multiple images continuously.
In addition, use the scene of electronic equipment mostly to be night because user lies on a bed, and the light intensity at night is poor, affects sharpness and the brightness of the image collected.If electronic equipment also includes light sensor, electronic equipment can obtain the light intensity of current environment by light sensor, then electronic equipment determines the time shutter by light intensity, and time shutter and light intensity are negative correlativing relation, also namely light intensity is lower, and the time shutter is longer; Light intensity is higher, and the time shutter is shorter; Then, electronic equipment catches at least one image by front-facing camera according to the time shutter determined.Now, the image of satisfied analysis demand can usually be got.
2, electronic equipment detects at least one the image captured whether there is human face region;
If 3 testing results are there is human face region at least one image, then electronic equipment determines eyes place straight line according to the eyes region on human face region.
The content that in human face analysis and face, the analysis of eyes feature is well known to those skilled in the art, does not repeat them here.Electronic equipment using the eyes place straight line determined as face location.
Such as, face location is as shown in the straight line b in Fig. 2 B.
Certainly, if testing result is all images all there is not human face region, then the execution of subsequent step is stopped; Or, after waiting for the schedule time, re-execute step 201.
Step 203, whether the angle detecting to be switched direction and eyes place straight line is vertical relation;
Whether the angle that electronic equipment detects to be switched direction and eyes place straight line is vertical relation.Vertical relation refers to whether the angle of to be switched direction and eyes place straight line belongs to [90 ° of-α, 90 ° of+α], and α is predetermined threshold.
Step 204, if the angle that testing result is to be switched direction and eyes place straight line is vertical relation, then switches according to the current display direction of to be switched direction by displaying contents on screen.
If the angle that testing result is to be switched direction and eyes place straight line is vertical relation, also namely to be switched direction is consistent with face location, then electronic equipment switches according to the current display direction of to be switched direction by displaying contents on screen.
Such as, in fig. 2 c, formed by the direction a representing to be switched direction and the straight line b representing face location, angle is right angle x, then the display direction of displaying contents on screen switches to as shown in a of direction by electronic equipment.
Certainly, if the angle that testing result is to be switched direction and eyes place straight line is not vertical relation, then electronic equipment can keep the current display direction of the displaying contents on screen constant.
Such as, as in Fig. 2 D, represent the direction a in be switched direction and represent the straight line c out of plumb of face location, but almost parallel, then electronic equipment keeps the current display direction of displaying contents on screen constant.
In sum, the display direction changing method that the embodiment of the present invention provides, the facial image determination face location of being caught by front-facing camera, detects to be switched direction whether consistent with face location, according to the current display direction of displaying contents on testing result toggle screen; Solve when electronic equipment rotates, on screen, the current display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, the direction of visual lines of meeting and user's reality is inconsistent, user need by electronic equipment rotate return after, close the problem that this function can normally be watched, reach only when to be switched direction is consistent with face location, the effect of the current display direction of displaying contents on ability toggle screen.
Meanwhile, the present embodiment is owing to only needing to identify that eyes place straight line just can complete main evaluation work, and calculated amount is very little, is applicable to very much the not high mobile terminal of calculated performance and uses.
Please refer to Fig. 3 A, it illustrates the method flow diagram of the display direction changing method that another embodiment provides.The present embodiment is mainly applied to this display direction changing method and includes in the electronic equipment of front-facing camera, and face location adopts direction of visual lines to characterize and illustrates.This display direction changing method, comprising:
Step 301, after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
After electronic equipment rotates, usually determine the to be switched direction of displaying contents on screen according to acceleration of gravity direction.Specifically, this step includes but not limited to following three sub-steps:
1, electronic equipment gathers the acceleration of gravity direction of electronic equipment every predetermined time interval by built-in sensors;
Built-in sensors can be Gravity accelerometer, and predetermined time interval can be the default sample time interval of Gravity accelerometer.
2, whether whether electronic equipment detects acceleration of gravity direction consistent with the current display direction of displaying contents on screen;
3, if testing result is that on acceleration of gravity direction and screen, the current display direction of displaying contents is inconsistent, then acceleration of gravity direction is defined as the to be switched direction of displaying contents on screen by electronic equipment.
Such as, at electronic equipment from vertically rotating to laterally, to be switched direction can as shown in direction a in Fig. 3 B.Step 302, the facial image determination face location of being caught by front-facing camera;
Electronic equipment is also by the facial image determination face location that front-facing camera is caught, and in the present embodiment, face location is direction of visual lines position.Specifically, this step includes but not limited to following three sub-steps:
1, electronic equipment catches at least one image by front-facing camera;
Electronic equipment can only catch an image by front-facing camera, also can catch multiple images continuously, merges into an image after can also catching multiple images continuously.
In addition, use the scene of electronic equipment mostly to be night because user lies on a bed, and the light intensity at night is poor, affects sharpness and the brightness of the image collected.If electronic equipment also includes light sensor, electronic equipment can obtain the light intensity of current environment by light sensor, then electronic equipment determines the time shutter by light intensity, and time shutter and light intensity are negative correlativing relation, also namely light intensity is lower, and the time shutter is longer; Light intensity is higher, and the time shutter is shorter; Then, electronic equipment catches at least one image by front-facing camera according to the time shutter determined.Now, the image of satisfied analysis demand can usually be got.
2, electronic equipment detects at least one the image captured whether there is human face region;
If 3 testing results are there is human face region at least one image, then the direction of visual lines of user determined by electronic equipment according to the characteristic area on human face region, characteristic area comprises at least one in eye areas, brow region, nasal area, face region and ear region, and the direction of visual lines of user refers to vertical with eyes line in face and points to the direction of face.
The content that human face analysis and face characteristic regional analysis are well known to those skilled in the art, does not repeat them here.Electronic equipment using the direction of visual lines determined as face location.
Such as, direction of visual lines is as shown in the direction d in Fig. 3 B.
Certainly, if testing result is all images all there is not human face region, then the execution of subsequent step is stopped; Or, after waiting for the schedule time, re-execute step 301.
Step 303, detects to be switched direction whether consistent with direction of visual lines;
Whether electronic equipment detects to be switched direction consistent with direction of visual lines.To be switched direction is consistent with direction of visual lines refers to whether the angle of to be switched direction and direction of visual lines belongs to [0 ° of-β, 0 ° of+β], and β is predetermined threshold.
Step 304, if testing result is that to be switched direction is consistent with direction of visual lines, then switches the display direction of displaying contents on screen according to be switched direction.
If testing result is that to be switched direction is consistent with direction of visual lines, also namely to be switched direction is consistent with face location, then the display direction of displaying contents on screen switches according to be switched direction by electronic equipment.
Such as, in fig. 3 c, represent that the direction a in be switched direction is consistent with representing the direction d of direction of visual lines, then the display direction of displaying contents on screen switches to as shown in a of direction by electronic equipment.
Step 305, if testing result is that to be switched direction and direction of visual lines are inconsistent, then judges that on screen, whether the current display direction of displaying contents is consistent with direction of visual lines;
Step 306, if judged result is that current display direction is consistent with direction of visual lines, then keeps the current display direction of displaying contents on screen constant;
Such as, in fig. 3d, represent that the direction f of current display direction is consistent with representing the direction d of direction of visual lines, then electronic equipment keeps the current display direction of displaying contents on screen constant as shown in the f of direction.
Step 307, if judged result is that current display direction and direction of visual lines are inconsistent, switches to consistent with direction of visual lines by the current display direction of displaying contents on screen.
Such as, in fig. 3e, represent the direction f of current display direction and represent that the direction d of direction of visual lines is inconsistent, then the current display direction of displaying contents on screen switches to shown in direction of visual lines f by electronic equipment.
In sum, the display direction changing method that the embodiment of the present invention provides, the facial image determination face location of being caught by front-facing camera, detects to be switched direction whether consistent with face location, according to the display direction of displaying contents on testing result toggle screen; Solve when electronic equipment rotates, on screen, the current display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, the direction of visual lines of meeting and user's reality is inconsistent, user need by electronic equipment rotate return after, close the problem that this function can normally be watched, reach only when to be switched direction is consistent with face location, the effect of the current display direction of displaying contents on ability toggle screen.
Meanwhile, the present embodiment is due to by adding at least one comprised in eye areas, brow region, nasal area, face region and ear region, and the accurate further direction of face location, improves the degree of accuracy that display direction switches.
Be below device embodiment of the present invention, for the details of wherein not detailed description, can with reference to the embodiment of the method for above-mentioned correspondence.
Please refer to Fig. 4, it illustrates the block diagram of the display direction switching device shifter that one embodiment of the invention provides.This display direction switching device shifter can realize becoming all or part of of electronic equipment by software, hardware or both combinations.This display direction switching device shifter can comprise: direction determination module 420, face determination module 440, angle detecting module 460 and direction handover module 480;
Direction determination module 420, for after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
Face determination module 440, for the facial image determination face location of being caught by front-facing camera;
Angle detecting module 460, whether the to be switched direction determined to determination module 420 for detection side is consistent with the face location that face determination module 440 is determined;
Direction handover module 480, if be that to be switched direction is consistent with face location for the testing result of angle detecting module 460, then switches according to the current display direction of to be switched direction by displaying contents on screen.
In sum, the display direction switching device shifter that the embodiment of the present invention provides, the facial image determination face location of being caught by front-facing camera, detects to be switched direction whether consistent with face location, according to the display direction of displaying contents on testing result toggle screen; Solve when electronic equipment rotates, on screen, the current display direction of displaying contents is after automatically following the switching of acceleration of gravity direction, the direction of visual lines of meeting and user's reality is inconsistent, user need by electronic equipment rotate return after, close the problem that this function can normally be watched, reach only when to be switched direction is consistent with face location, the effect of the current display direction of displaying contents on ability toggle screen.
Because face location can adopt at least two kinds of different features to characterize: 1, eyes place straight line; 2, direction of visual lines, direction of visual lines is also namely vertical with eyes line in face and point to the direction of face, so below respectively by two different embodiments to being described in detail.
Please refer to Fig. 5, it illustrates the structural representation of the display direction switching device shifter that another embodiment of the present invention provides.The present embodiment is mainly applied to this display direction switching device shifter and includes in the electronic equipment of front-facing camera, and face location adopts eyes place straight line to characterize and illustrates.This display direction switching device shifter, comprising: direction determination module 420, face determination module 440, angle detecting module 460 and direction handover module 480;
Direction determination module 420, for after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
After electronic equipment rotates, usually determine the to be switched direction of displaying contents on screen according to acceleration of gravity direction.Specifically, direction determination module 420, comprises again: signal gathering unit 421, detecting signal unit 422 and direction-determining unit 423;
Signal gathering unit 421, for gathering the acceleration of gravity direction of electronic equipment every predetermined time interval by built-in sensors;
Detecting signal unit 422, whether whether consistent with the current display direction of displaying contents on screen for the acceleration of gravity direction that detection signal collecting unit 421 collects;
Direction-determining unit 423, if be that the current display direction of displaying contents on acceleration of gravity direction and screen is inconsistent for the testing result of detecting signal unit 422, is then defined as the to be switched direction of displaying contents on screen by acceleration of gravity direction.
Face determination module 440, for the facial image determination face location of being caught by front-facing camera;
Electronic equipment is also by the facial image determination face location that front-facing camera is caught, and in the present embodiment, face location is eyes position.Specifically, face determination module 440, comprises again: image capturing unit 441, image detecting element 442 and straight line determining unit 443;
Image capturing unit 441, for catching at least one image by described front-facing camera;
Image capturing unit 441 only can catch an image, also can catch multiple images continuously, merges into an image after can also catching multiple images continuously.
In addition, use the scene of electronic equipment mostly to be night because user lies on a bed, and the light intensity at night is poor, affects sharpness and the brightness of the image collected.If image capturing unit 441, also comprises: light obtains subelement 441a, exposure analysis subelement 441b and image capture subelement 441c;
Electronic equipment can obtain by light the light intensity that subelement 441a obtains current environment, then exposure analysis subelement 441b can obtain according to light the light intensity of current environment that subelement 441a obtains and determines the time shutter, time shutter and light intensity are negative correlativing relation, also namely light intensity is lower, and the time shutter is longer; Light intensity is higher, and the time shutter is shorter; Then, the time shutter that image capture subelement 441c determines according to exposure analysis subelement 441b catches at least one image.Now, the image of satisfied analysis demand can usually be got.
Whether image detecting element 442, exist human face region at least one the image that detected image capturing unit 441 captures;
Straight line determining unit 443, if be there is human face region at least one image for the testing result of image detecting element 442, then determines eyes place straight line according to the eyes region on human face region;
Certainly, if the testing result of image detecting element 442 is all images all there is not human face region, then the execution of subsequent step is stopped; Or, after waiting for the time shutter that exposure analysis subelement 441b determines, image capture subelement 441c recapture at least one image.
Angle detecting module 460, whether the angle of the eyes place straight line determined to the to be switched direction that determination module 420 is determined and straight line determining unit 443 for detection side is vertical relation;
Whether the angle of the eyes place straight line that angle detecting module 460 detection side determines to the to be switched direction that determination module 420 is determined and straight line determining unit 443 is vertical relation.Vertical relation is whether the angle of the eyes place straight line that the to be switched direction determined of finger direction determination module 420 and straight line determining unit 443 are determined belongs to [90 ° of-α, 90 ° of+α], and α is predetermined threshold.
Direction handover module 480, if be to be switched direction and eyes place straight line for the testing result of angle detecting module 460, angle is vertical relation, then switch according to the current display direction of to be switched direction by displaying contents on screen.
Certainly, if the angle that the testing result of angle detecting module 460 is to be switched direction and eyes place straight line is not vertical relation, then direction handover module 480 can keep the current display direction of the displaying contents on screen constant.
Please refer to Fig. 6, it illustrates the structural representation of the display direction switching device shifter that another embodiment provides.The present embodiment is mainly applied to this display direction switching device shifter and includes in the electronic equipment of front-facing camera, and face location adopts direction of visual lines to characterize and illustrates.This display direction switching device shifter, comprising: direction determination module 420, face determination module 440, angle detecting module 460 and direction handover module 480;
Direction determination module 420, for after electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
After electronic equipment rotates, usually determine the to be switched direction of displaying contents on screen according to acceleration of gravity direction.Specifically, direction determination module 420, comprises again: signal gathering unit 421, detecting signal unit 422 and direction-determining unit 423;
Signal gathering unit 421, for gathering the acceleration of gravity direction of electronic equipment every predetermined time interval by built-in sensors;
Detecting signal unit 422, whether whether consistent with the current display direction of displaying contents on screen for the acceleration of gravity direction that detection signal collecting unit 421 collects;
Direction-determining unit 423, if be that the current display direction of displaying contents on acceleration of gravity direction and screen is inconsistent for the testing result of detecting signal unit 422, is then defined as the to be switched direction of displaying contents on screen by acceleration of gravity direction.
Face determination module 440, for the facial image determination face location of being caught by front-facing camera;
Electronic equipment is also by the facial image determination face location that front-facing camera is caught, and in the present embodiment, face location is eyes position.Specifically, face determination module 440, comprises again: image capturing unit 441, image detecting element 442 and sight line determining unit 444;
Image capturing unit 441, for catching at least one image by described front-facing camera;
Image capturing unit 441 only can catch an image, also can catch multiple images continuously, merges into an image after can also catching multiple images continuously.
In addition, use the scene of electronic equipment mostly to be night because user lies on a bed, and the light intensity at night is poor, affects sharpness and the brightness of the image collected.If image capturing unit 441, also comprises: light obtains subelement 441a, exposure analysis subelement 441b and image capture subelement 441c;
Electronic equipment can obtain by light the light intensity that subelement 441a obtains current environment, then exposure analysis subelement 441b can obtain according to light the light intensity of current environment that subelement 441a obtains and determines the time shutter, time shutter and light intensity are negative correlativing relation, also namely light intensity is lower, and the time shutter is longer; Light intensity is higher, and the time shutter is shorter; Then, the time shutter that image capture subelement 441c determines according to exposure analysis subelement 441b catches at least one image.Now, the image of satisfied analysis demand can usually be got.
Whether image detecting element 442, exist human face region at least one the image that detected image capturing unit 441 captures;
Sight line determining unit 444, if the testing result for image detecting element 442 is there is human face region at least one image, the direction of visual lines of user is then determined according to the characteristic area on described human face region, described characteristic area comprises at least one in eye areas, brow region, nasal area, face region and ear region, and the direction of visual lines of described user refers to vertical with eyes line in face and points to the direction of face;
Certainly, if the testing result of image detecting element 442 is all images all there is not human face region, then the execution of subsequent step is stopped; Or, after waiting for the time shutter that exposure analysis subelement 441b determines, image capture subelement 441c recapture at least one image.
Angle detecting module 460, whether the to be switched direction determined to determination module 420 for detection side is consistent with the direction of visual lines that sight line determining unit 444 is determined;
Whether the to be switched direction that angle detecting module 460 detection side determines to determination module 420 is consistent with the direction of visual lines that sight line determining unit 444 is determined.To be switched direction is consistent with direction of visual lines refers to whether the angle of to be switched direction and direction of visual lines belongs to [0 ° of-β, 0 ° of+β], and β is predetermined threshold.
Direction handover module 480, if be that to be switched direction is consistent with direction of visual lines for the testing result of angle detecting module 460, then switches according to the current display direction of to be switched direction by displaying contents on screen.
Certainly, if the testing result of angle detecting module 460 is that to be switched direction and direction of visual lines are inconsistent, this device, also comprises: walking direction module 410 and direction keep module 430;
Walking direction module 410, if be that to be switched direction and direction of visual lines are inconsistent for the testing result of angle detecting module 460, then judges that on screen, whether the current display direction of displaying contents is consistent with the direction of visual lines that sight line determining unit 444 is determined;
Direction keeps module 430, if be that current display direction is consistent with direction of visual lines for walking direction module 410 judged result, then keeps the current display direction of displaying contents on screen constant;
Direction handover module 480, if be that current display direction and direction of visual lines are inconsistent for walking direction module 410 judged result, switches to consistent with the direction of visual lines that sight line determining unit 444 is determined by the current display direction of displaying contents on screen.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, within the spirit and principles in the present invention all, any amendment done, equivalent replacement, improvement etc., all should be included within protection scope of the present invention.

Claims (13)

1. a display direction changing method, is characterized in that, for including in the electronic equipment of front-facing camera, described method comprises:
After described electronic equipment rotates, determine the to be switched direction of displaying contents on screen;
The facial image determination face location of being caught by described front-facing camera;
Detect described to be switched direction whether consistent with described face location;
If testing result is that described to be switched direction is consistent with described face location, then according to described to be switched direction, the current display direction of displaying contents on described screen is switched.
2. display direction changing method according to claim 1, is characterized in that, if described face location eyes place straight line characterizes, then described facial image of being caught by described front-facing camera determines the direction of visual lines of user, comprising:
At least one image is caught by described front-facing camera;
Detect in described at least one the image captured and whether there is human face region;
If testing result is there is human face region in described at least one image, then determine eyes place straight line according to the eyes region on described human face region;
Whether the described to be switched direction of described detection is consistent with described face location, comprising:
Whether the angle detecting described to be switched direction and described eyes place straight line is vertical relation.
3. display direction changing method according to claim 1, it is characterized in that, if described face location direction of visual lines characterizes, described direction of visual lines refers to vertical with eyes line in face and points to the direction of face, then described facial image of being caught by described front-facing camera determines the direction of visual lines of user, comprising:
At least one image is caught by described front-facing camera;
Detect in described at least one the image captured and whether there is human face region;
If testing result is there is human face region in described at least one image, the direction of visual lines of user is then determined according to the characteristic area on described human face region, described characteristic area comprises at least one in eye areas, brow region, nasal area, face region and ear region, and the direction of visual lines of described user refers to vertical with eyes line in face and points to the direction of face;
Whether the described to be switched direction of described detection is consistent with described face location, comprising:
Detect described to be switched direction whether consistent with described direction of visual lines.
4. the display direction changing method according to Claims 2 or 3, is characterized in that, described electronic equipment also comprises light sensor, describedly catches at least one image by described front-facing camera, comprising:
The light intensity of current environment is obtained by described light sensor;
Determine the time shutter by described light intensity, described time shutter and described light intensity are negative correlativing relation;
At least one image is caught according to the described time shutter determined by described front-facing camera.
5., according to the arbitrary described display direction changing method of claims 1 to 3, it is characterized in that, described after described electronic equipment rotates, determine the to be switched direction of displaying contents on screen, comprising:
The acceleration of gravity direction of described electronic equipment is gathered by built-in sensors every predetermined time interval;
Whether whether unanimously with the current display direction of displaying contents on described screen detect described acceleration of gravity direction;
If testing result is that on described acceleration of gravity direction and described screen, the current display direction of displaying contents is inconsistent, then described acceleration of gravity direction is defined as the to be switched direction of displaying contents on described screen.
6. display direction changing method according to claim 3, is characterized in that, after whether the described to be switched direction of described detection is consistent with described direction of visual lines, also comprises:
If testing result is that described to be switched direction and described direction of visual lines are inconsistent, then judge that whether the current display direction of displaying contents on described screen is consistent with described direction of visual lines;
If judged result is that described current display direction is consistent with described direction of visual lines, then keep the current display direction of displaying contents on described screen constant;
If judged result is that described current display direction and described direction of visual lines are inconsistent, the current display direction of displaying contents on described screen is switched to consistent with described direction of visual lines.
7. a display direction switching device shifter, is characterized in that, for including in the electronic equipment of front-facing camera, described device comprises:
Direction determination module, for after described electronic equipment rotates, determines the to be switched direction of displaying contents on screen;
Face determination module, for the facial image determination face location of being caught by described front-facing camera;
Whether angle detecting module is consistent for detecting the described face location that described to be switched direction that described direction determination module determines and described face determination module determine;
Direction handover module, if be that described to be switched direction is consistent with described face location for the testing result of described angle detecting module, then switches the current display direction of displaying contents on described screen according to described to be switched direction.
8. display direction switching device shifter according to claim 7, is characterized in that, if described face location eyes place straight line characterizes, then described face determination module, also comprises: image capturing unit, image detecting element and straight line determining unit;
Described image capturing unit, for catching at least one image by described front-facing camera;
Described image detecting element, for detecting in described at least one image that described image capturing unit captures whether there is human face region;
Described straight line determining unit, if be there is human face region in described at least one image for the testing result of described image detecting element, then determines eyes place straight line according to the eyes region on described human face region;
Described angle detecting module, specifically for detecting whether the angle of the described eyes place straight line that described to be switched direction and described straight line determining unit detect is vertical relation.
9. display direction switching device shifter according to claim 7, it is characterized in that, if described face location direction of visual lines characterizes, described direction of visual lines refers to vertical with eyes line in face and points to the direction of face, then described face determination module, also comprises: image capturing unit, image detecting element and sight line determining unit;
Described image capturing unit, for catching at least one image by described front-facing camera;
Described image detecting element, for detecting in described at least one image that described image capturing unit captures whether there is human face region;
Described sight line determining unit, if be there is human face region in described at least one image for testing result, the direction of visual lines of user is then determined according to the characteristic area on described human face region, described characteristic area comprises at least one in eye areas, brow region, nasal area, face region and ear region, and the direction of visual lines of described user refers to vertical with eyes line in face and points to the direction of face;
Whether described angle detecting module is consistent specifically for detecting the described direction of visual lines that described to be switched direction and described sight line determining unit determine.
10. display direction switching device shifter according to claim 8 or claim 9, it is characterized in that, described electronic equipment also comprises light sensor, and described image capturing unit, also comprises: light obtains subelement, exposure analysis subelement and image capture subelement;
Described light obtains subelement, for being obtained the light intensity of current environment by described light sensor;
Described exposure analysis subelement, the described light intensity got for being obtained subelement by described light determines the time, and described time shutter and described light intensity are negative correlativing relation;
Described image capture subelement, catches at least one image for the described time shutter determined according to described exposure analysis subelement by described front-facing camera.
11. according to the arbitrary described display direction switching device shifter of claim 7 to 9, and it is characterized in that, described direction determination module, also comprises: signal gathering unit, detecting signal unit and direction-determining unit;
Described signal gathering unit, for gathering the acceleration of gravity direction of described electronic equipment every predetermined time interval by built-in sensors;
Described detecting signal unit, whether whether consistent with the current display direction of displaying contents on described screen for detecting the described acceleration of gravity direction that described signal gathering unit collects;
Described direction-determining unit, if be that the current display direction of displaying contents on described acceleration of gravity direction and described screen is inconsistent for the testing result of described detecting signal unit, then described acceleration of gravity direction is defined as the to be switched direction of displaying contents on described screen.
12. display direction switching device shifters according to claim 9, it is characterized in that, described device, also comprises: walking direction module, direction keep module and direction handover module;
Described walking direction module, if be that described to be switched direction and described direction of visual lines are inconsistent for the testing result of described angle detecting module, then judges that on described screen, whether the current display direction of displaying contents is consistent with described direction of visual lines;
Described direction keeps module, if be that described current display direction is consistent with described direction of visual lines for the judged result of described walking direction module, then keeps the current display direction of displaying contents on described screen constant;
Described direction handover module, if be that described current display direction and described direction of visual lines are inconsistent for the judged result of described walking direction module, switches to consistent with described direction of visual lines by the current display direction of displaying contents on described screen.
13. 1 kinds of electronic equipments, is characterized in that, described electronic equipment comprise as arbitrary in claim 7 to 12 as described in display direction switching device shifter.
CN201310332357.5A 2013-08-01 2013-08-01 Display direction switching method, device and electronic equipment Pending CN104346030A (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
CN201310332357.5A CN104346030A (en) 2013-08-01 2013-08-01 Display direction switching method, device and electronic equipment
TW103119273A TW201506812A (en) 2013-08-01 2014-06-03 Method and device for switching display direction, electronic device and machine-readable storage medium
PCT/CN2014/083269 WO2015014280A1 (en) 2013-08-01 2014-07-30 Method, apparatus and electronic device for display orientation switching
HK15102641.2A HK1202174A1 (en) 2013-08-01 2015-03-16 Method, apparatus and electronic device for display orientation switching

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310332357.5A CN104346030A (en) 2013-08-01 2013-08-01 Display direction switching method, device and electronic equipment

Publications (1)

Publication Number Publication Date
CN104346030A true CN104346030A (en) 2015-02-11

Family

ID=52431004

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310332357.5A Pending CN104346030A (en) 2013-08-01 2013-08-01 Display direction switching method, device and electronic equipment

Country Status (4)

Country Link
CN (1) CN104346030A (en)
HK (1) HK1202174A1 (en)
TW (1) TW201506812A (en)
WO (1) WO2015014280A1 (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648106A (en) * 2016-12-29 2017-05-10 努比亚技术有限公司 Display method and apparatus
CN111092989A (en) * 2019-10-29 2020-05-01 浙江杭佳科技发展有限公司 Mobile phone attitude real-time estimation method based on human face features
CN111669462A (en) * 2020-05-30 2020-09-15 华为技术有限公司 Method and related device for displaying image
CN111860454A (en) * 2020-08-04 2020-10-30 北京深醒科技有限公司 Model switching algorithm based on face recognition
CN112711390A (en) * 2020-12-31 2021-04-27 联想(北京)有限公司 Continuous multi-frame image display output control method and electronic equipment
WO2024174623A1 (en) * 2023-02-24 2024-08-29 荣耀终端有限公司 Display method, and electronic device and storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107450716A (en) * 2016-05-31 2017-12-08 北京京东尚科信息技术有限公司 Control method for screen display and control device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080181502A1 (en) * 2007-01-31 2008-07-31 Hsin-Ming Yang Pattern recognition for during orientation of a display device
US20110037866A1 (en) * 2009-08-12 2011-02-17 Kabushiki Kaisha Toshiba Mobile apparatus
CN103179278A (en) * 2013-03-21 2013-06-26 广东欧珀移动通信有限公司 Method and device for controlling screen to rotate

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102339595A (en) * 2010-07-28 2012-02-01 鸿富锦精密工业(深圳)有限公司 Display device and method thereof for adjusting display direction
CN103135743A (en) * 2011-11-22 2013-06-05 联想(北京)有限公司 Adjustment method for display image of electronic equipment and electronic equipment
CN103092344A (en) * 2013-01-11 2013-05-08 深圳市金立通信设备有限公司 Method of controlling terminal screen to rotate and terminal
CN103176693B (en) * 2013-02-18 2016-02-10 联宝(合肥)电子科技有限公司 A kind of method of auto-changing terminal screen picture direction and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080181502A1 (en) * 2007-01-31 2008-07-31 Hsin-Ming Yang Pattern recognition for during orientation of a display device
US20110037866A1 (en) * 2009-08-12 2011-02-17 Kabushiki Kaisha Toshiba Mobile apparatus
CN103179278A (en) * 2013-03-21 2013-06-26 广东欧珀移动通信有限公司 Method and device for controlling screen to rotate

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106648106A (en) * 2016-12-29 2017-05-10 努比亚技术有限公司 Display method and apparatus
CN111092989A (en) * 2019-10-29 2020-05-01 浙江杭佳科技发展有限公司 Mobile phone attitude real-time estimation method based on human face features
CN111669462A (en) * 2020-05-30 2020-09-15 华为技术有限公司 Method and related device for displaying image
CN111860454A (en) * 2020-08-04 2020-10-30 北京深醒科技有限公司 Model switching algorithm based on face recognition
CN111860454B (en) * 2020-08-04 2024-02-09 北京深醒科技有限公司 Model switching algorithm based on face recognition
CN112711390A (en) * 2020-12-31 2021-04-27 联想(北京)有限公司 Continuous multi-frame image display output control method and electronic equipment
CN112711390B (en) * 2020-12-31 2022-07-26 联想(北京)有限公司 Continuous multi-frame image display output control method and electronic equipment
WO2024174623A1 (en) * 2023-02-24 2024-08-29 荣耀终端有限公司 Display method, and electronic device and storage medium

Also Published As

Publication number Publication date
WO2015014280A1 (en) 2015-02-05
HK1202174A1 (en) 2015-09-18
TW201506812A (en) 2015-02-16

Similar Documents

Publication Publication Date Title
CN104346030A (en) Display direction switching method, device and electronic equipment
CN103297696B (en) Image pickup method, device and terminal
EP3293620B1 (en) Multi-screen control method and system for display screen based on eyeball tracing technology
CN106453962B (en) Camera shooting control method of double-screen intelligent terminal
KR102121592B1 (en) Method and apparatus for protecting eyesight
CN104834901B (en) A kind of method for detecting human face, apparatus and system based on binocular stereo vision
WO2017113668A1 (en) Method and device for controlling terminal according to eye movement
CN110163833B (en) Method and device for determining opening and closing state of disconnecting link
CN108712603B (en) Image processing method and mobile terminal
CN103116400B (en) The control method of a kind of screen display state and electronic equipment
GB2529943A (en) Tracking processing device and tracking processing system provided with same, and tracking processing method
CN103685940A (en) Method for recognizing shot photos by facial expressions
US20160041614A1 (en) System and method of inducing user eye blink
CN103729128A (en) Method and device for transforming focal length of camera shooting equipment
CN103475886B (en) Stereoscopic depth image establishing system and method thereof
CN107277375B (en) Self-photographing method and mobile terminal
WO2017088360A1 (en) Method and device for powering off terminal
CN107479712B (en) Information processing method and device based on head-mounted display equipment
CN108012026B (en) Eyesight protection method and mobile terminal
CN106131434A (en) A kind of image pickup method based on multi-camera system and terminal
CN104536559A (en) Terminal control method
CN106020690A (en) Video picture screenshot method, device and mobile terminal
CN107544686B (en) Operation execution method and device
CN111986229A (en) Video target detection method, device and computer system
CN105450973A (en) Method and device of video image acquisition

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1202174

Country of ref document: HK

C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20150211

RJ01 Rejection of invention patent application after publication
REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1202174

Country of ref document: HK