CN104808856B - The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides - Google Patents

The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides Download PDF

Info

Publication number
CN104808856B
CN104808856B CN201510222170.9A CN201510222170A CN104808856B CN 104808856 B CN104808856 B CN 104808856B CN 201510222170 A CN201510222170 A CN 201510222170A CN 104808856 B CN104808856 B CN 104808856B
Authority
CN
China
Prior art keywords
screen
infrared sensor
dot matrix
pixel
touch
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.)
Expired - Fee Related
Application number
CN201510222170.9A
Other languages
Chinese (zh)
Other versions
CN104808856A (en
Inventor
王健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN201510222170.9A priority Critical patent/CN104808856B/en
Publication of CN104808856A publication Critical patent/CN104808856A/en
Application granted granted Critical
Publication of CN104808856B publication Critical patent/CN104808856B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The method, apparatus slided the invention discloses a kind of simulated touch screen and a kind of mobile terminal, it is similar to touch-screen every empty sliding effect to realize.Methods described includes: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 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;Calculate the gesture corresponding distance d ' slided on the touch-screen of the M × M pixel in sliding distance d on the screen that the dot matrix infrared sensor is formed;Respond the distance d ' slided on the touch-screen of the M × M pixel.Technical scheme provided by the invention slides finger on the screen that dot matrix infrared sensor is formed, and can simulate the toughness message of similar touch-screen, realize similar to touch-screen every empty sliding function.

Description

The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides
Technical field
The invention belongs to moving communicating field, more particularly to the method, apparatus that a kind of simulated touch screen slides to move with a kind of Dynamic terminal.
Background technology
The rapid development of intelligent terminal technology so that touch-screen is propagated its belief on a large scale on smart mobile phone.From technical principle angle Say, touch-screen is a set of transparent absolute positioning system.The characteristics of absolute coordinate system is that the elements of a fix are determined with the last time each time Position coordinate is not related, and touch-screen is physically a set of independent coordinate positioning, and the data touched every time pass through calibration Data switch to the coordinate on screen.Various touch screen technologies are all to carry out work by respective sensor.Respective positioning is former Reason and sensor each used determine reaction speed, reliability, stability and the life-span of touch-screen.
At present, dot matrix infrared sensor (Sensor) on the market be present, such a dot matrix infrared sensor is two dimensional surface point Battle array.By taking 4 × 4 dot matrix as an example, infrared sensor uploads packet and contains two classes, and one kind is to identify the bearing data mark after gesture Know, this kind of data be it is discontinuous report, another kind of is the initial data for reporting each infrared sensor in dot matrix, this kind of number According to being continuously to report.
Research of the inventor to above-mentioned dot matrix infrared sensor finds that such a dot matrix infrared sensor has the number of two dimensional surface According to infrared sensor identification gesture is reported to upper strata i.e. Java layers afterwards.Upper layer application completes the direction according to the direction of identification The whole page at upper interface slides, however, can not but realize that similar touch-screen sliding distance follows the effect of finger position.
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.
Brief description of the drawings
In order to illustrate more clearly about the embodiment of the present invention or technical scheme of the prior art, below will be to embodiment or existing There is the required accompanying drawing used in technology description to be briefly described, it should be apparent that, drawings in the following description are only this Some embodiments of invention, for those of ordinary skill in the art, without having to pay creative labor, may be used also To obtain other accompanying drawings according to these accompanying drawings.
Fig. 1 is the implementation process schematic diagram for the method that the simulated touch screen that the embodiment of the present invention one provides slides;
Fig. 2-a are the dot matrix schematic diagrames that 4 × 4 infrared sensors provided in an embodiment of the present invention are formed;
Fig. 2-b calculate gesture exemplified by being the dot matrix provided in an embodiment of the present invention formed by 4 × 4 infrared sensors Correspond to what is slided on the touch-screen of M × M pixel in sliding distance d on the screen that N × N dot matrix infrared sensor is formed The schematic diagrames of distance d ' first;
Fig. 2-c calculate gesture exemplified by being the dot matrix provided in an embodiment of the present invention formed by 4 × 4 infrared sensors Correspond to what is slided on the touch-screen of M × M pixel in sliding distance d on the screen that N × N dot matrix infrared sensor is formed The schematic diagrames of distance d ' second;
Fig. 3 is the structural representation for the device that the simulated touch screen that the embodiment of the present invention two provides slides;
Fig. 4 is the structural representation for the device that the simulated touch screen that the embodiment of the present invention three provides slides;
Fig. 5 is the structural representation for the device that the simulated touch screen that the embodiment of the present invention four provides slides;
Fig. 6 is the structural representation for the device that the simulated touch screen that the embodiment of the present invention five provides slides;
Fig. 7 is the structural representation for the device that the simulated touch screen that the embodiment of the present invention six provides slides.
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.

Claims (9)

1. a kind of method that simulated touch screen slides, it is characterised in that methods described includes:
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 more than 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 picture 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 vegetarian refreshments;
Respond the distance d ' slided on the touch-screen of the M × M pixel;
Wherein, the calculating gesture is corresponding in institute in sliding distance d on the screen that the dot matrix infrared sensor is formed The distance d ' slided on the touch-screen of M × M pixel is stated, including:
According to any one row infrared sensor in original position to any point between target location to N × N number of infrared sensor The distance of the straight line of composition and described any point distance with N number of infrared sensor in the row respectively, described in calculating The distance d that gesture is slided on the screen that the dot matrix infrared sensor is formed, the target location are gesture in the dot matrix Terminal on the screen that infrared sensor is formed during sliding distance d;
According to formula d '=M × d/D, it is N to calculate the distance d ', the D slided on the touch-screen of the M × M pixel Coverage in the dot matrix that × N number of infrared sensor is formed during any one row dot matrix transmission signal.
2. the method as described in claim 1, it is characterised in that if the N is much smaller than the M, by N × N number of infrared sensing The dot matrix that device 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 Point is changed into N1×N2Individual pixel, the N1=N × x, the N2=N × y, the x and y are respectively interpolation multiple;
Wherein, the N is specially much smaller than the M:The value of the M be the N 60 times of value and more than.
3. the method as described in claim 1, it is characterised in that the screen that the capture is formed in the dot matrix infrared sensor On gesture after, methods described also includes:
Pass through backoff algorithm, processing misrecognition action.
4. method as claimed in claim 3, it is characterised in that described to be included by backoff algorithm, processing misrecognition action:
Judge the gesture when sliding into target location from original position on the screen that the dot matrix infrared sensor is formed Glide direction;
If in preset time, the gesture is back to described from the target location along the direction opposite with the glide direction Original position, then filter the gesture and be back to the starting from the target location along the direction opposite with the glide direction Event caused by position.
5. the device that a kind of simulated touch screen slides, it is characterised in that described device includes:
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 It is the natural number more than 1 with M, 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 the gesture in sliding distance d 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;
Respond module, for responding the distance d ' slided on the touch-screen of the M × M pixel;
Wherein, the distance calculation module includes:
First computing unit, for appointing according in original position to any point between target location to N × N number of infrared sensor A row infrared sensor of anticipating form straight line distance and described any point respectively with N number of infrared sensor in the row Distance, calculate the distance d that the gesture is slided on the screen that the dot matrix infrared sensor is formed, the target location is 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 and being slided on the touch-screen of the M × M pixel Distance d ', the coverage when D is any one row dot matrix transmission signal in the dot matrix that N × N number of infrared sensor is formed.
6. device as claimed in claim 5, it is characterised in that described device also includes:
Interpolating module, if be much smaller than the 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;
Wherein, the N is specially much smaller than the M:The value of the M be the N 60 times of value and more than.
7. device as claimed in claim 5, it is characterised in that described device also includes:
Processing module is misidentified, for gesture of the gesture trapping module capture on the screen that the dot matrix infrared sensor is formed Afterwards, backoff algorithm, processing misrecognition action are passed through.
8. device as claimed in claim 7, it is characterised in that 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 start bit Put glide direction when sliding into target location;
Filter element, if in preset time, the gesture to be opposite with the glide direction from target location edge Direction is back to the original position, then filters the gesture from the target location edge direction opposite with the glide direction It is back to event caused by the original position.
9. a kind of mobile terminal, it is characterised in that the mobile terminal includes the simulation described in claim 5 to 8 any one The device that touch-screen slides.
CN201510222170.9A 2015-05-04 2015-05-04 The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides Expired - Fee Related CN104808856B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510222170.9A CN104808856B (en) 2015-05-04 2015-05-04 The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510222170.9A CN104808856B (en) 2015-05-04 2015-05-04 The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides

Publications (2)

Publication Number Publication Date
CN104808856A CN104808856A (en) 2015-07-29
CN104808856B true CN104808856B (en) 2018-01-16

Family

ID=53693740

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510222170.9A Expired - Fee Related CN104808856B (en) 2015-05-04 2015-05-04 The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides

Country Status (1)

Country Link
CN (1) CN104808856B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107656681A (en) * 2016-07-26 2018-02-02 中兴通讯股份有限公司 A kind of method and device of slide on simulated touch screen
CN106371595B (en) * 2016-08-31 2020-10-30 维沃移动通信有限公司 Method for calling out message notification bar and mobile terminal
CN110045819B (en) * 2019-03-01 2021-07-09 华为技术有限公司 Gesture processing method and device
CN113671855A (en) * 2021-08-20 2021-11-19 广东好太太智能家居有限公司 Clothes airing equipment control method, device and system and clothes airing equipment

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346061A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Control method and electronic equipment

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101632311B1 (en) * 2010-12-30 2016-06-22 삼성전자주식회사 Panel type camera, optical touch screen and display apparatus employing the same

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104346061A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Control method and electronic equipment

Also Published As

Publication number Publication date
CN104808856A (en) 2015-07-29

Similar Documents

Publication Publication Date Title
CN112797897B (en) Method and device for measuring geometric parameters of object and terminal
CN104808856B (en) The method, apparatus and a kind of mobile terminal that a kind of simulated touch screen slides
CN101324828B (en) Method and device for operating multi-point touch enabled device
CN102937848B (en) Method for editing handwritings and electronic equipment
CN105159539B (en) Touch-control response method, device and the wearable device of wearable device
DE102010028983A1 (en) Two-dimensional touch sensors
KR20150067250A (en) Touchless input for a user interface
CN102810015B (en) Input method based on space motion and terminal
CN102937850B (en) Method for beautifying handwriting in real time and electronic equipment
CN103679788B (en) The generation method and device of 3D rendering in a kind of mobile terminal
CN103793683B (en) Gesture recognition method and electronic device
CN101799717A (en) Man-machine interaction method based on hand action catch
US11009949B1 (en) Segmented force sensors for wearable devices
CN104081307A (en) Image processing apparatus, image processing method, and program
CN105184200B (en) Input object identification device, method and the device with RFID label tag
CN102214039A (en) Multi-mode prosthetic device to facilitate multi-state touch screen detection
CN103399629A (en) Method and device for capturing gesture displaying coordinates
CN109933190B (en) Head-mounted display equipment and interaction method thereof
CN103176606B (en) Based on plane interaction system and the method for binocular vision identification
CN109701271A (en) Show the methods, devices and systems of icon
CN111539481A (en) Image annotation method and device, electronic equipment and storage medium
EP3647917A1 (en) Electronic whiteboard system and operation method
CN103823584B (en) Sensing method of touch control and portable electronic devices
CN107682595A (en) A kind of alternative projection method, system and computer-readable recording medium
CN111025039A (en) Method, device, equipment and medium for testing accuracy of touch display screen

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
EXSB Decision made by sipo to initiate substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right
TA01 Transfer of patent application right

Effective date of registration: 20170323

Address after: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Applicant after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: 518000 Guangdong city of Shenzhen province Nanshan District Gao Xin Road No. 013 Fu technology building B block 6 Building

Applicant before: SHENZHEN OPPO COMMUNICATION SOFTWARE Co.,Ltd.

GR01 Patent grant
GR01 Patent grant
CP03 Change of name, title or address
CP03 Change of name, title or address

Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18

Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

Address before: Changan town in Guangdong province Dongguan 523841 usha Beach Road No. 18

Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd.

CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180116