CN107995410A - A kind of method and apparatus of terminal tilt prompting - Google Patents

A kind of method and apparatus of terminal tilt prompting Download PDF

Info

Publication number
CN107995410A
CN107995410A CN201610957397.2A CN201610957397A CN107995410A CN 107995410 A CN107995410 A CN 107995410A CN 201610957397 A CN201610957397 A CN 201610957397A CN 107995410 A CN107995410 A CN 107995410A
Authority
CN
China
Prior art keywords
terminal
incline direction
acceleration
detection ball
prompting
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610957397.2A
Other languages
Chinese (zh)
Inventor
高丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Gree Electric Appliances Inc of Zhuhai
Original Assignee
Gree Electric Appliances Inc of Zhuhai
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Gree Electric Appliances Inc of Zhuhai filed Critical Gree Electric Appliances Inc of Zhuhai
Priority to CN201610957397.2A priority Critical patent/CN107995410A/en
Publication of CN107995410A publication Critical patent/CN107995410A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/62Control of parameters via user interfaces

Abstract

The present invention relates to field of communication technology, more particularly to the method and apparatus of terminal tilt prompting.Whether this method is in tilt state for detection terminal, obtains first component of acceleration of the gravity sensor acceleration caused by gravity in X-axis, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis of terminal;The current spatial attitude of the terminal is determined according to the first component of acceleration, the second component of acceleration and the 3rd component of acceleration;Determine whether the terminal is in heeling condition according to the current spatial attitude of terminal, if the terminal is in heeling condition, obtain incline direction, and prompt incline direction.User adjusts the spatial attitude of terminal according to tilt state, can shoot not inclined image, and allowing subject that " up-small and down-big " or the probability of left-right asymmetry picture is presented reduces.

Description

A kind of method and apparatus of terminal tilt prompting
【Technical field】
The present invention relates to field of communication technology, more particularly to a kind of method and apparatus of terminal tilt prompting.
【Background technology】
Since current terminal, such as mobile terminal all carry some multimedia devices, camera is installed as on mobile phone, The action such as can be taken pictures, be imaged.Easy to operate since mobile terminal is convenient for carrying, user is in life, journey and ergonomics It can be shot at any time using the camera in mobile phone in habit, therefore more users can tend to the shooting work(using mobile phone Energy.
In the present inventor in the implementation of the present invention, it is found that there are problems with for correlation technique:Utilizing existing skill The mobile terminal camera of art is carried out in shooting process, captured photo angle often occurs and deviation occurs, and have impact on bat The effect taken the photograph, as user using mobile terminal to personage carry out front shooting when, since not opposite horizontal plane is joined Often occur during according to, user's hand-held mobile terminal it is crooked, can cause the personage in captured image out present " it is upper it is small under Greatly " or left-right asymmetry phenomenon.
【The content of the invention】
Subject in the image that the present invention comes out for terminal taking in the prior art is presented " up-small and down-big " or left The technical problem of right asymmetric phenomenon, there is provided a kind of method and apparatus of terminal tilt prompting, technical solution are as follows:
In a first aspect, the present invention provides a kind of method of terminal tilt prompting, including:
When the terminal is in shooting state, first acceleration point of the acceleration of gravity in X-axis of the terminal is obtained Amount, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis;
Determine that the terminal is current according to first component of acceleration, the second component of acceleration and the 3rd component of acceleration Spatial attitude;
According to the current spatial attitude of the terminal, determine whether the terminal is in heeling condition;
If the terminal is in heeling condition, incline direction is obtained, and prompt incline direction.
Alternatively, the prompting incline direction includes:
Prompting region is built on the display screen of the terminal, and roll detection ball is generated in the prompting region;
The roll detection ball is set to be rolled to the prompting region and the corresponding position display of incline direction.
Alternatively, the method further includes:
If the terminal is not at heeling condition, show the midpoint that the roll detection ball rolls to the prompting region Show, and control the terminal automatic shooting image.
Alternatively, the incline direction includes:Obliquely, obliquely, it is oblique it is left, it is oblique it is right, diagonally forward with it is oblique after;
It is described the prompting ball is included in the prompting region and the corresponding position display of incline direction:
When the incline direction is obliquely, the roll detection ball is set to roll to the upper of the medium line of the prompting region Portion;
When the incline direction is obliquely, the roll detection ball is rolled under the medium line of the prompting region Portion;
When the incline direction for it is oblique left when, the roll detection ball roll to the prompting region it is right it is cornerwise under Portion;
When the incline direction for it is oblique right when, the roll detection ball roll to the prompting region it is left it is cornerwise under Portion;
When the incline direction for diagonally forward when, the roll detection ball roll to the prompting region it is left it is cornerwise on Portion;
When the incline direction is after oblique, the roll detection ball roll to the prompting region it is right it is cornerwise on Portion.
Alternatively, the method further includes:
Calculate the range value of the terminal incline direction;
According to the range value, the area of the roll detection ball is adjusted.
On the other hand, the embodiment of the present invention provides a kind of device of terminal tilt prompting, including:
Acquisition module, when the terminal is in shooting state, the acquisition module is used for the gravity for obtaining the terminal First component of acceleration of the acceleration in X-axis, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis;
First determining module, first determining module are used for according to first component of acceleration, the second acceleration point Amount and the 3rd component of acceleration determine the current spatial attitude of the terminal;
Second determining module, second determining module are used for according to the current spatial attitude of the terminal, determine described Whether terminal is in heeling condition;
Acquisition and reminding module, if the terminal is in heeling condition, the acquisition and reminding module, which are used to obtain, to be tilted Direction, and prompt incline direction.
Alternatively, the acquisition and reminding module include:
Structure and generation unit, the structure and generation unit build prompting region on the display screen of the terminal, and And generate roll detection ball in the prompting region;
Display unit, the display unit are used to make the roll detection ball be rolled to the prompting region and incline direction Corresponding position display.
Alternatively, described device further includes:
Display and taking module, if the terminal is not at heeling condition, the display and taking module are used to make described The midpoint that roll detection ball rolls to the prompting region is shown, and controls the terminal automatic shooting image.
Alternatively, the incline direction includes:Obliquely, obliquely, it is oblique it is left, it is oblique it is right, diagonally forward with it is oblique after;
The display unit is additionally operable to:
When the incline direction is obliquely, the roll detection ball is set to roll to the upper of the medium line of the prompting region Portion;
When the incline direction is obliquely, the roll detection ball is rolled under the medium line of the prompting region Portion;
When the incline direction for it is oblique left when, the roll detection ball roll to the prompting region it is right it is cornerwise under Portion;
When the incline direction for it is oblique right when, the roll detection ball roll to the prompting region it is left it is cornerwise under Portion;
When the incline direction for diagonally forward when, the roll detection ball roll to the prompting region it is left it is cornerwise on Portion;
When the incline direction is after oblique, the roll detection ball roll to the prompting region it is right it is cornerwise on Portion.
Alternatively, described device further includes:
Computing module, the computing module are used for the range value for calculating the terminal incline direction;
Module is adjusted, the adjustment module is used for the area for according to the range value, adjusting the roll detection ball.
The beneficial effect of the embodiment of the present invention is, the method for terminal tilt prompting provided in an embodiment of the present invention, Whether be in tilt state for detection terminal, be different from the situation of the prior art, obtain the gravity sensor of terminal by In first component of acceleration of the acceleration caused by gravity in X-axis, the second component of acceleration in Y-axis and the 3rd in Z axis Component of acceleration;Determine that the terminal is current according to the first component of acceleration, the second component of acceleration and the 3rd component of acceleration Spatial attitude;Determine whether the terminal is in heeling condition according to the current spatial attitude of terminal, if the terminal is in Heeling condition, obtains incline direction, and prompts incline direction.User adjusts the space appearance of terminal according to tilt state State, can shoot not inclined image, and allowing subject that " up-small and down-big " or the probability of left-right asymmetry picture is presented reduces.
【Brief description of the drawings】
One or more embodiments are illustrative by the picture in corresponding attached drawing, these exemplary theorys The bright restriction not formed to embodiment, the element for having same reference numbers label in attached drawing are expressed as similar element, remove Non- have a special statement, and composition does not limit the figure in attached drawing.
Fig. 1 is XYZ three-axis references schematic diagram provided in an embodiment of the present invention;
Fig. 2 is a kind of flow chart of the method for terminal tilt prompting provided in an embodiment of the present invention;
Fig. 3 is the refined flow chart of step 40 in Fig. 2;
Fig. 4 is a kind of flow chart of the method for terminal tilt prompting that another embodiment of the present invention provides;
Fig. 5 is a kind of flow chart of the method for terminal tilt prompting that further embodiment of this invention provides;
Fig. 6 is a kind of flow chart of the method for terminal tilt prompting that yet another embodiment of the invention provides;
Fig. 7 is a kind of flow chart of the method for terminal tilt prompting that further embodiment of this invention provides;
Fig. 8 is a kind of structure diagram of the device of terminal tilt prompting provided in an embodiment of the present invention;
Fig. 9 is a kind of structural frames of the logging modle of the device of terminal tilt prompting provided in an embodiment of the present invention Figure;
Figure 10 is a kind of structure diagram of the device for terminal tilt prompting that another embodiment of the present invention provides;
Figure 11 is a kind of structure diagram of the device for terminal tilt prompting that yet another embodiment of the invention provides;
Figure 12 is the structure diagram of a kind of electronic equipment provided in an embodiment of the present invention.
【Embodiment】
In order to make the purpose , technical scheme and advantage of the present invention be clearer, with reference to the accompanying drawings and embodiments, it is right The present invention is further elaborated.It should be appreciated that specific embodiment described herein is only to explain the present invention, not For limiting the present invention.
Terminal can be mobile phone, tablet computer, E-book reader and pocket computer on knee etc..
One or more cameras can be installed in terminal, can be preceding camera, rear camera or convertible shooting It is first-class.
Terminal is connected by wireless network or cable network with server.
The method of the terminal tilt prompting of the embodiment of the present invention is mainly used for prompting the user with terminal in camera view Under, or under shooting state, whether terminal is in the state of tilt.
The method of the terminal tilt prompting of the embodiment of the present invention carries out automatically when terminal starts camera, can also The open command for whether performing the prompting of terminal tilt is first received, which can be sent by user, can also be by pre- It is fixed that establishing installs, and certainly, which can be modifiable by the user.
Please refer to Fig.1 and Fig. 2, Fig. 1 are XYZ three-axis references schematic diagrames provided in an embodiment of the present invention, Fig. 2 is the present invention A kind of flow chart of the method for terminal tilt prompting that embodiment provides, this method are performed by terminal, as shown in Fig. 2, should Method is applied to terminal, and this method includes:
Step 10, when the terminal is in shooting state, obtain the acceleration of gravity of the terminal X-axis first plus Velocity component, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis.
In the present embodiment, when the terminal is in shooting state, obtained by the gravity sensor of terminal, such as gyroscope First component of acceleration of the acceleration of gravity of the terminal in X-axis, the second component of acceleration in Y-axis and in Z axis Three components of acceleration.First component of acceleration can be calculated as XA, and the second component of acceleration can be calculated as YA, the 3rd component of acceleration It can be calculated as ZA.It is three axis gravity sensors it should be noted that gravity sensor herein, such as three-axis gyroscope, Ke Yijian Component of acceleration of the measuring gravity acceleration on tri- axis of XYZ.
Step 20, according to determining first component of acceleration, the second component of acceleration and the 3rd component of acceleration The current spatial attitude of terminal.
By the component of acceleration of tri- axis of XYZ, it may be determined that the position of terminal center of gravity, may further determine that the current space appearance of terminal State.
Step 30, according to the current spatial attitude of the terminal, determine whether the terminal is in heeling condition.
The current spatial attitude of different terminals represents different terminal heeling conditions or center state.
If step 40, the terminal are in heeling condition, incline direction is obtained, and prompt incline direction.
According to the heeling condition of terminal, incline direction is obtained, and prompt the user with incline direction.Wherein, prompting tilts Direction can be prompted by way of voice, word, icon.
The beneficial effect of the embodiment of the present invention is, the method for terminal tilt prompting provided in an embodiment of the present invention, Whether be in tilt state for detection terminal, be different from the situation of the prior art, obtain the gravity sensor of terminal by In first component of acceleration of the acceleration caused by gravity in X-axis, the second component of acceleration in Y-axis and the 3rd in Z axis Component of acceleration;Determine that the terminal is current according to the first component of acceleration, the second component of acceleration and the 3rd component of acceleration Spatial attitude;Determine whether the terminal is in heeling condition according to the current spatial attitude of terminal, if the terminal is in Heeling condition, obtains incline direction, and prompts incline direction.User adjusts the space appearance of terminal according to tilt state State, can shoot not inclined image, and allowing subject that " up-small and down-big " or the probability of left-right asymmetry picture is presented reduces.
In another embodiment, as shown in figure 4, the method further includes:
If step 80, the terminal are not at heeling condition, the terminal automatic shooting image is controlled.
If terminal is at the beginning not heeling condition, the terminal automatic shooting image can be directly controlled.Control is eventually End automatic shooting image, when terminal is not at heeling condition, the touch-screen shooting of terminal is clicked on if necessary to user again, or The button shooting of terminal is pressed, easily produces the inclination that shake causes terminal, control terminal automatic shooting image can prevent user from grasping Inclination caused by making the shake of terminal taking image.
Specifically, referring to Fig. 3, the prompting incline direction includes:
Step 41, build prompting region on the display screen of the terminal, and is generated in the prompting region and roll inspection Survey ball.
The prompting region built on the display screen of the terminal, can be square frame, such as rectangular boxes, square side Frame.The square frame has three center line, left diagonal and right diagonal dotted lines.Roll detection ball is generated in the prompting region, Roll detection ball can be rolled according to being actually needed in prompting region.
Step 42, make the roll detection ball be rolled to the prompting region and the corresponding position display of incline direction.
Roll detection ball is rolled to the prompting region and the corresponding position display of incline direction, and user can be according to rolling The position of ball is detected, the spatial attitude of terminal is adjusted, allows terminal not tilt.
Certainly, in other alternate embodiments, incline direction can also be otherwise prompted, such as:Directly display aobvious Show the word of incline direction, alternatively, with the content on the corresponding position of incline direction on amplifying display screen etc..
The beneficial effect of the embodiment of the present invention is, the method for terminal tilt prompting provided in an embodiment of the present invention, If the terminal is in heeling condition, incline direction is obtained, and prompting region is built on the display screen of the terminal, and Roll detection ball is generated in the prompting region, roll detection ball is rolled to the prompting region and the corresponding position of incline direction Put display, user according to the position of roll detection ball, can adjust the spatial attitude of terminal, by the rolling of roll detection ball come to The current spatial posture of user's prompt terminal, vivider and lively, the incline direction of prompting is easier to be received by user.
In yet another embodiment, as shown in figure 5, the present embodiment part unlike the embodiments above is, the method Further include:
If step 50, the terminal are not at heeling condition, the roll detection ball is set to roll to the prompting region Midpoint is shown, and controls the terminal automatic shooting image.
In the present embodiment, if the terminal is not at heeling condition, roll detection ball is made to roll to the prompting region Midpoint show that if prompting region is rectangular boxes, then roll detection ball rolls to rectangular midpoint and shows, which is also Dotted line, left diagonal and right cornerwise crosspoint.At this time, control terminal automatic shooting image, when terminal is not at tilting During state, the touch-screen shooting of terminal is clicked on again if necessary to user, or press the button shooting of terminal, easily again result in end The inclination at end, control terminal automatic shooting image can prevent terminal from tilting again.
Especially, in certain embodiments, when the incline direction of terminal is in the range of predetermined inclination, also can control eventually End automatic shooting image.Predetermined inclination scope may be provided at the image of shooting by being visually not easy to identify the model of heeling condition Enclose, the incline direction for being such as arranged to X-axis, Y-axis and Z axis is in positive and negative 5 degree.After user adjusts the spatial attitude of terminal, rolling Dynamic detection ball does not have to show at midpoint completely, as long as the incline direction of terminal is in the range of predetermined inclination, you can control terminal Image is automatically snapped, the time of the spatial attitude of adjustment terminal is reduced, lifts user experience.Certainly, predetermined inclination scope also may be used By user configuration, set according to different user demands.
The beneficial effect of the present embodiment is, if the terminal is not at heeling condition, rolls the roll detection ball Shown to the midpoint of the prompting region, it is vivid to the centering of user's display terminal, the prompting mode.Control the end End automatic shooting image can avoid the manual shooting image of user and again result in shake, avoid allowing terminal to be again at heeling condition And shoot inclined image.
Further, the incline direction includes:Obliquely, obliquely, it is oblique it is left, it is oblique it is right, diagonally forward with it is oblique after.
It is described the prompting ball is included in the prompting region and the corresponding position display of incline direction:
Step 61, when the incline direction for obliquely when, the roll detection ball is rolled in the prompting region The top of top-stitching.
Step 62, when the incline direction for obliquely when, the roll detection ball rolls to the centre of the prompting region The lower part of line.
In the present embodiment, incline direction for obliquely or obliquely, refer to terminal with respect to caused by X-axis rotation obliquely Or obliquely.Terminal obliquely when, eyes of the top lower part away from user of display screen, at this time roll detection ball roll to described The top of the medium line of prompting region.Terminal obliquely when, the lower part of display screen rolls at this time compared with eyes of the top away from user Detection ball rolls to the lower part of the medium line of the prompting region.
It should be noted that terminal relative to X-axis rotate caused by obliquely or obliquely when, terminal can also have opposite Y The rotation of axis and Z axis, but the amplitude that terminal is rotated relative to X-axis is more than the amplitude that terminal is rotated relative to Y-axis, terminal is with respect to X-axis The amplitude of rotation is also greater than the amplitude that terminal is rotated relative to Z axis, and at this time, it is primary pivot that terminal is rotated relative to X-axis.Roll detection Ball caused by only a prompting X-axis rotates in prompting region obliquely or obliquely, i.e. turn of roll detection ball instruction primary pivot Dynamic direction is as incline direction.
Step 63, when the incline direction for it is oblique left when, the roll detection ball rolls to the right right of the prompting region The lower part of linea angulata.
Step 64, when the incline direction for it is oblique right when, the roll detection ball rolls to the left right of the prompting region The lower part of linea angulata.
In the present embodiment, incline direction is the oblique left or oblique right side, refers to terminal relative to an oblique left side caused by Z axis rotation Or the oblique right side.When terminal is oblique left, the lower left corner of display screen is low compared with the lower right corner, and roll detection ball rolls to the prompting region at this time Right cornerwise lower part.When terminal is oblique right, the lower right corner of display screen is low compared with the lower left corner, and roll detection ball rolls to described at this time Left cornerwise lower part of prompting region.
It should be noted that terminal relative to Z axis rotate caused by obliquely or obliquely when, terminal can also have opposite Y The rotation of axis and X-axis, but the amplitude that terminal is rotated relative to Z axis is more than the amplitude that terminal is rotated relative to Y-axis, terminal is with respect to Z axis The amplitude of rotation is also greater than the amplitude that terminal is rotated relative to X-axis, and at this time, it is primary pivot that terminal is rotated relative to Z axis.Roll detection Turn on ball oblique left or oblique right side, i.e. roll detection ball instruction primary pivot caused by only a prompting Z axis rotates in prompting region Dynamic direction is as incline direction.
Step 65, when the incline direction for diagonally forward when, the roll detection ball rolls to the left right of the prompting region The top of linea angulata.
Step 66, when the incline direction is after oblique, the roll detection ball rolls to the right right of the prompting region The top of linea angulata.
In the present embodiment, incline direction for diagonally forward or it is oblique after, refer to terminal with respect to Y-axis rotation caused by diagonally forward Or it is oblique after.Terminal diagonally forward when, the left side of display screen rolls to described compared with eyes of the right side away from user, at this time roll detection ball Left cornerwise top of prompting region.When after terminal is oblique, the right side of display screen is rolled at this time compared with eyes of the left side away from user Dynamic detection ball rolls to right cornerwise top of the prompting region.
It should be noted that terminal relative to Y-axis rotate caused by diagonally forward or it is oblique after when, terminal can also have opposite Z The rotation of axis and X-axis, but the amplitude that terminal is rotated relative to Y-axis is more than the amplitude that terminal is rotated relative to Z axis, terminal is with respect to Y-axis The amplitude of rotation is also greater than the amplitude that terminal is rotated relative to X-axis, and at this time, it is primary pivot that terminal is rotated relative to Y-axis.Roll detection Ball in prompting region only prompting a Z axis rotate caused by diagonally forward or it is oblique after, i.e., roll detection ball instruction primary pivot turn Dynamic direction is as incline direction.
The beneficial effect of the present embodiment is that roll detection ball rolls to the prompting region diverse location, and GC group connector is worked as Preceding spatial attitude, user can adjust the space appearance of terminal according to roll detection ball in the instruction of the diverse location of prompting region State is not so that terminal tilts.
In another embodiment, Fig. 6 and Fig. 7 are referred to, this method is applied to terminal, and the method further includes:
Step 60, the range value for calculating the terminal incline direction.
According to first component of acceleration of the acceleration of gravity of terminal in X-axis, the second component of acceleration in Y-axis and The range value of 3rd component of acceleration computing terminal incline direction of Z axis.For example, terminal relative to X-axis rotate caused by obliquely When, range value is set as 0-90.Angular range obliquely is 0-180 degree, then every 2 degree of angle obliquely corresponds to a width Angle value.When 30 degree obliquely of terminal, range value 15.In an inclined direction tilted it may also be said that range value illustrates terminal It is how many, the inclined degree of terminal in an inclined direction.
Step 70, according to the range value, adjust the area of the roll detection ball.
To represent that in an inclined direction inclined degree shows that there is provided roll detection ball by roll detection ball to terminal Size and range value size correspondence.Range value is bigger, and the area of roll detection ball is bigger.For example, setting Prompting region is the region in the square boxes of 60*60mm, when the incline direction of terminal is diagonally forward, and its angle of inclination For 180 degree, range value diagonally forward is 90, then the area of roll detection ball is shown as maximum, its radius is 1.5mm.Work as terminal When not tilting, roll detection ball is shown at the midpoint of prompting region, sets its radius as 0.3mm, roll detection ball maximum rating Radius is 1.5mm, and it is 0.3mm to subtract roll detection ball minimum state radius, and the transformable radius for obtaining roll detection ball is Between 0.3-1.5mm, constant interval 1.2mm.Constant interval is divided into 90 parts, the value per a increased radius is 0.01333mm, then range value diagonally forward often increase by 1, such as become 2 degree from 1 degree, then the radius of its corresponding roll detection ball by 0.31333mm becomes 0.32666mm.
The beneficial effect of the present embodiment is that the size of roll detection ball is closed with the size of range value there are corresponding System, user can the inclined degree of small judgement terminal or user can be with rollings according to the area of roll detection ball big either Whether the perception terminal that becomes larger or diminish of the area of dynamic detection ball increasingly tilts, and lifts user experience.
Especially, in other embodiments, the transparency of roll detection ball with the size variation of range value, can be set to become Change, such as set the transparency change scope of roll detection ball as 10%-90%, then the area of roll detection ball is with range value When becoming larger and becoming larger, the transparency of roll detection ball also becomes larger with becoming larger for range value, i.e. roll detection ball becomes Increasingly unobvious, when terminal inclined degree is low, then range value diminishes, and the area of roll detection ball diminishes, roll detection The transparency of ball diminishes, and roll detection ball becomes more and more obvious.
The present invention provides the device embodiments of terminal tilt prompting again.Referring to Fig. 8, the device is applied to eventually End, the device 30 of terminal tilt prompting include acquisition module 31, the first determining module 32, the second determining module 33 and obtain And reminding module 34.When the terminal is in shooting state, the gravity that the acquisition module 31 is used to obtain the terminal adds First component of acceleration of the speed in X-axis, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis.First Determining module 32, described in being determined according to first component of acceleration, the second component of acceleration and the 3rd component of acceleration The current spatial attitude of terminal.Second determining module 33, for according to the current spatial attitude of the terminal, determining the terminal Whether heeling condition is in.If the terminal is in heeling condition, the acquisition and reminding module 34 are used to obtain incline direction, And prompt incline direction.
It should be noted that the device for the terminal tilt prompting that the embodiment of the present invention proposes is implemented with the method for the present invention The method for the terminal tilt prompting that example proposes is based on identical inventive concept, embodiment of the method and the phase in device embodiment Answer technology contents to be mutually applicable in, be no longer described in detail herein.
An embodiment of the present invention provides a kind of device 30 of terminal tilt prompting, inclines for whether detection terminal to be in Oblique shooting state, is different from the situation of the prior art, and acquisition module 31 obtains the gravity sensor of terminal caused by gravity First component of acceleration of the acceleration in X-axis, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis;The One determining module 32 determines that the terminal is current according to the first component of acceleration, the second component of acceleration and the 3rd component of acceleration Spatial attitude;Second determining module 33 determines whether the terminal is in heeling condition according to the current spatial attitude of terminal, If the terminal is in heeling condition, obtains and reminding module 34 obtains incline direction, and prompt incline direction.User according to Tilt state adjust terminal spatial attitude, not inclined image can be shot, allow subject present " up-small and down-big " or The probability of left-right asymmetry picture reduces.
In another embodiment, as shown in figure 9, the device is applied to terminal, the acquisition and reminding module 34 include Structure and generation unit 341 and display unit 342.The structure and generation unit 341 are built on the display screen of the terminal Prompting region, and generate roll detection ball in the prompting region;The display unit 342 is used to make the roll detection ball It is rolled to the prompting region and the corresponding position display of incline direction.
It should be noted that the device for the terminal tilt prompting that the embodiment of the present invention proposes is implemented with the method for the present invention The method for the terminal tilt prompting that example proposes is based on identical inventive concept, embodiment of the method and the phase in device embodiment Answer technology contents to be mutually applicable in, be no longer described in detail herein.
In the present embodiment, if the terminal is in heeling condition, incline direction, and structure and generation unit are obtained 341 build prompting region on the display screen of the terminal, and generate roll detection ball, display unit in the prompting region 342 are used to make roll detection ball be rolled to the prompting region and the corresponding position display of incline direction, and user can be according to rolling The position of dynamic detection ball, adjusts the spatial attitude of terminal, the current of terminal is prompted the user with by the rolling of roll detection ball Spatial attitude, vivider and lively, the incline direction of prompting is easier to be received by user.
In yet another embodiment, as shown in Figure 10, which is applied to terminal, and described device further includes display and shooting Module 35, if the terminal is not at heeling condition, the display and taking module 35 are used to roll to the roll detection ball The midpoint of the prompting region is shown, and controls the terminal automatic shooting image.
It should be noted that the device for the terminal tilt prompting that the embodiment of the present invention proposes is implemented with the method for the present invention The method for the terminal tilt prompting that example proposes is based on identical inventive concept, embodiment of the method and the phase in device embodiment Answer technology contents to be mutually applicable in, be no longer described in detail herein.
The beneficial effect of the present embodiment is, if the terminal is not at heeling condition, display and taking module 35 are used for Show the midpoint that the roll detection ball rolls to the prompting region, to the centering of user's display terminal, the prompting mode It is vivid.Control the terminal automatic shooting image to avoid the manual shooting image of user and again result in shake, avoid allowing Terminal is again at heeling condition and shoots inclined image.
In a further embodiment, which is applied to terminal, and the incline direction includes:Obliquely, obliquely, it is oblique It is left, oblique it is right, diagonally forward with it is oblique after;The display unit 342 is additionally operable to:
When the incline direction is obliquely, the roll detection ball is set to roll to the upper of the medium line of the prompting region Portion;
When the incline direction is obliquely, the roll detection ball is rolled under the medium line of the prompting region Portion;
When the incline direction for it is oblique left when, the roll detection ball roll to the prompting region it is right it is cornerwise under Portion;
When the incline direction for it is oblique right when, the roll detection ball roll to the prompting region it is left it is cornerwise under Portion;
When the incline direction for diagonally forward when, the roll detection ball roll to the prompting region it is left it is cornerwise on Portion;
When the incline direction is after oblique, the roll detection ball roll to the prompting region it is right it is cornerwise on Portion.
It should be noted that the device for the terminal tilt prompting that the embodiment of the present invention proposes is implemented with the method for the present invention The method for the terminal tilt prompting that example proposes is based on identical inventive concept, embodiment of the method and the phase in device embodiment Answer technology contents to be mutually applicable in, be no longer described in detail herein.
The beneficial effect of the present embodiment is that display unit 342 is used to make roll detection ball roll to the prompting region not Same position, the current spatial attitude of GC group connector, user can according to roll detection ball the diverse location of prompting region instruction, The spatial attitude of terminal is adjusted so that terminal does not tilt.
In certain embodiments, 1 is please referred to Fig.1, which is applied to terminal, and described device further includes 36 He of computing module Adjust module 37.The computing module 36 is used for the range value for calculating the terminal incline direction;The adjustment module 37 is used for According to the range value, the area of the roll detection ball is adjusted.
It should be noted that the device for the terminal tilt prompting that the embodiment of the present invention proposes is implemented with the method for the present invention The method for the terminal tilt prompting that example proposes is based on identical inventive concept, embodiment of the method and the phase in device embodiment Answer technology contents to be mutually applicable in, be no longer described in detail herein.
The beneficial effect of the present embodiment is that the size of roll detection ball is closed with the size of range value there are corresponding System, user can the inclined degree of small judgement terminal or user can be with rollings according to the area of roll detection ball big either Whether the perception terminal that becomes larger or diminish of the area of dynamic detection ball increasingly tilts, and lifts user experience.
Especially, in other embodiments, described device further includes transparency adjustment module 38, can be with range value it is big Small change, transparency adjustment module 38 are used for the transparency change for setting roll detection ball, such as set the transparent of roll detection ball Degree excursion is 10%-90%, then the area of roll detection ball with becoming larger for range value when becoming larger, roll detection ball Transparency also become larger with becoming larger for range value, i.e., roll detection ball becomes increasingly unobvious, when terminal tilt journey When spending low, then range value diminishes, and the area of roll detection ball diminishes, and the transparency of roll detection ball diminishes, roll detection ball Become more and more obvious.
Please refer to Fig.1 the structure diagram that 2, Figure 12 is a kind of electronic equipment 80 provided in an embodiment of the present invention, such as Figure 12 Shown, which includes:
One or more processors 801 and memory 802, in Figure 12 by taking a processor 801 as an example.
The equipment of the method for terminal tilt prompting can also include:Input unit 803 and output device 804.
Processor 801, memory 802, input unit 803 and output device 804 can pass through bus or other modes Connect, in Figure 12 exemplified by being connected by bus.
Memory 802 is used as a kind of non-volatile computer readable storage medium storing program for executing, available for storage non-volatile software journey Sequence, non-volatile computer executable program and module, such as the method prompted in the terminal tilt in the embodiment of the present application Corresponding programmed instruction/module (for example, acquisition module 31, the first determining module 32, the second determining module 33 shown in attached drawing 8, Acquisition and reminding module 34, the display shown in structure and generation unit 341 and display unit 342 and attached drawing 10 shown in attached drawing 9 And taking module 35, computing module 36, adjustment module 37, transparency adjustment module 38).Processor 801 is stored in by operation Non-volatile software program, instruction and module in memory 802, so that the various function application and number of execute server According to processing, that is, the method for realizing the prompting of above method embodiment terminal tilt.
Memory 802 can include storing program area and storage data field, wherein, storing program area can store operation system System, the required application program of at least one function;Storage data field can store the device prompted according to terminal tilt Use created data etc..In addition, memory 802 can include high-speed random access memory, can also include non-volatile Property memory, a for example, at least disk memory, flush memory device or other non-volatile solid state memory parts.At some In embodiment, memory 802 is optional including relative to the remotely located memory of processor 801, these remote memories can be with The device prompted by network connection to terminal tilt.The example of above-mentioned network includes but not limited to internet, in enterprise Portion's net, LAN, mobile radio communication and combinations thereof.
Input unit 803 can receive the numeral or character information of input, and whether reception performs terminal tilt and carry The related key signals input of the open command and function control shown.Output device 804 may include the display devices such as display screen.
One or more of modules are stored in the memory 802, when by one or more of processors During 801 execution, the method that the terminal tilt in above-mentioned any means embodiment is prompted is performed, for example, performing above description Fig. 2 in method and step 10 to step 40, method and step 41 in Fig. 3 to step 42, method and step 10 in Fig. 4 to step To step 50, the method and step 10 in Fig. 6 realizes the method and step 10 in Fig. 7 to step 70 for method and step 10 in 40, Fig. 5 To step 80, realize acquisition module 31 shown in attached drawing 8, the first determining module 32, the second determining module 33, obtain and prompting mould Block 34, display shown in structure and generation unit 341 and display unit 342 and attached drawing 10 and taking module 35 shown in attached drawing 9, Computing module 36, adjustment module 37, the function of transparency adjustment module 38.
The said goods can perform the method that the embodiment of the present application is provided, and possesses the corresponding function module of execution method and has Beneficial effect.Not ins and outs of detailed description in the present embodiment, reference can be made to the method that the embodiment of the present application is provided.
The electronic equipment of the embodiment of the present application exists in a variety of forms, includes but not limited to:
(1) mobile communication equipment:The characteristics of this kind equipment is that possess mobile communication function, and to provide speech, data Communicate as main target.This Terminal Type includes:Smart mobile phone (such as i Phone), multimedia handset, feature mobile phone, and Low-end mobile phone etc..
(2) super mobile personal computer equipment:This kind equipment belongs to the category of personal computer, there is calculating and processing work( Can, generally also possess mobile Internet access characteristic.This Terminal Type includes:PDA, M I D and UMPC equipment etc., such as i Pad.
(3) portable entertainment device:This kind equipment can show and play content of multimedia.The kind equipment includes:Audio, Video player (such as i Pod), handheld device, e-book, and intelligent toy and portable car-mounted navigation equipment.
(4) other have the function of the electronic device of data interaction.
An embodiment of the present invention provides a kind of non-volatile computer readable storage medium storing program for executing, the computer-readable storage medium Matter is stored with computer executable instructions, which is executed by one or more processors, such as in Fig. 6 One processor 801, may be such that said one or terminal that multiple processors can perform in above-mentioned any means embodiment tilts The method of prompting is shot, for example, method and step 10 in Fig. 2 described above is performed to step 40, the method and step 41 in Fig. 3 To step 42, method and step 10 in Fig. 4 to step 40, method and step 10 in Fig. 5 to step 50, the method and step in Fig. 6 10 to step 70, realize the method and step 10 in Fig. 7 to step 80, realize that the acquisition module 31, first shown in attached drawing 8 determines mould Block 32, the second determining module 33, acquisition and reminding module 34, structure and generation unit 341 and display unit shown in attached drawing 9 342 and attached drawing 10 shown in display and taking module 35, computing module 36, adjustment module 37, transparency adjustment module 38 work( Energy.
An embodiment of the present invention provides a kind of computer program product, and when computer program product is performed, execution is retouched above Method and step 10 in the Fig. 2 stated is to step 40, method and step 41 in Fig. 3 to step 42, the method and step 10 in Fig. 4 to step To step 50, the method and step 10 in Fig. 6 realizes the method and step in Fig. 7 to step 70 for method and step 10 in rapid 40, Fig. 5 10 to step 80, realize acquisition module 31 shown in attached drawing 8, the first determining module 32, the second determining module 33, obtain and prompting Module 34, display shown in structure and generation unit 341 and display unit 342 and attached drawing 10 and taking module shown in attached drawing 9 35th, computing module 36, adjustment module 37, the function of transparency adjustment module 38.
Device embodiment described above is only schematical, wherein the unit illustrated as separating component can To be or may not be physically separate, physics list is may or may not be as the component that unit is shown Member, you can with positioned at a place, or can also be distributed in multiple network unit.It can be selected according to the actual needs In some or all of module realize the purpose of this embodiment scheme.
Through the above description of the embodiments, those skilled in the art can be understood that each embodiment can Realized by the mode of software plus general hardware platform, naturally it is also possible to pass through hardware.Based on such understanding, above-mentioned technology The part that scheme substantially in other words contributes correlation technique can be embodied in the form of software product, the computer Software product can store in a computer-readable storage medium, such as ROM/RAM, magnetic disc, CD, including some instructions to So that computer equipment (can be personal computer, server, either network equipment etc.) perform each embodiment or Method described in some parts of embodiment.
Finally it should be noted that:Above example is only to illustrate the technical solution of the application, rather than its limitations;At this Under the thinking of application, it can also be combined between the technical characteristic in above example or different embodiment, step can be with Realized with random order, and many other changes of the different aspect there are the application as described above, for simplicity, they do not have Have and provided in details;Although the application is described in detail with reference to the foregoing embodiments, the ordinary skill people of this area Member should be understood:It can still modify the technical solution described in foregoing embodiments, or to which part skill Art feature carries out equivalent substitution;And these modifications or replacement, the essence of appropriate technical solution is departed from each reality of the application Apply the scope of a technical solution.

Claims (10)

  1. A kind of 1. method of terminal tilt prompting, it is characterised in that including:
    When the terminal is in shooting state, obtain the terminal first component of acceleration of the acceleration of gravity in X-axis, Second component of acceleration of Y-axis and the 3rd component of acceleration in Z axis;
    The current sky of the terminal is determined according to first component of acceleration, the second component of acceleration and the 3rd component of acceleration Between posture;
    According to the current spatial attitude of the terminal, determine whether the terminal is in heeling condition;
    If the terminal is in heeling condition, incline direction is obtained, and prompt incline direction.
  2. 2. the method as described in claim 1, it is characterised in that the prompting incline direction includes:
    Prompting region is built on the display screen of the terminal, and roll detection ball is generated in the prompting region;
    The roll detection ball is set to be rolled to the prompting region and the corresponding position display of incline direction.
  3. 3. method as claimed in claim 2, it is characterised in that the method further includes:
    If the terminal is not at heeling condition, show the midpoint that the roll detection ball rolls to the prompting region, and And the control terminal automatic shooting image.
  4. 4. method as claimed in claim 2, it is characterised in that the incline direction includes:Obliquely, obliquely, it is oblique it is left, It is oblique it is right, diagonally forward with it is oblique after;
    It is described the prompting ball is included in the prompting region and the corresponding position display of incline direction:
    When the incline direction is obliquely, the roll detection ball is set to roll to the top of the medium line of the prompting region;
    When the incline direction is obliquely, the roll detection ball rolls to the lower part of the medium line of the prompting region;
    When the incline direction is oblique left, the roll detection ball rolls to right cornerwise lower part of the prompting region;
    When the incline direction is oblique right, the roll detection ball rolls to left cornerwise lower part of the prompting region;
    When the incline direction is diagonally forward, the roll detection ball rolls to left cornerwise top of the prompting region;
    When the incline direction is oblique rear, the roll detection ball rolls to right cornerwise top of the prompting region.
  5. 5. method as claimed in claim 4, it is characterised in that the method further includes:
    Calculate the range value of the terminal incline direction;
    According to the range value, the area of the roll detection ball is adjusted.
  6. A kind of 6. device of terminal tilt prompting, it is characterised in that including:
    Acquisition module, when the terminal is in shooting state, the gravity that the acquisition module is used to obtain the terminal accelerates Spend the first component of acceleration in X-axis, the second component of acceleration in Y-axis and the 3rd component of acceleration in Z axis;
    First determining module, first determining module be used for according to first component of acceleration, the second component of acceleration and 3rd component of acceleration determines the current spatial attitude of the terminal;
    Second determining module, second determining module are used for according to the current spatial attitude of the terminal, determine the terminal Whether heeling condition is in;
    Acquisition and reminding module, if the terminal is in heeling condition, the acquisition and reminding module are used to obtain incline direction, And prompt incline direction.
  7. 7. device as claimed in claim 1, it is characterised in that the acquisition and reminding module include:
    Structure and generation unit, the structure and generation unit build prompting region on the display screen of the terminal, and The prompting region generates roll detection ball;
    Display unit, the display unit are opposite with incline direction for making the roll detection ball be rolled to the prompting region The position display answered.
  8. 8. device as claimed in claim 7, it is characterised in that described device further includes:
    Display and taking module, if the terminal is not at heeling condition, the display and taking module are used to make the rolling The midpoint that detection ball rolls to the prompting region is shown, and controls the terminal automatic shooting image.
  9. 9. device as claimed in claim 7, it is characterised in that the incline direction includes:Obliquely, obliquely, it is oblique it is left, It is oblique it is right, diagonally forward with it is oblique after;
    The display unit is additionally operable to:
    When the incline direction is obliquely, the roll detection ball is set to roll to the top of the medium line of the prompting region;
    When the incline direction is obliquely, the roll detection ball rolls to the lower part of the medium line of the prompting region;
    When the incline direction is oblique left, the roll detection ball rolls to right cornerwise lower part of the prompting region;
    When the incline direction is oblique right, the roll detection ball rolls to left cornerwise lower part of the prompting region;
    When the incline direction is diagonally forward, the roll detection ball rolls to left cornerwise top of the prompting region;
    When the incline direction is oblique rear, the roll detection ball rolls to right cornerwise top of the prompting region.
  10. 10. device as claimed in claim 9, it is characterised in that described device further includes:
    Computing module, the computing module are used for the range value for calculating the terminal incline direction;
    Module is adjusted, the adjustment module is used for the area for according to the range value, adjusting the roll detection ball.
CN201610957397.2A 2016-10-27 2016-10-27 A kind of method and apparatus of terminal tilt prompting Pending CN107995410A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610957397.2A CN107995410A (en) 2016-10-27 2016-10-27 A kind of method and apparatus of terminal tilt prompting

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610957397.2A CN107995410A (en) 2016-10-27 2016-10-27 A kind of method and apparatus of terminal tilt prompting

Publications (1)

Publication Number Publication Date
CN107995410A true CN107995410A (en) 2018-05-04

Family

ID=62028596

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610957397.2A Pending CN107995410A (en) 2016-10-27 2016-10-27 A kind of method and apparatus of terminal tilt prompting

Country Status (1)

Country Link
CN (1) CN107995410A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110986880A (en) * 2019-12-11 2020-04-10 微民保险代理有限公司 Direction detection method and device, computer readable storage medium and mobile terminal
CN111902695A (en) * 2018-08-08 2020-11-06 华为技术有限公司 Method and terminal for acquiring user motion trail

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760822A (en) * 2004-10-15 2006-04-19 日本电气株式会社 Portable terminal and display control method thereof
CN102353351A (en) * 2011-06-28 2012-02-15 惠州Tcl移动通信有限公司 Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone
CN103945043A (en) * 2013-01-21 2014-07-23 联想(北京)有限公司 Photographic method and electronic device
CN104092938A (en) * 2014-06-26 2014-10-08 刘永健 Gravity-sensing photographing method and system
CN104133624A (en) * 2014-07-10 2014-11-05 腾讯科技(深圳)有限公司 Webpage animation display method, webpage animation display device and terminal
CN104883501A (en) * 2015-05-12 2015-09-02 广东欧珀移动通信有限公司 Method and device for photographing in top-view angle

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1760822A (en) * 2004-10-15 2006-04-19 日本电气株式会社 Portable terminal and display control method thereof
CN100394370C (en) * 2004-10-15 2008-06-11 日本电气株式会社 Mobile terminal and display control method thereof
CN102353351A (en) * 2011-06-28 2012-02-15 惠州Tcl移动通信有限公司 Lateral shooting angle detecting method, inclined shooting angle detecting method and mobile phone
CN103945043A (en) * 2013-01-21 2014-07-23 联想(北京)有限公司 Photographic method and electronic device
CN104092938A (en) * 2014-06-26 2014-10-08 刘永健 Gravity-sensing photographing method and system
CN104133624A (en) * 2014-07-10 2014-11-05 腾讯科技(深圳)有限公司 Webpage animation display method, webpage animation display device and terminal
CN104883501A (en) * 2015-05-12 2015-09-02 广东欧珀移动通信有限公司 Method and device for photographing in top-view angle

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111902695A (en) * 2018-08-08 2020-11-06 华为技术有限公司 Method and terminal for acquiring user motion trail
CN110986880A (en) * 2019-12-11 2020-04-10 微民保险代理有限公司 Direction detection method and device, computer readable storage medium and mobile terminal
CN110986880B (en) * 2019-12-11 2022-02-15 微民保险代理有限公司 Direction detection method and device, computer readable storage medium and mobile terminal

Similar Documents

Publication Publication Date Title
US11703993B2 (en) Method, apparatus and device for view switching of virtual environment, and storage medium
US20220201222A1 (en) Photographing Using Night Shot Mode Processing and User Interface
US11151773B2 (en) Method and apparatus for adjusting viewing angle in virtual environment, and readable storage medium
CN111355889B (en) Shooting method, shooting device, electronic equipment and storage medium
CN109806586B (en) Starting method, device and equipment of game auxiliary function and readable storage medium
CN110141859B (en) Virtual object control method, device, terminal and storage medium
CN108881733B (en) Panoramic shooting method and mobile terminal
EP3835953A1 (en) Display adaptation method and apparatus for application, device, and storage medium
US11878240B2 (en) Method, apparatus, device, and storage medium for perspective rotation
RU2745737C1 (en) Video recording method and video recording terminal
US20240066404A1 (en) Perspective rotation method and apparatus, device, and storage medium
CN107656685A (en) Control the method and terminal of virtual target motion
CN110052027A (en) Virtual object control method, device, equipment and storage medium in virtual scene
US11863901B2 (en) Photographing method and terminal
CN109710151B (en) File processing method and terminal equipment
US20220032176A1 (en) Method and related apparatus for application of scope in virtual environment
CN106249508A (en) Atomatic focusing method and system, filming apparatus
CN108682040A (en) A kind of sketch image generation method, terminal and computer readable storage medium
CN109859102A (en) Special display effect method, apparatus, terminal and storage medium
CN106648344A (en) Screen content adjustment method and equipment
CN110291775A (en) A kind of track up method, equipment and storage medium
CN107404618A (en) A kind of image pickup method and terminal
CN108881721B (en) Display method and terminal
CN108257097A (en) U.S. face effect method of adjustment, terminal and computer readable storage medium
CN107995410A (en) A kind of method and apparatus of terminal tilt prompting

Legal Events

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

Application publication date: 20180504

RJ01 Rejection of invention patent application after publication