CN102339145B - Optical system and click detection method thereof - Google Patents

Optical system and click detection method thereof Download PDF

Info

Publication number
CN102339145B
CN102339145B CN201010235755.1A CN201010235755A CN102339145B CN 102339145 B CN102339145 B CN 102339145B CN 201010235755 A CN201010235755 A CN 201010235755A CN 102339145 B CN102339145 B CN 102339145B
Authority
CN
China
Prior art keywords
threshold value
time
factor
contact state
count value
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
CN201010235755.1A
Other languages
Chinese (zh)
Other versions
CN102339145A (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.)
Pixart Imaging Inc
Original Assignee
Pixart Imaging Inc
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 Pixart Imaging Inc filed Critical Pixart Imaging Inc
Priority to CN201010235755.1A priority Critical patent/CN102339145B/en
Publication of CN102339145A publication Critical patent/CN102339145A/en
Application granted granted Critical
Publication of CN102339145B publication Critical patent/CN102339145B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Analysis (AREA)
  • Position Input By Displaying (AREA)

Abstract

The invention provides a click detection method of an optical system. The method comprises the following steps of: acquiring an image frame, and computing the quality parameter of the image frame; maintaining the initial state when the quality parameter is smaller than or equal to a first threshold value, and switching to a first contact state and counting a count value when the quality parameter is greater than the first threshold value; and maintaining the first contact state when the quality parameter is greater than or equal to a second threshold value, judging the count value when the quality parameter is smaller than the second threshold value, and judging click is performed and switching to the initial state if the count value is within a first preset range. The invention further provides an optical system.

Description

Optical system and click detection method thereof
Technical field
The present invention relates to a kind of optical system, particularly a kind of in order to judge optical system and the click detection method thereof of click event.
Background technology
At present, mouse has become peripheral equipment indispensable in personal computer system, and user can utilize mouse to carry out cursor control, click or double-click an icon (icon) to carry out a specific function.But, for mobile electronic device, for example notebook computer or personal digital assistant (PDA), circumscribed mouse but has problem inconvenient to use.
Therefore, industry proposes a kind of optical mouse and is directly arranged on mobile electronic device, and so user can not need to carry in addition circumscribed mouse, uses the ease of use that increases mobile electronic device.
For example United States Patent (USP) the 7th, 313, a kind of click event detecting system is proposed for No. 255, it is sequentially detected one and mentions action (1ift-up motion) and and put down action (put-down motion), judge that a mention time and a lowering time, in a Preset Time restriction, complete the detecting of a click event (click event) simultaneously.
Please refer to shown in Figure 1A, it shows that existing detecting system detects the process flow diagram of a click action; Wherein, described click action can be one and mentions action or one put down action.Please refer to shown in Figure 1B, it shows that existing detecting system detects the process flow diagram of a click event; Wherein, in the time that one mentions action by detecting, a mention time will be recorded; Then, system will continue another click action of detecting and put down action until detect one, and note down a lowering time; When the difference of described mention time and described lowering time is in a Preset Time restriction, can be judged to be a click event.
But described existing method for detecting at least has following point: (1) is detected and mentioned and put down respectively, then click the mechanism judging, with mankind's intuition behavior inconsistent; (2) mention after action occurs, may just put down action through significant period of time, and during this period of time, system will continue judgement and puts down action, wastes system resource.
In view of this, the present invention separately proposes one and can judge optical system and the click detection method thereof clicking (single click), double-click (double clicks) even multi-hit (multiple clicks) event.
Summary of the invention
One of the present invention object is to provide a kind of optical system and clicks decision method, and it just carries out click event judgement in the time that system state changes, to promote the instantaneity of System Operation.
Another object of the present invention is to provide a kind of optical system and clicks decision method, if it changes without further state after being converted to contact state in a default counting region, stop the judgement of click event, therefore system need not be waited for the generation of click action.
The present invention proposes a kind of click detection method of optical system, and the method comprises the following steps: to control optical system and operates in initial state; Periodically pick-up image frame calculate the Q factor of this image frame; More described Q factor and the first threshold value, control according to this described optical system and carry out state conversion; In the time that described optical system is converted to the first contact state, periodically pick-up image frame calculate the described Q factor of described image frame and count a count value; More described Q factor and the second threshold value, control according to this described optical system and carry out state conversion; And when showing described optical system, the comparative result of described Q factor and described the second threshold value while carrying out state conversion, judges described count value, if described count value between the first preset range, is judged to be one and clicks and change described optical system to described initial state; Wherein, compared to described the second threshold value, described the first threshold value represents that described image frame has better quality.
According to another form of implementation, in the click detection method of optical system of the present invention, more described Q factor and the second threshold value are controlled according to this described optical system and are carried out also comprising the following steps: while carrying out state conversion, to judge described count value when the described comparative result of described Q factor and described the second threshold value shows described optical system after state switch process, if described count value is between the second preset range, change described optical system to noncontact state pick-up image frame calculate the described Q factor of this image frame, the New count of laying equal stress on periodically; More described Q factor and described the first threshold value, control according to this described optical system and carry out state conversion; In the time that described optical system is converted to the second contact state, judge described count value, if described count value between the 3rd preset range, periodically pick-up image frame calculate the described Q factor of this image frame, the New count of laying equal stress on; More described Q factor and described the second threshold value, control according to this described optical system and carry out state conversion; And in the time that described optical system is converted to described initial state once again, judge described count value, if described count value is between the 4th preset range, be judged to be a double-click.
According to another form of implementation, in the click detection method of optical system of the present invention, more described Q factor and the second threshold value are controlled according to this described optical system and are carried out also comprising the following steps: while carrying out state conversion, to judge described count value when the described comparative result of described Q factor and described the second threshold value shows described optical system after state switch process, if described count value is between the second preset range, change described optical system to noncontact state pick-up image frame calculate the described Q factor of this image frame, the New count of laying equal stress on periodically; More described Q factor and described the first threshold value, control according to this described optical system and carry out state conversion; And in the time that described optical system is converted to the second contact state, judge described count value, if described count value is between the 3rd preset range, be judged to be a double-click.
The another click detection method that proposes a kind of optical system of the present invention, the Q factor that the method comprises the following steps: to capture an image frame and calculates this image frame; In initial state, in the time that being less than or equal to the first threshold value, described Q factor maintains described initial state, and in the time that described Q factor is greater than described the first threshold value, be converted to the first contact state and count a count value; And in described the first contact state, in the time that being more than or equal to the second threshold value, described Q factor maintains described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the first preset range, is judged to be one and clicks and be converted to described initial state.
According to another form of implementation, the click detection method of optical system of the present invention also comprises the following steps: in described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the second preset range, is converted to the noncontact state New count of laying equal stress on; In described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that being greater than described the first threshold value, described Q factor judges described count value, if described count value between the 3rd preset range, is converted to the second contact state New count of laying equal stress on; And in described the second contact state, in the time that being more than or equal to described the second threshold value, described Q factor maintains described the second contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the 4th preset range, is judged to be a double-click and is converted to described initial state.
According to another form of implementation, the click detection method of optical system of the present invention also comprises the following steps: in described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the second preset range, is converted to the noncontact state New count of laying equal stress on; In described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that being greater than described the first threshold value, described Q factor judges described count value, if described count value between the 3rd preset range, is judged to be a double-click and is converted to the second contact state; And in described the second contact state, in the time that described Q factor is more than or equal to described the second threshold value, maintain described the second contact state, in the time that described Q factor is less than described the second threshold value, be converted to described initial state.
For reaching above-mentioned purpose, the present invention proposes a kind of optical system, and this system comprises detecting interface, light source, counter and image sensor.Described detecting interface has a upper surface and clicks and move for finger.Described in described light illumination, detect interface.Described counter is in order to count a count value.Described processing unit calculates Q factor and clicks judgement according to the following step according to described image frame: in initial state, in the time that described Q factor is less than or equal to the first threshold value, maintain described initial state, in the time that described Q factor is greater than described the first threshold value, be converted to the first contact state and control described counter and count; And in described the first contact state, in the time that being more than or equal to the second threshold value, described Q factor maintains described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if count value, between the first preset range, is judged to be one and clicks.
According to another form of implementation, the described processing unit of optical system of the present invention is also double-clicked judgement according to the following step: in described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the second preset range, is converted to noncontact state and controls described counter and again count; In described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that being greater than described the first threshold value, described Q factor judges described count value, if described count value between the 3rd preset range, is converted to the second contact state and controls described counter and again count; And in described the second contact state, in the time that being more than or equal to described the second threshold value, described Q factor maintains described the second contact state, in the time that described Q factor is less than described the second threshold value, judge described count value, if described count value is between the 4th preset range, be judged to be a double-click.
According to another form of implementation, the described processing unit of optical system of the present invention is also double-clicked judgement according to the following step: in described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the second preset range, is converted to noncontact state and controls described counter and again count; And in described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that described Q factor is greater than described the first threshold value, judge described count value, if described count value is between the 3rd preset range, be judged to be a double-click.
In optical system of the present invention and click detection method thereof, in the time that exceeding preset range, described count value stops counting, even if click event judgement is not also carried out in now generation state change, to avoid system to continue to wait for the generation of click event.
In optical system of the present invention and click detection method thereof, the higher image quality of the first threshold value correspondence, so can avoid changing because of the shadow that external interference produces the false judgment causing; The lower image quality of the second threshold value correspondence, so can obtain higher detecting fiduciary level.
Brief description of the drawings
Figure 1A is in existing click event method for detecting, the process flow diagram of detecting one click action.
Figure 1B is in existing click event method for detecting, the process flow diagram of detecting one click event.
Fig. 2 is the calcspar of the optical system of the embodiment of the present invention.
Fig. 3 is in the click detection method of optical system of the embodiment of the present invention, the operation chart of detecting one click event.
Fig. 4 is in the click detection method of optical system of the embodiment of the present invention, and detecting one click event or is double-clicked the operation chart of event.
Fig. 5 is in the click detection method of optical system of the embodiment of the present invention, the schematic diagram of each preset range of count value.
Main element symbol description
1 optical system 11 is detected interface
12 light source 13 image sensor
14 processing unit 15 counters
16 transmission interface unit 17 light elements
20 electronic installations 9 are pointed
N 1~N 2the first preset range N 1'~N 2the ' the second preset range
N 1"~N 2" the 3rd preset range N 1' "~N 2' " the 4th preset range
T 0, n 0counting initial value S 0~S 3the state of optical system
Embodiment
For allow above and other object of the present invention, feature and advantage can be more obvious, below will coordinate appended diagram, be described in detail below.In addition, in the each diagram of the present invention, only shown part member and omitted the member not directly related with the present invention's explanation.
Please refer to shown in Fig. 2, it shows the schematic diagram of the optical system of the embodiment of the present invention.Optical system 1 is in order to detect a contact condition and/or a relative displacement of a finger 9 and described optical system 1, and and then judge a click event according to the variation of described contact condition, comprise click, double-click or multi-hit event; Or calculate a displacement according to described relative displacement.Be understandable that, described finger 9 can be other parts of human body, is not limited to finger.Described finger 9 decides with the Q factor of image frame and the comparative result of a quality threshold value (quality threshold) that the contact condition of described optical system 1 captures according to described optical system 1; Described displacement is according to described optical system 1 relation between multiple image frames that captures, and for example correlativity (correlation) or other existing modes are tried to achieve.When Q factor is higher, represent better by the quality of pick-up image frame, described optical system 1 can be according to this displacement calculating amount or judge click event more accurately.
Several embodiments about Q factor for example can be with reference to the United States Patent (USP) of being owned together by this case applicant the 7th, and 142, No. 695,7,444, No. 006 and the 7th, 116, No. 801, separately can be with reference to disclosed paper, as Y.S.Chen and F.C.Meng, " Image quality measurement based on statistics of activity regions, " Journal of the Chinese Institute of Engineers, Vol.24, No.3, pp.379-388 (2001) or M.T.Postek N.Zhang, A.E.Vladar and B.Larrabee, " A kurtosis-based statistical measure for two-dimensional processes and its application to image sharpness, " Proceedings of Section of Physical and Engineering Sciences of American Statistical Society, pp.4730-4736, 2003.
Described optical system 1 can couple an electronic installation 20, carry out specific function relatively to control described electronic installation 20 according to the click event of being detected or the displacement that calculated, for example choose a special icon (icon) according to click action or carry out a specific program, carry out according to displacement the function that cursor control or other existing mouses can be carried out, wherein said optical system 1 can be independent of described electronic installation 20 outward or in be built in described electronic installation 20.Described electronic installation 20 is such as, but not limited to, being notebook computer, mobile phone or personal digital assistant etc.
Described optical system 1 comprises detecting interface 11, light source 12, image sensor 13, processing unit 14, counter 15 and transmission interface unit 16.
Described detecting interface 11 has a upper surface to be clicked or moves thereon for finger 9, and the light that its material is preferably sent with respect to described light source 12 is transparent.Described light source 12 can be any suitable light source, a for example light-emittingdiode (LED) or arrange institute by several light-emittingdiodes and form, and it can be infrared light supply or ultraviolet source, but is not limited to this; In the time using the light source of special frequency band, can avoid the detecting of optical system 1 described in the influence of light of other frequency bands.Described image sensor 13 is in order to receive from pointing 9 reflected light on described detecting interface 11 to produce image frame, and described image frame comprises micro-feature (micro texture features) on described finger 9 surfaces and is transferred to described processing unit 14 to be processed; Described image sensor 13 for example can be CCD image sensor, CMOS image sensor or other suitable image sensor.
Described processing unit 14 can be any in order to calculate the processor of image frame data, such as microprocessor (microprocessor) or microcontroller (microcontroller) etc., its content according to image frame calculate Q factor and/or according to the displacement calculating amount that is related between image frame, more described Q factor and quality threshold value to determine the state of described optical system 1, to judge click event (click event) according to the change of system state.Described processing unit 14 couples described counter 15, and controls described counter 15 and again count in the time that the every next state of described optical system 1 changes, after its embodiment will be specified in.
Described transmission interface unit 16 receives from the click event signal of described processing unit 14 and displacement and transmits it to described electronic installation 20 to carry out corresponding control, wherein said transmission interface unit 16 can be wireless or electrical mode and described electronic installation 20 communicate.In addition, described optical system 1 can separately comprise that light element 17 will guide to described image sensor 17 to increase its light receiving efficiency from the reflected light at described detecting interface 11.In addition, relative space relation and the size of described optical system 1 each element are not limited to shown in Fig. 2, its only for exemplary be not to limit the present invention.
Please refer to shown in Fig. 3, it shows in the click detection method of optical system of the present invention, the operation chart of detecting one click event, and wherein said optical system 1 comprises one initial state/noncontact state S 0and one first contact state S 1.For example in the time that described optical system 1 is started shooting, finish, when dormant state or in the time restarting to operate after a period of time, will automatically enter described initial state/noncontact state S 0, that is now described finger 9 does not touch described detecting interface 11.Now, described image sensor 13 is with periodically pick-up image form of a sampling frequency, 14 of described processing units calculate the Q factor of each imaging windows and compare each Q factor and the first threshold value, control according to this described optical system 1 and carry out state conversion.In the time that described Q factor is less than or equal to described the first threshold value, described optical system 1 is maintained at described initial state S 0; In the time that described Q factor is greater than described the first threshold value, described processing unit 14 is controlled described optical system 1 and is converted to described the first contact state S 1, and control described counter 15 start counting.
In described the first contact state S 1described image sensor 13 is with periodically pick-up image form of described sampling frequency, described processing unit 14 calculates the Q factor of each imaging windows and compares each Q factor and the second threshold value, controls according to this described optical system 1 and carries out state conversion.Now, described counter 15 can coordinate described sampling frequency to count or to be greater than/to be less than frequency counting one count value of described sampling frequency.When the Q factor of image frame is more than or equal to described the second threshold value, described optical system 1 is maintained at described the first contact state S 1.When the Q factor of described image frame is less than described the second threshold value, described optical system 1 is carried out state conversion, and whether the count value that now described processing unit 14 judges described counter 15 is between the first preset range N 1~N 2, it is for example a time range or a count value scope; If described count value is between described the first preset range N 1~N 2in, described processing unit 14 is judged to be a click event and controls described optical system 1 to be converted to described initial state S 0.In addition,, in the time of described the first contact state S1, when judging described count value, described processing unit 14 exceedes described the first preset range N 1~N 2, control described counter 15 stop counting and stop click detecting, even that is now described optical system 1 go out present condition change, described processing unit 14 does not still carry out click event judgement.
In the present embodiment, described the first threshold value, higher than described the second threshold value, is set higher avoiding by the first threshold value and is changed because of the shadow that external interference produces the false judgment causing; The second threshold value is set to the lower higher detecting fiduciary level that obtains.In addition, in described the first contact state S 1described optical system 1 also can be carried out other feature operations, for example relative change calculations one displacement with described detecting interface 11 according to described finger 9, relatively to control the above action of cursor of display (not illustrating) of described electronic installation 20, wherein the account form of displacement for example can utilize the correlativity (correlation) between image frame to try to achieve.In other embodiment, described the first threshold value can be higher than described the second threshold value, and for example passing through the first threshold value described in numerical operation may be lower than described the second threshold value; Spirit of the present invention is, compared to described the second threshold value, described the first threshold value represents that image frame has better quality.
In other words, in Fig. 3, in described initial state S 0in the time that the comparative result of described Q factor and described the first threshold value shows that described optical system 1 is carried out state conversion (described Q factor may be greater than or less than described the first threshold value), described processing unit 14 is controlled described optical system 1 and is converted to described the first contact state S 1and control described counter 15 start counting.In described the first contact state S 1in the time that the comparative result of described Q factor and described the second threshold value shows that described optical system 1 is carried out state conversion (described Q factor may be less than or greater than described the second threshold value), described processing unit 14 judges that whether the counting of described counter 15 is between described the first preset range N 1~N 2; If described count value is between described the first preset range N 1~N 2in, be judged to be a click event and control described optical system 1 to be converted to described initial state S 0.
Please refer to shown in Fig. 4, it shows in the click detection method of optical system of the present invention, the operation chart of detecting one click event or a double-click event, and wherein said optical system 1 comprises initial state/noncontact state S 0, the first contact state S 1, noncontact state S 2and the second contact state S 3, wherein said initial state/noncontact state S 0and described noncontact state S 2all represent that described finger 9 does not contact described detecting interface 11, and in the time of actual operation, can be divided into two states; In like manner, described the first contact state S 1and described the second contact state S 3all represent that described finger 9 contacts described detecting interface 11, and in the time of actual operation, can be divided into two states.
In the time that described optical system 1 is started shooting, finish, when dormant state or in the time restarting after a period of time, will automatically enter described initial state/noncontact state S 0, that is described finger 9 does not touch described detecting interface 11, initial state/noncontact state S of function mode now and Fig. 3 0identical, therefore repeat no more in this.
In described the first contact state S 1described image sensor 13 is with periodically pick-up image form of described sampling frequency, described processing unit 14 calculates the Q factor of each imaging windows and compares each Q factor and the second threshold value, controls according to this described optical system 1 and carries out state conversion.In the time that the Q factor of image frame is more than or equal to described the second threshold value, described optical system 1 is maintained at described the first contact state S 1; In the time that the Q factor of described image frame is less than described the second threshold value, described optical system 1 is carried out state conversion, and the count value that now described processing unit 14 judges described counter 15 is between the first preset range N 1~N 2or the second preset range N 1'~N 2', wherein the second preset range N 1'~N 2' be for example a time range or a count value scope; If described count value is between described the first preset range N 1~N 2in, described processing unit 14 is judged to be a click event and controls described optical system 1 to be converted to described initial state S 0.In addition, if described count value between described the second preset range N 1'~N 2' in, described processing unit 14 is controlled described optical system 1 and is converted to described noncontact state S 2and control described counter 15 and again count.In addition, in described the first contact state S 1time, when judging described count value, described processing unit 14 exceedes described the first preset range N 1~N 2or (for example select to have compared with the scope of matter of fundamental importance numerical range) when described second preset range N1 '~N2 ', controlling described counter 15 stops counting and stops clicking detecting, even that is now described optical system 1 goes out present condition change, described processing unit 14 does not still carry out click event judgement.In like manner, in this embodiment, in described the first contact state S1, described optical system 1 also can be carried out other feature operations, for example the relative change calculations displacement with described detecting interface 11 according to described finger 9.
In described noncontact state S 2described image sensor 13 is with periodically pick-up image form of described sampling frequency, described processing unit 14 calculates the Q factor of each imaging windows and compares each Q factor and described the first threshold value, controls according to this described optical system 1 and carries out state conversion.When the Q factor of image frame is less than or equal to described the first threshold value, described optical system 1 is maintained at described noncontact state S 2; When the Q factor of described image frame is greater than described the first threshold value, described optical system 1 is carried out state conversion, and whether the count value that now described processing unit 14 judges described counter 15 is between the 3rd preset range N 1"~N 2", it is for example a time range or a count value scope; If described count value is between described the 3rd preset range N 1"~N 2" in, described processing unit 14 is controlled described optical system 1 and is converted to described the second contact state S 3and control described counter 15 and again count.In addition, in described noncontact state S 2, when described count value exceedes described the 3rd preset range N 1"~N 2" time, described processing unit 14 is controlled described counter 15 and is stopped counting and control described optical system 1 termination click and detect and get back to described initial state S 0, so can avoid the change of optical system 1 waiting status to promote the instantaneity of System Operation and to save system resource.
In noncontact state S 2and described count value does not exceed described the 3rd preset range N 1"~N 2", the optical system 1 of the present embodiment can be carried out two kinds of function modes.
First kind of way is in the time that described processing unit 14 judges that the Q factor of described image frame is greater than described the first threshold value, to control described optical system 1 and be converted to described the second contact state S 3if described count value is between described the 3rd preset range N 1"~N 2" in, be judged to be a double-click event.Then, in described the second contact state S 3described image sensor 13 is with periodically pick-up image form of described sampling frequency, described processing unit 14 calculates the Q factor of each imaging windows and compares each Q factor and described the second threshold value, control according to this described optical system 1 and carry out state conversion, be maintained at described the second contact state S when described Q factor is more than or equal to described the second threshold value 2, control described optical system 1 and be converted to described initial state S when described Q factor is less than described the second threshold value 0.
The second way is, controls described optical system and carry out state and be converted to described the second contact state S in the time that described processing unit 14 judges that the Q factor of described image frame is greater than described the first threshold value 3and control described counter 15 and again count.In described the second contact state S 3described image sensor 13 is with periodically pick-up image form of described sampling frequency, described processing unit 14 calculates the Q factor of each imaging windows and compares each Q factor and described the second threshold value, controls according to this described optical system 1 and carries out state conversion.In the time that the Q factor of image frame is more than or equal to described the second threshold value, described optical system 1 is maintained at described the second contact state S 3; In the time that the Q factor of described image frame is less than described the second threshold value, described optical system 1 is carried out state conversion, and whether the count value that now described processing unit 14 judges described counter 15 is between the 4th preset range N 1' "~N 2' ", it is for example a time range or a count value scope; If described count value is between described the 4th preset range N 1' "~N 2' " in, described processing unit 14 is judged to be a double-click event and controls described optical system 1 to be converted to described initial state S 0.
In addition, in described the second contact state S3, when described count value exceedes described the 4th preset range N 1' "~N 2' ", stop counting and stop click detecting, even that is described optical system 1 go out present condition change, described processing unit 14 does not still carry out the judgement of double-click event.Described the second contact state S 3in, described optical system 1 also can be carried out other feature operations, for example the relative change calculations displacement with described detecting interface according to described finger 9.
In like manner, described in the explanation of Fig. 3, according to different definition and use different Q factors, described the first threshold value may be lower than described the second threshold value, spirit of the present invention is that, compared to described the second threshold value, described the first threshold value represents that image frame has better quality.
Please refer to shown in Fig. 5, it shows described the first preset range N 1~N 2with described the second preset range to the four preset range N 1'~N 2' to N 1' "~N 2' " relation, wherein transverse axis is expressed as time or count value.In a kind of embodiment, if described counter 15 is in counting initial value t 0or n 0in time, starts to count, described the first preset range N 1~N 2time or count value higher than described the second preset range to the four preset range N 1'~N 2' to N 1' "~N 2' " and described the second preset range to the four preset range N 1'~N 2' to N 1' "~N 2' " have same range, but the present invention is not limited to this, the relation between described preset range can design according to different application.
In addition, the embodiment of similar Fig. 4, the click detection method of optical system of the present invention is also applicable to judging multi-hit event.
In sum, because existing click event method for detecting still has the problem that must wait for click action.The present invention separately proposes a kind of optical system (Fig. 2) and click detection method (Fig. 3 and Fig. 4) thereof, and it meets people's generic operation intuition and in the time that system state changes, just carries out click event judgement, has higher detecting instantaneity.
Although the present invention is disclosed by previous embodiment, so it is not in order to limit the present invention, and any the ordinary technical staff in the technical field of the invention, without departing from the spirit and scope of the present invention, should do various changes and amendment.Therefore protection scope of the present invention should be as the criterion with the scope that appended claims was defined.

Claims (9)

1. a click detection method for optical system, the method comprises the following steps:
Capture an image frame and calculate the Q factor of this image frame;
In initial state, in the time that being less than or equal to the first threshold value, described Q factor maintains described initial state, and in the time that described Q factor is greater than described the first threshold value, be converted to the first contact state and count a count value;
In described the first contact state, in the time that being more than or equal to the second threshold value, described Q factor maintains described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value is between the first preset range, be judged to be one and click and be converted to described initial state, if described count value between the second preset range, is converted to the noncontact state New count of laying equal stress on; And
In described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that being greater than described the first threshold value, described Q factor judges described count value, if described count value is between the 3rd preset range:
Be converted to the second contact state New count of laying equal stress on, in described the second contact state, in the time that being more than or equal to described the second threshold value, described Q factor maintains described the second contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value between the 4th preset range, is judged to be a double-click and is converted to described initial state; Or
Be judged to be a double-click and be converted to the second contact state, in described the second contact state, in the time that described Q factor is more than or equal to described the second threshold value, maintain described the second contact state, in the time that described Q factor is less than described the second threshold value, be converted to described initial state.
2. click detection method according to claim 1, wherein, described the second threshold value is lower than described the first threshold value.
3. click detection method according to claim 1 wherein, in described the first contact state, also comprises the following steps: according to multiple image frame displacement calculating amounts in the time that described Q factor is more than or equal to described the second threshold value.
4. click detection method according to claim 1, the method also comprises the following steps:, in described the first contact state, in the time that described count value exceeds described the first preset range, to stop clicking detecting.
5. click detection method according to claim 1, the method also comprises the following steps:, in described noncontact state, in the time that described count value exceeds described the 3rd preset range, to be converted to described initial state.
6. click detection method according to claim 1, the method also comprises the following steps:, in described the second contact state, in the time that described count value exceeds described the 4th preset range, to stop clicking detecting.
7. an optical system, in order to detect the click event of a finger, described optical system comprises:
Detecting interface, has upper surface and clicks and move for described finger;
Light source, the described detecting interface of throwing light on;
Counter, in order to count a count value;
Image sensor, receives from the reflected light of the above finger of described detecting interface to produce an image frame; And
Processing unit, calculates Q factor and clicks judgement according to the following step according to described image frame:
In initial state, in the time that being less than or equal to the first threshold value, described Q factor maintains described initial state, and in the time that described Q factor is greater than described the first threshold value, be converted to the first contact state and control described counter and count;
In described the first contact state, in the time that being more than or equal to the second threshold value, described Q factor maintains described the first contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if count value is between the first preset range, being judged to be one clicks, if described count value between the second preset range, is converted to noncontact state and controls described counter and again count;
In described noncontact state, in the time that being less than or equal to described the first threshold value, described Q factor maintains described noncontact state, in the time that being greater than described the first threshold value, described Q factor judges described count value, if described count value is between the 3rd preset range:
Be converted to the second contact state and control described counter and again count, in described the second contact state, in the time that being more than or equal to described the second threshold value, described Q factor maintains described the second contact state, in the time that being less than described the second threshold value, described Q factor judges described count value, if described count value, between the 4th preset range, is judged to be a double-click; Or
Be judged to be a double-click.
8. optical system according to claim 7, wherein, described the first threshold value is greater than described the second threshold value.
9. optical system according to claim 7, wherein, in the time of described the first contact state and described the second contact state, described processing unit is also according to multiple image frame displacement calculating amounts.
CN201010235755.1A 2010-07-21 2010-07-21 Optical system and click detection method thereof Active CN102339145B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201010235755.1A CN102339145B (en) 2010-07-21 2010-07-21 Optical system and click detection method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201010235755.1A CN102339145B (en) 2010-07-21 2010-07-21 Optical system and click detection method thereof

Publications (2)

Publication Number Publication Date
CN102339145A CN102339145A (en) 2012-02-01
CN102339145B true CN102339145B (en) 2014-10-15

Family

ID=45514910

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201010235755.1A Active CN102339145B (en) 2010-07-21 2010-07-21 Optical system and click detection method thereof

Country Status (1)

Country Link
CN (1) CN102339145B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103970304B (en) * 2013-02-05 2016-12-28 原相科技股份有限公司 Optical mouse apparatus and use method in optical mouse apparatus
CN105824440A (en) * 2015-01-08 2016-08-03 郑国书 Method for preventing misoperation of computer mouse

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101464750A (en) * 2009-01-14 2009-06-24 苏州瀚瑞微电子有限公司 Method for gesture recognition through detecting induction area of touch control panel
CN101551716A (en) * 2008-04-01 2009-10-07 顶点科技有限公司 Optical pointing device and method of detecting click event in optical pointing device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7313255B2 (en) * 2003-05-19 2007-12-25 Avago Technologies Ecbu Ip Pte Ltd System and method for optically detecting a click event

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101551716A (en) * 2008-04-01 2009-10-07 顶点科技有限公司 Optical pointing device and method of detecting click event in optical pointing device
CN101464750A (en) * 2009-01-14 2009-06-24 苏州瀚瑞微电子有限公司 Method for gesture recognition through detecting induction area of touch control panel

Also Published As

Publication number Publication date
CN102339145A (en) 2012-02-01

Similar Documents

Publication Publication Date Title
KR102320466B1 (en) Dynamic assignment of possible channels in a touch sensor
CN105700668B (en) The method and terminal device that the data of a kind of pair of touch screen acquisition are handled
CN103365410B (en) Gesture sensing device and electronic system with gesture input function
KR101184460B1 (en) Device and method for controlling a mouse pointer
CN107223232B (en) Electronic equipment and detection method
US9846920B2 (en) Decimation strategies for input event processing
US20130222338A1 (en) Apparatus and method for processing a plurality of types of touch inputs
CN105518590A (en) System and method for improved processing of touch sensor data
CN101556501B (en) Computer mouse simulation system and method
TWI522843B (en) Optical system and click detection method therefor
CN103917943A (en) A terminal device treatment method and a terminal device
CN104077066A (en) Portable device and operation method
CN110244894A (en) A kind of control method of screen locking, device, handheld terminal and storage medium
CN101604222A (en) A kind of input equipment of computer graphic user interface and method
CN102339145B (en) Optical system and click detection method thereof
CN104808938A (en) Dual mode optical navigation device and mode switching method thereof
CN1280692C (en) Method of identifying drag gesture and controller
US20150177857A1 (en) Navigation device and image display system
CN201535891U (en) Input equipment of graphical user interface of computer
CN101598982B (en) Electronic device and method for executing mouse function of same
CN112035011A (en) Touch area detection method and electronic equipment
CN102236475B (en) Touch positioning method and device, touch screen and display
CN102478953A (en) Touch system and optical touch system with power-saving mechanism
CN104461174B (en) Optical touch system and optical touch control method
JP2013200784A (en) Operation input device, operation input method, and program

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant