Summary of the invention
In view of above content, be necessary to provide a kind of running gear, by the movement velocity and the moving direction of monitoring running gear, the file content of being read in the control action device moves automatically.
Be necessary to provide a kind of file reading auxiliary means in addition, this method is applied in the running gear, this action device comprises monitoring means, utilizes the movement velocity and the moving direction of this monitoring means monitoring running gear, and the file content of being read in the control action device moves automatically.
Described running gear comprises file ocr software and monitoring means, and described running gear also comprises: setting module is used to set each movement velocity corresponding file translational speed of this action device; Receiver module is used to receive user's key command; Acquisition module is used to work as the key command that is received when not being the key command of lock file, obtains the movement velocity and the moving direction of this action device from monitoring means; Processing module is used for the pairing file movement speed of each movement velocity according to this action device that sets, the speed that the whole file content that affirmation is read moves; Described processing module also is used for moving to the moving direction of this action device with the whole file content that the file movement speed of being confirmed will be read.
Described file reading auxiliary means comprises step: a. sets the pairing file movement speed of each movement velocity of this action device; B. receive user's key command; C. work as the key command that is received when not being the key command of lock file, acquire the movement velocity and the moving direction of this action device from monitoring means, and according to the pairing file movement speed of each movement velocity of this action device that sets, the speed that the whole file content that affirmation is read moves; D. according to the moving direction of this action device that is obtained, the whole file content that will be read with the speed of being confirmed moves to the moving direction that is obtained.
Compared to prior art, running gear provided by the invention and file thereof are read auxiliary method, obtain the movement velocity and the moving direction of running gear by monitoring, automatically the file content of being read in the control action device moves, do not need continuous direction of operating key and pulling screen, make things convenient for user's reading file.
Embodiment
As shown in Figure 1, be the system architecture diagram of the preferred embodiment of running gear of the present invention.Described running gear 1 comprises file ocr software 10, file reading auxiliary unit 20 and monitoring means 30.
Described file ocr software 10 is used to open the file of corresponding format for user's reading.Described monitoring means 30 is used to monitor the speed and the direction of the rotation or the inclination of running gear 1.Described monitoring means 30 can be G-sensor (acceleration transducer), and when running gear 1 was rotated, described G-sensor can monitor the accekeration of running gear 1 rotation and the direction of acceleration.Described monitoring means 30 also can be Gyroscope (gyroscope), and when running gear 1 was tilted, described Gyroscope can monitor the angle of inclination and the vergence direction of running gear 1.In addition, described monitoring means 30 also can comprise G-sensor and Gyroscope simultaneously, mainly utilizes the value of the acceleration of G-sensor monitoring running gear 1, utilizes the vergence direction of Gyroscope monitoring running gear 1.It should be noted that Gyroscope at the monitoring angle of inclination of running gear 1 and vergence direction be that coordinate basis during with running gear 1 horizontal positioned is monitored.
As shown in Figure 2, be the functional block diagram that file of the present invention is read the preferred embodiment of auxiliary unit.Described file is read auxiliary unit 20 and is comprised setting module 200, receiver module 202, judge module 204, acquisition module 206 and processing module 208.
Described setting module 200 is used to set the key command of the instruction of any one the idle button on the running gear 1 as lock file, and described lock file is meant that file can only carry out corresponding mobile according to key up and down originally.Described idle button can be the actual keyboard of running gear 1, also can be the dummy keyboard of running gear 1.Described any one idle key command does not comprise: the instruction of the end key that can make direction button that the file of being read moves up, moves down, is moved to the left, moves right and close file of running gear 1 itself.
Described setting module 200 also is used to set the pairing file movement speed of each movement velocity of this action device 1.Described movement velocity comprises acceleration and angle of inclination.Described file movement speed can adopt pixel value to represent, moves 10pixel (pixel) as all the elements in the per second file.For example accekeration is represented with G, G=9.80 meter per second ^2, then can fancy setting 0 ~ 50 * 1mG scope according to the user in, file movement speed is zero; In 50 * 1mG ~ 50 * 2mG scope, file movement speed is that per second moves 10pixel; In 50 * 2mG ~ 50 * 4mG scope, file movement speed is that per second moves 20pixel; In 50 * 4mG ~ 50 * 8mG scope, file movement speed is that per second moves 30pixel.Moreover for example the angle of inclination value is represented with ω, and unit is degree/second, then can be in 0~5 degree/second scope according to user's fancy setting angle of inclination, and file movement speed is zero; In 5 ~ 10 degree/second scopes, file movement speed is that per second moves 10pixel; In 10 ~ 20 degree/second scopes, file movement speed is that per second moves 20pixel.
Described setting module 200 also be used to set current running gear 1 when reading file angle and direction as reference coordinate, i.e. correct tilt reference coordinate.
Described receiver module 202 is used to receive user's key command.
Described judge module 204 is used to judge that whether the key command that received is the key command of the lock file that sets.
Described acquisition module 206 when being used to work as the key command that is received and not being the key command of the lock file that sets, obtains the movement velocity and the moving direction of this action device 1 that described monitoring means 30 monitors.
Described processing module 208 is used for according to the pairing file movement speed of each movement velocity that sets the speed that the whole file content that affirmation is read moves.
Described processing module 208 also is used for the moving direction according to this action device 1 that is obtained, and the whole file content that will be read with the file movement speed of being confirmed moves to the moving direction that is obtained.
Particularly, when described monitoring means 30 was G-sensor, described acquisition module 206 acquired the accekeration and the acceleration direction of running gear 1 from G-sensor.The pairing file movement speed of each accekeration that described processing module 208 bases set, the speed that the whole file content that affirmation is read moves.Described processing module 208 is according to the acceleration direction of being obtained, and the whole file content that will be read with the speed of being confirmed moves to the acceleration direction of being obtained.
When described monitoring means 30 was Gyroscope, described acquisition module 206 obtained angle of inclination and vergence direction from Gyroscope, and described angle of inclination that obtains and vergence direction are that the angle and direction during with running gear 1 horizontal positioned is a benchmark.Described acquisition module 206 is a benchmark with the reference coordinate that sets, and obtains the actual angle of inclination and the actual tilt direction of running gear 1.Described processing module 208 is worth pairing file movement speed according to each angle of inclination that sets, the speed that the whole file content that affirmation is read moves.Described processing module 208 is according to the actual tilt direction of being obtained, and the whole file content that will be read with the speed of being confirmed moves to the actual tilt direction of being obtained.
When described monitoring means 30 comprises G-sensor and Gyroscope, described acquisition module 206 acquires the value of the acceleration of running gear 1 from G-sensor, from Gyroscope, obtain vergence direction, and be benchmark with the reference coordinate that sets, obtain the actual tilt direction of running gear 1.The pairing file movement speed of each accekeration that described processing module 208 bases set, the speed that the whole file content that affirmation is read moves.Described processing module 208 is according to the actual tilt direction of being obtained, and the whole file content that will be read with the speed of being confirmed moves to the actual tilt direction of being obtained.
As shown in Figure 3, be the process flow diagram of the preferred embodiment of file reading auxiliary means of the present invention.When the user need utilize file ocr software 10 to read, in step S110, setting module 200 set on the running gears 1 any one idle key command as the key command of lock file, set the pairing file movement speed of each movement velocity (comprising acceleration and angle of inclination) and current running gear 1 when the reading file angle and direction as reference coordinate.Described any one idle key command does not comprise: running gear 1 itself can make the direction button that the file of being read moves up, moves down, is moved to the left, moves right and the end key of close file.
Step S111, receiver module 202 receives user's key command.
Step S112, judge module 204 judge that whether the key command that received is the key command of the lock file that sets.When judging that the key command received is not the key command of the lock file that sets, enter step S113; When judging that the key command received is the key command of the lock file that sets, process ends.It should be noted that this moment, file can only carry out corresponding mobile according to key up and down originally.
Step S113, acquisition module 206 obtain the movement velocity and the moving direction of this action device 1 that described monitoring means 30 monitors.Particularly, when described monitoring means 30 was G-sensor, described acquisition module 206 acquired the accekeration and the acceleration direction of running gear 1 from G-sensor; When described monitoring means 30 was Gyroscope, described acquisition module 206 obtained angle of inclination and vergence direction from Gyroscope, and was benchmark with the reference coordinate that sets, and obtained the actual angle of inclination and the actual tilt direction of this action device 1; When described monitoring means 30 comprises G-sensor and Gyroscope, described acquisition module 206 acquires the value of the acceleration of running gear 1 from G-sensor, from Gyroscope, obtain vergence direction, and be benchmark with the reference coordinate that sets, obtain the actual tilt direction of running gear 1.
Step S114, according to the pairing file movement speed of each movement velocity that sets, the speed that the whole file content that processing module 208 affirmations are read moves, and according to the moving direction of this action device 1 that is obtained, the whole file content that to be read with the speed of being confirmed moves to the direction of being obtained, and returns step S111 then.Particularly, when described monitoring means 30 is G-sensor, described processing module 208 is according to the pairing file movement speed of each accekeration that sets, the speed that the whole file content that affirmation is read moves, according to the acceleration direction of being obtained, the whole file content that will be read with the speed of being confirmed moves to the acceleration direction of being obtained; When described monitoring means 30 is Gyroscope, described processing module 208 is worth pairing file movement speed according to each angle of inclination that sets, the speed that the whole file content that affirmation is read moves, and according to the actual tilt direction of being obtained, the whole file content that will be read with the speed of being confirmed moves to the actual tilt direction of being obtained; When described monitoring means 30 comprises G-sensor and Gyroscope, the pairing file movement speed of each accekeration that described processing module 208 bases set, the speed that the whole file content that affirmation is read moves; And according to the actual tilt direction of being obtained, the whole file content that will be read with the speed of being confirmed moves to the actual tilt direction of being obtained.
It should be noted last that, above embodiment is only unrestricted in order to technical scheme of the present invention to be described, although the present invention is had been described in detail with reference to preferred embodiment, those of ordinary skill in the art is to be understood that, can make amendment or be equal to replacement technical scheme of the present invention, and not break away from the spirit and scope of technical solution of the present invention.