CN104808856A - Method and device for simulating sliding of touch screen and mobile terminal - Google Patents

Method and device for simulating sliding of touch screen and mobile terminal Download PDF

Info

Publication number
CN104808856A
CN104808856A CN201510222170.9A CN201510222170A CN104808856A CN 104808856 A CN104808856 A CN 104808856A CN 201510222170 A CN201510222170 A CN 201510222170A CN 104808856 A CN104808856 A CN 104808856A
Authority
CN
China
Prior art keywords
screen
infrared sensor
pixel
dot matrix
gesture
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201510222170.9A
Other languages
Chinese (zh)
Other versions
CN104808856B (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
SHENZHEN OPPO COMMUNICATION SOFTWARE Co 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 SHENZHEN OPPO COMMUNICATION SOFTWARE Co Ltd filed Critical SHENZHEN OPPO COMMUNICATION SOFTWARE Co 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

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The invention discloses a method and a device for simulating the sliding of a touch screen and a mobile terminal, which achieve an air-crossing sliding effect similar to the touch screen. The method comprises the following steps of mapping a lattice formed by N*N infrared sensors to the touch screen with M*M pixel points, wherein the N and the M are natural numbers greater than 1, and the N is not greater than the M; capturing a gesture on the screen formed by the lattice infrared sensors; calculating the corresponding sliding distance d on the touch screen with the M*M pixel points when the sliding distance of the gesture on the screen formed by the lattice infrared sensors is d; responding to the sliding distance d on the touch screen with the M*M pixel points. According to the technical scheme provided by the invention, a finger slides on the touch screen formed by the lattice infrared sensors; a viscous message similar to the touch screen can be simulated; the air-crossing sliding function similar to the touch screen is realized.

Description

Method, device and a kind of mobile terminal that a kind of simulate is slided
Technical field
The invention belongs to moving communicating field, particularly relate to method, device and a kind of mobile terminal that a kind of simulate is slided.
Background technology
The develop rapidly of intelligent terminal technology, makes touch-screen propagate its belief on a large scale on smart mobile phone.From know-why angle, touch-screen is a set of transparent absolute positioning system.The feature of absolute coordinate system be each time the elements of a fix and the last elements of a fix it doesn't matter, touch-screen is a set of independently coordinate positioning physically, and each data touched transfer the coordinate on screen to by calibration data.Various touch screen technology is all rely on respective sensor to carry out work.Respective positioning principle and sensor used separately determine the reaction velocity of touch-screen, reliability, stability and life-span.
At present, there is dot matrix infrared sensor (Sensor) on the market, this kind of dot matrix infrared sensor is two dimensional surface dot matrix.For 4 × 4 dot matrix, infrared sensor uploading data comprises two classes, and a class is the directional data mark identified after gesture, and these class data are discontinuous reporting, another kind of is the raw data reporting each infrared sensor in dot matrix, and these class data report continuously.
Inventor finds the research of above-mentioned dot matrix infrared sensor, and this kind of dot matrix infrared sensor has the data of two dimensional surface, is reported to upper strata and Java layer after infrared sensor identification gesture.Upper layer application is according to the direction identified, the whole page completing the party upwards interface slides, but, but cannot realize the effect that similar touch-screen sliding distance follows finger position.
Summary of the invention
The invention provides a kind of method that simulate slides, device and a kind of mobile terminal, similar to touch-screen every empty sliding effect to realize.
A kind of method that first aspect present invention provides simulate to slide, comprising:
The dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel, described N and M is the natural number being greater than 1, and described N is not more than described M;
Be captured in the gesture on the screen of described dot matrix infrared sensor formation;
Calculate the described gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed;
Respond the distance d ' slided on the touch-screen of described M × M pixel.
In conjunction with first aspect, in the first possible implementation of first aspect, if described N is much smaller than M, then, before the dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, described method also comprises:
Carry out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, make N × N number of pixel become N 1× N 2individual pixel, described N 1=N × x, described N 2=N × y, described x and y is respectively interpolation multiple.
In conjunction with first aspect, in the implementation that the second of first aspect is possible, described in be captured in described dot matrix infrared sensor form screen on gesture after, described method also comprises:
By backoff algorithm, process is identification maneuver by mistake.
In conjunction with the implementation that the second of first aspect is possible, in the third possible implementation of first aspect, described by backoff algorithm, process by mistake identification maneuver comprises:
Judge glide direction when described gesture slides into target location from reference position on the screen that described dot matrix infrared sensor is formed;
If in Preset Time, described gesture is back to described reference position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described reference position produces from described target location along the direction contrary with described glide direction.
In conjunction with first aspect, in the 4th kind of possible implementation of first aspect, the described gesture of the described calculating distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed, comprising:
The distance of straight line formed according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of described N number of infrared sensor, calculate the distance d that screen that described gesture forms at described dot matrix infrared sensor slides, described target location is the terminal of gesture on the screen that described dot matrix infrared sensor is formed during sliding distance d;
According to formula d '=M × d/D, calculate the distance d ' slided on the touch-screen of described M × M pixel, described D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
The device that second aspect present invention provides a kind of simulate to slide, comprising:
Mapping block, for the dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, described N and M is the natural number being greater than 1, and described N is not more than described M;
Gesture trapping module, the gesture on the screen being captured in described dot matrix infrared sensor formation;
Distance calculation module, for calculating the described gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed;
Respond module, for responding the distance d ' slided on the touch-screen of described M × M pixel.
In conjunction with second aspect, in the first possible implementation of second aspect, described device also comprises:
Interpolating module, if during for described N much smaller than M, mapping block carries out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, makes N × N number of pixel become N before the dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel 1× N 2individual pixel, described N 1=N × x, described N 2=N × y, described x and y is respectively interpolation multiple.
In conjunction with second aspect, in the implementation that the second of second aspect is possible, described device also comprises:
Recognition processing module by mistake, after the gesture on the screen that gesture trapping module is captured in described dot matrix infrared sensor formation, by backoff algorithm, process is identification maneuver by mistake.
In conjunction with the implementation that the second of second aspect is possible, in the third possible implementation of second aspect, described recognition processing module by mistake comprises:
Glide direction judging unit, for judging glide direction when described gesture slides into target location from reference position on the screen that described dot matrix infrared sensor is formed;
Filter element, if in Preset Time, described gesture is back to described reference position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described reference position produces from described target location along the direction contrary with described glide direction.
In conjunction with second aspect, in the 4th kind of possible implementation of second aspect, described distance calculation module comprises:
First computing unit, for the distance of straight line that forms according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of described N number of infrared sensor, calculate the distance d that screen that described gesture forms at described dot matrix infrared sensor slides, described target location is the terminal of gesture on the screen that described dot matrix infrared sensor is formed during sliding distance d;
Second computing unit, for according to formula d '=M × d/D, calculates the distance d ' slided on the touch-screen of described M × M pixel, and described D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
Third aspect present invention provides a kind of mobile terminal, and described mobile terminal comprises the device that above-mentioned simulate is slided.
From the invention described above technical scheme, owing to the dot matrix that N × N number of infrared sensor is formed can be mapped to the touch-screen of M × M pixel, after gesture on the screen being captured in dot matrix infrared sensor formation, calculate the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that dot matrix infrared sensor is formed.Therefore, the screen that technical scheme provided by the invention is formed at dot matrix infrared sensor slides finger, can simulate the toughness message of similar touch-screen, realize being similar to touch-screen every empty sliding function.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is only some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the realization flow schematic diagram of the method for the simulate slip that the embodiment of the present invention one provides;
Fig. 2-a is the dot matrix schematic diagram of 4 × 4 infrared sensors formations that the embodiment of the present invention provides;
Fig. 2-b is dot matrix calculating gesture distance d ' first schematic diagram that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that N × N dot matrix infrared sensor is formed formed for 4 × 4 infrared sensors that the embodiment of the present invention provides;
Fig. 2-c is dot matrix calculating gesture distance d ' second schematic diagram that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that N × N dot matrix infrared sensor is formed formed for 4 × 4 infrared sensors that the embodiment of the present invention provides;
Fig. 3 is the structural representation of the device of the simulate slip that the embodiment of the present invention two provides;
Fig. 4 is the structural representation of the device of the simulate slip that the embodiment of the present invention three provides;
Fig. 5 is the structural representation of the device of the simulate slip that the embodiment of the present invention four provides;
Fig. 6 is the structural representation of the device of the simulate slip that the embodiment of the present invention five provides;
Fig. 7 is the structural representation of the device of the simulate slip that the embodiment of the present invention six provides.
Embodiment
For making goal of the invention of the present invention, feature, advantage can be more obvious and understandable, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is only the present invention's part embodiment, and not all embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
A kind of method that the embodiment of the present invention provides simulate to slide, described method comprises: the touch-screen dot matrix that N × N number of infrared sensor is formed being mapped to M × M pixel, and described N and M is the natural number being greater than 1, and described N is not more than described M; Be captured in the gesture on the screen of described dot matrix infrared sensor formation; Calculate the described gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed; Respond the distance d ' slided on the touch-screen of described M × M pixel.The device that the embodiment of the present invention also provides corresponding simulate to slide and a kind of mobile terminal.Below be described in detail respectively.
Refer to accompanying drawing 1, be the realization flow of the method for the simulate slip that the embodiment of the present invention one provides, its executive agent can be the mobile terminal such as smart mobile phone, panel computer.The method that the simulate of accompanying drawing 1 example is slided mainly comprises the following steps S101 to step S104:
S101, maps to the touch-screen of M × M pixel by the dot matrix that N × N number of infrared sensor is formed.
In embodiments of the present invention, N and M is the natural number being greater than 1, and N is not more than M.The dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel, every M pixel is equivalent to be divided into N equal portions, every part of M/N pixel, then, in the dot matrix that N × N number of infrared sensor is formed, M/N pixel of respective column or corresponding line in corresponding M × M the pixel of first infrared sensor of each row or every a line dot matrix, 2M/N pixel of respective column or corresponding line in second corresponding M × M pixel of infrared sensor, M pixel of respective column or corresponding line in corresponding M × M the pixel of N number of infrared sensor.Such as, for the dot matrix that 50 × 50 infrared sensors are formed, the touch-screen of 300 × 300 pixels to be mapped to, be then divided into 50 equal portions by 300, at interval of 6 pixels namely by an infrared sensor correspondence in the dot matrix of 50 × 50 infrared sensors formations.Particularly, 6th pixel of respective column or corresponding line in the 1st infrared sensor correspondence 300 × 300 pixels of each row in the dot matrix of 50 × 50 infrared sensor formations or often a line dot matrix, 12nd pixel of respective column or corresponding line in 2nd infrared sensor correspondence, 300 × 300 pixels,, the 300th pixel of respective column or corresponding line in the 50th infrared sensor correspondence 300 × 300 pixels.It should be noted that, when M/N is not integer, depending on situation M/N is rounded downwards or round up.Once the dot matrix that N × N number of infrared sensor is formed maps to the touch-screen of M × M pixel, continuous print sensor (Sensor) data transformations that then gesture motion can be produced is continuous print motion event (MotionEvent) data, the data that the touch-screen being equivalent to M × M resolution produces.
When N is much smaller than M, after directly the dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, mapped pixel very little, so, final simulation sliding effect is out not smooth, feels it is a card to user, experiences bad.Therefore, in embodiments of the present invention, interpolation processing can be carried out in the pixel of M × M on touch-screen by mapped N × N number of pixel, make N × N number of pixel become N 1× N 2individual pixel, wherein, N 1=N × x, N 2=N × y, x and y is respectively interpolation multiple.
Such as, dot matrix for 50 × 50 infrared sensors formations maps to the touch-screen of 3000 × 3000 pixels, because 50 and 3000 are separated by 60 times, 50 can be considered as much smaller than 3000, so, after directly the dot matrix that 50 × 50 infrared sensors are formed being mapped to the touch-screen of 3000 × 3000 pixels, mapped pixel (only has 50 very little, relative to 3000 very little), so, final simulation sliding effect is out not smooth, feels it is a card to user, experiences bad.In embodiments of the present invention, dot matrix as formed by 50 × 50 infrared sensors maps to the touch-screen of 3000 × 3000 pixels, then be divided into 50 equal portions by 3000, an infrared sensor correspondence in the dot matrix formed by 50 × 50 infrared sensors at interval of 60 pixels, namely, 60th pixel of respective column or corresponding line in the 1st infrared sensor correspondence 3000 × 3000 pixels of each row in the dot matrix of 50 × 50 infrared sensor formations or often a line dot matrix, 120th pixel of respective column or corresponding line in 2nd infrared sensor correspondence, 3000 × 3000 pixels, 3000th pixel of respective column or corresponding line in 50th infrared sensor correspondence, 3000 × 3000 pixels.If carry out interpolation processing in 3000 × 3000 pixels on touch-screen by mapped 50 × 50 pixels, such as, doubly interpolation is carried out according to interpolation multiple 10, then be equivalent in 3000 pixels of each row or every a line, to the 60th pixel, a pixel is inserted at interval of 6 pixels at the 1st pixel, namely to the 60th pixel, 10 pixels are altogether inserted at the 1st pixel, to the 120th pixel, a pixel is inserted at interval of 6 pixels at the 61st pixel, namely to the 60th pixel, 10 pixels are altogether inserted at the 61st pixel, to the 3000th pixel, a pixel is inserted at interval of 6 pixels at the 2941st pixel, namely to the 300th pixel, 10 pixels are altogether inserted at the 2941st pixel, so, altogether insert 500 pixels, add 50 mapped pixels, in 3000 × 3000 pixels, every a line or each row are 550 pixels altogether, relative to 50 pixels before not having interpolation, simulate gesture in the mapped again to slide, greatly can improve fluency, reduce the sensation of a card.
S102, is captured in the gesture on the screen of N × N dot matrix infrared sensor formation.
In embodiments of the present invention, when finger slides on the screen that dot matrix infrared sensor is formed, each infrared sensor in some array sensor can catch sensing data; Along with slip and the catching of each infrared sensor of finger, the gesture on screen that N × N dot matrix infrared sensor (dot matrix that N × N number of sensor is formed) forms can be captured in.
Because certain user is when sliding into another place by finger from a place, reference position may be got back at once.Being ready according to user, the short time gets back to reference position and should not be identified.If identify, be then exactly identify by mistake.In order to prevent the generation of this situation, in embodiments of the present invention, after being captured in the gesture on the screen of dot matrix infrared sensor formation, described method also comprises: by backoff algorithm, and process is identification maneuver by mistake.Particularly, first can judge glide direction when gesture slides into target location from reference position on the screen that the dot matrix infrared sensor of N × N is formed, then, if in Preset Time, such as, in 800ms, described gesture is back to reference position from target location along the direction contrary with glide direction, then filter described gesture and be back to the event that described reference position produces from described target location along the direction contrary with described glide direction.Once this kind of event is filtered, then follow-up system does not have the response of opponent's gesture, thus there will not be sliding effect.
S103, calculates the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that N × N dot matrix infrared sensor is formed.
Particularly, as one embodiment of the invention, calculate the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that N × N dot matrix infrared sensor is formed and can comprise the steps S1031 and step S1032:
S1031, the distance of straight line formed according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of described N number of dot matrix, calculate the distance d that screen that described gesture forms at N × N dot matrix infrared sensor slides, wherein, target location is the terminal of gesture on the screen that N × N dot matrix infrared sensor is formed during sliding distance d.
S1032, according to formula d '=M × d/D, calculates the distance d ' slided on the touch-screen of M × M pixel, and wherein, D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
For the dot matrix that 4 × 4 infrared sensors are formed, as shown in accompanying drawing 2-a.As shown in accompanying drawing 2-b, suppose that in 4 × 4 infrared sensors, any row infrared sensor dot matrix i.e. 4 infrared sensors are (in figure shown in 4 stains, numbering is respectively 1, 2, 3 and 4, below be called infrared sensor 1, infrared sensor 2, infrared sensor 3 and infrared sensor 4) detect gesture and slide into target location (in figure shown in circle) from reference position (figure blacking triangle shown in), reference position uses d to represent to the distance of target location, coverage when 4 infrared sensors transmit uses D to represent in the drawings, between reference position to target location, in the infrared sensor of any point to 4 × 4, the distance of the straight line that any row infrared sensor (4 infrared sensors) is formed uses Lmin to represent in the drawings, between reference position to target location, any point (in figure shown in a square stain) uses L1 with the distance of 4 infrared sensors respectively, L2, L3 and L4 represents.
Suppose to only have infrared sensor 1 target location to be detected in reference position, reference position is L11 to the distance of infrared sensor 1, and as shown in accompanying drawing 2-c, so reference position can obtain according to trigonometric function formula to the position d1 of a period of time inspection center's point in kind calculate the d2 in upper figure, distance d=d1+d2 like this.If infrared sensor 1 can't detect target location, just with infrared sensor 2 for coordinate points calculate lengthwise position, and suppose that the sensing range of infrared sensor 1 is symmetrical i.e. d=2 × d1+d3 up and down, supposes the fore-and-aft distance calculated for coordinate points with infrared sensor 2 herein.
After the distance d that the screen that gesture is formed at N × N dot matrix infrared sensor slides calculates, according to formula d '=M × d/D, easily calculate the distance d ' slided on the touch-screen of M × M pixel.
S104, responds the distance d ' slided on the touch-screen of M × M pixel.
From the method that the simulate of above-mentioned accompanying drawing 1 example is slided, owing to the dot matrix that N × N number of infrared sensor is formed can be mapped to the touch-screen of M × M pixel, after gesture on the screen being captured in dot matrix infrared sensor formation, calculate the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that dot matrix infrared sensor is formed.Therefore, the screen that technical scheme provided by the invention is formed at dot matrix infrared sensor slides finger, can simulate the toughness message of similar touch-screen, realize being similar to touch-screen every empty sliding function.
Referring to accompanying drawing 3, is the structural representation of the device of the simulate slip that the embodiment of the present invention two provides.For convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.The device of the simulate slip of accompanying drawing 3 example can be the executive agent of the method for the simulate slip that previous embodiment provides, and it can be intelligent terminal or one of them functional module.The device that the simulate of accompanying drawing 3 example is slided mainly comprises mapping block 301, gesture trapping module 302, distance calculation module 303 and respond module 304, and each functional module is described in detail as follows:
Mapping block 301, for mapping to the touch-screen of M × M pixel by the dot matrix that N × N number of infrared sensor is formed.
In embodiments of the present invention, N and M is the natural number being greater than 1, and N is not more than M.The dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel by mapping block 301, every M pixel is equivalent to be divided into N equal portions, every part of M/N pixel, then, in the dot matrix that N × N number of infrared sensor is formed, M/N pixel of respective column or corresponding line in corresponding M × M the pixel of first infrared sensor of each row or every a line dot matrix, 2M/N pixel of respective column or corresponding line in second corresponding M × M pixel of infrared sensor, M pixel of respective column or corresponding line in corresponding M × M the pixel of N number of infrared sensor.Such as, for the dot matrix that 50 × 50 infrared sensors are formed, mapping block 301 will be mapped to the touch-screen of 300 × 300 pixels, be then divided into 50 equal portions by 300, at interval of 6 pixels namely by an infrared sensor correspondence in the dot matrix of 50 × 50 infrared sensors formations.Particularly, 6th pixel of respective column or corresponding line in the 1st infrared sensor correspondence 300 × 300 pixels of each row in the dot matrix of 50 × 50 infrared sensor formations or often a line dot matrix, 12nd pixel of respective column or corresponding line in 2nd infrared sensor correspondence, 300 × 300 pixels,, the 300th pixel of respective column or corresponding line in the 50th infrared sensor correspondence 300 × 300 pixels.It should be noted that, when M/N is not integer, depending on situation M/N is rounded downwards or round up.Once the dot matrix that N × N number of infrared sensor is formed maps to the touch-screen of M × M pixel, continuous print sensor (Sensor) data transformations that then gesture motion can be produced is continuous print motion event (MotionEvent) data, the data that the touch-screen being equivalent to M × M resolution produces.
Gesture trapping module 302, the gesture on the screen being captured in N × N dot matrix infrared sensor formation.
In embodiments of the present invention, when finger slides on the screen that dot matrix infrared sensor is formed, each infrared sensor in some array sensor can catch sensing data; Along with slip and the catching of each infrared sensor of finger, gesture trapping module 302 can be captured in the gesture on screen that N × N dot matrix infrared sensor (dot matrix that N × N number of sensor is formed) forms.
Distance calculation module 303, for calculating the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that N × N dot matrix infrared sensor is formed;
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 of the device of the simulate slip of above accompanying drawing 3 example, the division of each functional module only illustrates, can be as required in practical application, the facility of the such as configuration requirement of corresponding hardware or the realization of software is considered, and above-mentioned functions is distributed completed by different functional modules, the inner structure of the device slided by described simulate is divided into different functional modules, to complete all or part of function described above.And, in practical application, corresponding functional module in the present embodiment can be by corresponding hardware implementing, also can perform corresponding software by corresponding hardware to complete, such as, aforesaid mapping block can be have to perform the aforementioned hardware dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, such as mapper also can be general processor or other hardware devices that can perform corresponding computer program thus complete aforementioned function; For another example aforesaid gesture trapping module, can be the hardware of the gesture performed on the screen being captured in described dot matrix infrared sensor formation, such as gesture grabber also can be general processor or other hardware devices (each embodiment that this instructions provides all can apply foregoing description principle) that can perform corresponding computer program thus complete aforementioned function.
From the device that the simulate of above-mentioned accompanying drawing 3 example is slided, because the dot matrix that N × N number of infrared sensor is formed can be mapped to the touch-screen of M × M pixel by mapping block, be captured in the gesture on the screen of dot matrix infrared sensor formation at gesture trapping module after, distance calculation module calculates the gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of M × M pixel on the screen that dot matrix infrared sensor is formed.Therefore, the screen that technical scheme provided by the invention is formed at dot matrix infrared sensor slides finger, can simulate the toughness message of similar touch-screen, realize being similar to touch-screen every empty sliding function.
The device that the simulate of accompanying drawing 3 example is slided can also comprise interpolating module 401, the device that the simulate that the embodiment of the present invention three provides as shown in Figure 4 is slided.If interpolating module 401 for N much smaller than M time, before the dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel by mapping block 301, carry out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, make N × N number of pixel become N 1× N 2individual pixel, wherein, N 1=N × x, N 2=N × y, x and y is respectively interpolation multiple.
When N is much smaller than M, after the dot matrix that N × N number of infrared sensor is formed directly is mapped to the touch-screen of M × M pixel by mapping block 301, mapped pixel very little, so, final simulation sliding effect is out not smooth, feels it is a card to user, experiences bad.Therefore, in embodiments of the present invention, interpolating module 401 can carry out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, makes N × N number of pixel become N 1× N 2individual pixel, wherein, N 1=N × x, N 2=N × y, x and y is respectively interpolation multiple.
Such as, dot matrix for 50 × 50 infrared sensors formations maps to the touch-screen of 3000 × 3000 pixels, because 50 and 3000 are separated by 60 times, 50 can be considered as much smaller than 3000, so, after the dot matrix that 50 × 50 infrared sensors are formed directly is mapped to the touch-screen of 3000 × 3000 pixels by mapping block 301, mapped pixel (only has 50 very little, relative to 3000 very little), so, final simulation sliding effect is out not smooth, feels it is a card to user, experiences bad.In embodiments of the present invention, as the dot matrix that 50 × 50 infrared sensors are formed to be mapped to the touch-screen of 3000 × 3000 pixels by mapping block 301, then be divided into 50 equal portions by 3000, an infrared sensor correspondence in the dot matrix formed by 50 × 50 infrared sensors at interval of 60 pixels, namely, 60th pixel of respective column or corresponding line in the 1st infrared sensor correspondence 3000 × 3000 pixels of each row in the dot matrix of 50 × 50 infrared sensor formations or often a line dot matrix, 120th pixel of respective column or corresponding line in 2nd infrared sensor correspondence, 3000 × 3000 pixels, 3000th pixel of respective column or corresponding line in 50th infrared sensor correspondence, 3000 × 3000 pixels.If interpolating module 401 pairs of touch-screens carry out interpolation processing by mapped 50 × 50 pixels in 3000 × 3000 pixels, such as, doubly interpolation is carried out according to interpolation multiple 10, then be equivalent in 3000 pixels of each row or every a line, to the 60th pixel, a pixel is inserted at interval of 6 pixels at the 1st pixel, namely to the 60th pixel, 10 pixels are altogether inserted at the 1st pixel, to the 120th pixel, a pixel is inserted at interval of 6 pixels at the 61st pixel, namely to the 60th pixel, 10 pixels are altogether inserted at the 61st pixel, to the 3000th pixel, a pixel is inserted at interval of 6 pixels at the 2941st pixel, namely to the 300th pixel, 10 pixels are altogether inserted at the 2941st pixel, so, altogether insert 500 pixels, add 50 mapped pixels, in 3000 × 3000 pixels, every a line or each row are 550 pixels altogether, relative to 50 pixels before not having interpolation, simulate gesture in the mapped again to slide, greatly can improve fluency, reduce the sensation of a card.
The device that the simulate of accompanying drawing 3 example is slided can also comprise recognition processing module 501 by mistake, the device that the simulate that the embodiment of the present invention four provides as shown in Figure 5 is slided.By mistake after the gesture of recognition processing module 501 on the screen that gesture trapping module 302 is captured in N × N dot matrix infrared sensor formation, by backoff algorithm, process is identification maneuver by mistake.Because certain user is when sliding into another place by finger from a place, reference position may be got back at once.Being ready according to user, the short time gets back to reference position and should not be identified.If identify, be then exactly identify by mistake.In order to prevent the generation of this situation, in embodiments of the present invention, after gesture trapping module 302 is captured in the gesture on the screen of dot matrix infrared sensor formation, recognition processing module 501 is by backoff algorithm by mistake, and process is identification maneuver by mistake.
The mistake recognition processing module 501 of accompanying drawing 5 example can comprise glide direction judging unit 601 and filter element 602, the device that the simulate that the embodiment of the present invention five provides as shown in Figure 6 is slided, wherein:
Glide direction judging unit 601, for judging glide direction when gesture slides into target location from reference position on the screen that N × N dot matrix infrared sensor is formed;
Filter element 602, if in Preset Time, gesture is back to reference position from target location along the direction contrary with glide direction, then filtration gesture is back to the event that described reference position produces from described target location along the direction contrary with described glide direction.
The distance calculation module 303 of accompanying drawing 3 example can comprise the first computing unit 701 and the second computing unit 702, the device that the simulate that the embodiment of the present invention six provides as shown in Figure 7 is slided, wherein:
First computing unit 701, for the distance of straight line that forms according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of N number of infrared sensor, calculate the distance d that screen that gesture forms at N × N dot matrix infrared sensor slides, wherein, target location is the terminal of gesture on the screen that N × N dot matrix infrared sensor is formed during sliding distance d;
Second computing unit 702, for according to formula d '=M × d/D, calculates the distance d ' slided on the touch-screen of M × M pixel, and described D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
The circular of the first computing unit 701 and the second computing unit 702, can consult the explanatory note of aforementioned figures 2-a to accompanying drawing 2-c and correspondence thereof, not repeat herein.
The embodiment of the present invention also provides a kind of mobile terminal, the device that the simulate that this mobile terminal comprises the arbitrary example of accompanying drawing 3 to accompanying drawing 7 to be provided is slided.
It should be noted that, the content such as information interaction, implementation between each module/unit of said apparatus, due to the inventive method embodiment based on same design, its technique effect brought is identical with the inventive method embodiment, particular content see describing in the inventive method embodiment, can repeat no more herein.
Those of ordinary skill in the art can recognize, in conjunction with unit and the algorithm steps of each example of embodiment disclosed herein description, can realize with the combination of electronic hardware or computer software and electronic hardware.These functions perform with hardware or software mode actually, depend on application-specific and the design constraint of technical scheme.Professional and technical personnel can use distinct methods to realize described function to each specifically should being used for, but this realization should not thought and exceeds scope of the present invention.
Those skilled in the art can be well understood to, and for convenience and simplicity of description, the specific works process of the system of foregoing description, device and unit, with reference to the corresponding process in preceding method embodiment, can not repeat them here.
In several embodiments that the application provides, should be understood that disclosed system, apparatus and method can realize by another way.Such as, device embodiment described above is only schematic, such as, the division of described unit, be only a kind of logic function to divide, actual can have other dividing mode when realizing, such as multiple unit or assembly can in conjunction with or another system can be integrated into, or some features can be ignored, or do not perform.Another point, shown or discussed coupling each other or direct-coupling or communication connection can be by some interfaces, and the indirect coupling of device or unit or communication connection can be electrical, machinery or other form.
The described unit illustrated as separating component or can may not be and physically separates, and the parts as unit display can be or may not be physical location, namely can be positioned at a place, or also can be distributed in multiple network element.Some or all of unit wherein can be selected according to the actual needs to realize the object of the present embodiment scheme.
In addition, each functional unit in each embodiment of the present invention can be integrated in a processing unit, also can be that the independent physics of unit exists, also can two or more unit in a unit integrated.
If described function using the form of SFU software functional unit realize and as independently production marketing or use time, can be stored in a computer read/write memory medium.Based on such understanding, the part of the part that technical scheme of the present invention contributes to prior art in essence in other words or this technical scheme can embody with the form of software product, this computer software product is stored in a storage medium, comprising some instructions in order to make a computer equipment (can be personal computer, server, or the network equipment etc.) perform all or part of step of method described in each embodiment of the present invention.And aforesaid storage medium comprises: USB flash disk, portable hard drive, ROM (read-only memory) (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), magnetic disc or CD etc. various can be program code stored medium.
The above; be only the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, is anyly familiar with those skilled in the art in the technical scope that the present invention discloses; change can be expected easily or replace, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should described be as the criterion with the protection domain of claim.

Claims (11)

1. a method for simulate slip, it is characterized in that, described method comprises:
The dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel, described N and M is the natural number being greater than 1, and described N is not more than described M;
Be captured in the gesture on the screen of described dot matrix infrared sensor formation;
Calculate the described gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed;
Respond the distance d ' slided on the touch-screen of described M × M pixel.
2. the method for claim 1, is characterized in that, if described N is much smaller than described M, then, before the dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, described method also comprises:
Carry out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, make N × N number of pixel become N 1× N 2individual pixel, described N 1=N × x, described N 2=N × y, described x and y is respectively interpolation multiple.
3. the method for claim 1, is characterized in that, described in be captured in described dot matrix infrared sensor form screen on gesture after, described method also comprises:
By backoff algorithm, process is identification maneuver by mistake.
4. method as claimed in claim 3, is characterized in that, described by backoff algorithm, and process by mistake identification maneuver comprises:
Judge glide direction when described gesture slides into target location from reference position on the screen that described dot matrix infrared sensor is formed;
If in Preset Time, described gesture is back to described reference position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described reference position produces from described target location along the direction contrary with described glide direction.
5. the method for claim 1, is characterized in that, the described gesture of the described calculating distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed, comprising:
The distance of straight line formed according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of described N number of infrared sensor, calculate the distance d that screen that described gesture forms at described dot matrix infrared sensor slides, described target location is the terminal of gesture on the screen that described dot matrix infrared sensor is formed during sliding distance d;
According to formula d '=M × d/D, calculate the distance d ' slided on the touch-screen of described M × M pixel, described D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
6. a device for simulate slip, it is characterized in that, described device comprises:
Mapping block, for the dot matrix that N × N number of infrared sensor is formed being mapped to the touch-screen of M × M pixel, described N and M is the natural number being greater than 1, and described N is not more than described M;
Gesture trapping module, the gesture on the screen being captured in described dot matrix infrared sensor formation;
Distance calculation module, for calculating the described gesture distance d ' that during sliding distance d, correspondence is slided on the touch-screen of described M × M pixel on the screen that described dot matrix infrared sensor is formed;
Respond module, for responding the distance d ' slided on the touch-screen of described M × M pixel.
7. device as claimed in claim 6, it is characterized in that, described device also comprises:
Interpolating module, if during for described N much smaller than described M, before the dot matrix that N × N number of infrared sensor is formed is mapped to the touch-screen of M × M pixel by mapping block, carry out interpolation processing in the pixel of M × M on touch-screen by mapped N × N number of pixel, make N × N number of pixel become N 1× N 2individual pixel, described N 1=N × x, described N 2=N × y, described x and y is respectively interpolation multiple.
8. device as claimed in claim 6, it is characterized in that, described device also comprises:
Recognition processing module by mistake, after the gesture on the screen that gesture trapping module is captured in described dot matrix infrared sensor formation, by backoff algorithm, process is identification maneuver by mistake.
9. device as claimed in claim 6, is characterized in that, described recognition processing module by mistake comprises:
Glide direction judging unit, for judging glide direction when described gesture slides into target location from reference position on the screen that described dot matrix infrared sensor is formed;
Filter element, if in Preset Time, described gesture is back to described reference position from described target location along the direction contrary with described glide direction, then filter described gesture and be back to the event that described reference position produces from described target location along the direction contrary with described glide direction.
10. device as claimed in claim 6, it is characterized in that, described distance calculation module comprises:
First computing unit, for the distance of straight line that forms according to a row infrared sensor any in any point between reference position to target location to N × N number of infrared sensor and described any point respectively with the distance of described N number of infrared sensor, calculate the distance d that screen that described gesture forms at described dot matrix infrared sensor slides, described target location is the terminal of gesture on the screen that described dot matrix infrared sensor is formed during sliding distance d;
Second computing unit, for according to formula d '=M × d/D, calculates the distance d ' slided on the touch-screen of described M × M pixel, and described D is coverage when any row dot matrix transmits in the dot matrix of N × N number of infrared sensor formation.
11. 1 kinds of mobile terminals, is characterized in that, described intelligent terminal comprises the device that the simulate described in claim 6 to 10 any one is slided.
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 true CN104808856A (en) 2015-07-29
CN104808856B 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)

Cited By (4)

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

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120169669A1 (en) * 2010-12-30 2012-07-05 Samsung Electronics Co., Ltd. Panel camera, and optical touch screen and display apparatus employing the panel camera
CN104346061A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Control method and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20120169669A1 (en) * 2010-12-30 2012-07-05 Samsung Electronics Co., Ltd. Panel camera, and optical touch screen and display apparatus employing the panel camera
CN104346061A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Control method and electronic equipment

Cited By (5)

* 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
CN106371595A (en) * 2016-08-31 2017-02-01 维沃移动通信有限公司 Method for calling out message notification bar and mobile terminal
CN106371595B (en) * 2016-08-31 2020-10-30 维沃移动通信有限公司 Method for calling out message notification bar and mobile terminal
CN110045819A (en) * 2019-03-01 2019-07-23 华为技术有限公司 A kind of gesture processing method and equipment
CN113671855A (en) * 2021-08-20 2021-11-19 广东好太太智能家居有限公司 Clothes airing equipment control method, device and system and clothes airing equipment

Also Published As

Publication number Publication date
CN104808856B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
CN102576261B (en) Touch detection
CN103620532B (en) Touch screen controller and use the electronic equipment of this touch screen controller
CN104808856A (en) Method and device for simulating sliding of touch screen and mobile terminal
US9678658B2 (en) Method for displaying interface content and user equipment
CN102937848B (en) Method for editing handwritings and electronic equipment
CN109388296B (en) Computing touch coordinates using a hybrid process of mutual and self-capacitance sensing data
CN107368820B (en) Refined gesture recognition method, device and equipment
DE102010028983A1 (en) Two-dimensional touch sensors
CN106023305B (en) The modeling method and device of three-dimensional space
CN105144072A (en) Emulating pressure sensitivity on multi-touch devices
Akhtar et al. A methodology for evaluating accuracy of capacitive touch sensing grid patterns
CN103853640A (en) Touch screen test method and device
CN107452055A (en) Three-dimensional house type drawing generating method and device
US10025488B2 (en) Multipoint locating method and device on touch screen with single conducting layer
CN104777948A (en) Method and device for improving accuracy of edge coordinates of projection-type capacitive touch panel
CN104007920A (en) Method for selecting waveforms on electronic test equipment
CN105700749B (en) A kind of touch control method and terminal device
CN104822029A (en) Method and device for controlling rotary camera to rotate and mobile terminal
CN105446605A (en) Information processing method and electronic device
CN108875901B (en) Neural network training method and universal object detection method, device and system
KR101501491B1 (en) Capacitive touch tag reconizable by capacitive touch panel, information recognition method thereof and information service method using the same
CN105718965A (en) Chinese character writing font identification method and Chinese character writing font identification device
CN104778657A (en) Method and device for fusing two-dimensional code of image
JP4898920B2 (en) Product having absolute position code pattern on surface and method of forming absolute position code pattern
CN107111387A (en) Determine method, touch-control input device, touch screen and the system of azimuth or posture

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