Nothing Special   »   [go: up one dir, main page]

CN105335020B - A kind of touch point recognition methods and device - Google Patents

A kind of touch point recognition methods and device Download PDF

Info

Publication number
CN105335020B
CN105335020B CN201410404453.0A CN201410404453A CN105335020B CN 105335020 B CN105335020 B CN 105335020B CN 201410404453 A CN201410404453 A CN 201410404453A CN 105335020 B CN105335020 B CN 105335020B
Authority
CN
China
Prior art keywords
scanning
scanning direction
period
touch point
storage region
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.)
Active
Application number
CN201410404453.0A
Other languages
Chinese (zh)
Other versions
CN105335020A (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.)
Hisense Visual Technology Co Ltd
Original Assignee
Qingdao Hisense Electronics 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 Qingdao Hisense Electronics Co Ltd filed Critical Qingdao Hisense Electronics Co Ltd
Priority to CN201410404453.0A priority Critical patent/CN105335020B/en
Publication of CN105335020A publication Critical patent/CN105335020A/en
Application granted granted Critical
Publication of CN105335020B publication Critical patent/CN105335020B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Position Input By Displaying (AREA)

Abstract

The present invention relates to field of photoelectric technology more particularly to a kind of touch point recognition methods and devices, to improve touch point recognition speed.In the embodiment of the present invention, executed for each scan period:Choose in this period that in N number of scanning direction not scanned 1 scanning direction, after the scanning direction progress light path scanning of selection, the scanning result data in Current Scan direction are stored in the corresponding storage region in Current Scan direction, then, touch point identification is carried out according to the scanning result data stored in scanning area, rather than after the light path of all scanning directions is scanned every time, further according to entire light path scanning result calculated using algorithm after identify touch point, therefore, using touch point recognition methods provided in an embodiment of the present invention and device on the basis of ensureing touch point accuracy of identification, improve the speed of touch point identification.

Description

A kind of touch point recognition methods and device
Technical field
The present invention relates to field of photoelectric technology more particularly to a kind of touch point recognition methods and devices.
Background technology
The presence of touch point can be identified in touch screen display area by touch screen electronic system.Current touch technology In, the advantages that infrared touch panel is with its simple production process, production cost is low, easy for installation, high reliability, obtains in numerous areas To being widely applied.The basic structure of infrared touch panel is that several infrared emission members are equipped with around touch detection region Part and infrared receiver component, wherein infrared emission component and infrared receiver component correspond, and form infrared emission reception pipe pair, The infrared light that infrared emission component is sent out is passed through by the infrared receiver component reception positioned at opposite when there is touch event generation The light of touch location is blocked, and processor to judge the generation of touch event and calculates the position of touch point with this.
In the prior art, the method for touch screen identification touch point is:The light path of all scanning directions is scanned first, Then after processor is calculated according to the scanning result of entire light path using algorithm, touch point is exported.Due to scanning all sweep The light path occupied time for retouching direction can be very long, therefore is existed using the method for existing infrared touch panel identification touch point and touched Touch the slower problem of a recognition speed.
Invention content
A kind of touch point recognition methods of offer of the embodiment of the present invention and device, to improve touch point recognition speed.
The embodiment of the present invention provides a kind of touch point recognition methods, is applied to touch screen, and the touch screen includes at least two A transmitting side and at least two receives side, and the transmitting side is equipped with infrared emission component, and the reception side is equipped with infrared receiver member Part executes following steps for each scan period:
Step A, choose in this period that in N number of scanning direction not scanned 1 scanning direction, triggering described at least two The infrared emission component of transmitting side and described at least two receives the infrared receiver component on side according to the scanning direction progress of selection Light path scans;The scanning direction indicates by the size of the angle formed between the light path scanned and the transmitting side, N mono- The quantity of all scanning directions in a period;
If step B, the quantity of current all scanning directions scanned is N in this period, according to N number of in this period The scanning result of scanning direction carries out touch point identification;If the quantity of current all scanning directions scanned is in this period K, k<N, then according to the scanning of N-k scanning direction in the scanning result of k scanning direction in this period and upper a cycle As a result touch point identification is carried out, N-k scanning direction in the upper a cycle and the k scanning direction in this period It differs;
Step C, judge in this period whether for all scanning directions to have carried out light path scanning, if it is not, then returning to institute State step A.
Preferably, in the step B, further include:If the number of current all scanning directions scanned in this period Amount is k, k<N, and the scanning result of N-k scanning direction in a cycle has not been obtained, then according to k scanning in this period The scanning result in direction carries out touch point identification.
Preferably, in the step A, not scanned 1 scanning side in N number of scanning direction in described this period of selection To, including:Choose in this period that in N number of scanning direction not scanned 1 scanning direction according to pre-set sequence.
Preferably, the pre-set sequence is:Angle sequence from big to small or the angle from it is small to Big sequence.
Preferably, being provided with N number of storage region for N number of scanning direction, each storage region is for storing one The scanning result data of scanning direction, the scanning direction corresponding to each storage region are different;In the step A, carry out After light path scanning, further include:If the corresponding storage region in Current Scan direction is sky, by the scanning knot in Current Scan direction Fruit data are stored in the corresponding storage region in Current Scan direction, if the corresponding storage region in Current Scan direction is not sky, Scanning result data in the corresponding storage region in Current Scan direction are replaced with to the scanning result data in Current Scan direction; The step B is specifically included:Touch point identification is carried out according to the scanning result data stored in N number of scanning area.
The embodiment of the present invention provides a kind of touch point identification device, is applied to touch screen, and the touch screen includes at least two A transmitting side and at least two receives side, and the transmitting side is equipped with infrared emission component, and the reception side is equipped with infrared receiver member Part, including:Scanning element, touch point recognition unit and judging unit;
The scanning element is chosen not scanned in N number of scanning direction in this period for being directed to each scan period 1 scanning direction, the infrared emission component and at least two receptions the infrared of side for triggering at least two transmitting side connect It receives element and carries out light path scanning according to the scanning direction of selection;The scanning direction is by between the light path scanned and the transmitting side The size of the angle of formation indicates that N is the quantity of all scanning directions in a cycle;
The touch point recognition unit, for being directed to each scan period, within this period it is current it is all scanned sweep When the quantity for retouching direction is N, touch point identification is carried out according to the scanning result of N number of scanning direction in this period;Work as in this period When the quantity of preceding all scanning directions scanned is k, k<N, then according to the scanning result of k scanning direction in this period and The scanning result of N-k scanning direction carries out touch point identification in upper a cycle, N-k scanning in the upper a cycle Direction is differed with the k scanning direction in this period;
Whether the judging unit judges equal for all scanning directions in this period for being directed to each scan period Light path scanning is carried out, if not, it indicates that the scanning element executes following operation:It chooses in this period in N number of scanning direction Not scanned 1 scanning direction, the infrared emission component and described at least two for triggering at least two transmitting side receive The infrared receiver component on side carries out light path scanning according to the scanning direction of selection.
Preferably, the touch point recognition unit, is additionally operable to:If current all scanning directions scanned in this period Quantity be k, k<N, and the scanning result of N-k scanning direction in a cycle has not been obtained, then according to k in this period The scanning result of scanning direction carries out touch point identification.
Preferably, the scanning element, is specifically used for:
Choose in this period that in N number of scanning direction not scanned 1 scanning direction according to pre-set sequence.
Preferably, the pre-set sequence is:Angle sequence from big to small or the angle from it is small to Big sequence.
Preferably, being provided with N number of storage region for N number of scanning direction, each storage region is for storing one The scanning result data of scanning direction, the scanning direction corresponding to each storage region are different;The scanning element is also used In:After carrying out light path scanning, if the corresponding storage region in Current Scan direction is sky, by the scanning in Current Scan direction Result data is stored in the corresponding storage region in Current Scan direction, if the corresponding storage region in Current Scan direction is not sky, Scanning result data in the corresponding storage region in Current Scan direction are then replaced with to the scanning result number in Current Scan direction According to;The touch point recognition unit is specifically used for:It is touched according to the scanning result data stored in N number of scanning area Point identification.
In the embodiment of the present invention, executed for each scan period:It chooses in this period and is not scanned in N number of scanning direction 1 scanning direction, according to selection scanning direction carry out light path scanning after, by the scanning result data in Current Scan direction It is stored in the corresponding storage region in Current Scan direction, then, is carried out according to the scanning result data stored in scanning area Touch point identifies, if the quantity of current all scanning directions scanned is N in this period, is swept according to N number of in this period The scanning result for retouching direction carries out touch point identification;If the quantity of current all scanning directions scanned is k in this period, k<N, then according to the scanning knot of N-k scanning direction in the scanning result of k scanning direction in this period and upper a cycle Fruit carries out touch point identification.Rather than after being every time scanned the light path of all scanning directions, further according to entire light path Scanning result identifies touch point after being calculated using algorithm.Therefore, it is identified using touch point provided in an embodiment of the present invention Method and device improves the speed of touch point identification on the basis of ensureing touch point accuracy of identification.
Description of the drawings
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this For the those of ordinary skill in field, without having to pay creative labor, it can also be obtained according to these attached drawings His attached drawing.
Fig. 1 is a kind of touch point recognition methods flow chart provided in an embodiment of the present invention;
Fig. 2-A are the schematic diagram of scanning direction provided in an embodiment of the present invention;
Fig. 2-B are the schematic diagram of scanning direction provided in an embodiment of the present invention;
Fig. 2-C are the schematic diagram of scanning direction provided in an embodiment of the present invention;
Fig. 2-D are the schematic diagram of scanning direction provided in an embodiment of the present invention;
Fig. 2-E are the schematic diagram of scanning direction provided in an embodiment of the present invention;
Fig. 3 is a kind of touch point recognition methods flow chart that another embodiment of the present invention provides;
Fig. 4 is a kind of touch point identification device structural schematic diagram provided in an embodiment of the present invention;
Fig. 5 is a kind of touch point identification device structural schematic diagram that another embodiment of the present invention provides.
Specific implementation mode
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts All other embodiment, shall fall within the protection scope of the present invention.
It is illustrative to the description only actually of at least one exemplary embodiment below, is never used as to the present invention And its application or any restrictions that use.
In the embodiment of the present invention, in each scan period, the light path of all scanning directions is scanned.Wherein, The value of scan period length can refer in the prior art, when the light path for the scanning through all scanning directions required time Length.According to the difference of touch screen hardware process speed, allow in the embodiment of the present invention to the length of scan period into Mobile state Adjustment.
Below by taking any one period as an example, the processing stream within a scan period is described by several preferred embodiments Journey
As shown in Figure 1, being a kind of touch point recognition methods provided in an embodiment of the present invention, it is applied to touch screen, it is described to touch It includes that at least two transmitting sides and at least two receive side to touch screen, and the transmitting side is equipped with infrared emission component, the reception side Equipped with infrared receiver component, following steps are executed for each scan period:
S101, choose in this period that in N number of scanning direction not scanned 1 scanning direction, triggering described at least two The infrared emission component of transmitting side and described at least two receives the infrared receiver component on side according to the scanning direction progress of selection Light path scans;The scanning direction indicates by the size of the angle formed between the light path scanned and the transmitting side, N mono- The quantity of all scanning directions in a period.
S102, touch point identification is carried out.Wherein:If the quantity of current all scanning directions scanned is in this period N then carries out touch point identification according to the scanning result of N number of scanning direction in this period;If currently all in this period swept The quantity for the scanning direction retouched is k, k<N, then according in the scanning result of k scanning direction in this period and upper a cycle The scanning result of N-k scanning direction carries out touch point identification, N-k scanning direction in the upper a cycle and this period The interior k scanning direction differs.
S103, judge in this period whether for all scanning directions to have carried out light path scanning, if it is not, described in then returning Step S101, if then going to step S104.
S104, the light path scanning for terminating this period.
Wherein, recorded in above-mentioned steps S101:Scanning direction is by forming between the light path and transmitting side that scan Corner dimension indicates.Here, detailed explanation is carried out to it by way of example, such as in the infrared touch panel of rectangular configuration, Scanning optical path and the angle of transmitting side can be 30 °, 60 °, 90 °, 120 ° and 150 °.Can also based on pass through calculating scan light On the basis of the angle formed between road and transmitting side divides scanning direction, quantity division, example are carried out to scanning direction Such as, when 30 ° of the angle formed between scanning optical path and transmitting side, it is set as scanning direction 1, as shown in Fig. 2-A;Scanning optical path with When 60 ° of the angle formed between transmitting side, it is set as scanning direction 2, as shown in fig. 2-b;Shape between scanning optical path and transmitting side At 90 ° of angle when, scanning direction 3 is set as, as shown in Fig. 2-C;120 ° of the angle formed between scanning optical path and transmitting side When, it is set as scanning direction 4, as depicted in fig. 2-d;When 150 ° of the angle formed between scanning optical path and transmitting side, it is set as sweeping Direction 5 is retouched, as shown in Fig. 2-E.
Further, in above-mentioned steps S101, one state flag bit can be set for each scanning direction and used To indicate the state of each scanning direction.In this way, in each period, not scanned 1 scanning is chosen reversely, and to this After the light path of scanning direction is scanned, just the state of the scanning direction is set as having scanned.Such as the state mark of scanning Will can be indicated with number 0 and 1, when the numerical value in the state flag bit of scanning direction is 0, indicate that this scanning direction is It has scanned;Such as when the numerical value in the state flag bit of scanning direction is 1, indicate that this scanning direction is not scan.
Further, in above-mentioned steps S102, if in this period current all scanning directions scanned quantity For k, k<N, and the scanning result of N-k scanning direction in a cycle has not been obtained, then according to k scanning side in this period To scanning result carry out touch point identification;Alternatively, if current period is first scan period, according to current in this period The scanning result of all scanning directions scanned carries out touch point identification.
Further, in above-mentioned steps S101 for the ease of choosing in this period not scanned 1 in N number of scanning direction A scanning direction, can choose in this period that in N number of scanning direction not scanned 1 scanning side according to pre-set sequence To the pre-set sequence can be:According to the sequence of angle from big to small, or according to angle from small to large suitable Sequence.Such as pre-set sequence can be 30 °, 60 °, 90 °, 120 ° and 150 °;Or 150 °, 120 °, 90 °, 60 ° and 30°.Wherein, when pre-set sequence is 30 °, 60 °, 90 °, 120 ° and 150 °, it is assumed that in a cycle, according to pre- The sequence being first arranged obtains the scanning direction scanning result after the light path that selection scanning direction is 30 ° first is scanned, Such as scanning result can be to scan the light path data obtained after this light path, or touch screen receives side and receiving The response voltage generated when infrared light carries out the later data of binarization.Processor is 30 ° according to the scanning direction of acquisition Scanning result, after being calculated using corresponding algorithm, for example, using the algorithm of logical calculated or mathematical computations, identify Touch point.According to pre-set sequence, the light path that scanning direction is 60 ° is then chosen again and is scanned, the scanning side is obtained To scanning result, the scanning result that scanning result and scanning direction that processor is 30 ° according to the scanning direction of acquisition are 60 °, After being calculated using corresponding algorithm, touch point is identified.According to pre-set sequence, then choosing scanning direction again is 90 ° of light path is scanned, and obtains the scanning direction scanning result, the scanning that processor is 30 ° according to the scanning direction of acquisition As a result the scanning result that the scanning result and scanning direction that, scanning direction is 60 ° are 90 °, is counted using corresponding algorithm After calculation, touch point is identified.According to pre-set sequence, the light path that scanning direction is 120 ° is then chosen again and is scanned, The scanning direction scanning result is obtained, scanning result that processor is 30 ° according to the scanning direction of acquisition, scanning direction are 60 ° Scanning result, the scanning result that scanning direction is 90 ° and the scanning result that scanning direction is 120 °, using corresponding algorithm After being calculated, touch point is identified.According to pre-set sequence, the light path that scanning direction is 150 ° is then chosen again and is carried out Scanning, obtains the scanning direction scanning result, scanning result that processor is 30 ° according to the scanning direction of acquisition, scanning direction Scanning result, the scanning result that scanning direction is 120 ° and the scanning direction for being 90 ° for 60 ° of scanning results, scanning direction For 150 ° of scanning result touch point is identified after being calculated using corresponding algorithm.
Further, for the ease of obtaining the scanning result data of each scanning direction, N number of scanning side can also be directed to To N number of storage region is provided with, each storage region is used to store the scanning result data of a scanning direction, each memory block Scanning direction corresponding to domain is different.Therefore, in above-mentioned steps S101, after carrying out light path scanning, can also include: If the corresponding storage region in Current Scan direction is sky, the scanning result data in Current Scan direction are stored in Current Scan The corresponding storage region in direction, it is if the corresponding storage region in Current Scan direction is not sky, Current Scan direction is corresponding Scanning result data in storage region replace with the scanning result data in Current Scan direction.It can be wrapped in above-mentioned steps S102 It includes:Touch point identification is carried out according to the scanning result data stored in N number of scanning area.
It further, can also be by the scanning knot in Current Scan direction in order to save the memory space of scanning result data Fruit data are stored in the first data field, and the scanning result data of a upper scanning direction are stored in the second data field.If the The scanning direction scanning result data identical with Current Scan direction being stored in two data fields in a cycle are then by it It is deleted.With a cycle, there are three scanning directions below, are illustrated for 2 periods of scanning.Wherein, three scanning The setting method in direction is:When 30 ° of the angle formed between scanning optical path and transmitting side, it is set as scanning direction 1, such as Fig. 2-A It is shown;When 60 ° of the angle formed between scanning optical path and transmitting side, it is set as scanning direction 2, as shown in fig. 2-b;Scanning optical path When 90 ° of the angle formed between transmitting side, it is set as scanning direction 3, as shown in Fig. 2-C.According to:Scanning direction 1, scanning side To 2, the sequence of scanning direction 3 carries out light path scanning.In a cycle, when Current Scan direction is scanning direction 1, it will sweep The scanning result data for retouching direction 1 are stored in the first data field;According to the sequence of setting, light path is carried out to scanning direction 2 and is swept After retouching, the scanning result data of scanning direction 2 are stored in the first data field, and by scanning direction 1 in the first data field Scanning result data are stored in the second data field;It, will after carrying out light path scanning to scanning direction 3 according to the sequence of setting The scanning result data of scanning direction 3 are stored in the first data field, and by the scanning result number of scanning direction 2 in the first data field According to being stored in the second data field.In second period, when Current Scan direction is scanning direction 1, by sweeping for scanning direction 1 It retouches result data to be stored in the first data field, and scanning direction 1 in a cycle stored in the second data field is swept Result data is retouched to be deleted;According to the sequence of setting, after carrying out light path scanning to scanning direction 2, by sweeping for scanning direction 2 It retouches result data and is stored in the first data field, and the scanning result data of scanning direction 1 in the first data field are stored in second In data field, and the scanning result data of scanning direction 2 in a cycle stored in the second data field are deleted; According to the sequence of setting, after carrying out light path scanning to scanning direction 3, the scanning result data of scanning direction 3 are stored in the One data field, and the scanning result data of scanning direction 2 in the first data field are stored in the second data field, and by second The scanning result data of scanning direction 3 are deleted in a cycle stored in data field.
Further, each scan period start to be scanned light path before, the angle of scanning direction can be set Degree, the scanning mode that N number of scanning direction can also be arranged is not scan, can also be respectively provided with the light path of all scanning directions For non-occlusion state.
Above-mentioned flow is the scanning process in a cycle.Certainly, in actual use, touch screen terminal can be according to Above-mentioned flow cycle is scanned the light path in touch screen, phase can also be arranged according to the operating condition of touch screen terminal The sweep speed answered.Such as when touch screen terminal is mobile phone, when detecting that mobile phone is in operating status, it can accelerate to scan Speed, recognize touch point as soon as possible;When detecting that mobile phone is in standby, the speed of scanning can be slowed down, to save The electric power resource of touch screen terminal;Even when detecting that mobile phone has been switched off, it can stop being scanned light path.
A touch screen recognition methods provided through the embodiment of the present invention is not scanned a scanning direction when choosing, presses After the scanning direction progress light path scanning of selection, the scanning result data in Current Scan direction are stored in Current Scan side Into corresponding storage region.Then, touch point identification is carried out according to the scanning result data stored in scanning area.Rather than After the light path of all scanning directions is scanned, further according to entire light path scanning result calculated using algorithm after identify Go out touch point.Therefore, the touch point recognition methods provided using the embodiment of the present invention one is in the base for ensureing touch point accuracy of identification On plinth, the speed of touch point identification is improved.
As shown in figure 3, being a preferred embodiment provided by the invention, touch screen touches for infrared rectangle in this embodiment Screen is touched, which includes two transmitting sides and two reception sides.Infrared transmitting tube is arranged in transmitting side, receives side and sets It is equipped with infrared receiving tube.Assuming that it is previously provided with 5 scanning directions in a cycle in order in the present embodiment, it is further false If present scanning cycle is second scan period.Touch point recognition methods provided in this embodiment is as follows:
S301, initializing set scanning direction quantity are 5, and the light path of 5 scanning directions is non-occlusion state, and The scanning mode of 5 scanning directions is not scan.
Initializing set scanning direction quantity is 5, specially:Based on by being formed between calculating scanning optical path and transmitting side Angle scanning direction is divided on the basis of, to scanning direction carry out quantity division.Between scanning optical path and transmitting side When 30 ° of the angle of formation, it is set as scanning direction 1;When 60 ° of the angle formed between scanning optical path and transmitting side, it is set as sweeping Retouch direction 2;When 90 ° of the angle formed between scanning optical path and transmitting side, it is set as scanning direction 3;Scanning optical path and transmitting side Between 120 ° of the angle that is formed when, be set as scanning direction 4;When 150 ° of the angle formed between scanning optical path and transmitting side, if It is set to scanning direction 5.
S302, set the sequences of above-mentioned 5 scanning directions as:Scanning direction 1, scanning direction 2, scanning direction 3, scanning side To 4 and scanning direction 5;And 5 storage regions are correspondingly arranged on for above-mentioned 5 scanning directions, 5 storage region difference For:Storage region A, storage region B, storage region C, storage region D and storage region E.Wherein, scanning direction 1 is corresponding deposits Storage area domain is storage region A, and 2 corresponding storage region of scanning direction is storage region B, 3 corresponding storage region of scanning direction For storage region C, 4 corresponding storage region of scanning direction is storage region D, and 5 corresponding storage region of scanning direction is storage Region E.
S303, according to pre-set sequence, choose in current period the scanning direction 1 in i.e. second period first After light path is scanned, the scanning result data of the scanning direction are obtained, by the scanning result data of the scanning direction 1 of acquisition Replace the scanning result data of the scanning direction 1 obtained in a cycle stored in storage region A.Processor according to The scanning result data that are stored in storage region A i.e. in second period in current period and in a cycle:Storage The scanning result number of the scanning direction 3 stored in the scanning result data of the scanning direction 2 stored in the B of region, storage region C According to the scanning of the scanning direction 5 stored in the scanning result data and storage region E of the scanning direction 4 stored in, storage region D Result data identifies touch point after being calculated using corresponding algorithm.
Above-mentioned scanning result data can be to scan the light path data obtained after this light path, or touch screen Receive the data after the response voltage progress binarization that side is generated when receiving infrared light.
S304, according to pre-set sequence, choose in current period the light path of the scanning direction 2 in i.e. second period After being scanned, the scanning result data of the scanning direction are obtained, the scanning result data of the scanning direction 2 of acquisition are replaced The scanning result data of the scanning direction 2 obtained in a cycle stored in storage region B.Processor is according to current It is the scanning result number stored in the scanning result data stored in storage region A in second period, storage region B in period According to this and in a cycle:It is stored in the scanning result data of the scanning direction 3 stored in storage region C, storage region D Scanning direction 4 scanning result data and storage region E in the scanning result data of scanning direction 5 that store, using corresponding Algorithm calculated after, identify touch point.
S305, according to pre-set sequence, choose in current period the light path of the scanning direction 3 in i.e. second period After being scanned, the scanning result data of the scanning direction are obtained, the scanning result data of the scanning direction 3 of acquisition are replaced The scanning result data of the scanning direction 3 obtained in a cycle stored in storage region C.Processor is according to current It is the scanning result number stored in the scanning result data stored in storage region A in second period, storage region B in period According to the scanning result data stored in storage region C and in a cycle:The scanning direction stored in storage region D The scanning result data of the scanning direction 5 stored in 4 scanning result data and storage region E are carried out using corresponding algorithm After calculating, touch point is identified.
S306, according to pre-set sequence, choose in current period the light path of the scanning direction 4 in i.e. second period After being scanned, the scanning result data of the scanning direction are obtained, the scanning result data of the scanning direction 4 of acquisition are replaced The scanning result data of the scanning direction 4 obtained in a cycle stored in storage region D.Processor is according to current It is the scanning result number stored in the scanning result data stored in storage region A in second period, storage region B in period According to the scanning result data stored in the scanning result data and storage region D stored in, storage region C and in the first week In phase:The scanning result data of the scanning direction 5 stored in storage region E are identified after being calculated using corresponding algorithm Touch point.
S307, according to pre-set sequence, choose in current period the light path of the scanning direction 5 in i.e. second period After being scanned, the scanning result data of the scanning direction are obtained, the scanning result data of the scanning direction 5 of acquisition are replaced The scanning result data of the scanning direction 5 obtained in a cycle stored in storage region E.Processor is according to current It is the scanning result number stored in the scanning result data stored in storage region A in second period, storage region B in period It deposits according to the scanning result data stored in, storage region C, the scanning result data stored in storage region D and in storage region E The scanning result data of storage identify touch point after being calculated using corresponding algorithm.
S 308, the light path scanning for terminating second period.
As can be seen that by the touch point recognition methods provided in above preferred embodiment, when according to pre-set suitable After the light path of scanned scanning direction is scanned in sequence selection current period, the scanning that this is scanning direction is obtained Result data, the scanning result data in the Current Scan direction of acquisition are replaced with stored in corresponding storage region upper The scanning result data identical with Current Scan direction obtained in a cycle.Further according to being deposited in storage region in current period Scanning result data of storage or according in the scanning result data and upper a cycle stored in storage region in current period The scanning result data stored in storage region identify touch point after being calculated using corresponding algorithm.Rather than by institute After thering is the light path of scanning direction to be scanned, further according to entire light path scanning result calculated using algorithm after identify it is tactile It touches a little.Therefore, it is carried on the basis of ensureing touch point accuracy of identification using touch point recognition methods provided in an embodiment of the present invention The high speed of touch point identification.
Based on the same technical idea, the embodiment of the present invention also provides a kind of touch point identification device, which can use In execution above method embodiment.Touch point identification device provided in an embodiment of the present invention is applied to touch screen, the touch screen Side is received including at least two transmitting sides and at least two, the transmitting side is equipped with infrared emission component, and the reception side is equipped with Infrared receiver component, as shown in figure 4, including:Scanning element 41, touch point recognition unit 42 and judging unit 43.
Scanning element 41 is chosen in this period for being directed to each scan period not scanned 1 in N number of scanning direction The infrared receiver of the infrared emission component and at least two reception side of at least two transmitting side is triggered in a scanning direction Element carries out light path scanning according to the scanning direction of selection;The scanning direction is by shape between the light path scanned and the transmitting side At the size of angle indicate that N is the quantity of all scanning directions in a cycle.
Touch point recognition unit 42, for being directed to each scan period, current all scannings scanned within this period When the quantity in direction is N, touch point identification is carried out according to the scanning result of N number of scanning direction in this period;It is current in this period When the quantity of all scanning directions scanned is k, k<N, then according to the scanning result of k scanning direction in this period and on The scanning result of N-k scanning direction carries out touch point identification, N-k scanning side in the upper a cycle in a cycle It is differed to the k scanning direction in this period.
Judging unit 43 judges whether be directed to all scanning directions in this period for being directed to each scan period Light path scanning is carried out, if not, it indicates that the scanning element 41 executes following operation:It chooses in this period in N number of scanning direction Not scanned 1 scanning direction, the infrared emission component and described at least two for triggering at least two transmitting side receive The infrared receiver component on side carries out light path scanning according to the scanning direction of selection.
Preferably, when judging unit 43 is judged to have carried out light path scanning for all scanning directions in this period, then Terminate to judge.
Preferably, touch point recognition unit 42, is additionally operable to:
If the quantity of current all scanning directions scanned is k, k in this period<N, and a week has not been obtained The scanning result of N-k scanning direction in phase then carries out touch point knowledge according to the scanning result of k scanning direction in this period Not.
Preferably, scanning element 41 are specifically used for:N number of scanning direction in this period is chosen according to pre-set sequence In not scanned 1 scanning direction.
Preferably, above-mentioned pre-set sequence is:Angle sequence from big to small or the angle from it is small to Big sequence.
Preferably, N number of scanning direction is provided with N number of storage region, each storage region is for storing one The scanning result data of scanning direction, the scanning direction corresponding to each storage region are different;Scanning element 41 is additionally operable to: After carrying out light path scanning, if the corresponding storage region in Current Scan direction is sky, by the scanning knot in Current Scan direction Fruit data are stored in the corresponding storage region in Current Scan direction, if the corresponding storage region in Current Scan direction is not sky, Scanning result data in the corresponding storage region in Current Scan direction are replaced with to the scanning result data in Current Scan direction;
Touch point recognition unit 42 is specifically used for:It is carried out according to the scanning result data stored in N number of scanning area Touch point identifies.
A kind of touch point identification device provided through the embodiment of the present invention is executed for each scan period:Choose this Not scanned 1 scanning direction in N number of scanning direction in period, after carrying out light path scanning according to the scanning direction of selection, The scanning result data in Current Scan direction are stored in the corresponding storage region in Current Scan direction, then, according to scanning The scanning result data stored in region carry out touch point identification, if current all scanning directions scanned in this period Quantity is N, then carries out touch point identification according to the scanning result of N number of scanning direction in this period;If current institute in this period It is k, k to have the quantity for the scanning direction scanned<N, then according to the scanning result of k scanning direction in this period and one upper The scanning result of N-k scanning direction carries out touch point identification in period.Rather than every time by the light path of all scanning directions After being scanned, further according to entire light path scanning result calculated using algorithm after identify touch point.Therefore, using this The touch point identification device that inventive embodiments provide improves touch point identification on the basis of ensureing touch point accuracy of identification Speed.
Fig. 5 provides touch point identification device schematic diagram for another embodiment of the present invention.
As shown in figure 5, processor 510, for being directed to each scan period, choose in this period in N number of scanning direction not Scanned 1 scanning direction, the infrared emission component and described at least two for triggering at least two transmitting side receive side Infrared receiver component according to selection scanning direction carry out light path scanning;The scanning direction is by the light path scanned and the hair The size of the angle formed between side is penetrated to indicate, N is the quantity of all scanning directions in a cycle.For being directed to each sweep The period is retouched, when the quantity of current all scanning directions scanned is N within this period, according to N number of scanning direction in this period Scanning result carry out touch point identification;When the quantity of current all scanning directions scanned is k in this period, k<N, then root It is touched according to the scanning result of N-k scanning direction in the scanning result of k scanning direction in this period and upper a cycle Identification is touched, N-k scanning direction in the upper a cycle is differed with the k scanning direction in this period.With In for each scan period, judging in this period whether for all scanning directions to have carried out light path scanning, if it is not, then referring to Show that the scanning element executes following operation:It chooses in this period that in N number of scanning direction not scanned 1 scanning direction, touches The infrared emission component and described at least two for sending out at least two transmitting sides described receive the infrared receiver component on side according to selection Scanning direction carry out light path scanning.
Preferably, when processor 510 is for judging to have carried out light path scanning for all scanning directions in this period, Then terminate to judge.
Preferably, processor 510 are additionally operable to:
If the quantity of current all scanning directions scanned is k, k in this period<N, and a week has not been obtained The scanning result of N-k scanning direction in phase then carries out touch point knowledge according to the scanning result of k scanning direction in this period Not.
Preferably, processor 510 are specifically used for:It is chosen in this period in N number of scanning direction according to pre-set sequence Not scanned 1 scanning direction.
Preferably, above-mentioned pre-set sequence is:Angle sequence from big to small or the angle from it is small to Big sequence.
Preferably, N number of scanning direction is provided with N number of storage region, each storage region is for storing one The scanning result data of scanning direction, the scanning direction corresponding to each storage region are different;Processor 510 is additionally operable to: After carrying out light path scanning, if the corresponding storage region in Current Scan direction is sky, by the scanning knot in Current Scan direction Fruit data are stored in the corresponding storage region in Current Scan direction, if the corresponding storage region in Current Scan direction is not sky, Scanning result data in the corresponding storage region in Current Scan direction are replaced with to the scanning result data in Current Scan direction;
Processor 510 is specifically used for:Touch point knowledge is carried out according to the scanning result data stored in N number of scanning area Not.
Wherein, in Figure 5, bus architecture may include the bus and bridge of any number of interconnection, specifically by processor 510 The various circuits for the memory that the one or more processors and memory 530 of representative represent link together.Bus architecture is also Various other circuits of such as peripheral equipment, voltage-stablizer and management circuit or the like can be linked together, these are all It is it is known in the art, therefore, it will not be further described herein.Bus interface provides interface.Processor 510 is negative Duty management bus architecture and common processing, memory 530 can store the used number when executing operation of processor 510 According to.For different user equipmenies, user interface 540, which can also be, external the interface for needing equipment is inscribed, and connection is set Standby including but not limited to keypad, loud speaker, microphone, control stick etc..Display 520 can be CRT (Cathode Ray Tube, cathode-ray tube), PDP (Plasma Display Panel, plasma display), DLP (Digital Light Procession, digital light processing) or the display devices such as LCD (Liquid Crystal Display, liquid crystal display).
To sum up, the touch point recognition methods provided through the embodiment of the present invention and device are executed for each scan period: It chooses in this period that in N number of scanning direction not scanned 1 scanning direction, light path scanning is carried out according to the scanning direction of selection Later, the scanning result data in Current Scan direction are stored in the corresponding storage region in Current Scan direction, then, according to The scanning result data stored in scanning area carry out touch point identification, if current all scanning sides scanned in this period To quantity be N, then according in this period N number of scanning direction scanning result carry out touch point identification;If worked as in this period The quantity of preceding all scanning directions scanned is k, k<N, then according to the scanning result of k scanning direction in this period and on The scanning result of N-k scanning direction carries out touch point identification in a cycle.Rather than every time by all scanning directions After light path is scanned, further according to entire light path scanning result calculated using algorithm after identify touch point.Therefore, it adopts With touch point recognition methods provided in an embodiment of the present invention and device on the basis of ensureing touch point accuracy of identification, improve tactile Touch the speed of identification.
The present invention be with reference to according to the method for the embodiment of the present invention, the flow of equipment (system) and computer program product Figure and/or block diagram describe.It should be understood that can be realized by computer program instructions every first-class in flowchart and/or the block diagram The combination of flow and/or box in journey and/or box and flowchart and/or the block diagram.These computer programs can be provided Instruct the processor of all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce A raw machine so that the instruction executed by computer or the processor of other programmable data processing devices is generated for real The device for the function of being specified in present one flow of flow chart or one box of multiple flows and/or block diagram or multiple boxes.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing devices with spy Determine in the computer-readable memory that mode works so that instruction generation stored in the computer readable memory includes referring to Enable the manufacture of device, the command device realize in one flow of flow chart or multiple flows and/or one box of block diagram or The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device so that count Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, in computer or The instruction executed on other programmable devices is provided for realizing in one flow of flow chart or multiple flows and/or block diagram one The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art God and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies Within, then the present invention is also intended to include these modifications and variations.

Claims (10)

1. a kind of touch point recognition methods, is applied to touch screen, the touch screen includes at least two transmitting sides and at least two Side is received, the transmitting side is equipped with infrared emission component, and the reception side is equipped with infrared receiver component, which is characterized in that is directed to Each scan period executes following steps:
Step A, choose in this period that in N number of scanning direction not scanned 1 scanning direction, triggering is arranged described at least two The infrared emission component of a transmitting side and be arranged it is described at least two receive side infrared receiver component according to selection scanning Direction carries out light path scanning;The scanning direction is by the size of the angle formed between the light path scanned and the transmitting side come table Show, N is the quantity of all scanning directions in a cycle;
If step B, the quantity of current all scanning directions scanned is N in this period, according to N number of scanning in this period The scanning result in direction carries out touch point identification;If the quantity of current all scanning directions scanned is k, k in this period< N, then according to the scanning result of N-k scanning direction in the scanning result of k scanning direction in this period and upper a cycle Touch point identification is carried out, N-k scanning direction in the upper a cycle and the k scanning direction in this period not phase Together;Step C, judge in this period whether for all scanning directions to have carried out light path scanning, if it is not, then returning to the step A;
Wherein, N is positive integer and N >=3.
2. the method as described in claim 1, which is characterized in that in the step B, further include:
If the quantity of current all scanning directions scanned is k, k in this period<N, and have not been obtained in a cycle The scanning result of N-k scanning direction then carries out touch point identification according to the scanning result of k scanning direction in this period.
3. the method as described in claim 1, which is characterized in that in the step A, N number of scanning in described this period of selection Not scanned 1 scanning direction in direction, including:
Choose in this period that in N number of scanning direction not scanned 1 scanning direction according to pre-set sequence.
4. method as claimed in claim 3, which is characterized in that the pre-set sequence is:The angle is from big to small Sequence or the angle sequence from small to large.
5. method according to any one of claims 1 to 4, which is characterized in that N number of scanning direction is provided with N A storage region, each storage region are used to store the scanning result data of a scanning direction, corresponding to each storage region Scanning direction it is different;
In the step A, after carrying out light path scanning, further include:It, will if the corresponding storage region in Current Scan direction is sky The scanning result data in Current Scan direction are stored in the corresponding storage region in Current Scan direction, if Current Scan direction corresponds to Storage region not be sky, then the scanning result data in the corresponding storage region in Current Scan direction are replaced with into Current Scan The scanning result data in direction;
The step B is specifically included:Touch point identification is carried out according to the scanning result data stored in N number of scanning area.
6. a kind of touch point identification device, is applied to touch screen, the touch screen includes at least two transmitting sides and at least two Side is received, the transmitting side is equipped with infrared emission component, and the reception side is equipped with infrared receiver component, which is characterized in that including: Scanning element, touch point recognition unit and judging unit;
The scanning element is chosen 1 not scanned in N number of scanning direction in this period for being directed to each scan period Scanning direction, triggering is arranged receives side in the infrared emission component of at least two transmitting side and setting described at least two Infrared receiver component according to selection scanning direction carry out light path scanning;The scanning direction is by the light path scanned and the hair The size of the angle formed between side is penetrated to indicate, N is the quantity of all scanning directions in a cycle;
The touch point recognition unit, for being directed to each scan period, current all scanning sides scanned within this period To quantity be N when, according in this period N number of scanning direction scanning result carry out touch point identification;Current institute in this period Have the scanning direction scanned quantity be k when, k<N, then according to the scanning result and upper one of k scanning direction in this period The scanning result of N-k scanning direction carries out touch point identification, N-k scanning direction in the upper a cycle in a period It is differed with the k scanning direction in this period;
The judging unit, for being directed to each scan period, judge in this period whether for all scanning directions into Row light path scans, if not, it indicates that the scanning element executes following operation:Choose in this period in N number of scanning direction not by 1 scanning direction of scanning, the infrared emission component and described at least two for triggering at least two transmitting side receive side Infrared receiver component carries out light path scanning according to the scanning direction of selection;
Wherein, N is positive integer and N >=3.
7. device as claimed in claim 6, which is characterized in that the touch point recognition unit is additionally operable to:
If the quantity of current all scanning directions scanned is k, k in this period<N, and have not been obtained in a cycle The scanning result of N-k scanning direction then carries out touch point identification according to the scanning result of k scanning direction in this period.
8. device as claimed in claim 6, which is characterized in that the scanning element is specifically used for:
Choose in this period that in N number of scanning direction not scanned 1 scanning direction according to pre-set sequence.
9. device as claimed in claim 8, which is characterized in that the pre-set sequence is:The angle is from big to small Sequence or the angle sequence from small to large.
10. the device as described in any one of claim 6 to 9, which is characterized in that N number of scanning direction is provided with N A storage region, each storage region are used to store the scanning result data of a scanning direction, corresponding to each storage region Scanning direction it is different;
The scanning element is additionally operable to:After carrying out light path scanning, if the corresponding storage region in Current Scan direction is sky, The scanning result data in Current Scan direction are stored in the corresponding storage region in Current Scan direction, if Current Scan direction pair The storage region answered not is sky, then replaces with the scanning result data in the corresponding storage region in Current Scan direction and currently sweep Retouch the scanning result data in direction;
The touch point recognition unit is specifically used for:It is touched according to the scanning result data stored in N number of scanning area Touch identification.
CN201410404453.0A 2014-08-15 2014-08-15 A kind of touch point recognition methods and device Active CN105335020B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410404453.0A CN105335020B (en) 2014-08-15 2014-08-15 A kind of touch point recognition methods and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410404453.0A CN105335020B (en) 2014-08-15 2014-08-15 A kind of touch point recognition methods and device

Publications (2)

Publication Number Publication Date
CN105335020A CN105335020A (en) 2016-02-17
CN105335020B true CN105335020B (en) 2018-09-25

Family

ID=55285611

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410404453.0A Active CN105335020B (en) 2014-08-15 2014-08-15 A kind of touch point recognition methods and device

Country Status (1)

Country Link
CN (1) CN105335020B (en)

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201233592Y (en) * 2008-08-05 2009-05-06 北京汇冠新技术有限公司 Reflective light path construction used for infrared touch screen
CN102053762A (en) * 2009-10-30 2011-05-11 北京汇冠新技术股份有限公司 Infrared touch screen and touch positioning method thereof
CN102693048A (en) * 2012-05-31 2012-09-26 安徽大学 Infrared touch screen
CN103365492A (en) * 2013-08-01 2013-10-23 北京东方中原教育科技有限公司 Multi-point touch identification method for infrared touch screen
CN103838438A (en) * 2014-03-25 2014-06-04 北京千里触控科技有限公司 Infrared multi-point positioning method
CN103970358A (en) * 2013-01-25 2014-08-06 北京博汇信通科技有限公司 Optical path system for multi-point infrared touch screen and scanning detecting method
CN103984449A (en) * 2014-05-30 2014-08-13 湖州佳格电子科技有限公司 Touch screen touch area positioning method
CN104049808A (en) * 2013-03-13 2014-09-17 北京汇冠新技术股份有限公司 Optical network routing method for touch screen scanned by light ray and touch screen
CN104615310A (en) * 2015-01-23 2015-05-13 青岛海信电器股份有限公司 Method and device for determining candidate touch points
CN105094454A (en) * 2014-04-17 2015-11-25 青岛海信电器股份有限公司 Method and device for multi-point positioning of touch screen, and touch screen device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5441980B2 (en) * 2011-10-25 2014-03-12 シャープ株式会社 Optical touch panel device, computer program, and recording medium

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201233592Y (en) * 2008-08-05 2009-05-06 北京汇冠新技术有限公司 Reflective light path construction used for infrared touch screen
CN102053762A (en) * 2009-10-30 2011-05-11 北京汇冠新技术股份有限公司 Infrared touch screen and touch positioning method thereof
CN102693048A (en) * 2012-05-31 2012-09-26 安徽大学 Infrared touch screen
CN103970358A (en) * 2013-01-25 2014-08-06 北京博汇信通科技有限公司 Optical path system for multi-point infrared touch screen and scanning detecting method
CN104049808A (en) * 2013-03-13 2014-09-17 北京汇冠新技术股份有限公司 Optical network routing method for touch screen scanned by light ray and touch screen
CN103365492A (en) * 2013-08-01 2013-10-23 北京东方中原教育科技有限公司 Multi-point touch identification method for infrared touch screen
CN103838438A (en) * 2014-03-25 2014-06-04 北京千里触控科技有限公司 Infrared multi-point positioning method
CN105094454A (en) * 2014-04-17 2015-11-25 青岛海信电器股份有限公司 Method and device for multi-point positioning of touch screen, and touch screen device
CN103984449A (en) * 2014-05-30 2014-08-13 湖州佳格电子科技有限公司 Touch screen touch area positioning method
CN104615310A (en) * 2015-01-23 2015-05-13 青岛海信电器股份有限公司 Method and device for determining candidate touch points

Also Published As

Publication number Publication date
CN105335020A (en) 2016-02-17

Similar Documents

Publication Publication Date Title
CN106374969B (en) A kind of switching method and mobile terminal of antenna
CN102265252B (en) A method and a device for adjusting a sensing threshold value of an infrared proximity sensor
CN105389111B (en) A kind of operating method and electronic equipment of split screen display available
CN109257488B (en) Display method and electronic equipment
CN103856707B (en) Camera switchover method and device and electronic device
CN110248110B (en) Shooting parameter setting method, setting device, terminal equipment and readable storage medium
CN110796725B (en) Data rendering method, device, terminal and storage medium
CN109412704A (en) Electromagnetic interference control method and Related product
CN109240791A (en) A kind of application program display methods, application program display device and mobile terminal
US20160103554A1 (en) Portable apparatus and method for controlling portable apparatus
CN109639367A (en) The method of adjustment and Related product of electromagnetic interference
CN109561643A (en) Electromagnetic interference control method and Related product
CN104866755A (en) Setting method and device for background picture of application program unlocking interface and electronic equipment
RU2640746C9 (en) Method and device of interchanging position of icons
CN107734556B (en) Data transfer control method and Related product
CN105224227B (en) A kind of display control method and mobile terminal for shooting interface
CN111078108A (en) Screen display method and device, storage medium and mobile terminal
CN112333763A (en) Network selection method and device
CN106500751B (en) The calibration method and mobile terminal of proximity sensor
CN109474743A (en) Electromagnetic interference control method and Related product
CN105335020B (en) A kind of touch point recognition methods and device
US9396408B2 (en) Techniques for improving stereo block matching with the pyramid method
CN106658670B (en) A kind of Wireless Fidelity Wi-Fi scan method and mobile terminal
CN109741413A (en) Rendering method and device for semitransparent objects in scene and electronic equipment
CN109189264A (en) Intelligent interaction device and extended display method thereof, storage medium and processor

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder

Address after: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee after: Hisense Visual Technology Co., Ltd.

Address before: 266100 Zhuzhou Road, Laoshan District, Shandong, No. 151, No.

Patentee before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CP01 Change in the name or title of a patent holder