[go: up one dir, main page]

CN102810027B - Optical input device and control method - Google Patents

Optical input device and control method Download PDF

Info

Publication number
CN102810027B
CN102810027B CN201110148793.8A CN201110148793A CN102810027B CN 102810027 B CN102810027 B CN 102810027B CN 201110148793 A CN201110148793 A CN 201110148793A CN 102810027 B CN102810027 B CN 102810027B
Authority
CN
China
Prior art keywords
specific pattern
image
reference image
current image
input device
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
CN201110148793.8A
Other languages
Chinese (zh)
Other versions
CN102810027A (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.)
Shenzhen Huewang Trend Technology Co ltd
Original Assignee
UC Logic Technology Corp
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 UC Logic Technology Corp filed Critical UC Logic Technology Corp
Priority to CN201110148793.8A priority Critical patent/CN102810027B/en
Publication of CN102810027A publication Critical patent/CN102810027A/en
Application granted granted Critical
Publication of CN102810027B publication Critical patent/CN102810027B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

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

Abstract

An optical input device and a control method thereof, the control method comprises the following steps: sequentially capturing a reference image and a current image according to the time sequence, and calculating a displacement vector by using the position change of a specific pattern of the reference image and the current image; (b) calculating the geometric center of the specific pattern of the reference image and the geometric center of the specific pattern of the current image; (c) if the geometric centers of the specific patterns of the reference image and the current image are the same, calculating the proportion of the specific patterns between the reference image and the current image; (d) judging whether the proportion is kept unchanged, if the proportion is unchanged, outputting the displacement vector, and if the proportion is changed, not outputting the displacement vector or not acting; therefore, the optical input device does not output displacement vectors or does not act when not in the operation surface.

Description

光学输入设备及控制方法Optical input device and control method

技术领域 technical field

本发明涉及一种输入设备及控制方法,特别是涉及一种在非处于操作面时能停止输出位移向量的光学输入设备及控制方法。The invention relates to an input device and a control method, in particular to an optical input device and a control method that can stop outputting a displacement vector when it is not on the operation surface.

背景技术 Background technique

参阅图1,鼠标是用户最常使用的计算机输入设备,现有的光学鼠标9具有一壳体90、一光源91、一透镜92、一影像传感器93及一处理单元94。Referring to FIG. 1 , the mouse is the computer input device most commonly used by users. The existing optical mouse 9 has a housing 90 , a light source 91 , a lens 92 , an image sensor 93 and a processing unit 94 .

光学鼠标9在硬件上是利用影像传感器93及处理单元94取代滚轮鼠标的机械结构,目前亦有影像传感器93及处理单元94的整合型光学鼠标控制芯片的产品;光学鼠标9的动作原理是:光源91发出光线,在一操作面8上被反射,且反射光穿过透镜92,由半导体芯片制成的影像传感器93加以取像,每次取像约为数百帧(frame)/每秒以上,并送至处理单元94进行位移向量的运算。The optical mouse 9 utilizes the image sensor 93 and the processing unit 94 to replace the mechanical structure of the wheel mouse on the hardware. At present, there is also a product of the integrated optical mouse control chip of the image sensor 93 and the processing unit 94; the operating principle of the optical mouse 9 is: The light source 91 emits light, which is reflected on an operating surface 8, and the reflected light passes through the lens 92, and the image sensor 93 made of a semiconductor chip is taken, and each time the picture is taken is about hundreds of frames (frame)/second The above is sent to the processing unit 94 for calculation of the displacement vector.

处理单元94对于位移向量的计算方式,主要是依时序取得两张影像,先从第一张影像中选出一目标区域(Region of Interest,简称ROI)的图样,再找到第二张影像中与目标区域相同的图样后,然后判断第一张影像的目标区域中的图样是移动至第二张影像的哪个位置后再计算出一位移向量,位移向量的计算方式可以使用相关性(correlation)估测法判断于第一张与第二张影像上的图样位置变化得到位移向量。The calculation method of the processing unit 94 for the displacement vector is mainly to obtain two images in time sequence, first select a pattern of a region of interest (Region of Interest, referred to as ROI) from the first image, and then find the pattern in the second image that matches After finding the same pattern in the target area, it is judged where the pattern in the target area of the first image is moved to the second image and then a displacement vector is calculated. The calculation method of the displacement vector can be estimated by correlation. The measurement method judges the position change of the pattern on the first image and the second image to obtain a displacement vector.

关于前述相关性估测法可参考例如美国专利第5644139号等相关专利技术公开的内容,或者还有其它选择方案,例如区块比较法(block match method)可根据比较函数(例如均方差MSE(meansquared error)或绝对值平均法MAD(mean absolute difference)而求得位移向量。Regarding the aforementioned correlation estimation method, reference can be made to the content disclosed in relevant patent technologies such as U.S. Patent No. 5,644,139, or there are other options, such as the block match method, which can be based on a comparison function (such as mean square error MSE( meansquared error) or absolute value average method MAD (mean absolute difference) to obtain the displacement vector.

由于光学鼠标9一般只会在水平面操作,因此,光学鼠标9的处理单元94只会进行X,Y方向(即水平面上)的位移向量的运算,不会基于影像的特定图样的比例变化进行是否远离操作面8的判断。Since the optical mouse 9 generally only operates on a horizontal plane, the processing unit 94 of the optical mouse 9 can only perform calculations on the displacement vectors in the X and Y directions (ie, on the horizontal plane), and will not perform the calculation based on the ratio of the specific pattern of the image. Judgment away from the operation surface 8.

发明内容 Contents of the invention

有鉴于光学输入设备非处于操作面的瞬时,侦测到的影像的特定图样将产生比例变化,因此,本发明的目的在于提供一种利用侦测影像的特定图样产生的比例变化判断为非处于操作面,并且在非处于操作面时,能停止输出位移向量的光学输入设备及控制方法。In view of the moment when the optical input device is not on the operating surface, the specific pattern of the detected image will produce a proportional change. Therefore, the purpose of the present invention is to provide a method for judging that the specific pattern of the detected image is not in the An operation surface, and an optical input device and a control method that can stop outputting a displacement vector when it is not on the operation surface.

本发明的光学输入设备的控制方法中,该光学输入设备在一操作面移动且每间隔一段时间撷取该操作面的影像;所述方法包括下述步骤:(a)依撷取时间先后接收一参考影像与一目前影像,利用参考影像与目前影像的一特定图样的位置变化计算出一位移向量;(b)计算参考影像的特定图样的几何中心与目前影像的特定图样的几何中心;(c)若参考影像与目前影像的特定图样的几何中心相同,计算该特定图样在参考影像与目前影像的比例;(d)判断该比例是否维持不变,若比例不变,输出该位移向量,若是比例改变,不输出位移向量或不动作。In the control method of the optical input device of the present invention, the optical input device moves on an operation surface and captures images of the operation surface at regular intervals; the method includes the following steps: (a) receiving images sequentially according to the capture time A reference image and a current image, using the position changes of a specific pattern in the reference image and the current image to calculate a displacement vector; (b) calculating the geometric center of the specific pattern in the reference image and the geometric center of the specific pattern in the current image; ( c) If the geometric center of the specific pattern in the reference image is the same as the current image, calculate the ratio of the specific pattern in the reference image to the current image; (d) determine whether the ratio remains unchanged, and if the ratio remains unchanged, output the displacement vector, If the scale is changed, no displacement vector is output or no action is taken.

较佳的,步骤(b)是依据参考影像的特定图样与目前影像的特定图样定位出最外围的数个特征点并计算所述特征点的几何中心。Preferably, step (b) is to locate the outermost feature points according to the specific pattern of the reference image and the specific pattern of the current image and calculate the geometric centers of the feature points.

较佳的,步骤(c)是依据参考影像的特定图样与目前影像的特定图样各特征点至几何中心位置的距离比值决定该特定图样在参考影像与目前影像的比例。Preferably, step (c) is to determine the ratio of the specific pattern in the reference image to the current image based on the distance ratio between each feature point of the specific pattern in the reference image and the specific pattern in the current image to the geometric center.

本发明的光学输入设备用于在一操作面移动,所述光学输入设备包含一影像感测模块、一处理模块及一传输模块。The optical input device of the present invention is used to move on an operation surface, and the optical input device includes an image sensing module, a processing module and a transmission module.

该影像感测模块每间隔一段时间撷取该操作面的影像并输出依撷取时间先后的一参考影像与一目前影像。The image sensing module captures the image of the operation surface at intervals and outputs a reference image and a current image in sequence according to the capture time.

该处理模块包括一将该影像感测模块所撷取的模拟影像讯号转换为数字数据的模拟数字转换模块及一运算模块;该运算模块具有一图像处理单元、一位移计算单元、一防误处理单元及一接口单元。The processing module includes an analog-to-digital conversion module for converting the analog image signal captured by the image sensing module into digital data and an operation module; the operation module has an image processing unit, a displacement calculation unit, and an error prevention processing unit. unit and an interface unit.

该图像处理单元自参考影像与目前影像取得一特定图样。The image processing unit obtains a specific pattern from the reference image and the current image.

该位移计算单元利用特定图样的位置变化计算出一位移向量。The displacement calculation unit calculates a displacement vector by using the position change of the specific pattern.

该防误处理单元计算参考影像的特定图样的几何中心与目前影像的特定图样的几何中心,若参考影像与目前影像的特定图样的几何中心相同,计算该特定图样在参考影像与目前影像的比例,及判断该比例是否维持不变,若比例不变,输出该位移向量,若是比例改变,不输出位移向量或不动作。The anti-error processing unit calculates the geometric center of the specific pattern in the reference image and the geometric center of the specific pattern in the current image, and if the geometric center of the specific pattern in the reference image and the current image is the same, calculates the ratio of the specific pattern in the reference image to the current image , and judge whether the ratio remains unchanged, if the ratio remains unchanged, output the displacement vector, and if the ratio changes, do not output the displacement vector or take no action.

该接口单元接收防误处理单元所输出的位移向量,并且根据预定接口规格对位移向量转换为接口规格数据。The interface unit receives the displacement vector output by the anti-error processing unit, and converts the displacement vector into interface specification data according to a predetermined interface specification.

该传输模块将该处理模块输出的接口规格数据输出。The transmission module outputs the interface specification data output by the processing module.

较佳的,所述防误处理单元是依据参考影像的特定图样与目前影像的特定图样定位出最外围的数个特征点并计算所述特征点的几何中心。Preferably, the anti-error processing unit locates the outermost feature points according to the specific pattern of the reference image and the specific pattern of the current image, and calculates the geometric centers of the feature points.

较佳的,所述防误处理单元是依据参考影像的特定图样与目前影像的特定图样各特征点至几何中心位置的距离比值决定该特定图样在参考影像与目前影像的比例。Preferably, the anti-error processing unit determines the ratio of the specific pattern in the reference image to the current image according to the distance ratio between each feature point of the specific pattern in the reference image and the specific pattern in the current image to the geometric center.

较佳的,所述光学输入设备是一笔式输入设备。Preferably, the optical input device is a pen-type input device.

本发明的有益效果在于:将光学鼠标的概念应用于笔式输入设备时,借由判断影像内图样的比例关系得知是否处于操作面,如果不处于操作面则维持原输出或不动作。The beneficial effects of the present invention are: when the concept of an optical mouse is applied to a pen-type input device, it can be known whether it is on the operation surface by judging the proportional relationship of the pattern in the image, and if it is not on the operation surface, the original output is maintained or no action is taken.

附图说明 Description of drawings

图1是一示意图,说明现有的光学鼠标;Fig. 1 is a schematic diagram illustrating an existing optical mouse;

图2是一单元方块图,说明本发明光学输入设备的较佳实施例;Figure 2 is a unit block diagram illustrating a preferred embodiment of the optical input device of the present invention;

图3是一示意图,说明光学输入设备接触在操作面上侦测到的影像中的特定图样;Fig. 3 is a schematic diagram illustrating that the optical input device touches a specific pattern in the image detected on the operation surface;

图4是一示意图,说明光学输入设备垂直非处于操作面上侦测到的影像中的特定图样;Fig. 4 is a schematic diagram illustrating a specific pattern in an image detected by the optical input device vertically not on the operating surface;

图5是一示意图,说明依据如图3所示的参考影像的特定图样与如图4所示的目前影像的特定图样在几何中心相同的情况下,各特征点至几何中心位置的距离;Fig. 5 is a schematic diagram illustrating the distance from each feature point to the geometric center position under the same geometric center according to the specific pattern of the reference image as shown in Fig. 3 and the specific pattern of the current image as shown in Fig. 4;

图6是一流程图,说明本发明光学输入设备的控制方法的较佳实施例。FIG. 6 is a flowchart illustrating a preferred embodiment of the control method of the optical input device of the present invention.

具体实施方式 Detailed ways

下面结合附图及实施例对本发明进行详细说明。The present invention will be described in detail below in conjunction with the accompanying drawings and embodiments.

图2是本发明的较佳实施例。Fig. 2 is a preferred embodiment of the present invention.

本发明的较佳实施例中,所述光学输入设备100是一笔式输入设备,包含一笔具10、一光源模块11、一影像感测模块12、一电源模块13、一处理模块2、一传输模块3及一记忆模块4。In a preferred embodiment of the present invention, the optical input device 100 is a pen-type input device, including a pen tool 10, a light source module 11, an image sensing module 12, a power supply module 13, a processing module 2, A transmission module 3 and a memory module 4 .

笔具10内部建置光源模块11、影像感测模块12、电源模块13、处理模块2、传输模块3及记忆模块4,且是用以在一操作面6移动,电源模块13供应各组件所需电力;光源模块11发出光线,在操作面6上被反射,且反射光穿过透镜(图未示)供给影像感测模块12加以接收,并送至处理模块2作运算,为了能接收较大范围影像,本实施例的透镜采用广角镜片。The light source module 11, the image sensor module 12, the power module 13, the processing module 2, the transmission module 3 and the memory module 4 are built inside the pen tool 10, and are used to move on an operation surface 6, and the power module 13 supplies all components. Electricity is required; the light source module 11 emits light, which is reflected on the operating surface 6, and the reflected light passes through the lens (not shown) to be received by the image sensing module 12, and sent to the processing module 2 for calculation. Wide-range image, the lens of this embodiment adopts wide-angle lens.

影像感测模块12每间隔一段时间撷取操作面6的影像并输出依时间顺序先后撷取的一参考影像与一目前影像的模拟影像讯号给处理模块2;处理模块2包括一将撷取的模拟影像讯号转换为数字讯号的模拟数字转换模块21及一运算模块22,运算模块22具有一图像处理单元221、一位移计算单元222、一防误处理单元223及一接口单元224,各组件动作原理介绍如下。The image sensing module 12 captures the image of the operation surface 6 at regular intervals and outputs an analog image signal of a reference image and a current image captured successively in time sequence to the processing module 2; the processing module 2 includes an image to be captured. An analog-to-digital conversion module 21 and an operation module 22 for converting analog image signals into digital signals. The operation module 22 has an image processing unit 221, a displacement calculation unit 222, an error prevention processing unit 223, and an interface unit 224. Each component operates The principle is introduced as follows.

参阅图2至图4,图像处理单元221自参考影像201与目前影像202取得一特定图样,例如:二值化处理。Referring to FIG. 2 to FIG. 4 , the image processing unit 221 obtains a specific pattern from the reference image 201 and the current image 202 , such as binarization processing.

位移计算单元222利用特定图样的位置变化计算出一位移向量并将其暂存于记忆模块4,关于位移向量的计算,例如:可利用目标区域的特定图样的区块比较法,在参考影像201取得特定图样41(如图3),在目前影像202取得特定图样42(如图4),然而,目标区域的特定图样的区块比较法仅是众多图像处理方式的一种举例而非限制,其它类似的特定图样搜寻的位移向量计算方式也属于可应用的范畴。The displacement calculation unit 222 calculates a displacement vector by using the position change of the specific pattern and temporarily stores it in the memory module 4. For the calculation of the displacement vector, for example: the block comparison method of the specific pattern of the target area can be used in the reference image 201 Obtain a specific pattern 41 (as shown in Figure 3), and obtain a specific pattern 42 (as shown in Figure 4) in the current image 202. However, the block comparison method of the specific pattern in the target area is only an example and not a limitation of many image processing methods. Other similar displacement vector calculation methods for specific pattern search also belong to the applicable category.

防误处理单元223主要利用图样的比例关系决定是否输出位移向量,也就是图样的比例不变时,代表光学输入设备100一直处于操作面6,属于正常操作,所以可输出位移向量,但是图样的比例一旦改变时,代表光学输入设备100非处于操作面6(包含远离或接近),属于异常操作,所以不输出位移向量,其计算方式介绍如下。The anti-error processing unit 223 mainly uses the ratio of the pattern to determine whether to output the displacement vector, that is, when the ratio of the pattern remains unchanged, it means that the optical input device 100 is always on the operation surface 6, which belongs to normal operation, so the displacement vector can be output, but the pattern’s Once the ratio is changed, it means that the optical input device 100 is not on the operation surface 6 (including moving away or approaching), which is an abnormal operation, so no displacement vector is output, and its calculation method is introduced as follows.

首先,计算参考影像201的特定图样41的几何中心(X0,Y0)与目前影像202的特定图样42的几何中心(X0′,Y0′),计算方式是依据特定图样41、42定位出最外围的数个特征点并计算所述特征点的几何中心,例如:取特定图样41最外围的三个特征点位置(X1,Y1)、(X2,Y2)、(X3,Y3)和特定图样42的最外围的三个特征点位置(X1′,Y1′)、(X2′,Y2′)、(X3′,Y3′)并计算所述特征点的几何中心,计算方式为下述公式1及公式2。First, calculate the geometric center (X 0 , Y 0 ) of the specific pattern 41 in the reference image 201 and the geometric center (X 0 ′, Y 0 ′) of the specific pattern 42 in the current image 202. The calculation method is based on the specific patterns 41, 42 Locate the outermost feature points and calculate the geometric center of the feature points, for example: take the three outermost feature point positions (X 1 , Y 1 ), (X 2 , Y 2 ), ( X 3 , Y 3 ) and the outermost three feature point positions (X 1 ′, Y 1 ′), (X 2 ′, Y 2 ′), (X 3 ′, Y 3 ′) of the specific pattern 42 and calculate The geometric centers of the feature points are calculated in the following formula 1 and formula 2.

( X 0 , Y 0 ) = ( ( X 1 + X 2 + X 3 ) 3 , ( Y 1 + Y 2 + Y 3 ) 3 ) 公式1 ( x 0 , Y 0 ) = ( ( x 1 + x 2 + x 3 ) 3 , ( Y 1 + Y 2 + Y 3 ) 3 ) Formula 1

( X 0 ′ , Y 0 ′ ) = ( ( X 1 ′ + X 2 ′ + X 3 ′ ) 3 , ( Y 1 ′ + Y 2 ′ + Y 3 ′ ) 3 ) 公式2 ( x 0 ′ , Y 0 ′ ) = ( ( x 1 ′ + x 2 ′ + x 3 ′ ) 3 , ( Y 1 ′ + Y 2 ′ + Y 3 ′ ) 3 ) Formula 2

若参考影像201的特定图样41与目前影像202的特定图样42的几何中心相同,如公式3所示。If the geometric center of the specific pattern 41 of the reference image 201 and the specific pattern 42 of the current image 202 are the same, as shown in formula 3.

(X0′,Y0′)=(X0,Y0)                    公式3(X 0 ′, Y 0 ′)=(X 0 , Y 0 ) Formula 3

就计算特定图样41在参考影像201与特定图样42在目前影像202的比例,本实施例是依据特定图样41与特定图样42的各特征点至几何中心位置的距离比值k判断特定图样41、42的比例,如公式4所示。In terms of calculating the ratio of the specific pattern 41 in the reference image 201 and the specific pattern 42 in the current image 202, this embodiment judges the specific patterns 41 and 42 based on the distance ratio k between each feature point of the specific pattern 41 and the specific pattern 42 to the geometric center position The ratio of , as shown in Equation 4.

(( Xx 11 -- Xx 00 )) 22 ++ (( YY 11 -- YY 00 )) 22 (( Xx 11 ′′ -- Xx 00 ′′ )) 22 ++ (( YY 11 ′′ -- YY 00 ′′ )) 22 == (( Xx 22 -- Xx 00 )) 22 ++ (( YY 22 -- YY 00 )) 22 (( Xx 22 ′′ -- Xx 00 ′′ )) 22 ++ (( YY 22 ′′ -- YY 00 ′′ )) 22

== (( Xx 33 -- Xx 00 )) 22 ++ (( YY 33 -- YY 00 )) 22 (( Xx 33 ′′ -- Xx 00 ′′ )) 22 ++ (( YY 33 ′′ -- YY 00 ′′ )) 22 == kk

公式4Formula 4

最后,进行比例是否维持不变的判断,假设相除后的数值为1,代表比例不变,就输出该位移向量,若是比例改变,例如相除后的数值k不为1,就不输出位移向量或不动作。Finally, judge whether the ratio remains unchanged. Assuming that the value after division is 1, which means that the ratio remains unchanged, the displacement vector will be output. If the ratio changes, for example, the value k after division is not 1, and the displacement will not be output. Vector or no action.

接口单元224接收防误处理单元223判断处理后所输出的位移向量,并且根据预定接口规格对位移向量转换为接口规格数据,预定接口规格例如:PS/2接口规格、USB接口规格、无线传输接口规格或以上任意组合产生接口规格数据。The interface unit 224 receives the displacement vector outputted by the error prevention processing unit 223 after judging and processing, and converts the displacement vector into interface specification data according to predetermined interface specifications, such as: PS/2 interface specification, USB interface specification, wireless transmission interface Specifications or any combination of the above generates interface specification data.

传输模块3具有一将包括位移向量的数据处理成有线传输讯号的有线传输单元31及一将包括位移向量的数据处理成无线传输讯号的无线传输单元32;有线传输单元31可将接口单元224输出的接口规格数据处理为有线传输讯号以供后端的主机51做进一步的处理,无线传输单元32可传输无线传输讯号,将接口单元224输出的接口规格数据处理为无线传输讯号以供给远程的主机51的无线接收单元52,实现有线或无线输入功能。The transmission module 3 has a wired transmission unit 31 that processes the data including the displacement vector into a wired transmission signal and a wireless transmission unit 32 that processes the data including the displacement vector into a wireless transmission signal; the wired transmission unit 31 can output the interface unit 224 The interface specification data of the interface unit 224 is processed into a wired transmission signal for further processing by the back-end host 51. The wireless transmission unit 32 can transmit the wireless transmission signal, and the interface specification data output by the interface unit 224 is processed into a wireless transmission signal for supply to the remote host 51. The wireless receiving unit 52 realizes wired or wireless input function.

参阅图6,并配合图2,利用前述原理,本发明光学输入设备100的控制方法于影像感测模块12每间隔一段时间撷取操作面6的影像后,执行包含下述步骤:处理模块2的位移计算单元222接收一参考影像与一目前影像(步骤501)并利用参考影像与目前影像的特定图样的位置变化计算出位移向量(步骤502);然后,防误处理单元223计算参考影像的特定图样的几何中心与目前影像的特定图样的几何中心(步骤503),判断参考影像与目前影像的特定图样的几何中心是否相同(步骤504)?若是504判断为否,输出该位移向量(步骤507),若是相同,计算该特定图样在参考影像与目前影像的比例(步骤505),判断该比例是否维持不变(步骤506)?若是比例不变,输出该位移向量(步骤507),若是比例改变,不输出位移向量或不动作(步骤508)。Referring to FIG. 6, and in conjunction with FIG. 2, using the aforementioned principles, the control method of the optical input device 100 of the present invention includes the following steps after the image sensing module 12 captures the image of the operation surface 6 at intervals: the processing module 2 The displacement calculation unit 222 receives a reference image and a current image (step 501) and calculates a displacement vector (step 502) by using the position change of the specific pattern of the reference image and the current image; then, the anti-error processing unit 223 calculates the reference image The geometric center of the specific pattern is the same as the geometric center of the specific pattern in the current image (step 503), and whether the geometric center of the specific pattern in the reference image and the current image is the same (step 504)? If 504 judges no, output the displacement vector (step 507), if it is the same, calculate the ratio of the specific pattern in the reference image to the current image (step 505), and determine whether the ratio remains unchanged (step 506)? If the ratio does not change, output the displacement vector (step 507); if the ratio changes, do not output the displacement vector or take no action (step 508).

综上所述,本发明的光学输入设备100及控制方法的功效在于:将光学鼠标的概念应用于笔式输入设备时,借由判断图样的比例关系得知是否非处于操作面6,若是图样的比例相同,代表仍然处于操作面6就输出位移向量,若是图样的比例改变,代表非处于操作面6就维持不输出位移向量或不动作,对书写或绘图的连续性十分有帮助,所以确实能达成本发明的目的。To sum up, the effect of the optical input device 100 and the control method of the present invention is: when the concept of an optical mouse is applied to a pen-type input device, it can be determined whether the pattern is not on the operation surface 6 by judging the proportional relationship of the pattern. The proportions are the same, which means that the displacement vector is output when it is still on the operation surface 6. If the proportion of the pattern changes, it means that the displacement vector is not output or no action is maintained when it is not on the operation surface 6. It is very helpful for the continuity of writing or drawing, so it is true. Can reach the purpose of the present invention.

Claims (5)

1.一种光学输入设备的控制方法,该光学输入设备在一操作面移动且每间隔一段时间撷取该操作面的影像;其特征在于:所述方法包括下述步骤:1. A method for controlling an optical input device, the optical input device moves on an operation surface and captures images of the operation surface at intervals; it is characterized in that: the method comprises the following steps: (a)依时间顺序先后撷取一参考影像与一目前影像,利用参考影像与目前影像的一特定图样的位置变化计算出一位移向量;(a) sequentially capturing a reference image and a current image in chronological order, and calculating a displacement vector by using a position change of a specific pattern in the reference image and the current image; (b)依据参考影像的特定图样与目前影像的特定图样分别定位出各自最外围的数个特征点以计算参考影像的特定图样的几何中心与目前影像的特定图样的几何中心;(b) According to the specific pattern of the reference image and the specific pattern of the current image, respectively locate several feature points in the outermost periphery to calculate the geometric center of the specific pattern of the reference image and the geometric center of the specific pattern of the current image; (c)若参考影像与目前影像的特定图样的几何中心相同,计算该特定图样在参考影像与目前影像的比例;(c) If the geometric center of the specified pattern in the reference image is the same as that in the current image, calculate the ratio of the specified pattern in the reference image to the current image; (d)判断该比例是否维持不变,若比例不变,输出该位移向量,若是比例改变,不输出位移向量或不动作。(d) Determine whether the ratio remains unchanged, if the ratio remains unchanged, output the displacement vector, and if the ratio changes, do not output the displacement vector or take no action. 2.根据权利要求1所述的光学输入设备的控制方法,其特征在于:步骤(c)是依据参考影像的特定图样与目前影像的特定图样各特征点至几何中心位置的距离比值决定该特定图样在参考影像与目前影像的比例。2. The control method of the optical input device according to claim 1, characterized in that: step (c) is to determine the specific pattern according to the distance ratio between each feature point of the specific pattern of the reference image and the specific pattern of the current image to the geometric center position. The ratio of the pattern between the reference image and the current image. 3.一种光学输入设备,在一操作面移动,其特征在于:所述光学输入设备包含:3. An optical input device that moves on an operating surface, characterized in that: the optical input device includes: 一影像感测模块,每间隔一段时间撷取该操作面的影像并输出依撷取时间先后的一参考影像与一目前影像;An image sensing module captures the image of the operation surface at regular intervals and outputs a reference image and a current image in sequence according to the capture time; 一处理模块,包括一将该影像感测模块所撷取的模拟影像讯号转换为数字数据的模拟数字转换模块及一运算模块;运算模块具有:A processing module includes an analog-to-digital conversion module for converting the analog image signal captured by the image sensing module into digital data and an operation module; the operation module has: 一图像处理单元,自模拟数字转换模块转换为数字数据的参考影像与目前影像取得一特定图样,an image processing unit, which obtains a specific pattern from the reference image converted into digital data by the analog-to-digital conversion module and the current image, 一位移计算单元,利用特定图样的位置变化计算出一位移向量,a displacement calculation unit, which calculates a displacement vector by using the position change of a specific pattern, 一防误处理单元,依据参考影像的特定图样与目前影像的特定图样分别定位出各自最外围的数个特征点以计算参考影像的特定图样的几何中心与目前影像的特定图样的几何中心,若参考影像与目前影像的特定图样的几何中心相同,计算该特定图样在参考影像与目前影像的比例;并判断该比例是否维持不变,若比例不变,输出该位移向量,若是比例改变,不输出位移向量或不动作,An anti-error processing unit, according to the specific pattern of the reference image and the specific pattern of the current image, respectively locate several feature points on the outermost periphery to calculate the geometric center of the specific pattern of the reference image and the geometric center of the specific pattern of the current image, if The geometric center of the specific pattern in the reference image is the same as the current image, calculate the ratio of the specific pattern in the reference image to the current image; and judge whether the ratio remains unchanged, if the ratio remains unchanged, output the displacement vector, if the ratio changes, do not output displacement vector or no action, 一接口单元,接收防误处理单元所输出的位移向量,并且根据预定接口规格对位移向量转换为接口规格数据,An interface unit, receiving the displacement vector output by the anti-error processing unit, and converting the displacement vector into interface specification data according to a predetermined interface specification, 一传输模块,将该处理模块输出的接口规格数据输出。A transmission module, which outputs the interface specification data output by the processing module. 4.根据权利要求3所述的光学输入设备,其特征在于:所述防误处理单元是依据参考影像的特定图样与目前影像的特定图样各特征点至几何中心位置的距离比值决定该特定图样在参考影像与目前影像的比例。4. The optical input device according to claim 3, characterized in that: the error prevention processing unit determines the specific pattern according to the distance ratio between each feature point of the specific pattern of the reference image and the specific pattern of the current image to the geometric center position The ratio of the reference image to the current image. 5.根据权利要求3至4任一项所述的光学输入设备,其特征在于:所述光学输入设备是一笔式输入设备。5. The optical input device according to any one of claims 3 to 4, characterized in that: the optical input device is a pen-type input device.
CN201110148793.8A 2011-06-03 2011-06-03 Optical input device and control method Active CN102810027B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110148793.8A CN102810027B (en) 2011-06-03 2011-06-03 Optical input device and control method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110148793.8A CN102810027B (en) 2011-06-03 2011-06-03 Optical input device and control method

Publications (2)

Publication Number Publication Date
CN102810027A CN102810027A (en) 2012-12-05
CN102810027B true CN102810027B (en) 2015-08-19

Family

ID=47233741

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110148793.8A Active CN102810027B (en) 2011-06-03 2011-06-03 Optical input device and control method

Country Status (1)

Country Link
CN (1) CN102810027B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1233795A (en) * 1998-04-27 1999-11-03 惠普公司 pen computer pointing device
CN1506908A (en) * 2002-11-15 2004-06-23 ���ղ��Ƽ��ɷ����޹�˾ Method for counting photoelectric mouse moving value and photoelectric mouse using the same method
CN1892556A (en) * 2005-07-04 2007-01-10 艾勒博科技股份有限公司 Optic mouse and optic mouse system and method thereof
CN101221476A (en) * 2007-11-27 2008-07-16 埃派克森微电子(上海)有限公司 Estimation method for image matching effect
CN101281487A (en) * 2008-01-29 2008-10-08 埃派克森微电子(上海)有限公司 Method for monitoring and processing optical mouse abnormal state
CN202093487U (en) * 2011-06-03 2011-12-28 友碁科技股份有限公司 Optical input device

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7474767B2 (en) * 2003-09-24 2009-01-06 Avago Technologies Ecbu Ip (Singapore) Pte. Ltd. Motion detection using multi-resolution image processing

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1233795A (en) * 1998-04-27 1999-11-03 惠普公司 pen computer pointing device
CN1506908A (en) * 2002-11-15 2004-06-23 ���ղ��Ƽ��ɷ����޹�˾ Method for counting photoelectric mouse moving value and photoelectric mouse using the same method
CN1892556A (en) * 2005-07-04 2007-01-10 艾勒博科技股份有限公司 Optic mouse and optic mouse system and method thereof
CN101221476A (en) * 2007-11-27 2008-07-16 埃派克森微电子(上海)有限公司 Estimation method for image matching effect
CN101281487A (en) * 2008-01-29 2008-10-08 埃派克森微电子(上海)有限公司 Method for monitoring and processing optical mouse abnormal state
CN202093487U (en) * 2011-06-03 2011-12-28 友碁科技股份有限公司 Optical input device

Also Published As

Publication number Publication date
CN102810027A (en) 2012-12-05

Similar Documents

Publication Publication Date Title
US10008005B2 (en) Measurement system and method for measuring multi-dimensions
US20150015673A1 (en) Distance calculator and distance calculation method
US9530210B2 (en) Distance calculator and distance calculation method
KR101985674B1 (en) Method of recognizing contactless user interface motion and System there-of
US20140153816A1 (en) Depth Map Stereo Correspondence Techniques
US9904841B2 (en) Method and system for estimating finger movement
US20140169660A1 (en) Stereo Correspondence Smoothness Tool
KR102057531B1 (en) Mobile devices of transmitting and receiving data using gesture
US20160139674A1 (en) Information processing device, image projection device, and information processing method
CN103389310B (en) Online sub-pixel optical component damage detection method based on radiation calibration
CN103020988A (en) Method for generating motion vector of laser speckle image
CN102243537B (en) Method and device for detecting displacement of motion image as well as optical mouse
CN104331907A (en) Method for measuring carrier speed based on ORB (Object Request Broker) character detection
JP2015068748A (en) Dynamic elevation measuring apparatus, dynamic elevation measuring method, and dynamic elevation measuring program
CN104613939B (en) Method and device for positioning operation body and method and device for determining depth
JP5267100B2 (en) Motion estimation apparatus and program
CN102810027B (en) Optical input device and control method
US9342164B2 (en) Motion detecting device and the method for dynamically adjusting image sensing area thereof
TWM541010U (en) Image recognition coordinates determination and navigation device
KR101300166B1 (en) Apparatus and method for detecting iris
CN202093487U (en) Optical input device
TW201814246A (en) Image recognition coordinate confirmation and navigation device in which an image stored in an image coordinate database and an image processed by an image processing unit are used in the image recognition unit to determine a coordinate for a CPU to plan a navigation path
TWI430144B (en) Optical input device and control method
CN116402901B (en) A multi-sensor timestamp delay estimation method
TWI439659B (en) Measurement of three - dimensional coordinates

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
TR01 Transfer of patent right

Effective date of registration: 20190108

Address after: Building 28, No. 4, Huaide Cuigang Industrial Park, Fuyong Street, Baoan District, Shenzhen City, Guangdong Province

Patentee after: SHENZHEN HUION ANIMATION TECHNOLOGY Co.,Ltd.

Address before: Chinese Taiwan New Taipei City

Patentee before: UC-LOGIC TECHNOLOGY CORP.

TR01 Transfer of patent right
CP03 Change of name, title or address

Address after: 518108 1st Floor, Building 1, Huiwang Science and Technology Park, Shiyan Street, Tangtou Community, Shiyan Street, Baoan District, Shenzhen, Guangdong Province

Patentee after: Shenzhen Huewang Trend Technology Co.,Ltd.

Address before: 518103 building 28, area 4, Huaide Cuigang Industrial Park, Fuyong street, Bao'an District, Shenzhen City, Guangdong Province

Patentee before: SHENZHEN HUION ANIMATION TECHNOLOGY Co.,Ltd.

CP03 Change of name, title or address