[go: up one dir, main page]

CN103513791B - Displacement detection device - Google Patents

Displacement detection device Download PDF

Info

Publication number
CN103513791B
CN103513791B CN201210211992.3A CN201210211992A CN103513791B CN 103513791 B CN103513791 B CN 103513791B CN 201210211992 A CN201210211992 A CN 201210211992A CN 103513791 B CN103513791 B CN 103513791B
Authority
CN
China
Prior art keywords
image
detection device
displacement detection
image frame
image sensor
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
CN201210211992.3A
Other languages
Chinese (zh)
Other versions
CN103513791A (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 CN201210211992.3A priority Critical patent/CN103513791B/en
Priority to US13/858,131 priority patent/US9269148B2/en
Publication of CN103513791A publication Critical patent/CN103513791A/en
Application granted granted Critical
Publication of CN103513791B publication Critical patent/CN103513791B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

一种位移检测装置,包含光源、图像感测器及处理单元。所述光源用于照明工作表面。所述图像感测器用于获取所述工作表面的反射光以输出图像帧。所述处理单元在所述图像帧中选择图像特征值最大的可设定取样范围,并根据所述可设定取样范围来计算所述位移检测装置的位移量。

A displacement detection device comprises a light source, an image sensor and a processing unit. The light source is used to illuminate a working surface. The image sensor is used to obtain reflected light from the working surface to output an image frame. The processing unit selects a settable sampling range with the largest image feature value in the image frame, and calculates the displacement of the displacement detection device according to the settable sampling range.

Description

位移检测装置Displacement detection device

技术领域technical field

本发明涉及一种互动装置,特别涉及一种可动态选择图像帧中有效像素范围以计算位移量的位移检测装置。The invention relates to an interactive device, in particular to a displacement detection device which can dynamically select an effective pixel range in an image frame to calculate displacement.

背景技术Background technique

已知光学鼠标通常包含光源、图像感测器以及处理单元,并供使用者在工作表面上操控。所述光源用于照明所述工作表面;所述图像感测器接收来自所述工作表面的反射光以输出图像帧;所述处理单元则根据所述图像感测器输出的图像帧来计算所述光学鼠标相对于所述工作表面的位移量,例如根据图像帧间的相关性(correlation)来计算所述位移量。A known optical mouse generally includes a light source, an image sensor, and a processing unit, and is manipulated by a user on a work surface. The light source is used to illuminate the work surface; the image sensor receives reflected light from the work surface to output an image frame; the processing unit calculates the The displacement of the optical mouse relative to the work surface is calculated, for example, according to the correlation between image frames.

已知光学鼠标中,由于由所述图像感测器来获取所述工作表面的反射光,则当所述图像感测器所获取的图像帧的图像品质不佳时,可能出现无法正确计算所述位移量的情形。In the known optical mouse, since the reflected light of the work surface is acquired by the image sensor, when the image quality of the image frame acquired by the image sensor is not good, it may not be possible to correctly calculate the The situation of displacement.

例如参照图1所示,一般光学鼠标例如包含光源81,光源81通过透镜82照明工作表面9,所述工作表面9的反射光通过另一透镜83被图像感测器84所接收。光学鼠标在组装时,所述图像感测器84可能并非精确地被设置于期望位置,例如当所述图像感测器84被设置于84′的位置时,所述图像感测器84获取所述工作表面9的反射光所形成的图像帧的图像品质可能不佳,因而导致误运算的情形。For example, as shown in FIG. 1 , a general optical mouse includes a light source 81 , the light source 81 illuminates the work surface 9 through a lens 82 , and the reflected light of the work surface 9 is received by an image sensor 84 through another lens 83 . When the optical mouse is assembled, the image sensor 84 may not be accurately set at the desired position, for example, when the image sensor 84 is set at the position 84', the image sensor 84 acquires all The image quality of the image frame formed by the reflected light of the working surface 9 may be poor, thus causing miscalculation.

另外,即使所述图像感测器84正确地被设置于期望位置,当所述光学鼠标被操作于不同的工作表面时,仍然可能出现成像位置偏移的情形。例如参照图2A所示,其示出光学鼠标操作于玻璃表面的示意图,此时所述工作表面9的反射光仍然能够被所述图像感测器84所接收;然而,当光学鼠标操作于具有较大厚度的另一玻璃表面时,如图2B所示,所述图像感测器84则无法正确接收来自所述工作表面9的反射光,图像品质降低而导致误运算的情形。In addition, even if the image sensor 84 is correctly positioned at a desired position, when the optical mouse is operated on a different work surface, the imaging position may still be shifted. For example with reference to shown in Fig. 2A, it shows the schematic diagram that optical mouse is operated on glass surface, and the reflected light of described working surface 9 can still be received by described image sensor 84 this moment; When another glass surface with a larger thickness is used, as shown in FIG. 2B , the image sensor 84 cannot correctly receive the reflected light from the working surface 9 , and the image quality is degraded, resulting in miscalculation.

鉴于此,本发明还提出一种位移检测装置,其可操作于各种表面并可有效克服组装误差所导致的图像品质降低的情形。In view of this, the present invention also proposes a displacement detection device, which can be operated on various surfaces and can effectively overcome the degradation of image quality caused by assembly errors.

发明内容Contents of the invention

本发明的目的是提供一种位移检测装置,其可克服组装误差所导致的计算精确度降低的情形。The object of the present invention is to provide a displacement detection device, which can overcome the reduction of calculation accuracy caused by assembly errors.

本发明的另一目的是提供一种位移检测装置,其可根据不同的工作表面来调整图像帧的可设定取样范围(window ofinterest),以增加计算精确度。Another object of the present invention is to provide a displacement detection device, which can adjust a settable sampling range (window of interest) of an image frame according to different working surfaces, so as to increase calculation accuracy.

本发明提供一种位移检测装置,包含光源、图像感测器以及处理单元。所述光源以一投射方向照明工作表面。所述图像感测器用于获取所述工作表面的反射光以输出图像帧。所述处理单元在所述图像帧中选择至少一个可设定取样范围,并分别根据两个所述图像帧的所述可设定取样范围来计算所述位移检测装置的位移量。The invention provides a displacement detection device, which includes a light source, an image sensor and a processing unit. The light source illuminates the work surface in a projection direction. The image sensor is used to acquire reflected light of the working surface to output an image frame. The processing unit selects at least one settable sampling range in the image frames, and calculates the displacement of the displacement detection device according to the settable sampling ranges of the two image frames respectively.

本发明还提供一种位移检测装置,包含光源、图像感测阵列、加法单元、模拟/数字单元以及处理单元。所述光源以一投射方向照明工作表面。所述图像感测阵列用于获取所述工作表面的反射光以输出第一模拟图像帧。所述加法单元将所述第一模拟图像帧减去直流值以输出第二模拟图像帧。所述模拟/数字单元放大所述第二模拟图像帧并转换为数字图像帧。所述处理单元在所述数字图像帧中选择至少一个可设定取样范围,并根据所述可设定取样范围计算所述位移检测装置的位移量。本实施方式可用于当图像帧的图像特征较不明显时,用于增加图像特征值。The invention also provides a displacement detection device, which includes a light source, an image sensing array, an adding unit, an analog/digital unit and a processing unit. The light source illuminates the work surface in a projection direction. The image sensing array is used to acquire reflected light of the working surface to output a first simulated image frame. The adding unit subtracts a DC value from the first analog image frame to output a second analog image frame. The analog/digital unit amplifies the second analog image frame and converts it into a digital image frame. The processing unit selects at least one settable sampling range in the digital image frame, and calculates the displacement of the displacement detection device according to the settable sampling range. This implementation manner can be used to increase the image feature value when the image feature of the image frame is relatively inconspicuous.

本发明还提供一种位移检测装置,包含光源、图像感测器及处理单元。所述光源以一投射方向照明工作表面。所述图像感测器用于获取所述工作表面的反射光以输出图像帧。所述处理单元在所述图像帧中选择图像特征值最大的可设定取样范围,并根据所述可设定范围计算所述位移检测装置的位移量。The invention also provides a displacement detection device, which includes a light source, an image sensor and a processing unit. The light source illuminates the work surface in a projection direction. The image sensor is used to acquire reflected light of the working surface to output an image frame. The processing unit selects a settable sampling range with the largest image feature value in the image frame, and calculates the displacement of the displacement detection device according to the settable range.

本发明的位移检测装置中,通过使用具有较大面积(例如32×128)的图像感测阵列以完整接收来自所述工作表面的反射光,其中所述图像感测阵列优选为长方形且其长度优选向所述光源投射方向的水平分量的方向延伸。In the displacement detection device of the present invention, the reflected light from the working surface is completely received by using an image sensing array with a larger area (for example, 32×128), wherein the image sensing array is preferably rectangular and its length It preferably extends in the direction of the horizontal component of the projection direction of the light source.

本发明还通过在所述图像感测器所获取的图像帧中选择至少一个可设定取样范围或图像特征值最大的可设定取样范围,以根据图像特征较明显的像素范围来正确计算位移量;其中,所述图像特征值最大指图像特征超过预设特征值的像素范围中,平均图像特征值最大者,例如平均图像品质的数值最大或平均图像亮度最大。The present invention also selects at least one settable sampling range or the settable sampling range with the largest image feature value in the image frame acquired by the image sensor, so as to correctly calculate the displacement according to the pixel range with obvious image features Wherein, the largest image feature value refers to the one with the largest average image feature value in the pixel range where the image feature exceeds the preset feature value, such as the largest average image quality value or the largest average image brightness.

附图说明Description of drawings

图1示出已知光学鼠标的示意图,其示出图像感测器的组装偏差。FIG. 1 shows a schematic diagram of a known optical mouse, which shows the assembly deviation of the image sensor.

图2A和2B示出已知光学鼠标操作于不同厚度的玻璃表面的操作示意图。2A and 2B are schematic diagrams illustrating the operation of a known optical mouse operating on glass surfaces of different thicknesses.

图3示出本发明实施方式的位移检测装置的示意图,其示出图像感测器的组装偏差。FIG. 3 is a schematic diagram of a displacement detection device according to an embodiment of the present invention, which shows an assembly deviation of an image sensor.

图4示出本发明实施方式的位移检测装置的操作示意图。Fig. 4 shows a schematic diagram of the operation of the displacement detection device according to the embodiment of the present invention.

图5A和5B示出本发明实施方式的位移检测装置操作在不同厚度的玻璃表面的操作示意图。5A and 5B are schematic diagrams showing the operation of the displacement detection device according to the embodiment of the present invention operating on glass surfaces with different thicknesses.

图6示出本发明实施方式的位移检测装置的方块示意图。Fig. 6 shows a schematic block diagram of a displacement detection device according to an embodiment of the present invention.

附图标记说明Explanation of reference signs

1位移检测装置 11、81光源1 displacement detection device 11, 81 light source

13、13′、13"图像感测器 130、130′可设定取样范围13, 13', 13" image sensor 130, 130' can set the sampling range

131图像感测阵列 133加法单元131 Image sensing array 133 Adding unit

135模拟/数字单元 15处理单元135 analog/digital units 15 processing units

16数字/模拟单元 17、19光学元件16 digital/analog unit 17, 19 optics

S、9工作表面 P投射方向S, 9 working surface P projection direction

PX 投射方向水平分量 PY投射方向垂直分量P X projection direction horizontal component P Y projection direction vertical component

LX 图像感测阵列长度方向 IF图像帧L X image sensing array length direction I F image frame

DAC直流值 DX平均亮度DAC DC value D X average brightness

AX、Ay亮度特征变化 T1、T2玻璃厚度A X , Ay brightness characteristic change T 1 , T 2 glass thickness

82、83光学元件V 84、84′图像感测器82, 83 optics V 84, 84' image sensor

具体实施方式detailed description

为了让本发明的上述和其他目的、特征和优点能更明显,下文将配合附图作详细说明。在本发明的说明中,相同的构件以相同的符号表示,在此先说明。In order to make the above and other objects, features and advantages of the present invention more apparent, the following will be described in detail with accompanying drawings. In the description of the present invention, the same components are denoted by the same symbols, and will be described first.

参照图3所示,其示出本发明实施方式的位移检测装置1的示意图。位移检测装置1包含光源11、图像感测器13及处理单元15;有些实施方式中所述位移检测装置1还可包含光学元件17(例如透镜),用于调整所述光源11的投射范围以及光学元件19(例如透镜),用于增加所述图像感测器13的感光效率。所述位移检测装置1用于检测相对于工作表面S的位移量,并将所述位移量输出至电子装置(未示出)以进行相对应控制。必须说明的是,图3中所述位移检测装置1实际上仅包含一个图像感测器13、13′或13",此处示出三个图像感测器用于表示组装偏差,亦即所述图像感测器可能位于13、13′或13"其中一个位置,并非表示所述位移检测装置1包含三个图像感测器。Referring to FIG. 3 , it shows a schematic diagram of a displacement detection device 1 according to an embodiment of the present invention. The displacement detection device 1 includes a light source 11, an image sensor 13, and a processing unit 15; in some embodiments, the displacement detection device 1 may also include an optical element 17 (such as a lens) for adjusting the projection range of the light source 11 and The optical element 19 (such as a lens) is used to increase the light-sensing efficiency of the image sensor 13 . The displacement detection device 1 is used to detect the displacement relative to the working surface S, and output the displacement to an electronic device (not shown) for corresponding control. It must be noted that the displacement detection device 1 in FIG. 3 actually only includes one image sensor 13, 13' or 13", and three image sensors are shown here to indicate assembly deviation, that is, the The image sensor may be located at one of 13, 13' or 13", which does not mean that the displacement detection device 1 includes three image sensors.

所述光源11例如可为发光二极管或雷射二极管,用于发出红外光或不可见光以提供所述图像感测器13获取图像时所需的光。所述光源11以一投射方向P照明所述工作表面S,其中所述投射方向P可分解为平行于所述工作表面S的水平分量PX以及垂直于所述工作表面的垂直分量PYThe light source 11 can be, for example, a light emitting diode or a laser diode for emitting infrared light or invisible light to provide the light required for the image sensor 13 to capture images. The light source 11 illuminates the work surface S with a projection direction P, wherein the projection direction P can be decomposed into a horizontal component P X parallel to the work surface S and a vertical component P Y perpendicular to the work surface.

所述图像感测器13优选为CMOS图像感测器或其他主动式图像感测器,用于获取所述工作表面S的反射光以持续输出图像帧IF;其中,所述图像帧IF为数字图像帧。所述图像感测器13优选包含长方形的图像感测阵列131;所述图像感测阵列131的长度方向LX大致向所述投射方向P的水平分量PX的方向延伸,而且所述图像感测阵列131例如具有像素尺寸32×128,但本发明并不限于此。藉此,如图所示不论所述图像感测器13在组装时被设置于13、13′或13"的位置,所述图像感测器13均得以检测来自所述工作表面S的反射光。可以了解的是,13、13′或13"的位置偏移量实际上非常小,为了表示的目的图3中放大了空间比例。The image sensor 13 is preferably a CMOS image sensor or other active image sensor, which is used to obtain the reflected light of the working surface S to continuously output the image frame I F ; wherein, the image frame I F for digital image frames. The image sensor 13 preferably includes a rectangular image sensing array 131; the length direction L X of the image sensing array 131 extends approximately in the direction of the horizontal component P X of the projection direction P, and the image sensing array 131 The measurement array 131 has, for example, a pixel size of 32×128, but the present invention is not limited thereto. Thereby, regardless of whether the image sensor 13 is arranged at the position of 13, 13' or 13" when assembled as shown in the figure, the image sensor 13 can detect the reflected light from the working surface S It can be understood that the position offset of 13, 13' or 13" is actually very small, and the spatial scale is enlarged in Fig. 3 for the purpose of representation.

所述处理单元15例如可以是数字信号处理器(DSP),用于在所述图像感测器13输出的所述图像帧IF中选择至少一个可设定取样范围130,并根据所述可设定取样范围130来计算所述位移检测装置1的位移量,例如分别根据两个图像帧IF的可设定取样范围130间的相关性(correlation)来计算所述位移量。一种实施方式中,所述至少一个可设定取样范围130定义为所述图像帧IF的图像特征超过预设特征值的一个或多个像素范围,其中所述图像特征例如可为图像品质或图像亮度。换句话说,本发明的位移检测装置1的处理单元15并非利用所述图像感测器13所输出的整个图像帧IF来计算所述位移量而是动态地利用图像特征较明显的像素范围进行计算。The processing unit 15 may be, for example, a digital signal processor (DSP), which is used to select at least one settable sampling range 130 from the image frame IF output by the image sensor 13, and according to the settable The sampling range 130 is set to calculate the displacement of the displacement detection device 1 , for example, the displacement is calculated according to the correlation between the settable sampling ranges 130 of the two image frames IF . In one embodiment, the at least one settable sampling range 130 is defined as one or more ranges of pixels where the image feature of the image frame IF exceeds a preset feature value, wherein the image feature can be, for example, image quality or image brightness. In other words, the processing unit 15 of the displacement detection device 1 of the present invention does not use the entire image frame IF output by the image sensor 13 to calculate the displacement, but dynamically utilizes the pixel range with obvious image features Calculation.

参照第4图所示,当所述图像帧IF中被判定为包含多个可设定取样范围时,例如此处包含130及130′,所述处理单元15则在所述图像感测器13输出的所述图像帧IF中选择图像特征值最大或面积最大的可设定取样范围(例如130),并根据所述可设定取样范围130来计算所述位移检测装置1的所述位移量而忽略可设定取样范围130′。其他实施方式中,所述处理单元15亦可根据不同的可设定取样范围来计算所述位移量,例如根据可设定取样范围130计算第一位移量并根据可设定取样范围130′计算第二位移量,并比较根据不同的可设定取样范围计算的所述位移量的一致性,因此在图像特征值不明显时(例如在反射系数较低的工作表面S操作时),可用于重复确认所述位移量是否正确。所述图像特征值最大指图像特征超过预设特征值的各像素范围中,平均图像特征值最大者,例如平均图像品质的数值最大或平均图像亮度最大。Referring to Fig. 4, when the image frame IF is determined to include a plurality of configurable sampling ranges, for example, 130 and 130' are included here, the processing unit 15 performs the processing on the image sensor 13. Select the settable sampling range (for example, 130) with the largest image feature value or the largest area in the image frame IF output from 13, and calculate the displacement detection device 1 according to the settable sampling range 130. Regardless of the amount of displacement, the sampling range 130' can be set. In other implementations, the processing unit 15 can also calculate the displacement according to different settable sampling ranges, for example, calculate the first displacement according to the settable sampling range 130 and calculate the first displacement according to the settable sampling range 130′ The second displacement amount, and compare the consistency of the displacement amount calculated according to different settable sampling ranges, so when the image characteristic value is not obvious (for example, when operating on a working surface S with a low reflection coefficient), it can be used for Double check that the displacement is correct. The largest image feature value refers to the one with the largest average image feature value among the ranges of pixels whose image features exceed preset feature values, such as the largest average image quality value or the largest average image brightness.

本发明实施方式的位移检测装置1除了可克服组装误差外,还可根据不同工作表面S来调整所述图像感测器13的可设定取样范围130。例如参照图5A和5B所示,其分别示出所述位移检测装置1在具有不同厚度的玻璃表面操作的示意图。当所述位移检测装置1在具有第一厚度T1的工作表面S操作时,所述可设定取样范围130例如位于图中所述图像感测阵列130最左侧,而当所述位移检测装置1在具有第二厚度T2的工作表面S操作时,所述可设定取样范围130例如朝向图中所述图像感测阵列130的右侧偏移。如前所述,所述处理单元15则可将所述图像帧IF的图像特征超过预设特征值的一个或多个像素范围辨识为所述可设定取样范围130,并据以计算所述位移量。In addition to overcoming assembly errors, the displacement detection device 1 according to the embodiment of the present invention can also adjust the settable sampling range 130 of the image sensor 13 according to different working surfaces S. For example, refer to FIGS. 5A and 5B , which respectively show schematic diagrams of the operation of the displacement detection device 1 on glass surfaces with different thicknesses. When the displacement detection device 1 operates on the working surface S with a first thickness T1, the settable sampling range 130 is, for example, located on the leftmost side of the image sensing array 130 in the figure, and when the displacement detection When the device 1 operates on the working surface S having the second thickness T 2 , the settable sampling range 130 is, for example, shifted toward the right side of the image sensing array 130 in the figure. As mentioned above, the processing unit 15 can identify one or more pixel ranges in which the image feature of the image frame IF exceeds a preset feature value as the settable sampling range 130, and calculate the the amount of displacement.

此外,为了增加选择所述可设定取样范围130的精确度,当所述图像帧IF的所述图像特征均小于所述预设特征值或输出每一个图像帧IF时,所述图像感测器13还执行将模拟图像帧扣除直流值并放大经扣除所述直流值的所述模拟图像帧的步骤,再经数字化以输出所述模拟图像帧IFIn addition, in order to increase the accuracy of selecting the settable sampling range 130, when the image features of the image frame IF are all smaller than the preset feature value or each image frame IF is output, the image The sensor 13 also performs the steps of subtracting the DC value from the analog image frame and amplifying the analog image frame with the subtracted DC value, and then digitizing to output the analog image frame I F .

参照图6所示,其示出本发明实施方式的位移检测装置1的方块示意图;其中,所述图像感测器13还包含图像感测阵列131、加法单元133及模拟/数字单元135。此实施方式中,所述光源11同样以所述投射方向P照明所述工作表面S。所述图像感测阵列131用于获取所述工作表面S的反射光以输出第一模拟图像帧;所述第一模拟图像帧例如为二维模拟图像,其中图6(A)例如示出所述第一模拟图像帧的一列像素的亮度值(Dx+Ax),Dx表示平均亮度而Ax表示亮度特征变化值。所述加法单元133(亦可利用减法器实现)将所述第一模拟图像帧减去直流值DAC以输出第二模拟图像帧,其中图6(B)例如示出所述第二模拟图像帧的一列像素的亮度值(Dx-DAC)+Ax;所述亮度值(Dx+Ax)扣除所述直流值DAC的目的在于避免在后续放大及数字化步骤中有亮度值过大的情形。所述模拟/数字单元135放大所述第二模拟图像帧并将其转换为数字图像帧以输出至所述处理单元15,其中图6(C)例如示出所述数字图像帧的一列像素的亮度值(Dx-DAC)+Ay,Ay表示一亮度特征变化值;可明显看出亮度特征的峰对峰值有效地增加了。本实施方式中,所述模拟/数字单元135例如可为线性或非线性模拟/数字转换器,或者所述模拟/数字单元135内部还可包含放大单元,先放大所述第二模拟图像帧后,再进行模拟/数字转换。藉此,所述图像感测阵列131所感测的第一模拟图像帧经所述加法器133及所述数字/模拟单元135处理后则能增加数字图像帧的图像特征值,以增加选择可设定取样范围的正确性。Referring to FIG. 6 , it shows a schematic block diagram of a displacement detection device 1 according to an embodiment of the present invention; wherein, the image sensor 13 further includes an image sensing array 131 , an adding unit 133 and an analog/digital unit 135 . In this embodiment, the light source 11 also illuminates the working surface S in the projection direction P. The image sensing array 131 is used to acquire the reflected light of the working surface S to output a first simulated image frame; the first simulated image frame is, for example, a two-dimensional simulated image, wherein FIG. 6(A) shows, for example, the The luminance value (Dx+Ax) of a column of pixels in the first analog image frame, Dx represents the average luminance and Ax represents the luminance characteristic change value. The adding unit 133 (which can also be realized by a subtractor) subtracts the DC value DAC from the first analog image frame to output a second analog image frame, where FIG. 6(B) shows, for example, the second analog image frame The luminance value (Dx-DAC)+Ax of a column of pixels; the purpose of subtracting the DC value DAC from the luminance value (Dx+Ax) is to avoid the situation that the luminance value is too large in the subsequent amplification and digitization steps. The analog/digital unit 135 amplifies the second analog image frame and converts it into a digital image frame for output to the processing unit 15, wherein FIG. 6(C) shows, for example, a column of pixels of the digital image frame Luminance value (Dx-DAC) + Ay, Ay represents a luminance characteristic change value; it can be clearly seen that the peak-to-peak value of the luminance characteristic is effectively increased. In this embodiment, the analog/digital unit 135 can be, for example, a linear or non-linear analog/digital converter, or the analog/digital unit 135 can also include an amplification unit, which first amplifies the second analog image frame and then , and then perform analog/digital conversion. Thereby, after the first analog image frame sensed by the image sensing array 131 is processed by the adder 133 and the digital/analog unit 135, the image feature value of the digital image frame can be increased to increase the selectable Determine the correctness of the sampling range.

此外,本实施方式中,所述直流值DAC例如为所述第二模拟图像帧的平均亮度或偏移量,其可由所述处理单元15根据所述数字图像帧决定,并经过数字/模拟单元16将所述平均亮度或所述偏移量转换为模拟信号后输入至所述加法单元133。In addition, in this embodiment, the direct current value DAC is, for example, the average brightness or offset of the second analog image frame, which can be determined by the processing unit 15 according to the digital image frame, and passed through the digital/analog unit 16 Convert the average brightness or the offset into an analog signal and input it to the adding unit 133 .

此外,在实际操作期间,所述处理单元15将可在适当时机确认所选择的可设定取样范围130是否恰当。例如,所述处理单元15每隔预设时间间隔,则计算已选定的所述可设定取样范围130的图像特征值,当所述可设定取样范围130的图像特征值小于预设特征值时,则重新选择至少一个可设定取样范围130或图像特征值最大的可设定取样范围130;或者,所述处理单元15每隔预设时间间隔,直接重新选择至少一个可设定取样范围130或图像特征值最大的可设定取样范围130。此外,所述可设定取样范围130例如可在每次系统开机时或结束休眠状态时即进行选取,或者可根据使用者的指示进行选取。In addition, during actual operation, the processing unit 15 can confirm whether the selected settable sampling range 130 is appropriate at an appropriate time. For example, the processing unit 15 calculates the image feature value of the selected settable sampling range 130 every preset time interval, when the image feature value of the settable sampling range 130 is smaller than the preset feature value value, then reselect at least one settable sampling range 130 or the settable sampling range 130 with the largest image feature value; or, the processing unit 15 directly reselects at least one settable sampling range every preset time interval The range 130 or the settable sampling range 130 with the largest image feature value. In addition, the settable sampling range 130 can be selected, for example, every time the system is turned on or when the sleep state is ended, or can be selected according to a user's instruction.

综上所述,已知光学鼠标无法排除组装误差且在不同工作表面操作时可能出现无法正确接收来自工作表面反射光而导致误操作的情形。本发明还提出一种位移检测装置(图3到5),其通过使用面积较大的图像感测阵列并选择可设定取样范围,由于仅使用部分图像特征较明显的像素范围进行计算,因而可有效克服组装误差并可适用于不同的工作表面。To sum up, it is known that the optical mouse cannot eliminate assembly errors and may fail to correctly receive reflected light from the work surface when operating on different work surfaces, resulting in misoperation. The present invention also proposes a displacement detection device (Figures 3 to 5), which uses an image sensing array with a larger area and selects a settable sampling range, since only part of the pixel range with obvious image features is used for calculation, so It can effectively overcome assembly errors and is applicable to different working surfaces.

虽然本发明已以前述实施方式公开,然其并非用于限定本发明,任何本发明所属技术领域中的技术人员,在不脱离本发明的精神和范围内,可作各种变动与修改。因此本发明的保护范围应以所附的权利要求书所限定的为准。Although the present invention has been disclosed in the foregoing embodiments, it is not intended to limit the present invention. Any person skilled in the art to which the present invention belongs can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the scope of protection of the present invention should be defined by the appended claims.

Claims (18)

1.一种位移检测装置,该位移检测装置包含:1. A displacement detection device, which displacement detection device comprises: 光源,用于以一投射方向照明工作表面;a light source for illuminating the work surface in a projection direction; 图像感测器,用于获取所述工作表面的反射光以输出图像帧;以及an image sensor for capturing reflected light from the work surface to output an image frame; and 处理单元,在所述图像感测器输出的所述图像帧中根据图像特征超过预设特征值的一个或多个像素范围选择至少一个可设定取样范围,忽略所述图像感测器输出的所述图像帧中所述可设定取样范围以外的像素范围,根据所述图像感测器输出的两个所述图像帧中分别选择的所述可设定取样范围间的相关性来计算所述位移检测装置的位移量,The processing unit selects at least one settable sampling range according to one or more pixel ranges whose image characteristics exceed a preset characteristic value in the image frame output by the image sensor, and ignores the pixel range output by the image sensor. For the pixel range outside the settable sampling range in the image frame, the settable sampling range is calculated according to the correlation between the settable sampling ranges respectively selected in the two image frames output by the image sensor. The displacement of the displacement detection device, 其中,所述位移检测装置根据不同的工作表面调整所述图像帧的所述可设定取样范围的位置。Wherein, the displacement detection device adjusts the position of the settable sampling range of the image frame according to different working surfaces. 2.根据权利要求1所述的位移检测装置,其中所述图像特征为图像品质或图像亮度。2. The displacement detection device according to claim 1, wherein the image characteristic is image quality or image brightness. 3.根据权利要求1所述的位移检测装置,其中当所述图像帧的所述图像特征均小于所述预设特征值时,所述图像感测器还执行将模拟图像帧扣除直流值并将经扣除所述直流值的所述模拟图像帧进行放大的步骤,再输出所述图像帧。3. The displacement detection device according to claim 1, wherein when the image features of the image frames are all smaller than the preset feature value, the image sensor also performs subtracting a DC value from the analog image frame and A step of amplifying the simulated image frame from which the DC value has been subtracted, and then outputting the image frame. 4.根据权利要求1所述的位移检测装置,其中所述图像感测器包含长方形的图像感测阵列,所述图像感测阵列的长度方向向所述投射方向的水平分量的方向延伸。4 . The displacement detection device according to claim 1 , wherein the image sensor comprises a rectangular image sensing array, and the length direction of the image sensing array extends in the direction of the horizontal component of the projection direction. 5.根据权利要求1所述的位移检测装置,其中所述处理单元还对根据不同的所述可设定取样范围计算的所述位移量的一致性进行比较。5. The displacement detection device according to claim 1, wherein the processing unit further compares the consistency of the displacement calculated according to different settable sampling ranges. 6.一种位移检测装置,该位移检测装置包含:6. A displacement detection device, the displacement detection device comprising: 光源,用于以一投射方向照明工作表面;a light source for illuminating the work surface in a projection direction; 图像感测器,包含图像感测阵列、加法单元及模拟/数字单元,An image sensor, including an image sensing array, an addition unit and an analog/digital unit, 所述图像感测阵列,用于获取所述工作表面的反射光以输出第一模拟图像帧;The image sensing array is used to acquire the reflected light of the working surface to output the first analog image frame; 所述加法单元,将所述第一模拟图像帧减去直流值以输出第二模拟图像帧;及The adding unit subtracts a DC value from the first analog image frame to output a second analog image frame; and 所述模拟/数字单元,放大所述第二模拟图像帧并将所述第二模拟图像帧转换为数字图像帧;以及the analog/digital unit amplifies the second analog image frame and converts the second analog image frame into a digital image frame; and 处理单元,在所述图像感测器输出的所述数字图像帧中根据图像特征超过预设特征值的一个或多个像素范围选择至少一个可设定取样范围,忽略所述图像感测器输出的所述数字图像帧中所述可设定取样范围以外的像素范围,并根据所述图像感测器输出的两个所述数字图像帧中分别选择的所述可设定取样范围间的相关性来计算所述位移检测装置的位移量,A processing unit that selects at least one settable sampling range according to one or more pixel ranges whose image characteristics exceed a preset characteristic value in the digital image frame output by the image sensor, and ignores the image sensor output The range of pixels outside the settable sampling range in the digital image frame, and according to the correlation between the settable sampling ranges respectively selected in the two digital image frames output by the image sensor to calculate the displacement of the displacement detection device, 其中,所述位移检测装置根据不同的工作表面调整所述图像帧的所述可设定取样范围的位置。Wherein, the displacement detection device adjusts the position of the settable sampling range of the image frame according to different working surfaces. 7.根据权利要求6所述的位移检测装置,其中所述直流值为所述第二模拟图像帧的平均亮度或偏移量。7. The displacement detection device according to claim 6, wherein the DC value is an average brightness or an offset of the second analog image frame. 8.根据权利要求6所述的位移检测装置,其中所述图像特征为图像品质或图像亮度。8. The displacement detection device according to claim 6, wherein the image characteristic is image quality or image brightness. 9.根据权利要求6所述的位移检测装置,其中所述图像感测阵列为长方形,所述图像感测阵列的长度方向向所述投射方向的水平分量的方向延伸。9. The displacement detection device according to claim 6, wherein the image sensing array is rectangular, and the length direction of the image sensing array extends in the direction of the horizontal component of the projection direction. 10.根据权利要求6所述的位移检测装置,其中所述图像感测阵列的尺寸为32×128。10. The displacement detection device according to claim 6, wherein the size of the image sensing array is 32×128. 11.根据权利要求6所述的位移检测装置,其中所述处理单元还对根据不同所述可设定取样范围计算的所述位移量的一致性进行比较。11. The displacement detection device according to claim 6, wherein the processing unit further compares the consistency of the displacement calculated according to different settable sampling ranges. 12.一种位移检测装置,该位移检测装置包含:12. A displacement detection device, the displacement detection device comprising: 光源,用于以一投射方向照明工作表面;a light source for illuminating the work surface in a projection direction; 图像感测器,用于获取所述工作表面的反射光以输出图像帧;以及an image sensor for capturing reflected light from the work surface to output an image frame; and 处理单元,在所述图像感测器输出的所述图像帧的图像特征超过预设特征值的一个或多个像素范围中选择图像特征值最大的可设定取样范围,忽略所述图像感测器输出的所述图像帧中所述可设定取样范围以外的像素范围,并根据所述图像感测器输出的两个所述图像帧中分别选择的所述可设定取样范围间的相关性来计算所述位移检测装置的位移量,The processing unit selects a settable sampling range with the largest image feature value in one or more pixel ranges in which the image feature of the image frame output by the image sensor exceeds a preset feature value, and ignores the image sensing The range of pixels outside the settable sampling range in the image frame output by the image sensor, and according to the correlation between the settable sampling ranges respectively selected in the two image frames output by the image sensor to calculate the displacement of the displacement detection device, 其中,所述位移检测装置根据不同的工作表面调整所述图像帧的所述可设定取样范围的位置。Wherein, the displacement detection device adjusts the position of the settable sampling range of the image frame according to different working surfaces. 13.根据权利要求12所述的位移检测装置,其中所述图像特征值为图像品质或图像亮度。13. The displacement detection device according to claim 12, wherein the image feature value is image quality or image brightness. 14.根据权利要求12所述的位移检测装置,其中所述图像感测器包含长方形的图像感测阵列,所述图像感测阵列的长度方向向所述投射方向的水平分量的方向延伸。14. The displacement detection device according to claim 12, wherein the image sensor comprises a rectangular image sensing array, the length direction of the image sensing array extends in the direction of the horizontal component of the projection direction. 15.根据权利要求12所述的位移检测装置,其中所述处理单元每隔预设时间间隔,则计算所述可设定取样范围的所述图像特征值。15 . The displacement detection device according to claim 12 , wherein the processing unit calculates the image feature value of the settable sampling range every preset time interval. 16.根据权利要求15所述的位移检测装置,其中当所述可设定取样范围的所述图像特征值小于所述预设特征值时,重新选择图像特征值最大的可设定取样范围。16. The displacement detection device according to claim 15, wherein when the image feature value of the settable sampling range is smaller than the preset feature value, reselect the settable sampling range with the largest image feature value. 17.根据权利要求12所述的位移检测装置,其中所述处理单元每隔预设时间间隔,重新选择图像特征值最大的可设定取样范围。17. The displacement detection device according to claim 12, wherein the processing unit re-selects the settable sampling range with the largest image feature value every preset time interval. 18.根据权利要求12所述的位移检测装置,其中当所述图像帧的所述图像特征值均小于所述预设特征值时,所述图像感测器还执行将模拟图像帧扣除直流值并将经扣除所述直流值的所述模拟图像帧进行放大的步骤,再输出所述图像帧。18. The displacement detection device according to claim 12, wherein when the image feature values of the image frames are all smaller than the preset feature values, the image sensor also performs subtracting a DC value from the analog image frame and a step of amplifying the analog image frame from which the DC value has been deducted, and then outputting the image frame.
CN201210211992.3A 2012-06-11 2012-06-21 Displacement detection device Active CN103513791B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201210211992.3A CN103513791B (en) 2012-06-21 2012-06-21 Displacement detection device
US13/858,131 US9269148B2 (en) 2012-06-11 2013-04-08 Displacement detection device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210211992.3A CN103513791B (en) 2012-06-21 2012-06-21 Displacement detection device

Publications (2)

Publication Number Publication Date
CN103513791A CN103513791A (en) 2014-01-15
CN103513791B true CN103513791B (en) 2017-08-08

Family

ID=49896651

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210211992.3A Active CN103513791B (en) 2012-06-11 2012-06-21 Displacement detection device

Country Status (1)

Country Link
CN (1) CN103513791B (en)

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200725377A (en) * 2005-12-30 2007-07-01 Pixart Imaging Inc Displacement estimation method and device
TW200741578A (en) * 2006-04-28 2007-11-01 Hsin-Chia Shen Remote gauge billing system
TWI397003B (en) * 2008-10-23 2013-05-21 Pixart Imaging Inc Image processing method for optical navigator and optical navigator using the same
TWI396116B (en) * 2009-12-18 2013-05-11 Pixart Imaging Inc Displacement detecting apparatus and method
TWI423169B (en) * 2010-04-23 2014-01-11 Pixart Imaging Inc Displacement detecting device and displacement detecting method thereof

Also Published As

Publication number Publication date
CN103513791A (en) 2014-01-15

Similar Documents

Publication Publication Date Title
KR101465835B1 (en) Correcting for ambient light in an optical touch-sensitive device
US9269148B2 (en) Displacement detection device
TWI397003B (en) Image processing method for optical navigator and optical navigator using the same
US9578222B2 (en) Optical navigation device
JP6525543B2 (en) IMAGE PROCESSING APPARATUS, IMAGE PROCESSING METHOD, AND PROGRAM
JP6467516B2 (en) Projector device with distance image acquisition device and projection method
JP2016529959A5 (en)
US9563286B2 (en) Optical navigation device and lift detection method thereof
TW201140400A (en) Scanning method for determining the touch position of touch input apparatus
US10628951B2 (en) Distance measurement system applicable to different reflecting surfaces and computer system
CN103513791B (en) Displacement detection device
US9285927B2 (en) Exposure mechanism of optical touch system and optical touch system using the same
WO2015152388A1 (en) Solid-state imaging device capable of detecting illuminance, camera using same, illumination instrument, display device
CN103793106B (en) Exposure method of optical touch system and optical touch system using the method
TW201351217A (en) Displacement detection device
CN102854997B (en) Image processing method for displacement detection device
WO2012023521A1 (en) Input display device, method of recognizing input position
CN102346571B (en) Displacement estimation method and displacement estimation device using the method
WO2015145599A1 (en) Video projection device
US20130069912A1 (en) Projector
JP6287069B2 (en) Object detection device
TWI549024B (en) Optical navigation device and failure identification method thereof
WO2022209219A1 (en) Distance measurement device, signal procesing method used by same, and distance measurement system
JP2011228856A (en) On-vehicle camera system, image processing apparatus, image processing method, and program
TWI547848B (en) Method for defining effective pixels in image sensing array

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant