A kind of touch control identification method and display device based on infrared touch panelTechnical field
The present invention relates to Infrared touch screen technology field more particularly to a kind of touch control identification methods based on infrared touch panelAnd display device.
Background technique
Infrared touch panel is a kind of touch for detecting and positioning user using horizontal, vertical densely covered infrared ray matrixDisplay screen.For example, Fig. 1 is the structural schematic diagram of infrared touch panel, as shown in Figure 1, infrared touch panel is in rectangular configuration, infraredInfrared tube array is installed on the frame of touch screen surrounding, the infrared tube array include one-to-one infrared transmitting tube andInfrared receiving tube, when work, infrared transmitting tube emits scanning ray to the infrared receiving tube of opposite side, has inside infrared touch panelWhen touch point (black dot as shown in figure 1), which will block vertical and horizontal two infrared ray (such as Fig. 1 by the positionIn dotted line), and then can judge that touch point exists according to the location information for the infrared receiving tube that cannot receive scanning rayThe position of screen.
Usually in the process of practical touch-control identification, as shown in patent document CN102419661A: according to the direction of optical pathIt is divided into multiple logic optical path layers (parallel scan lines of each angle regard a logic optical path layer as);Just to sweep (horizontal, vertical)The Calculation of Optical Path standard that is blocked in optical path layer touches point set, and (including all true touch points and terrible point are (i.e. by orthogonal calculation instituteObtained False Intersection Points)).Then the successively each quasi- touch point of traversal processing, judges its true and false: checking current to be determined quasi- touchWhether at least one light of point is blocked (can also quasi- touch point nearby the optical path density that is blocked is determined), according to being hiddenIt keeps off situation and determines whether current point is true touch point.
But in the implementation of the present invention, invention technician has found: the process of existing touch-control identification need throughA touch point can just be determined by crossing long side scanning and short side scanning, since twice sweep interval is long, be caused in the scanningThe mobile range of touch objects is bigger in interval, and the touch point determined is not accurate enough;Meanwhile if user touch speed compared withFastly, such as: far faster than the time interval of long side scanning and short side scanning, then can easily lead to touch failure, occur breaking and loseThe problem of point.
Summary of the invention
The main object of the present invention is to provide a kind of touch control identification method and display device based on infrared touch panel,To solve the problems, such as that touch point that existing touch control identification method is determined is not accurate enough and touch failure.
In order to achieve the above objectives, the embodiment of the present invention adopts the following technical scheme that
In a first aspect, the embodiment of the present invention provides a kind of touch control identification method based on infrared touch panel, this method applicationIn the display device comprising infrared touch panel, which comprises
The transmitting tube on infrared touch panel first direction side is driven to be scanned, to obtain at least one first touchPoint, and store at least one described first touch point;
The transmitting tube on infrared touch panel second direction side is driven to be scanned, to obtain at least one second touchPoint;
At least one described second touch point and at least one described first touch point are matched, determine at least oneA matching pair, the matching is to including second touch point and first touch point;
For it is described at least one matching centering any matching pair, by it is described matching the second touch point of centering with it is describedSecond direction corresponding coordinate value when corresponding coordinate value and the first touch point are with the first direction is combined, by groupCoordinate after conjunction is determined as the touch point on the infrared touch panel, and exports the touch point.
Second aspect, the embodiment of the present invention provide a kind of display device, and the display device includes infrared touch panel, are used forExecute method described in first aspect, the display device further include:
Acquiring unit, for driving the transmitting tube on infrared touch panel first direction side to be scanned, to obtain at leastOne the first touch point;
Storage unit, at least one first touch point got for storing the acquiring unit;
The acquiring unit is also used to that the transmitting tube on infrared touch panel second direction side is driven to be scanned, to obtainTake at least one second touch point;
Matching unit, at least one second touch point and the storage unit for getting the acquiring unit are depositedAt least one first touch point of storage is matched, and determines that at least one matching pair, the matching are touched to comprising one secondIt touches a little and first touch point;
Determination unit, any matching pair of at least one matching centering for determining for the matching unit, willThe coordinate value corresponding with the second direction side of matching second touch point of centering and the first touch point with described firstThe corresponding coordinate value in direction side is combined, and the coordinate after combination is determined as the touch point on the infrared touch panel;
Output unit, the touch point determined for exporting the determination unit.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of touch identification method and display device based on infrared touch panel,It drives the transmitting tube on infrared touch panel first direction side to be scanned, to obtain at least one first touch point, and storesAt least one described first touch point;The transmitting tube on infrared touch panel second direction side is driven to be scanned, to obtain extremelyFew second touch point;At least one described second touch point and at least one described first touch point are matched, reallyAt least one matching pair is made, the matching is to including second touch point and first touch point;For it is described at leastAny matching pair of one matching centering, by the coordinate corresponding with the second direction side of matching second touch point of centeringThe coordinate value corresponding with the first direction side of value and the first touch point is combined, and the coordinate after combination is determined as describedTouch point on infrared touch panel, and export the touch point.
In existing touch control identification method, the technical side of a touch point can be just oriented through long side scanning and short side scanningCase is compared, and this case only need to can orient touch point by long side or short side scanning, in the situation that the single side scan time is constantUnder, the time required for positioning touch point is substantially reduced, the reaction speed of infrared touch panel is improved;Simultaneously as in listShorter without the time interval between scanning direction in the scanning process of side, touch objects are on coordinate corresponding with scanning direction sideMoving range is smaller, and the touch point determined is more accurate;In addition, the application includes long side scanning and short side scanning at oneScan period in, the number of the touch point oriented increases primary than the prior art, has achieved the purpose that interleave raises speed.
Detailed description of the invention
In order to more clearly explain the embodiment of the invention or the technical proposal in the existing technology, to embodiment or will show belowThere is attached drawing needed in technical description to be briefly described, it should be apparent that, the accompanying drawings in the following description is only thisSome embodiments of invention for those of ordinary skill in the art without creative efforts, can be withIt obtains other drawings based on these drawings.
Fig. 1 is the structural schematic diagram of infrared touch panel;
Fig. 2 is the schematic diagram of existing determining touch point;
Fig. 3 is the flow chart of the touch control identification method provided in an embodiment of the present invention based on infrared touch panel;
Fig. 4 is that long side provided in an embodiment of the present invention scans the schematic diagram for determining touch point;
Fig. 5 is the timing diagram of existing touch-control identification;
Fig. 6 is the timing diagram of touch-control provided in an embodiment of the present invention identification;
Fig. 7 is the structure chart of display device provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, completeSite preparation description, it is clear that described embodiments are only a part of the embodiments of the present invention, instead of all the embodiments.It is based onEmbodiment in the present invention, it is obtained by those of ordinary skill in the art without making creative efforts every otherEmbodiment shall fall within the protection scope of the present invention.
In the description of the present invention, it is to be understood that, the system of instructions such as term " first ", " second ", " another " orElement is the system or element with certain function described based on embodiment, is merely for convenience of the description present invention and simplification is retouchedIt states, rather than the system of indication or suggestion meaning or element must have this name, therefore be not considered as limiting the invention.
It is described in detail before this programme, to facilitate the understanding of the present invention the technical solution, to some in the present inventionImportant noun is explained in detail, it is to be understood that following nouns are only that invention technician carries out for convenienceName, do not represent or imply that signified system or element must have this name, therefore should not be understood as to limit of the inventionSystem:
Infrared touch panel: infrared touch panel comprising liquid crystal display and is arranged described at rectangular configuration shown in FIG. 1Infrared touch frame around liquid crystal display, the infrared touch frame include long side transmitting tube, short side transmitting tube, long side receptionPipe, short side reception pipe, long side transmitting tube and long side reception pipe are oppositely arranged, and short side transmitting tube and short side reception pipe are oppositely arranged.
First direction is in, second direction: first direction side can be the long side of infrared touch frame, and second direction side can be withFor the short side of infrared touch frame;Alternatively, first direction side can be the short side of infrared touch frame, second direction side can be infraredThe long side of touching box, comparison of the embodiment of the present invention is without limiting.
Scanning direction: in 1 couple of n (n >=1) scanning mode, each transmitting tube in the transmitting tube array on one side is comeSay, the optical path of n different angle can be possessed, corresponding to n optical path each angle, we term it a scanning sidesTo therefore, 1 pair of n scanning mode will have n scanning direction, and each scanning direction is by one group of parallel light path institute with slopeComposition;Wherein, n is according to the preset number of needs, and comparison of the embodiment of the present invention is without limiting.
Scanning: it is connected and closes at different times by the long side transmitting tube and reception tube assembly that control different in timingIt closes, is referred to as to scan to complete the scanning process in different scanning direction;Wherein, for the scanning at each moment, Ke Yiwei1 pair of 1 scanning of 1 reception pipe of conducting while 1 long side transmitting tube is connected, or led while 1 transmitting tube of conductingThe scanning mode more than 1 pair of logical at least two reception pipes.
Fig. 2 shows the schematic diagrames of existing determining touch point, as shown in Fig. 2, first by long side transmitting tube a scanning sideIt is scanned upwards, touch area 1 is determined according to scanning result, then, then by short side transmitting tube on a scanning directionIt is scanned, touch area 2 is determined according to scanning result, from being positioned in the overlapping region of touch area 1 and touch area 2To touch point.Touch area refers to that the optical path being continuously blocked is formed by region, and first to be continuously blocked optical path is touchingThe initial boundary for touching region, the last item optical path being continuously blocked are the cut-off boundary of touch area.Certainly, art technologyPersonnel can also be expanded on the boundary of touch area with certain threshold value.
Though this method for scanning determining touch point by long side scanning and short side of Fig. 2 can determine that out touch point, needTo cause the touch objects in the sweep spacing mobile by long side scanning and short side scanning, since twice sweep interval is longRange it is bigger, the touch point determined is not accurate enough.For this purpose, in this application, inventor, which audaciously proposes, passes through listSide (long side or short side), which is scanned, determines the technical solution different from the prior art of touch point, by long side or short side scanning withTouch point is oriented in the combination of historical storage touch point, due to during single side scan, without between the time between scanning directionEvery shorter, touch objects moving range on coordinate corresponding with scanning direction side is smaller, and the touch point determined is than calibratedReally;Meanwhile the application scans in the scan period scanned with short side at one comprising long side, the number ratio for the touch point orientedThe prior art increases once, has achieved the purpose that interleave raises speed.
For ease of description, following embodiment one is had shown and described of the present invention based on infrared in the form of stepThe touch control identification method of touch screen, wherein the step of showing can also be in one group of executable instruction comprising infrared touch panelIt is executed in computer system.It, in some cases, can be to be different from herein although being shown in figure logical orderSequence executes shown or described step.
Embodiment one
Fig. 3 be the touch control identification method provided in an embodiment of the present invention based on infrared touch panel, this method apply comprisingIn the display device of infrared touch panel, the infrared touch panel on common liquid crystal display as shown in Figure 1, be arranged infrared touchingTouch frame, infrared touch frame includes long side transmitting tube, short side transmitting tube, long side reception pipe, short side reception pipe, long side transmitting tube and lengthSide reception pipe is oppositely arranged, and short side transmitting tube and short side reception pipe are oppositely arranged, as shown in figure 3, the method may include:
Step 101: the transmitting tube on infrared touch panel first direction side is scanned, to obtain at least one first touchPoint, and store at least one described first touch point.
Wherein, in a first direction in the transmitting tube scanning process on side, the angle of each scanning direction, sweep time are okIt presets as needed, the invention does not limit this.
Optionally, for any first touch point at least one described first touch point, the driving is described infraredThe transmitting tube on touch screen first direction side is scanned, and can specifically include with obtaining first touch point:
The transmitting tube on infrared touch panel first direction side is driven to carry out the first scanning direction and the second scanning directionScanning, to obtain the first touch area and the second touch area;First touch area is to connect on first scanning directionContinue the touch area that the optical path being blocked is constituted, is continuously blocked on the second touch area second scanning directionThe touch area that optical path is constituted;
The overlapping region for obtaining first touch area and second touch area, positions from the overlapping regionObtain first touch point.
Wherein, the first scanning direction is any scanning direction on first direction side;Second scanning direction is first directionAny scanning direction on side in addition to the first scanning direction, and scanning direction can be made of one group of parallel light path, and be formedThe slope of the parallel light path in different scanning direction is different.
Optionally, from the overlapping region positioning obtain first touch point can be with are as follows:
The central point of the overlapping region is determined as first touch point.
For example, Fig. 4 is the schematic diagram that candidate touch point is determined in long side scanning, from fig. 4, it can be seen that long side transmitting tube is logical1 pair 1 of scanning mode is crossed, first direction scanning is first carried out, determines touch area a, then, then carry out second direction scanning,Touch area b is determined, finally, the central point of the overlapping region of touch area a and touch area b is determined as candidate touchPoint.
In addition, it is understood that in embodiments of the present invention, can also be driven when being scanned using 1 pair of multimodeAt least two transmitting tubes on infrared touch panel first direction side scan 1 pair more, to realize the scanning of multiple scanning directions, andThe situation that is blocked of each scanning direction is determined according to the voltage value at reception pipe, and the first hair is obtained according to the above-mentioned situation that is blockedThe touch area that the optical path being continuously blocked on each scanning direction of pipe is constituted is penetrated, with any two on above-mentioned multiple scanning directionsThe touch area of scanning direction seeks common ground to obtain the first candidate touch point, and according to the touch area pair of untreated scanning directionFirst candidate touch point carries out terrible processing, finally obtains the first touch point.
Step 102: drive the transmitting tube on infrared touch panel second direction side to be scanned, with obtain at least oneTwo touch points.
Wherein, the transmitting tube on second direction side be scanned obtain at least one second touch point by way of and stepIt is identical in such a way that the transmitting tube on first direction side is scanned and obtains at least one first touch point in 101, herein no longerIt is described in detail.
Still by taking Fig. 4 as an example, there is shorter time interval between second direction scanning since first direction is scanned, andTouch point is being moved in the time interval, so, touch point mobile distance on the direction relative to long side is not veryGreatly, it and relative to then moving distance is likely to bigger on the direction of short side, therefore, candidate is touched according to what long side scanning was determinedTouching coordinate value corresponding with long side in coordinate a little is that more accurately, and coordinate value corresponding with short side is not accurate enough, deviation is bigger.Meanwhile when carrying out short side scanning, the coordinate value corresponding with the short side of the touch point got is ratioIt is accurate, and and the corresponding coordinate value deviation of long side be bigger.
In order to overcome the problems, such as that a grid deviation in the touch point coordinate determined after single side scan is larger, this hairBright embodiment obtains the similar historical storage touch point compared with the touch point scanned when front, in historical storage touch pointThe bigger coordinate value of the touch point large deviations that scan when front is corrected with when the opposite coordinate points in front.Specific implementation is such asDescribed in lower step 103-104.
Step 103: at least one described second touch point and at least one described first touch point being matched, determinedAt least one matching pair out, the matching is to including second touch point and first touch point.
Illustratively, described by least one described second touch point and the progress of at least one described first touch pointMatch, determine at least one matching to can specifically include:
For any second touch point at least one described second touch point, calculate second touch point with it is describedDistance at least one first touch point between each first touch point, obtains at least one distance value;
It determines at least one described distance value and is less than the first touch point corresponding to preset threshold and the smallest distance value;
Second touch point and first touch point group are combined into a matching pair.
Wherein, preset threshold, which can according to need, is configured, and comparison of the embodiment of the present invention is without limiting;And it is European away fromFrom be calculated as existing common technology, be not described in detail herein.
Optionally, it can calculate in the second touch point and at least one described first touch point between each first touch pointEuclidean distance, if the Euclidean distance of two touch points is less than or equal to preset threshold, then it represents that the two coordinate points may be adjacentThe coordinate points of two touch points of the same touch objects that the scanning moment is scanned on the touchscreen, can match;If two coordinatesEuclidean distance between point is greater than preset threshold, then it represents that the two coordinate points are definitely not that same touch objects exist at the adjacent scanning momentThe coordinate points of two touch points left on touch screen cannot match.
Step 104: for any matching pair of at least one matching centering, by the second touch point of the matching centeringAnd the second direction corresponding coordinate value when corresponding coordinate value and the first touch point are with the first direction carry outCombination, is determined as the touch point on the infrared touch panel for the coordinate after combination, and export the touch point.
For example, if needing four lines of picture simultaneously on infrared touch panel, it at this time can be by the touch point at T0 moment: (x0, y0),(x1, y1), (x2, y2), (x3, y4) are stored in touch point concentration, when obtained after long side scans 7 candidate touch points (2,3), (5,7), (2.5,3), (4,3.5), (2,4), (6,2), (3,2.5) click through (x0, y0) with this 7 candidate touch respectivelyRow Euclidean distance calculates, if the Euclidean distance of (x0, y0) and coordinate points (2.5,3) is less than preset threshold and apart from minimum, then fromX-coordinate 2.5 is chosen in candidate touch point (2.5,3), from Y-coordinate y0 is chosen in (x0, y0), group is combined into (2.5, y0), by coordinatePoint (2.5, y0) is determined as touch point, and exports (2.5, y0);Similarly, true respectively according to (x1, y1), (x2, y2), (x3, y4)Make other three touch points on current time infrared touch panel.
In this way, the position of touch point can be determined according to the result after single side scan through the above steps.
It will be appreciated that foregoing merely illustrate the processes how a single side scan determines touch point, at this time, however, it is determined thatThe time that there is no touch area on infrared touch panel is greater than preset time value, it is determined that touch terminates, wherein when described defaultBetween value can according to need and set, comparison of the embodiment of the present invention is without limiting;Touch area if it exists, it is determined that touchIt is not finished, the scanning result on second direction side can be stored, carried out according to the execution method of step 102-104 nextSingle side scan determines touch point, wherein it should be noted that long side and short side can replace during repeatingScanning, i.e., after this driving long side transmitting tube is scanned, and then just driving short side transmitting tube is scanned determination next timeTouch point out.
Further, it if the scanning of the transmitting tube on infrared touch panel first direction side is preliminary sweep, is obtainingBehind at least one first touch point, the method can also include:
At least one described first touch point is exported on the infrared touch panel.
Wherein, the preliminary sweep can be with are as follows: the scanning to initial touch point.
Additional symbols are carried out to the prior art and touch control method provided by the invention by taking Fig. 5 and Fig. 6 as an example below, whereinLong side is x-axis direction side, and short side is y-axis direction side:
Fig. 5 be using touch control method shown in Fig. 2 carry out touch point identification timing diagram, as shown in figure 5, the t1 moment intoRow long side scans (touch objects are in A point at this time), obtains touch area 1, then, carries out short side scanning at the t2 moment and (touches at this timeObject is in B point), touch point (x1, y1) is obtained from positioning in the overlapping region of touch area 1 and the second touch area 2, and export touchingTouch point (x1, y1);Similarly, it is determined touch point (x2, y2) according to the scanning of the long side at t3 moment and the scanning of the short side at t4 moment, andIt exports touch point (x2, y2);Touch point (x3, y3) is determined according to the scanning of the long side at t5 moment and the scanning of the short side at t6 moment,And export touch point (x3, y3).
Fig. 6 is the timing diagram of touch-control provided in an embodiment of the present invention identification, as shown in fig. 6, storing the touch point t0 firstCoordinate (x0, y0) then carries out short side scanning, touch point (x1, y1) is determined, according in the previously described touch pointX1 value it is not accurate enough, at this point, if the Euclidean distance calculated between the touch point (x1, y1) and initial coordinate (x0, y0) is smallIn preset threshold, it is determined that the touch point is adjacent with initial touch point, by the coordinate (x0, y0) of the touch point t0 x0 and touchThe coordinate (x0, y1) of y1 composition in point (x1, y1) is determined as the touch point at t1 moment, the touch point is exported, to guarantee to touchEach value touched in a coordinate is more accurate;Next, carry out long side scanning, determine touch point (x2, y2), according to it is previously described canKnow that the y2 value in the touch point is not accurate enough, at this point, if calculate the touch point (x2, y2) and touch coordinate point (x1, y1) itBetween Euclidean distance be less than preset threshold, it is determined that the touch point and touch coordinate point (x1, y1) it is adjacent, by touch point coordinateThe coordinate (x2, y1) of y1 composition in x2 and touch point (x1, y1) in (x2, y2) is determined as the touch point at t2 moment, and defeatedThe touch point out;Similarly, by short side and long side mixed sweep, determine t3, t4, t5 moment touch point (x2, y3), (x4,y3)(x4,y5)。
From figs. 5 and 6, it can be seen that existing touch recognition is just determined to touch after long side scanning and the short side end of scanPoint coordinate, and the application can determine that out touch point coordinate after single side scan, compared with prior art, the touch orientedThe number of point increases once than the prior art, has achieved the purpose that interleave raises speed.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of touch identification method based on infrared touch panel, drive described redThe transmitting tube on outer touch screen first direction side is scanned, and to obtain at least one first touch point, and stores described at least oneA first touch point;Drive the transmitting tube on infrared touch panel second direction side to be scanned, with obtain at least one secondTouch point;At least one described second touch point and at least one described first touch point are matched, determine at least oneA matching pair, the matching is to including second touch point and first touch point;For at least one described matching pairIn any matching pair, by it is described matching the second touch point of centering coordinate value corresponding with the second direction side and first touchingThe coordinate value corresponding with the first direction side touched a little is combined, and the coordinate after combination is determined as the infrared touch panelOn touch point, and export the touch point.
In existing touch control identification method, the technical side of a touch point can be just oriented through long side scanning and short side scanningCase is compared, and this case only need to can orient touch point by long side or short side scanning, in the situation that the single side scan time is constantUnder, the time required for positioning touch point is substantially reduced, the reaction speed of infrared touch panel is improved;Simultaneously as in listShorter without the time interval between scanning direction in the scanning process of side, touch objects are on coordinate corresponding with scanning direction sideMoving range is smaller, and the touch point determined is more accurate;In addition, the application includes long side scanning and short side scanning at oneScan period in, the number of the touch point oriented increases primary than the prior art, has achieved the purpose that interleave raises speed.
According to embodiments of the present invention, the following embodiments of the present invention additionally provide a kind of display device, are preferably used for realizingMethod in above method embodiment.
Embodiment two
Fig. 7 is a kind of structure chart of display device 100 provided in an embodiment of the present invention, as shown in fig. 7, the display device100 may include: infrared touch panel 1011, acquiring unit 1012, storage unit 1013, matching unit 1014, determination unit1015, output unit 1016;
Wherein, the infrared touch panel 1011 comprising liquid crystal display and is arranged in institute at rectangular configuration shown in FIG. 1The infrared touch frame around liquid crystal display is stated, the infrared touch frame includes long side transmitting tube, short side transmitting tube, long side receptionPipe, short side reception pipe, long side transmitting tube and long side reception pipe are oppositely arranged, and short side transmitting tube and short side reception pipe are oppositely arranged;(for example user uses any suitable object or attachment such as finger, stylus for the touch operation of collectable user on it or nearbyOperation on the touchscreen), and corresponding attachment device is driven according to preset formula, it may also be used for display is defeated by userThe information that enters or the information for being supplied to user.
Acquiring unit 1012, for driving the transmitting tube on the 1011 first direction side of infrared touch panel to be scanned, withObtain at least one first touch point.
Wherein, in a first direction in the transmitting tube scanning process on side, the angle of each scanning direction, sweep time are okIt presets as needed, the invention does not limit this.
Storage unit 1013, at least one first touch point got for storing the acquiring unit 1012.
The acquiring unit 1012 is also used to that the transmitting tube on the 1011 second direction side of infrared touch panel is driven to be sweptIt retouches, to obtain at least one second touch point.
Matching unit 1014, at least one second touch point for getting the acquiring unit 1012 and described is depositedAt least one first touch point that storage unit 1013 stores is matched, and determines at least one matching pair, the matching is to packetContaining second touch point and first touch point.
Determination unit 1015, any of at least one matching centering for being determined for the matching unit 1014Pairing, by it is described matching the second touch point of centering coordinate value corresponding with the second direction side and the first touch point with instituteIt states the corresponding coordinate value in first direction side to be combined, the coordinate after combination is determined as the touching on the infrared touch panel 1011It touches a little.
Output unit 1016, the touch point determined for exporting the determination unit 1015.
Further, for any first touch point at least one described first touch point, the acquiring unit1012 are specifically used for:
The transmitting tube on the 1011 first direction side of infrared touch panel is driven to carry out the first scanning direction and the second scanning sideTo scanning, to obtain the first touch area and the second touch area;First touch area is first scanning directionOn the touch area that constitutes of the optical path that is continuously blocked, second touch area is continuously to be hidden on second scanning directionThe touch area that the optical path of gear is constituted;
The overlapping region for obtaining first touch area and second touch area, positions from the overlapping regionObtain first touch point.
Wherein, the first scanning direction is any scanning direction on first direction side;Second scanning direction is first directionAny scanning direction on side in addition to the first scanning direction, and scanning direction can be made of one group of parallel light path, and be formedThe slope of the parallel light path in different scanning direction is different.
Optionally, from the overlapping region positioning obtain first touch point can be with are as follows:
The central point of the overlapping region is determined as first touch point.Further, for it is described at least oneAny first touch point in first touch point, the acquiring unit 1012 are specifically used for:
Driving at least two transmitting tubes on infrared touch panel first direction side scan 1 pair, to realize multiple scannings moreThe scanning in direction, and determine according to the voltage value at reception pipe the situation that is blocked of each scanning direction, and be blocked according to above-mentionedSituation obtains the touch area that the optical path being continuously blocked on each scanning direction of the first transmitting tube is constituted, with above-mentioned multiple scanning sidesThe touch area of upward any two scanning direction seeks common ground to obtain the first candidate touch point, and according to untreated scanning sideTo touch area terrible processing is carried out to the first candidate touch point, finally obtain the first touch point.
Further, the matching unit 1014 is specifically used for:
For any second touch point at least one described second touch point, calculate second touch point with it is describedDistance at least one first touch point between each first touch point, obtains at least one distance value;
It determines at least one described distance value and is less than the first touch point corresponding to preset threshold and the smallest distance value;
Second touch point and first touch point group are combined into a matching pair.
Wherein, preset threshold, which can according to need, is configured, and comparison of the embodiment of the present invention is without limiting;And it is European away fromFrom be calculated as existing common technology, be not described in detail herein.
Optionally, it can calculate in the second touch point and at least one described first touch point between each first touch pointEuclidean distance, if the Euclidean distance of two touch points is less than or equal to preset threshold, then it represents that the two coordinate points may be adjacentThe coordinate points of two touch points of the same touch objects that the scanning moment is scanned on the touchscreen, can match;If two coordinatesEuclidean distance between point is greater than preset threshold, then it represents that the two coordinate points are definitely not that same touch objects exist at the adjacent scanning momentThe coordinate points of two touch points left on touch screen cannot match.
Further, described if the scanning of the transmitting tube on 1011 first direction side of the infrared touch panel is preliminary sweepPreliminary sweep can be with are as follows: the scanning to initial touch point;The then output unit 1016, is also used to:
After acquiring unit 1012 gets at least one first touch point, institute is exported on the infrared touch panel 1011State at least one first touch point.
It should be noted that storage unit can be the memory set up inside device in above-mentioned display device 100, showAcquiring unit, matching unit, determination unit in device 100 can be the processor individually set up, and also can integrate and controllingIt is realized in some processor of device, in addition it is also possible to be stored in the form of program code in the memory of controller, by controllingSome processor of device processed calls and executes the function of the above construction of knowledge base.Memory described here can be volatibilityMemory (volatile memory), such as random access memory (random-access memory, RAM);Or it is non-easyThe property lost memory (non-volatile memory), such as read-only memory (read-only memory, ROM), flashDevice (flash memory), hard disk (hard disk drive, HDD) or solid state hard disk (solid-state drive, SSD);Or the combination of the memory of mentioned kind;The processor can be a central processing unit (CentralProcessing Unit, CPU) or specific integrated circuit (Application Specific IntegratedCircuit, ASIC), or be arranged to implement one or more integrated circuits of the embodiment of the present invention.
From the foregoing, it will be observed that the embodiment of the present invention provides a kind of display device 100, infrared touch panel first direction side is drivenTransmitting tube be scanned, to obtain at least one first touch point, and store at least one described first touch point;Driving instituteThe transmitting tube for stating infrared touch panel second direction side is scanned, to obtain at least one second touch point;By described at least oneA second touch point and at least one described first touch point are matched, and determine at least one matching pair, the matching pairInclude second touch point and first touch point;For any matching pair of at least one matching centering, by instituteState matching the second touch point of centering coordinate value corresponding with the second direction side and the first touch point with the first partyIt is combined to the corresponding coordinate value in side, the coordinate after combination is determined as the touch point on the infrared touch panel, and exportThe touch point.It is scanned with existing touch control identification device through long side and short side scans the technical side that can just orient a touch pointCase is compared, and this case only need to can orient touch point by long side or short side scanning, in the situation that the single side scan time is constantUnder, the time required for positioning touch point is substantially reduced, the reaction speed of infrared touch panel is improved;Simultaneously as in listShorter without the time interval between scanning direction in the scanning process of side, touch objects are on coordinate corresponding with scanning direction sideMoving range is smaller, and the touch point determined is more accurate;In addition, the application includes long side scanning and short side scanning at oneScan period in, the number of the touch point oriented increases primary than the prior art, has achieved the purpose that interleave raises speed.
Finally, it should be noted that the above embodiments are merely illustrative of the technical solutions of the present invention, rather than its limitations;AlthoughPresent invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that: it still may be usedTo modify the technical solutions described in the foregoing embodiments or equivalent replacement of some of the technical features;And these are modified or replaceed, technical solution of various embodiments of the present invention that it does not separate the essence of the corresponding technical solution spirit andRange.