Summary of the invention
The technical problem to be solved in the present invention is in order to overcome in prior art mobile terminal when tilting forward and back state or tilt state, the content of the screen display of the mobile terminal that user sees tilts, the defect of distortion, a kind of mobile terminal and displaying contents deflection method are provided, when making user left and right or tilting forward and back mobile terminal, still can reach best viewing effect.
The present invention solves above-mentioned technical matters by following technical proposals:
The invention provides a kind of mobile terminal, it comprises a gravity sensor, its feature is, this mobile terminal also comprises an opening module, a detection module, a judge module, a computing module, a deflection module, a Zoom module and four front-facing cameras, and these four front-facing cameras are respectively top, below, left side, first front-facing camera on right side, the second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera of the screen that is positioned at this mobile terminal;
When changing for the acceleration detecting at this gravity sensor, this opening module opens this four front-facing cameras;
This detection module for the distance that identifies image that front-facing camera catches by eye recognition and comprise human eye and detect respectively this first front-facing camera, this second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera and human eye as the first distance, second distance, the 3rd apart from and the 4th distance;
This judge module is used for judging that this mobile terminal is in tilting forward and back state or tilting state;
This mobile terminal enters operation one when tilting forward and back state: this computing module is for calculating the first deflection angle between this screen place plane and human eye place plane by this first distance and this second distance; This deflection module is for deflecting to the displaying contents three-dimensional of this screen and the parallel plane virtual plane in human eye place according to this first deflection angle, and the angle of this virtual plane and this screen place plane is this first deflection angle; This Zoom module is for carrying out convergent-divergent to the displaying contents after three-dimensional deflection so that eye-observation to the region of displaying contents be rectangle;
This mobile terminal enters operation two when tilting state: this computing module is for calculating the second deflection angle between this screen place plane and human eye place plane by the 3rd distance and the 4th distance; This deflection module is for deflecting to the displaying contents three-dimensional of this screen and the parallel plane virtual plane in human eye place according to this second deflection angle, and the angle of this virtual plane and this screen place plane is this second deflection angle; This Zoom module is for carrying out convergent-divergent to the displaying contents after three-dimensional deflection so that eye-observation to the region of displaying contents be rectangle.
In this programme, this mobile terminal is when tilting forward and back state or tilt state, and after calling this deflection module, virtual plane and the human eye place plane parallel at the displaying contents place after three-dimensional deflection, but the angle from human eye, because of relatively little apart from the displaying contents in human eye this virtual plane far away, relatively large apart from the displaying contents near this virtual plane of human eye, so eye-observation to this virtual plane in the region that surrounds of displaying contents be one trapezoidal, thereby the present invention is also provided with this Zoom module, this Zoom module human eye displaying contents far away of adjusting the distance amplifies, the near displaying contents of human eye of simultaneously adjusting the distance dwindles, so that from the angle of human eye, eye-observation to the region that surrounds of displaying contents be rectangle, reach best viewing effect.
Preferably, this judge module is for judging whether the difference of this first distance and this second distance is greater than the difference of the 3rd distance and the 4th distance, if judge this mobile terminal in tilting forward and back state, judge if not this mobile terminal in the state of tilting.
Preferably, in this operation one, this computing module is for by formula β=90 °-α, α=arcos[(L
1 2+ H
2-L
2 2)/2L
1h] calculate this first deflection angle, wherein β is this first deflection angle, L
1for the higher value in this first distance and this second distance, L
2for the smaller value in this first distance and this second distance, H is the distance between this first front-facing camera and this second front-facing camera;
In this operation two, this computing module is for by formula β=90 °-α, α=arcos[(L
3 2+ W
2-L
4 2)/2L
3w] calculate this second deflection angle, wherein β is this second deflection angle, L
3for the higher value in the 3rd distance and the 4th distance, L
4for the smaller value in the 3rd distance and the 4th distance, W is the distance between the 3rd front-facing camera and the 4th front-facing camera.
Preferably, in this operation one, this Zoom module is used for amplifying by this first distance and the larger relatively near displaying contents of front-facing camera corresponding to distance of this second distance numerical value, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance so that eye-observation to the region of displaying contents be rectangle;
In this operation two, this Zoom module is used for amplifying by the 3rd distance and the larger relatively near displaying contents of front-facing camera corresponding to distance of the 4th distance numerical value, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance so that eye-observation to the region of displaying contents be rectangle.
The present invention also provides a kind of displaying contents deflection method, and its feature is, it utilizes above-mentioned mobile terminal to realize, and this displaying contents deflection method comprises the following steps:
S
1, this gravity sensor sense acceleration;
S
2, this opening module opens this four front-facing cameras when the acceleration detecting changes;
S
3, this detection module identifies by eye recognition the image that each front-facing camera catches and comprises human eye;
S
4, this detection module detect respectively this first front-facing camera, this second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera and human eye distance as this first distance, this second distance, the 3rd distance and the 4th distance;
S
5, this judge module judges that this mobile terminal is in tilting forward and back state or tilting state, if this mobile terminal enters step S in tilting forward and back state
6if this mobile terminal enters step S in the state of tilting
9;
S
6, this computing module calculates the first deflection angle between this screen place plane and human eye place plane by this first distance and this second distance;
S
7, this deflection module deflects to the displaying contents three-dimensional of this screen and parallel plane this virtual plane in human eye place according to this first deflection angle;
S
8, the displaying contents of this Zoom module after to three-dimensional deflection carry out convergent-divergent so that eye-observation to the region of displaying contents be rectangle, process ends;
S
9, this computing module calculates this second deflection angle between this screen place plane and human eye place plane by the 3rd distance and the 4th distance;
S
10, this deflection module deflects to the displaying contents three-dimensional of this screen and parallel plane this virtual plane in human eye place according to this second deflection angle;
S
12, the displaying contents of this Zoom module after to three-dimensional deflection carry out convergent-divergent so that eye-observation to the region of displaying contents be rectangle, process ends.
Preferably, at step S
5in, this judge module judges whether the difference of this first distance and this second distance is greater than the difference of the 3rd distance and the 4th distance, if judge this mobile terminal in tilting forward and back state, judge if not this mobile terminal in the state of tilting.
Preferably, at step S
6in, this computing module is by formula β=90 °-α, α=arcos[(L
1 2+ H
2-L
2 2)/2L
1h] calculate this first deflection angle, wherein β is this first deflection angle, L
1for the higher value in this first distance and this second distance, L
2for the smaller value in this first distance and this second distance, H is the distance between this first front-facing camera and this second front-facing camera;
At step S
9in, this computing module is by formula β=90 °-α, α=arcos[(L
3 2+ W
2-L
4 2)/2L
3w] calculate this second deflection angle, wherein β is this second deflection angle, L
3for the higher value in the 3rd distance and the 4th distance, L
4for the smaller value in the 3rd distance and the 4th distance, W is the distance between the 3rd front-facing camera and the 4th front-facing camera.
Preferably, at step S
8in, this Zoom module is to amplifying by the larger relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance so that eye-observation to the region of displaying contents be rectangle;
At step S
11in, this Zoom module is to amplifying by the larger relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance so that eye-observation to the region of displaying contents be rectangle.
Meeting on the basis of this area general knowledge, above-mentioned each optimum condition, can combination in any, obtains the preferred embodiments of the invention.
Positive progressive effect of the present invention is:
Mobile terminal of the present invention and displaying contents deflection method, make this mobile terminal when tilting forward and back state or tilt state, virtual plane and the human eye place plane parallel at the displaying contents place after three-dimensional deflection, and eye-observation to the region of displaying contents be rectangle, reach best viewing effect.
Embodiment
Mode below by embodiment further illustrates the present invention, but does not therefore limit the present invention among described scope of embodiments.
Shown in figure 1, the present embodiment provides a kind of mobile terminal, it comprises that a gravity sensor 1, an opening module 2, a detection module 3, a judge module 4, a computing module 5, a deflection module 6, a Zoom module 7 and 8, four these front-facing cameras 8 of four front-facing cameras are respectively top, below, left side, first front-facing camera on right side, the second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera of the screen that is positioned at this mobile terminal.
Introduced the parts that this mobile terminal comprises above, lower mask body is introduced the function that each parts are realized:
This gravity sensor 1 is for sense acceleration in real time;
When changing for the acceleration detecting, this opening module 2 opens four these front-facing cameras 8;
The distance that this detection module 3 comprises human eye for the image that identifies front-facing camera 8 by eye recognition and catch and detects respectively this first front-facing camera, this second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera and human eye as the first distance, second distance, the 3rd apart from and the 4th distance;
This judge module 4 is for judging whether the difference of this first distance and this second distance is greater than the difference of the 3rd distance and the 4th distance, if judge this mobile terminal in tilting forward and back state, judge if not this mobile terminal in the state of tilting.
This judge module 4 is judged this mobile terminal and when tilting forward and back state, is entered operation one:
This computing module 5 is for by formula β=90 °-α, α=arcos[(L
1 2+ H
2-L
2 2)/2L
1h] calculate the first deflection angle between this screen place plane and human eye place plane, wherein β is this first deflection angle, L
1for the higher value in this first distance and this second distance, L
2for the smaller value in this first distance and this second distance, H is the distance between this first front-facing camera and this second front-facing camera;
This deflection module 6 is for deflecting to the displaying contents three-dimensional of this screen and the parallel plane virtual plane in human eye place according to this first deflection angle, and the angle of this virtual plane and this screen place plane is this first deflection angle;
This Zoom module 7 carries out convergent-divergent for the displaying contents to after three-dimensional deflection, be specially: this Zoom module 7 is for to amplifying by this first distance and the larger relatively near displaying contents of front-facing camera corresponding to distance of this second distance numerical value, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance so that eye-observation to the region of displaying contents be rectangle.
This judge module 4 is judged this mobile terminal and when tilting state, is entered operation two:
This computing module 5 is for by formula β=90 °-α, α=arcos[(L
3 2+ W
2-L
4 2)/2L
3w] calculate the second deflection angle between this screen place plane and human eye place plane, wherein β is this second deflection angle, L
3for the higher value in the 3rd distance and the 4th distance, L
4for the smaller value in the 3rd distance and the 4th distance, W is the distance between the 3rd front-facing camera and the 4th front-facing camera;
This deflection module 6 is for deflecting to the displaying contents three-dimensional of this screen and the parallel plane virtual plane in human eye place according to this second deflection angle, and the angle of this virtual plane and this screen place plane is this second deflection angle;
This Zoom module 7 carries out convergent-divergent for the displaying contents to after three-dimensional deflection, be specially: this Zoom module 7 is for to amplifying by the 3rd distance and the 4th distance numerical value larger relatively near displaying contents of front-facing camera corresponding to distance, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance so that eye-observation to the region of displaying contents be rectangle.
Shown in figure 2, the present embodiment also provides a kind of displaying contents deflection method, and it utilizes above-mentioned mobile terminal to realize, and this displaying contents deflection method comprises the following steps:
Step 101, this gravity sensor sense acceleration;
Step 102, this opening module are opened this four front-facing cameras when the acceleration detecting changes;
Step 103, this detection module identify by eye recognition the image that each front-facing camera catches and comprise human eye;
Step 104, this detection module detect respectively the distance of this first front-facing camera, this second front-facing camera, the 3rd front-facing camera, the 4th front-facing camera and human eye as this first distance, this second distance, the 3rd distance and the 4th distance;
Step 105, this judge module judge that this mobile terminal is in tilting forward and back state or tilting state, if this mobile terminal enters step 106 in tilting forward and back state, if this mobile terminal enters step 109 in the state of tilting; Judge that this mobile terminal is in tilting forward and back state or the concrete steps of the state that tilts are: this judge module judges whether the difference of this first distance and this second distance is greater than the difference of the 3rd distance and the 4th distance, if judge this mobile terminal in tilting forward and back state, judge if not this mobile terminal in the state of tilting;
Step 106, this computing module are by formula β=90 °-α, α=arcos[(L
1 2+ H
2-L
2 2)/2L
1h] calculate the first deflection angle between this screen place plane and human eye place plane, wherein β is this first deflection angle, L
1for the higher value in this first distance and this second distance, L
2for the smaller value in this first distance and this second distance, H is the distance between this first front-facing camera and this second front-facing camera;
Step 107, this deflection module deflect to the displaying contents three-dimensional of this screen and parallel plane this virtual plane in human eye place according to this first deflection angle;
Step 108, this Zoom module displaying contents after to three-dimensional deflection carries out convergent-divergent, be specially: this Zoom module is to amplifying by the larger relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in this first distance and this second distance, so that eye-observation to the region of displaying contents be rectangle, process ends;
Step 109, this computing module are by formula β=90 °-α, α=arcos[(L
3 2+ W
2-L
4 2)/2L
3w] calculate the second deflection angle between this screen place plane and human eye place plane, wherein β is this second deflection angle, L
3for the higher value in the 3rd distance and the 4th distance, L
4for the smaller value in the 3rd distance and the 4th distance, W is the distance between the 3rd front-facing camera and the 4th front-facing camera;
Step 110, this deflection module deflect to the displaying contents three-dimensional of this screen and parallel plane this virtual plane in human eye place according to this second deflection angle;
Step 111, this Zoom module displaying contents after to three-dimensional deflection carries out convergent-divergent, be specially: this Zoom module is to amplifying by the larger relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance, simultaneously to dwindling by the less relatively near displaying contents of front-facing camera corresponding to distance of numerical value in the 3rd distance and the 4th distance, so that eye-observation to the region of displaying contents be rectangle, process ends.
In this enforcement, this mobile terminal is when tilting forward and back state, how according to this first deflection angle, the displaying contents three-dimensional of this screen is deflected to the realization flow of the parallel plane virtual plane in human eye place referring to the references that application number is 201310130456.5, denomination of invention is " realizing method and the device at three-dimensional rotation interface based on Android system ", specifically see the embodiment part (being the 8th page to the 15th page, instructions) of this references.Roughly step comprises:
Step S
1extract destination object Three Dimensional Interface characteristic information to be achieved, according to the Three Dimensional Interface characteristic information extracting, choose three-dimensional system of coordinate, the mathematical model that builds mapping Three Dimensional Interface characteristic information, the realization of this step is completely with reference to the concrete refinement content under step 101 in the embodiment part of this references;
Step S
2, destination object is loaded into mathematical model, carry out texture processing, the realization of this step is completely with reference to the concrete refinement content under step 102 in the embodiment part of this references;
Step S
3to carrying out the mathematical model of texture processing, carry out coordinate transform, obtain the inclination mathematical model matching with Three Dimensional Interface feature to be achieved, the realization of this step is completely with reference to the concrete refinement content under step 103 in the embodiment part of this references, and this first deflection angle β that the present invention is calculated brings the formula x ' under step 103 in the embodiment part of this references into
2cos
2α+z '
2=r
2cos
2in α in α;
Step S
4trigger the rotation of inclination mathematical model, obtain rotating mathematics model, rotating mathematics model is carried out to perspective projection according to the viewpoint setting in advance, obtain the view plane coordinate information that rotating mathematics model is corresponding, the realization of this step is completely with reference to the concrete refinement content under step 104 in the embodiment part of this references;
Step S
5view plane coordinate information is converted to screen plane coordinate information, according to the screen plane coordinate information of conversion, present three-dimensional rotation interface, the realization of this step is completely with reference to the concrete refinement content under step 105 in the embodiment part of this references.
In this enforcement, this mobile terminal is when tilting state, how according to this second deflection angle, the displaying contents three-dimensional of this screen is deflected to the implementation procedure of the parallel plane virtual plane in human eye place and how according to this first deflection angle, the displaying contents three-dimensional of this screen deflected to the implementation procedure with the parallel plane virtual plane in human eye place with reference to above-mentioned, just repeat no more here.
For a concrete example, the present invention is described below, so that those skilled in the art can understand the present invention better:
In the present embodiment, this mobile terminal is selected mobile phone, and as shown in Figure 3, it shows the first front-facing camera 81, the second front-facing camera 82, the 3rd front-facing camera 83, the 4th front-facing camera 84 of this mobile phone.
This gravity sensor 1 is sense acceleration in real time, and the acceleration detecting is transferred to this opening module 2, this opening module 2 is opened the first front-facing camera 81, the second front-facing camera 82, the 3rd front-facing camera 83, the 4th front-facing camera 84 when the acceleration detecting changes.
With reference to figure 4, this detection module 3 identifies by eye recognition the image that this first front-facing camera 81, this second front-facing camera 82, the 3rd front-facing camera 83, the 4th front-facing camera 84 catch and comprises human eye 9, and detect respectively this first front-facing camera 81, this second front-facing camera 82, the 3rd front-facing camera 83, the 4th front-facing camera 84 with the distance of human eye 9 as the first distance D
1, second distance D
2, the 3rd distance D
3and the 4th distance D
4, D
1for 23cm, D
2for 18cm, D
3and D
4be 20cm, and the distance between this first front-facing camera 81 and this second front-facing camera 82 is H.
This judge module 4 judges whether this first difference apart from 23cm and this second distance 18cm is greater than the 3rd apart from 20cm and the 4th difference apart from 20cm, and the difference 0cm that the difference 5cm that judges this first distance and this second distance is greater than the 3rd distance and the 4th distance shows that this mobile terminal is in tilting forward and back state.
If this first distance D
1with the angle between the distance H of 82 of this first front-facing camera 81 and this second front-facing cameras is α, according to cosine formula D
2 2=D
1 2+ H
2-2D
1h*cos α, and then draw α=arcos[(D
1 2+ H
2-D
2 2)/2D
1h], again because this first distance D
1perpendicular with the plane at human eye place, so the first deflection angle β=90 between this screen place plane and human eye place plane °-α, therefore, this computing module 5 is by formula β=90 °-α, α=arcos[(D
1 2+ H
2-D
2 2)/2D
1h] calculate this first deflection angle β.
This deflection module 6 is for deflecting to the displaying contents three-dimensional of this screen and the parallel plane virtual plane in human eye place according to this first deflection angle β, the displaying contents of this screen carries out the three-dimensional deflection of the first deflection angle β, and the region that the displaying contents in this virtual plane surrounds is one trapezoidal (seeing the dash area that in Fig. 5, dotted line surrounds).
In order to reach best viewing effect, 7 pairs of this Zoom modules amplify by the relatively near displaying contents (being the displaying contents of this trapezoidal the first half in Fig. 5) of this first front-facing camera, simultaneously to dwindling by the relatively near displaying contents (being the displaying contents of this trapezoidal the latter half in Fig. 5) of this second front-facing camera, so that observe from the angle of human eye, eye-observation to the region of displaying contents be rectangle.
Although more than described the specific embodiment of the present invention, it will be understood by those of skill in the art that these only illustrate, protection scope of the present invention is limited by appended claims.Those skilled in the art is not deviating under the prerequisite of principle of the present invention and essence, can make various changes or modifications to these embodiments, but these changes and modification all fall into protection scope of the present invention.