CN106648365A - Screen anti-shake method and device for three-dimensional image - Google Patents
Screen anti-shake method and device for three-dimensional image Download PDFInfo
- Publication number
- CN106648365A CN106648365A CN201611203844.1A CN201611203844A CN106648365A CN 106648365 A CN106648365 A CN 106648365A CN 201611203844 A CN201611203844 A CN 201611203844A CN 106648365 A CN106648365 A CN 106648365A
- Authority
- CN
- China
- Prior art keywords
- axis
- mobile terminal
- view
- jitter
- rotational angle
- 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
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction 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
- G06F3/04845—Interaction 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 for image manipulation, e.g. dragging, rotation, expansion or change of colour
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/03—Arrangements for converting the position or the displacement of a member into a coded form
- G06F3/033—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor
- G06F3/0346—Pointing devices displaced or positioned by the user, e.g. mice, trackballs, pens or joysticks; Accessories therefor with detection of the device orientation or free movement in a 3D space, e.g. 3D mice, 6-DOF [six degrees of freedom] pointers using gyroscopes, accelerometers or tilt-sensors
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input 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/14—Digital output to display device ; Cooperation and interconnection of the display device with other functional units
Abstract
The embodiment of the invention provides a screen anti-shake method and device for a three-dimensional image. The method includes the following steps: detecting the rotation direction and rotation angle of a mobile terminal in the three dimensions of a mobile terminal screen coordinate system, and according to the rotation direction and rotation angle of the mobile terminal in the three dimensions of the mobile terminal screen coordinate system, rotating the three-dimensional image displayed on a mobile terminal screen. According to the screen anti-shake method and device for the three-dimensional image, the influence of screen rotation caused by shaking on watching the three-dimensional image can be alleviated for users, the spinning sensation, generated in watching the three-dimensional image, of the users in a shaking environment is alleviated, and the experience that the users use the mobile terminal for watching is improved.
Description
Technical field
The present invention relates to mobile Internet application and mobile intelligent terminal technical field, more particularly to a kind of 3-D view
Screen anti-fluttering method and device.
Background technology
With the development and application of mobile Internet, the applied environment for causing mobile interchange equipment becomes increasingly complex, such as
First-class in taxi on subway on bus, the time of these fragmentations occupies the most use time of user.
And in these environment, due to the random and unstability of environment, often cause environment change at any time, cause mobile device
As environment enters row stochastic shake, this can cause the experience of extreme difference for user, can cause user in use
There is the fatigue of eye, because sight line is constantly adjusted and is focused on, the sensation of dizziness can be produced.
The content of the invention
Inventors herein have recognized that, existing mobile terminal and application software are all to be directed to read body in a mobile environment
The stabilization technology tested, that is, be substantially the stabilization technology for two-dimensional picture.And the display of 3-D view is directed to, also do not have
Related stabilization technology is mitigating user's experience in a mobile environment.At present many mobile terminals show all be three
Dimension image, such as 3D game, 3D maps etc., it is therefore desirable to the processing scheme of more high-dimensional screen stabilization.
The purpose of the present invention is to propose to the screen anti-fluttering method and device of a kind of 3-D view, can enter for 3-D view
Row screen stabilization, is presented to the more preferable experience effect of user.
To achieve the above object, on the one hand the embodiment of the present invention provides a kind of screen stabilization side of 3-D view
Method, including:
Rotation direction and rotational angle of the detection mobile terminal in three dimensions of mobile terminal screen coordinate system;
Rotation direction and rotational angle according to the mobile terminal in three dimensions of mobile terminal screen coordinate system is right
The 3-D view being displayed on the screen of the mobile terminal is rotated.
Preferably, rotation direction and rotation of the detection mobile terminal in three dimensions of mobile terminal screen coordinate system
Angle, including:
Detect the mobile terminal in mobile terminal screen coordinate system three by the three-axis gyroscope in the mobile terminal
Angular acceleration in individual dimension;
The movement is determined according to angular acceleration of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Rotation direction and rotational angle of the terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the rotation direction according to the mobile terminal in three dimensions of mobile terminal screen coordinate system and
Rotational angle, the 3-D view to being displayed on the screen of the mobile terminal is rotated, including:
According to the mobile terminal around X-axis rotation direction and rotational angle, by the 3-D view around X-axis with contrary
Rotation direction rotates the rotational angle;
According to the mobile terminal around Y-axis rotation direction and rotational angle, by the 3-D view around Y-axis with contrary
Rotation direction rotates the rotational angle;
According to mobile terminal rotation direction about the z axis and rotational angle, by the 3-D view about the z axis with contrary
Rotation direction rotates the rotational angle.
Preferably, it is described according to the mobile terminal around X-axis rotation direction and rotational angle, by the 3-D view around
X-axis rotates the rotational angle with contrary rotation direction, including:
When the mobile terminal around X-axis rotational angle in default angular range when, by the 3-D view around X-axis
The rotational angle is rotated with contrary rotation direction;When the mobile terminal around X-axis rotational angle in default angle model
When enclosing outer, the 3-D view is not rotated around X-axis;
It is described according to the mobile terminal around Y-axis rotation direction and rotational angle, by the 3-D view around Y-axis with phase
Anti- rotation direction rotates the rotational angle, including:
When the mobile terminal around Y-axis rotational angle in default angular range when, by the 3-D view around Y-axis
The rotational angle is rotated with contrary rotation direction;When the mobile terminal around Y-axis rotational angle in default angle model
When enclosing outer, the 3-D view is not rotated around Y-axis;
It is described according to mobile terminal rotation direction about the z axis and rotational angle, by the 3-D view about the z axis with phase
Anti- rotation direction rotates the rotational angle, including:
When mobile terminal rotational angle about the z axis is in default angular range, by the 3-D view about the z axis
The rotational angle is rotated with contrary rotation direction;When mobile terminal rotational angle about the z axis is in default angle model
When enclosing outer, the 3-D view is not rotated about the z axis.
Preferably, methods described also includes:
Detect jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system;
Jitter direction and amplitude according to the mobile terminal in three dimensions of mobile terminal screen coordinate system is to described
3-D view is translated or scaled.
Preferably, jitter direction of the detection mobile terminal in three dimensions of mobile terminal screen coordinate system and
Jitter amplitude, including:
Detect that the mobile terminal is sat in mobile terminal screen by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration in three dimensions of mark system;
The movement is determined according to linear acceleration of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and jitter amplitude of the terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the jitter direction according to the mobile terminal in three dimensions of mobile terminal screen coordinate system and
Jitter amplitude is translated or scaled to the 3-D view, including:
Jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view in X-axis to phase
Anti- jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis to phase
Anti- jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal on Z axis, the 3-D view is scaled original
(1 ± (absolute values of picture Z axis changing coordinates)/D) of size times;
Wherein, when the jitter direction when the mobile terminal on Z axis is negative, scaling is that 1+ (currently sit by picture Z axis
Target absolute value)/D);When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- (work as by picture Z axis
The absolute value of front coordinate)/D);Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis
It is calculated;D is default positive number.
Preferably, the jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view
The jitter amplitude is translated to contrary jitter direction in X-axis, including:
When jitter amplitude of the mobile terminal in X-axis is in default amplitude range, by the 3-D view in X
The shake angle is translated on axle to contrary jitter direction;When jitter amplitude of the mobile terminal in X-axis is default
When outside amplitude range, the 3-D view do not translated in X-axis;
The jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis
The jitter amplitude is translated to contrary jitter direction, including:
When jitter amplitude of the mobile terminal in Y-axis is in default amplitude range, by the 3-D view in Y
The shake angle is translated on axle to contrary jitter direction;When jitter amplitude of the mobile terminal in Y-axis is default
When outside amplitude range, the 3-D view do not translated in Y-axis;
The jitter direction and jitter amplitude according to the mobile terminal on Z axis, the 3-D view is scaled
(1 ± (absolute values of picture Z axis changing coordinates)/D) of original size times, including:
When jitter amplitude of the mobile terminal on Z axis is in default amplitude range, by 3-D view contracting
Put (1 ± (absolute values of picture Z axis the changing coordinates)/D) times for original size;When shake of the mobile terminal in Y-axis
When amplitude is outside default amplitude range, the 3-D view is not zoomed in and out.
On the other hand the embodiment of the present invention additionally provides a kind of screen anti-shake apparatus of 3-D view, including:
First motion detection block, for detecting rotation of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Direction and rotational angle;
First picture adjusting module, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Rotation direction and rotational angle, the 3-D view to being displayed on the screen of the mobile terminal is rotated.
Preferably, first motion detection block includes:
Angular acceleration detector unit, for detecting that the mobile terminal exists by the three-axis gyroscope in the mobile terminal
Angular acceleration in three dimensions of mobile terminal screen coordinate system;
Orientation angle determining unit, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Angular acceleration determines rotation direction and rotational angle of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the first picture adjusting module includes:
X-axis rotates adjustment unit, for rotation direction and rotational angle according to the mobile terminal in X-axis, by institute
State the contrary rotation direction in X-axis of 3-D view and rotate the rotational angle;
Y-axis rotates adjustment unit, for rotation direction and rotational angle according to the mobile terminal in Y-axis, by institute
State the contrary rotation direction in Y-axis of 3-D view and rotate the rotational angle;
Z axis rotate adjustment unit, the rotation direction and rotational angle according to the mobile terminal on Z axis, by described three
The contrary rotation direction on Z axis of dimension image rotates the rotational angle.
Preferably, the X-axis rotates adjustment unit specifically for exceeding when rotational angle of the mobile terminal in X-axis
During predetermined threshold, the contrary rotation direction in X-axis of the 3-D view is rotated into the rotational angle;When the mobile terminal
When rotational angle in X-axis is not less than the predetermined threshold, the 3-D view do not rotated in X-axis;
The Y-axis rotates adjustment unit specifically for when rotational angle of the mobile terminal in Y-axis exceedes predetermined threshold
During value, the contrary rotation direction in Y-axis of the 3-D view is rotated into the rotational angle;When the mobile terminal is in Y-axis
On rotational angle not less than the predetermined threshold when, the 3-D view do not rotated in Y-axis;
The Z axis rotate adjustment unit specifically for when rotational angle of the mobile terminal on Z axis exceedes predetermined threshold
During value, the contrary rotation direction on Z axis of the 3-D view is rotated into the rotational angle;When the mobile terminal is in Z axis
On rotational angle not less than the predetermined threshold when, the 3-D view do not rotated on Z axis.
Preferably, described device also includes:
Second motion detection block, for detecting the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and jitter amplitude;
Second picture adjusting module, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and amplitude are translated or scaled to the 3-D view.
Preferably, second motion detection block includes:
Linear acceleration detector unit, for detecting the movement by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration of the terminal in three dimensions of mobile terminal screen coordinate system;
Direction amplitude determining unit, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Linear acceleration determines jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the second picture adjusting module includes:
X-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in X-axis, by institute
State 3-D view and translate the jitter amplitude to contrary jitter direction in X-axis;
Y-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by institute
State 3-D view and translate the jitter amplitude to contrary jitter direction in Y-axis;
Z axis scale adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal on Z axis, by institute
State (1 ± (absolute values of picture Z axis changing coordinates)/D) times that 3-D view is scaled original size;
Wherein, when the jitter direction when the mobile terminal on Z axis is negative, scaling is that 1+ (currently sit by picture Z axis
Target absolute value)/D);When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- (work as by picture Z axis
The absolute value of front coordinate)/D);Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis
It is calculated;D is default positive number.
Preferably, X-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in X-axis surpasses
When crossing predetermined threshold, the 3-D view is translated into the shake angle in X-axis to contrary jitter direction;When the movement
When jitter amplitude of the terminal in X-axis is not less than the predetermined threshold, the 3-D view do not translated in X-axis;
Y-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in Y-axis exceedes predetermined threshold
During value, the 3-D view is translated into the shake angle in Y-axis to contrary jitter direction;When the mobile terminal is in Y
When jitter amplitude on axle is not less than the predetermined threshold, the 3-D view do not translated in Y-axis;
Z axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal on Z axis exceedes predetermined threshold
During value, the 3-D view is scaled (1 ± (absolute values of picture Z axis the changing coordinates)/D) times of original size;When described
When jitter amplitude of the mobile terminal in Y-axis is not less than the predetermined threshold, the 3-D view is not zoomed in and out
Compared to prior art, the beneficial effect of the embodiment of the present invention is:Embodiments provide a kind of three-dimensional
The screen anti-fluttering method of image and device, wherein method are comprised the following steps:Detection mobile terminal is in mobile terminal screen coordinate
It is the rotation direction and rotational angle in three dimensions;According to the mobile terminal in three dimensions of mobile terminal screen coordinate system
On rotation direction and rotational angle, the 3-D view to being displayed on the screen of the mobile terminal rotates.The present invention
Embodiment can mitigate the screen produced due to shake and rotate for user watches the impact of 3-D view, mitigate user in shake
Carry out watching the spinning sensation of generation in environment, lift the experience that user is watched using mobile terminal.
Description of the drawings
Fig. 1 is the schematic flow sheet of the screen anti-fluttering method of 3-D view provided in an embodiment of the present invention;
The particular flow sheet of the step of Fig. 2 is in FIG S1;
The particular flow sheet of the step of Fig. 3 is in FIG S2;
Fig. 4 a are view of the screen under stable environment;
Fig. 4 b have rotated counterclockwise θ because of shake for screen around Y-axist yView after angle;
Fig. 4 c are that the view after 3-D view rotation is carried out to state shown in Fig. 4 b by this method;
Fig. 5 is the structured flowchart of the screen anti-shake apparatus of 3-D view provided in an embodiment of the present invention;
Fig. 6 is the structured flowchart of the first motion detection block 1 in Fig. 5;
Fig. 7 is the structured flowchart of the first picture adjusting module 2 in Fig. 5.
Specific embodiment
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is carried out clear, complete
Site preparation is described, it is clear that described embodiment is only a part of embodiment of the invention, rather than the embodiment of whole.It is based on
Embodiment in the present invention, it is every other that those of ordinary skill in the art are obtained under the premise of creative work is not made
Embodiment, belongs to the scope of protection of the invention.
It is the schematic flow sheet of the screen anti-fluttering method of 3-D view provided in an embodiment of the present invention referring to Fig. 1, the method
Comprise the following steps:
S1, detects rotation direction and rotational angle of the mobile terminal in three dimensions of mobile terminal screen coordinate system;
S2, the rotation direction and angle of rotation according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Degree, the 3-D view to being displayed on the screen of the mobile terminal is rotated.
In the present embodiment, by detecting rotation direction of the mobile terminal in three dimensions of mobile terminal screen coordinate system
And rotational angle, and the 3-D view to being displayed on the screen of the mobile terminal rotates, so as to mitigate due to shake
The screen of generation is rotated for user watches the impact of 3-D view, and mitigate user carries out watching the dizzy of generation in shake environment
Dizzy sense, lifts the experience that user is watched using mobile terminal.
Fig. 2 is referred to, the particular flow sheet of S1 the step of it is in FIG.Step S1 includes:
S11, detects the mobile terminal in mobile terminal screen coordinate by the three-axis gyroscope in the mobile terminal
It is the angular acceleration in three dimensions;
S12, described in angular acceleration in three dimensions of mobile terminal screen coordinate system determines according to the mobile terminal
Rotation direction and rotational angle of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
Fig. 3 is referred to, the particular flow sheet of S2 the step of it is in FIG.Step S2 includes:
S21, according to the mobile terminal around X-axis rotation direction and rotational angle, by the 3-D view with contrary
Rotational angle turns about the X axis the rotational angle;
S22, according to the mobile terminal around Y-axis rotation direction and rotational angle, by the 3-D view with contrary
Rotational angle rotates the rotational angle around Y-axis;
S23, according to mobile terminal rotation direction about the z axis and rotational angle, by the 3-D view with contrary
Rotational angle turns about the Z axis the rotational angle.
In order to eliminate the mobile terminal meaning that operation effect of jitter and maloperation that operation of the finger to screen cause etc. are caused
Outer rotation, the bound threshold value for arranging compensating operation is respectively M and N, works as rotation amplitude<During N, do not mend to shaking deviation
Repay;Work as rotation amplitude>During M, equally do not compensate to shaking deviation, keep 3-D view aobvious in the screen of mobile terminal
Show.
Specifically, step S21 includes:
When the mobile terminal around X-axis rotational angle in default angular range when, the 3-D view is contrary
Rotation direction turn about the X axis the rotational angle;When the mobile terminal around X-axis rotational angle in default angular range
When outer, the 3-D view is not rotated around X-axis.
Step S22 includes:
When the mobile terminal around Y-axis rotational angle in default angular range when, the 3-D view is contrary
Rotation direction rotate the rotational angle around Y-axis;When the mobile terminal around Y-axis rotational angle in default angular range
When outer, the 3-D view is not rotated around Y-axis.
Step S23 includes:
It is when mobile terminal rotational angle about the z axis is in default angular range, the 3-D view is contrary
Rotation direction turn about the Z axis the rotational angle;When mobile terminal rotational angle about the z axis is in default angular range
When outer, the 3-D view is not rotated about the z axis.
Conventional angular acceleration symbol is α, and unit is rad/s2(radian per second2), numerical value represents angular acceleration side for timing
To consistent with angular speed change direction, represent that angular acceleration direction changes in the opposite direction with angular speed when numerical value is to bear.Relative to
Mobile terminal, conventional three-dimensional system of coordinate reference direction is that the width and length direction of mobile terminal screen are set into X, Y
Axle, in the direction of vertical screen Z axis are set to, and the coordinate system is referred to as into mobile terminal screen three-dimensional system of coordinate, and its central point is set to
The central point of physical screen.Herein, mobile terminal screen three-dimensional system of coordinate is referred to as into screen coordinate system.
The whole process that the stabilization that detailed description below is rotated to picture is processed:
S301:Three angle variables θ are setx、θy、θz, represent respectively when forward three-dimensional viewing exists relative to original three-dimensional image
Misalignment angle in three dimensions;θx、θy、θzInitial value be 0.
S302:Receive real-time angular acceleration values α of a three-axis gyroscope automatically every the t seconds1x、α1y、α1z。
S303:Calculate the difference Δ α of this angular acceleration and last time angular acceleration in X-axisx=α1x-α0xIf, | Δ αx| < K,
Represent that the rotational angle that produces because of shake in X-axis of mobile terminal is less or represent that mobile terminal is stable after shake
Get off, if θx≠ 0, then will work as forward three-dimensional viewing and θ will be rotated in X-axisx, make θxRevert to 0;If θx=0, then it is not required to make picture in X
Rotate process on axle;If | Δ αx| >=K, then calculate mobile terminal rotational angle θ in X-axis substantiallyt x=(Δ αx·
t2)/2。
S304:Work as θt x> 0 represents that mobile terminal is rotated around the positive direction of X-axis, works as θt x< 0 represents mobile terminal around X-axis
Negative direction is rotated, and according to situation about rotating, whole 3-D view is then rotated in X-axis toward rightabout | θt x|, to protect as far as possible
3-D view is held in user's original visual line of sight, so as to play certain stabilization effect.When forward three-dimensional viewing is relative to original three
Misalignment angle θ of the dimension image in X-axisxIt is updated to θx+θt x.If it should be noted that | θt x| be unsatisfactory for N≤| θt x|≤M, then not
3-D view is rotated in X-axis.
S305:Calculate the difference Δ α of this angular acceleration and last time angular acceleration in Y-axisy=α1y-α0y;If | Δ αy| < K,
Represent that the rotational angle that produces because of shake in Y-axis of mobile terminal is less or represent that mobile terminal is stable after shake
Get off, if θy≠ 0, then will work as forward three-dimensional viewing and θ will be rotated in Y-axisy, make θyRevert to 0;If θy=0, then it is not required to make picture in Y
Rotate process on axle;If | Δ αy| >=K, then calculate mobile terminal rotational angle θ in Y-axis substantiallyt y=(Δ αy·
t2)/2。
S306:Work as θt y> 0 represents that mobile terminal is rotated around the positive direction of Y-axis, works as θt y< 0 represents mobile terminal around Y-axis
Negative direction is rotated, and according to situation about rotating, whole 3-D view is then rotated in Y-axis toward rightabout | θt y|, to protect as far as possible
3-D view is held in user's original visual line of sight, so as to play certain stabilization effect.When forward three-dimensional viewing is relative to original three
Misalignment angle θ of the dimension image in Y-axisyIt is updated to θy+θt y.If it should be noted that | θt yBe unsatisfactory for N≤| θt y|≤M, then not
3-D view is rotated in Y-axis.
S307:Calculate the difference Δ α of this angular acceleration and last time angular acceleration on Z axisz=α1z-α0z;If | Δ αz| < K,
Represent that the rotational angle that produces because of shake on Z axis of mobile terminal is less or represent that mobile terminal is stable after shake
Get off, if θz≠ 0, then will work as forward three-dimensional viewing and θ will be rotated backward on Z axisx, make θxRevert to 0;If θx=0, then it is not required to draw a picture
Face rotates process on Z axis;If | Δ αz| >=K, then calculate mobile terminal rotational angle θ in X-axis substantiallyt z=(Δ
αz·t2)/2。
S308:Work as θt z> 0 represents that mobile terminal positive direction about the z axis is rotated, and works as θt z< 0 represents mobile terminal about the z axis
Negative direction is rotated, and according to situation about rotating, whole 3-D view is then rotated on Z axis toward rightabout | θt z|, to protect as far as possible
3-D view is held in user's original visual line of sight, so as to play certain stabilization effect.When forward three-dimensional viewing is relative to original three
Misalignment angle θ of the dimension image on Z axiszIt is updated to θz+θt z.If it should be noted that | θt z| be unsatisfactory for N≤| θt z|≤M, then not
3-D view is rotated on Z axis.
S309:Last time angular acceleration values, i.e. α are updated according to this angular acceleration values0x=α1x, α0y=α1y, α0z=α1z。
Below by taking the rotation of Y direction as an example, the operation principle of this method is illustrated:
Please refer to Fig. 4 a, Fig. 4 b and Fig. 4 c, wherein Fig. 4 a are view of the screen under stable environment, are schemed
4b has rotated counterclockwise θ because of shake for screen around Y-axist yView after angle, Fig. 4 c are to Fig. 4 b by this method
Shown state carries out the view after 3-D view rotation.In Fig. 4 a, Fig. 4 b and Fig. 4 c, sight line S keeps direction constant;
3-D view is in the present example the cuboid in six faces.
In fig .4, user sees that the A faces in 3-D view are normal;
In fig. 4b, because screen has rotated counterclockwise θ because of shake around Y-axist yAngle, and sight line S direction is constant, then lead
Apply A faces that family sees and the state in Fig. 4 a is devious, so as to have impact on the viewing experience of user;
In Fig. 4 c, 3-D view is rotated clockwise into θ around Y-axis using this methodt yAngle, the A faces amendment that user sees
For normal condition, the i.e. state of Fig. 4 a.
In above-described embodiment, describing the shake for X, Y, Z axis in detail carries out 3-D view rotation, it is possible to reduce because trembling
The dynamic screen for causing is rotated for the impact of user's viewing experience.
Used as a preferred scheme of the present embodiment, this method also includes:
Detect jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system;
Jitter direction and amplitude according to the mobile terminal in three dimensions of mobile terminal screen coordinate system is to described
3-D view is translated or scaled.
Preferably, jitter direction of the detection mobile terminal in three dimensions of mobile terminal screen coordinate system and
Jitter amplitude, including:
Detect that the mobile terminal is sat in mobile terminal screen by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration in three dimensions of mark system;
The movement is determined according to linear acceleration of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and jitter amplitude of the terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the jitter direction according to the mobile terminal in three dimensions of mobile terminal screen coordinate system and
Jitter amplitude is translated or scaled to the 3-D view, including:
Jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view in X-axis to phase
Anti- jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis to phase
Anti- jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal on Z axis, the 3-D view is scaled original
(1 ± (absolute values of picture Z axis changing coordinates)/D) of size times;
Wherein, when the jitter direction when the mobile terminal on Z axis is negative, scaling is that 1+ (currently sit by picture Z axis
Target absolute value)/D).Jitter direction is to bear to represent mobile terminal in the shake of Z-direction so that screen is away from human eye, thus needs
Picture is amplified.
When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- be (picture Z axis changing coordinates
Absolute value)/D).Jitter direction is just to represent mobile terminal in the shake of Z-direction so that screen is near human eye, so that right
Picture is reduced.
Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis is calculated;D
For default positive number.D represents in a stable environment, and, apart from the average distance of screen, above-mentioned scaling can be with root for human eye
It is calculated according to the proportionate relationship of similar triangles.
In order to eliminate the mobile terminal meaning that operation effect of jitter and maloperation that operation of the finger to screen cause etc. are caused
Outer shake, the bound threshold value for arranging compensating operation is respectively Q and T, works as jitter amplitude<During T, do not mend to shaking deviation
Repay;Work as jitter amplitude>During Q, equally do not compensate to shaking deviation, keep 3-D view aobvious in the screen of mobile terminal
Show.
Specifically, the jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view
The jitter amplitude is translated to contrary jitter direction in X-axis, including:
When jitter amplitude of the mobile terminal in X-axis exceed predetermined threshold when, by the 3-D view in X-axis to
Contrary jitter direction translates the shake angle;When jitter amplitude of the mobile terminal in X-axis makes a reservation for not less than described
During threshold value, the 3-D view do not translated in X-axis;
The jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis
The jitter amplitude is translated to contrary jitter direction, including:
When jitter amplitude of the mobile terminal in Y-axis exceed predetermined threshold when, by the 3-D view in Y-axis to
Contrary jitter direction translates the shake angle;When jitter amplitude of the mobile terminal in Y-axis makes a reservation for not less than described
During threshold value, the 3-D view do not translated in Y-axis;
The jitter direction and jitter amplitude according to the mobile terminal on Z axis, the 3-D view is scaled
(1 ± (absolute values of picture Z axis changing coordinates)/D) of original size times, including:
When jitter amplitude of the mobile terminal on Z axis exceedes predetermined threshold, the 3-D view is scaled into original
(1 ± (absolute values of picture Z axis changing coordinates)/D) of beginning size times;When jitter amplitude of the mobile terminal in Y-axis not
During more than the predetermined threshold, the 3-D view is not zoomed in and out.
Conventional linear acceleration symbol is a, and unit is m/s2(meter per second2), numerical value for timing represent linear acceleration direction with
Change of line speed direction is consistent, represents that linear acceleration direction is in opposite direction with change of line speed when numerical value is to bear.
The whole process that the stabilization that detailed description below is shaken to screen is processed:
S401:Three coordinate variable O are setx、Oy、Oz, represent respectively when the central point of forward three-dimensional viewing is relative to physics screen
The three-dimensional coordinate of curtain central point, physical screen central point is the origin of whole three-dimensional coordinate system, Ox、Oy、OzInitial value is 0.
S402:Receive the actual time line accekeration a of a 3-axis acceleration sensor automatically every the t seconds1x、a1y、a1z。
S403:Calculate the difference Δ a of this linear acceleration and last time linear acceleration in X-axisx=a1x-a0xIf, | Δ ax| < K,
Represent that the jitter amplitude that produces because of shake in X-axis of mobile terminal is less or represent that mobile terminal is stable after shake
Get off, if Ox≠ 0, then will work as forward three-dimensional viewing mobile O in X-axisx, make OxRevert to 0;If Ox=0, then it is not required to make picture in X
Make mobile process on axle;If | Δ ax| >=K, then calculate mobile terminal physical displacement s in X-axis substantiallyt x=(Δ ax·
t2)/2。
S404:Work as st x> 0 represents that mobile terminal is moved along the positive direction of X-axis, works as st x< 0 represents mobile terminal along X-axis
Negative direction is moved, and according to mobile situation, whole 3-D view is moved in X-axis toward rightabout | st x|, to keep as far as possible
3-D view user original visual line of sight in, so as to play certain stabilization effect.New seat of the 3-D view central point in X-axis
It is designated as Ox=Ox+st x,.If it should be noted that | st x| be unsatisfactory for T≤| st x|≤Q, then 3-D view do not carried out in X-axis
It is mobile.
S405:Calculate the difference Δ a of this linear acceleration and last time linear acceleration in Y-axisy=a1y-a0yIf, | Δ ay| < K,
Represent that the jitter amplitude that produces because of shake in Y-axis of mobile terminal is less or represent that mobile terminal is stable after shake
Get off, if Oy≠ 0, then will work as forward three-dimensional viewing mobile O in Y-axisy, make OyRevert to 0;If Oy=0, then it is not required to make picture in Y
Make mobile process on axle;If | Δ ay| >=K, then calculate mobile terminal physical displacement s in Y-axis substantiallyt y=(Δ ay·
t2)/2。
S406:Work as st y> 0 represents that mobile terminal is moved along the positive direction of Y-axis, works as st y< 0 represents mobile terminal along Y-axis
Negative direction is moved, and according to mobile situation, whole 3-D view is moved in Y-axis toward rightabout | st y|, to keep as far as possible
3-D view user original visual line of sight in, so as to play certain stabilization effect.New seat of the 3-D view central point in Y-axis
It is designated as Oy=Oy+st y.If it should be noted that | st y| be unsatisfactory for T≤| st y|≤Q, then do not move to 3-D view in Y-axis
It is dynamic.
S407:Calculate the difference Δ a of this linear acceleration and last time linear acceleration on Z axisz=a1z-a0z;If | Δ az| < K,
Under representing that the jitter amplitude that produces because of shake on Z axis of mobile terminal is less or representing that mobile terminal is stable after shake
Come, if Oz≠ 0, then according to OzForward three-dimensional viewing will be worked as to zoom in and out so that when forward three-dimensional viewing returns to original three-dimensional image one
Sample size;If Oz=0, then it is not required to for 3-D view zooms in and out process;If | Δ az| >=K, then calculate mobile terminal and be wound on
Physical displacement s on Z axis substantiallyt z=(Δ az·t2)/2。
S408:New coordinate of the 3-D view central point on Z axis is Oz=Oz+st z.Work as st z> 0 represents mobile terminal along Z
The positive direction movement of axle, mobile terminal causes screen near human eye in the shake of Z-direction, so that contracting to picture
Little, scaling is 1- | Oz|/D, so as to reduce the amplitude that eyes of user readjusts focus point, mitigate eye strain.Work as st z
<0 represents that mobile terminal is moved along the negative direction of Z axis, and mobile terminal causes screen away from human eye in the shake of Z-direction, thus
Need to be amplified picture, scaling is 1+ | Oz|/D, so as to reduce the amplitude that eyes of user readjusts focus point, subtract
Light eye strain.If it should be noted that | st z| be unsatisfactory for T≤| st z|≤Q, then 3-D view do not zoomed in and out.
S409:Last linear acceleration value, i.e. a are updated according to this linear acceleration value0x=a1x, a0y=a1y, a0z=a1z。
In above-described embodiment, describing the shake for X, Y-axis in detail carries out the translation of 3-D view, and for Z axis
Shake carry out the scaling of 3-D view, it is possible to reduce shake is for the impact of user.
Above-mentioned overall plan is by X, Y, the detection of Z axis linear acceleration and angular acceleration, in real time to terminal device screen
Curtain show compensate, real-time adjustment 3-D view display location in the terminal, can mitigate user in use by
In the visual fatigue that equipment shake is caused, stability of the 3-D view in terminal device is improve, reduce the dizziness of eye, given
Give player's more stably visual experience.
Correspondingly, in order to perform the screen anti-fluttering method of above-mentioned 3-D view, the embodiment of the present invention additionally provides one kind
The screen anti-shake apparatus of 3-D view.As shown in figure 5, it is the screen anti-shake apparatus of 3-D view provided in an embodiment of the present invention
Structured flowchart, including:
First motion detection block 1, for detecting mobile terminal turning in three dimensions of mobile terminal screen coordinate system
Dynamic direction and rotational angle;
First picture adjusting module 2, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Rotation direction and rotational angle, the 3-D view to being displayed on the screen of the mobile terminal rotates.
As shown in fig. 6, it is the structured flowchart of the first motion detection block 1 in Fig. 5.First motion detection block 1
Including:
Angular acceleration detector unit 11, for detecting the mobile terminal by the three-axis gyroscope in the mobile terminal
Angular acceleration in three dimensions of mobile terminal screen coordinate system;
Orientation angle determining unit 12, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Angular acceleration determine rotation direction and rotational angle of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
As shown in fig. 7, it is the structured flowchart of the first picture adjusting module 2 in Fig. 5.The first picture adjusting module 2
Including:
X-axis rotates adjustment unit 21, for rotation direction and rotational angle according to the mobile terminal in X-axis, will
The contrary rotation direction in X-axis of the 3-D view rotates the rotational angle;
Y-axis rotates adjustment unit 22, for rotation direction and rotational angle according to the mobile terminal in Y-axis, will
The contrary rotation direction in Y-axis of the 3-D view rotates the rotational angle;
Z axis rotate adjustment unit 23, and the rotation direction and rotational angle according to the mobile terminal on Z axis will be described
The contrary rotation direction on Z axis of 3-D view rotates the rotational angle.
Preferably, the X-axis rotates adjustment unit 21 specifically for when rotational angle of the mobile terminal in X-axis is super
When crossing predetermined threshold, the contrary rotation direction in X-axis of the 3-D view is rotated into the rotational angle;When described mobile whole
When rotational angle of the end in X-axis is not less than the predetermined threshold, the 3-D view do not rotated in X-axis;
The Y-axis rotates adjustment unit 22 specifically for making a reservation for when rotational angle of the mobile terminal in Y-axis exceedes
During threshold value, the contrary rotation direction in Y-axis of the 3-D view is rotated into the rotational angle;When the mobile terminal is in Y
When rotational angle on axle is not less than the predetermined threshold, the 3-D view do not rotated in Y-axis;
The Z axis rotate adjustment unit 23 specifically for making a reservation for when rotational angle of the mobile terminal on Z axis exceedes
During threshold value, the contrary rotation direction on Z axis of the 3-D view is rotated into the rotational angle;When the mobile terminal is in Z
When rotational angle on axle is not less than the predetermined threshold, the 3-D view do not rotated on Z axis.
Preferably, described device also includes:
Second motion detection block, for detecting the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and jitter amplitude;
Second picture adjusting module, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and amplitude are translated or scaled to the 3-D view.
Preferably, second motion detection block includes:
Linear acceleration detector unit, for detecting the movement by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration of the terminal in three dimensions of mobile terminal screen coordinate system;
Direction amplitude determining unit, for according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Linear acceleration determines jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
Preferably, the second picture adjusting module includes:
X-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in X-axis, by institute
State 3-D view and translate the jitter amplitude to contrary jitter direction in X-axis;
Y-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by institute
State 3-D view and translate the jitter amplitude to contrary jitter direction in Y-axis;
Z axis scale adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal on Z axis, by institute
State (1 ± (absolute values of picture Z axis changing coordinates)/D) times that 3-D view is scaled original size;
Wherein, when the jitter direction when the mobile terminal on Z axis is negative, scaling is that 1+ (currently sit by picture Z axis
Target absolute value)/D);When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- (work as by picture Z axis
The absolute value of front coordinate)/D);Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis
It is calculated;D is default positive number.
Preferably, X-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in X-axis surpasses
When crossing predetermined threshold, the 3-D view is translated into the shake angle in X-axis to contrary jitter direction;When the movement
When jitter amplitude of the terminal in X-axis is not less than the predetermined threshold, the 3-D view do not translated in X-axis;
Y-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in Y-axis exceedes predetermined threshold
During value, the 3-D view is translated into the shake angle in Y-axis to contrary jitter direction;When the mobile terminal is in Y
When jitter amplitude on axle is not less than the predetermined threshold, the 3-D view do not translated in Y-axis;
Z axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal on Z axis exceedes predetermined threshold
During value, the 3-D view is scaled (1 ± (absolute values of picture Z axis the changing coordinates)/D) times of original size;When described
When jitter amplitude of the mobile terminal in Y-axis is not less than the predetermined threshold, the 3-D view is not zoomed in and out.
It should be noted that the screen anti-shake apparatus of 3-D view provided in an embodiment of the present invention are used to perform the three-dimensional
All method and steps of the screen anti-fluttering method of image, its operation principle and beneficial effect are corresponded, thus are repeated no more.
Compared to prior art, the beneficial effect of the embodiment of the present invention is:Embodiments provide a kind of three-dimensional
The screen anti-fluttering method of image and device, wherein method are comprised the following steps:Detection mobile terminal is in mobile terminal screen coordinate
It is the rotation direction and rotational angle in three dimensions;According to the mobile terminal in three dimensions of mobile terminal screen coordinate system
On rotation direction and rotational angle, the 3-D view to being displayed on the screen of the mobile terminal rotates.The present invention
Embodiment can mitigate the screen produced due to shake and rotate for user watches the impact of 3-D view, mitigate user in shake
Carry out watching the spinning sensation of generation in environment, lift the experience that user is watched using mobile terminal.
One of ordinary skill in the art will appreciate that realizing all or part of flow process in above-described embodiment method, can be
Related hardware is instructed to complete by computer program, described program can be stored in a computer read/write memory medium
In, the program is upon execution, it may include such as the flow process of the embodiment of above-mentioned each method.Wherein, described storage medium can be magnetic
Dish, CD, read-only memory (Read-Only Memory, ROM) or random access memory (Random Access
Memory, RAM) etc..
The above is the preferred embodiment of the present invention, it is noted that for those skilled in the art
For, under the premise without departing from the principles of the invention, some improvements and modifications can also be made, these improvements and modifications are also considered as
Protection scope of the present invention.
Claims (16)
1. the screen anti-fluttering method of a kind of 3-D view, it is characterised in that include:
Rotation direction and rotational angle of the detection mobile terminal in three dimensions of mobile terminal screen coordinate system;
Rotation direction and rotational angle according to the mobile terminal in three dimensions of mobile terminal screen coordinate system, to showing
3-D view on the screen of the mobile terminal is rotated.
2. the screen anti-fluttering method of 3-D view as claimed in claim 1, it is characterised in that the detection mobile terminal is being moved
Rotation direction and rotational angle in three dimensions of dynamic terminal screen coordinate system, including:
Detect the mobile terminal in three dimensions of mobile terminal screen coordinate system by the three-axis gyroscope in the mobile terminal
Angular acceleration on degree;
The mobile terminal is determined according to angular acceleration of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Rotation direction and rotational angle in three dimensions of mobile terminal screen coordinate system.
3. the screen anti-fluttering method of 3-D view as claimed in claim 1, it is characterised in that described according to the mobile terminal
Rotation direction and rotational angle in three dimensions of mobile terminal screen coordinate system, the screen to being displayed in the mobile terminal
On 3-D view rotated, including:
According to the mobile terminal around X-axis rotation direction and rotational angle, by the 3-D view around X-axis with contrary rotation
Direction rotates the rotational angle;
According to the mobile terminal around Y-axis rotation direction and rotational angle, by the 3-D view around Y-axis with contrary rotation
Direction rotates the rotational angle;
According to mobile terminal rotation direction about the z axis and rotational angle, by the 3-D view about the z axis with contrary rotation
Direction rotates the rotational angle.
4. the screen anti-fluttering method of 3-D view as claimed in claim 3, it is characterised in that
It is described according to the mobile terminal around X-axis rotation direction and rotational angle, by the 3-D view around X-axis with contrary
Rotation direction rotates the rotational angle, including:
When the mobile terminal around X-axis rotational angle in default angular range when, by the 3-D view around X-axis with phase
Anti- rotation direction rotates the rotational angle;When the mobile terminal around X-axis rotational angle outside default angular range
When, the 3-D view is not rotated around X-axis;
It is described according to the mobile terminal around Y-axis rotation direction and rotational angle, by the 3-D view around Y-axis with contrary
Rotation direction rotates the rotational angle, including:
When the mobile terminal around Y-axis rotational angle in default angular range when, by the 3-D view around Y-axis with phase
Anti- rotation direction rotates the rotational angle;When the mobile terminal around Y-axis rotational angle outside default angular range
When, the 3-D view is not rotated around Y-axis;
It is described according to mobile terminal rotation direction about the z axis and rotational angle, by the 3-D view about the z axis with contrary
Rotation direction rotates the rotational angle, including:
When mobile terminal rotational angle about the z axis is in default angular range, by the 3-D view about the z axis with phase
Anti- rotation direction rotates the rotational angle;When mobile terminal rotational angle about the z axis is outside default angular range
When, the 3-D view is not rotated about the z axis.
5. the screen anti-fluttering method of the 3-D view as described in any one of Claims 1 to 4, it is characterised in that methods described is also
Including:
Detect jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system;
Jitter direction and amplitude according to the mobile terminal in three dimensions of mobile terminal screen coordinate system is to the three-dimensional
Image is translated or scaled.
6. the screen anti-fluttering method of 3-D view as claimed in claim 5, it is characterised in that the detection mobile terminal
Jitter direction and jitter amplitude in three dimensions of mobile terminal screen coordinate system, including:
Detect the mobile terminal in mobile terminal screen coordinate system by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration in three dimensions;
The mobile terminal is determined according to linear acceleration of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Jitter direction and jitter amplitude in three dimensions of mobile terminal screen coordinate system.
7. the screen anti-fluttering method of 3-D view as claimed in claim 5, it is characterised in that
The jitter direction and jitter amplitude pair according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
The 3-D view is translated or scaled, including:
Jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view in X-axis to contrary
Jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis to contrary
Jitter direction translates the jitter amplitude;
Jitter direction and jitter amplitude according to the mobile terminal on Z axis, by the 3-D view original size is scaled
(1 ± (absolute values of picture Z axis changing coordinates)/D) times;
Wherein, when jitter direction of the mobile terminal on Z axis for it is negative when, scaling be 1+ (picture Z axis changing coordinates
Absolute value)/D);When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- (currently sit by picture Z axis
Target absolute value)/D);Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis is calculated
Obtain;D is default positive number.
8. the screen anti-fluttering method of 3-D view as claimed in claim 7, it is characterised in that
The jitter direction and jitter amplitude according to the mobile terminal in X-axis, by the 3-D view in X-axis to phase
Anti- jitter direction translates the jitter amplitude, including:
When jitter amplitude of the mobile terminal in X-axis is in default amplitude range, by the 3-D view in X-axis
The shake angle is translated to contrary jitter direction;When jitter amplitude of the mobile terminal in X-axis is in default amplitude
When outside scope, the 3-D view do not translated in X-axis;
The jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by the 3-D view in Y-axis to phase
Anti- jitter direction translates the jitter amplitude, including:
When jitter amplitude of the mobile terminal in Y-axis is in default amplitude range, by the 3-D view in Y-axis
The shake angle is translated to contrary jitter direction;When jitter amplitude of the mobile terminal in Y-axis is in default amplitude
When outside scope, the 3-D view do not translated in Y-axis;
The jitter direction and jitter amplitude according to the mobile terminal on Z axis, the 3-D view is scaled original
(1 ± (absolute values of picture Z axis changing coordinates)/D) of size times, including:
When jitter amplitude of the mobile terminal on Z axis is in default amplitude range, the 3-D view is scaled
(1 ± (absolute values of picture Z axis changing coordinates)/D) of original size times;When jitter amplitude of the mobile terminal in Y-axis
When outside default amplitude range, the 3-D view is not zoomed in and out.
9. screen anti-shake apparatus of a kind of 3-D view, it is characterised in that include:
First motion detection block, for detecting rotation direction of the mobile terminal in three dimensions of mobile terminal screen coordinate system
And rotational angle;
First picture adjusting module, for the rotation according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Direction and rotational angle, the 3-D view to being displayed on the screen of the mobile terminal is rotated.
10. screen anti-shake apparatus of 3-D view as claimed in claim 9, it is characterised in that the first motion detection mould
Block includes:
Angular acceleration detector unit, for detecting that the mobile terminal is being moved by the three-axis gyroscope in the mobile terminal
Angular acceleration in three dimensions of terminal screen coordinate system;
Orientation angle determining unit, adds for the angle according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Speed determines rotation direction and rotational angle of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
The screen anti-shake apparatus of 11. 3-D views as claimed in claim 9, it is characterised in that first picture adjusts mould
Block includes:
X-axis rotates adjustment unit, for rotation direction and rotational angle according to the mobile terminal in X-axis, by described three
The contrary rotation direction in X-axis of dimension image rotates the rotational angle;
Y-axis rotates adjustment unit, for rotation direction and rotational angle according to the mobile terminal in Y-axis, by described three
The contrary rotation direction in Y-axis of dimension image rotates the rotational angle;
Z axis rotate adjustment unit, the rotation direction and rotational angle according to the mobile terminal on Z axis, by the graphics
As contrary rotation direction on Z axis rotates the rotational angle.
The screen anti-shake apparatus of 12. 3-D views as claimed in claim 11, it is characterised in that
When the X-axis rotation adjustment unit exceedes predetermined threshold specifically for the rotational angle when the mobile terminal in X-axis,
The contrary rotation direction in X-axis of the 3-D view is rotated into the rotational angle;When the mobile terminal turning in X-axis
When dynamic angle is not less than the predetermined threshold, the 3-D view do not rotated in X-axis;
When the Y-axis rotation adjustment unit exceedes predetermined threshold specifically for the rotational angle when the mobile terminal in Y-axis,
The contrary rotation direction in Y-axis of the 3-D view is rotated into the rotational angle;When the mobile terminal turning in Y-axis
When dynamic angle is not less than the predetermined threshold, the 3-D view do not rotated in Y-axis;
When the Z axis rotation adjustment unit exceedes predetermined threshold specifically for the rotational angle when the mobile terminal on Z axis,
The contrary rotation direction on Z axis of the 3-D view is rotated into the rotational angle;When the mobile terminal turning on Z axis
When dynamic angle is not less than the predetermined threshold, the 3-D view do not rotated on Z axis.
The screen anti-shake apparatus of 13. 3-D views as described in any one of claim 9~12, it is characterised in that described device
Also include:
Second motion detection block, for detecting shake of the mobile terminal in three dimensions of mobile terminal screen coordinate system
Direction and jitter amplitude;
Second picture adjusting module, for the shake according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Direction and amplitude are translated or scaled to the 3-D view.
The screen anti-shake apparatus of 14. 3-D views as claimed in claim 13, it is characterised in that the second motion detection mould
Block includes:
Linear acceleration detector unit, for detecting the mobile terminal by the 3-axis acceleration sensor in the mobile terminal
Linear acceleration in three dimensions of mobile terminal screen coordinate system;
Direction amplitude determining unit, adds for the line according to the mobile terminal in three dimensions of mobile terminal screen coordinate system
Speed determines jitter direction and jitter amplitude of the mobile terminal in three dimensions of mobile terminal screen coordinate system.
The screen anti-shake apparatus of 15. 3-D views as claimed in claim 13, it is characterised in that
The second picture adjusting module includes:
X-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in X-axis, by described three
Dimension image translates the jitter amplitude in X-axis to contrary jitter direction;
Y-axis translates adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal in Y-axis, by described three
Dimension image translates the jitter amplitude in Y-axis to contrary jitter direction;
Z axis scale adjustment unit, for jitter direction and jitter amplitude according to the mobile terminal on Z axis, by described three
Dimension image scaling is (1 ± (absolute values of picture Z axis changing coordinates)/D) times of original size;
Wherein, when jitter direction of the mobile terminal on Z axis for it is negative when, scaling be 1+ (picture Z axis changing coordinates
Absolute value)/D);When jitter direction of the mobile terminal on Z axis is timing, scaling is for (1- (currently sit by picture Z axis
Target absolute value)/D);Jitter amplitude of the absolute value of the picture Z axis changing coordinates by the mobile terminal on Z axis is calculated
Obtain;D is default positive number.
The screen anti-shake apparatus of 16. 3-D views as claimed in claim 15, it is characterised in that
X-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in X-axis exceedes predetermined threshold
When, the 3-D view is translated into the shake angle in X-axis to contrary jitter direction;When the mobile terminal is in X-axis
On jitter amplitude not less than the predetermined threshold when, the 3-D view do not translated in X-axis;
Y-axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal in Y-axis exceedes predetermined threshold
When, the 3-D view is translated into the shake angle in Y-axis to contrary jitter direction;When the mobile terminal is in Y-axis
On jitter amplitude not less than the predetermined threshold when, the 3-D view do not translated in Y-axis;
Z axis translation adjustment unit specifically for:When jitter amplitude of the mobile terminal on Z axis exceedes predetermined threshold
When, the 3-D view is scaled (1 ± (absolute values of picture Z axis the changing coordinates)/D) times of original size;When the shifting
When jitter amplitude of the dynamic terminal in Y-axis is not less than the predetermined threshold, the 3-D view is not zoomed in and out.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611203844.1A CN106648365A (en) | 2016-12-23 | 2016-12-23 | Screen anti-shake method and device for three-dimensional image |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611203844.1A CN106648365A (en) | 2016-12-23 | 2016-12-23 | Screen anti-shake method and device for three-dimensional image |
Publications (1)
Publication Number | Publication Date |
---|---|
CN106648365A true CN106648365A (en) | 2017-05-10 |
Family
ID=58827510
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611203844.1A Pending CN106648365A (en) | 2016-12-23 | 2016-12-23 | Screen anti-shake method and device for three-dimensional image |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106648365A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683807A (en) * | 2018-05-04 | 2018-10-19 | 武汉极意网络科技有限公司 | A kind of radar animated show method, apparatus and equipment based on mobile phone gyroscope |
CN109600513A (en) * | 2018-11-30 | 2019-04-09 | 努比亚技术有限公司 | A kind of mobile terminal and its screen realize the method, apparatus and storage medium of stabilization |
CN110147165A (en) * | 2019-05-28 | 2019-08-20 | 英华达(上海)科技有限公司 | Motion sickness based on user terminal alleviates method, system, equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478581A (en) * | 2009-01-09 | 2009-07-08 | 深圳华为通信技术有限公司 | Display control method for mobile terminal and mobile terminal |
CN103176623A (en) * | 2011-12-20 | 2013-06-26 | 中国电信股份有限公司 | Reading anti-shaking method and device of mobile terminal and mobile terminal |
CN103517061A (en) * | 2013-09-03 | 2014-01-15 | 展讯通信(上海)有限公司 | Method and device for display control of terminal device |
CN104320545A (en) * | 2014-11-14 | 2015-01-28 | 陕西亚成微电子股份有限公司 | Anti-shake method for mobile phone screen |
-
2016
- 2016-12-23 CN CN201611203844.1A patent/CN106648365A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101478581A (en) * | 2009-01-09 | 2009-07-08 | 深圳华为通信技术有限公司 | Display control method for mobile terminal and mobile terminal |
CN103176623A (en) * | 2011-12-20 | 2013-06-26 | 中国电信股份有限公司 | Reading anti-shaking method and device of mobile terminal and mobile terminal |
CN103517061A (en) * | 2013-09-03 | 2014-01-15 | 展讯通信(上海)有限公司 | Method and device for display control of terminal device |
CN104320545A (en) * | 2014-11-14 | 2015-01-28 | 陕西亚成微电子股份有限公司 | Anti-shake method for mobile phone screen |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN108683807A (en) * | 2018-05-04 | 2018-10-19 | 武汉极意网络科技有限公司 | A kind of radar animated show method, apparatus and equipment based on mobile phone gyroscope |
CN108683807B (en) * | 2018-05-04 | 2020-12-08 | 武汉极意网络科技有限公司 | Radar animation display method, device and equipment based on mobile phone gyroscope |
CN109600513A (en) * | 2018-11-30 | 2019-04-09 | 努比亚技术有限公司 | A kind of mobile terminal and its screen realize the method, apparatus and storage medium of stabilization |
CN110147165A (en) * | 2019-05-28 | 2019-08-20 | 英华达(上海)科技有限公司 | Motion sickness based on user terminal alleviates method, system, equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
EP3051525B1 (en) | Display | |
US9881421B2 (en) | Image processing | |
JP6353214B2 (en) | Image generating apparatus and image generating method | |
WO2017047150A1 (en) | Method for providing virtual space, and program | |
CN108021241B (en) | Method for realizing virtual-real fusion of AR glasses | |
US9779702B2 (en) | Method of controlling head-mounted display system | |
US11577159B2 (en) | Realistic virtual/augmented/mixed reality viewing and interactions | |
CN106598252A (en) | Image display adjustment method and apparatus, storage medium and electronic device | |
US11765335B2 (en) | Synthetic stereoscopic content capture | |
JP6097377B1 (en) | Image display method and program | |
CN106959759A (en) | A kind of data processing method and device | |
JP2013214252A (en) | Display control system, display control method, display control program, and display control device | |
US20180005431A1 (en) | Display control method and system for executing the display control method | |
US20130222363A1 (en) | Stereoscopic imaging system and method thereof | |
CN103376892A (en) | Method, device and terminal device for controlling display of display interface | |
CN107844190A (en) | Image presentation method and device based on Virtual Reality equipment | |
CN106648365A (en) | Screen anti-shake method and device for three-dimensional image | |
EP3786878A1 (en) | Image resolution processing method, system and apparatus, and storage medium and device | |
CN104216533B (en) | A kind of wear-type virtual reality display based on DirectX9 | |
US10904516B2 (en) | Counterrotation of display panels and/or virtual cameras in a HMD | |
CN103517061A (en) | Method and device for display control of terminal device | |
CN105807798A (en) | Method and device for controlling jittering phenomenon of head-mounted intelligent glasses | |
JP5632245B2 (en) | Eyeglass field image display device | |
WO2022267694A1 (en) | Display adjustment method and apparatus, device, and medium | |
CN106383577B (en) | Scene control implementation method and system for VR video playing device |
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 | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20170510 |