CN101571768A - Method for preventing screen cursor from abnormal movement - Google Patents
Method for preventing screen cursor from abnormal movement Download PDFInfo
- Publication number
- CN101571768A CN101571768A CNA200910057391XA CN200910057391A CN101571768A CN 101571768 A CN101571768 A CN 101571768A CN A200910057391X A CNA200910057391X A CN A200910057391XA CN 200910057391 A CN200910057391 A CN 200910057391A CN 101571768 A CN101571768 A CN 101571768A
- Authority
- CN
- China
- Prior art keywords
- reference frame
- value
- target frame
- zero
- preset
- 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.)
- Pending
Links
Abstract
The invention relates to a method for preventing a screen cursor from abnormal movement. The method comprises the following steps: acquiring two frames of images of an exterior object to form a reference frame and a target frame, and returning a zero shift blip counter to zero; respectively carrying out the treatment of subtracting a previous column pixel value from a next column pixel value for the reference frame and the target frame so as to obtain a reference frame difference image and a target frame difference image; averaging the sum of the absolute values of the difference values obtained from the paraposition subtraction of the target frame difference image from the reference frame difference image so as to obtain the difference value between the target frame difference image and the reference frame difference image; judging if the difference value is less than a preset first threshold, if so, adding 1 to the zero shift blip counter, and otherwise, setting the zero shift blip counter to zero; then judging if the value of the zero shift blip counter is more than a preset second threshold or not, if so, judging the zero shift and setting a motion vector to zero; and if the difference value is more than the preset first threshold or the value of the zero shift blip counter is less than the preset second threshold, carrying out the normal displacement calculation process by the data processing unit.
Description
[technical field]
The present invention relates to a kind of optical indicating device, be meant the method that prevents the screen cursor abnormal motion especially.
[background technology]
Optical indicating device is divided into active state and dormant state (inactive state) usually as the mode of operation of the position tracing sensor of optical mouse.When active state, the light that position tracing sensor utilizes a light source that continues to open to send absorbs the image on workplace surface continuously, by the change calculations of detected image and the displacement of exporting this optical indicating device, relevant prior art can be described with reference to Chinese patent application 200710196741.1 and 200680000973.9 then.If do not detect the variation of image in the given time, position tracing sensor will change dormant state over to by active state.When dormant state, position tracing sensor makes light source keep closed condition in the most of the time, just periodically open light source and whether continue to keep dormant state to detect, if detect image change, position tracing sensor just changes active state over to by dormant state, so can make this photoelectricity indicating device light source when not mobile be in closed condition basically, to reduce electric quantity consumption.
But in said process, when optical mouse is lifted away from workplace, maloperation might take place.Promptly when the optical mouse that is in dormant state is lifted away from workplace, position tracing sensor may detect that formed by external light source (as the light of daylight or fluorescent light) and the irrelevant image that moves optical mouse, although this moment, in fact optical mouse should keep dormant state, but optical mouse transfers active state to according to The above results, and may and move displacement and the output that irrelevant image calculation makes mistake according to this, and then cause onscreen cursor to move mistakenly, light source is in open mode in said process simultaneously, has therefore caused unnecessary power consumption.
In addition, when optical mouse is operated on the second-rate surface (as the unconspicuous surface of textural characteristics), can not be used for displacement calculating because detected image quality is very poor, the shift value that should make output at this moment forcibly is zero, but because the influence of picture noise is very big, thereby may cause unnecessary calculating and output displacement, make cursor move mistakenly.
In sum, do not having on the workplace to move or be lifted away from workplace or during in second-rate worksheet general work, the displacement of optical mouse output should be zero, i.e. null displacement when optical mouse.And the light intensity of existing null displacement determination methods by closing light source and detected image to be judging whether optical mouse is lifted away from workplace, but this kind method is subjected to the influence of picture noise very big, therefore can not correctly judge whether to import null displacement.
[summary of the invention]
The present invention proposes a kind of method that prevents the screen cursor abnormal motion, can't correctly judge the problem that abnormal motion occurs to solve in the prior art because of the influence of extraneous light or picture noise.
According to the foregoing invention purpose, implement the method for screen cursor abnormal motion that prevents of the present invention and be used for the indicating device of computing machine or video system, this indicating device is provided with photosensitive detector array and data processing unit, image in order to optics perception exterior object, and thereby data processing unit is handled the motion of perceptual object and is controlled the screen cursor movement the picture signal of this photosensitive detector array output, and wherein this method comprises the steps:
Utilize the photosensitive detector array successively to obtain two two field pictures of exterior object, form reference frame and target frame respectively, and make null displacement Blip Counting device make zero;
Reference frame and target frame are made the subsequent column pixel value respectively subtract its previous column pixel value and handle, obtain reference frame error image and target frame error image respectively;
The absolute value sum of the difference after target frame error image and the contraposition of reference frame error image subtracted each other ask after average the difference value of reference frame and target frame error image;
Whether judge this difference value less than preset first threshold, in this way, then null displacement Blip Counting device adds 1; If not, then with the zero setting of null displacement Blip Counting device;
Whether the value of judging null displacement Blip Counting device again in this way then is judged as null displacement, with motion vector zero clearing greater than the preset second threshold value;
If difference value greater than preset first threshold and with after the zero setting of null displacement Blip Counting device or the value of null displacement Blip Counting device less than the preset second threshold value, then data processing unit carries out normal displacement computation process.
According to above-mentioned principal character, this method comprises that also one judges whether to change the step of reference frame, changes as need and then the reference frame error image is upgraded for this reason before the optical indicating device the once target frame error image of motion acquisition.
Compared with prior art, the present invention sweeps noise by eliminating row after every two field picture is subtracted each other through the row pixel value, and target frame error image and the contraposition of reference frame error image value subtract each other and can eliminate the row noise, thereby prevent this optical indicating device miscount and cause the cursor abnormal motion.
[description of drawings]
Fig. 1 is for implementing the process flow diagram of optical indicating device null displacement determination methods of the present invention.
[embodiment]
See also shown in Figure 1, for implementing the process flow diagram that prevents the method for screen cursor abnormal motion of the present invention, this method is used for the indicating device of computing machine or video system, this indicating device is provided with photosensitive detector array (not shown) and data processing unit (not shown), image in order to optics perception exterior object, and thereby the picture signal that data processing unit is exported this photosensitive detector array is handled the motion of perceptual object, and wherein this method comprises the steps:
Utilize the photosensitive detector array to capture a two field picture, and make null displacement Blip Counting device make zero;
This image subsequent column pixel value is subtracted its previous column pixel value obtain error image X;
Judge whether to need to change reference frame, the image of the previously stored width of cloth exterior object by photosensitive detector array acquisition of this reference frame wherein, image and this reference frame by the follow-up acquisition of this photosensitive detector array carry out correlation calculations, to determine the displacement of optical indicating device, and for guaranteeing to calculate effectively, this reference frame image is also dynamically changed according to certain standard, as setting the picture number that a counter obtains with statistics, surpass a threshold value and then change reference frame, perhaps when target frame and the equitant zone of reference frame are too small, then change reference frame, normally the previous image of the current target frame that reads is replaced original reference frame;
If need to change reference frame, then reference frame error image ref_X is upgraded for this reason before the optical indicating device once the target frame error image target_X of motion, i.e. ref_X=target_X;
No matter whether change reference frame, error image X is made as target frame error image target_X, i.e. target_X=X;
The absolute value sum of the difference after again target frame error image and the contraposition of reference frame error image being subtracted each other ask after average the difference value dif of reference frame and target frame error image;
If difference value dif is greater than the first threshold T hreshold1, then with the zero setting of null displacement Blip Counting device; If difference value dif is less than the first threshold T hreshold1, then null displacement Blip Counting device adds 1;
If null displacement Blip Counting device is greater than the second threshold T hreshold2, if the difference value dif that the multiple image that surpasses second threshold value is promptly arranged continuously is less than the first threshold T hreshold1, judge that then this optical indicating device motion is null displacement, with the motion vector zero clearing, promptly Shu Ru motion vector is zero;
If difference value greater than preset first threshold and with after the zero setting of null displacement Blip Counting device or the value of null displacement Blip Counting device less than the preset second threshold value, then data processing unit carries out normal displacement computation process and output movement vector.
In the specific implementation, this first threshold value and second threshold value can be taken as 7 and 4 respectively in the present embodiment according to the experimental situation setting.
As mentioned above, the present invention sweeps noise (this journey noise is that some external disturbance cause in the circuit usually) by eliminating row after every two field picture is subtracted each other through the row pixel value, and target frame error image and the contraposition of reference frame error image value subtract each other and can eliminate row noise (it is intrinsic to be generally circuit itself), thereby prevent this optical indicating device abnormal motion.(other situations are similar when working surface is static as optical indicating device, no longer describe in detail), may cause dyskinesia because of circuit noise, as second threshold value being made as 4 according in the method for the present invention, then establishing first two field picture is reference frame, and second, the 3rd, the the 4th and the 5th two field picture is target frame and compares with first two field picture, because in fact this optical indicating device does not move, so second, the 3rd, difference value was all very little after the 4th two field picture subtracted each other with first two field picture respectively, null displacement this moment Blip Counting device adds up, certain second frame, the 3rd frame and the 4th two field picture are to there being displacement output, but during to the 5th frame, because of null displacement Blip Counting device greater than second threshold value, the four two field picture difference value that connect when promptly showing judge then that all less than first threshold value this optical indicating device motion is null displacement, and the motion vector of order input is forced to zero, so can judge this optical indicating device in a short period of time is null displacement, thereby prevents that cursor movement is unusual.
Claims (2)
1. method that prevents the screen cursor abnormal motion, the indicating device that is used for computing machine or video system, this indicating device is provided with photosensitive detector array and data processing unit, image in order to optics perception exterior object, and thereby data processing unit is handled the motion of perceptual object with control screen cursor movement to the picture signal of this photosensitive detector array output, and wherein this method comprises the steps:
Utilize the photosensitive detector array successively to obtain two two field pictures of exterior object, form reference frame and target frame respectively, and make null displacement Blip Counting device make zero;
Reference frame and target frame are made the subsequent column pixel value respectively subtract its previous column pixel value and handle, obtain reference frame error image and target frame error image respectively;
The absolute value sum of the difference after target frame error image and the contraposition of reference frame error image subtracted each other ask after average the difference value of reference frame and target frame error image;
Whether judge this difference value less than preset first threshold, in this way, then null displacement Blip Counting device adds 1; If not, then with the zero setting of null displacement Blip Counting device;
Whether the value of judging null displacement Blip Counting device again in this way, then is judged as null displacement, with motion vector zero clearing greater than the preset second threshold value;
If difference value greater than preset first threshold and with after the zero setting of null displacement Blip Counting device or the value of null displacement Blip Counting device less than the preset second threshold value, then data processing unit carries out normal displacement computation process.
2. the method that prevents the screen cursor abnormal motion as claimed in claim 1, it is characterized in that: this method comprises that also one judges whether to change the step of reference frame, changes as need and then the reference frame error image is upgraded for this reason before the optical indicating device the once target frame error image of motion acquisition.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910057391XA CN101571768A (en) | 2009-06-11 | 2009-06-11 | Method for preventing screen cursor from abnormal movement |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CNA200910057391XA CN101571768A (en) | 2009-06-11 | 2009-06-11 | Method for preventing screen cursor from abnormal movement |
Publications (1)
Publication Number | Publication Date |
---|---|
CN101571768A true CN101571768A (en) | 2009-11-04 |
Family
ID=41231132
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CNA200910057391XA Pending CN101571768A (en) | 2009-06-11 | 2009-06-11 | Method for preventing screen cursor from abnormal movement |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN101571768A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807125A (en) * | 2010-03-25 | 2010-08-18 | 埃派克森微电子(上海)有限公司 | Click judging method of optical indication device |
CN103336586A (en) * | 2013-05-30 | 2013-10-02 | 益海芯电子技术江苏有限公司 | Abnormal state detection method for optical indicating device |
CN110399281A (en) * | 2019-06-28 | 2019-11-01 | 平安科技(深圳)有限公司 | Abnormal operation recognition methods, device, computer equipment and storage medium |
-
2009
- 2009-06-11 CN CNA200910057391XA patent/CN101571768A/en active Pending
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101807125A (en) * | 2010-03-25 | 2010-08-18 | 埃派克森微电子(上海)有限公司 | Click judging method of optical indication device |
CN101807125B (en) * | 2010-03-25 | 2012-09-05 | 埃派克森微电子(上海)股份有限公司 | Click judging method of optical indication device |
CN103336586A (en) * | 2013-05-30 | 2013-10-02 | 益海芯电子技术江苏有限公司 | Abnormal state detection method for optical indicating device |
CN103336586B (en) * | 2013-05-30 | 2016-03-16 | 益海芯电子技术江苏有限公司 | Optical indicating device sensing method for abnormal status |
CN110399281A (en) * | 2019-06-28 | 2019-11-01 | 平安科技(深圳)有限公司 | Abnormal operation recognition methods, device, computer equipment and storage medium |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US8004502B2 (en) | Correcting for ambient light in an optical touch-sensitive device | |
US8188986B2 (en) | User input device with dynamic ambient light calibration | |
KR101097572B1 (en) | Apparatus for controlling the position of a screen pointer with low sensitivity to fixed pattern noise | |
JP6731645B2 (en) | Image monitoring device, image monitoring method, and image monitoring program | |
US8643751B2 (en) | Method for detecting dead pixels and computer program product thereof | |
CN111289538A (en) | PCB element detection system and detection method based on machine vision | |
CN104811586A (en) | Scene change video intelligent analyzing method, device, network camera and monitoring system | |
CN103336962A (en) | Image judgment method of yarn status sensor | |
CN101179725A (en) | Motion detecting method and apparatus | |
CN101571768A (en) | Method for preventing screen cursor from abnormal movement | |
CN110620887B (en) | Image generation device and image generation method | |
CN108965749B (en) | Defect pixel detection and correction device and method based on texture recognition | |
US20190166299A1 (en) | Image processing apparatus, control method thereof, and non-transitory computer-readable storage medium | |
CN112687211B (en) | Method and device for measuring smear of display panel and storage medium | |
CN207283689U (en) | A kind of dead pixels of image sensor surveys means for correcting | |
US9841846B2 (en) | Exposure mechanism of optical touch system and optical touch system using the same | |
TWI464652B (en) | Image sensor and optical touch panel system having the same | |
KR20180128552A (en) | Spot detecting apparatus and method of detecting spot using the same | |
JP6058720B2 (en) | Information output device, detection device, program, and information output method | |
TW201423524A (en) | Image adjusting method and optical navigating apparatus utlizing the image adjusting method | |
KR101553707B1 (en) | Image stain detection method for camera module defect determination | |
CN102881260B (en) | Image processing method and device | |
CN104935837B (en) | For optical imagery pointing device and the image processing method of optical video equipment | |
CN100473112C (en) | A motion detection method for digital image | |
CN105812622A (en) | Information processing method and electronic equipment |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C12 | Rejection of a patent application after its publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20091104 |