CN106502756A - Application control method and device - Google Patents
Application control method and device Download PDFInfo
- Publication number
- CN106502756A CN106502756A CN201611106958.4A CN201611106958A CN106502756A CN 106502756 A CN106502756 A CN 106502756A CN 201611106958 A CN201611106958 A CN 201611106958A CN 106502756 A CN106502756 A CN 106502756A
- Authority
- CN
- China
- Prior art keywords
- mobile device
- speed
- handheld mobile
- application program
- kinestate
- 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 71
- 230000001133 acceleration Effects 0.000 claims abstract description 113
- 230000003068 static effect Effects 0.000 claims description 53
- 230000033001 locomotion Effects 0.000 claims description 31
- 230000008569 process Effects 0.000 claims description 27
- 238000012545 processing Methods 0.000 claims description 19
- 238000004422 calculation algorithm Methods 0.000 claims description 16
- 238000012935 Averaging Methods 0.000 claims description 7
- 238000004364 calculation method Methods 0.000 claims description 7
- 230000005587 bubbling Effects 0.000 claims description 6
- 238000013461 design Methods 0.000 abstract description 2
- 238000010586 diagram Methods 0.000 description 13
- 230000006870 function Effects 0.000 description 10
- 230000008859 change Effects 0.000 description 4
- 238000001514 detection method Methods 0.000 description 4
- 230000006399 behavior Effects 0.000 description 2
- 238000006073 displacement reaction Methods 0.000 description 2
- 238000005070 sampling Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 238000004458 analytical method Methods 0.000 description 1
- 230000000386 athletic effect Effects 0.000 description 1
- 230000008901 benefit Effects 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 238000004590 computer program Methods 0.000 description 1
- 230000005611 electricity Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
- 238000011065 in-situ storage Methods 0.000 description 1
- 230000003993 interaction Effects 0.000 description 1
- 230000002452 interceptive effect Effects 0.000 description 1
- 239000004973 liquid crystal related substance Substances 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012544 monitoring process Methods 0.000 description 1
- 230000003287 optical effect Effects 0.000 description 1
- 238000004549 pulsed laser deposition Methods 0.000 description 1
- 230000008439 repair process Effects 0.000 description 1
- 230000004044 response Effects 0.000 description 1
- 230000035945 sensitivity Effects 0.000 description 1
- 238000000638 solvent extraction Methods 0.000 description 1
- 238000003860 storage Methods 0.000 description 1
- 210000001835 viscera Anatomy 0.000 description 1
Classifications
-
- 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/445—Program loading or initiating
- G06F9/44505—Configuring for program initiating, e.g. using registry, configuration files
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F3/00—Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
- G06F3/01—Input arrangements or combined input and output arrangements for interaction between user and computer
- G06F3/048—Interaction techniques based on graphical user interfaces [GUI]
- G06F3/0484—Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
- G06F3/04847—Interaction techniques to control parameter settings, e.g. interaction with sliders or dials
Abstract
The present invention provides a kind of application control method and device, is related to application program controlling technical field.Method is applied to the handheld mobile device for including acceleration transducer and application program, and method includes:Acceleration transducer is called to carry out acceleration collection;Obtain the acceleration information that acceleration transducer is collected;According to the kinestate that acceleration information is calculated handheld mobile device;Application program is controlled according to the kinestate of handheld mobile device carries out operation corresponding with kinestate.By above-mentioned design, the operation that application program carries out matching with kinestate can be controlled according to the kinestate of handheld mobile device, so as to preferably meet the demand of user.
Description
Technical field
The present invention relates to application program controlling technical field, in particular to a kind of application control method and dress
Put.
Background technology
Main broadcaster when carrying out live, when especially carrying out live out of doors, sometimes in kinestate, sometimes in static
State, and some business demands need to be processed according to the kinestate of main broadcaster accordingly.In prior art, generally adopt
GPS module is positioning to handheld mobile device, and judges the state of user according to the state of handheld mobile device.So
And, positioned using GPS module, error generally at 10 meters or so, for less action cannot be detected at all, it is impossible to
Meet the demand of user.
Content of the invention
In view of this, the embodiment of the present invention provides a kind of application control method and device, to solve the above problems.
To achieve these goals, present pre-ferred embodiments provide a kind of application control method, are applied to include
Acceleration transducer and the handheld mobile device of application program, methods described include:
The acceleration transducer is called to carry out acceleration collection;
Obtain the acceleration information that the acceleration transducer is collected;
According to the kinestate that the acceleration information is calculated the handheld mobile device;
Carried out according to the kinestate of the handheld mobile device control application program corresponding with the kinestate
Operation.
Preferably, controlling the application program according to the kinestate of the handheld mobile device is carried out and the motion shape
The step of state corresponding operation, including:
The kinestate of the handheld mobile device being detected for static, and reach the first preset duration in static duration
And during less than the second preset duration, static object Processing Algorithm that the application call prestores is controlled to the image that collects
Information is identified and processes, and second preset duration is more than first preset duration;
Detecting the kinestate of the handheld mobile device for static, and static duration reaches described second and presets
During duration, the application program is closed;
When the handheld mobile device being detected in motion, control the dynamic mesh that the application call prestores
Mark Processing Algorithm is identified to the image information for collecting and processes.
Preferably, the acceleration transducer is 3-axis acceleration sensor, and the acceleration information includes three directions
Acceleration, three directions are respectively the X in rectangular coordinate system in space with the 3-axis acceleration sensor as origin
Direction of principal axis, Y direction and Z-direction, the motion for being calculated the handheld mobile device according to the acceleration information
The step of state, including:
Average speed of the handheld mobile device in the direction according to the acceleration calculation in each direction, obtains three and puts down
Equal speed;
According to the present speed that three average speed calculates the handheld mobile device;
The present speed is compared with a predetermined threshold value;
When the present speed reaches the predetermined threshold value, the handheld mobile device is judged in motion, in institute
When stating present speed and being not up to the predetermined threshold value, judge that the handheld mobile device is static.
Preferably, the determination mode of the predetermined threshold value is:
The predetermined number speed of the calculated handheld mobile device is ranked up, the predetermined number is more than
Or it is equal to three;
All speed in the predetermined number speed in addition to maximal rate and minimum speed are averaging, and will be calculated
The meansigma methodss for going out are used as the predetermined threshold value.
Preferably, the step that the predetermined number speed by the calculated handheld mobile device is ranked up
Suddenly, including:
At interval of the 3rd preset duration, in multiple speed of the calculated handheld mobile device, collection is chosen
Time and current time immediate at least two speed;
At least two speed is ranked up using bubbling method.
Present pre-ferred embodiments also provide a kind of application program controlling device, are applied to include acceleration transducer and answer
With the handheld mobile device of program, the application program controlling device includes:
Sensor calling module, for calling the acceleration transducer to carry out acceleration collection;
Data acquisition module, for obtaining the acceleration information that the acceleration transducer is collected;
Kinestate sentences computing module, for being calculated the fortune of the handheld mobile device according to the acceleration information
Dynamic state;
Application program controlling module, enters for controlling the application program according to the kinestate of the handheld mobile device
Row operation corresponding with the kinestate.
Preferably, the application program controlling module includes:
Static target processes submodule, for detecting the kinestate of the handheld mobile device for static, and
When static duration reaches the first preset duration and is less than the second preset duration, the static mesh that the application call prestores is controlled
Mark Processing Algorithm is identified to the image information for collecting and processes, when second preset duration is default more than described first
Long;
Closing application program submodule, for detecting the kinestate of the handheld mobile device for static, and
When static duration reaches second preset duration, the application program is closed;
Dynamic object processes submodule, for when the handheld mobile device is detected in motion, control is described
The dynamic object Processing Algorithm that application call prestores is identified to the image information for collecting and processes.
Preferably, the acceleration transducer is 3-axis acceleration sensor, and the acceleration information includes three directions
Acceleration, three directions are respectively the X in rectangular coordinate system in space with the 3-axis acceleration sensor as origin
Direction of principal axis, Y direction and Z-direction, the kinestate computing module include:
Average speed calculating sub module, for handheld mobile device described in the acceleration calculation according to each direction in the party
To average speed, obtain three average speeds;
Present speed calculating sub module, for calculating the current of the handheld mobile device according to three average speed
Speed;
Speed comparer module, for comparing the present speed with a predetermined threshold value;
Kinestate decision sub-module, for when the present speed reaches the predetermined threshold value, judging described hand-held
Mobile device when the present speed is not up to the predetermined threshold value, judges that the handheld mobile device is quiet in motion
Only.
Preferably, the application program controlling device also includes threshold determination module, and the threshold determination module includes:
Sorting sub-module, for the predetermined number speed of the calculated handheld mobile device is ranked up,
The predetermined number is more than or equal to three;
Predetermined threshold value calculating sub module, in the predetermined number speed in addition to maximal rate and minimum speed
All speed are averaging, and using the meansigma methodss for calculating as the predetermined threshold value.
Preferably, the sorting sub-module includes:
Timing acquiring time submodule, at interval of the 3rd preset duration, in the calculated handheld mobile device
Multiple speed in, choose acquisition time and current time immediate at least two speed;
Caving area time submodule, for being ranked up at least two speed using bubbling method.
Application control method provided in an embodiment of the present invention and device, can calculate the current institute of handheld mobile device
The kinestate at place, and the kinestate being presently according to the handheld mobile device be defaulted as user residing for motion shape
State, and then the operation that application program carries out matching is controlled with the kinestate of user, can preferably meet the demand of user.
Description of the drawings
In order to be illustrated more clearly that the technical scheme of the embodiment of the present invention, below by to be used attached needed for embodiment
Figure is briefly described, it will be appreciated that the following drawings illustrate only certain embodiments of the present invention, and it is right to be therefore not construed as
The restriction of scope, for those of ordinary skill in the art, on the premise of not paying creative work, can be with according to this
A little accompanying drawings obtain other related accompanying drawings.
Fig. 1 is the block diagram of handheld mobile device provided in an embodiment of the present invention.
Fig. 2 is the functional block diagram of application program controlling device provided in an embodiment of the present invention.
Fig. 3 is the submodule block diagram of application program controlling module provided in an embodiment of the present invention.
Fig. 4 is the submodule block diagram of predetermined threshold value determining module provided in an embodiment of the present invention.
Fig. 5 is a kind of schematic flow sheet of application control method provided in an embodiment of the present invention.
Fig. 6 is the sub-step schematic diagram of step S130 shown in Fig. 5.
Fig. 7 is the sub-step schematic diagram that predetermined threshold value provided in an embodiment of the present invention determines step.
Fig. 8 is the sub-step schematic diagram of step S152 shown in Fig. 7.
Icon:100- handheld mobile devices;110- application program controlling devices;111- sensor calling modules;112- numbers
According to acquisition module;113- kinestate computing modules;1131- average speed calculating sub modules;1132- present speeds calculate submodule
Block;1133- velocity contrast's submodules;1134- kinestate decision sub-modules;114- application program controlling modules;1141- is static
Target processes submodule;1142- closing application program submodules;1143- dynamic objects process submodule;115- threshold values determine mould
Block;1151- sorting sub-modules;1161- timing acquiring time submodule;1162- bubble sorts time submodule;1152- predetermined threshold values
Calculating sub module;120- application programs;130- memorizeies;140- processors;150- display units;160- detection components.
Specific embodiment
Purpose, technical scheme and advantage for making the embodiment of the present invention is clearer, below in conjunction with the embodiment of the present invention
In accompanying drawing, to the embodiment of the present invention in technical scheme be clearly and completely described, it is clear that described embodiment is
The a part of embodiment of the present invention, rather than whole embodiments.Present invention enforcement generally described and illustrated in accompanying drawing herein
The component of example can be arranged and be designed with a variety of configurations.
Therefore, below the detailed description of the embodiments of the invention for providing in the accompanying drawings is not intended to limit claimed
The scope of the present invention, but be merely representative of the present invention selected embodiment.Embodiment in based on the present invention, this area are common
The every other embodiment obtained under the premise of creative work is not made by technical staff, belongs to the model of present invention protection
Enclose.
It should be noted that:Similar label and letter represent similar terms in following accompanying drawing, therefore, once a certain Xiang Yi
It is defined in individual accompanying drawing, then in subsequent accompanying drawing which further need not be defined and be explained.
As shown in figure 1, being a kind of block diagram of handheld mobile device 100 that present pre-ferred embodiments are provided.Institute
Stating handheld mobile device 100 includes application program controlling device 110, application program 120, memorizer 130, processor 140, display
Unit 150 and detection components 160.
The memorizer 130, processor 140, display unit 150 and 160 each element of detection components each other directly or
It is electrically connected with indirectly, to realize the transmission or interaction of signal.For example, these elements each other can be logical by one or more
News bus or holding wire are realized being electrically connected with.
The application program controlling device 110 and application program 120 include that at least one can be with software or firmware
(firmware) form is stored in the memorizer 130 or is solidificated in the operating system of the handheld mobile device 100
Software function module in (operating system, OS).The processor 140 is used for running storage in memory 130
Software program and module, so as to execute various function application and data processing, such as application provided in an embodiment of the present invention
Control method and application program 120.
Wherein, the memorizer 130 may be, but not limited to, random access memory (Random Access
Memory, RAM), read only memory (Read Only Memory, ROM), programmable read only memory (Programmable
Read-Only Memory, PROM), erasable read-only memory (Erasable Programmable Read-Only
Memory, EPROM), electricallyerasable ROM (EEROM) (Electric Erasable Programmable Read-Only
Memory, EEPROM) etc..
A kind of possibly IC chip of the processor 140, the disposal ability with signal.The processor 140
Can be general processor, including central processing unit (Central Processing Unit, CPU), network processing unit
(Network Processor, NP) etc.;Can also be digital signal processor (DSP)), special IC (ASIC), scene
Programmable gate array (FPGA) or other PLDs, discrete gate or transistor logic, discrete hardware group
Part.Can realize or execute disclosed each method in the embodiment of the present invention, step and logic diagram.General processor can be with
It is microprocessor or the processor can also be any conventional processor etc..
The display unit 150 provides an interactive interface (such as user behaviour between handheld mobile device 100 and user
Make interface) or for display image data and video data.In the present embodiment, the display unit 150 can be liquid crystal
Display screen or touching display screen.
The detection components 160 are the various sensors in handheld mobile device 100, for example, acceleration sensing
Device.
The application program 120 can be the application program with video record and representational role such as live application program,
Can also be that other needs carry out the application program of different operating according to the kinestate of user, the present embodiment is not limited to this
System.
It should be appreciated that structure shown in Fig. 1 is only to illustrate, handheld mobile device 100 may also include more more than shown in Fig. 1 or
The less component of person, or with the configuration different from shown in Fig. 1.Each component shown in Fig. 1 can adopt hardware, software or
Which combines realizes.
The application control method and device that the embodiment of the present invention is proposed is applicable to Android operation system, iOS behaviour
Make the platforms such as system, Windows Phone operating systems.Specifically, the application control method that the embodiment of the present invention is proposed
And device can be applied various in handheld mobile device 100 with the application program for possessing direct broadcast function or possess video record work(
The application program of energy.The present embodiment will be described in detail by taking Android operation system as an example.
Fig. 2 is referred to, Fig. 2 is the application program controlling device 110 for being applied to the handheld mobile device 100 shown in Fig. 1.Institute
Stating application program controlling device 110 includes sensor calling module 111, data acquisition module 112, kinestate computing module
113 and application program controlling module 114.
Wherein, the sensor calling module 111 is used for calling the acceleration transducer to carry out acceleration collection.
In the present embodiment, acceleration transducer is installed in handheld mobile device 100, in Android operation system, right
All the sensors using being required for being obtained by SensorManager sensor objects, SensorManager is sensed
Device is to liking the manager dedicated for management of sensor that android system is provided.Alternatively, during enforcement, Ke Yitong
Cross and call getSystemService (SENSOR_SERVICE) function to obtain android system offer
SensorManager sensor management objects, then by calling in SensorManager sensor management objects
GetDefaultSensor (Sensor.TYPE_ACCELEROMETER) function is obtaining acceleration transducer in current system.
The data acquisition module 112 is used for obtaining the acceleration information that the acceleration transducer is collected.
In the present embodiment, need acceleration transducer to be registered in audiomonitor, can get the acceleration number of degrees for collecting
According to.Therefore, during enforcement, the data acquisition module 112 can be by calling the registerListener letters of android system
Number registering the monitorings of acceleration transducer, when monitored object is that acceleration transducer collects acceleration information, can be with
Certain method of audiomonitor object is called acceleration information is encapsulated in SensorEvent to be transmitted.
The kinestate computing module 113 is used for being calculated the handheld mobile device according to the acceleration information
100 kinestate.
In the present embodiment, need to parse the acceleration information in SensorEvent objects, so as to follow-up solution
Calculate.Alternatively, the acceleration transducer can be, but be not limited to, and common acceleration transducer or 3-axis acceleration are passed
Sensor.When the acceleration transducer is 3-axis acceleration sensor, can both be independent 3-axis acceleration sensor,
It can be the 3-axis acceleration biography in nine integrated axle sensors of 3-axis acceleration sensor, three-axis gyroscope and three axle magnetometer
Sensor.When the acceleration transducer is common acceleration transducer, with the one of direction of 3-axis acceleration sensor
Acceleration calculation method is identical, will be illustrated with 3-axis acceleration sensor below.
In the design of Android device bottom hardware, with the 3-axis acceleration sensor as origin, by acceleration point
For three directions, respectively X-direction, Y direction and Z-direction.Concrete analysis mode is as follows:
Float x Value=sensorEvent.values [0]
Float y Value=sensorEvent.values [1]
Float z Value=sensorEvent.values [2]
Wherein, what sensorEvent.values [0] represented parsing is the acceleration of X-axis, and its value is stored in x Value
In.What sensorEvent.values [1] represented parsing is the acceleration of Y-axis, and its value is stored in y Value.
What sensorEvent.values [2] represented parsing is Z axis acceleration, stores it in z Value.By the way,
The acceleration in three directions in SensorEvent can be parsed.
After the acceleration for parsing three directions, need to solve handheld mobile device according to the acceleration in three directions
100 current translational speeds, current so as to obtain handheld mobile device 100 kinestate, and by the handheld mobile device
100 kinestate is defaulted as the kinestate of user, so that application program can be carried out accordingly according to the kinestate of user
Operation.
Alternatively, the kinestate computing module 113 can include average speed calculating sub module 1131, present speed
Calculating sub module 1132, velocity contrast's submodule 1133 and kinestate decision sub-module 1134.
Wherein, the average speed calculating sub module 1131 is used for hand-held shifting according to the acceleration calculation in each direction
Average speed of the dynamic equipment 100 in the direction, obtains three average speeds.
After the acceleration for parsing three directions, can obtain public affairs are calculated as below according to correlation formulas such as acceleration displacements
Formula:
Wherein,Represent that average speed, Δ S represent displacement difference, Δ T express times are poor, and a represents acceleration.In view of this,
Average speed to be tried to achieve is accomplished by knowing the acceleration in this period of time and time.It is alternatively possible to will be pre- for sampling period Δ T
200 milliseconds are set to, but the present embodiment is not limited to the size in sampling period, can be carried out flexibly according to precision and response speed
Arrange.Acceleration in Δ T time section can take the meansigma methodss of the acceleration in the time period.
Handheld mobile device 100 can be calculated respectively by above-mentioned formula current in X-axis, three directions of Y-axis and Z axis
Average speed xSpeed, ySpeed and zSpeed.
The present speed calculating sub module 1132 is used for being set according to the three average speed calculating hand-held movement
Standby 100 present speed.
After X-axis, the average speed in three directions of Y-axis and Z axis is got, the principle according to vector is calculated hand-held shifting
Current speed v of dynamic equipment 100, specifically,
Velocity contrast's submodule 1133 is used for the present speed to be compared with a predetermined threshold value.
The kinestate decision sub-module 1134 is used for, when the present speed reaches the predetermined threshold value, judging institute
Handheld mobile device 100 is stated in motion, when the present speed is not up to the predetermined threshold value, the hand-held shifting is judged
Dynamic equipment 100 is static.
In the present embodiment, the kinestate for calculating the handheld mobile device 100 is the substantially fortune in order to obtain user
Dynamic state, but as the sensitivity of 3-axis acceleration sensor is higher, even there is slight movement in handheld mobile device 100
Can also be detected.Accordingly, it is possible to there is handheld mobile device 100 in motion, but user actually still treats in situ, and
Without any big-movement.In order to allow the kinestate of the handheld mobile device 100 for detecting preferably to characterize the kinestate of user,
A threshold value can be pre-set and contrasted with the present speed of the handheld mobile device 100 for calculating, and according to hand-held movement
The present speed of equipment 100 judges the kinestate of handheld mobile device 100 with the comparing result of the predetermined threshold value.
Referring again to Fig. 2, the application program controlling module 114 is used for the motion according to the handheld mobile device 100
State controls the application program 120 and carries out operation corresponding with the kinestate.
In the present embodiment, after the kinestate for being calculated the handheld mobile device 100, the hand-held movement is set
Standby 100 kinestate is defaulted as the kinestate of user, and is in motion or carries out not in static according to user
Same operation.For example, according to user movement or static calling different image processing algorithms, and for example, when detecting user
During long inactivity, the application program 120 can be closed.
Alternatively, Fig. 3 is referred to, the application program controlling module 114 can include that static object processes submodule
1141st, closing application program submodule 1142 and dynamic object process submodule 1143.
Wherein, the static object processes submodule 1141 and is used in the motion for detecting the handheld mobile device 100
State is for static, and reaches the first preset duration and during less than the second preset duration in static duration, controls the application program
120 call image information of the static object Processing Algorithm for prestoring to collecting to be identified and process.
In actual applications, application program 120 needs the image information for first obtaining live object, and described image information is entered
Row is shown after processing again in real time.When live object is in static middle, in whole process, the profile of live object will not occur
Big deformation.When live object is in motion, in whole process, the profile of live object may be constantly in change, and
And change greatly.For above-mentioned two situations, if using identical image processing algorithm, being likely to result in live object in fortune
The live video obtained during disorder of internal organs is not clear enough, or, take the larger internal memory of handheld mobile device 100.
Additionally, during live, even if user is in motion, but in whole motor process user be likely to occur short
Temporary is static.During enforcement, certain time length can be set, such as the first preset duration in the present embodiment, when detecting hand-held shifting
Dynamic equipment 100 is in static, and static duration reaches the first preset duration, but is less than the second preset duration, it can be determined that straight
Object i.e. user is broadcast in static, the static object Processing Algorithm for prestoring is called, is recognized and process the image information for collecting,
The user profile in the image information for collecting is recognized and is processed for example with correlation matching algorithm.
In the present embodiment, second preset duration is more than first preset duration.During enforcement, can be according to actual feelings
Condition is configured to first preset duration and the second preset duration, and the present embodiment is not restricted to this.For example:Described first
Preset duration can be 1 minute, and second preset duration can be 5 minutes.When the static duration of live object reaches 2 minutes
When, it is possible to determine that live object is static, but does not leave live.
The closing application program submodule 1142 is used for
Static, and static duration is when reaching second preset duration, closes the application program 120.
In the present embodiment, when it is static to detect 100 second preset duration of the handheld mobile device, it is possible to determine that use
Family has stopped live, can directly close the application program 120, to save internal memory and save electricity.
The dynamic object processes submodule 1143 to be used for detecting the handheld mobile device 100 in motion
When, control the application program 120 call image information of the dynamic object Processing Algorithm for prestoring to collecting to be identified and
Process.
In the present embodiment, when the handheld mobile device 100 is detected in motion, can be also at default user
In motion, the dynamic object Processing Algorithm for prestoring can be called to recognize and process the wheel of user in the image information for collecting
Exterior feature, for example, light stream partitioning algorithm.
Wherein, light stream refers to the apparent motion of gradation of image pattern.In optical flow field, different physics has different speed
Degree, the athletic meeting of extended background produce more uniform velocity region on image, can detect moving object accordingly.
Specifically, can be realized by following two steps:Velocity field is calculated from the grey scale change of image sequence;Using constraints
Kinematic parameter and object structures are speculated from velocity field.
In the present embodiment, the threshold value can be adjusted correspondingly according to the kinestate of user.Alternatively, please join
Fig. 4 is read, the application program controlling device 110 can also include threshold determination module 115, and the threshold determination module 115 can
To include sorting sub-module 1151 and predetermined threshold value calculating sub module 1152.
Wherein, the sorting sub-module 1151 is used for the predetermined number speed of calculated handheld mobile device 100
Degree is ranked up.
The predetermined threshold value calculating sub module 1152 be used in the predetermined number speed except the maximal rate with
All speed outside minimum speed are averaging, and using the meansigma methodss for calculating as the predetermined threshold value.
In the present embodiment, 3-axis acceleration sensor is right at interval of certain time (for example, 200 milliseconds in the above)
The acceleration of handheld mobile device 100 is acquired and calculates, and obtains multiple speed, and handheld mobile device 100 can select institute
The predetermined number speed that states in multiple speed is ranked up, and can obtain maximal rate and minimum speed after sequence.To sort
The maximal rate for arriving and minimum speed are excluded, and remaining speed is averaging, and using the meansigma methodss that obtains as the default threshold
Value.
It should be noted that the predetermined number is more than or equal to three.
Alternatively, the sorting sub-module 1151 can include timing acquiring time submodule 1161 and caving area second son
Module.
Wherein, the timing acquiring time submodule 1161 is used at interval of the 3rd preset duration, obtains acquisition time and works as
The predetermined number speed of front moment immediate handheld mobile device 100.
The caving area time submodule is used for being ranked up at least two speed that chooses using bubbling method.
In the present embodiment, in order to more accurately judge the kinestate of user, the predetermined threshold value can be adjusted in real time,
During enforcement, the once predetermined threshold value can be updated at interval of the 3rd preset duration, that is, needing at interval of the 3rd preset duration
Resurvey predetermined number speed to be ranked up and be averaging.
According to the actual requirements, can select with current time immediate predetermined number moment collection and calculated
Speed is used as the predetermined number speed for being used for updating the pre- predetermined threshold value.
Fig. 5 is referred to, the embodiment of the present invention also provides a kind of application control method, applies the handheld mobile device
100.Idiographic flow shown in Fig. 5 will be described in detail below.
Step S110:The acceleration transducer is called to carry out acceleration collection.
In the present embodiment, the sensor calling module 111 that step S110 can be as shown in Figure 2 is executed.
Step S120:Obtain the acceleration information that the acceleration transducer is collected.
In the present embodiment, the data acquisition module 112 that step S120 can be as shown in Figure 2 is executed.
Step S130:According to the kinestate that the acceleration information is calculated the handheld mobile device 100.
In the present embodiment, step S130 can be executed by the kinestate computing module 113 shown in Fig. 2.
Step S140:The application program 120 is controlled according to the kinestate of the handheld mobile device 100 is carried out and institute
State the corresponding operation of kinestate.
In the present embodiment, step S140 can be executed by the application program controlling module 114 shown in Fig. 2.
Alternatively, step S140 can include three below sub-step:
The kinestate of the handheld mobile device 100 being detected for static, and reach first in static duration and preset
Duration and during less than the second preset duration, controls the application program 120 and calls the static object Processing Algorithm for prestoring to collection
To image information processed.
Wherein, second preset duration is more than first preset duration.In the present embodiment, this step can be by Fig. 3
Shown static object processes submodule 1141 and executes.
Detecting the kinestate of the handheld mobile device 100 for static, and static duration reaches described second
During preset duration, the application program 120 is closed.
Wherein, second preset duration is more than first preset duration.In the present embodiment, this step can be by Fig. 3
Shown closing application program submodule 1142 is executed.
When detecting the handheld mobile device 100 in motion, control the application program 120 and call to prestore
Dynamic object Processing Algorithm is processed to the image information for collecting.
In the present embodiment, this step can process submodule 1143 by the dynamic object shown in Fig. 3 and execute.
In the present embodiment, the acceleration transducer can be 3-axis acceleration sensor, and the acceleration information includes
The acceleration in three directions, three directions are respectively the rectangular space coordinate with the 3-axis acceleration sensor as origin
X-axis, Y-axis and Z-direction in system.
Alternatively, Fig. 6 is referred to, step S130 can include step S131, step S132, step S133 and step
Tetra- sub-steps of rapid S134.
Step S131:Average speed of the handheld mobile device 100 in the direction according to the acceleration calculation in each direction
Degree, obtains three average speeds.
In the present embodiment, step S131 can be executed by the average speed calculating sub module 1131 shown in Fig. 2.
Step S132:According to the present speed that three average speed calculates the handheld mobile device 100.
In the present embodiment, step S132 can be executed by the present speed calculating sub module 1132 shown in Fig. 2.
Step S133:The present speed is compared with a predetermined threshold value.
In the present embodiment, step S133 can be executed by the velocity contrast's submodule 1133 shown in Fig. 2.
Step S134:When the present speed reaches the predetermined threshold value, judge that the handheld mobile device 100 is in
In motion, when the present speed is not up to the predetermined threshold value, judge that the handheld mobile device 100 is static.
In the present embodiment, the kinestate decision sub-module 1134 that step S134 can be as shown in Figure 2 is executed.
Alternatively, methods described also includes the determination of the predetermined threshold value, according to the actual requirements, refers to Fig. 7, described pre-
If the determination of threshold value can be realized by step S151 and two sub-steps of step S152.
Step S151:The predetermined number speed of calculated handheld mobile device 100 is ranked up.
In the present embodiment, step S151 can be executed by the sorting sub-module 1151 shown in Fig. 4.
Step S152:Flat are asked to all speed in the predetermined number speed in addition to maximal rate and minimum speed
, and using the meansigma methodss for calculating as the predetermined threshold value.
In the present embodiment, step S152 can be executed by the predetermined threshold value calculating sub module 1152 shown in Fig. 4.
Alternatively, Fig. 8 is referred to, and step S152 can include step S1521 and step S1522 two time sub-step.
Step S1521:At interval of the 3rd preset duration, acquisition time and the current time immediate hand-held shifting is obtained
The predetermined number speed of dynamic equipment 100.
In the present embodiment, step S1521 can be executed by the timing acquiring time submodule 1161 shown in Fig. 4.
Step S1522:The predetermined number speed is ranked up using bubbling method.
In the present embodiment, step S1522 can be executed by the bubble sort time submodule 1162 shown in Fig. 4.
In sum, the application control method and device that the present invention is provided gathers hand-held shifting by acceleration transducer
The acceleration information of dynamic equipment 100, according to the kinestate that the acceleration information calculates handheld mobile device 100, and then
Control application program 120 carries out the operation that mates with the kinestate, can preferably meet the demand of user.
In several embodiments that the embodiment of the present invention is provided, it should be understood that disclosed system and method, also may be used
To realize by another way.System and method embodiment described above is only schematically, for example, in accompanying drawing
Flow chart and block diagram show the system of the multiple embodiments according to the present invention, the possibility of method and computer program product is realized
Architectural framework, function and operation.At this point, each square frame in flow chart or block diagram can represent module, a program
Section or a part for code, a part for the module, program segment or code is comprising one or more patrolling for realization regulation
Collect the executable instruction of function.It should also be noted that in some are as the implementations that replaces, the function that marked in square frame
Can occur with the order for being different from marked in accompanying drawing.For example, two continuous square frames can essentially be held substantially in parallel
OK, they can also be executed sometimes in the opposite order, and this is depending on involved function.It is also noted that block diagram and/or
The combination of each square frame and block diagram and/or the square frame in flow chart in flow chart, can use the function or dynamic of executing regulation
The special hardware based system that makees is realizing, or can combine to realize with specialized hardware and computer instruction.
In addition, each functional module in each embodiment of the invention can integrate to form an independent portion
Divide, or modules individualism, it is also possible to which two or more modules are integrated to form an independent part.
The preferred embodiments of the present invention are the foregoing is only, the present invention is not limited to, for the skill of this area
For art personnel, the present invention can have various modifications and variations.All within the spirit and principles in the present invention, made any repair
Change, equivalent, improvement etc., should be included within the scope of the present invention.
Claims (10)
1. a kind of application control method, it is characterised in that be applied to include the hand-held of acceleration transducer and application program
Mobile device, methods described include:
The acceleration transducer is called to carry out acceleration collection;
Obtain the acceleration information that the acceleration transducer is collected;
According to the kinestate that the acceleration information is calculated the handheld mobile device;
The application program is controlled according to the kinestate of the handheld mobile device carries out behaviour corresponding with the kinestate
Make.
2. application control method according to claim 1, it is characterised in that according to the fortune of the handheld mobile device
The step of dynamic state controls the application program and carries out operation corresponding with the kinestate, including:
The kinestate of the handheld mobile device being detected for static, and reach the first preset duration and little in static duration
When the second preset duration, static object Processing Algorithm that the application call prestores is controlled to the image information that collects
It is identified and processes, second preset duration is more than first preset duration;
Detecting the kinestate of the handheld mobile device for static, and static duration reaches second preset duration
When, close the application program;
When the handheld mobile device is detected in motion, control at the dynamic object that the application call prestores
Adjustment method is identified to the image information for collecting and processes.
3. application control method according to claim 1, it is characterised in that the acceleration transducer adds for three axles
Velocity sensor, the acceleration information include that the acceleration in three directions, three directions are respectively with the acceleration
Sensor is the X-direction in the rectangular coordinate system in space of origin, Y direction and Z-direction, described according to the acceleration number of degrees
According to be calculated the handheld mobile device kinestate the step of, including:
Average speed of the handheld mobile device in the direction according to the acceleration calculation in each direction, obtains three average speed
Degree;
According to the present speed that three average speed calculates the handheld mobile device;
The present speed is compared with a predetermined threshold value;
When the present speed reaches the predetermined threshold value, judge that the handheld mobile device, in motion, is worked as described
When front speed is not up to the predetermined threshold value, judge that the handheld mobile device is static.
4. application control method according to claim 3, it is characterised in that the determination mode of the predetermined threshold value
For:
The predetermined number speed of the calculated handheld mobile device is ranked up, the predetermined number is more than or waits
In three;And
All speed in the predetermined number speed in addition to maximal rate and minimum speed are averaging, and will be calculated
Meansigma methodss are used as the predetermined threshold value.
5. the application control method according to right will go 4, it is characterised in that described will be calculated described hand-held
The step of predetermined number speed of mobile device is ranked up, including:
At interval of the 3rd preset duration, the present count of acquisition time and the current time immediate handheld mobile device is obtained
Amount speed;
The predetermined number speed is ranked up using bubbling method.
6. a kind of application program controlling device, it is characterised in that be applied to include the hand-held of acceleration transducer and application program
Mobile device, the application program controlling device include:
Sensor calling module, for calling the acceleration transducer to carry out acceleration collection;
Data acquisition module, for obtaining the acceleration information that the acceleration transducer is collected;
Kinestate computing module, for being calculated the motion shape of the handheld mobile device according to the acceleration information
State;
Application program controlling module, for according to the kinestate of the handheld mobile device control the application program carry out with
The corresponding operation of the kinestate.
7. application program controlling device according to claim 6, it is characterised in that the application program controlling module bag
Include:
Static target processes submodule, for detecting the kinestate of the handheld mobile device for static, and static
When duration reaches the first preset duration and is less than the second preset duration, control at the static object that the application call prestores
Adjustment method is identified to the image information for collecting and processes, and second preset duration is more than first preset duration;
Closing application program submodule, for detecting the kinestate of the handheld mobile device for static and static
When duration reaches second preset duration, the application program is closed;
Dynamic object processes submodule, for when the handheld mobile device is detected in motion, controlling the application
The dynamic object Processing Algorithm that routine call prestores is identified to the image information for collecting and processes.
8. application program controlling device according to claim 6, it is characterised in that the acceleration transducer adds for three axles
Velocity sensor, the acceleration information include that the acceleration in three directions, three directions are respectively and are added with three axle
Velocity sensor is that the X-direction in the rectangular coordinate system in space of origin, Y direction and Z-direction, the kinestate are calculated
Module includes:
Average speed calculating sub module, for handheld mobile device described in the acceleration calculation according to each direction in the direction
Average speed, obtains three average speeds;
Present speed calculating sub module, for calculating the current speed of the handheld mobile device according to three average speed
Degree;
Speed comparer module, for comparing the present speed with a predetermined threshold value;
Kinestate decision sub-module, for when the present speed reaches the predetermined threshold value, judging the hand-held movement
Equipment when the present speed is not up to the predetermined threshold value, judges that the handheld mobile device is static in motion.
9. application program controlling device according to claim 8, it is characterised in that the application program controlling device is also wrapped
Threshold determination module is included, the threshold determination module includes:
Sorting sub-module, for the predetermined number speed of the calculated handheld mobile device to be ranked up, described
Predetermined number is more than or equal to three;And
Predetermined threshold value calculating sub module, in the predetermined number speed in addition to the maximal rate and minimum speed
All speed are averaging, and using the meansigma methodss for calculating as the predetermined threshold value.
10. application program controlling device according to claim 9, it is characterised in that the sorting sub-module includes:
Timing acquiring time submodule, at interval of the 3rd preset duration, in the more of the calculated handheld mobile device
In individual speed, acquisition time and current time immediate at least two speed is chosen;
Caving area time submodule, for being ranked up at least two speed that chooses using bubbling method.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611106958.4A CN106502756B (en) | 2016-12-06 | 2016-12-06 | Application control method and device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201611106958.4A CN106502756B (en) | 2016-12-06 | 2016-12-06 | Application control method and device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN106502756A true CN106502756A (en) | 2017-03-15 |
CN106502756B CN106502756B (en) | 2019-03-15 |
Family
ID=58329489
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201611106958.4A Active CN106502756B (en) | 2016-12-06 | 2016-12-06 | Application control method and device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN106502756B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107182007A (en) * | 2017-07-07 | 2017-09-19 | 岑思华 | A kind of hand-held intelligent equipment and its control system |
CN107770592A (en) * | 2017-12-05 | 2018-03-06 | 清华大学 | Motion state of mobile terminal detection method in mobile video playing process |
CN114466726A (en) * | 2019-11-14 | 2022-05-10 | 喜利得股份公司 | Handle for power tool |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799361A (en) * | 2012-06-21 | 2012-11-28 | 华为终端有限公司 | Method for calling application object out and mobile terminal |
CN103079013A (en) * | 2013-01-17 | 2013-05-01 | 广东欧珀移动通信有限公司 | Application operation method and device of mobile terminal and mobile terminal |
CN103927019A (en) * | 2014-05-06 | 2014-07-16 | 北京金山安全软件有限公司 | Method and system for opening application program in mobile equipment and mobile equipment |
CN104077057A (en) * | 2013-03-25 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Mobile device control method and system and mobile device |
-
2016
- 2016-12-06 CN CN201611106958.4A patent/CN106502756B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102799361A (en) * | 2012-06-21 | 2012-11-28 | 华为终端有限公司 | Method for calling application object out and mobile terminal |
CN103079013A (en) * | 2013-01-17 | 2013-05-01 | 广东欧珀移动通信有限公司 | Application operation method and device of mobile terminal and mobile terminal |
CN104077057A (en) * | 2013-03-25 | 2014-10-01 | 腾讯科技(深圳)有限公司 | Mobile device control method and system and mobile device |
CN103927019A (en) * | 2014-05-06 | 2014-07-16 | 北京金山安全软件有限公司 | Method and system for opening application program in mobile equipment and mobile equipment |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107182007A (en) * | 2017-07-07 | 2017-09-19 | 岑思华 | A kind of hand-held intelligent equipment and its control system |
CN107770592A (en) * | 2017-12-05 | 2018-03-06 | 清华大学 | Motion state of mobile terminal detection method in mobile video playing process |
CN114466726A (en) * | 2019-11-14 | 2022-05-10 | 喜利得股份公司 | Handle for power tool |
Also Published As
Publication number | Publication date |
---|---|
CN106502756B (en) | 2019-03-15 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103477355B (en) | Number measurement mechanism | |
CN106502756A (en) | Application control method and device | |
CN108230293A (en) | Determine method and apparatus, electronic equipment and the computer storage media of quality of human face image | |
CN110210302A (en) | Multi-object tracking method, device, computer equipment and storage medium | |
WO2020164320A1 (en) | Positioning method and electronic device | |
CN110321780A (en) | Exception based on spatiotemporal motion characteristic falls down behavioral value method | |
CN110826372B (en) | Face feature point detection method and device | |
CN108986137B (en) | Human body tracking method, device and equipment | |
CN107588784A (en) | A kind of state recognition and the method, apparatus and terminal distinguished | |
CN111160187A (en) | Method, device and system for detecting left-behind object | |
CN106248101A (en) | A kind of monitoring method and device | |
CN105718033A (en) | Fatigue detection system and method | |
CN114697618A (en) | Building control method and system based on mobile terminal | |
US11393091B2 (en) | Video image processing and motion detection | |
CN106060273A (en) | Data processing method and device capable of enhancing use security, and mobile terminal | |
CN106685946A (en) | System for detecting Internet of Things sensing layer intrusion | |
CN111814523A (en) | Human body activity recognition method and device | |
Song et al. | Behavior Recognition of the Elderly in Indoor Environment Based on Feature Fusion of Wi-Fi Perception and Videos | |
CN111736539B (en) | Monitoring data display method, device, system, server and storage medium | |
CN112464880B (en) | Night foreign body detection method, device, medium and equipment | |
CN112347834B (en) | Remote nursing method, equipment and readable storage medium based on personnel category attribute | |
CN107358210A (en) | Human motion recognition method and device | |
Xing et al. | EVAL cane: Nonintrusive monitoring platform with a novel gait-based user-identification scheme | |
CN113094597A (en) | Thousand-person and thousand-face portal processing method and device based on machine learning and related equipment | |
CN107370869B (en) | Mobile terminal and mobile phone |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
TR01 | Transfer of patent right | ||
TR01 | Transfer of patent right |
Effective date of registration: 20231115 Address after: Room 606-609, Compound Office Complex Building, No. 757, Dongfeng East Road, Yuexiu District, Guangzhou, Guangdong Province, 510699 Patentee after: China Southern Power Grid Internet Service Co.,Ltd. Address before: 430000 East Lake Development Zone, Wuhan City, Hubei Province, No. 1 Software Park East Road 4.1 Phase B1 Building 11 Building Patentee before: WUHAN DOUYU NETWORK TECHNOLOGY Co.,Ltd. |