CN107977079A - A kind of screen rotation method and mobile terminal - Google Patents

A kind of screen rotation method and mobile terminal Download PDF

Info

Publication number
CN107977079A
CN107977079A CN201711213038.7A CN201711213038A CN107977079A CN 107977079 A CN107977079 A CN 107977079A CN 201711213038 A CN201711213038 A CN 201711213038A CN 107977079 A CN107977079 A CN 107977079A
Authority
CN
China
Prior art keywords
mobile terminal
posture
user
vertical state
image
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
CN201711213038.7A
Other languages
Chinese (zh)
Inventor
罗楚成
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711213038.7A priority Critical patent/CN107977079A/en
Publication of CN107977079A publication Critical patent/CN107977079A/en
Pending 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/011Arrangements for interaction with the human body, e.g. for user immersion in virtual reality
    • 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/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • 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

Abstract

The present invention, which provides a kind of screen rotation method and mobile terminal, this method, to be included:If mobile terminal is in vertical state, the first image information of user is gathered;The posture of the user is identified according to described first image information;If the posture of the user is posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode.The embodiment of the present invention can be in vertical state with reference to mobile terminal, and the posture of identification user is state of lying on one's side, and then mobile terminal is controlled to be shown with transverse screen mode, solve when mobile terminal is in vertical state, the problem of effect of screen rotation is poor is realized by gravity sensor, so that mobile terminal realizes that the effect of screen rotation is preferable, also make the screen rotation of mobile terminal more intelligent.

Description

A kind of screen rotation method and mobile terminal
Technical field
The present invention relates to field of communication technology, more particularly to a kind of screen rotation method and mobile terminal.
Background technology
With developing rapidly for mobile terminal, mobile terminal has become essential a kind of instrument in people's life, And the various aspects for user's life are brought great convenience.And the function of mobile terminal is more and more diversified, such as: User can be watched video or be played by mobile terminal and played.General mobile terminal can be full frame aobvious by screen rotation function Show the content of video either game so that becoming apparent from of showing of video or the content of game.In the prior art, generally Screen rotation is realized by the gravity sensor on mobile terminal, still, is found by putting into practice, is realized according to gravity sensor The effect of screen rotation is poor.
The content of the invention
The embodiment of the present invention provides a kind of screen rotation method and mobile terminal, to solve mobile terminal according to gravity sensitive Device realizes the problem of effect of screen rotation is poor.
In order to solve the above-mentioned technical problem, the present invention is realized in:A kind of screen rotation method, including:
If mobile terminal is in vertical state, the first image information of user is gathered;
The posture of the user is identified according to described first image information;
If the posture of the user is posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode.
In a first aspect, an embodiment of the present invention provides a kind of screen rotation method, including:
If mobile terminal is in vertical state, the first image information of user is gathered;
The posture of the user is identified according to described first image information;
If the posture of the user is posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode.
Second aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:
First acquisition module, if being in vertical state for mobile terminal, gathers the first image information of user;
First identification module, for identifying the posture of the user according to described first image information;
Control module, if the posture for the user is posture of lying on one's side, controls the mobile terminal with transverse screen mode Shown.
The third aspect, the embodiment of the present invention also provide a kind of mobile terminal, including:Memory, processor and it is stored in institute The computer program that can be run on memory and on the processor is stated, the processor performs real during the computer program Step in existing above-mentioned screen rotation method.
Fourth aspect, the embodiment of the present invention also provide a kind of computer-readable recording medium, the computer-readable storage Computer program is stored with medium, the computer program realizes the step in above-mentioned screen rotation method when being executed by processor Suddenly.
In embodiments of the present invention, if mobile terminal is in vertical state, the first image information of user is gathered;According to First image information identifies the posture of user;If the posture of user to lie on one's side posture, control mobile terminal with transverse screen mode into Row display.By above-mentioned steps, the embodiment of the present invention can be in vertical state, and the appearance of identification user with reference to mobile terminal State is state of lying on one's side, and then controls mobile terminal to be shown solve and be in vertical state in mobile terminal with transverse screen mode When, the problem of effect of screen rotation is poor is realized by gravity sensor so that mobile terminal realizes the effect of screen rotation Preferably, also make the screen rotation of mobile terminal more intelligent.
Brief description of the drawings
In order to illustrate the technical solution of the embodiments of the present invention more clearly, needed in being described below to the embodiment of the present invention Attached drawing to be used is briefly described, it should be apparent that, drawings in the following description are only some embodiments of the present invention, For those of ordinary skill in the art, without having to pay creative labor, can also be obtained according to these attached drawings Obtain other attached drawings.
Fig. 1 is a kind of flow chart of screen rotation method provided in an embodiment of the present invention;
Fig. 2 is the flow chart of another screen rotation method provided in an embodiment of the present invention;
Fig. 3 is a kind of a kind of application scenario diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 4 is a kind of another application scenario diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of another application scenario diagram of mobile terminal provided in an embodiment of the present invention;
Fig. 6 is a kind of structure chart of mobile terminal provided in an embodiment of the present invention;
Fig. 7 is the structure chart of the first identification module in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 8 is the structure chart of the control module in a kind of mobile terminal provided in an embodiment of the present invention;
Fig. 9 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 10 is the structure chart of another mobile terminal provided in an embodiment of the present invention;
Figure 11 is a kind of hardware architecture diagram of mobile terminal provided in an embodiment of the present invention.
Embodiment
Below in conjunction with the attached drawing in the embodiment of the present invention, the technical solution in the embodiment of the present invention is carried out clear, complete Site preparation describes, it is clear that described embodiment is part of the embodiment of the present invention, instead of all the embodiments.Based on this hair Embodiment in bright, the every other implementation that those of ordinary skill in the art are obtained without creative efforts Example, belongs to the scope of protection of the invention.
Referring to Fig. 1, Fig. 1 is a kind of flow chart of screen rotation method provided in an embodiment of the present invention, as shown in Figure 1, bag Include following steps:
If step 101, mobile terminal are in vertical state, the first image information of user is gathered.
Wherein, the first image information can include the facial image of user, and above-mentioned facial image can be the whole of user Facial image or the part facial image of user, such as:The right face image or left face image of user.Need to illustrate Be, it is preferred that be the whole facial image of user.
Wherein, the first image information can also include the image of other organs of user, such as the image of hand or foot.When So, the first image information can also include left hand image and right hand image, or left foot image and right crus of diaphragm image, can also only wrap Include left hand image or right crus of diaphragm image.It should be noted that the specific image that the first image information includes, does not limit herein It is fixed.
Step 102, the posture according to the described first image information identification user.
Wherein, the posture of user can be posture of lying on one's side, and posture of lying on one's side can lie on one's side posture including the left side and the right is lain on one's side Posture, certainly, the posture of user can also be right sitting position state etc..Wherein, right sitting position state refers to sitting on the ground, and buttocks is put in foot Ankle, upper body is straight and upright, and being put in for both hands rule is above-knee, and body makings is dignified, does not look sideways.It should be noted that the posture of user Other postures be can also be, it is necessary to illustrate, here, not limiting the specific posture of user.
If step 103, the posture of the user are posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode Show.
Wherein, the posture that user is identified according to the first image information is posture of lying on one's side, then controls mobile terminal with transverse screen mould Formula display content, such as:Mobile terminal can show the operation interface of video or game with transverse screen mode.
Wherein, above-mentioned mobile terminal can be mobile phone, it is tablet computer (Tablet Personal Computer), on knee Computer (Laptop Computer), personal digital assistant (Personal Digital Assistant, abbreviation PDA), in movement Net device (Mobile Internet Device, MID) or wearable device (Wearable Device) etc..
In the embodiment of the present invention, if mobile terminal is in vertical state, the first image information of user is gathered;According to One image information identifies the posture of user;If the posture of user is posture of lying on one's side, control mobile terminal is carried out with transverse screen mode Display.The embodiment of the present invention can be in vertical state with reference to mobile terminal, and the posture of identification user is state of lying on one's side, into And control mobile terminal to be shown with transverse screen mode, solve when mobile terminal is in vertical state, pass through gravity sensitive Device realizes the problem of effect of screen rotation is poor so that mobile terminal realizes that the effect of screen rotation is preferable, also makes shifting The screen rotation of dynamic terminal is more intelligent.
Referring to Fig. 2, Fig. 2 is a kind of flow chart of screen rotation method provided in an embodiment of the present invention.The present embodiment with it is upper The main distinction of a embodiment is the position that can first gather mobile terminal, when position and the default resting guard of mobile terminal In the case of with success, it can just judge whether mobile terminal is in vertical state.As shown in Fig. 2, comprise the following steps:
The position of step 201, the collection mobile terminal.
Wherein, the position of mobile terminal can by global positioning system (Global Positioning System, GPS) gather, or gathered by dipper system, specific mode does not limit herein.
Step 202, match the position and default resting guard.
Wherein, default resting guard can be the recreating facilities such as parlor, bedroom or hotel.Above-mentioned default resting guard can To be set at the beginning of mobile terminal use, according to the demand of client, change can also be made during the use of mobile terminal Or the default resting guard of increase.Furthermore it is possible at least one default resting guard is set, such as:Can by the parlor of user, Bedroom, the recreating facility of office or hotel for often going etc. are disposed as default resting guard.It should be noted that default stop The quantity of breath position does not do specific restriction herein.
If step 203, successful match, judge whether the mobile terminal is in vertical state.
Wherein, whether the position when mobile terminal and default resting guard successful match, then judge mobile terminal in perpendicular Straight state, and screen rotation function can be opened at this time, certain screen rotation function can also just be beaten before step 203 Open.It should be noted that if the position of mobile terminal is with default resting guard, it fails to match, then can return and perform step 201, It is or without any processing.
In embodiment of the present invention, when the position of mobile terminal is with default resting guard successful match, movement is just judged Whether terminal is in vertical state, while can also open screen rotation function.Mobile terminal is not default rest position at other During the position put, then do not judge whether mobile terminal is in vertical state.Pass through above-mentioned steps so that the use of mobile terminal is more Add conveniently, also make the use of mobile terminal more intelligent, while also so that the user experience of above-mentioned mobile terminal is more preferable.
If step 204, mobile terminal are in vertical state, the first image information of user is gathered.
Wherein, the first image information can include the facial image of user, and above-mentioned facial image can be the whole of user Facial image or the part facial image of user, such as:The right face image or left face image of user.Need to illustrate Be, it is preferred that be the whole facial image of user.
Wherein, the first image information can also include the image of other organs of user, such as the image of hand or foot.When So, the first image information can also include left hand image and right hand image, or left foot image and right crus of diaphragm image, can also only wrap Include left hand image or right crus of diaphragm image.It should be noted that the specific image that the first image information includes, does not limit herein It is fixed.
Step 205, the posture according to the described first image information identification user.
Wherein, the posture of user can be posture of lying on one's side, and posture of lying on one's side can lie on one's side posture including the left side and the right is lain on one's side Posture, certainly, the posture of user can also be right sitting position state etc..Wherein, right sitting position state refers to sitting on the ground, and buttocks is put in foot Ankle, upper body is straight and upright, and being put in for both hands rule is above-knee, and body makings is dignified, does not look sideways.It should be noted that the posture of user Other postures be can also be, it is necessary to illustrate, here, not limiting the specific posture of user.
Optionally, step 205 can include:
Identify the relative position relation between the left face image and the right face image, and closed according to the relative position System identifies the posture of the user.
Wherein, because the left-right parts of face are not full symmetric, so mobile terminal can be according in facial image Including left face image and the relative position of right face image judge the posture of user.Such as:If eyes in left face image and Eyes in right face image in the same horizontal line, then may determine that user is the posture of seat at this time;If the left face image position In the lower section of the right face image, then identify that the posture of user is lain on one's side posture for the left side;If alternatively, the left face image is located at institute The top of right face image is stated, then identifies that the posture of user is lain on one's side posture for the right.It should be noted that if the eye in left face image Not in the same horizontal line, then the posture that can identify user is posture of lying on one's side to eyes in eyeball and right face image.Such as:It is if left The side-lower of eyes of the eyes in right face image in face image or underface, the posture that can both identify user are the left side Lie on one's side posture;If above the side of eyes of the eyes in right face image in left face image or surface, can both identify use The posture at family is lain on one's side posture for the right.
In embodiment of the present invention, the posture of user is identified by facial image, can cause the posture of identification user As a result it is more accurate, again such that the step of posture of identification user is more succinct.
If step 206, the posture of the user are posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode Show.
Wherein, the posture that user is identified according to the first image information is posture of lying on one's side, then controls mobile terminal with transverse screen mould Formula display content, such as:Mobile terminal can show the operation interface of video or game with transverse screen mode.
Wherein, subtitle can be shown on mobile terminal, such as:When the application program that video class is run on mobile terminal When, and when playing video by above-mentioned application program, subtitle can be shown on mobile terminal.And generally according to custom, word Curtain is shown from left to right.
Wherein, as shown in figure 3,300 representing mobile terminal in figure, A directions represent that mobile terminal is in vertical state, and move The user on the dynamic right side of terminal 300 is now in the state of lying on one's side.The screen rotation realized according to gravity sensor, at this time mobile terminal The content of display should be presented with the A directions shown in Fig. 3, i.e., mobile terminal 300 should show the figure of people along A directions at this time Picture, it is seen then that when people, which is in, lies on one's side state, and mobile terminal is in vertical state, at this time can not be real according to gravity sensor Existing screen rotation.And combination of embodiment of the present invention mobile terminal is in vertical state, and the posture of identification user is shape of lying on one's side State, so as to control mobile terminal to be shown with transverse screen mode, so that the effect of the screen rotation of mobile terminal is more It is good, also cause the usage experience of user more preferably.
Optionally, step 206 can include:
If the posture of the user is lain on one's side posture for the left side, the mobile terminal is controlled to be shown with transverse screen mode, And the display order on the subtitle for from the mobile terminal vertical state when lower end to the mobile terminal vertical state When upper end;Or
If the posture of the user is lain on one's side posture for the right, the mobile terminal is controlled to be shown with transverse screen mode, And Subtitle Demonstration order for from the mobile terminal vertical state when upper end to the mobile terminal vertical state when Lower end.
Wherein, the posture of user is identified according to facial image, mobile terminal can be directly according to left face figure on facial image The relative position of picture and right face image judges.If the posture of user is lain on one's side posture for the left side, control mobile terminal is with transverse screen Pattern shown, and the lower end when display order of subtitle on mobile terminals is from mobile terminal vertical state to it is mobile eventually Hold upper end during vertical state.Alternatively, if the posture of user is lain on one's side posture for the right, control mobile terminal with transverse screen mode into Row display, and the display order of subtitle on mobile terminals for from mobile terminal vertical state when upper end it is vertical to mobile terminal Lower end during state, as shown in figure 4, B directions in figure represent the direction of the long side of mobile terminal, the C directions in figure are word Curtain on mobile terminals from mobile terminal vertical state when upper end to mobile terminal vertical state when lower end display order;. The top and bottom of mobile terminal refer to top and bottom when mobile terminal is in vertical state, it is necessary to illustrate, not The specific mobile terminal that limits is provided with one end of front camera as upper end, and the opposite other end of mobile terminal is lower end.
In embodiment of the present invention, pass through above-mentioned steps so that user either lies on one's side posture in the left side, is in The right lie on one's side posture when, mobile terminal can be shown with transverse screen mode, and show content be presented on user In the eyes when, the direction of content is positive, avoids content and user is presented in the form of opposite direction in the eyes.So that move Move the more convenient to use of terminal so that the usage experience of user is also more preferable.
Optionally, after step 203, can also comprise the following steps:
If the mobile terminal is not at vertical state, and the mobile terminal is shown with transverse screen mode, then is gathered The second image information of the user;
Identify the direction for the facial image that second image information includes, and the content that shows of the mobile terminal Direction;
Judge whether the direction for the content that the mobile terminal is shown is consistent with the direction of the facial image;
If the direction for the content that the mobile terminal is shown and the direction of the facial image are inconsistent, by the movement The content rotation 180 degree that terminal is shown.
Wherein, the facial image of user is also included in the second image information.The direction of facial image can refer to from people Two to this direction of face, it is preferred that the direction of facial image refers to the point midways of two lines of people to face The line direction of center.And the direction for the content that mobile terminal is shown, the top of content is also referred to the company of bottom Line direction, such as:If the content that mobile terminal is shown is epigeal one tree, the line direction of treetop to tree root is The direction for the content that mobile terminal is shown;If the content that mobile terminal is shown is located in a teacup on table, from teacup Lid to the bottom of teacup the direction of content that shows for mobile terminal of line direction;If the content that mobile terminal is shown is The whole body of people, the then direction of the content shown from the head of people to the line direction of the foot of people for mobile terminal.
Wherein, the direction of the content shown when mobile terminal and the direction of facial image are inconsistent, and mobile terminal be with Transverse screen mode is shown, then it is known that the direction of the direction for the content that mobile terminal is shown and facial image is on the contrary, then The content for needing to show mobile terminal rotates 180 degree.Such as:As illustrated in figures 4-5, scheme upper 400 and represent mobile terminal, and on figure Shown B directions represent the long side direction of mobile terminal, i.e., mobile terminal 400 is shown with transverse screen mode at this time.Can according to Fig. 5 Knowing, user lies on one's side to the right, and the face of user faces the display screen of the mobile terminal 400 in vertical state, and at this time The content shown on mobile terminal 400 is the whole body of people, and D directions represent the display order of subtitle in Fig. 5, i.e., from mobile terminal Upper end during lower end to mobile terminal vertical state during vertical state.When user lies on one's side to the right, shown at this time on mobile terminal The direction of people in user be inverted image in the eyes, be correctly oriented should as shown in figure 4, and the display order of subtitle also should be as C directions shown in Fig. 4 show, and then just on the contrary, so at this time can be by content rotation 180 that mobile terminal is shown in Fig. 5 Degree, so that relation as shown in Figure 4, and the display of subtitle is presented in the direction for the content that mobile terminal is shown and the direction of user Order is as shown in the C directions in Fig. 4.Such that user, when the content that mobile terminal is shown is watched, meeting is more square Just, the appearance that the content that user sees is inverted image phenomenon is avoided.
In the embodiment of the present invention, by above-mentioned steps, it can not only make the screen rotation function of mobile terminal more intelligent Change so that mobile terminal realizes that the effect of screen rotation is preferable, can also when mobile terminal transverse screen mode is shown, The direction of the content shown according to mobile terminal and the direction of the facial image of user are inconsistent, adjust mobile terminal accordingly Display content direction, so as to further lift the usage experience of user.
Referring to Fig. 6, Fig. 6 is the structure chart of mobile terminal provided in an embodiment of the present invention, can be realized one in above-described embodiment The details of kind screen rotation method, and reach identical effect.As shown in fig. 6, mobile terminal 600 includes:
First acquisition module 601, if being in vertical state for mobile terminal, gathers the first image information of user;
First identification module 602, for identifying the posture of the user according to described first image information;
Control module 603, if the posture for the user is posture of lying on one's side, controls the mobile terminal with transverse screen mould Formula is shown.
Optionally, described first image information includes facial image, and the facial image includes left face image and right face figure Picture, first identification module 602 are used to identify the relative position relation between the left face image and the right face image, and The posture of the user is identified according to the relative position relation.
Optionally, subtitle is shown on the mobile terminal, as shown in fig. 7, first identification module 602 includes:
First identification submodule 6021, if being located at the lower section of the right face image for the left face image, identifies institute The posture of user is stated to lie on one's side posture for the left side;Or
Second identification submodule 6022, if being located at the top of the right face image for the left face image, identifies institute The posture of user is stated to lie on one's side posture for the right;
As shown in figure 8, the control module 603 includes:
First control submodule 6031, if the posture for the user is lain on one's side posture for the left side, controls the movement Terminal is shown with transverse screen mode, and the display order of the subtitle on the mobile terminal is to be erected from the mobile terminal Lower end to the upper end of the mobile terminal vertical state of straight state;Or
Second control submodule 6032, if the posture for the user is lain on one's side posture for the right, controls the movement Terminal is shown with transverse screen mode, and the display order of the subtitle on the mobile terminal is to be erected from the mobile terminal Upper end to the lower end of the mobile terminal vertical state of straight state.
Optionally, as shown in figure 9, the mobile terminal 600 further includes:
Second acquisition module 604, for gathering the position of the mobile terminal;
Matching module 605, for the position and default resting guard to be matched;
First judgment module 606, if for successful match, judges whether the mobile terminal is in vertical state.
Optionally, as shown in Figure 10, the mobile terminal 600 further includes:
3rd acquisition module 607, if vertical state is not at for the mobile terminal, and the mobile terminal is with transverse screen Pattern is shown, then gathers the second image information of the user;
Second identification module 608, the direction of the facial image included for identifying second image information, and it is described The direction for the content that mobile terminal is shown;
Second judgment module 609, direction and the facial image of the content shown for judging the mobile terminal Whether direction is consistent;
Rotary module 610, if the direction of the direction of the content shown for the mobile terminal and the facial image is not Unanimously, then the content shown the mobile terminal rotates 180 degree.
Mobile terminal provided in an embodiment of the present invention can realize that mobile terminal is realized in the embodiment of the method for Fig. 1 to Fig. 2 Each process, to avoid repeating, which is not described herein again.The embodiment of the present invention can be in vertical state with reference to mobile terminal, And the posture of identification user is state of lying on one's side, and then mobile terminal is controlled to be shown solve in movement with transverse screen mode When terminal is in vertical state, the problem of effect of screen rotation is poor is realized by gravity sensor so that mobile terminal is real The effect of existing screen rotation is preferable, also makes the screen rotation of mobile terminal more intelligent.
Figure 11 is a kind of hardware architecture diagram for the mobile terminal for realizing each embodiment of the present invention,
The mobile terminal 1100 includes but not limited to:Radio frequency unit 1101, mixed-media network modules mixed-media 1102, audio output unit 1103rd, input unit 1104, sensor 1105, display unit 1106, user input unit 1107, interface unit 1108, storage The components such as device 1109, processor 1110 and power supply 1111.It will be understood by those skilled in the art that the movement shown in Figure 11 Terminal structure does not form the restriction to mobile terminal, and mobile terminal can include components more more or fewer than diagram, or Combine some components, or different components arrangement.In embodiments of the present invention, mobile terminal includes but not limited to mobile phone, puts down Plate computer, laptop, palm PC, car-mounted terminal, wearable device and pedometer etc..
Wherein, processor 1110, are used for:
If mobile terminal is in vertical state, the first image information of user is gathered;
The posture of the user is identified according to described first image information;
If the posture of the user is posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode.
Optionally, described first image information includes facial image, and the facial image includes left face image and right face figure Picture, the processor 1110 perform it is described the user is identified according to described first image information posture the step of, including:
Identify the relative position relation between the left face image and the right face image, and closed according to the relative position System identifies the posture of the user.
Optionally, subtitle is shown on the mobile terminal, the processor 1110 performs the identification left face figure Relative position relation between picture and the right face image, and identify according to the relative position relation posture of the user Step, including:
If the left face image is located at the lower section of the right face image, identify that the posture of the user is lain on one's side appearance for the left side State;Or
If the left face image is located at the top of the right face image, identify that the posture of the user is lain on one's side appearance for the right State;
If the processor 1110 performs the posture of the user as posture of lying on one's side, control the mobile terminal with The step of transverse screen mode is shown, including:
If the posture of the user is lain on one's side posture for the left side, the mobile terminal is controlled to be shown with transverse screen mode, And the display order of the subtitle is upper from the lower end of the mobile terminal vertical state to the mobile terminal vertical state End;Or
If the posture of the user is lain on one's side posture for the right, the mobile terminal is controlled to be shown with transverse screen mode, And the display order of the subtitle be from the upper end of the mobile terminal vertical state to the mobile terminal vertical state under End.
Optionally, the processor 1110 is additionally operable to:
Gather the position of the mobile terminal;
The position and default resting guard are matched;
If successful match, judge whether the mobile terminal is in vertical state.
Optionally, the processor 1110 is additionally operable to:
If the mobile terminal is not at vertical state, and the mobile terminal is shown with transverse screen mode, then is gathered The second image information of the user;
Identify the direction for the facial image that second image information includes, and the content that shows of the mobile terminal Direction;
Judge whether the direction for the content that the mobile terminal is shown is consistent with the direction of the facial image;
If the direction for the content that the mobile terminal is shown and the direction of the facial image are inconsistent, by the movement The content rotation 180 degree that terminal is shown.
Mobile terminal provided in an embodiment of the present invention can realize each process that mobile terminal is realized in previous embodiment, To avoid repeating, which is not described herein again.By above-mentioned steps, vertical state can be in reference to mobile terminal, and identification is used The posture at family is state of lying on one's side, and then controls mobile terminal to be shown with transverse screen mode, solves and is in perpendicular in mobile terminal During straight state, the problem of effect of screen rotation is poor is realized by gravity sensor so that mobile terminal realizes screen rotation Effect it is preferable, also make the screen rotation of mobile terminal more intelligent.
It should be understood that in the embodiment of the present invention, radio frequency unit 1101 can be used for receiving and sending messages or communication process in, signal Reception and transmission, specifically, by from base station downlink data receive after, handled to processor 1110;In addition, by uplink Data sending is to base station.In general, radio frequency unit 1101 includes but not limited to antenna, at least one amplifier, transceiver, coupling Device, low-noise amplifier, duplexer etc..In addition, radio frequency unit 1101 can also pass through wireless communication system and network and other Equipment communication.
Mobile terminal has provided wireless broadband internet to the user by mixed-media network modules mixed-media 1102 and has accessed, and such as helps user to receive Send e-mails, browse webpage and access streaming video etc..
Audio output unit 1103 can be receiving by radio frequency unit 1101 or mixed-media network modules mixed-media 1102 or in memory It is sound that the voice data stored in 1109, which is converted into audio signal and exports,.Moreover, audio output unit 1103 can be with The relevant audio output of specific function performed with mobile terminal 1100 is provided (for example, call signal receives sound, message sink Sound etc.).Audio output unit 1103 includes loudspeaker, buzzer and receiver etc..
Input unit 1104 is used to receive audio or video signal.Input unit 1104 can include graphics processor (Graphics Processing Unit, GPU) 11041 and microphone 11042, graphics processor 11041 in video to capturing The static images obtained in pattern or the first image capture mode by the first image capture apparatus (such as camera) or the of video One view data is handled.The first picture frame after processing may be displayed on display unit 1106.Through graphics processor The first picture frame after 11041 processing can be stored in memory 1109 (or other storage mediums) or via radio frequency unit 1101 or mixed-media network modules mixed-media 1102 be transmitted.Microphone 11042 can receive sound, and can be by such acoustic processing Voice data.Voice data after processing can be converted in the case of telephone calling model and can sent out via radio frequency unit 1101 It is sent to the form output of mobile communication base station.
Mobile terminal 1100 further includes at least one sensor 1105, for example, optical sensor, motion sensor and other Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to ring The light and shade of border light adjusts the brightness of display panel 11061, proximity sensor can when mobile terminal 1100 is moved in one's ear, Close display panel 11061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions The size of (generally three axis) acceleration, can detect that size and the direction of gravity when static, available for identification mobile terminal appearance State (such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) Deng;Sensor 1105 can also include fingerprint sensor, pressure sensor, iris sensor, molecule sensor, gyroscope, gas Meter, hygrometer, thermometer, infrared ray sensor etc. are pressed, details are not described herein.
Display unit 1106 is used for the information for showing by information input by user or being supplied to user.Display unit 1106 can Including display panel 11061, liquid crystal display (Liquid Crystal Display, LCD), organic light-emitting diodes can be used Forms such as (Organic Light-Emitting Diode, OLED) is managed to configure display panel 11061.
User input unit 1107 can be used for the numeral or character information for receiving input, and produce the use with mobile terminal The key signals input that family is set and function control is related.Specifically, user input unit 1107 include contact panel 11071 with And other input equipments 11072.Contact panel 11071, also referred to as touch-screen, collect user on it or neighbouring touch are grasped Make (for example user uses any suitable objects or annex such as finger, stylus on contact panel 11071 or in contact panel Operation near 11071).Contact panel 11071 may include both touch detecting apparatus and touch controller.Wherein, touch The touch orientation of detection device detection user is touched, and detects the signal that touch operation is brought, transmits a signal to touch controller; Touch controller receives touch information from touch detecting apparatus, and is converted into contact coordinate, then gives processor 1110, Receive the order that processor 1110 is sent and performed.Furthermore, it is possible to using resistance-type, condenser type, infrared ray and surface The polytypes such as sound wave realize contact panel 11071.Except contact panel 11071, user input unit 1107 can also include Other input equipments 11072.Specifically, other input equipments 11072 can include but is not limited to physical keyboard, function key (ratio Such as volume control button, switch key), trace ball, mouse, operation lever, details are not described herein.
Further, contact panel 11071 can be covered on display panel 11061, when contact panel 11071 detects After touch operation on or near it, processor 1110 is sent to determine the type of touch event, is followed by subsequent processing device 1110 Corresponding visual output is provided on display panel 11061 according to the type of touch event.Although in fig. 11, contact panel 11071 realize the function that outputs and inputs of mobile terminal with display panel 11061 is the component independent as two, but In some embodiments, contact panel 11071 can be integrated with display panel 11061 and realize outputting and inputting for mobile terminal Function, does not limit specifically herein.
Interface unit 1108 is the interface that external device (ED) is connected with mobile terminal 1100.For example, external device (ED) can include Wired or wireless headphone port, external power supply (or battery charger) port, wired or wireless data port, storage card Port, the port for connecting the device with identification module, audio input/output (I/O) port, video i/o port, earphone Port etc..Interface unit 1108 can be used for receiving the input (for example, data message, electric power etc.) from external device (ED) simultaneously And one or more elements that the input received is transferred in mobile terminal 1100 or it can be used in mobile terminal Data are transmitted between 1100 and external device (ED).
Memory 1109 can be used for storage software program and various data.Memory 1109 can mainly include storage program Area and storage data field, wherein, storing program area can storage program area, needed at least one function application program (such as Sound-playing function, first image player function etc.) etc.;Storage data field can be stored uses created data according to mobile phone (such as voice data, phone directory etc.) etc..In addition, memory 1109 can include high-speed random access memory, can also wrap Include nonvolatile memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 1110 is the control centre of mobile terminal, utilizes each of various interfaces and the whole mobile terminal of connection A part, by running or performing the software program and/or module that are stored in memory 1109, and calls and is stored in storage Data in device 1109, perform the various functions and processing data of mobile terminal, so as to carry out integral monitoring to mobile terminal.Place Reason device 1110 may include one or more processing units;Preferably, processor 1110 can integrate application processor and modulation /demodulation Processor, wherein, application processor mainly handles operating system, user interface and application program etc., modem processor master Handle wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 1110.
Mobile terminal 1100 can also include the power supply 1111 (such as battery) to all parts power supply, it is preferred that power supply 1111 can be logically contiguous by power-supply management system and processor 1110, so as to realize that management is filled by power-supply management system The functions such as electricity, electric discharge and power managed.
In addition, mobile terminal 1100 includes some unshowned function modules, details are not described herein.
Preferably, the embodiment of the present invention also provides a kind of mobile terminal, including processor 1110, memory 1109, storage On memory 1109 and the computer program that can be run on the processor 1110, the computer program is by processor 1110 A kind of each process of above-mentioned screen rotation embodiment of the method is realized during execution, and identical technique effect can be reached, to avoid Repeat, which is not described herein again.
The embodiment of the present invention also provides a kind of computer-readable recording medium, and meter is stored with computer-readable recording medium Calculation machine program, the computer program realize a kind of each process of above-mentioned screen rotation embodiment of the method when being executed by processor, And identical technique effect can be reached, to avoid repeating, which is not described herein again.Wherein, the computer-readable recording medium, Such as read-only storage (Read-Only Memory, abbreviation ROM), random access memory (Random Access Memory, letter Claim RAM), magnetic disc or CD etc..
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row His property includes, so that process, method, article or device including a series of elements not only include those key elements, and And other elements that are not explicitly listed are further included, or further include as this process, method, article or device institute inherently Key element.In the absence of more restrictions, the key element limited by sentence "including a ...", it is not excluded that including this Also there are other identical element in the process of key element, method, article or device.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium In (such as ROM/RAM, magnetic disc, CD), including some instructions are used so that a station terminal (can be mobile phone, computer, services Device, air conditioner, or network equipment etc.) perform method described in each embodiment of the present invention.
The embodiment of the present invention is described above in conjunction with attached drawing, but the invention is not limited in above-mentioned specific Embodiment, above-mentioned embodiment is only schematical, rather than restricted, those of ordinary skill in the art Under the enlightenment of the present invention, in the case of present inventive concept and scope of the claimed protection is not departed from, it can also make very much Form, belongs within the protection of the present invention.

Claims (12)

1. a kind of screen rotation method, including:
If mobile terminal is in vertical state, the first image information of user is gathered;
The posture of the user is identified according to described first image information;
If the posture of the user is posture of lying on one's side, the mobile terminal is controlled to be shown with transverse screen mode.
2. the method as described in claim 1, it is characterised in that described first image information includes facial image, the face Image includes left face image and right face image, it is described the user is identified according to described first image information posture the step of, Including:
Identify the relative position relation between the left face image and the right face image, and known according to the relative position relation The posture of not described user.
3. method as claimed in claim 2, it is characterised in that subtitle is shown on the mobile terminal, described in the identification Relative position relation between left face image and the right face image, and identify the user's according to the relative position relation The step of posture, including:
If the left face image is located at the lower section of the right face image, identify that the posture of the user is lain on one's side posture for the left side; Or
If the left face image is located at the top of the right face image, identify that the posture of the user is lain on one's side posture for the right;
If the posture of the user is posture of lying on one's side, the step for controlling the mobile terminal to be shown with transverse screen mode Suddenly, including:
If the posture of the user is lain on one's side posture for the left side, the mobile terminal is controlled to be shown with transverse screen mode, and institute It is upper during lower end to mobile terminal vertical state when stating the display order of subtitle as from the mobile terminal vertical state End;Or
If the posture of the user is lain on one's side posture for the right, the mobile terminal is controlled to be shown with transverse screen mode, and institute Under during upper end to mobile terminal vertical state when stating the display order of subtitle as from the mobile terminal vertical state End.
4. such as the method any one of claim 1-3, it is characterised in that if the mobile terminal is in vertical state, Before the first image information for then gathering user, the method further includes:
Gather the position of the mobile terminal;
The position and default resting guard are matched;
If successful match, judge whether the mobile terminal is in vertical state.
5. method as claimed in claim 4, it is characterised in that if the successful match, whether judge the mobile terminal After vertical state, the method further includes:
If the mobile terminal is not at vertical state, and the mobile terminal is shown with transverse screen mode, then described in collection The second image information of user;
Identify the direction for the facial image that second image information includes, and the court of content that the mobile terminal is shown To;
Judge whether the direction for the content that the mobile terminal is shown is consistent with the direction of the facial image;
If the direction for the content that the mobile terminal is shown and the direction of the facial image are inconsistent, by the mobile terminal The content rotation 180 degree of display.
A kind of 6. mobile terminal, it is characterised in that including:
First acquisition module, if being in vertical state for mobile terminal, gathers the first image information of user;
First identification module, for identifying the posture of the user according to described first image information;
Control module, if the posture for the user is posture of lying on one's side, controls the mobile terminal to be carried out with transverse screen mode Display.
7. mobile terminal as claimed in claim 6, it is characterised in that described first image information includes facial image, described Facial image includes left face image and right face image, and first identification module is used to identify the left face image and the right face Relative position relation between image, and according to the posture of the relative position relation identification user.
8. mobile terminal as claimed in claim 7, it is characterised in that subtitle is shown on the mobile terminal,
First identification module includes:
First identification submodule, if being located at the lower section of the right face image for the left face image, identifies the user's Posture is lain on one's side posture for the left side;Or
Second identification submodule, if being located at the top of the right face image for the left face image, identifies the user's Posture is lain on one's side posture for the right;
The control module includes:
First control submodule, if the posture for the user is lain on one's side posture for the left side, controls the mobile terminal with horizontal stroke Screen pattern shown, and the display order of the subtitle on the mobile terminal be from the mobile terminal vertical state when Lower end to the mobile terminal vertical state when upper end;Or
Second control submodule, if the posture for the user is lain on one's side posture for the right, controls the mobile terminal with horizontal stroke Screen pattern shown, and the display order of the subtitle on the mobile terminal be from the mobile terminal vertical state when Upper end to the mobile terminal vertical state when lower end.
9. such as the mobile terminal any one of claim 6-8, it is characterised in that the mobile terminal further includes:
Second acquisition module, for gathering the position of the mobile terminal;
Matching module, for the position and default resting guard to be matched;
First judgment module, if for successful match, judges whether the mobile terminal is in vertical state.
10. mobile terminal as claimed in claim 9, it is characterised in that the mobile terminal further includes:
3rd acquisition module, if be not at vertical state for the mobile terminal, and the mobile terminal with transverse screen mode into Row display, then gather the second image information of the user;
Second identification module, the direction of the facial image included for identifying second image information, and it is described mobile whole Hold the direction of the content of display;
Second judgment module, whether the direction of the content shown for judging the mobile terminal and the direction of the facial image Unanimously;
Rotary module, if the direction of the content shown for the mobile terminal and the direction of the facial image are inconsistent, The content that the mobile terminal is shown rotates 180 degree.
A kind of 11. mobile terminal, it is characterised in that including:Memory, processor and it is stored on the memory and can be in institute The computer program run on processor is stated, the processor is realized when performing the computer program as in claim 1-5 Step in any one of them screen rotation method.
12. a kind of computer-readable recording medium, it is characterised in that be stored with computer on the computer-readable recording medium Program, realizes the screen rotation method as any one of claim 1-5 when the computer program is executed by processor In step.
CN201711213038.7A 2017-11-28 2017-11-28 A kind of screen rotation method and mobile terminal Pending CN107977079A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711213038.7A CN107977079A (en) 2017-11-28 2017-11-28 A kind of screen rotation method and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711213038.7A CN107977079A (en) 2017-11-28 2017-11-28 A kind of screen rotation method and mobile terminal

Publications (1)

Publication Number Publication Date
CN107977079A true CN107977079A (en) 2018-05-01

Family

ID=62012054

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711213038.7A Pending CN107977079A (en) 2017-11-28 2017-11-28 A kind of screen rotation method and mobile terminal

Country Status (1)

Country Link
CN (1) CN107977079A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254710A (en) * 2018-08-28 2019-01-22 Oppo广东移动通信有限公司 Screen rotation method, apparatus, terminal device and computer-readable storage medium
CN111078093A (en) * 2019-12-20 2020-04-28 深圳创维-Rgb电子有限公司 Screen picture rotation control method and device, electronic product and storage medium
CN112764864A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Display direction adjusting method and device
WO2021208924A1 (en) * 2020-04-14 2021-10-21 深圳市万普拉斯科技有限公司 Method and apparatus for controlling screen rotation of mobile terminal, and computer device
CN114205553A (en) * 2021-10-18 2022-03-18 深圳市酷客智能科技有限公司 Infant monitoring device and control method thereof

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
CN103281455A (en) * 2013-05-29 2013-09-04 东莞宇龙通信科技有限公司 Automatically recording method and automatically recording system
CN104363505A (en) * 2014-11-17 2015-02-18 天脉聚源(北京)传媒科技有限公司 Method and device for displaying playing interface
CN105554861A (en) * 2015-12-02 2016-05-04 广东小天才科技有限公司 Method and system of automatic networking on the basis of position and time
CN106293077A (en) * 2016-07-29 2017-01-04 雷仲魁 A kind of based on human eye and the face image automatic rotating method in direction and device
CN106843821A (en) * 2015-12-07 2017-06-13 百度在线网络技术(北京)有限公司 The method and apparatus of adjust automatically screen
CN107295157A (en) * 2017-04-26 2017-10-24 北京珠穆朗玛移动通信有限公司 Mobile terminal and its anti-lost alarm method, the device with store function
CN107300973A (en) * 2017-06-21 2017-10-27 深圳传音通讯有限公司 screen rotation control method, system and device
CN107333306A (en) * 2016-04-29 2017-11-07 展讯通信(上海)有限公司 A kind of user equipment and its method for accessing CSG cell

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101197948A (en) * 2007-12-04 2008-06-11 北京工业大学 Method for implementing multiple special effects of icon and subtitling in video
CN103281455A (en) * 2013-05-29 2013-09-04 东莞宇龙通信科技有限公司 Automatically recording method and automatically recording system
CN104363505A (en) * 2014-11-17 2015-02-18 天脉聚源(北京)传媒科技有限公司 Method and device for displaying playing interface
CN105554861A (en) * 2015-12-02 2016-05-04 广东小天才科技有限公司 Method and system of automatic networking on the basis of position and time
CN106843821A (en) * 2015-12-07 2017-06-13 百度在线网络技术(北京)有限公司 The method and apparatus of adjust automatically screen
CN107333306A (en) * 2016-04-29 2017-11-07 展讯通信(上海)有限公司 A kind of user equipment and its method for accessing CSG cell
CN106293077A (en) * 2016-07-29 2017-01-04 雷仲魁 A kind of based on human eye and the face image automatic rotating method in direction and device
CN107295157A (en) * 2017-04-26 2017-10-24 北京珠穆朗玛移动通信有限公司 Mobile terminal and its anti-lost alarm method, the device with store function
CN107300973A (en) * 2017-06-21 2017-10-27 深圳传音通讯有限公司 screen rotation control method, system and device

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109254710A (en) * 2018-08-28 2019-01-22 Oppo广东移动通信有限公司 Screen rotation method, apparatus, terminal device and computer-readable storage medium
CN109254710B (en) * 2018-08-28 2021-01-19 Oppo广东移动通信有限公司 Screen rotation method and device, terminal equipment and computer readable storage medium
CN111078093A (en) * 2019-12-20 2020-04-28 深圳创维-Rgb电子有限公司 Screen picture rotation control method and device, electronic product and storage medium
WO2021208924A1 (en) * 2020-04-14 2021-10-21 深圳市万普拉斯科技有限公司 Method and apparatus for controlling screen rotation of mobile terminal, and computer device
CN112764864A (en) * 2021-01-25 2021-05-07 维沃移动通信有限公司 Display direction adjusting method and device
CN114205553A (en) * 2021-10-18 2022-03-18 深圳市酷客智能科技有限公司 Infant monitoring device and control method thereof

Similar Documents

Publication Publication Date Title
CN107977079A (en) A kind of screen rotation method and mobile terminal
CN109660719A (en) A kind of information cuing method and mobile terminal
CN109218648A (en) A kind of display control method and terminal device
CN109408168A (en) A kind of remote interaction method and terminal device
CN108628565A (en) A kind of mobile terminal operating method and mobile terminal
CN108920119A (en) A kind of sharing method and mobile terminal
CN109409244A (en) A kind of object puts the output method and mobile terminal of scheme
CN108628515A (en) A kind of operating method and mobile terminal of multimedia content
CN108256308A (en) A kind of recognition of face solution lock control method and mobile terminal
CN110351407A (en) A kind of audio frequency playing method and mobile terminal
CN109215683A (en) A kind of reminding method and terminal
CN108089801A (en) A kind of method for information display and mobile terminal
CN110018805A (en) A kind of display control method and mobile terminal
CN109669611A (en) Fitting method and terminal
CN108668024A (en) A kind of method of speech processing and terminal
CN107767430A (en) One kind shooting processing method, terminal and computer-readable recording medium
CN107808107A (en) A kind of application message display methods and mobile terminal
CN109067949A (en) A kind of electronic equipment and its control method
CN109343788A (en) A kind of method of controlling operation thereof and mobile terminal of mobile terminal
CN109327668A (en) A kind of method for processing video frequency and device
CN108011887A (en) A kind of account management method and equipment
CN109190607A (en) A kind of motion images processing method, device and terminal
CN108881782A (en) A kind of video call method and terminal device
CN109799912A (en) A kind of display control method, equipment and computer readable storage medium
CN109448069A (en) A kind of template generation method and mobile terminal

Legal Events

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

Application publication date: 20180501

RJ01 Rejection of invention patent application after publication