CN108205378A - Mobile terminal turn detection method, mobile terminal and computer readable storage medium - Google Patents
Mobile terminal turn detection method, mobile terminal and computer readable storage medium Download PDFInfo
- Publication number
- CN108205378A CN108205378A CN201711472471.2A CN201711472471A CN108205378A CN 108205378 A CN108205378 A CN 108205378A CN 201711472471 A CN201711472471 A CN 201711472471A CN 108205378 A CN108205378 A CN 108205378A
- Authority
- CN
- China
- Prior art keywords
- mobile terminal
- eigenvalue
- data
- detection method
- turn detection
- 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/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
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/4401—Bootstrapping
- G06F9/4418—Suspend and resume; Hibernate and awake
Abstract
The invention discloses a kind of mobile terminal turn detection method, mobile terminal and computer readable storage medium, this method to include:After acquisition instructions are detected, according to acquisition instructions, the first exercise data during motion of mobile terminals is acquired by the sensor in mobile terminal;The corresponding the First Eigenvalue of the first exercise data is extracted, and the First Eigenvalue is corresponded to and is matched with presetting the roll data in characteristic matching library;If the First Eigenvalue and roll data successful match, it is determined that mobile terminal is reversed.The characteristic value of exercise data and pre-stored roll data are compared by the multi-motion data during acquiring motion of mobile terminals, to determine whether mobile terminal is reversed, improve the accuracy rate whether detection mobile terminal is reversed by the present invention.
Description
Technical field
The present invention relates to terminal processing techniques field more particularly to a kind of mobile terminal turn detection method, mobile terminals
And computer readable storage medium.
Background technology
With the development of mobile terminal technology, there is double-sided screen mobile terminal.Using double-sided screen mobile terminal process
In, when mobile terminal is turned to the back side by user from front, mobile terminal front screen can be from bright screen state into death of monks or nuns screen shape
State, mobile terminal reverse side screen can enter bright screen state from screen state of going out.Judging the algorithm of the bright screen of mobile terminal turn at present is
Judge whether mobile terminal overturns by change in gravitational acceleration, specifically, interior gravity adds acquisition mobile terminal for a period of time
Speed, when acceleration of gravity varies widely, i.e., acceleration of gravity becomes negative value from positive value or becomes positive value from negative value
When, it is determined that mobile terminal is reversed.But in some cases, if mobile terminal is under vertical state, mobile terminal gravity
Acceleration of gravity of the Y-axis on ground, Y-axis reach maximum value, the acceleration of gravity in X-axis and Z axis can very little, approach
In zero, at this point, it is inaccurate to judge whether mobile terminal carries out overturning meeting using acceleration of gravity.It follows that added by gravity
The accuracy rate whether velocity measuring mobile terminal is reversed is low.
Invention content
It is a primary object of the present invention to propose a kind of mobile terminal turn detection method, mobile terminal and computer-readable
Storage medium, it is intended to solve the technical issues of existing accuracy rate that whether is reversed of detection mobile terminal is low.
To achieve the above object, the present invention provides a kind of mobile terminal turn detection method, the mobile terminal turns
Detection method includes:
After acquisition instructions are detected, according to the acquisition instructions, the shifting is acquired by the sensor in mobile terminal
The first exercise data in dynamic terminal motion process;
The corresponding the First Eigenvalue of first exercise data is extracted, and the First Eigenvalue is corresponded to and presets feature
Roll data matching in matching library;
If the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal is reversed.
Optionally, if the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal
The step of being reversed includes:
Determine that the First Eigenvalue corresponds to the similarity between roll data and each with the characteristic matching library
Weight shared by characteristic value;
According to the ratio of the First Eigenvalue described in the corresponding similarity of the First Eigenvalue and the weight calculation
Value;
If the ratio value is more than preset ratio, it is determined that the mobile terminal is reversed.
Optionally, it is described after acquisition instructions are detected, according to the acquisition instructions, pass through the sensor in mobile terminal
Before the step of acquiring the first exercise data during the motion of mobile terminals, further include:
The second exercise data during the mobile terminal turn is obtained by the sensor;
Extract the Second Eigenvalue of second exercise data by neural network, and using the Second Eigenvalue as turning over
Revolution forms characteristic matching library according to storage.
Optionally, it is described after acquisition instructions are detected, according to the acquisition instructions, pass through the sensor in mobile terminal
Before the step of acquiring the first exercise data during the motion of mobile terminals, further include:
The first rotational angular velocity of the mobile terminal gyroscope acquisition is obtained, and determines that first rotational angular velocity is
It is no that the first default angular speed is increased in preset duration;
If first rotational angular velocity increases to the described first default angular speed in the preset duration, it is determined that institute
It states mobile terminal and is changed into motion state from stationary state, trigger the acquisition instructions.
Optionally, the corresponding the First Eigenvalue of the extraction first exercise data, and by the First Eigenvalue pair
Before the step of should being matched with the roll data in default characteristic matching library, further include:
First exercise data is filtered, obtains filtered first exercise data.
Optionally, the corresponding the First Eigenvalue of the extraction first exercise data, and by the First Eigenvalue pair
Before the step of should being matched with the roll data in default characteristic matching library, further include:
The second rotational angular velocity for stating the acquisition of mobile terminal gyroscope is obtained, and is determined according to second rotational angular velocity
Whether the mobile terminal from motion state is changed into stationary state;
If the mobile terminal is changed into stationary state from motion state, extraction first exercise data is performed
Corresponding the First Eigenvalue, and the First Eigenvalue is corresponded to and presets the matched step of roll data in characteristic matching library
Suddenly.
Optionally, if the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal
After the step of being reversed, further include:
The first exercise data corresponding with the First Eigenvalue of the roll data successful match is labeled as number to be trained
According to, and treat training data described in storage;
If being treated described in being stored, training data meets preset condition, treats that training data updates the feature according to
Matching library.
Optionally, if the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal
After the step of being reversed, further include
The first screen before the mobile terminal turn is controlled to be changed into screen state of going out from bright screen state, second after overturning
Screen is changed into bright screen state from screen state of going out.
In addition, to achieve the above object, the present invention also provides a kind of mobile terminal, the mobile terminal include memory,
The mobile terminal turn detection program that processor and being stored in can be run on the memory and on the processor, the shifting
Dynamic terminal overturning detection program realizes the step of mobile terminal turn detection method as described above when being performed by the processor
Suddenly.
In addition, to achieve the above object, it is described computer-readable the present invention also provides a kind of computer readable storage medium
Mobile terminal turn detection program is stored on storage medium, the mobile terminal turn detection program is real when being executed by processor
Now the step of mobile terminal turn detection method as described above.
In the present invention by after acquisition instructions are detected, according to the acquisition instructions, passing through the sensing in mobile terminal
Device acquires the first exercise data during the motion of mobile terminals;Extract the corresponding fisrt feature of first exercise data
Value, and the First Eigenvalue is corresponded to and is matched with presetting the roll data in characteristic matching library;If the First Eigenvalue with
The roll data successful match, it is determined that the mobile terminal is reversed.It is more during motion of mobile terminals by acquiring
Kind exercise data, the characteristic value of exercise data and pre-stored roll data are compared, whether to determine mobile terminal
It is reversed, improves the accuracy rate whether detection mobile terminal is reversed.
Description of the drawings
A kind of Fig. 1 hardware architecture diagrams of terminal of each embodiment to realize the present invention;
Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention;
Fig. 3 is the flow diagram of mobile terminal turn detection method first embodiment of the present invention;
The angular velocity of rotation that Fig. 4 a are acquired by the embodiment of the present invention during mobile terminal turn by gyroscope
The first schematic diagram;
The angular velocity of rotation that Fig. 4 b are acquired by the embodiment of the present invention during mobile terminal turn by gyroscope
Second of schematic diagram;
The angular velocity of rotation that Fig. 4 c are acquired by the embodiment of the present invention during mobile terminal turn by gyroscope
The third schematic diagram;
The angular velocity of rotation that Fig. 4 d are acquired by the embodiment of the present invention during mobile terminal turn by gyroscope
4th kind of schematic diagram;
The magnetic induction intensity that Fig. 5 is acquired by the embodiment of the present invention during mobile terminal turn by geomagnetic sensor
A kind of schematic diagram;
Angular velocity of rotation that Fig. 6 is acquired by the embodiment of the present invention during mobile terminal turn, linear acceleration, again
A kind of schematic diagram of power acceleration and magnetic induction intensity.
Fig. 7 is the flow diagram of mobile terminal turn detection method second embodiment of the present invention;
Fig. 8 is the flow diagram of mobile terminal turn detection method 3rd embodiment of the present invention;
Fig. 9 is the flow diagram of mobile terminal turn detection method fourth embodiment of the present invention;
Figure 10 is the flow diagram of the 5th embodiment of mobile terminal turn detection method of the present invention.
The realization, the function and the advantages of the object of the present invention will be explained with reference to attached drawing in conjunction with the embodiments.
Specific embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
In subsequent description, using for representing that the suffix of such as " module ", " component " or " unit " of element is only
Be conducive to the explanation of the present invention, itself there is no a specific meaning.Therefore, " module ", " component " or " unit " can mix
Ground uses.
Terminal can be implemented in a variety of manners.For example, terminal described in the present invention can include such as mobile phone, tablet
Computer, laptop, palm PC, personal digital assistant (Personal Digital Assistant, PDA), portable
The shiftings such as media player (Portable Media Player, PMP), navigation device, wearable device, Intelligent bracelet, pedometer
The dynamic fixed terminals such as terminal and number TV, desktop computer.
It will be illustrated by taking mobile terminal as an example in subsequent descriptions, it will be appreciated by those skilled in the art that in addition to special
For moving except the element of purpose, construction according to the embodiment of the present invention can also apply to the terminal of fixed type.
Referring to Fig. 1, a kind of hardware architecture diagram of its mobile terminal of each embodiment to realize the present invention, the shifting
Dynamic terminal 100 can include:RF (Radio Frequency, radio frequency) unit 101, WiFi module 102, audio output unit
103rd, A/V (audio/video) input unit 104, sensor 105, display unit 106, user input unit 107, interface unit
108th, the components such as memory 109, processor 110 and power supply 111.It will be understood by those skilled in the art that shown in Fig. 1
Mobile terminal structure does not form the restriction to mobile terminal, and mobile terminal can be included than illustrating more or fewer components,
Either combine certain components or different components arrangement.
The all parts of mobile terminal are specifically introduced with reference to Fig. 1:
Radio frequency unit 101 can be used for receive and send messages or communication process in, signal sends and receivees, specifically, by base station
Downlink information receive after, handled to processor 110;In addition, the data of uplink are sent to base station.In general, radio frequency unit 101
Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier, duplexer etc..In addition, it penetrates
Frequency unit 101 can also communicate with network and other equipment by radio communication.Above-mentioned wireless communication can use any communication
Standard or agreement, including but not limited to GSM (Global System of Mobile communication, global system for mobile telecommunications
System), GPRS (General Packet Radio Service, general packet radio service), CDMA2000 (Code
Division Multiple Access 2000, CDMA 2000), WCDMA (Wideband Code Division
Multiple Access, wideband code division multiple access), TD-SCDMA (Time Division-Synchronous Code
Division Multiple Access, TD SDMA), FDD-LTE (Frequency Division
Duplexing-Long Term Evolution, frequency division duplex long term evolution) and TDD-LTE (Time Division
Duplexing-Long Term Evolution, time division duplex long term evolution) etc..
WiFi belongs to short range wireless transmission technology, and mobile terminal can help user to receive and dispatch electricity by WiFi module 102
Sub- mail, browsing webpage and access streaming video etc., it has provided wireless broadband internet to the user and has accessed.Although Fig. 1 shows
Go out WiFi module 102, but it is understood that, and must be configured into for mobile terminal is not belonging to, it completely can be according to need
It to be omitted in the range for the essence for not changing invention.
Audio output unit 103 can be in call signal reception pattern, call mode, record mould in mobile terminal 100
Formula, speech recognition mode, broadcast reception mode when under isotypes, it is that radio frequency unit 101 or WiFi module 102 are received or
The voice data stored in memory 109 is converted into audio signal and exports as sound.Moreover, audio output unit 103
The relevant audio output of specific function performed with mobile terminal 100 can also be provided (for example, call signal receives sound, disappears
Breath receives sound etc.).Audio output unit 103 can include loud speaker, buzzer etc..
A/V input units 104 are used to receive audio or video signal.A/V input units 104 can include graphics processor
(Graphics Processing Unit, GPU) 1041 and microphone 1042, graphics processor 1041 is in video acquisition mode
Or the static images or the image data of video obtained in image capture mode by image capture apparatus (such as camera) carry out
Reason.Treated, and picture frame may be displayed on display unit 106.Through graphics processor 1041, treated that picture frame can be deposited
Storage is sent in memory 109 (or other storage mediums) or via radio frequency unit 101 or WiFi module 102.Mike
Wind 1042 can connect in telephone calling model, logging mode, speech recognition mode etc. operational mode via microphone 1042
Quiet down sound (voice data), and can be voice data by such acoustic processing.Audio that treated (voice) data can
To be converted to the form output that mobile communication base station can be sent to via radio frequency unit 101 in the case of telephone calling model.
Microphone 1042 can implement various types of noises elimination (or inhibition) algorithms and send and receive sound to eliminate (or inhibition)
The noise generated during frequency signal or interference.
Mobile terminal 100 further includes at least one sensor 105, such as optical sensor, motion sensor and other biographies
Sensor.Specifically, optical sensor includes ambient light sensor and proximity sensor, wherein, ambient light sensor can be according to environment
The light and shade of light adjusts the brightness of display panel 1061, and proximity sensor can close when mobile terminal 100 is moved in one's ear
Display panel 1061 and/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (general
For three axis) size of acceleration, size and the direction of gravity are can detect that when static, can be used to identify the application of mobile phone posture
(such as horizontal/vertical screen switching, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, percussion) etc.;
The fingerprint sensor that can also configure as mobile phone, pressure sensor, iris sensor, molecule sensor, gyroscope, barometer,
The other sensors such as hygrometer, thermometer, infrared ray sensor, details are not described herein.
Display unit 106 is used to show by information input by user or be supplied to the information of user.Display unit 106 can wrap
Display panel 1061 is included, liquid crystal display (Liquid Crystal Display, LCD), Organic Light Emitting Diode may be used
Display panel 1061 is configured in forms such as (Organic Light-Emitting Diode, OLED).
User input unit 107 can be used for receiving the number inputted or character information and generation and the use of mobile terminal
The key signals input that family is set and function control is related.Specifically, user input unit 107 may include touch panel 1071 with
And other input equipments 1072.Touch panel 1071, also referred to as touch screen collect user on it or neighbouring touch operation
(for example user uses any suitable objects such as finger, stylus or attachment on touch panel 1071 or in touch panel 1071
Neighbouring operation), and corresponding attachment device is driven according to preset formula.Touch panel 1071 may include touch detection
Two parts of device and touch controller.Wherein, the touch orientation of touch detecting apparatus detection user, and detect touch operation band
The signal come, transmits a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and by it
Contact coordinate is converted into, then gives processor 110, and the order that processor 110 is sent can be received and performed.It in addition, can
To realize touch panel 1071 using multiple types such as resistance-type, condenser type, infrared ray and surface acoustic waves.In addition to touch panel
1071, user input unit 107 can also include other input equipments 1072.Specifically, other input equipments 1072 can wrap
It includes but is not limited to physical keyboard, in function key (such as volume control button, switch key etc.), trace ball, mouse, operating lever etc.
It is one or more, do not limit herein specifically.
Further, touch panel 1071 can cover display panel 1061, when touch panel 1071 detect on it or
After neighbouring touch operation, processor 110 is sent to determine the type of touch event, is followed by subsequent processing device 110 according to touch thing
The type of part provides corresponding visual output on display panel 1061.Although in Fig. 1, touch panel 1071 and display panel
1061 be the component independent as two to realize the function that outputs and inputs of mobile terminal, but in certain embodiments, it can
The function that outputs and inputs of mobile terminal is realized so that touch panel 1071 and display panel 1061 is integrated, is not done herein specifically
It limits.
Interface unit 108 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) can include wired or wireless head-band earphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for device of the connection with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Interface unit 108 can be used for receiving the input from external device (ED) (for example, number
It is believed that breath, electric power etc.) and the input received is transferred to one or more elements in mobile terminal 100 or can be with
For transmitting data between mobile terminal 100 and external device (ED).
Memory 109 can be used for storage software program and various data.Memory 109 can mainly include storing program area
And storage data field, wherein, storing program area can storage program area, application program (such as the sound needed at least one function
Sound playing function, image player function etc.) etc.;Storage data field can store according to mobile phone use created data (such as
Voice data, phone directory etc.) etc..In addition, memory 109 can include high-speed random access memory, can also include non-easy
The property lost memory, a for example, at least disk memory, flush memory device or other volatile solid-state parts.
Processor 110 is the control centre of mobile terminal, utilizes each of various interfaces and the entire mobile terminal of connection
A part is stored in storage by running or performing the software program being stored in memory 109 and/or module and call
Data in device 109 perform the various functions of mobile terminal and processing data, so as to carry out integral monitoring to mobile terminal.Place
Reason device 110 may include one or more processing units;Preferably, processor 110 can integrate application processor and modulatedemodulate is mediated
Device is managed, wherein, the main processing operation system of application processor, user interface and application program etc., modem processor is main
Processing wireless communication.It is understood that above-mentioned modem processor can not also be integrated into processor 110.
In addition, in mobile terminal 100 shown in Fig. 1, processor 110 is used to call the movement stored in memory 109
Terminal overturning detection program, and perform following operate:
After acquisition instructions are detected, according to the acquisition instructions, by described in the sensor acquisition in mobile terminal 100
The first exercise data in 100 motion process of mobile terminal;
The corresponding the First Eigenvalue of first exercise data is extracted, and the First Eigenvalue is corresponded to and presets feature
Roll data matching in matching library;
If the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal 100 is reversed.
Further, if the First Eigenvalue and the roll data successful match, it is determined that described mobile whole
The step of end 100 is reversed includes:
Determine that the First Eigenvalue corresponds to the similarity between roll data and each with the characteristic matching library
Weight shared by characteristic value;
According to the ratio of the First Eigenvalue described in the corresponding similarity of the First Eigenvalue and the weight calculation
Value;
If the ratio value is more than preset ratio, it is determined that the mobile terminal 100 is reversed.
Further, it is described after acquisition instructions are detected, according to the acquisition instructions, by mobile terminal 100
Before sensor acquires the step of the first exercise data in 100 motion process of mobile terminal, processor 110 is additionally operable to adjust
Program is detected with the mobile terminal turn stored in memory 109, and performs following operate:
The second exercise data in 100 switching process of mobile terminal is obtained by the sensor;
Extract the Second Eigenvalue of second exercise data by neural network, and using the Second Eigenvalue as turning over
Revolution forms characteristic matching library according to storage.
Further, it is described after acquisition instructions are detected, according to the acquisition instructions, by mobile terminal 100
Before sensor acquires the step of the first exercise data in 100 motion process of mobile terminal, processor 110 is additionally operable to adjust
Program is detected with the mobile terminal turn stored in memory 109, and performs following operate:
The first rotational angular velocity of 100 gyroscope of the mobile terminal acquisition is obtained, and determines the first angle of rotation speed
Whether degree increases to the first default angular speed in preset duration;
If first rotational angular velocity increases to the described first default angular speed in the preset duration, it is determined that institute
It states mobile terminal 100 and is changed into motion state from stationary state, trigger the acquisition instructions.
Further, the corresponding the First Eigenvalue of the extraction first exercise data, and by the First Eigenvalue
Before corresponding the step of being matched with the roll data in default characteristic matching library, processor 110 is additionally operable to call in memory 109
The mobile terminal turn detection program of storage, and perform following operate:
First exercise data is filtered, obtains filtered first exercise data.
Further, the corresponding the First Eigenvalue of the extraction first exercise data, and by the First Eigenvalue
Before corresponding the step of being matched with the roll data in default characteristic matching library, processor 110 is additionally operable to call in memory 109
The mobile terminal turn detection program of storage, and perform following operate:
The second rotational angular velocity for stating the acquisition of 100 gyroscope of mobile terminal is obtained, and according to second rotational angular velocity
Determine whether the mobile terminal 100 from motion state is changed into stationary state;
If the mobile terminal 100 is changed into stationary state from motion state, the extraction first movement is performed
The corresponding the First Eigenvalue of data, and the First Eigenvalue correspondence is matched with presetting the roll data in characteristic matching library
Step.
Further, if the First Eigenvalue and the roll data successful match, it is determined that described mobile whole
After the step of end 100 is reversed, processor 110 is additionally operable to call the mobile terminal turn detection journey stored in memory 109
Sequence, and perform following operate:
The first exercise data corresponding with the First Eigenvalue of the roll data successful match is labeled as number to be trained
According to, and treat training data described in storage;
If being treated described in being stored, training data meets preset condition, treats that training data updates the feature according to
Matching library.
Further, if the First Eigenvalue and the roll data successful match, it is determined that described mobile whole
After the step of end 100 is reversed, processor 110 is additionally operable to call the mobile terminal turn detection journey stored in memory 109
Sequence, and perform following operate:
The first screen before the overturning of mobile terminal 100 is controlled to be changed into screen state of going out from bright screen state, after overturning
Second screen is changed into bright screen state from screen state of going out.
Mobile terminal 100 can also include the power supply 111 (such as battery) powered to all parts, it is preferred that power supply 111
Can be logically contiguous by power-supply management system and processor 110, so as to realize management charging by power-supply management system, put
The functions such as electricity and power managed.
Although Fig. 1 is not shown, mobile terminal 100 can also be including bluetooth module etc., and details are not described herein.
For the ease of understanding the embodiment of the present invention, below to the communications network system that is based on of mobile terminal of the present invention into
Row description.
Referring to Fig. 2, Fig. 2 is a kind of communications network system Organization Chart provided in an embodiment of the present invention, the communication network system
The LTE system united as universal mobile communications technology, the LTE system include the UE (User Equipment, the use that communicate connection successively
Family equipment) 201, E-UTRAN (Evolved UMTS Terrestrial Radio Access Network, evolved UMTS lands
Ground wireless access network) 202, EPC (Evolved Packet Core, evolved packet-based core networks) 203 and operator IP operation
204。
Specifically, UE201 can be above-mentioned mobile terminal 100, and details are not described herein again.
E-UTRAN202 includes eNodeB2021 and other eNodeB2022 etc..Wherein, eNodeB2021 can be by returning
Journey (backhaul) (such as X2 interface) is connect with other eNodeB2022, and eNodeB2021 is connected to EPC203,
ENodeB2021 can provide the access of UE201 to EPC203.
EPC203 can include MME (Mobility Management Entity, mobility management entity) 2031, HSS
(Home Subscriber Server, home subscriber server) 2032, other MME2033, SGW (Serving Gate Way,
Gateway) 2034, PGW (PDN Gate Way, grouped data network gateway) 2035 and PCRF (Policy and
Charging Rules Function, policy and rate functional entity) 2036 etc..Wherein, MME2031 be processing UE201 and
The control node of signaling, provides carrying and connection management between EPC203.HSS2032 is all to manage for providing some registers
Such as the function of home location register (not shown) etc, and some are preserved in relation to use such as service features, data rates
The dedicated information in family.All customer data can be sent by SGW2034, and PGW2035 can provide the IP of UE 201
Address is distributed and other functions, and PCRF2036 is business data flow and the strategy of IP bearing resources and charging control strategic decision-making
Point, it selects and provides available strategy and charging control decision with charge execution function unit (not shown) for strategy.
IP operation 204 can include internet, Intranet, IMS (IP Multimedia Subsystem, IP multimedia
System) or other IP operations etc..
Although above-mentioned be described by taking LTE system as an example, those skilled in the art it is to be understood that the present invention not only
Suitable for LTE system, be readily applicable to other wireless communication systems, such as GSM, CDMA2000, WCDMA, TD-SCDMA with
And following new network system etc., it does not limit herein.
Based on above-mentioned terminal hardware structure and communications network system, mobile terminal turn detection method of the present invention is proposed
Each embodiment.
The present invention provides a kind of mobile terminal turn detection method.
With reference to Fig. 3, Fig. 3 is the flow diagram of mobile terminal turn detection method preferred embodiment of the present invention.
In the present embodiment, the embodiment of mobile terminal turn detection method is provided, it should be noted that although flowing
Logical order is shown in journey figure, but in some cases, can be performed with the sequence being different from herein shown or described by
The step of.
In the present embodiment, mobile terminal turn detection method is optional is applied in mobile terminal, mobile terminal turn inspection
Survey method includes:
Step S10 after acquisition instructions are detected, according to acquisition instructions, is acquired by the sensor in mobile terminal and moved
The first exercise data in dynamic terminal motion process.
When mobile terminal detect acquire its motion process in the first exercise data acquisition instructions after, mobile terminal according to
This acquisition instructions acquires the first exercise data in its motion process by built-in sensor.In the present embodiment, acquisition refers to
Order can in real time be triggered by mobile terminal, and the sample frequency that mobile terminal acquires the first exercise data can be set according to specific needs
It puts, is such as set as 50hz (hertz) or 100hz etc..Mobile terminal is built-in with acceleration transducer, gravity sensor, gyro
Instrument and geomagnetic sensor.At the end of first exercise data is moved for mobile terminal from being put at the beginning of setting in motion to terminating
Between put the data acquired in this period, the first exercise data includes linear acceleration, acceleration of gravity, angular velocity of rotation
And magnetic induction intensity.Specifically, mobile terminal can acquire the linear acceleration in its motion process by acceleration transducer, lead to
It crosses gravity sensor and acquires acceleration of gravity in its motion process, the rotation angle speed in its motion process is acquired by gyroscope
It spends and the magnetic induction intensity in its motion process is acquired by geomagnetic sensor.
Gravity sensor mainly measures the acceleration caused by gravity, can calculate mobile terminal with respect to the horizontal plane
Angle of inclination.Therefore, it can determine that user holds the posture of mobile terminal by gravity sensor, that is, determine that user is sidewards
Hold mobile terminal or endways gripping mobile terminal.Gyroscope in mobile terminal is also known as angular-rate sensor, is different
In accelerometer (G-sensor), the rotational angular velocity when physical quantity that gyroscope measures is mobile terminal deflection, inclination is single
Position is rad/s (Radian per second).Geomagnetic sensor is mainly used for the magnetic induction intensity around sensing, can indicate mobile terminal institute
The direction at place, such as compass, unit are uT (micro- tesla).The linear acceleration acquired by acceleration transducer is row
In addition to the value obtained by gravity effect, mobile terminal can be detected by linear acceleration and remain static or locate
In the state of accelerated motion.
In the present embodiment, mobile terminal can establish three-dimensional system of coordinate, adopt respectively during the first exercise data is acquired
Collect the first exercise data of X-axis, Y-axis and Z axis in three-dimensional system of coordinate.Wherein, the origin of the three-dimensional system of coordinate can be mobile terminal
The vertex in the upper left corner, the vertex in the lower right corner or select original of the point as three-dimensional system of coordinate in mobile terminal other positions
Point.In the terminal, the long side of mobile terminal is Y-axis, and short side is X-axis, and Z axis is perpendicular to X-axis and Y-axis, and the positive direction of Z axis
Downwards.
Step S20, the corresponding the First Eigenvalue of the first exercise data of extraction, and the First Eigenvalue is corresponded to and presets feature
Roll data matching in matching library.
After mobile terminal collects the first exercise data, the corresponding the First Eigenvalue of the first exercise data of extraction, and will
The First Eigenvalue extracted is matched with the roll data in the characteristic matching library pre-set.Wherein, the First Eigenvalue packet
It includes but is not limited to linear acceleration, acceleration of gravity, angular velocity of rotation and the corresponding maximum value of magnetic induction intensity, minimum value, pole
Value, intermediate value, mode, standard variance, wave crest number, variation tendency and in some period between each sensor institute gathered data
Opposite variation tendency.Form of the wave crest number for the data acquired during motion of mobile terminals to be retouched to line by drawing point
After showing, the wave crest quantity of homologous thread, specifically, with reference to Fig. 4 a.Variation tendency is some data in some period
It is in rising trend or on a declining curve.Opposite variation tendency in some period between each sensor institute gathered data
For in some period, the opposite variation between linear acceleration, acceleration of gravity, angular velocity of rotation and magnetic induction intensity becomes
Gesture.
Roll data includes but not limited to linear acceleration, acceleration of gravity, angular velocity of rotation and magnetic induction intensity and corresponds to
Maximum value, minimum value, extreme value, intermediate value, mode, standard variance, wave crest number, variation tendency and each biography in some period
Opposite variation tendency between sensor institute gathered data.Mobile terminal corresponds to the First Eigenvalue with overturning number in characteristic matching library
It is Corresponding matching according to matched process, i.e., will linearly adds in the maximum value and roll data of the first exercise data linear acceleration
The maximum value matching of speed, in the first exercise data in the mode of angular velocity of rotation and roll data angular velocity of rotation mode
With etc..
Step S30, if the First Eigenvalue and roll data successful match, it is determined that mobile terminal is reversed.
After mobile terminal matches the First Eigenvalue correspondence with presetting the roll data in characteristic matching library, first is judged
Characteristic value and roll data whether successful match.It is mobile if mobile terminal determines the First Eigenvalue and roll data successful match
Terminal then determines that it has been reversed.Further, if mobile terminal determines the First Eigenvalue, it fails to match with roll data, mobile
Terminal then determines that it is not reversed.
Further, step S30 includes:
Step a determines that the First Eigenvalue corresponds to similarity and each spy between roll data with characteristic matching library
Weight shared by value indicative.
Step b, according to the corresponding similarity of the First Eigenvalue and the ratio value of weight calculation the First Eigenvalue.
Step c, if ratio value is more than preset ratio, it is determined that mobile terminal is reversed.
Further, mobile terminal determines that the First Eigenvalue and the process of roll data successful match are:Mobile terminal is true
Determine the similarity between corresponding roll data and the power shared by each characteristic value in the First Eigenvalue and characteristic matching library
Weight, and according to the ratio value of the similarity and weight calculation of the First Eigenvalue the First Eigenvalue.After ratio value is calculated, move
Dynamic terminal judges whether the ratio value is more than preset ratio.If the ratio value is more than preset ratio, mobile terminal determines first
Characteristic value and roll data successful match.Further, if the ratio value is less than or equal to preset ratio, mobile terminal is true
Determining the First Eigenvalue, it fails to match with roll data.Wherein, preset ratio can be set according to specific needs, such as may be configured as
80% or it is set as 85% etc..
In order to make it easy to understand, with linear acceleration, acceleration of gravity, angular velocity of rotation and the corresponding maximum of magnetic induction intensity
Value illustrates the process for calculating ratio value.If the maximum value of the linear acceleration of the first exercise data is A1, acceleration of gravity
Maximum value for B1, the maximum value of angular velocity of rotation is C1, and the maximum value of magnetic induction intensity is D1;The linear acceleration of roll data
The maximum value of degree is a1, and the maximum value of acceleration of gravity is b1, and the maximum value of angular velocity of rotation is c1, the maximum of magnetic induction intensity
It is worth for d1;Weight between linear acceleration, acceleration of gravity, angular velocity of rotation and magnetic induction intensity is m:n:p:q.Then calculate
The process of first exercise data linear acceleration maximum value and roll data linear acceleration maximum value similarity is:Calculate A1 and
Difference between a1, will calculate gained difference divided by a1, obtain quotient, by the quotient be converted into the form of percentage to get
To corresponding similarity.The calculating process of similarity and the first exercise data linear acceleration of calculating are maximum between other data
Value is consistent with roll data linear acceleration maximum value similarity, and details are not described herein.
If calculating similarity between A1 and a1 as Aa, the similarity between B1 and b1 is Bb, the phase between C1 and c1
It is Cc like degree, the similarity between D1 and d1 is Dd, then the process for calculating maximum value ratio value is:Aa×m+Bb×n+Cc×p+
Dd×q.The process for calculating other ratio values is consistent with the process for calculating maximum value ratio value, and details are not described herein.
In the present embodiment, it may be configured as only when the ratio value of all the First Eigenvalues is both greater than preset ratio,
It can confirm the First Eigenvalue and roll data successful match.
Further, in other embodiments, can also limit the similarity of any feature value will be more than default similarity,
I.e. Aa, Bb, Cc and Dd will be more than default similarity, and when all proportions value is both greater than preset ratio, just can determine whether the first spy
Value indicative and roll data successful match, otherwise it is assumed that the First Eigenvalue is with roll data, it fails to match.
Further, in other embodiments, the ratio value more than preset ratio obtained by calculating can be also limited to be greater than
During the certain proportion of calculated ratio value number, the First Eigenvalue and roll data successful match are just determined, such as when calculating 10
A ratio value then only when at least eight ratio value is both greater than preset ratio, just determines that the First Eigenvalue is matched with roll data
Success.
Further, in other embodiments, the similarity that may be arranged as fraction the First Eigenvalue is greater than
Default similarity, and the ratio value more than preset ratio for calculating gained is greater than certain ratio of calculated ratio value number
Example just determines the First Eigenvalue and roll data successful match.Such as when there are during 10 characteristic values, at least seven feature can be set
The similarity of value is greater than default similarity, then when at least eight ratio value is both greater than preset ratio, just determine the First Eigenvalue with
Roll data successful match.
Specifically, with reference to Fig. 4 a, Fig. 4 b, Fig. 4 c and Fig. 4 d, in Fig. 4 a, Fig. 4 b, Fig. 4 c and Fig. 4 d, " 4 " represent to pass through
Gyroscope collected X-axis angular velocity of rotation, " 5 " represent by gyroscope collected Y-axis angular velocity of rotation,
" 6 " represent by gyroscope collected Z axis angular velocity of rotation.By Fig. 4 a, Fig. 4 b, Fig. 4 c and Fig. 4 d is it is found that when rotation
When the wave crest of angular speed is more than 4, under normal circumstances, there are one big wave crests, and the extreme value of angular velocity of rotation appears in the wave
In peak.In Figure 5, " 1 " represents to collect the magnetic induction intensity of X-axis by geomagnetic sensor, and " 2 " represent to sense by earth magnetism
Device collected Y-axis magnetic induction intensity, " 3 " represent by geomagnetic sensor collected Z axis magnetic induction intensity.
In Fig. 6, " 7 " represent to collect the acceleration of gravity of X-axis by gravity sensor, and " 8 " represent to be adopted by gravity sensor
The acceleration of gravity of the Y-axis collected, " 9 " represent by gravity sensor collected Z axis acceleration of gravity." 10 " represent
The linear acceleration of X-axis is collected by acceleration transducer, " 11 " are represented through the collected Y-axis of acceleration transducer institute
Linear acceleration, " 12 " represent by acceleration transducer collected Z axis linear acceleration.By Fig. 4 a, Fig. 4 b,
Fig. 4 c, Fig. 4 d, Fig. 5 and Fig. 6 can distinguish rotation of mobile terminal angle it is found that after mobile terminal is reversed by neural network
Speed, magnetic induction intensity, acceleration of gravity and linear acceleration.
Further, mobile terminal turn detection method further includes:
Step d controls the first screen before mobile terminal turn to be changed into screen state of going out from bright screen state, and the after overturning
Two screens are changed into bright screen state from screen state of going out.
After mobile terminal determines that it is reversed, mobile terminal controls its first screen to be changed into the screen shape that goes out from bright screen state
State, and its second screen is controlled to be changed into bright screen state from screen state of going out.I.e. when mobile terminal is reversed, switch to show
Screen.Wherein, the first screen is to be used for display, the screen in bright screen state, the second screen before mobile terminal turn
Before mobile terminal turn, the screen in screen state of going out.It is understood that in the present embodiment, mobile terminal is double-sided screen
Mobile terminal.It is mobile if user overturns mobile terminal such as when user is during mobile terminal front screen viewing video is used
Terminal then can control front screen to be in screen state of going out, and reverse side screen is in bright screen state, and the video that front screen is played
It is transformed into reverse side screen and plays;Or during user watches video with mobile terminal front screen, if mobile terminal connects
A wechat message is received, user overturns mobile terminal at this time, and mobile terminal can then suspend the video that front screen is played, and
Front screen is made to be in screen state of going out, reverse side screen is made to be in bright screen state, wechat message is included in reverse side screen.It realizes
After user overturns mobile terminal, automated intelligent controls the first screen to be in screen state of going out, and the second screen of control is in bright screen
State.
The present embodiment by the sensor in mobile terminal by after acquisition instructions are detected, according to acquisition instructions, being adopted
Collect the first exercise data during motion of mobile terminals;Extract the corresponding the First Eigenvalue of the first exercise data, and by first
Characteristic value correspondence is matched with presetting the roll data in characteristic matching library;If the First Eigenvalue and roll data successful match,
Determine that mobile terminal is reversed.By acquiring the multi-motion data during motion of mobile terminals, by the feature of exercise data
Value is compared with pre-stored roll data, and to determine whether mobile terminal is reversed, improving detection mobile terminal is
The no accuracy rate being reversed.
Further, the second embodiment of mobile terminal turn detection method of the present invention is proposed based on first embodiment.It moves
Difference lies in ginsengs with the first embodiment of mobile terminal turn detection method for the second embodiment of dynamic terminal overturning detection method
According to Fig. 7, mobile terminal turn detection method further includes:
Step S40 obtains the second exercise data during mobile terminal turn by sensor.
Mobile terminal obtains the second exercise data in its switching process by its built-in sensors.Specifically, the second fortune
Dynamic data include linear acceleration, acceleration of gravity, angular velocity of rotation and magnetic induction intensity.Mobile terminal can be passed by acceleration
Sensor acquires the linear acceleration in its motion process, and the acceleration of gravity in its motion process is acquired by gravity sensor,
Angular velocity of rotation in its motion process is acquired by gyroscope and the magnetic in its motion process is acquired by geomagnetic sensor
Induction.
Further, when acquisition for mobile terminal to the second exercise data, the second exercise data can be filtered, with
Obtain filtered second exercise data.
Step S50 extracts the Second Eigenvalue of the second exercise data by neural network, and using Second Eigenvalue as turning over
Revolution forms characteristic matching library according to storage.
After acquisition for mobile terminal is to the second exercise data, mobile terminal extracts the second exercise data pair by neural network
The Second Eigenvalue answered, and stored Second Eigenvalue as roll data, to form characteristic matching library.Wherein, second feature
Value includes but not limited to linear acceleration, acceleration of gravity, angular velocity of rotation and the corresponding maximum value of magnetic induction intensity, minimum
Value, extreme value, intermediate value, mode, standard variance, wave crest number, variation tendency and each sensor acquires number in some period
Opposite variation tendency between.Artificial neural network (Artificial Neural Networks, be abbreviated as ANNs) is also simple
Referred to as neural network (NNs) or make link model (Connection Model), it is a kind of imitation animal nerve network row
It is characterized, carries out the algorithm mathematics model of distributed parallel information processing.
The present embodiment extracts exercise data by the exercise data during acquiring mobile terminal turn by neural network
Characteristic value, to form characteristic matching library, during whether being reversed in subsequent detection mobile terminal, directly acquire movement number
It is matched according to characteristic matching library, improve the accuracy rate that whether is reversed of detection mobile terminal and improves inspection
Survey the detection efficiency whether mobile terminal is reversed.
Further, mobile terminal turn detection method further includes:
The first exercise data corresponding with the First Eigenvalue of roll data successful match is labeled as waiting to train by step e
Data, and store and treat training data.
Step f, if what is stored treats that training data meets preset condition, basis treats that training data updates characteristic matching
Library.
Further, after mobile terminal determines that it is reversed by the characteristic value of the first exercise data, mobile terminal will
The first exercise data corresponding with the First Eigenvalue of roll data successful match is labeled as treating training data, and store this and wait to instruct
Practice data.After mobile terminal stores this after training data, it is pre- that mobile terminal judgement was stored treats whether training data meets
If condition.If what mobile terminal was stored treat, training data meets preset condition, and mobile terminal is by neural network, according to treating
Training data update characteristic matching library, to improve the accuracy for detecting mobile terminal by characteristic matching library and whether being reversed.If
What mobile terminal was stored treats that training data does not meet preset condition, and mobile terminal then continues to judge that is stored treats training data
Whether preset condition is met.
Wherein, judge that the first method whether training data meets preset condition for the treatment of stored can be:Record storage
First initial time for treating training data and acquisition current time, calculate the time between current time and initial time
Difference.If it is poor that the time difference is more than preset time, it is determined that is stored treats that training data meets preset condition;If the time difference is small
In or equal to preset time it is poor, it is determined that is stored treats that training data does not meet preset condition.Wherein, preset time difference can
It sets, such as could be provided as 10 days or 20 days etc. according to specific needs.
Judging the second method whether training data meets preset condition for the treatment of that is stored can be:What calculating was stored treats
The quantity of training data, and judge whether stored quantity is more than preset quantity;If the quantity stored is more than preset quantity,
Then determine that is stored treats that training data meets preset condition;If the quantity stored is less than or equal to preset quantity, really
That determines to be stored treats that training data does not meet preset condition.Wherein, preset quantity can be set according to specific needs, can such as be set
It is set to 50 or is set as 100 etc..It should be noted that the first exercise data once acquired is a data, i.e., at one
In data, include angular velocity of rotation, acceleration of gravity, linear acceleration and magnetic induction intensity.
Further, the 3rd embodiment of mobile terminal turn detection method of the present invention is proposed.Mobile terminal turn detects
Difference lies in reference to Fig. 8, move the 3rd embodiment of method with the first or second embodiments of mobile terminal turn detection method
Dynamic terminal overturning detection method further includes:
Step S60 obtains the first rotational angular velocity of mobile terminal gyroscope acquisition, and determines that the first rotational angular velocity is
It is no that the first default angular speed is increased in preset duration.
Step S70, if the first rotational angular velocity increases to the first default angular speed in preset duration, it is determined that mobile whole
End is changed into motion state, triggering collection instruction from stationary state.
First rotational angular velocity of acquisition for mobile terminal gyroscope acquisition, and judge the first rotational angular velocity whether default
The first default angular speed is increased in duration.If the first rotational angular velocity increases to the first default angular speed in preset duration, move
Dynamic terminal then confirms that it is changed into motion state from stationary state.When mobile terminal confirms that it is changed into movement shape from stationary state
After state, the acquisition instructions of the first exercise data of mobile terminal triggering collection.Wherein, the first default angular speed can be as the case may be
And set, 320rad/s (Radian per second) is such as may be configured as, preset duration can also be set according to specific needs, such as may be configured as
2 seconds.
Further, if the first rotational angular velocity does not increase to the first default angular speed, mobile terminal in preset duration
Continue to obtain the first rotational angular velocity that gyroscope acquires.
Further, after acquisition for mobile terminal is to the first rotational angular velocity, first the first rotational angular velocity can be filtered
Whether wave processing, obtains filtered first rotational angular velocity, then judge filtered first rotational angular velocity default again
The first default angular speed is increased in duration.
The present embodiment by according to the rotational angular velocity that gyroscope acquires judge mobile terminal whether from stationary state change
For motion state, after mobile terminal is changed into motion state from stationary state, triggering collection instruction avoids mobile terminal
All the sensors are constantly in the state of gathered data, reduce detection mobile terminal whether the power consumption in switching process.
Further, the fourth embodiment of mobile terminal turn detection method of the present invention is proposed.Mobile terminal turn detects
Difference lies in references with first, second or third embodiment of mobile terminal turn detection method for the fourth embodiment of method
Fig. 9, mobile terminal turn detection method further include:
Step S80 is filtered the first exercise data, obtains filtered first exercise data.
After mobile terminal collects the first exercise data, mobile terminal is filtered the first exercise data, obtains
To filtered first exercise data, to extract the corresponding the First Eigenvalue of filtered first exercise data.Wherein, to first
The filtering method that exercise data is filtered includes but not limited to limit filtration method, median filtering method, digital averaging filtering
Method and amplitude limit average filter method.
The present embodiment is by being filtered the first exercise data acquired, to extract filtered first movement
The corresponding the First Eigenvalue of data reduces influence of the environmental factor to the first exercise data, whether to improve detection mobile terminal
The accuracy rate being reversed.
Further, the 5th embodiment of mobile terminal turn detection method of the present invention is proposed.Mobile terminal turn detects
The fourth embodiment of method and first, second, third or fourth embodiment of mobile terminal turn detection method difference lies in,
With reference to Figure 10, mobile terminal turn detection method further includes:
Step S90 obtains the second rotational angular velocity for stating the acquisition of mobile terminal gyroscope, and according to the second rotational angular velocity
Determine whether mobile terminal from motion state is changed into stationary state.
If mobile terminal is changed into stationary state from motion state, step S20 is performed.
After mobile terminal collects the first exercise data, mobile terminal stores the first exercise data acquired to pre-
It in the array first set or stores into buffer queue, and passes through its gyroscope and acquire the second rotational angular velocity.Work as movement
After terminal gets collected second rotational angular velocity of gyroscope, mobile terminal determines that it is current according to the second rotational angular velocity
Whether from motion state stationary state is changed into.If mobile terminal determines that it changes from motion state according to the second rotational angular velocity
For stationary state, then extract the corresponding the First Eigenvalue of the first exercise data, and the First Eigenvalue is corresponded to and presets feature
With the roll data matching in library.
Further, if mobile terminal determines that it is never changed into static shape from motion state according to the second rotational angular velocity
State, mobile terminal then determine that it is currently at motion state.
Further, step S90 includes:
Step h, obtains the second rotational angular velocity of mobile terminal gyroscope acquisition, and whether judges the second rotational angular velocity
Less than the second default angular speed.
Step i, if the second rotational angular velocity is less than the second default angular speed, it is determined that mobile terminal changes from motion state
For stationary state.
Step j, if the second rotational angular velocity is more than or equal to the second default angular speed, it is determined that mobile terminal is in fortune
Dynamic state.
Further, the second rotational angular velocity of acquisition for mobile terminal gyroscope acquisition, and according to the second rotational angular velocity
The process for determining if to be changed into stationary state from motion state is:After acquisition for mobile terminal is to the second rotational angular velocity,
Mobile terminal judges whether the second rotational angular velocity is less than the second default angular speed.It is default that if the second rotational angular velocity is less than second
Angular speed, mobile terminal then determine that it is changed into stationary state from motion state;If the second rotational angular velocity is more than or equal to
Second default angular speed, mobile terminal then determine that it is kept in motion.Wherein, the second default angular speed can be as the case may be
And set, it is not limited herein.
Further, it is to be understood that in mobile terminal during motion state is changed into stationary state, second turn
Dynamic angular speed is gradually reduced.Therefore, it is changed into the accurate of stationary state from motion state to improve determining mobile terminal
Degree, mobile terminal can determine whether the second rotational angular velocity is decreased to less than the second default angular speed in preset time.If the
Two rotational angular velocities are decreased to less than the second default angular speed in preset time, and mobile terminal then determines that it turns from motion state
Become stationary state;If the second rotational angular velocity is not decreased to less than the second default angular speed, mobile terminal in preset time
Then determine that it is kept in motion.Wherein, preset time can be set according to specific needs, such as could be provided as 1 second or 2
Second etc..
The present embodiment determines that mobile terminal changes from motion state by the second rotational angular velocity that gyroscope is acquired
For the time point of stationary state, that is, the end time point of motion of mobile terminals is determined, to ensure to detect whether mobile terminal is turned over
The first exercise data turned is the exercise data in the entire motion process of mobile terminal, to improve whether detection mobile terminal is turned over
The accuracy rate turned.
In addition, the embodiment of the present invention also proposes a kind of computer readable storage medium.
Mobile terminal turn detection program, the mobile terminal turn inspection are stored on the computer readable storage medium
The step of mobile terminal turn detection method is realized when ranging sequence is executed by processor.
Computer readable storage medium specific embodiment of the present invention is respectively implemented with above-mentioned mobile terminal turn detection method
Example is essentially identical, and details are not described herein.
It should be noted that herein, term " comprising ", "comprising" or its any other variant are intended to non-row
His property includes, so that process, method, article or system including a series of elements not only include those elements, and
And it further includes the other elements being not explicitly listed or further includes intrinsic for this process, method, article or system institute
Element.In the absence of more restrictions, the element limited by sentence "including a ...", it is not excluded that including this
Also there are other identical elements in the process of element, method, article or system.
The embodiments of the present invention are for illustration only, do not represent the quality of embodiment.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side
Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases
The former is more preferably embodiment.Based on such understanding, technical scheme of the present invention substantially in other words does the prior art
Going out the part of contribution can be embodied in the form of software product, which is stored in a storage medium
In (such as ROM/RAM, magnetic disc, CD), used including some instructions so that a station terminal equipment (can be mobile phone, computer takes
Be engaged in device, air conditioner or the network equipment etc.) perform method described in each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair
The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made directly or indirectly is used in other relevant skills
Art field, is included within the scope of the present invention.
Claims (10)
1. a kind of mobile terminal turn detection method, which is characterized in that the mobile terminal turn detection method includes:
After acquisition instructions are detected, according to the acquisition instructions, acquired by the sensor in mobile terminal described mobile whole
The first exercise data during end motion;
The corresponding the First Eigenvalue of first exercise data is extracted, and the First Eigenvalue is corresponded to and presets characteristic matching
Roll data matching in library;
If the First Eigenvalue and the roll data successful match, it is determined that the mobile terminal is reversed.
2. mobile terminal turn detection method as described in claim 1, which is characterized in that if the First Eigenvalue with
The roll data successful match, it is determined that the step of mobile terminal is reversed includes:
Determine that the First Eigenvalue corresponds to similarity and each feature between roll data with the characteristic matching library
The shared weight of value;
According to the ratio value of the First Eigenvalue described in the corresponding similarity of the First Eigenvalue and the weight calculation;
If the ratio value is more than preset ratio, it is determined that the mobile terminal is reversed.
3. mobile terminal turn detection method as described in claim 1, which is characterized in that described to detect acquisition instructions
Afterwards, according to the acquisition instructions, the first fortune during the motion of mobile terminals is acquired by the sensor in mobile terminal
Before the step of dynamic data, further include:
The second exercise data during the mobile terminal turn is obtained by the sensor;
The Second Eigenvalue of second exercise data is extracted by neural network, and using the Second Eigenvalue as overturning number
According to storage, characteristic matching library is formed.
4. mobile terminal turn detection method as described in claim 1, which is characterized in that described to detect acquisition instructions
Afterwards, according to the acquisition instructions, the first fortune during the motion of mobile terminals is acquired by the sensor in mobile terminal
Before the step of dynamic data, further include:
Obtain the first rotational angular velocity of mobile terminal gyroscope acquisition, and determine first rotational angular velocity whether
The first default angular speed is increased in preset duration;
If first rotational angular velocity increases to the described first default angular speed in the preset duration, it is determined that the shifting
Dynamic terminal is changed into motion state from stationary state, triggers the acquisition instructions.
5. mobile terminal turn detection method as described in claim 1, which is characterized in that extraction the first movement number
It corresponds to according to corresponding the First Eigenvalue, and by the First Eigenvalue and presets the matched step of roll data in characteristic matching library
Before rapid, further include:
First exercise data is filtered, obtains filtered first exercise data.
6. mobile terminal turn detection method as described in claim 1, which is characterized in that extraction the first movement number
It corresponds to according to corresponding the First Eigenvalue, and by the First Eigenvalue and presets the matched step of roll data in characteristic matching library
Before rapid, further include:
The second rotational angular velocity for stating the acquisition of mobile terminal gyroscope is obtained, and according to determining second rotational angular velocity
Whether mobile terminal from motion state is changed into stationary state;
If the mobile terminal is changed into stationary state from motion state, performs extraction first exercise data and correspond to
The First Eigenvalue, and by the First Eigenvalue correspond to presetting the step of roll data in characteristic matching library matches.
7. such as claim 1 to 6 any one of them mobile terminal turn detection method, which is characterized in that if described the
One characteristic value and the roll data successful match, it is determined that after the step of mobile terminal is reversed, further include:
The first exercise data corresponding with the First Eigenvalue of the roll data successful match is labeled as to treat training data, and
Training data is treated described in storage;
If being treated described in being stored, training data meets preset condition, treats that training data updates the characteristic matching according to
Library.
8. such as claim 1 to 6 any one of them mobile terminal turn detection method, which is characterized in that if described the
One characteristic value and the roll data successful match, it is determined that after the step of mobile terminal is reversed, further include
The first screen before the mobile terminal turn is controlled to be changed into screen state of going out from bright screen state, the second screen after overturning
It is changed into bright screen state from screen state of going out.
9. a kind of mobile terminal, which is characterized in that the mobile terminal includes memory, processor and is stored in the memory
Mobile terminal turn detection program that is upper and can running on the processor, the mobile terminal turn detection program are described
It is realized when processor performs such as the step of mobile terminal turn detection method described in any item of the claim 1 to 8.
10. a kind of computer readable storage medium, which is characterized in that be stored on the computer readable storage medium mobile whole
End overturning detection program, the mobile terminal turn detection program are realized when being executed by processor as any in claim 1 to 8
Described in mobile terminal turn detection method the step of.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711472471.2A CN108205378A (en) | 2017-12-28 | 2017-12-28 | Mobile terminal turn detection method, mobile terminal and computer readable storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201711472471.2A CN108205378A (en) | 2017-12-28 | 2017-12-28 | Mobile terminal turn detection method, mobile terminal and computer readable storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
CN108205378A true CN108205378A (en) | 2018-06-26 |
Family
ID=62606012
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201711472471.2A Pending CN108205378A (en) | 2017-12-28 | 2017-12-28 | Mobile terminal turn detection method, mobile terminal and computer readable storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108205378A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918006A (en) * | 2019-01-28 | 2019-06-21 | 维沃移动通信有限公司 | A kind of screen control method and mobile terminal |
Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103631494A (en) * | 2013-11-15 | 2014-03-12 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103701991A (en) * | 2013-12-20 | 2014-04-02 | 百度在线网络技术(北京)有限公司 | Mobile terminal state recognition method and mobile terminal |
CN103917940A (en) * | 2011-11-09 | 2014-07-09 | 三星电子株式会社 | Method for controlling rotation of screen and terminal and touch system supporting the same |
CN105915707A (en) * | 2016-04-08 | 2016-08-31 | 上海卓易科技股份有限公司 | Method and device for illuminating screen |
CN106020670A (en) * | 2016-05-24 | 2016-10-12 | 北京搜狗科技发展有限公司 | Screen lightening control method, device and electronic equipment |
CN106155476A (en) * | 2016-06-21 | 2016-11-23 | 努比亚技术有限公司 | Mobile terminal and screen content changing method |
CN107045421A (en) * | 2017-04-27 | 2017-08-15 | 宇龙计算机通信科技(深圳)有限公司 | Screen switching and mobile terminal |
CN107454254A (en) * | 2017-07-26 | 2017-12-08 | 青岛海信移动通信技术股份有限公司 | Double screen terminal notification information processing method and double screen terminal |
-
2017
- 2017-12-28 CN CN201711472471.2A patent/CN108205378A/en active Pending
Patent Citations (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN103917940A (en) * | 2011-11-09 | 2014-07-09 | 三星电子株式会社 | Method for controlling rotation of screen and terminal and touch system supporting the same |
CN103631494A (en) * | 2013-11-15 | 2014-03-12 | 联想(北京)有限公司 | Information processing method and electronic equipment |
CN103701991A (en) * | 2013-12-20 | 2014-04-02 | 百度在线网络技术(北京)有限公司 | Mobile terminal state recognition method and mobile terminal |
CN105915707A (en) * | 2016-04-08 | 2016-08-31 | 上海卓易科技股份有限公司 | Method and device for illuminating screen |
CN106020670A (en) * | 2016-05-24 | 2016-10-12 | 北京搜狗科技发展有限公司 | Screen lightening control method, device and electronic equipment |
CN106155476A (en) * | 2016-06-21 | 2016-11-23 | 努比亚技术有限公司 | Mobile terminal and screen content changing method |
CN107045421A (en) * | 2017-04-27 | 2017-08-15 | 宇龙计算机通信科技(深圳)有限公司 | Screen switching and mobile terminal |
CN107454254A (en) * | 2017-07-26 | 2017-12-08 | 青岛海信移动通信技术股份有限公司 | Double screen terminal notification information processing method and double screen terminal |
Non-Patent Citations (1)
Title |
---|
袁冠 张艳梅: "《移动对象轨迹数据挖掘技术》", 30 November 2016 * |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109918006A (en) * | 2019-01-28 | 2019-06-21 | 维沃移动通信有限公司 | A kind of screen control method and mobile terminal |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109639879A (en) | Control method for screen display, collapsible terminal and computer readable storage medium | |
CN108566479A (en) | screen state control method, mobile terminal and computer readable storage medium | |
CN108319338A (en) | Display screen determines method, mobile terminal and computer readable storage medium | |
CN107707729A (en) | A kind of terminal go out screen or bright screen method, terminal and computer-readable recording medium | |
CN109634542A (en) | A kind of switching display control method, terminal and computer readable storage medium | |
CN108345426A (en) | A kind of terminal control method, terminal and computer readable storage medium | |
CN108172161A (en) | Display methods, mobile terminal and computer readable storage medium based on flexible screen | |
CN109218527A (en) | screen brightness control method, mobile terminal and computer readable storage medium | |
CN109358831A (en) | A kind of display control method, mobile terminal and computer readable storage medium | |
CN109471571A (en) | Display methods, mobile terminal and the computer readable storage medium of suspension control | |
CN108536382A (en) | A kind of content display method, wearable terminal and storage medium | |
CN108363455A (en) | Working mode switching method, mobile terminal and computer readable storage medium | |
CN108512991A (en) | A kind of based reminding method, mobile terminal and computer readable storage medium | |
CN108881635A (en) | Screen luminance adjustment method, mobile terminal and computer readable storage medium | |
CN109040808A (en) | A kind of video interactive regulation method, equipment and computer readable storage medium | |
CN109908578A (en) | A kind of game seismaesthesia control method, terminal and computer readable storage medium | |
CN108449513A (en) | A kind of interaction regulation and control method, equipment and computer readable storage medium | |
CN108319487A (en) | Image display method, mobile terminal and computer readable storage medium | |
CN110134471A (en) | A kind of screens switch animation control methods, terminal and computer readable storage medium | |
CN109660654A (en) | A kind of eyeshield based reminding method, flexible screen terminal and computer readable storage medium | |
CN109276881A (en) | A kind of game control method, equipment | |
CN108600325A (en) | A kind of determination method, server and the computer readable storage medium of push content | |
CN110064196A (en) | Method for controlling mobile terminal, mobile terminal and computer readable storage medium | |
CN110290269A (en) | Display control method, mobile terminal and computer readable storage medium | |
CN108196768A (en) | Mobile terminal turn detection method, mobile terminal and computer readable storage medium |
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: 20180626 |
|
RJ01 | Rejection of invention patent application after publication |