The content of the invention
The present invention provides method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides, with realization and touch-screen
It is similar every empty sliding effect.
First aspect present invention provides a kind of method that simulated touch screen slides, including:
The dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel, the N and M are big
In 1 natural number, and the N is not more than the M;
Capture the gesture on the screen formed in the dot matrix infrared sensor;
It is corresponding in the M × M in sliding distance d on the screen that the dot matrix infrared sensor is formed to calculate the gesture
The distance d ' slided on the touch-screen of individual pixel;
Respond the distance d ' slided on the touch-screen of the M × M pixel.
With reference in a first aspect, in the first possible implementation of first aspect, if the N is much smaller than M, by N
The dot matrix that × N number of infrared sensor is formed is mapped to before the touch-screen of M × M pixel, and methods described also includes:
Interpolation processing is carried out to the N × N number of pixel that will be mapped in M × M pixel on touch-screen, makes N × N number of
Pixel is changed into N1×N2Individual pixel, the N1=N × x, the N2=N × y, the x and y are respectively interpolation multiple.
With reference in a first aspect, in second of possible implementation of first aspect, the capture is red in the dot matrix
After the gesture on screen that outer sensor is formed, methods described also includes:
Pass through backoff algorithm, processing misrecognition action.
With reference to second of possible implementation of first aspect, in the third possible implementation of first aspect
In, it is described to be included by backoff algorithm, processing misrecognition action:
Judge that the gesture slides into target location on the screen that the dot matrix infrared sensor is formed from original position
When glide direction;
If in preset time, the gesture is back to from the target location along the direction opposite with the glide direction
The original position, then filter the gesture be back to from the target location along the direction opposite with the glide direction it is described
Event caused by original position.
With reference in a first aspect, in the 4th kind of possible implementation of first aspect, the calculating gesture is in institute
Correspond to what is slided on the touch-screen of the M × M pixel when stating sliding distance d on the screen of dot matrix infrared sensor composition
Distance d ', including:
According to any one infrared biography of row in original position to any point between target location to N × N number of infrared sensor
The distance and described any point distance with N number of infrared sensor respectively for the straight line that sensor is formed, calculate the hand
The distance d that gesture is slided on the screen that the dot matrix infrared sensor is formed, the target location are that gesture is red in the dot matrix
Terminal on the screen that outer sensor is formed during sliding distance d;
According to formula d '=M × d/D, the distance d ', the D slided on the touch-screen of the M × M pixel is calculated
Coverage in the dot matrix formed for N × N number of infrared sensor during any one row dot matrix transmission signal.
Second aspect of the present invention provides the device that a kind of simulated touch screen slides, including:
Mapping block, the dot matrix for N × N number of infrared sensor to be formed map to the touch-screen of M × M pixel,
The N and M are the natural number more than 1, and the N is not more than the M;
Gesture trapping module, for capturing the gesture on the screen formed in the dot matrix infrared sensor;
Distance calculation module, for calculating gesture sliding distance on the screen that the dot matrix infrared sensor is formed
The corresponding distance d ' slided on the touch-screen of the M × M pixel during d;
Respond module, for responding the distance d ' slided on the touch-screen of the M × M pixel.
With reference to second aspect, in the first possible implementation of second aspect, described device also includes:
Interpolating module, if be much smaller than M for the N, mapping block reflects the dot matrix that N × N number of infrared sensor is formed
It is incident upon before the touch-screen of M × M pixel, to the N × N number of pixel that will be mapped in M × M pixel on touch-screen
Interpolation processing is carried out, N × N number of pixel is changed into N1×N2Individual pixel, the N1=N × x, the N2=N × y, the x
It is respectively interpolation multiple with y.
With reference to second aspect, in second of possible implementation of second aspect, described device also includes:
Processing module is misidentified, for the capture of gesture trapping module on the screen that the dot matrix infrared sensor is formed
After gesture, pass through backoff algorithm, processing misrecognition action.
With reference to second of possible implementation of second aspect, in the third possible implementation of second aspect
In, the misrecognition processing module includes:
Glide direction judging unit, for judging the gesture on the screen that the dot matrix infrared sensor is formed from
Glide direction of beginning position when sliding into target location;
Filter element, if in preset time, the gesture from the target location along and the glide direction phase
Anti- direction is back to the original position, then it is opposite with the glide direction from target location edge to filter the gesture
Direction is back to event caused by the original position.
With reference to second aspect, in the 4th kind of possible implementation of second aspect, the distance calculation module includes:
First computing unit, for according to original position to any point between target location to N × N number of infrared sensor
In the distance of straight line that forms of any one row infrared sensor and described any point respectively with N number of infrared sensor
Distance, calculates the distance d that the gesture is slided on the screen that the dot matrix infrared sensor is formed, and the target location is hand
Terminal of the gesture in sliding distance d on the screen that the dot matrix infrared sensor is formed;
Second computing unit, for according to formula d '=M × d/D, calculating on the touch-screen of the M × M pixel
The distance d ' slided, the covering when D is any one row dot matrix transmission signal in the dot matrix that N × N number of infrared sensor is formed
Scope.
Third aspect present invention provides a kind of mobile terminal, and the mobile terminal includes the dress that above-mentioned simulated touch screen slides
Put.
It was found from the invention described above technical scheme, due to that the dot matrix that N × N number of infrared sensor is formed can be mapped into M
The touch-screen of × M pixel, after the gesture on the screen that dot matrix infrared sensor is formed is captured, gesture is calculated in dot matrix
The corresponding distance d ' slided on the touch-screen of M × M pixel during sliding distance d on the screen that infrared sensor is formed.Cause
This, technical scheme provided by the invention slides finger on the screen that dot matrix infrared sensor is formed, and can simulate similar touch
The toughness message of screen, realize similar to touch-screen every empty sliding function.
Embodiment
To enable goal of the invention, feature, the advantage of the present invention more obvious and understandable, below in conjunction with the present invention
Accompanying drawing in embodiment, the technical scheme in the embodiment of the present invention is clearly and completely described, it is clear that described reality
It is only part of the embodiment of the present invention to apply example, and not all embodiments.Based on the embodiment in the present invention, the common skill in this area
The every other embodiment that art personnel are obtained under the premise of creative work is not made, belong to the model that the present invention protects
Enclose.
The embodiment of the present invention provides a kind of method that simulated touch screen slides, and methods described includes:By N × N number of infrared biography
The dot matrix that sensor is formed maps to the touch-screen of M × M pixel, and the N and M are the natural number more than 1, and the N is not
More than the M;Capture the gesture on the screen formed in the dot matrix infrared sensor;It is red in the dot matrix to calculate the gesture
The corresponding distance d ' slided on the touch-screen of the M × M pixel during sliding distance d on the screen that outer sensor is formed;
Respond the distance d ' slided on the touch-screen of the M × M pixel.The embodiment of the present invention also provides corresponding simulated touch
Shield the device slided and a kind of mobile terminal.It is described in detail individually below.
Accompanying drawing 1 is referred to, is the implementation process of the method for the simulated touch screen slip that the embodiment of the present invention one provides, it is held
Row main body can be the mobile terminals such as smart mobile phone, tablet personal computer.The method that the simulated touch screen of the example of accompanying drawing 1 slides mainly is wrapped
Following steps S101 is included to step S104:
S101, the dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel.
In embodiments of the present invention, N and M is the natural number more than 1, and N is not more than M.By N × N number of infrared sensor
The dot matrix of composition maps to the touch-screen of M × M pixel, and N equal portions, every part of M/N will be divided into equivalent to by every M pixel
Individual pixel, then, in the dot matrix that N × N number of infrared sensor is formed, each row or first infrared sensing per a line dot matrix
Device corresponds to the M/N pixel of respective column or corresponding line in M × M pixel, and second infrared sensor corresponds to M × M
The 2M/N pixel ... ... of respective column or corresponding line in pixel, n-th infrared sensor are corresponded in M × M pixel
The m-th pixel of respective column or corresponding line.For example, the dot matrix formed for 50 × 50 infrared sensors, is mapped
To the touch-screen of 300 × 300 pixels, then 50 equal portions are divided into by 300, are red by 50 × 50 at interval of 6 pixels
An infrared sensor in the dot matrix that outer sensor is formed is corresponding.Specifically, the dot matrix that 50 × 50 infrared sensors are formed
In each row or corresponding 300 × 300 pixels of the 1st infrared sensor per a line dot matrix in respective column or corresponding line
6th pixel, the 2nd infrared sensor correspond to respective column or the 12nd pixel of corresponding line in 300 × 300 pixels
Point ... ..., the 50th infrared sensor correspond to the 300th pixel of respective column or corresponding line in 300 × 300 pixels.
It should be noted that when M/N is not integer, M/N is rounded or rounded up downwards depending on situation.Once N × N number of infrared sensing
The dot matrix that device is formed maps to the touch-screen of M × M pixel, then can be by continuous sensor caused by gesture motion
(Sensor) data are converted into continuous motion event (MotionEvent) data, and the touch-screen equivalent to M × M resolution ratio produces
Raw data.
When N is much smaller than M, the dot matrix that N × N number of infrared sensor is formed directly is mapped to the touch of M × M pixel
After screen, the pixel being mapped is very little, then, the sliding effect finally simulated is not smooth, feels it is a card to user
One card, experience is bad.Therefore, in embodiments of the present invention, can be to that will be mapped in M × M pixel on touch-screen
N × N number of pixel carry out interpolation processing, N × N number of pixel is changed into N1×N2Individual pixel, wherein, N1=N × x, N2=
N × y, x and y are respectively interpolation multiple.
For example, the dot matrix formed for 50 × 50 infrared sensors maps to the touch of 3000 × 3000 pixels
Screen, because 50 and 3000 are separated by 60 times, 50 can be considered as and be much smaller than 3000, in this way, directly by 50 × 50 infrared sensor structures
Into dot matrix map to the touch-screen of 3000 × 3000 pixels after, the pixel that is mapped very little (only 50, relative to
3000 very little), then, the sliding effect finally simulated is not smooth, feels it is a card to user, and experience is not
It is good.In embodiments of the present invention, the dot matrix that 50 × 50 infrared sensors are formed such as is mapped into 3000 × 3000 pixels
Touch-screen, then be divided into 50 equal portions by 3000, the dot matrix formed at interval of 60 pixels by 50 × 50 infrared sensors
In an infrared sensor it is corresponding, i.e. each row in the dot matrix that 50 × 50 infrared sensors are formed or per a line dot matrix
Corresponding 3000 × 3000 pixels of the 1st infrared sensor in the 60th pixel of respective column or corresponding line, the 2nd is red
120th pixel ... ... of respective column or corresponding line in corresponding 3000 × 3000 pixels of outer sensor, it is the 50th infrared
3000th pixel of respective column or corresponding line in corresponding 3000 × 3000 pixels of sensor.If on touch-screen 3000
50 × 50 pixels will being mapped in × 3000 pixels carry out interpolation processing, for example, according to 10 times of interpolation multiple
Carry out interpolation, then equivalent to it is each row or per a line 3000 pixels in, in the 1st pixel to the 60th pixel
In at interval of 6 pixels insert a pixels, i.e., insert 10 pixels altogether into the 60th pixel in the 1st pixel
Point, a pixel is inserted at interval of 6 pixels into the 120th pixel in the 61st pixel, i.e., in the 61st picture
Vegetarian refreshments inserts 10 pixels ... ... altogether into the 60th pixel, in the 2941st pixel into the 3000th pixel
A pixel is inserted at interval of 6 pixels, i.e., inserts 10 pictures altogether into the 300th pixel in the 2941st pixel
Vegetarian refreshments, in this way, 500 pixels are inserted altogether, it is every in 3000 × 3000 pixels plus 50 pixels being mapped
A line or each row are 550 pixels altogether, relative to 50 pixels before no interpolation, are simulated again in the mapped
Gesture is slided, and can greatly improve fluency, reduces the sensation of a card.
S102, capture the gesture on the screen formed in N × N dot matrix infrared sensor.
In embodiments of the present invention, when finger is sliding on the screen that dot matrix infrared sensor is formed, array sensor is put
In each infrared sensor can capture sensing data;With finger slip and each infrared sensor capture, i.e.,
The gesture on the screen formed in N × N dot matrix infrared sensor (dot matrix that N × N number of sensor is formed) can be captured.
Because certain user from a place by finger when sliding into another place, start bit may be immediately fallen back to
Put.According to being ready for user, the short time returns to original position and should not be identified.If identification, is exactly to misidentify.In order to
Prevent the generation of this situation, in embodiments of the present invention, capture dot matrix infrared sensor form screen on gesture it
Afterwards, methods described also includes:Pass through backoff algorithm, processing misrecognition action.Specifically, point of the gesture in N × N can first be judged
Glide direction when sliding into target location from original position on the screen that battle array infrared sensor is formed, then, if when default
In, for example, in 800ms, the gesture is back to original position from target location along the direction opposite with glide direction, then mistake
Filter the gesture and be back to thing caused by the original position from the target location along the direction opposite with the glide direction
Part.Once this kind of event is filtered, then follow-up system does not have the response of opponent's gesture, from without sliding effect.
S103, it is corresponding at M × M in sliding distance d on the screen that N × N dot matrix infrared sensor is formed to calculate gesture
The distance d ' slided on the touch-screen of pixel.
Specifically, as one embodiment of the invention, gesture is calculated on the screen that N × N dot matrix infrared sensor is formed
The corresponding distance d ' slided on the touch-screen of M × M pixel may include steps of S1031 and step during sliding distance d
Rapid S1032:
S1031, according to any one row in original position to any point between target location to N × N number of infrared sensor
The distance and described any point distance with N number of dot matrix respectively for the straight line that infrared sensor is formed, calculate the hand
The distance d that gesture is slided on the screen that N × N dot matrix infrared sensor is formed, wherein, target location is that gesture is red in N × N dot matrix
Terminal on the screen that outer sensor is formed during sliding distance d.
S1032, according to formula d '=M × d/D, the distance d ' slided on the touch-screen of M × M pixel is calculated, its
In, coverage when D is any one row dot matrix transmission signal in the dot matrix that N × N number of infrared sensor is formed.
By taking the dot matrix that 4 × 4 infrared sensors are formed as an example, as shown in accompanying drawing 2-a.As shown in accompanying drawing 2-b, it is assumed that 4 × 4
Any one row infrared sensor dot matrix is that 4 infrared sensors (in figure shown in 4 stains, distinguish by numbering in individual infrared sensor
For 1,2,3 and 4, referred to as infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4 individually below) detection
Target location (in figure shown in circle), original position to mesh are slided into (in figure shown in blacking triangle) to gesture from original position
The distance of cursor position represented using d, and coverage during 4 infrared sensor transmission signals is represented in figure using D, start bit
Any one row infrared sensor (4 infrared sensors) is put to any point between target location into 4 × 4 infrared sensors
The distance of the straight line of composition represented in figure using Lmin, and (one just in figure for original position to any point between target location
Shown in square stain) use L1, L2, L3 and L4 to represent with the distances of 4 infrared sensors respectively.
Assuming that only have infrared sensor 1 to detect target location in original position, original position to infrared sensor 1 away from
From for L11, as shown in accompanying drawing 2-c, then original position to the position d1 of a period of time inspection center's point can be according to trigonometric function formula
ObtainIn kind calculate the d2, so distance d=d1+d2 in upper figure.If infrared sensor 1
Target location is can't detect, is just that coordinate points calculate lengthwise position with infrared sensor 2, and assumes the detection of infrared sensor 1
Scope is symmetrical i.e. d=2 × d1+d3 up and down, it is assumed herein that being the fore-and-aft distance that coordinate points calculate with infrared sensor 2.
After the distance d that gesture is slided on the screen that N × N dot matrix infrared sensor is formed is calculated, according to formula d '
=M × d/D, easily calculate the distance d ' slided on the touch-screen of M × M pixel.
S104, respond the distance d ' slided on the touch-screen of M × M pixel.
It was found from the method that the simulated touch screen of the above-mentioned example of accompanying drawing 1 slides, due to can be by N × N number of infrared sensor
The dot matrix of composition maps to the touch-screen of M × M pixel, in gesture of the capture on the screen that dot matrix infrared sensor is formed
Afterwards, gesture corresponding touch-screen in M × M pixel in sliding distance d on the screen that dot matrix infrared sensor is formed is calculated
The distance d ' of upper slip.Therefore, technical scheme provided by the invention slides finger on the screen that dot matrix infrared sensor is formed,
The toughness message of similar touch-screen can be simulated, is realized similar to touch-screen every empty sliding function.
Accompanying drawing 3 is referred to, is the structural representation of the device for the simulated touch screen slip that the embodiment of the present invention two provides.For
It is easy to illustrate, illustrate only the part related to the embodiment of the present invention.The device that the simulated touch screen of the example of accompanying drawing 3 slides can
To be the executive agent for the method that the simulated touch screen of previous embodiment offer slides, it can be intelligent terminal or therein
One function module.The device that the simulated touch screen of the example of accompanying drawing 3 slides mainly includes mapping block 301, gesture trapping module
302nd, distance calculation module 303 and respond module 304, each functional module describe in detail as follows:
Mapping block 301, the dot matrix for N × N number of infrared sensor to be formed map to the touch of M × M pixel
Screen.
In embodiments of the present invention, N and M is the natural number more than 1, and N is not more than M.Mapping block 301 is by N × N number of
The dot matrix that infrared sensor is formed maps to the touch-screen of M × M pixel, and N etc. will be divided into equivalent to by every M pixel
Part, every part of M/N pixel, then, in the dot matrix that N × N number of infrared sensor is formed, each row or often the first of a line dot matrix
Individual infrared sensor corresponds to the M/N pixel of respective column or corresponding line in M × M pixel, second infrared sensor
The 2M/N pixel ... ... of respective column or corresponding line in corresponding M × M pixel, n-th infrared sensor correspond to M × M
The m-th pixel of respective column or corresponding line in individual pixel.For example, the dot matrix formed for 50 × 50 infrared sensors,
Mapping block 301 is mapped to the touch-screen of 300 × 300 pixels, then is divided into 50 equal portions by 300, at interval of 6
Pixel is that an infrared sensor in the dot matrix formed by 50 × 50 infrared sensors is corresponding.Specifically, 50 × 50
Each row in the dot matrix that infrared sensor is formed or corresponding 300 × 300 pixels of the 1st infrared sensor per a line dot matrix
6th pixel of respective column or corresponding line in point, in corresponding 300 × 300 pixels of the 2nd infrared sensor respective column or
12nd pixel ... ... of corresponding line, the 50th infrared sensor correspond to respective column or corresponding in 300 × 300 pixels
The 300th capable pixel.It should be noted that when M/N is not integer, M/N is rounded or rounded up downwards depending on situation.
Once the dot matrix that N × N number of infrared sensor is formed maps to the touch-screen of M × M pixel, then gesture motion can be produced
Continuous sensor (Sensor) data be converted into continuous motion event (MotionEvent) data, equivalent to M × M point
Data caused by the touch-screen of resolution.
Gesture trapping module 302, for capturing the gesture on the screen formed in N × N dot matrix infrared sensor.
In embodiments of the present invention, when finger is sliding on the screen that dot matrix infrared sensor is formed, array sensor is put
In each infrared sensor can capture sensing data;With the slip of finger and the capture of each infrared sensor, hand
Gesture trapping module 302 can be captured on the screen formed in N × N dot matrix infrared sensor (dot matrix that N × N number of sensor is formed)
Gesture.
Distance calculation module 303, for calculating gesture sliding distance d on the screen that N × N dot matrix infrared sensor is formed
When the corresponding distance d ' slided on the touch-screen of M × M pixel;
Respond module 304, for responding the distance d ' slided on the touch-screen of M × M pixel.
It should be noted that in the embodiment for the device that the simulated touch screen of the example of the figures above 3 slides, each function mould
The division of block is merely illustrative of, can be as needed in practical application, such as the configuration requirement of corresponding hardware or software
The convenient consideration of realization, and above-mentioned function distribution is completed by different functional modules, will the simulated touch screen slide
The internal structure of device is divided into different functional modules, to complete all or part of function described above.It is moreover, actual
In, the corresponding functional module in the present embodiment can be realized by corresponding hardware, can also be held by corresponding hardware
The corresponding software of row is completed, for example, foregoing mapping block, can have execution is foregoing to form N × N number of infrared sensor
Dot matrix map to M × M pixel touch-screen hardware, such as mapper or be able to carry out corresponding computer
Program is so as to completing the general processor of foregoing function or other hardware devices;Gesture trapping module as the aforementioned again, can be with
It is to perform the hardware for capturing the gesture on the screen of dot matrix infrared sensor composition, such as gesture grabber, can also
It is to be able to carry out corresponding computer program so as to complete the general processor of foregoing function or other hardware device (this specification
The each embodiment provided can all apply foregoing description principle).
It was found from the device that the simulated touch screen of the above-mentioned example of accompanying drawing 3 slides, because mapping block can be by N × N number of red
The dot matrix that outer sensor is formed maps to the touch-screen of M × M pixel, is captured in gesture trapping module in dot matrix infrared sensing
Device form screen on gesture after, distance calculation module calculate gesture slided on the screen that dot matrix infrared sensor is formed away from
It is corresponding during from d that distance d ' is slided on the touch-screen of M × M pixel.Therefore, technical scheme provided by the invention is in dot matrix
Finger is slided on the screen that infrared sensor is formed, the toughness message of similar touch-screen can be simulated, realize and be similar to touch
Screen every empty sliding function.
The device that the simulated touch screen of the example of accompanying drawing 3 slides can also include interpolating module 401, as shown in Figure 4 this hair
The device that the simulated touch screen that bright embodiment three provides slides.If interpolating module 401 is much smaller than M for N, mapping block 301
Before the dot matrix that N × N number of infrared sensor is formed is mapped into the touch-screen of M × M pixel, to M × M picture on touch-screen
The N that will be mapped in vegetarian refreshments × N number of pixel carries out interpolation processing, N × N number of pixel is changed into N1×N2Individual pixel, its
In, N1=N × x, N2=N × y, x and y are respectively interpolation multiple.
When N is much smaller than M, the dot matrix that N × N number of infrared sensor is formed directly is mapped to M × M by mapping block 301
After the touch-screen of pixel, the pixel being mapped is very little, then, the sliding effect finally simulated is not smooth, to user
Feel it is a card, experience it is bad.Therefore, in embodiments of the present invention, interpolating module 401 can be to M on touch-screen
The N that will be mapped in × M pixel × N number of pixel carries out interpolation processing, N × N number of pixel is changed into N1×N2Individual picture
Vegetarian refreshments, wherein, N1=N × x, N2=N × y, x and y are respectively interpolation multiple.
For example, the dot matrix formed for 50 × 50 infrared sensors maps to the touch of 3000 × 3000 pixels
Screen, because 50 and 3000 are separated by 60 times, 50 can be considered as and be much smaller than 3000, in this way, mapping block 301 is directly red by 50 × 50
After the dot matrix that outer sensor is formed maps to the touch-screen of 3000 × 3000 pixels, the pixel being mapped (only has very little
50, relative to 3000 very little), then, the sliding effect finally simulated is not smooth, feels it is a card to user
, experience is bad.In embodiments of the present invention, the dot matrix formed 50 × 50 infrared sensors such as mapping block 301 maps
To the touch-screen of 3000 × 3000 pixels, then 50 equal portions are divided into by 3000, at interval of 60 pixels by 50 × 50
An infrared sensor in the dot matrix that infrared sensor is formed is corresponding, i.e. in the dot matrix that 50 × 50 infrared sensors are formed
Each row or corresponding 3000 × 3000 pixels of the 1st infrared sensor per a line dot matrix in respective column or corresponding line
60th pixel, the 2nd infrared sensor correspond to the 120th picture of respective column or corresponding line in 3000 × 3000 pixels
Vegetarian refreshments ... ..., the 50th infrared sensor correspond to the 3000th picture of respective column or corresponding line in 3000 × 3000 pixels
Vegetarian refreshments.If interpolating module 401 clicks through to 50 × 50 pixels that will be mapped in 3000 × 3000 pixels on touch-screen
Row interpolation processing, for example, carrying out interpolation again according to interpolation multiple 10, then equivalent to 3000 pixels in each row or per a line
In point, a pixel is inserted at interval of 6 pixels into the 60th pixel in the 1st pixel, i.e., in the 1st pixel
O'clock insert 10 pixels altogether into the 60th pixel, the 61st pixel into the 120th pixel at interval of 6 pictures
Vegetarian refreshments inserts a pixel, i.e., inserts 10 pixels ... ... altogether into the 60th pixel in the 61st pixel, the
2941 pixels insert a pixel into the 3000th pixel at interval of 6 pixels, i.e., in the 2941st pixel
O'clock 10 pixels are inserted altogether into the 300th pixel, in this way, 500 pixels are inserted altogether, plus 50 be mapped
Individual pixel, per a line or each row are 550 pixels altogether in 3000 × 3000 pixels, relative to no interpolation
50 pixels before, simulate gesture slip again in the mapped, fluency can be greatly improved, reduce the sense of a card
Feel.
The device that the simulated touch screen of the example of accompanying drawing 3 slides can also include misrecognition processing module 501, such as the institute of accompanying drawing 5
Show the device that the simulated touch screen that the embodiment of the present invention four provides slides.Misrecognition processing module 501 is used for gesture trapping module
After gesture of 302 captures on the screen that N × N dot matrix infrared sensor is formed, by backoff algorithm, processing misrecognition is dynamic
Make.Because certain user from a place by finger when sliding into another place, original position may be immediately fallen back to.Press
According to being ready for user, the short time returns to original position and should not be identified.If identification, is exactly to misidentify.In order to prevent
The generation of this situation, in embodiments of the present invention, gesture trapping module 302 capture the screen formed in dot matrix infrared sensor
On gesture after, misrecognition processing module 501 pass through backoff algorithm, processing misrecognition action.
The misrecognition processing module 501 of the example of accompanying drawing 5 can include glide direction judging unit 601 and filter element 602,
The device that the simulated touch screen that the embodiment of the present invention five provides as shown in Figure 6 slides, wherein:
Glide direction judging unit 601, for judging gesture on the screen that N × N dot matrix infrared sensor is formed from
Glide direction of beginning position when sliding into target location;
Filter element 602, if in preset time, gesture to be returned from target location along the direction opposite with glide direction
Original position is back to, then filters gesture and is back to the starting from the target location along the direction opposite with the glide direction
Event caused by position.
The distance calculation module 303 of the example of accompanying drawing 3 can include the first computing unit 701 and the second computing unit 702, such as
The device that the simulated touch screen that the embodiment of the present invention six shown in accompanying drawing 7 provides slides, wherein:
First computing unit 701, for according to original position to any point between target location to N × N number of infrared biography
In sensor the distance for the straight line that any one row infrared sensor is formed and described any point respectively with N number of infrared sensor
Distance, the distance d that gesture is slided on the screen that N × N dot matrix infrared sensor is formed is calculated, wherein, target location is gesture
Terminal in sliding distance d on the screen that N × N dot matrix infrared sensor is formed;
Second computing unit 702, for according to formula d '=M × d/D, calculating sliding on the touch-screen of M × M pixel
Dynamic distance d ', the covering model when D is any one row dot matrix transmission signal in the dot matrix that N × N number of infrared sensor is formed
Enclose.
The circular of first computing unit 701 and the second computing unit 702, aforementioned figures 2-a is see to attached
Fig. 2-c and its corresponding explanatory note, are not repeated herein.
The embodiment of the present invention also provides a kind of mobile terminal, and the mobile terminal includes accompanying drawing 3 to any example of accompanying drawing 7 and provided
Simulated touch screen slide device.
It should be noted that the content such as information exchange, implementation procedure between each module/unit of said apparatus, due to
The inventive method embodiment is based on same design, and its technique effect brought is identical with the inventive method embodiment, particular content
Reference can be made to the narration in the inventive method embodiment, here is omitted.
Those of ordinary skill in the art are it is to be appreciated that the list of each example described with reference to the embodiments described herein
Member and algorithm steps, it can be realized with the combination of electronic hardware or computer software and electronic hardware.These functions are actually
Performed with hardware or software mode, application-specific and design constraint depending on technical scheme.Professional and technical personnel
Described function can be realized using distinct methods to each specific application, but this realization is it is not considered that exceed
The scope of the present invention.
It is apparent to those skilled in the art that for convenience and simplicity of description, the system of foregoing description,
The specific work process of device and unit, the corresponding process in preceding method embodiment is may be referred to, will not be repeated here.
In several embodiments provided herein, it should be understood that disclosed systems, devices and methods, can be with
Realize by another way.For example, device embodiment described above is only schematical, for example, the unit
Division, only a kind of division of logic function, can there is other dividing mode, such as multiple units or component when actually realizing
Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or
The mutual coupling discussed or direct-coupling or communication connection can be the indirect couplings by some interfaces, device or unit
Close or communicate to connect, can be electrical, mechanical or other forms.
The unit illustrated as separating component can be or may not be physically separate, show as unit
The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple
On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs
's.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, can also
That unit is individually physically present, can also two or more units it is integrated in a unit.
If the function is realized in the form of SFU software functional unit and is used as independent production marketing or in use, can be with
It is stored in a computer read/write memory medium.Based on such understanding, technical scheme is substantially in other words
The part to be contributed to prior art or the part of the technical scheme can be embodied in the form of software product, the meter
Calculation machine software product is stored in a storage medium, including some instructions are causing a computer equipment (can be
People's computer, server, or network equipment etc.) perform all or part of step of each embodiment methods described of the present invention.
And foregoing storage medium includes:USB flash disk, mobile hard disk, read-only storage (ROM, Read-Only Memory), arbitrary access are deposited
Reservoir (RAM, Random Access Memory), magnetic disc or CD etc. are various can be with the medium of store program codes.
The foregoing is only a specific embodiment of the invention, but protection scope of the present invention is not limited thereto, any
Those familiar with the art the invention discloses technical scope in, change or replacement can be readily occurred in, should all be contained
Cover within protection scope of the present invention.Therefore, protection scope of the present invention described should be defined by scope of the claims.