CN106095297A - A kind of page display control method and terminal - Google Patents

A kind of page display control method and terminal Download PDF

Info

Publication number
CN106095297A
CN106095297A CN201610438442.3A CN201610438442A CN106095297A CN 106095297 A CN106095297 A CN 106095297A CN 201610438442 A CN201610438442 A CN 201610438442A CN 106095297 A CN106095297 A CN 106095297A
Authority
CN
China
Prior art keywords
terminal
current
page
display
page display
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Withdrawn
Application number
CN201610438442.3A
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.)
Shenzhen Jinli Communication Equipment Co Ltd
Original Assignee
Shenzhen Jinli Communication Equipment 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 Shenzhen Jinli Communication Equipment Co Ltd filed Critical Shenzhen Jinli Communication Equipment Co Ltd
Priority to CN201610438442.3A priority Critical patent/CN106095297A/en
Publication of CN106095297A publication Critical patent/CN106095297A/en
Withdrawn legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0487Interaction techniques based on graphical user interfaces [GUI] using specific features provided by the input device, e.g. functions controlled by the rotation of a mouse with dual sensing arrangements, or of the nature of the input device, e.g. tap gestures based on pressure sensed by a digitiser
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/16Human faces, e.g. facial parts, sketches or expressions
    • G06V40/161Detection; Localisation; Normalisation
    • G06V40/165Detection; Localisation; Normalisation using facial parts and geometric relationships
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V40/00Recognition of biometric, human-related or animal-related patterns in image or video data
    • G06V40/10Human or animal bodies, e.g. vehicle occupants or pedestrians; Body parts, e.g. hands
    • G06V40/18Eye characteristics, e.g. of the iris
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2203/00Indexing scheme relating to G06F3/00 - G06F3/048
    • G06F2203/01Indexing scheme relating to G06F3/01
    • G06F2203/012Walk-in-place systems for allowing a user to walk in a virtual environment while constraining him to a given position in the physical environment

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • General Physics & Mathematics (AREA)
  • Health & Medical Sciences (AREA)
  • General Health & Medical Sciences (AREA)
  • Multimedia (AREA)
  • Oral & Maxillofacial Surgery (AREA)
  • Ophthalmology & Optometry (AREA)
  • Geometry (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The embodiment of the invention discloses a kind of page display control method and terminal.Wherein, the method includes: after terminal carries out image acquisition, the image collected is carried out Face datection, in determining the human face region detected behind the position of two, according to the angle between the line between the position calculation two of two and the page reference line of terminal, when this angle is more than or equal to predetermined angle threshold value, detect the duration that this angle is lasting more than or equal to predetermined angle threshold value further, and when this duration is more than preset duration, the page display way controlling terminal current switches over, wherein, this page display way includes that transverse screen shows or perpendicular screen display.By the embodiment of the present invention, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, such that it is able to improve terminal page transverse screen to show the accuracy of switching between perpendicular screen display.

Description

A kind of page display control method and terminal
Technical field
The present invention relates to electronic technology field, be specifically related to a kind of page display control method and terminal.
Background technology
At present, smart mobile phone, panel computer etc. with the terminal of display screen in order to adapt to the display effect of different scene, one As be both provided with transverse screen and two kinds of page display ways of perpendicular screen.Can enter in several ways between both page display ways Row switching, one is that user the most manually switches over, and this mode operates complexity, and convenience is poor;Another kind is profit Detect terminal direction with the gravity sensor of terminal inner, automatically switch over according to terminal direction, but this mode easily goes out Now judging by accident, accuracy is the highest.Such as, when user's recumbency plays mobile phone when, the hands that mobile phone can detect according to gravity sensor Display screen is automatically switched to transverse screen and shows by machine direction, but in this case, transverse screen shows that general and user is desired aobvious Show that effect is runed counter to.
Summary of the invention
The embodiment of the invention discloses a kind of page display control method and terminal, terminal page transverse screen can be improved and show And the accuracy that perpendicular screen switches between showing.
The embodiment of the invention discloses a kind of page display control method, the method may include that
The photographic head utilizing terminal carries out image acquisition, and the image collected is carried out Face datection;
Determine the position of two in the human face region detected, and according between described in the position calculation of described two two Line and the page reference line of described terminal between angle;
When described angle is more than or equal to predetermined angle threshold value, detect described angle more than or equal to described predetermined angle The duration that threshold value is lasting;
When described duration is more than preset duration, the page display way controlling described terminal current switches over, described Page display way includes that transverse screen shows or perpendicular screen display.
Accordingly, the embodiment of the invention discloses a kind of terminal, this terminal may include that
Collecting unit, is used for carrying out image acquisition;
First detector unit, carries out Face datection for the image collecting described collecting unit;
First determines unit, for determining the position of two in the human face region that described first detector unit detects;
Computing unit, the line between according to described in the position calculation of described two two and the page of described terminal Angle between reference line;
Second detector unit, for when described angle is more than or equal to predetermined angle threshold value, detecting described angle and be more than Or the duration lasting equal to described predetermined angle threshold value;
Control unit, for when described duration is more than preset duration, controlling the page display way that described terminal is current Switching over, described page display way includes that transverse screen shows or perpendicular screen display.
In the embodiment of the present invention, after the photographic head of terminal carries out image acquisition, the terminal image to collecting carries out face Detection, in determining the human face region detected behind the position of two, can be according to the company between the position calculation two of two Angle between the page reference line of line and terminal, when this angle is more than or equal to predetermined angle threshold value, terminal is examined further Survey the duration that this angle is lasting more than or equal to predetermined angle threshold value, and when this duration is more than preset duration, control this end Holding current page display way to switch over, wherein, this page display way includes that transverse screen shows or perpendicular screen display.By this Inventive embodiments, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, such that it is able to improve eventually End page face transverse screen shows the accuracy of switching between perpendicular screen display.
Accompanying drawing explanation
For the technical scheme being illustrated more clearly that in the embodiment of the present invention, in embodiment being described below required for make Accompanying drawing be briefly described, it should be apparent that, below describe in accompanying drawing be some embodiments of the present invention, for ability From the point of view of the those of ordinary skill of territory, on the premise of not paying creative work, it is also possible to obtain the attached of other according to these accompanying drawings Figure.
Fig. 1 is the schematic flow sheet of a kind of page display control method disclosed in the embodiment of the present invention;
Fig. 2 a is the schematic diagram of human eye direction coordinate circle disclosed in the embodiment of the present invention;
Fig. 2 b is the schematic diagram of terminal page display direction coordinate circle disclosed in the embodiment of the present invention;
Fig. 2 c is the schematic diagram of complete set direction coordinate circle disclosed in the embodiment of the present invention;
Fig. 2 d is the schematic diagram that human eye disclosed in the embodiment of the present invention changes relative to position with terminal page;
Fig. 3 is the schematic flow sheet of another kind of page display control method disclosed in the embodiment of the present invention;
Fig. 4 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention;
Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention;
Fig. 6 is the structural representation of the embodiment of the present invention another terminal disclosed.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete Describe, it is clear that described embodiment is a part of embodiment of the present invention rather than whole embodiments wholely.Based on this Embodiment in bright, the every other enforcement that those of ordinary skill in the art are obtained under not making creative work premise Example, broadly falls into the scope of protection of the invention.
The embodiment of the invention discloses a kind of page display control method and terminal, terminal page transverse screen can be improved and show And the accuracy that perpendicular screen switches between showing.It is described in detail individually below.
Referring to Fig. 1, Fig. 1 is the schematic flow sheet of a kind of page display control method disclosed in the embodiment of the present invention.Its In, the method shown in Fig. 1 can apply to smart mobile phone (such as Android phone, iOS mobile phone etc.), panel computer, palm electricity Brain, personal digital assistant (Personal Digital Assistant, PDA), mobile internet device (Mobile Internet Device, MID) etc. possess the terminal of display screen.As it is shown in figure 1, the method may comprise steps of:
101, terminal utilizes the photographic head of this terminal to carry out image acquisition, and the image collected is carried out Face datection.
In the embodiment of the present invention, this photographic head is specially the front-facing camera of terminal, can be one, it is also possible to be many Individual, the embodiment of the present invention does not limits.Control when user's unlatching carries out page display by human eye with the relative position of terminal page During the function made, the front-facing camera of terminal can carry out image acquisition, and the image collected is carried out Face datection.Specifically may be used Being to carry out image acquisition in real time, it is also possible to being to carry out image acquisition according to certain time interval, the embodiment of the present invention is not done Limit.
102, the position of two during terminal determines the human face region detected, and according to the position calculation two of two between Line and the page reference line of this terminal between angle.
In the embodiment of the present invention, when terminal identifies face from the image collected, terminal can determine that face Region, then determines the position of two from human face region, and determines the line between two according to the position of two.Enter one Step, terminal, after the line determined between two, can calculate the page of the line between two and terminal further Angle between reference line.
It should be noted that the page reference line of terminal can be fixing, it is also possible to be the page current according to terminal Display mode determines.Wherein, this page display way can include that transverse screen shows or perpendicular screen display, when the page that terminal is current When display mode is transverse screen display, this reference line can be any one virtual line on terminal display screen vertical direction;When When the current page display way of this terminal is for perpendicular screen display, this reference line can be any in terminal display screen horizontal direction Article one, virtual line, the embodiment of the present invention does not limits.
Concrete, terminal can determine coordinate circle according to the human face region detected, as shown in Figure 2 a, Fig. 2 a is the present invention The schematic diagram of human eye direction coordinate circle disclosed in embodiment.In fig. 2 a, terminal, can be further after determining human face region Determine the line between two and the central point on this line, the horizontal stroke that terminal can be coordinate circle with the line between two Axle, using the central point on line as the initial point of coordinate circle, thus sets up the coordinate circle in human eye direction.
Same, terminal can also set up terminal page display direction coordinate circle according to the display screen direction of terminal, such as figure Shown in 2b, Fig. 2 b is the schematic diagram of terminal page display direction coordinate circle disclosed in the embodiment of the present invention.In figure 2b, terminal is worked as Before page display way be assumed to be transverse screen and show, then terminal can with the straight line at the horizontal direction place of display screen (namely The page reference line of terminal) be the transverse axis of coordinate circle, with the center on this straight line as zero, thus set up terminal page Face display direction coordinate circle.
Seeing also Fig. 2 c and Fig. 2 d, Fig. 2 c is the schematic diagram of complete set direction coordinate circle disclosed in the embodiment of the present invention, Fig. 2 d is the schematic diagram that human eye disclosed in the embodiment of the present invention changes relative to position with terminal page.In figure 2 c, with In the case of family normally uses terminal, the coordinate circle at place, human eye direction is weight with the coordinate circle at terminal page display direction place Fold, i.e. by moving up and down about two coordinate circles are carried out in two planes being parallel to each other, the two can be made to sit Zero and the transverse axis of mark circle are overlapping, thus define a complete set direction coordinate circle.In figure 2d, human eye and terminal page The relative position in face there occurs change, say, that the coordinate circle at place, human eye direction and terminal page display direction place Coordinate circle can not move up and down so that two coordinate circles are completely overlapped by left and right in two planes being parallel to each other, when the most individual During the zero overlap of coordinate circle, the transverse axis (lines between two) of the coordinate circle at place, human eye direction shows with terminal page Show and can there is certain angle between the transverse axis (the page reference line of terminal) of the coordinate circle at place, direction.
103, whether this angle of terminal judges is more than or equal to predetermined angle threshold value, if so, performs step 104;If it is not, hold Row step 106.
In the embodiment of the present invention, terminal angle between the page reference line of the line calculated between two and terminal Afterwards, the size between this angle and predetermined angle threshold value can be compared.If this angle is more than or equal to predetermined angle threshold value, just Show the eyes of the user display direction current with terminal display screen there occurs bigger skew relative to position, only will be current Page display way switch to another kind of page display way to be only possible to the demand meeting user to display effect of terminal.If This angle is less than predetermined angle threshold value, indicates that the relative position of the eyes of the user display direction current with terminal display screen does not has Having the skew that skew or generation occur less, terminal only need to maintain current page display way just can meet user to end The demand of end display effect.
Wherein, this angle threshold can be user setup, it is also possible to being that terminal system is arranged, its span is permissible Being 30 °~90 °, the embodiment of the present invention does not limits.
As an example it is assumed that user is initially when terminal video, the page display way of this terminal is that transverse screen shows, User sees on limit later video limit and other people chat, and in this process, the head of possible terminal has offset, or user Sight line can be varied from, now, terminal will detect the phase para-position of the eyes of user and the display direction of terminal display screen Put and there occurs change, but this change is transience, but so may arise that terminal transverse screen is shown by mistake switch to perpendicular Screen display.In practical situations both, user may continue the most again to watch video, and so may result in terminal can be again By current page display direction switching, thus the power consumption of terminal can be increased.
Therefore, terminal is in the case of judging that this angle is more than or equal to predetermined angle threshold value, it is also possible to further Detect the duration that this angle is lasting more than or equal to predetermined angle threshold value.
104, terminal detects the duration that this angle is lasting more than or equal to predetermined angle threshold value.
In the embodiment of the present invention, when terminal detects this angle more than or equal to predetermined angle threshold value, terminal can be entered One step detects the duration that this angle is lasting more than or equal to predetermined angle threshold value, and judges that whether this duration is more than when presetting Long, determine the need for current page display way is switched over this.
Wherein, this preset duration can be 20 seconds, it is also possible to 30 seconds, it is also possible to being 1 minute, the embodiment of the present invention does not limits Fixed.
If this duration is more than preset duration, show that user is in the display side of eyes and terminal display screen the most for a long time To the state of the bigger skew of existence, thus need terminal that current page display way is switched over;If this duration is little In or equal to preset duration, may indicate that user is currently that the ofest short duration display direction being in eyes and terminal display screen exists The state of bigger skew, then this terminal can maintain current page display way.
105, when this duration is more than preset duration, the current page display way of this terminal of terminal control switches over.
In the embodiment of the present invention, when terminal judges goes out the angle between the page reference line of the line between two and terminal More than or equal to predetermined angle threshold value, and when this angle duration lasting more than or equal to predetermined angle threshold value has exceeded default Long, then to indicate that user is in the state of eyes and the display direction bigger skew of existence of terminal display screen the most for a long time. Therefore, the page display way that terminal will control this terminal current switches over.This mode can save power consumption of terminal, carries Rise Consumer's Experience.
Concrete, the concrete mode that the current page display way of this terminal of terminal control switches over can be:
When the page display way that this terminal is current is transverse screen display, this terminal will be by current transverse screen display switching Show for perpendicular screen;When the page display way that this terminal is current shows for perpendicular screen, current perpendicular screen will be shown by this terminal Transverse screen is switched to show.
As a kind of feasible embodiment, if terminal in the image currently collected for face or not being detected Human eye detected, then can again carry out image acquisition, if in the image of multi collect all for detect face or Human eye, then this terminal can stop image acquisition, to save the power consumption of terminal.
106, the page display way that this terminal of terminal control is current remains unchanged.
In the embodiment of the present invention, when terminal judges goes out the angle between the page reference line of the line between two and terminal Less than predetermined angle threshold value, or this angle is more than or equal to the lasting duration of predetermined angle threshold value not less than preset duration Time, the page display way that terminal can control this terminal current remains unchanged.
As the embodiment that another kind is feasible, if terminal determines three eyes only reaching more than three from collection image During eyeball, then according to this mode, terminal judges whether that switching page display way may arise that the situation of erroneous judgement.This Time, terminal can detect the pressure application point at terminal side and the back side.Under normal circumstances, during terminal perpendicular screen display, its side Typically can there are 3~5 pressure application points with the back side, and the position distribution of pressure application point is more concentrated;Terminal transverse screen shows Time, its side generally there are 2~4 pressure application points, but the position distribution of pressure application point is more disperseed.Therefore, terminal exists Detect when the image of collection exists many eyes, it is possible to judge whether by the way to need to carry out the page The switching of display mode, thus ensure that the accuracy that page display way switches, promote Consumer's Experience.
For example, it it is 30 ° with predetermined angle threshold value, as a example by preset duration is 30 seconds, when terminal detects collection image Human face region in angle between line and the page reference line of terminal between two more than 30 °, and this angle exceedes When 30 ° of lasting durations were more than 30 seconds, terminal can determine that the visual angle of user's now viewing terminal display screen shows with terminal The display direction of display screen is in inharmonious state, and in order to adapt to the viewing visual angle of user, the current page just can be shown by terminal Showing mode, it is assumed that show for perpendicular screen, perpendicular screen just can be shown that being adjusted to transverse screen shows by terminal.Further, terminal detects Gather in the human face region of image the angle between line and the page reference line of terminal between two and not less than 30 °, that Just can maintain the page display way that terminal is current.
Visible, in the method described by Fig. 1, after the photographic head of terminal carries out image acquisition, the terminal figure to collecting As carrying out Face datection, in determining the human face region detected behind the position of two, can be according to the position calculation two of two The angle between line and the page reference line of terminal between Yan, when this angle is more than or equal to predetermined angle threshold value, eventually End detects the duration that this angle is lasting more than or equal to predetermined angle threshold value further, and at this duration more than preset duration Time, the page display way controlling this terminal current switches over, and wherein, this page display way includes that transverse screen shows or perpendicular screen Display.By the embodiment of the present invention, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, thus Terminal page transverse screen can be improved and show the accuracy of switching between perpendicular screen display.
Refer to the flow process signal that Fig. 3, Fig. 3 are alternative page display control methods disclosed in the embodiment of the present invention Figure.Wherein, the method shown in Fig. 3 can apply to smart mobile phone (such as Android phone, iOS mobile phone etc.), panel computer, the palm Computer, PDA, MID etc. possess the terminal of display screen.As it is shown on figure 3, the method may comprise steps of:
301, terminal detects whether the application program that this terminal currently runs is to preset application program, if so, performs step 302;If it is not, process ends.
In the embodiment of the present invention, whether terminal, starting application program when, can detect this application program further For default application program.Wherein, this default application program can include having the application program of video playback capability, picture browsing Application program, game class application program etc., the embodiment of the present invention does not limits.
Therefore, only when the application program that terminal is currently run is for presetting application program, terminal just can start preposition taking the photograph As head, the mode of recognition of face is used to determine whether the page display way of switching terminal;When the application that terminal is currently run When program is not for presetting application program, terminal can determine whether switching terminal to take other modes such as gravity sensor etc. Page display way.
Further, terminal is after the application program checking current operation is to preset application program, it is also possible to further Obtain the current charge value of terminal, if this charge value is less than the power threshold set, by starting photographic head and determining be The power consumption of the page display way of no switching terminal may be higher, then in this case, and terminal can not start preposition Photographic head, uses traditional page display way determining whether switching terminal by the way of gravity sensor.
The mode of recognition of face is just used to determine whether the page of switching terminal in the case of default application program launching Face display mode, or just use the mode of recognition of face to determine whether to cut in the case of the charge value more abundance of terminal Change the page display way of terminal, so can improve the accurate of terminal horizontal/vertical screen switching on the premise of reducing power consumption of terminal Property.
302, terminal obtains current charge value, and judges that this charge value, whether more than presetting power threshold, if so, performs Step 303;If it is not, perform step 304.
In the embodiment of the present invention, when the application program that terminal is currently run is for presetting application program, terminal can enter one Step obtains current charge value, and judges that whether this charge value is more than presetting power threshold.Wherein, the taking of this default power threshold Value scope can be 15%~25%, and the embodiment of the present invention does not limits.
Optionally, terminal is while judging that whether this charge value is more than presetting power threshold, it is also possible to determine this terminal Whether it is in charged state.If being in charged state, default power threshold can be turned down by terminal;If being not in the shape that charges State, and the current charge value of terminal is less than or equal to presetting power threshold, when the second time interval is defined as presetting by terminal again Between be spaced.
Optionally, terminal is judging current electric quantity value less than or equal to presetting power threshold, and terminal is in charged state In the case of, the second time interval can be defined as prefixed time interval by terminal, when after charging after a while, whole When the charge value of end exceedes default power threshold, prefixed time interval is adjusted to very first time interval by terminal again.
303, terminal will be spaced and be defined as prefixed time interval the very first time, and perform step 305.
304, the second time interval is defined as prefixed time interval by terminal, and performs step 305.
In the embodiment of the present invention, when this charge value is more than when presetting power threshold, and the very first time can be spaced really by terminal It is set to prefixed time interval, when this charge value is less than or equal to when presetting power threshold, and terminal can be by true for the second time interval Being set to prefixed time interval, wherein, very first time interval is more than the second time interval, very first time interval and the second time interval Span can be 20 seconds~1 minute, the embodiment of the present invention does not limits.
305, terminal utilizes the photographic head of this terminal to carry out image acquisition according to prefixed time interval, and to the figure collected As carrying out Face datection.
In the embodiment of the present invention, terminal can utilize the photographic head of this terminal to carry out figure according to the prefixed time interval determined As gathering.It is to say, when the current charge value of terminal is less than or equal to when presetting power threshold, camera collection image time Between be spaced and will reduce, when the current charge value of terminal is more than when presetting power threshold, the time interval of camera collection image Will increase.Terminal can be improved in this way while ensureing the accuracy of page display way switching of terminal Flying power.
306, the position of two during terminal determines the human face region detected, and according to the position calculation two of two between Line and the page reference line of this terminal between angle.
307, when this angle is more than or equal to predetermined angle threshold value, terminal detects this angle more than or equal to predetermined angle The duration that threshold value is lasting.
308, when this duration is more than preset duration, the current page display way of this terminal of terminal control switches over, And process ends.
309, when this angle is less than predetermined angle threshold value or when this duration is less than or equal to preset duration, terminal control The current page display way of this terminal remains unchanged, and process ends.
Visible, in the method described by Fig. 3, after the photographic head of terminal carries out image acquisition, the terminal figure to collecting As carrying out Face datection, in determining the human face region detected behind the position of two, can be according to the position calculation two of two The angle between line and the page reference line of terminal between Yan, when this angle is more than or equal to predetermined angle threshold value, eventually End detects the duration that this angle is lasting more than or equal to predetermined angle threshold value further, and at this duration more than preset duration Time, the page display way controlling this terminal current switches over, and wherein, this page display way includes that transverse screen shows or perpendicular screen Display.By the embodiment of the present invention, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, thus Terminal page transverse screen can be improved and show the accuracy of switching between perpendicular screen display.
Referring to Fig. 4, Fig. 4 is the structural representation of a kind of terminal disclosed in the embodiment of the present invention.Wherein, shown in Fig. 4 Terminal 400 can include smart mobile phone (such as Android phone, iOS mobile phone etc.), panel computer, palm PC, PDA, MID etc., This terminal 400 possesses display screen.As shown in Figure 4, this terminal 400 may include that
Collecting unit 401, is used for carrying out image acquisition.
Can be specifically to carry out image acquisition in real time, it is also possible to be to carry out image acquisition according to certain time interval, this Inventive embodiments does not limits.
First detector unit 402, for carrying out Face datection to the image collected.
First determines unit 403, for determining the position of two in the human face region that above-mentioned first detector unit 402 detects Put.
Computing unit 404, for the page reference line according to the line between the position calculation two of two Yu terminal 400 Between angle.
It should be noted that the page reference line of terminal 400 can be fixing, it is also possible to be current according to terminal 400 Page display way determine.Wherein, this page display way can include that transverse screen shows or perpendicular screen display, when terminal 400 When current page display way is transverse screen display, this reference line can be any one on terminal 400 display screen vertical direction Bar virtual line;When the page display way that terminal 400 is current shows for perpendicular screen, this reference line can be that terminal 400 shows Any one virtual line in screen horizontal direction, the embodiment of the present invention does not limits.
Second detector unit 405, is more than or equal to predetermined angle threshold for the angle calculated at above-mentioned computing unit 404 During value, detect the duration that this angle is lasting more than or equal to predetermined angle threshold value.
Wherein, this angle threshold can be user setup, it is also possible to being that terminal system is arranged, its span is permissible Being 30 °~90 °, the embodiment of the present invention does not limits.
Control unit 406, for when this duration is more than preset duration, controlling the page display way that terminal 400 is current Switch over.
Wherein, this preset duration can be 20 seconds, it is also possible to 30 seconds, it is also possible to being 1 minute, the embodiment of the present invention does not limits Fixed.
As a kind of feasible embodiment, above-mentioned control unit 406, it is additionally operable in this angle less than predetermined angle threshold value Or when this angle is more than or equal to the lasting duration of predetermined angle threshold value less than or equal to preset duration, control terminal 400 Current page display way remains unchanged.
Concrete, it is permissible that control unit 406 controls the concrete mode that the current page display way of terminal 400 switches over For:
When the page display way that terminal 400 is current is transverse screen display, current transverse screen is shown and switches to perpendicular screen display Show;When the page display way that terminal 400 is current shows for perpendicular screen, current perpendicular screen is shown and switches to transverse screen to show.
Seeing also Fig. 5, Fig. 5 is the structural representation of another kind of terminal disclosed in the embodiment of the present invention.Wherein, Fig. 5 Shown terminal 400 is to optimize to obtain on the basis of the terminal 400 shown in Fig. 4.As it is shown in figure 5, this terminal 400 can also be wrapped Include:
Acquiring unit 407, for obtaining the charge value that terminal 400 is current.
Judging unit 408, is used for judging that whether this charge value is more than presetting power threshold.
Wherein, the span of this default power threshold can be 15%~25%, and the embodiment of the present invention does not limits.
Second determines unit 409, for judging this charge value more than presetting power threshold at above-mentioned judging unit 408 Time, will be spaced the very first time and be defined as prefixed time interval;Judge that this charge value is less than or equal at above-mentioned judging unit 408 When presetting power threshold, the second time interval is defined as prefixed time interval.
Wherein, very first time interval is more than the second time interval, very first time interval and the value model of the second time interval Enclosing can be 20 seconds~1 minute, and the embodiment of the present invention does not limits.
As a kind of feasible embodiment, collecting unit 401 carries out the concrete mode of image acquisition and can be:
Image acquisition is carried out according to prefixed time interval.
When the current charge value of terminal 400 is less than or equal to when presetting power threshold, collecting unit 401 gather image time Between be spaced and will reduce, when the current charge value of terminal 400 is more than when presetting power threshold, and collecting unit 401 gathers image Time interval will increase.In this way can be accuracy same of the page display way switching ensureing terminal 400 The flying power of Shi Tigao terminal 400.
As the embodiment that another kind is feasible, the first detector unit 402, it is additionally operable to detect what terminal 400 was currently run Whether application program is to preset application program, if the current application program run is for presetting application program, triggering collection unit 401 carry out image acquisition, or carry out image acquisition according to prefixed time interval.
Wherein, this default application program can include having the application program of video playback capability, picture browsing application journey Sequence, game class application program etc., the embodiment of the present invention does not limits.
Visible, in the terminal described by Fig. 4 and Fig. 5, after the photographic head of terminal carries out image acquisition, terminal is to collecting Image carry out Face datection, in determining the human face region detected behind the position of two, can count according to the position of two The angle between line and the page reference line of terminal between calculating two, when this angle is more than or equal to predetermined angle threshold value Time, terminal detects the duration that this angle is lasting more than or equal to predetermined angle threshold value further, and at this duration more than presetting During duration, the page display way controlling this terminal current switches over, wherein, this page display way include transverse screen show or Perpendicular screen display.By the embodiment of the present invention, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, Such that it is able to improve terminal page transverse screen to show the accuracy of switching between perpendicular screen display.
Refer to the structural representation that Fig. 6, Fig. 6 are the embodiment of the present invention another terminals disclosed.As shown in Figure 6, should Terminal 600 may include that at least one input equipment 601, at least one outut device 602, at least one processor 603, as CPU, memorizer 604 and at least one communication bus 605, above-mentioned input equipment 601, outut device 602, processor 603 and Memorizer 604 is connected by bus 605.
Wherein, the contact panel of above-mentioned input equipment 601 concretely terminal 600, including touch screen and touch screen, it is used for Operational order on detection terminal 600 contact panel, and receive data and instruction, the above-mentioned input equipment that external equipment sends 601, it is also possible to include photographic head, it is used for gathering image.
The display screen of above-mentioned outut device 602 concretely terminal 600, is used for exporting video, short message etc..
Above-mentioned memorizer 604 can be high-speed RAM memorizer, it is possible to for non-labile memorizer (non-volatile Memory), such as disk memory.Above-mentioned memorizer 604 is used for storing batch processing code, above-mentioned input equipment 601, output Equipment 602 and processor 603, for calling the program code of storage in memorizer 604, perform to operate as follows:
Above-mentioned input equipment 601, is used for carrying out image acquisition.
Above-mentioned processor 603, for the image collected carries out Face datection, and determines in the human face region detected The position of two.
The page ginseng of above-mentioned processor 603, the line between being additionally operable to according to the position calculation two of two and terminal 600 Examine the angle between line, and when this angle is more than or equal to predetermined angle threshold value, detect this angle more than or equal to preset angle The duration that degree threshold value is lasting.
Above-mentioned processor 603, is additionally operable to when this duration is more than preset duration, and the page controlling terminal 600 current shows Mode switches over.
It should be noted that the page reference line of terminal 600 can be fixing, it is also possible to be current according to terminal 600 Page display way determine.Wherein, this page display way can include that transverse screen shows or perpendicular screen display, when terminal 600 When current page display way is transverse screen display, this reference line can be any one on terminal 600 display screen vertical direction Bar virtual line;When the page display way that terminal 600 is current shows for perpendicular screen, this reference line can be that terminal 600 shows Any one virtual line in screen horizontal direction, the embodiment of the present invention does not limits.
Wherein, this angle threshold can be user setup, it is also possible to being that terminal system is arranged, its span is permissible It it is 30 °~90 °;This preset duration can be 20 seconds, it is also possible to 30 seconds, it is also possible to being 1 minute, the embodiment of the present invention does not limits Fixed.
As a kind of feasible embodiment, above-mentioned processor 603, be additionally operable to this angle less than predetermined angle threshold value or When this angle of person is more than or equal to the lasting duration of predetermined angle threshold value less than or equal to preset duration, controls terminal 600 and work as Front page display way remains unchanged.
As the embodiment that another kind is feasible, the page display way that above-mentioned processor 603 controls terminal 600 current enters The concrete mode of row switching can be:
When the page display way that terminal 600 is current is transverse screen display, current transverse screen is shown and switches to perpendicular screen display Show;When the page display way that terminal 600 is current shows for perpendicular screen, current perpendicular screen is shown and switches to transverse screen to show.
As the embodiment that another is feasible, above-mentioned processor 603, be additionally operable to detect terminal 600 currently runs should Whether it is to preset application program by program, if the current application program run is for presetting application program, triggers above-mentioned input and set Standby 601 carry out image acquisition, or carry out image acquisition according to prefixed time interval.
Wherein, this default application program can include having the application program of video playback capability, picture browsing application journey Sequence, game class application program etc., the embodiment of the present invention does not limits.
As the embodiment that another is feasible, above-mentioned input equipment 601 carries out the concrete mode of image acquisition and can be:
Image acquisition is carried out according to prefixed time interval.
When the current charge value of terminal 600 is less than or equal to when presetting power threshold, input equipment 601 gather image time Between be spaced and will reduce, when the current charge value of terminal 600 is more than when presetting power threshold, and input equipment 601 gathers image Time interval will increase.In this way can be accuracy same of the page display way switching ensureing terminal 600 The flying power of Shi Tigao terminal 600.
As the embodiment that another is feasible, above-mentioned processor 603, it is additionally operable to obtain the charge value of terminal 600, and sentences Whether this charge value disconnected, more than presetting power threshold, at this charge value more than when presetting power threshold, will be spaced really the very first time It is set to prefixed time interval;At this charge value less than or equal to when presetting power threshold, it is defined as presetting by the second time interval Time interval.
Wherein, the span of this default power threshold can be 15%~25%, and the embodiment of the present invention does not limits.The One time interval is more than the second time interval, and the span of very first time interval and the second time interval can be 20 seconds~1 Minute, the embodiment of the present invention does not limits.
Visible, in the terminal described by Fig. 6, after the photographic head of terminal carries out image acquisition, the terminal figure to collecting As carrying out Face datection, in determining the human face region detected behind the position of two, can be according to the position calculation two of two The angle between line and the page reference line of terminal between Yan, when this angle is more than or equal to predetermined angle threshold value, eventually End detects the duration that this angle is lasting more than or equal to predetermined angle threshold value further, and at this duration more than preset duration Time, the page display way controlling this terminal current switches over, and wherein, this page display way includes that transverse screen shows or perpendicular screen Display.By the embodiment of the present invention, terminal can carry out horizontal/vertical screen switching according to human eye with the relative position of terminal page, thus Terminal page transverse screen can be improved and show the accuracy of switching between perpendicular screen display.
In implementing, input equipment 601, outut device 602 and processor 603 described in the embodiment of the present invention can Perform the implementation described in two embodiments of a kind of page display control method disclosed in the embodiment of the present invention, it is possible to The implementation of the terminal described in two embodiments of a kind of terminal that embodiment of the present invention offer is provided, the most superfluous at this State.
Unit in all embodiments of the invention can pass through universal integrated circuit, such as CPU (Central Processing Unit, central processing unit), or by ASIC (Application Specific Integrated Circuit, special IC) realize.
Step in embodiment of the present invention method can carry out order according to actual needs and adjust, merges and delete.
Unit in embodiment of the present invention device can merge according to actual needs, divides and delete.
One of ordinary skill in the art will appreciate that all or part of flow process realizing in above-described embodiment method, be permissible Instructing relevant hardware by computer program to complete, described program can be stored in a computer read/write memory medium In, this program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic Dish, CD, read-only store-memory body (Read-Only Memory, ROM) or random store-memory body (Random Access Memory, RAM) etc..
The above disclosed present pre-ferred embodiments that is only, can not limit the right model of the present invention with this certainly Enclose, the equivalent variations therefore made according to the claims in the present invention, still belong to the scope that the present invention is contained.

Claims (10)

1. a page display control method, it is characterised in that including:
The photographic head utilizing terminal carries out image acquisition, and the image collected is carried out Face datection;
Determine the position of two in the human face region detected, and according to the company between described in the position calculation of described two two Angle between the page reference line of line and described terminal;
When described angle is more than or equal to predetermined angle threshold value, detect described angle more than or equal to described predetermined angle threshold value Lasting duration;
When described duration is more than preset duration, the page display way controlling described terminal current switches over, the described page Display mode includes that transverse screen shows or perpendicular screen display.
Method the most according to claim 1, it is characterised in that the described photographic head utilizing terminal carries out image acquisition, and Before the image collected is carried out Face datection, described method also includes:
Whether the application program that detection terminal is currently run is to preset application program, when the application program of described current operation is institute When stating default application program, perform the described photographic head utilizing terminal and carry out image acquisition, and the image collected is carried out people The operation of face detection.
Method the most according to claim 1 and 2, it is characterised in that the described photographic head utilizing terminal carries out image acquisition, Including:
The photographic head utilizing terminal carries out image acquisition according to prefixed time interval.
Method the most according to claim 3, the described photographic head utilizing terminal carries out image according to prefixed time interval and adopts Before collection, described method also includes:
Obtain the charge value that terminal is current, and judge that whether described charge value is more than presetting power threshold;
When described charge value is more than described default power threshold, will be spaced the very first time and be defined as prefixed time interval;
When described charge value is less than or equal to described default power threshold, the second time interval is defined as between Preset Time Every;
Wherein, interval of the described very first time is more than described second time interval.
Method the most according to claim 1, it is characterised in that the current page display way of the described terminal of described control enters Row switching, including:
When the page display way that described terminal is current is the display of described transverse screen, current described transverse screen is shown and switches to institute State perpendicular screen display;
When the page display way that described terminal is current is the display of described perpendicular screen, current described perpendicular screen is shown and switches to institute State transverse screen to show.
6. a terminal, it is characterised in that including:
Collecting unit, is used for carrying out image acquisition;
First detector unit, carries out Face datection for the image collecting described collecting unit;
First determines unit, for determining the position of two in the human face region that described first detector unit detects;
Computing unit, the line between according to described in the position calculation of described two two and the page reference of described terminal Angle between line;
Second detector unit, for described angle more than or equal to predetermined angle threshold value time, detect described angle more than or etc. In the duration that described predetermined angle threshold value is lasting;
Control unit, for when described duration is more than preset duration, controlling the current page display way of described terminal and carry out Switching, described page display way includes that transverse screen shows or perpendicular screen display.
Terminal the most according to claim 6, it is characterised in that
Described first detector unit, is additionally operable to detect whether the application program that described terminal currently runs is to preset application program, When the application program of described current operation is described default application program, triggers and carry out image described in the execution of described collecting unit The operation gathered.
8. according to the terminal described in claim 6 or 7, it is characterised in that described collecting unit carries out the concrete side of image acquisition Formula is:
Image acquisition is carried out according to prefixed time interval.
Terminal the most according to claim 8, it is characterised in that described terminal also includes:
Acquiring unit, for obtaining the charge value that described terminal is current;
Judging unit, is used for judging that whether described charge value is more than presetting power threshold;
Second determines unit, is used for when described judging unit judges described charge value more than described default power threshold, will Very first time interval is defined as prefixed time interval;
Described second determines unit, is additionally operable to judge that described charge value is less than or equal to described default electricity at described judging unit During amount threshold value, the second time interval is defined as prefixed time interval;
Wherein, interval of the described very first time is more than described second time interval.
Terminal the most according to claim 6, it is characterised in that described control unit controls the page that described terminal is current The concrete mode that display mode switches over is:
When the page display way that described terminal is current is the display of described transverse screen, current described transverse screen is shown and switches to institute State perpendicular screen display;
When the page display way that described terminal is current is the display of described perpendicular screen, current described perpendicular screen is shown and switches to institute State transverse screen to show.
CN201610438442.3A 2016-06-16 2016-06-16 A kind of page display control method and terminal Withdrawn CN106095297A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610438442.3A CN106095297A (en) 2016-06-16 2016-06-16 A kind of page display control method and terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610438442.3A CN106095297A (en) 2016-06-16 2016-06-16 A kind of page display control method and terminal

Publications (1)

Publication Number Publication Date
CN106095297A true CN106095297A (en) 2016-11-09

Family

ID=57236438

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610438442.3A Withdrawn CN106095297A (en) 2016-06-16 2016-06-16 A kind of page display control method and terminal

Country Status (1)

Country Link
CN (1) CN106095297A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017161994A1 (en) * 2016-03-23 2017-09-28 腾讯科技(深圳)有限公司 Method and device for displaying page, and computer storage medium
CN107256088A (en) * 2017-06-13 2017-10-17 北京小米移动软件有限公司 Operating method, device and the computer-readable recording medium of terminal
CN107463255A (en) * 2017-07-31 2017-12-12 努比亚技术有限公司 A kind of video broadcasting method, terminal and computer-readable recording medium
CN110049190A (en) * 2019-04-18 2019-07-23 南京东屋电气有限公司 Portable mobile apparatus, control method, program and its storage medium
CN115706752A (en) * 2021-08-12 2023-02-17 荣耀终端有限公司 Incoming call volume control method and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103197755A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Page turning method, device and terminal
CN103412647A (en) * 2013-08-13 2013-11-27 广东欧珀移动通信有限公司 Face recognition page display control method and mobile terminal
CN103500054A (en) * 2013-09-24 2014-01-08 广东明创软件科技有限公司 Method for automatically adjusting application interface and mobile terminal thereof
US20140032191A1 (en) * 2010-10-26 2014-01-30 The Government Of The United States Of America, As Represented By The Secretary Of The Navy Tool for rapid configuration of a river model using imagery-based information
CN104252352A (en) * 2013-06-28 2014-12-31 联想(北京)有限公司 Information processing method and electronic equipment
CN105635775A (en) * 2015-12-30 2016-06-01 惠州Tcl移动通信有限公司 Electricity saving method for mobile terminal video playing and system thereof and mobile terminal

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140032191A1 (en) * 2010-10-26 2014-01-30 The Government Of The United States Of America, As Represented By The Secretary Of The Navy Tool for rapid configuration of a river model using imagery-based information
CN103197755A (en) * 2012-01-04 2013-07-10 中国移动通信集团公司 Page turning method, device and terminal
CN104252352A (en) * 2013-06-28 2014-12-31 联想(北京)有限公司 Information processing method and electronic equipment
CN103412647A (en) * 2013-08-13 2013-11-27 广东欧珀移动通信有限公司 Face recognition page display control method and mobile terminal
CN103500054A (en) * 2013-09-24 2014-01-08 广东明创软件科技有限公司 Method for automatically adjusting application interface and mobile terminal thereof
CN105635775A (en) * 2015-12-30 2016-06-01 惠州Tcl移动通信有限公司 Electricity saving method for mobile terminal video playing and system thereof and mobile terminal

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017161994A1 (en) * 2016-03-23 2017-09-28 腾讯科技(深圳)有限公司 Method and device for displaying page, and computer storage medium
US10956653B2 (en) 2016-03-23 2021-03-23 Tencent Technology (Shenzhen) Company Limited Method and apparatus for displaying page and a computer storage medium
CN107256088A (en) * 2017-06-13 2017-10-17 北京小米移动软件有限公司 Operating method, device and the computer-readable recording medium of terminal
CN107463255A (en) * 2017-07-31 2017-12-12 努比亚技术有限公司 A kind of video broadcasting method, terminal and computer-readable recording medium
CN110049190A (en) * 2019-04-18 2019-07-23 南京东屋电气有限公司 Portable mobile apparatus, control method, program and its storage medium
CN115706752A (en) * 2021-08-12 2023-02-17 荣耀终端有限公司 Incoming call volume control method and electronic equipment

Similar Documents

Publication Publication Date Title
CN106095297A (en) A kind of page display control method and terminal
CN109167894B (en) Camera control method and device, mobile terminal and storage medium
CN107527046B (en) Unlocking control method and related product
CN105049707B (en) Prevent the method and mobile terminal of camera stall
CN107590474B (en) Unlocking control method and related product
CN107341827A (en) A kind of method for processing video frequency, device and storage medium
CN105354792B (en) A kind of virtual glasses try-on method and mobile terminal
CN103135909B (en) The display packing of the page, device and terminal
CN105824439A (en) Standby state control method and mobile terminal
EP2991027A1 (en) Image processing program, image processing method and information terminal
CN104378491A (en) Method and device for lightening screen of mobile terminal
CN107622243B (en) Unlocking control method and related product
CN102984369A (en) Method and system for viewing photo album in mobile terminal
US11798177B2 (en) Hand tracking method, device and system
CN110231871A (en) Page reading method, device, storage medium and electronic equipment
CN105892612A (en) Method and apparatus for powering off terminal
CN106529445A (en) Makeup detection method and apparatus
CN105204651A (en) Control method and device
CN110099219A (en) Panorama shooting method and Related product
CN110634188A (en) Method for realizing interaction with virtual 3D model and MR mixed reality intelligent glasses
CN109155817B (en) Photographing method and terminal
CN104636036A (en) Image display control method and device
WO2017005070A1 (en) Display control method and device
CN104346030A (en) Display direction switching method, device and electronic equipment
CN105843376A (en) Operation method of mobile terminal application, and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
WW01 Invention patent application withdrawn after publication
WW01 Invention patent application withdrawn after publication

Application publication date: 20161109