[go: up one dir, main page]

CN102072718A - Distance measuring device using imaging position difference for distance measurement and correction method thereof - Google Patents

Distance measuring device using imaging position difference for distance measurement and correction method thereof Download PDF

Info

Publication number
CN102072718A
CN102072718A CN2009102467544A CN200910246754A CN102072718A CN 102072718 A CN102072718 A CN 102072718A CN 2009102467544 A CN2009102467544 A CN 2009102467544A CN 200910246754 A CN200910246754 A CN 200910246754A CN 102072718 A CN102072718 A CN 102072718A
Authority
CN
China
Prior art keywords
sensing
light
distance
signal
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.)
Granted
Application number
CN2009102467544A
Other languages
Chinese (zh)
Other versions
CN102072718B (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 CN 200910246754 priority Critical patent/CN102072718B/en
Publication of CN102072718A publication Critical patent/CN102072718A/en
Application granted granted Critical
Publication of CN102072718B publication Critical patent/CN102072718B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Measurement Of Optical Distance (AREA)
  • Length Measuring Devices By Optical Means (AREA)

Abstract

The invention relates to a distance measuring device for measuring distance by utilizing imaging position difference, which is used for measuring a distance to be measured between an object to be measured and the distance measuring device. The distance measuring device removes a part corresponding to background light and scintillation light by a light sensing signal generated by an image sensor in the distance measuring device, so as to reduce the influence of the background light and the scintillation light. The invention also relates to a method for calibrating the distance measuring device by utilizing the imaging position difference, wherein the distance measuring device can calculate a calibration parameter capable of calibrating an assembly error angle of the distance measuring device according to an imaging position of reflected light obtained by measuring a calibration object with a known distance. Therefore, the distance measuring device can correctly calculate the distance to be measured according to the correction parameter.

Description

利用成像位置差异以测距的测距装置及其校正方法 Distance measuring device and correction method for distance measurement using imaging position difference

技术领域technical field

本发明有关于一种测距装置,更明确地说,有关于一种利用成像位置差异以测距的测距装置。The present invention relates to a distance measuring device, more specifically, relates to a distance measuring device which utilizes differences in imaging positions for distance measurement.

背景技术Background technique

在公知技术中,测距装置对待测物发射侦测光,并接收由待测物反射侦测光所产生的反射光。测距装置可借由反射光的成像位置的差异以推算测距装置与待测物之间的距离。然而,测距装置在感测待测物所产生的反射光时,会同时受到背景光与闪烁现象(如因电源系统的频率而造成的日光灯闪烁)的影响,而产生量测误差,得到不正确的待测距离。除此之外,于生产过程中,当组装测距装置时,由于测距装置内部的组件的位置会因组装误差而产生偏移或旋转角度,因此测距装置在量测距离时会受到组装误差的影响,而得到不正确的待测距离,造成使用者的不便。In the known technology, the distance measuring device emits detection light from the object to be detected, and receives reflected light generated by reflecting the detection light from the object to be detected. The distance-measuring device can estimate the distance between the distance-measuring device and the object to be measured by the difference of the imaging position of the reflected light. However, when the distance measuring device senses the reflected light generated by the object to be measured, it will be affected by the background light and the flicker phenomenon (such as the flickering of the fluorescent lamp caused by the frequency of the power system) at the same time, resulting in measurement errors and obtaining different results. The correct distance to be measured. In addition, during the production process, when the distance measuring device is assembled, the position of the components inside the distance measuring device will be offset or rotated due to assembly errors, so the distance measuring device will be subject to assembly when measuring the distance. Due to the influence of the error, the incorrect distance to be measured is obtained, causing inconvenience to the user.

发明内容Contents of the invention

本发明提供一种利用成像位置差异以测距的测距装置,该测距装置具有一发光组件、一第一镜头与一影像传感器。该发光组件用来发出一侦测光射向一待测物,以使该待测物产生一反射光。该第一镜头用来汇聚一背景光或该反射光。该影像传感器用来感测该第一镜头所汇聚的光的能量,以产生M个光感测信号。该测距装置进一步包含一发光/感测控制电路,以及一距离计算电路。该发光/感测控制电路,用于一距离感测阶段时,控制该发光组件发光,且同时控制该影像传感器感测该第一镜头所汇聚的光的能量,以产生M个第一光感测信号,于一噪声感测阶段内控制该发光组件不发光,且同时控制该影像传感器感测该第一镜头所汇聚的光的能量,以产生M个第二光感测信号。M代表正整数。该距离计算电路,用来根据该M个第一光感测信号与该M个第二光感测信号,以判断该反射光于该影像传感器上的一成像位置,并根据该成像位置、该第一镜头的一焦距、该发光组件与该影像传感器之间的一第一已知距离,以计算该测距装置与该待测物之间的一待测距离。The invention provides a distance measuring device which utilizes differences in imaging positions to measure distance. The distance measuring device has a light-emitting component, a first lens and an image sensor. The light-emitting component is used to emit a detection light to an object under test, so that the object under test generates a reflected light. The first lens is used to gather a background light or the reflected light. The image sensor is used for sensing the energy of the light collected by the first lens to generate M light sensing signals. The distance measuring device further includes a lighting/sensing control circuit and a distance calculation circuit. The light emitting/sensing control circuit is used in a distance sensing stage to control the light emitting component to emit light, and at the same time control the image sensor to sense the energy of the light collected by the first lens to generate M first light sensors In a noise sensing stage, the light-emitting component is controlled not to emit light, and at the same time, the image sensor is controlled to sense the energy of the light collected by the first lens, so as to generate M second light-sensing signals. M represents a positive integer. The distance calculation circuit is used to determine an imaging position of the reflected light on the image sensor according to the M first light sensing signals and the M second light sensing signals, and according to the imaging position, the A focal length of the first lens and a first known distance between the light-emitting component and the image sensor are used to calculate a distance to be measured between the distance measuring device and the object to be measured.

本发明另提供一种利用成像位置差异以测距的测距装置。该测距装置具有一发光组件、一第一镜头与一影像传感器。该发光组件用来发出一侦测光射向一待测物,以使该待测物产生一反射光。该第一镜头用来汇聚一背景光或该反射光。该影像传感器具有M个感测单元。该M个感测单元用来感测该第一镜头所汇聚的光的能量,以产生M个光感测信号。该测距装置的特征在于包含一发光/感测控制电路,以及一距离计算电路。该发光/感测控制电路用于一距离感测阶段时,控制该发光组件发光,且同时控制该影像传感器感测该第一镜头所汇聚的光的能量,以产生M个第一光感测信号,于一噪声感测阶段内控制该发光组件不发光,且同时控制该影像传感器感测该第一镜头所汇聚的光的能量,以产生M个第二光感测信号。M代表正整数。该距离计算电路用来根据该M个第一光感测信号与该M个第二光感测信号,以判断该反射光于该影像传感器上的一成像位置,并根据该成像位置、该第一镜头的一焦距、该发光组件与该影像传感器之间的一第一已知距离,以计算该测距装置与该待测物之间的一待测距离。该距离计算电路包含复数个储存单元。该复数个储存单元分别用来储存该M个第一光感测信号与该M个第二光感测信号。该发光/感测控制电路借由产生一发光脉冲信号,以控制该发光组件发出该侦测光射向该待测物,来使该待测物据以产生该反射光。该发光/感测控制电路借由产生一快门脉冲信号以控制该影像传感器的该M个感测单元根据于该快门脉冲信号,分别感测该第一镜头所汇聚的光的能量,以据以产生该M个光感测信号。该发光/感测控制电路借由产生一读取信号,以使该影像传感器的该M个感测单元输出该M个光感测信号至该距离计算电路。该发光/感测控制电路借由产生一阶段信号以控制该距离计算电路接收该M个第一光感测信号与该M个第二光感测信号,以判断该反射光于该影像传感器上的该成像位置,并根据该成像位置、该第一镜头的该焦距、该发光组件与该影像传感器之间的该第一已知距离,以计算该测距装置与该待测物之间的该待测距离。当该阶段信号表示总和时,该距离计算电路将所接收的该M个第一光感测信号标记为M个正光感测信号。当该阶段信号表示噪声时,该距离计算电路将所接收的该M个第二光感测信号标记为M个负光感测信号。当该阶段信号表示计算距离时,该距离计算电路将该复数个储存单元所储存的正光感测信号与负光感测信号相减,并选出相减之后所储存的值最大的储存单元,以据以判断该反射光于该影像传感器上的该成像位置,并根据该成像位置、该第一镜头的该焦距、该发光组件与该影像传感器之间的该第一已知距离,以计算该测距装置与该待测物之间的该待测距离。The present invention further provides a ranging device for measuring distance by utilizing the difference of imaging positions. The distance measuring device has a light emitting component, a first lens and an image sensor. The light-emitting component is used to emit a detection light to an object under test, so that the object under test generates a reflected light. The first lens is used to gather a background light or the reflected light. The image sensor has M sensing units. The M sensing units are used to sense the energy of the light collected by the first lens to generate M light sensing signals. The feature of the distance measuring device is that it includes a lighting/sensing control circuit and a distance calculation circuit. When the light emitting/sensing control circuit is used in a distance sensing stage, it controls the light emitting component to emit light, and at the same time controls the image sensor to sense the energy of the light collected by the first lens, so as to generate M first light sensing The signal controls the light-emitting component not to emit light in a noise sensing phase, and at the same time controls the image sensor to sense the energy of the light collected by the first lens, so as to generate M second light-sensing signals. M represents a positive integer. The distance calculation circuit is used to determine an imaging position of the reflected light on the image sensor according to the M first light sensing signals and the M second light sensing signals, and according to the imaging position, the first light sensing signal A focal length of a lens and a first known distance between the light-emitting component and the image sensor are used to calculate a distance to be measured between the distance measuring device and the object to be measured. The distance calculation circuit includes a plurality of storage units. The plurality of storage units are respectively used to store the M first photo-sensing signals and the M second photo-sensing signals. The light-emitting/sensing control circuit generates a light-emitting pulse signal to control the light-emitting component to emit the detection light to the object under test, so that the object under test can generate the reflected light accordingly. The light emitting/sensing control circuit generates a shutter pulse signal to control the M sensing units of the image sensor to respectively sense the energy of the light collected by the first lens according to the shutter pulse signal, so as to The M light sensing signals are generated. The light emitting/sensing control circuit generates a reading signal, so that the M sensing units of the image sensor output the M light sensing signals to the distance calculation circuit. The light emitting/sensing control circuit controls the distance calculation circuit to receive the M first light sensing signals and the M second light sensing signals by generating a stage signal to determine whether the reflected light is on the image sensor The imaging position, and according to the imaging position, the focal length of the first lens, and the first known distance between the light-emitting component and the image sensor, to calculate the distance between the distance measuring device and the object under test The distance to be measured. When the phase signal represents a sum, the distance calculation circuit marks the received M first light sensing signals as M positive light sensing signals. When the phase signal represents noise, the distance calculation circuit marks the received M second light-sensing signals as M negative light-sensing signals. When the stage signal indicates the calculated distance, the distance calculation circuit subtracts the positive light sensing signal and the negative light sensing signal stored in the plurality of storage units, and selects the storage unit with the largest stored value after the subtraction, to determine the imaging position of the reflected light on the image sensor, and according to the imaging position, the focal length of the first lens, and the first known distance between the light-emitting component and the image sensor, to calculate The distance to be measured between the distance measuring device and the object to be measured.

本发明另提供一种用来校正利用成像位置差异以测距的一测距装置的校正方法。该测距装置的一发光组件发射一侦测光至一待测物,并反射回该测距装置的一影像传感器,以得到一第一成像位置,该测距装置可根据该第一成像位置、该测距装置的一第一镜头的一焦距、该发光组件与该影像传感器之间的一第一已知距离,以计算该测距装置与该待测物之间的一待测距离。该校正方法包含该测距装置的该发光组件发出该侦测光至一校正物,并反射回该测距装置的该影像传感器,以得出一第二成像位置、根据一已知距离、该第二成像位置,以计算出用来校正该测距装置的一组装误差角度的一校正参数,以及该测距装置根据该校正参数以计算出经校正后的该待测距离。该测距装置与该校正物之间的距离为该已知距离。The present invention further provides a calibration method for calibrating a distance-measuring device using imaging position differences for distance-measuring. A light-emitting component of the distance measuring device emits a detection light to an object to be measured, and reflects back to an image sensor of the distance measuring device to obtain a first imaging position, and the distance measuring device can use the first imaging position , a focal length of a first lens of the distance-measuring device, and a first known distance between the light-emitting component and the image sensor, so as to calculate a distance to be measured between the distance-measuring device and the object to be measured. The calibration method includes that the light-emitting component of the distance measuring device emits the detection light to a calibration object, and reflects back to the image sensor of the distance measuring device to obtain a second imaging position, according to a known distance, the The second imaging position is used to calculate a correction parameter for correcting an assembly error angle of the distance measuring device, and the distance measuring device calculates the corrected distance to be measured according to the correction parameter. The distance between the ranging device and the calibration object is the known distance.

附图说明Description of drawings

图1与图2为说明本发明的利用成像位置差异以测距的测距装置的结构及工作原理的示意图。FIG. 1 and FIG. 2 are schematic diagrams illustrating the structure and working principle of a distance measuring device utilizing differences in imaging positions to measure distance according to the present invention.

图3为说明测距装置减少闪烁现象的工作原理的示意图。FIG. 3 is a schematic diagram illustrating the working principle of the distance measuring device for reducing the flicker phenomenon.

图4为说明校正发光组件所发出的侦测光的发光误差角度的方法的示意图。FIG. 4 is a schematic diagram illustrating a method for correcting a light-emitting error angle of detection light emitted by a light-emitting component.

图5与图6为说明因组装误差而使影像传感器旋转感测误差角度的校正方法的示意图。FIG. 5 and FIG. 6 are schematic diagrams illustrating a method for correcting the rotation sensing error angle of the image sensor due to assembly errors.

图7为说明本发明的影像传感器的结构的第一实施例的示意图。FIG. 7 is a schematic diagram illustrating a first embodiment of the structure of the image sensor of the present invention.

图8为说明利用图7的影像传感器以侦测反射光的成像位置的工作原理的示意图。FIG. 8 is a schematic diagram illustrating the working principle of using the image sensor in FIG. 7 to detect the imaging position of reflected light.

图9为说明本发明的影像传感器的结构的另一实施例的示意图。FIG. 9 is a schematic diagram illustrating another embodiment of the structure of the image sensor of the present invention.

图10为说明利用图9的影像传感器以侦测反射光的成像位置的工作原理的示意图。FIG. 10 is a schematic diagram illustrating the working principle of detecting the imaging position of reflected light by using the image sensor of FIG. 9 .

图11为说明本发明的影像传感器的结构的另一实施例的示意图。FIG. 11 is a schematic diagram illustrating another embodiment of the structure of the image sensor of the present invention.

其中,附图标记说明如下:Wherein, the reference signs are explained as follows:

100                   测距装置100 Distance measuring device

110                   发光/感测控制电路110 Light/sensing control circuit

120                   发光组件120 Light-emitting components

130、700、900、1100   影像传感器130, 700, 900, 1100 image sensor

140                   距离计算电路140 Distance calculation circuit

150                   参数计算电路150 Parameter Calculation Circuit

B1~BM                感测背景光的能量B 1 ~B M Sensing the energy of background light

CS1~CSM、CS11~CSNK、感测单元CS 1 ~CS M , CS 11 ~CS NK , sensing unit

CSNQ CS NQ

LEN1、LEN2            镜头LEN 1 , LEN 2 lenses

CO1、CO2              校正物CO 1 , CO 2 calibrator

L、DC1、DC2           已知距离Known distance of L, D C1 , D C2

DCS、DCSI、DCSJ       成像位置D CS , D CSI , D CSJ imaging positions

DCSX                  投影距离D CSX projection distance

DF                    焦距D F focal length

DM                    待测距离D M distance to be measured

LB                    背景光L B background light

LID                   侦测光L ID detection light

LF                    直线L F straight line

LRD                   反射光L RD reflected light

MO                     待测物MO Object to be tested

OF                     焦点O F focus

P1、P2                 功率P 1 , P 2 power

RK                     感测反射光的能量R K senses the energy of reflected light

SAB                    参数信号S AB parameter signal

SALS、SALS1~SALS2N    累计光感测信号S ALS , S ALS1 ~ S ALS2N accumulative light sensing signal

SLD                    发光脉冲信号S LD light pulse signal

SLS                    光感测信号S LS light sensing signal

SP                     阶段信号S P phase signal

SRE                    读取信号S RE read signal

SST                    快门脉冲信号S ST shutter pulse signal

T1+、T2+               距离感测阶段T 1+ , T 2+ distance sensing stage

T1-、T2-               噪声感测阶段T 1- , T 2- noise sensing stage

TC、TR                 脉冲宽度T C , T R pulse width

TF                     交流电周期T F AC cycle

θ1、θ2、θ1I、θ2I、 角度θ 1 , θ 2 , θ 1I , θ 2I , angle

θ1J、θ2J θ 1J , θ 2J

θLD                   发光误差角度θ LD luminous error angle

θCS1、θCS2           感测误差角度θ CS1 , θ CS2 sensing error angle

具体实施方式Detailed ways

本发明提供一种利用成像位置差异以测距的测距装置,借由将测距装置中的影像传感器所感测的光感测信号,移除掉背景光与闪烁光的部分,来降低背景光与闪烁现象的影响。除此之外,本发明另提供一种校正方法,来校正测距装置的组装误差,以提高测距的精确度。The present invention provides a distance-measuring device that utilizes differences in imaging positions to measure distances. The background light is reduced by removing the background light and flickering light from the light sensing signal sensed by the image sensor in the distance-measuring device. Effect with flicker phenomenon. In addition, the present invention further provides a calibration method for correcting the assembly error of the distance measuring device, so as to improve the accuracy of distance measurement.

请参考图1与图2。图1与图2为说明本发明的利用成像位置差异以测距的测距装置100的结构及工作原理的示意图。测距装置110用来量测待测物MO与测距装置100之间的待测距离DM。测距装置100包含一发光/感测控制电路110、一发光组件120、一影像传感器130、一距离计算电路140、一参数计算电路150,以及一镜头LEN1。测距装置100的内部各组件的耦接关系如图1所示,故不再赘述。Please refer to Figure 1 and Figure 2. FIG. 1 and FIG. 2 are schematic diagrams illustrating the structure and working principle of a distance measuring device 100 for distance measurement using differences in imaging positions according to the present invention. The distance measuring device 110 is used to measure the distance D M between the object MO and the distance measuring device 100 . The ranging device 100 includes a lighting/sensing control circuit 110 , a lighting component 120 , an image sensor 130 , a distance calculation circuit 140 , a parameter calculation circuit 150 , and a lens LEN 1 . The coupling relationship of the internal components of the distance measuring device 100 is shown in FIG. 1 , so details are not repeated here.

发光/感测控制电路110用来产生发光脉冲信号SLD、快门脉冲信号SST、阶段信号SP、读取信号SRE,以及已知距离信号SD。测距装置100于测距时可分为两阶段:1.距离感测阶段;2.噪声感测阶段。当测距装置100于距离感测阶段时,发光/感测控制电路110同时产生表示「发光」的发光脉冲信号SLD与表示「开启」的快门脉冲信号SST,且二者的脉冲宽度皆为TC;然后发光/感测控制电路110再同时产生表示「读取」的读取信号SRE与表示「总和」的阶段信号SP,且二者的脉冲宽度皆为TR。当测距装置100于噪声感测阶段时,发光/感测控制电路110产生表示「开启」的快门脉冲信号SST且同时发光脉冲信号SLD表示「不发光」,且快门脉冲信号的脉冲宽度为TC;然后发光/感测控制电路110再同时产生表示「读取」的读取信号SRE与表示「噪声」的阶段信号SP,且二者的脉冲宽度皆为TRThe lighting/sensing control circuit 110 is used to generate a lighting pulse signal S LD , a shutter pulse signal S ST , a phase signal S P , a reading signal S RE , and a known distance signal S D . The distance measuring device 100 can be divided into two stages during distance measurement: 1. Distance sensing stage; 2. Noise sensing stage. When the distance measuring device 100 is in the distance sensing stage, the lighting/sensing control circuit 110 simultaneously generates the lighting pulse signal S LD representing “lighting” and the shutter pulse signal S ST representing “opening”, and the pulse widths of both are the same. is T C ; then the light emitting/sensing control circuit 110 simultaneously generates a read signal S RE representing “read” and a phase signal S P representing “sum”, and both pulse widths are T R . When the distance measuring device 100 is in the noise sensing stage, the light emitting/sensing control circuit 110 generates a shutter pulse signal S ST indicating "on" and at the same time the light emitting pulse signal S LD represents "no light", and the pulse width of the shutter pulse signal is T C ; then the light emitting/sensing control circuit 110 simultaneously generates the read signal S RE representing “reading” and the phase signal S P representing “noise”, and the pulse widths of both are T R .

发光组件120,用来根据发光脉冲信号SLD,以发出侦测光LID射向待测物MO,以使待测物MO产生反射光LRD。更明确地说,当发光脉冲信号SLD表示「发光」时,发光组件120发出侦测光LID射向待测物MO;当发光脉冲信号SLD表示「不发光」时,发光组件120不发出侦测光LID。此外,发光组件120可为发光二极管(Light-Emitting Diode,LED)或雷射二极管(laser diode)。当发光组件120为发光二极管时,测距装置100可选择性地包含一镜头LEN2,以用来汇聚侦测光LID以射向待测物MO。The light-emitting component 120 is used for emitting detection light L ID to the object under test MO according to the light-emitting pulse signal S LD , so that the object under test MO generates reflected light L RD . More specifically, when the light-emitting pulse signal S LD indicates "light", the light-emitting component 120 emits detection light L ID to the object MO; when the light-emitting pulse signal S LD indicates "no light", the light-emitting component 120 A detection light L ID is emitted. In addition, the light-emitting component 120 can be a light-emitting diode (Light-Emitting Diode, LED) or a laser diode (laser diode). When the light-emitting element 120 is a light-emitting diode, the distance measuring device 100 may optionally include a lens LEN 2 for converging the detection light L ID to irradiate the object under test MO.

镜头LEN1用来汇聚背景光LB或反射光LRD至影像传感器130。影像传感器130包含M个并排的感测单元CS1~CSM,且每个感测单元的宽度皆等于画素宽度WPIX,意即M个并排的感测单元CS1~CSM的总宽度为M×WPIX。感测单元CS1~CSM用来根据快门脉冲信号SST,以感测镜头LEN1所汇聚的光的能量。更明确地说,当快门脉冲信号SST表示「开启」时,感测单元CS1~CSM感测镜头LEN1所汇聚的光(如背景光LB或反射光LRD)的能量以据以产生光感测信号;当快门脉冲信号SST表示「关闭」时,感测单元CS1~CSM不感测镜头LEN1所汇聚的光的能量。举例来说,当快门脉冲信号SST表示「开启」时,感测单元CS1感测镜头LEN1所汇聚的光的能量并据以产生光感测信号SLS1;感测单元CS2感测镜头LEN1所汇聚的光的能量并据以产生光感测信号SLS2;依此类推,感测单元CSM感测镜头LEN1所汇聚的光的能量并据以产生光感测信号SLSM。此外,当读取信号SRE表示「读取」时,感测单元CS1~CSM分别输出光感测信号SLS1~SLSMThe lens LEN 1 is used to gather the background light LB or the reflected light L RD to the image sensor 130 . The image sensor 130 includes M side-by-side sensing units CS 1 -CS M , and the width of each sensing unit is equal to the pixel width W PIX , which means the total width of the M side-by-side sensing units CS 1 -CS M is M×W PIX . The sensing units CS 1 -CS M are used for sensing the energy of the light gathered by the lens LEN 1 according to the shutter pulse signal S ST . More specifically, when the shutter pulse signal S ST indicates "on", the sensing units CS 1 -CS M sense the energy of the light gathered by the lens LEN 1 (such as the background light LB or the reflected light L RD ) according to the energy. to generate light sensing signals; when the shutter pulse signal S ST indicates “closed”, the sensing units CS 1 -CS M do not sense the energy of the light collected by the lens LEN 1 . For example, when the shutter pulse signal S ST indicates "on", the sensing unit CS 1 senses the energy of light collected by the lens LEN 1 and generates a light sensing signal S LS1 accordingly; the sensing unit CS 2 senses The energy of the light collected by the lens LEN 1 is used to generate a light sensing signal S LS2 ; and so on, the sensing unit CS M senses the energy of the light collected by the lens LEN 1 to generate a light sensing signal S LSM . In addition, when the reading signal S RE indicates “reading”, the sensing units CS 1 ˜CS M respectively output light sensing signals S LS1 ˜S LSM .

距离计算电路140包含复数个储存单元,分别用来储存感测单元CS1~CSM所输出的光感测信号SLS1~SLSM,且根据阶段信号SP,设定所接收的光感测信号的属性。在本实施例中,以距离计算电路140包含M个储存单元M1~MM作举例说明。当阶段信号SP表示「总和」时,储存单元M1~MM将所接收的光感测信号SLS1~SLSM设定为正,意即所接收的光感测信号SLS1~SLSM根据阶段信号SP表示「总和」而被标记为正光感测信号SLS1+~SLSM+;当阶段信号SP表示「噪声」时,储存单元M1~MM将所接收的光感测信号SLS1~SLSM设定为负,意即所接收的光感测信号SLS1~SLSM根据阶段信号SP表示「噪声」而被标记为负光感测信号SLS1-~SLSM-。距离计算电路140便可根据正光感测信号SLS1+~SLSM+与负光感测信号SLS1-~SLSM-,计算出待测距离DM。以下将说明距离计算电路140计算待测距离DM的工作原理。The distance calculation circuit 140 includes a plurality of storage units, which are respectively used to store the light sensing signals S LS1 ˜S LSM outputted by the sensing units CS 1 ˜CS M , and set the received light sensing signals according to the stage signal SP . properties of the signal. In this embodiment, the distance calculation circuit 140 includes M storage units M 1 -M M as an example for illustration. When the phase signal S P indicates “sum”, the storage units M 1 ˜M M set the received light sensing signals S LS1 ˜S LSM as positive, which means that the received light sensing signals S LS1 ˜S LSM According to the phase signal S P representing "sum", it is marked as positive light sensing signals S LS1+ ~ S LSM+ ; when the phase signal S P represents "noise", the storage units M 1 ~ M M store the received light sensing signals S LS1 ˜S LSM is set to be negative, which means that the received light sensing signals S LS1 ˜S LSM are marked as negative light sensing signals S LS1− ˜S LSM- according to the phase signal SP representing “noise”. The distance calculation circuit 140 can calculate the distance to be measured D M according to the positive light sensing signals S LS1+ ˜S LSM+ and the negative light sensing signals S LS1− ˜S LSM- . The working principle of calculating the distance to be measured DM by the distance calculation circuit 140 will be described below.

如图2左半部所示,于距离感测阶段内,发光/感测控制电路110会产生代表「发光」的发光脉冲信号SLD,而使得发光组件120发出侦测光LID射向待测物MO,以使待测物MO产生反射光LRD。此时,发光/感测控制电路110产生代表「开启」的快门脉冲信号SST,而使得感测单元CS1~CSM感测反射光LRD与背景光LB的能量,以分别产生光感测信号SLS1~SLSM。然后发光/感测控制电路110会输出代表「读取」的读取信号SRE,以使影像传感器130输出光感测信号SLS1~SLSM至距离计算电路140,且发光/感测控制电路110会产生代表「总和」的阶段信号SP以指示距离计算电路140此时所接收的光感测信号为距离感测阶段内的光感测信号,意即为正光感测信号SLS1+~SLSM+。设于距离感测阶段内,反射光LRD主要汇聚成像于感测单元CSK,则此时距离计算电路140所接收的正光感测信号SLS1+~SLSM+的值如图2右上半部所示,感测单元CSK同时感测到背景光LB与反射光LRD(意即待测物MO成像于感测单元CSK上)。因此,感测信号SLSK+等于感测单元CSK感测背景光LB所累积的能量BK加上感测单元CSK感测反射光LRD所累积的能量RK,而其它感测单元则只接收到背景光LB。因此,感测信号SLS1+等于感测单元CS1感测背景光LB所累积的能量B1;感测信号SLS21+等于感测单元CS2感测背景光LB所累积的能量B2;依此类推,感测信号SLSM+等于感测单元CSM感测背景光LB所累积的能量BMAs shown in the left half of FIG. 2 , during the distance sensing phase, the lighting/sensing control circuit 110 will generate a lighting pulse signal S LD representing “lighting”, so that the lighting component 120 emits a detection light L ID to be emitted to the waiting area. The analyte MO, so that the analyte MO generates reflected light L RD . At this time, the light emitting/sensing control circuit 110 generates a shutter pulse signal S ST representing “on”, so that the sensing units CS 1 -CS M sense the energy of the reflected light L RD and the background light LB to generate light respectively. Sensing signals S LS1 ˜S LSM . Then the light emitting/sensing control circuit 110 will output the read signal S RE representing "reading", so that the image sensor 130 outputs light sensing signals S LS1 ˜S LSM to the distance calculation circuit 140, and the light emitting/sensing control circuit 110 will generate a stage signal S P representing "sum" to indicate that the light sensing signal received by the distance calculation circuit 140 at this time is the light sensing signal in the distance sensing stage, which means positive light sensing signal S LS1+ ˜S LSM+ . Assuming that in the distance sensing stage, the reflected light L RD is mainly focused and imaged on the sensing unit CS K , then the values of the positive light sensing signals S LS1+ -S LSM+ received by the distance calculation circuit 140 are shown in the upper right half of FIG. 2 As shown, the sensing unit CS K simultaneously senses the background light LB and the reflected light L RD (that is, the object MO is imaged on the sensing unit CS K ). Therefore, the sensing signal S LSK+ is equal to the energy B K accumulated by the sensing unit CS K sensing the background light L B plus the energy R K accumulated by the sensing unit CS K sensing the reflected light L RD , while the other sensing units Then only the background light L B is received. Therefore, the sensing signal S LS1+ is equal to the energy B 1 accumulated by the sensing unit CS 1 sensing the background light LB ; the sensing signal S LS21+ is equal to the energy B 2 accumulated by the sensing unit CS 2 sensing the background light LB ; By analogy, the sensing signal S LSM+ is equal to the energy B M accumulated by the sensing unit CS M sensing the ambient light L B .

如图2左半部所示,于噪声感测阶段内,发光/感测控制电路110会产生代表「开启」的快门脉冲信号SST,而使得感测单元CS1~CSM感测镜头LEN1所汇聚的光,以产生光感测信号SLS1~SLSM。然而,此时发光/感测控制电路110会产生代表「不发光」的发光脉冲信号SLD,因此发光组件120不会发出侦测光LID射向待测物MO,且待测物MO也不会产生反射光LRD。然后发光/感测控制电路110会输出代表「读取」的读取信号SRE,以使影像传感器130输出光感测信号SLS1~SLSM至距离计算电路140,且发光/感测控制电路110会产生代表「噪声」的阶段信号SP以指示距离计算电路140此时所接收的光感测信号为噪声感测阶段内的光感测信号,意即为负光感测信号SLS1-~SLSM-。此时距离计算电路140所接收的光感测信号SLS1-~SLSM-的值如图2右下半部所示。由于快门脉冲信号SST于距离感测阶段与噪声感测阶段的脉冲宽度相同(皆为时间长度TC)。因此感测单元CS1~CSM在距离感测阶段与噪声感测阶段所产生的光感测信号SLS1~SLSM对应于背景光LB累积的部分会相等。换句话说,正光感测信号SLS1+~SLSM+中的背景光累积的能量会等于负光感测信号SLS1-~SLSM-中的背景光累积的能量(B1~BM)。As shown in the left half of FIG. 2 , during the noise sensing phase, the light emitting/sensing control circuit 110 will generate a shutter pulse signal S ST representing “on”, so that the sensing units CS 1 -CS M sense the lens LEN 1 to generate light sensing signals S LS1 ˜S LSM . However, at this time, the light emitting/sensing control circuit 110 will generate a light emitting pulse signal S LD representing "no light", so the light emitting element 120 will not emit the detection light L ID to the object MO, and the object MO will also emit light. Reflected light L RD is not generated. Then the light emitting/sensing control circuit 110 will output the read signal S RE representing "reading", so that the image sensor 130 outputs light sensing signals S LS1 ˜S LSM to the distance calculation circuit 140, and the light emitting/sensing control circuit 110 will generate a phase signal SP representing "noise" to indicate that the light sensing signal received by the distance calculation circuit 140 at this time is the light sensing signal in the noise sensing phase, which means the negative light sensing signal S LS1- ~S LSM- . At this time, the values of the light sensing signals S LS1 -˜S LSM- received by the distance calculation circuit 140 are shown in the lower right half of FIG. 2 . Since the pulse width of the shutter pulse signal S ST in the distance sensing phase and the noise sensing phase are the same (both are time lengths T C ). Therefore, the light sensing signals S LS1 ˜S LSM generated by the sensing units CS 1 ˜CS M in the distance sensing phase and the noise sensing phase correspond to the accumulated portion of the background light LB to be equal. In other words, the accumulated energy of the background light in the positive light sensing signals S LS1+ ˜S LSM+ is equal to the accumulated energy (B 1 ˜BM ) of the background light in the negative light sensing signals S LS1− ˜S LSM- .

在经过距离感测阶段与噪声感测阶段后,发光/感测控制电路110会产生代表「计算距离」的阶段信号SP。此时距离计算电路140会将储存单元中的正光感测信号与负光感测信号相减,并选出相减之后所储存的值最大的储存单元并据以判断反射光LRD于影像传感器130上的成像位置。也就是说,距离计算电路140的储存单元M1~MM所储存的值分别等于正光感测信号SLS1+~SLSM+的值减去负光感测信号SLS1-~SLSM-的值。更明确地说,储存单元M1储存正光感测信号SLS1+与负光感测信号SLS1-,由于正光感测信号SLS1+等于B1且负光感测信号SLS1-等于B1,因此储存单元M1经过相减之后所储存的值为零;储存单元M2储存正光感测信号SLS2+与负光感测信号SLS2-,由于正光感测信号SLS2+等于B2且负光感测信号SLS2-等于B2,因此储存单元M2经过相减之后所储存的值为零;依此类推,储存单元MK储存正光感测信号SLSK+与负光感测信号SLSK-,由于正光感测信号SLS2+等于(BK+RK)且负光感测信号SLS2-等于BK,因此储存单元MK余香减之后所储存的值为RK;储存单元MM储存正光感测信号SLSM+与负光感测信号SLSM-,由于正光感测信号SLSM+等于BM且负光感测信号SLSM-等于BM,因此储存单元MM相减之后所储存的值为零。换句话说,在储存单元M1~MM之中,储存单元MK的值等于RK,而其它储存单元的值皆等于零,因此距离计算电路140可据以选择储存单元MK,意即储存单元MK所储存的光感测信号具有对应于反射光LRD的能量。由于储存单元MK为储存感测单元CSK所产生的光感测信号,因此距离计算电路140可判断出待测物MO所产生的反射光LRD主要汇聚成像于感测单元CSK。如此,距离计算电路140可更进一步地根据待测物MO所产生的反射光LRD主要汇聚成像于感测单元CSK,而由下式推算出图1中反射光LRD的成像位置DCSAfter the distance sensing phase and the noise sensing phase, the lighting/sensing control circuit 110 will generate a phase signal S P representing "calculated distance". At this time, the distance calculation circuit 140 will subtract the positive light sensing signal and the negative light sensing signal in the storage unit, and select the storage unit with the largest stored value after the subtraction, and judge the reflected light L RD on the image sensor accordingly. 130 on the imaging position. That is to say, the values stored in the storage units M 1 ˜M M of the distance calculation circuit 140 are respectively equal to the values of the positive light sensing signals S LS1+ ˜S LSM+ minus the values of the negative light sensing signals S LS1− ˜S LSM- . More specifically, the storage unit M 1 stores the positive light-sensing signal S LS1+ and the negative light-sensing signal S LS1- , since the positive light-sensing signal S LS1+ is equal to B 1 and the negative light-sensing signal S LS1- is equal to B 1 , therefore The stored value of the storage unit M 1 is zero after subtraction; the storage unit M 2 stores the positive light sensing signal S LS2+ and the negative light sensing signal S LS2- , since the positive light sensing signal S LS2+ is equal to B 2 and the negative light sensing signal The detection signal S LS2- is equal to B 2 , so the value stored in the storage unit M 2 is zero after subtraction; and so on, the storage unit M K stores the positive light sensing signal S LSK+ and the negative light sensing signal S LSK- , Since the positive light-sensing signal S LS2+ is equal to (B K +R K ) and the negative light-sensing signal S LS2- is equal to B K , the value stored in the storage unit M K after fragrance subtraction is R K ; the storage unit M M stores The positive light-sensing signal S LSM+ and the negative light-sensing signal S LSM- , since the positive light-sensing signal S LSM+ is equal to BM and the negative light-sensing signal S LSM- is equal to BM , the stored value of the storage unit M M is subtracted The value is zero. In other words, among the storage units M 1 ˜M M , the value of the storage unit M K is equal to R K , while the values of other storage units are all equal to zero, so the distance calculation circuit 140 can select the storage unit M K accordingly, that is The light sensing signal stored in the storage unit M K has energy corresponding to the reflected light L RD . Since the storage unit M K stores the light sensing signal generated by the sensing unit CS K , the distance calculation circuit 140 can determine that the reflected light L RD generated by the object MO is mainly focused and imaged on the sensing unit C SK . In this way, the distance calculation circuit 140 can further calculate the imaging position D CS of the reflected light L RD in FIG. :

DCS=K×WPIX…(1);D CS = K×W PIX . . . (1);

此外,由于在图1中镜头LEN1的焦点OF1与感测单元CS1之间所形成的直线LF平行于侦测光LID,因此侦测光LID及反射光LRD的夹角θ1与直线LF及反射光LRD的夹角θ2相等。换句话说tanθ1与tanθ2的关系可以下式表示:In addition, since the straight line LF formed between the focal point OF1 of the lens LEN 1 and the sensing unit CS 1 in FIG. 1 is parallel to the detection light L ID , the included angle between the detection light L ID and the reflected light L RD θ 1 is equal to the angle θ 2 between the straight line LF and the reflected light L RD . In other words, the relationship between tanθ 1 and tanθ 2 can be expressed as follows:

tanθ1=L/DM=tanθ2=DCS/DF…(2);tanθ 1 = L/D M = tanθ 2 = D CS /D F ... (2);

其中L代表发光组件120与影像传感器130(侦测光LID与直线LF)之间的已知距离、DCS代表反射光LRD的成像位置、DF代表镜头LEN1的焦距。根据式(2),待测距离DM可以下式表示:Wherein L represents the known distance between the light-emitting element 120 and the image sensor 130 (the detection light L ID and the straight line LF ), DCS represents the imaging position of the reflected light L RD , and DF represents the focal length of the lens LEN 1 . According to formula (2), the distance to be measured D M can be expressed by the following formula:

DM=(DF×L)/DCS…(3);D M = (D F × L)/D CS ... (3);

因此,距离计算电路140可借由式(1)先计算出成像位置DCS,再借由式(3),根据已知距离L、焦距DF,以计算出待测距离DMTherefore, the distance calculation circuit 140 can first calculate the imaging position D CS by the formula (1), and then calculate the distance to be measured D M according to the known distance L and the focal length DF by the formula (3).

综上所述,在测距装置100之中,于距离感测阶段内,发光/感测控制电路110控制发光组件120发出侦测光LID射至待测物MO,且将感测单元CS1~CSM感测镜头LEN1所汇聚的光(如反射光LRD与背景光LB)而据以产生的正光感测信号SLS1+~SLSM+储存于储存单元M1~MM。于噪声感测阶段内,发光/感测控制电路110控制发光组件120不发出侦测光LID,且将感测单元CS1~CSM感测镜头LEN1所汇聚的光(如背景光LB)而据以产生的负光感测信号SLS1+~SLSM+储存于储存单元M1~MM。此时,储存单元M1~MM的值会等于正光感测信号SLS1+~SLSM+减去负光感测信号SLS1-~SLSM-。因此,对应于反射光LRD所汇聚的感测单元CSK的储存单元MK的值会大于其它储存单元的值。如此,距离计算电路140可判断出反射光LRD所汇聚的感测单元CSK,并据以计算出反测光LRD的成像位置DCS。因此,距离计算电路140可根据成像位置DCS、镜头LEN1的焦距DF、已知距离L以计算出待测距离DMTo sum up, in the distance measuring device 100, during the distance sensing stage, the light emitting/sensing control circuit 110 controls the light emitting component 120 to emit the detection light L ID to the object under test MO, and the sensing unit CS 1 ˜CS M senses the light collected by the lens LEN 1 (such as the reflected light L RD and the background light LB ) to generate positive light sensing signals S LS1+ ˜S LSM+ and store them in the storage units M 1 ˜M M . During the noise sensing phase, the light emitting/sensing control circuit 110 controls the light emitting component 120 not to emit the detection light L ID , and senses the light collected by the lens LEN 1 (such as the background light L B ) The negative light sensing signals S LS1+ ˜S LSM+ generated accordingly are stored in the storage units M 1 ˜M M . At this time, the values of the storage units M 1 -MM are equal to the positive light sensing signals S LS1+ -S LSM+ minus the negative light sensing signals S LS1- -S LSM- . Therefore, the value of the storage unit M K corresponding to the sensing unit CS K where the reflected light L RD converges is greater than the values of other storage units. In this way, the distance calculation circuit 140 can determine the sensing unit CS K where the reflected light L RD converges, and calculate the imaging position D CS of the reflected light L RD accordingly. Therefore, the distance calculation circuit 140 can calculate the distance to be measured DM according to the imaging position D CS , the focal length DF of the lens LEN 1 , and the known distance L.

此外,在测距装置100中,距离感测阶段与噪声感测阶段可反复进行多次(如Y次),以使储存单元M1~MM可储存对应于Y个距离感测阶段的正光感测信号,与对应于Y个噪声感测阶段的负光感测信号。由于每个距离感测阶段的正光感测信号对应于背景光的能量的部分,会被对应的噪声感测阶段的负光感测信号所抵销,因此除了对应于反射光LRD所汇聚成像的感测单元CSK的储存单元MK的值会等于(Y×RK)之外,其它储存单元的值皆等于零。如此一来,即使因反射光LRD的能量较弱而使感测单元CSK所据以累积的能量RK较小,测距装置100仍可借由进行多次的距离感测阶段与噪声感测阶段(也就是说,将Y变大),以放大储存单元MK的值与其它储存单元之间的差异,而让距离计算电路140可正确地找出具有最大值的储存单元MK,并据以计算出反射光LRD的成像位置DCS,以提高准确度。In addition, in the distance measuring device 100, the distance sensing stage and the noise sensing stage can be repeated multiple times (for example, Y times), so that the storage units M 1 -M M can store the positive light corresponding to the Y distance sensing stages sensing signal, and a negative light sensing signal corresponding to Y noise sensing stages. Since the positive light sensing signal in each distance sensing stage corresponds to the energy of the background light, it will be offset by the negative light sensing signal in the corresponding noise sensing stage . The value of the storage unit M K of the sensing unit CS K is equal to (Y× RK ), and the values of other storage units are all equal to zero. In this way, even if the energy R K accumulated by the sensing unit CS K is small due to the weak energy of the reflected light L RD , the distance measuring device 100 can still perform multiple distance sensing stages and noise Sensing stage (that is to say, increase Y) to amplify the difference between the value of the storage unit M K and other storage units, so that the distance calculation circuit 140 can correctly find the storage unit M K with the maximum value , and calculate the imaging position D CS of the reflected light L RD according to it, so as to improve the accuracy.

请参考图3。图3为说明测距装置100减少闪烁现象的工作原理的示意图。由于一般室内光源所接收的电源为交流电,因此除了背景光LB外,另一部分的背景光(闪烁光)LF会受到交流电的频率的影响而闪烁。举例而言,室内的日光灯的电源为交流电,因此日光灯所发射的光会受到交流电的频率的影响而闪烁。在图3中,设交流电的周期为TF(如交流电的频率为60Hz、交流电的周期为0.0167秒)。交流电的功率P会随着时间不停的变动,因此闪烁光LF的功率也会随着时间不停的变动。然而,交流电的功率P每隔半交流电周期(TF/2)就会循环一次。举例而言,当时间为T时,交流电的功率P等于PT;则当时间为(T+TF/2)时,交流电的功率P仍等于PT。又闪烁光LF的功率正比于交流电的功率P,因此闪烁光LF的功率会类似交流电的功率,以每隔半交流电周期(TF/2)就会循环一次。如此一来,在测距装置100中,发光/感测控制电路110可借由控制距离感测阶段(如图3所示的T1+与T2+)与噪声感测阶段(如图3所示的T1-与T2-)的时间间隔等于半交流电周期(TF/2),以减低闪烁现象的影响。更明确地说,发光/感测控制电路110,控制感测单元CS1~CSM于距离感测阶段T1+(或T2+)感测对应于交流电的功率P1(或P2)的闪烁光LF,而使得感测单元CS1~CSM所产生的正光感测信号对应于闪烁光LF的部分会等于F11~FM1(或F12~FM2)。且发光/感测控制电路110控制距离感测阶段T1+(或T2+)与噪声感测阶段T1-(或T2-)的时间间隔等于半交流电周期TF/2(如0.0083秒)。因此,感测单元CS1~CSM于噪声感测阶段T1-(或T2-)内所感测的闪烁光LF的功率与感测单元CS1~CSM于距离感测阶段T1+(或T2+)内所感测的闪烁光LF的功率相同。如此于噪声感测阶段T1-(或T2-)内,感测单元CS1~CSM所产生的负光感测信号对应于闪烁光LF的部分也会等于F11~FM1(或F12~FM2)。因此,距离感测阶段T1+(或T2+)的正光感测信号对应于闪烁光LF的部分,会被对应的噪声感测阶段T1-(或T2-)的负光感测信号所抵销。换句话说,除了对应于反射光LRD所汇聚成像的感测单元CSK的储存单元MK的值会等于RK之外,其它储存单元的值皆等于零。因此即使感测单元CS1~CSM会感测到闪烁光LF,发光/感测控制电路110仍可借由控制距离感测阶段T1+或T2+分别与噪声感测阶段T1-或T2-的时间间隔等于半交流电周期(TF/2),以减低闪烁现象的影响,而使距离计算电路140可正确地判断出反射光LRD的成像位置DCS且计算出待测距离DMPlease refer to Figure 3. FIG. 3 is a schematic diagram illustrating the working principle of the ranging device 100 for reducing the flicker phenomenon. Since the power received by the general indoor light source is alternating current, in addition to the background light LB , another part of the background light (flashing light) LF will flicker under the influence of the frequency of the alternating current. For example, the indoor fluorescent lamp is powered by alternating current, so the light emitted by the fluorescent lamp will flicker due to the frequency of the alternating current. In FIG. 3 , it is assumed that the cycle of the alternating current is T F (for example, the frequency of the alternating current is 60 Hz, and the cycle of the alternating current is 0.0167 seconds). The power P of the alternating current will constantly change with time, so the power of the flashing light LF will also change with time. However, the power P of the alternating current is cycled every half alternating current cycle (T F /2). For example, when the time is T, the power P of the alternating current is equal to PT ; then when the time is (T+T F /2), the power P of the alternating current is still equal to PT . Moreover, the power of the flashing light LF is proportional to the power P of the alternating current, so the power of the flashing light LF is similar to the power of the alternating current, and will cycle once every half alternating current cycle (T F /2). In this way, in the ranging device 100, the lighting/sensing control circuit 110 can control the distance sensing phase (T 1+ and T 2+ shown in FIG. 3 ) and the noise sensing phase (as shown in FIG. 3 The time interval between T 1- and T 2- ) shown is equal to half the AC cycle (T F /2) to reduce the impact of the flicker phenomenon. More specifically, the light emitting/sensing control circuit 110 controls the sensing units CS 1 -CS M to sense the power P 1 (or P 2 ) corresponding to the alternating current in the distance sensing phase T 1+ (or T 2+ ). The flickering light L F of the flickering light LF, so that the portion of the positive light sensing signal generated by the sensing units CS 1 -CS M corresponding to the flickering light L F is equal to F 11 -F M1 (or F 12 -F M2 ). And the lighting/sensing control circuit 110 controls the time interval between the distance sensing phase T 1+ (or T 2+ ) and the noise sensing phase T 1− (or T 2− ) to be equal to the half AC cycle T F /2 (eg, 0.0083 Second). Therefore, the power of the flicker light LF sensed by the sensing units CS 1 -CS M in the noise sensing phase T 1- (or T 2- ) is the same as that of the sensing units CS 1 -CS M in the distance sensing phase T 1 The power of the sensed flicker light LF in + (or T 2+ ) is the same. In this way, in the noise sensing phase T 1− (or T 2− ), the portion of the negative light sensing signal generated by the sensing units CS 1 ˜CS M corresponding to the flashing light LF is also equal to F 11 ˜F M1 ( or F 12 ~F M2 ). Therefore, the portion of the positive light sensing signal corresponding to the flicker light LF in the distance sensing stage T 1+ (or T 2+ ) will be sensed by the corresponding negative light sensing signal in the noise sensing stage T 1- (or T 2- ). offset by the measured signal. In other words, except the value of the storage unit M K corresponding to the sensing unit CS K formed by the reflected light L RD is equal to R K , the values of other storage units are all equal to zero. Therefore, even though the sensing units CS 1 -CS M will sense the flickering light LF , the lighting/sensing control circuit 110 can still control the distance sensing phase T 1+ or T 2+ respectively with the noise sensing phase T 1 The time interval of - or T 2 - is equal to half the AC cycle (T F /2), so as to reduce the influence of the flicker phenomenon, so that the distance calculation circuit 140 can correctly judge the imaging position D CS of the reflected light L RD and calculate the waiting time Measure the distance D M .

由于在生产过程中,当组装测距装置100时,测距装置100内部的组件的位置会因组装误差而产生偏移,因此测距装置100在量测距离时会受到组装误差的影响。因此测距装置100所包含的参数计算电路150用来校正测距装置100的组装误差。以下将说明参数计算电路150的工作原理。During the production process, when the distance measuring device 100 is assembled, the positions of components inside the distance measuring device 100 will be offset due to assembly errors, so the distance measuring device 100 will be affected by the assembly errors when measuring the distance. Therefore, the parameter calculation circuit 150 included in the distance measuring device 100 is used to correct the assembly error of the distance measuring device 100 . The working principle of the parameter calculation circuit 150 will be described below.

参数计算电路150接收发光/感测控制电路110所输出的距离信号SD,而得到已知距离DC1与已知距离DC2。其中已知距离DC1为校正物CO1与测距装置100之间的距离,已知距离DC2为校正物CO2与测距装置100之间的距离。借由如同第2图所述的方法,发光组件120发出侦测光LID射向校正物CO1或CO2,而使参数计算电路150可根据影像传感器130所输出的光感测信号而得到反射光LRD的成像位置,并据以校正测距装置100的组装误差角度。The parameter calculation circuit 150 receives the distance signal S D output by the lighting/sensing control circuit 110 to obtain the known distance D C1 and the known distance D C2 . The known distance D C1 is the distance between the calibration object CO 1 and the distance measuring device 100 , and the known distance D C2 is the distance between the calibration object CO 2 and the distance measuring device 100 . By means of the method described in FIG. 2, the light-emitting component 120 emits the detection light L ID to irradiate the calibration object CO1 or CO2 , so that the parameter calculation circuit 150 can obtain the The imaging position of the reflected light L RD is used to correct the assembly error angle of the distance measuring device 100 .

首先假设发光组件120因组装误差而使发光组件120所发出的侦测光LID旋转发光误差角度θLDFirstly, it is assumed that the detection light L ID emitted by the light emitting component 120 is rotated by the light emitting error angle θ LD due to an assembly error of the light emitting component 120 .

请参考图4。图4为说明校正发光组件120所发出的侦测光LID的发光误差角度θLD的方法的示意图。发光/感测控制电路110控制发光组件120发射侦测光LID射向校正物CO1。其中校正物CO1与测距装置100的距离为已知距离DC1。由于侦测光LRD受到发光组件120的组装误差的影响,因此侦测光LID会以一发光误差角度θLD入射校正物CO1,而校正物CO1反射侦测光LID所产生的反射光LRD会汇聚成像于感测单元CSI。侦测光LID与反射光LRD的夹角为θ1I,而直线LF与反射光LRD的夹角为θ2I。如图4所示,由于直线LF平行于校正物的平面的法线,因此(θ1ILD)会等于θ2I。也就是说,tan(θ1ILD)等于tanθ2I。因此可得下列公式:Please refer to Figure 4. FIG. 4 is a schematic diagram illustrating a method for correcting the light emission error angle θ LD of the detection light L ID emitted by the light emitting component 120 . The light emitting/sensing control circuit 110 controls the light emitting component 120 to emit the detection light L ID toward the calibration object CO 1 . The distance between the calibration object CO 1 and the distance measuring device 100 is a known distance D C1 . Since the detection light L RD is affected by the assembly error of the light emitting element 120, the detection light L ID will enter the calibration object CO 1 at a light emission error angle θ LD , and the calibration object CO 1 reflects the detection light L ID . The reflected light L RD is converged and imaged on the sensing unit CS I . The included angle between the detection light L ID and the reflected light L RD is θ 1I , and the included angle between the straight line LF and the reflected light L RD is θ 2I . As shown in FIG. 4 , since the straight line LF is parallel to the normal of the plane of the calibration object, (θ 1I −θ LD ) will be equal to θ 2I . That is, tan(θ 1ILD ) is equal to tanθ 2I . Therefore the following formula can be obtained:

DC1=1/[1/(DF×L)×DCSI+B]…(4);D C1 =1/[1/(D F ×L)×D CSI +B]...(4);

B=tanθLD/L…(5);B= tanθLD /L...(5);

其中B代表用来校正发光误差角度θLD的校正参数、DCSI代表反射光LRD的成像位置。因此,参数计算电路150根据式(4)可计算得到校正参数B。如此,参数计算电路150可通过参数信号SAB以输出校正参数B至距离计算电路140,以使距离计算电路140可将式(2)校正如下式,以计算经校正后的待测距离DMWhere B represents a correction parameter used to correct the luminous error angle θ LD , and D CSI represents the imaging position of the reflected light L RD . Therefore, the parameter calculation circuit 150 can calculate the correction parameter B according to formula (4). In this way, the parameter calculation circuit 150 can output the correction parameter B to the distance calculation circuit 140 through the parameter signal SAB , so that the distance calculation circuit 140 can correct the formula (2) as follows to calculate the corrected distance to be measured D M :

DM=1/[1/(DF×L)×DCS+B]…(6);D M =1/[1/(D F ×L)×D CS +B]...(6);

因此,即使测距装置100因组装误差而使发光组件120所发出的侦测光LID旋转发光误差角度θLD,测距装置100仍可借由参数计算电路150计算出可校正发光误差角度θLD的校正参数B,以让距离计算电路140根据校正参数B、镜头LEN1的焦距DF、已知距离L,以及量测待测物MO时反射光的成像位置DCS,而正确地计算出待测距离DMTherefore, even if the distance-measuring device 100 causes the detection light L ID emitted by the light-emitting component 120 to rotate by the light-emitting error angle θ LD due to an assembly error, the distance-measuring device 100 can still calculate the correctable light-emitting error angle θ by the parameter calculation circuit 150 The correction parameter B of the LD , so that the distance calculation circuit 140 can correctly calculate the Get the distance to be measured D M .

请参考图5与图6。图5、图6为说明因组装误差而使影像传感器130旋转感测误差角度θCS1与θCS2的校正方法的示意图。图5为测距装置100的上视图。如图5所示,影像传感器130的感测误差角度θCS1处于XY平面上。图6为测距装置100的侧视图。此外,从图6可看出影像传感器130所旋转的感测误差角度θCS1与θCS2。发光/感测控制电路110控制发光组件120发射侦测光LID射向校正物CO2,其中校正物CO2与测距装置100的距离为已知距离DC2。此时假设发光组件120没有组装误差(意即假设发光误差角度θLD为零),侦测光LID会入射校正物CO1,而校正物CO1反射侦测光LID所产生的反射光LRD会汇聚成像于感测单元CSJ。侦测光LID与反射光LRD的夹角为θ1J,而直线LF与反射光LRD的夹角为θ2J。由图6可看出,DCSX为反射光LRD的成像位置DCSJ投影至X轴的投影距离,且成像位置DCSJ与投影距离DCSX的关系可以下式表示:Please refer to Figure 5 and Figure 6. FIG. 5 and FIG. 6 are schematic diagrams illustrating a method for correcting the rotation sensing error angles θ CS1 and θ CS2 of the image sensor 130 due to assembly errors. FIG. 5 is a top view of the distance measuring device 100 . As shown in FIG. 5 , the sensing error angle θ CS1 of the image sensor 130 is on the XY plane. FIG. 6 is a side view of the distance measuring device 100 . In addition, it can be seen from FIG. 6 that the sensing error angles θ CS1 and θ CS2 rotated by the image sensor 130 are rotated. The light emitting/sensing control circuit 110 controls the light emitting component 120 to emit the detection light L ID toward the calibration object CO 2 , wherein the distance between the calibration object CO 2 and the distance measuring device 100 is a known distance D C2 . At this time, assuming that there is no assembly error in the light-emitting component 120 (that is, assuming that the light-emitting error angle θ LD is zero), the detection light L ID will be incident on the calibration object CO 1 , and the calibration object CO 1 will reflect the reflected light generated by the detection light L ID L RD will be converged and imaged on the sensing unit CS J . The included angle between the detection light L ID and the reflected light L RD is θ 1J , and the included angle between the straight line LF and the reflected light L RD is θ 2J . It can be seen from Fig. 6 that D CSX is the projection distance from the imaging position D CSJ of the reflected light L RD to the X-axis, and the relationship between the imaging position D CSJ and the projection distance D CSX can be expressed by the following formula:

DCSX=DCSJ×cosθCS2×cosθCS1…(6);D CSX = D CSJ ×cosθ CS2 ×cosθ CS1 ...(6);

又在图5中,直线L与侦测光LID平行,因此直线L与反射光LRD的夹角θ2J等于侦测光LID与反射光LRD的夹角θ1J。也就是说,tanθ1J等于tanθ2J。如此,已知距离DC2与投影距离DCSX的关系可以下式表示:In FIG. 5 , the straight line L is parallel to the detection light L ID , so the angle θ 2J between the straight line L and the reflected light L RD is equal to the angle θ 1J between the detection light L ID and the reflected light L RD . That is, tanθ 1J is equal to tanθ 2J . In this way, the relationship between the known distance D C2 and the projected distance D CSX can be expressed by the following formula:

L/DC2=DCSX/DF…(7);L/ DC2 = D CSX /DF...(7);

因此,根据式(6)与(7)可得到下列公式;Therefore, according to formulas (6) and (7), the following formulas can be obtained;

DC2=1/(A×DCSJ)…(8);D C2 =1/(A×D CSJ )...(8);

A=(cosθCS2×cosθCS1)/(DF×L)…(9);A=(cosθ CS2 ×cosθ CS1 )/(D F ×L)...(9);

其中A代表用来校正感测误差角度θCS2与θCS1的校正参数。因此,参数计算电路150根据式(8)计算得到校正参数A。如此,参数计算电路150可通过参数信号SAB以输出校正参数A至距离计算电路140,以使距离计算电路140可将式(2)校正如下式,以计算经校正后的待测距离DMA represents a calibration parameter used to correct the sensing error angles θ CS2 and θ CS1 . Therefore, the parameter calculation circuit 150 calculates the correction parameter A according to formula (8). In this way, the parameter calculation circuit 150 can output the correction parameter A to the distance calculation circuit 140 through the parameter signal SAB , so that the distance calculation circuit 140 can correct the formula (2) as follows to calculate the corrected distance to be measured D M :

DM=1/(A×DCS)…(10);D M =1/(A×D CS )...(10);

由此可知,即使测距装置100因组装误差而使影像传感器130旋转感测误差角度θCS1与θCS2,测距装置100仍可借由参数计算电路150计算出可校正感测误差角度θCS2与θCS1的校正参数A,以让距离计算电路140可借由校正参数A与量测待测物MO时反射光的成像位置DCS,而正确地计算出待测距离DMIt can be seen that even if the distance measuring device 100 causes the image sensor 130 to rotate the sensing error angles θ CS1 and θ CS2 due to an assembly error, the distance measuring device 100 can still calculate the correctable sensing error angle θ CS2 through the parameter calculation circuit 150 and the correction parameter A of θ CS1 , so that the distance calculation circuit 140 can correctly calculate the distance to be measured D M through the correction parameter A and the imaging position D CS of the reflected light when measuring the object MO.

假设测距装置100因组装误差而使发光组件120所发出的侦测光LID旋转发光误差角度θLD,且同时影像传感器130旋转感测误差角度θCS1与θCS2。借由图4、图5、图6的说明可知,测距装置100可借由发光组件120发出侦测光LID至校正物CO1与CO2,以分别得到对应于校正物CO1的反射光LRD的成像位置DCS1、与对应于校正物CO2的反射光LRD的成像位置DCS2。又成像位置DCS1与DCS2、测距装置100与校正物CO1之间的已知距离DC1、测距装置100与校正物CO2之间的已知距离DC2,以及校正参数A与B的关系可以下式表示:Assume that the distance measuring device 100 rotates the detection light L ID emitted by the light emitting element 120 by the light emitting error angle θ LD due to an assembly error, and at the same time the image sensor 130 rotates by the sensing error angles θ CS1 and θ CS2 . 4, 5, and 6, it can be seen that the distance measuring device 100 can send the detection light L ID to the calibration objects CO 1 and CO 2 through the light emitting component 120, so as to obtain the reflections corresponding to the calibration object CO 1 respectively. The imaging position D CS1 of the light L RD and the imaging position D CS2 of the reflected light L RD corresponding to the calibration object CO 2 . The imaging positions D CS1 and D CS2 , the known distance D C1 between the ranging device 100 and the calibration object CO 1 , the known distance D C2 between the ranging device 100 and the calibration object CO 2 , and the calibration parameters A and The relation of B can be expressed as follows:

DC1=1/[A×DCS1+B]…(11);D C1 =1/[A×D CS1 +B]...(11);

DC2=1/[A×DCS2+B]…(12);D C2 =1/[A×D CS2 +B]...(12);

此时,参数计算电路150可根据式(11)与式(12)计算出可校正感测误差角度θCS1与θCS2的校正参数A,以及可校正发光误差角度θLD的校正参数B。参数计算电路150可通过参数信号SAB以输出校正参数A与B至距离计算电路140,以使距离计算电路140可将式(2)校正如下式,以计算经校正后的待测距离DMAt this time, the parameter calculation circuit 150 can calculate the correction parameter A capable of correcting the sensing error angles θ CS1 and θ CS2 and the correction parameter B capable of correcting the lighting error angle θ LD according to equations (11) and (12). The parameter calculation circuit 150 can output the correction parameters A and B to the distance calculation circuit 140 through the parameter signal SAB , so that the distance calculation circuit 140 can correct the formula (2) as follows to calculate the corrected distance to be measured D M :

DM=1/[A×DCS+B]…(13);D M =1/[A×D CS +B]...(13);

如此,即使测距装置100因组装误差而使发光组件120所发出的侦测光LID旋转发光误差角度θLD,且同时影像传感器130旋转感测误差角度θCS1与θCS2。测距装置100仍可借由参数计算电路150计算出可校正感测误差角度θCS2与θCS1的校正参数A与可校正发光误差角度θLD的校正参数B,以让距离计算电路140可正确地计算出待测距离DMIn this way, even if the detection light L ID emitted by the light-emitting component 120 rotates by the light-emitting error angle θ LD due to an assembly error of the ranging device 100 , at the same time, the image sensor 130 rotates by the sensing error angles θ CS1 and θ CS2 . The distance measuring device 100 can still use the parameter calculation circuit 150 to calculate the correction parameter A that can correct the sensing error angles θ CS2 and θ CS1 and the correction parameter B that can correct the light emission error angle θ LD , so that the distance calculation circuit 140 can be correct Calculate the distance to be measured D M accurately.

除此之外,根据式(13)可知,当距离计算电路140计算待测距离DM时,只需要参数计算电路150所输出的校正参数A、校正参数B与量测待测物MO时反射光LRD的成像位置DCS,而不需镜头LEN1的焦距DF与已知距离L。换句话说,即使在生产过程中,镜头LEN1的焦距DF有误差,或是已知距离L因组装而产生误差,距离计算电路140仍可根据式(13)以正确地计算出待测距离DMIn addition, according to formula (13), it can be seen that when the distance calculation circuit 140 calculates the distance to be measured DM , only the correction parameter A and the correction parameter B output by the parameter calculation circuit 150 and the reflection when measuring the object to be measured MO are needed The imaging position D CS of the light L RD does not require the focal length DF and the known distance L of the lens LEN 1 . In other words, even if there is an error in the focal length DF of the lens LEN 1 during the production process, or the known distance L causes an error due to assembly, the distance calculation circuit 140 can still correctly calculate the distance to be measured according to formula (13). distance D M .

请参考图7。图7为说明本发明的影像传感器的结构的第一实施例700的示意图。如图7所示,影像传感器700的M个感测单元排列成N行K列。在影像传感器700中,每一行感测单元的水平方向(或图7所示的X轴的方向)上的位置皆相同。更进一步地说,设感测单元CS11~CSNK的宽度皆为WPIX,且设感测单元CS11的左侧于水平方向的位置可表示为零,如此,以每一行感测单元的中心来代表其水平方向上的位置,则第1行感测单元CS11~CS1K于水平方向的位置可表示为1/2×WPIX;第2行感测单元CS21~CS2K于水平方向的位置可表示为3/2×WPIX;第N行感测单元CSN1~CSNK于水平方向的位置可表示为[(2×N-1)×WPIX]/2,其它可依此类推,故不再赘述。因此,由上述说明可知,在影像传感器700中,每一列感测单元于水平方向上的位置皆可表示为{1/2×WPIX,3/2×WPIX,…,[(2×N-1)×WPIX]/2},因此每一列感测单元于水平方向上的位置皆相同。Please refer to Figure 7. FIG. 7 is a schematic diagram illustrating a first embodiment 700 of the structure of the image sensor of the present invention. As shown in FIG. 7 , M sensing units of the image sensor 700 are arranged in N rows and K columns. In the image sensor 700 , the positions of the sensing units in each row in the horizontal direction (or the direction of the X-axis shown in FIG. 7 ) are the same. Furthermore, assuming that the widths of the sensing units CS 11 -CS NK are all W PIX , and assuming that the position of the left side of the sensing unit CS 11 in the horizontal direction can be represented as zero, in this way, each row of sensing units center to represent its position in the horizontal direction, the position of the sensing units CS 11 ~ CS 1K in the first row in the horizontal direction can be expressed as 1/2×W PIX ; the sensing units CS 21 ~ CS 2K in the second row The position in the direction can be expressed as 3/2×W PIX ; the position of the sensing units CS N1 ˜CS NK in the Nth row in the horizontal direction can be expressed as [(2×N-1)×W PIX ]/2, and others can be determined according to And so on, so no more details. Therefore, it can be seen from the above description that in the image sensor 700, the position of each row of sensing units in the horizontal direction can be expressed as {1/2×W PIX , 3/2×W PIX , . . . , [(2×N -1)×W PIX ]/2}, so the positions of the sensing units in each row are the same in the horizontal direction.

请参考图8。图8为说明利用影像传感器700以侦测反射光LRD的成像位置DCS的工作原理的示意图。图8的上半部所示的圆圈用来表示反射光LRD于影像传感器700成像的位置,也就是说,被圆圈所覆盖的感测单元,可感测到反射光LRD的能量,而产生较大的光感测信号SLS。为了得到反射光LRD的成像位置DCS,此时,可将每一行感测单元所产生的光感测信号SLS相加(如图8下半所示),以得到水平方向(X轴方向)上的累计光感测信号SALS。举例而言,根据第1行感测单元CS11~CS1K的光感测信号相加而产生的累计光感测信号为SALS1;根据第2行感测单元CS21~C82K的光感测信号相加而产生的累计光感测信号为SALS2;根据第N行感测单元CSN1~CSNK的光感测信号相加而产生的累计光感测信号为SALSN,其它可依此类推,故不再赘述。由于接收到反射光LRD的感测单元会产生较高的光感测信号,因此接近反射光LRD的成像位置DCS(意即圆圈中心)的感测单元皆会产生较高的光感测信号。换句话说,若在累计光感测信号SALS1~SALSN中,对应于第F行感测单元CSF1~CSFK的累计光感测信号SALSF具有最大值,则表示反射光LRD的成像位置(圆圈中心)位于第F行感测单元。如此一来,即可以第F行感测单元于水平方向上的位置来代表反射光LRD的成像位置DCS。举例而言,如图8所示,第5行感测单元CS51~CS5K所对应的累计光感测信号SALS5具有最大值,因此可判断反射光LRD的成像位置(圆圈中心)位于第5行感测单元,如此一来,即可以第5行感测单元于水平方向上的位置9/2×WPIX来代表反射光LRD的成像位置DCSPlease refer to Figure 8. FIG. 8 is a schematic diagram illustrating the working principle of using the image sensor 700 to detect the imaging position DCS of the reflected light L RD . The circle shown in the upper half of FIG. 8 is used to represent the image position of the reflected light L RD on the image sensor 700, that is, the sensing unit covered by the circle can sense the energy of the reflected light L RD , and A larger light-sensing signal S LS is generated. In order to obtain the imaging position D CS of the reflected light L RD , at this time, the light sensing signals S LS generated by each row of sensing units can be added (as shown in the lower half of Figure 8 ) to obtain the horizontal direction (X-axis direction) on the cumulative light-sensing signal S ALS . For example, the cumulative light sensing signal generated by adding the light sensing signals of the sensing units CS 11 ˜CS 1K in the first row is S ALS1 ; the light sensing signals of the sensing units CS 21 ˜C8 2K in the second row are The cumulative light sensing signal generated by adding the sensing signals is S ALS2 ; the cumulative light sensing signal generated by adding the light sensing signals of the sensing units CS N1 ~ CS NK in the Nth row is S ALSN , and others can be determined according to And so on, so no more details. Since the sensing unit receiving the reflected light L RD will generate a higher light sensing signal, the sensing units close to the imaging position D CS (that is, the center of the circle) of the reflected light L RD will all generate higher light sensing. test signal. In other words, if among the accumulated light sensing signals S ALS1 ˜S ALSN , the accumulated light sensing signal S ALSF corresponding to the sensing cells CS F1 ˜CS FK of row F has the maximum value, it means that the reflected light L RD The imaging position (the center of the circle) is located in the Fth row of sensing units. In this way, the position of the sensing unit in the F-th row in the horizontal direction can be used to represent the imaging position D CS of the reflected light L RD . For example, as shown in FIG. 8 , the cumulative light sensing signal S ALS5 corresponding to the sensing units CS 51 ˜CS 5K in the fifth row has a maximum value, so it can be judged that the imaging position (circle center) of the reflected light L RD is located at In this way, the position 9/2×W PIX of the sensing unit in the fifth row in the horizontal direction can represent the imaging position D CS of the reflected light L RD .

请参考图9。图9为说明本发明的影像传感器的结构的另一实施例900的示意图。如图9所示,影像传感器900的M个感测单元排列成N行K列。相较于影像传感器700,影像传感器900的每一列感测单元与其相邻的其它列感测单元的水平方向(或图9所示的X轴的方向)上的位置相隔一位移距离DSF(在图9中假设位移距离DSF等于WPIX/2)。举例而言,第1列感测单元CS11~CSN1于水平方向上的位置可表示为{1/2×WPIX,3/2×WPIX,…,[(2×N+1)×WPIX]/2};第2列感测单元CS12~CSN2于水平方向上的位置可表示为{WPIX,2×WPIX,…,[2×N×WPIX]/2};第K列感测单元CS1K~CSNK于水平方向上的位置可表示为{[1/2+(K-1)/2]×WPIX,[3/2+(K-1)/2]×WPIX,…,[(2×N-1)/2+(K-1)/2]×WPIX},其它可依此类推,故不再赘述。Please refer to Figure 9. FIG. 9 is a schematic diagram illustrating another embodiment 900 of the structure of the image sensor of the present invention. As shown in FIG. 9 , M sensing units of the image sensor 900 are arranged in N rows and K columns. Compared with the image sensor 700, the positions of each row of sensing units of the image sensor 900 in the horizontal direction (or the direction of the X-axis shown in FIG . In FIG. 9 it is assumed that the displacement distance D SF is equal to W PIX /2). For example, the positions of the sensing units CS 11 -CS N1 in the first column in the horizontal direction can be expressed as {1/2×W PIX , 3/2×W PIX , . . . , [(2×N+1)× W PIX ]/2}; the position of the sensing units CS 12 -CS N2 in the second column in the horizontal direction can be expressed as {W PIX , 2×W PIX ,…,[2×N×W PIX ]/2}; The positions of the sensing units CS 1K ~CS NK in the Kth column in the horizontal direction can be expressed as {[1/2+(K-1)/2]×W PIX , [3/2+(K-1)/2 ]×W PIX , ..., [(2×N-1)/2+(K-1)/2]×W PIX }, others can be deduced in the same way, so no more details are given here.

请参考图10。图10为说明利用影像传感器900以侦测反射光LRD的成像位置DCS的工作原理的示意图。图10的上半部所示的圆圈用来表示反射光LRD于影像传感器900成像的位置。根据影像传感器900的感测单元CS11~CSNK的光感测信号而产生的累计光感测信号为SALS1~SALS2N。其中累计光感测信号SALS1所对应的感测范围为水平方向上位置0~WPIX/2,由于在感测单元CS11~CSNK之中,仅有感测单元CS11的感测范围涵盖累计光感测信号SALS1所对应的感测范围,因此累计光感测信号SALS1等于感测单元CS11的光感测信号的值;累计光感测信号SALS2所对应的感测范围为水平方向上位置WPIX/2~WPIX,由于在感测单元CS11~CSNK之中,感测单元CS11与CS12的感测范围皆涵盖累计光感测信号SALS2所对应的感测范围,因此累计光感测信号SALS2可借由相加感测单元CS11与CS21的光感测信号而得,其它累计光感测信号可由类似方法而得,故不再赘述。若在累计光感测信号SALS1~SALS2N中,累计光感测信号SALSF具有最大值,则表示反射光LRD的成像位置(圆圈中心)位于对应于累计光感测信号SALSF的水平方向上的位置。举例而言,如图10所示,累计光感测信号SALS10具有最大值,因此可判断反射光LRD的成像位置(圆圈中心)位于对应于累计光感测信号SALS10的水平方向上的位置。由于累计光感测信号SALS10所对应的感测范围为9/2×WPIX~5×WPIX,因此累计光感测信号SALS10所对应的水平方向上的位置可表示为19/4×WPIX。如此,反射光LRD的成像位置(圆圈中心)可以累计光感测信号SALS10水平方向上的位置19/4×WPIX来表示。Please refer to Figure 10. FIG. 10 is a schematic diagram illustrating the working principle of using the image sensor 900 to detect the imaging position DCS of the reflected light L RD . The circles shown in the upper part of FIG. 10 are used to represent the imaging positions of the reflected light L RD on the image sensor 900 . The accumulated light-sensing signals generated according to the light-sensing signals of the sensing units CS 11 -CS NK of the image sensor 900 are S ALS1 -S ALS2N . The sensing range corresponding to the accumulative light sensing signal S ALS1 is the position 0 to W PIX /2 in the horizontal direction, because among the sensing units CS 11 to CS NK , only the sensing range of the sensing unit CS 11 is Covers the sensing range corresponding to the cumulative light sensing signal S ALS1 , so the cumulative light sensing signal S ALS1 is equal to the value of the light sensing signal of the sensing unit CS11 ; the sensing range corresponding to the cumulative light sensing signal S ALS2 are the positions W PIX /2˜W PIX in the horizontal direction, because among the sensing units CS 11 ˜CS NK , the sensing ranges of the sensing units CS 11 and CS 12 both cover the area corresponding to the accumulated light sensing signal S ALS2 The sensing range, therefore, the accumulated light sensing signal S ALS2 can be obtained by adding the light sensing signals of the sensing units CS 11 and CS 21 , and other accumulated light sensing signals can be obtained in a similar way, so details are not repeated here. If among the accumulated light-sensing signals S ALS1 -S ALS2N , the accumulated light-sensing signal S ALSF has the maximum value, it means that the imaging position (circle center) of the reflected light L RD is located at the level corresponding to the accumulated light-sensing signal S ALSF position in the direction. For example, as shown in FIG. 10 , the accumulated light sensing signal S ALS10 has a maximum value, so it can be judged that the imaging position (center of the circle) of the reflected light L RD is located at a position corresponding to the horizontal direction of the accumulated light sensing signal S ALS10 Location. Since the sensing range corresponding to the accumulated light-sensing signal S ALS10 is 9/2×W PIX˜5 ×W PIX , the position in the horizontal direction corresponding to the accumulated light-sensing signal S ALS10 can be expressed as 19/4× W PIX . In this way, the imaging position (the center of the circle) of the reflected light L RD can be represented by the position 19/4×W PIX in the horizontal direction of the accumulated light sensing signal S ALS10 .

此外,相较于影像传感器700,影像传感器900具有更高的分辨率。举例而言,当利用影像传感器700来侦测反射光LRD的成像位置DCS时,若反射光LRD的成像位置DCS(圆圈中心)于水平方向上的实际位置为(17/4)×WPIX,则此时累计光感测信号SALS5具有最大值,因此反射光LRD的成像位置DCS会以影像传感器700的第5行感测单元于水平方向上的位置9/2×WPIX来表示;若反射光LRD的成像位置DCS(圆圈中心)于水平方向上的实际位置略为移动,而变成为(19/4)×WPIX,此时累计光感测信号SALS5仍然具有最大值,也就是说,虽然反射光LRD的成像位置DCS(圆圈中心)于水平方向上的实际位置已经从(17/4)×WPIX变为(19/4)×WPIX,但是反射光LRD的成像位置DCS仍会以影像传感器700的第5行感测单元于水平方向上的位置9/2×WPIX来表示。In addition, compared with the image sensor 700 , the image sensor 900 has a higher resolution. For example, when using the image sensor 700 to detect the imaging position D CS of the reflected light L RD , if the actual position of the imaging position D CS (circle center) of the reflected light L RD in the horizontal direction is (17/4) ×W PIX , then the cumulative light sensing signal S ALS5 has the maximum value at this time, so the imaging position D CS of the reflected light L RD will be 9/2× represented by W PIX ; if the actual position of the imaging position D CS (the center of the circle) of the reflected light L RD in the horizontal direction is slightly moved, it becomes (19/4)×W PIX , and the accumulated light sensing signal S ALS5 still has a maximum value, that is, although the actual position of the imaging position D CS (circle center) of the reflected light L RD in the horizontal direction has changed from (17/4)×W PIX to (19/4)×W PIX , but the imaging position D CS of the reflected light L RD is still represented by the horizontal position 9/2×W PIX of the sensing units in the fifth row of the image sensor 700 .

然而,当利用影像传感器900来侦测反射光LRD的成像位置DCS时,若反射光LRD的成像位置DCS(圆圈中心)于水平方向上的实际位置为(17/4)×WPIX,则此时累计光感测信号SALS9具有最大值,因此反射光LRD的成像位置DCS会以累计光感测信号SALS9于水平方向上的位置17/4×WPIX来表示;然而,若反射光LRD的成像位置DCS(圆圈中心)于水平方向上的实际位置略为移动,而变成为(19/4)×WPIX,则此时累计光感测信号SALS10具有最大值,因此反射光LRD的成像位置DCS会以累计光感测信号SALS10于水平方向上的位置19/4×WPIX来表示。由此可知,利用影像传感器900可更精确地侦测到反射光LRD的成像位置DCS。更进一步地说,相较于影像传感器700,在影像传感器900中,借由调整每一列感测单元与其相邻的其它列感测单元的水平方向上的位置相隔的位移距离,可使影像传感器900具有更高的分辨率。However, when the image sensor 900 is used to detect the imaging position D CS of the reflected light L RD , if the actual position of the imaging position D CS (circle center) of the reflected light L RD in the horizontal direction is (17/4)×W PIX , then the cumulative light sensing signal S ALS9 has a maximum value at this time, so the imaging position D CS of the reflected light L RD is represented by the horizontal position 17/4×W PIX of the cumulative light sensing signal S ALS9 ; However, if the actual position of the imaging position D CS (the center of the circle) of the reflected light L RD in the horizontal direction is slightly moved to become (19/4)×W PIX , then the accumulated light sensing signal S ALS10 has Therefore, the imaging position D CS of the reflected light L RD is represented by the position 19/4×W PIX of the accumulated light sensing signal S ALS10 in the horizontal direction. It can be seen from this that the imaging position D CS of the reflected light L RD can be detected more accurately by using the image sensor 900 . Furthermore, compared with the image sensor 700, in the image sensor 900, the image sensor can be made 900 has a higher resolution.

此外,在影像传感器900中,每一列感测单元与其相邻的其它列感测单元的水平方向(或图9所示的X轴的方向)上的位置相隔的位移距离并不限定要相同。举例而言,第1列感测单元与第2列的感测单元之间的位移距离为WPIX/2,而第2列感测单元与第3列的感测单元之间的位移距离为WPIX/4。此时,仍可用图10所述的方法以利用影像传感器900来侦测反射光LRD的成像位置DCSIn addition, in the image sensor 900 , the displacement distances between each column of sensing units and other adjacent column sensing units in the horizontal direction (or the direction of the X-axis shown in FIG. 9 ) are not limited to be the same. For example, the displacement distance between the sensing units in the first column and the sensing units in the second column is W PIX /2, and the displacement distance between the sensing units in the second column and the sensing units in the third column is W PIX /4. At this time, the method described in FIG. 10 can still be used to detect the imaging position D CS of the reflected light L RD by using the image sensor 900 .

请参考图11。图11为说明本发明的影像传感器的结构的另一实施例1100的示意图。如图11所示,影像传感器1100的M个感测单元排列成N行Q列。影像传感器1100与700的差异在于,影像传感器700的每一感测单元为一正方形,而影像传感器1100的每一感测单元为一长方形。举例而言,影像传感器700的每一感测单元的宽度与高度皆等于WPIX,而影像传感器1100的每一感测单元的宽度为WPIX,高度则设计为(WPIX×K/Q),其中Q<K,也就是说,影像传感器1100的每一感测单元的短边位于水平方向(X轴方向)上,长边位于垂直方向上。换句话说,影像传感器1100的每一行感测单元具有与影像传感器700的每一感测单元相同的宽度,且影像传感器1100的每一行感测单元的数目Q虽然少于影像传感器700的每一行感测单元的数目K,但是影像传感器1100的每一行感测单元的总面积仍维持与影像传感器700相同。类似于影像传感器700,影像传感器1100提供M个感测单元所产生的M个感测信号给距离计算电路,以使距离计算电路计算出累计光感测信号SALS1~SALSN。举例而言,根据第1行感测单元CS11~CS1Q的光感测信号相加而产生的累计光感测信号为SALS1;根据第2行感测单元CS21~CS2Q的光感测信号相加而产生的累计光感测信号为SALS2;根据第N行感测单元CSN1~CSNQ的光感测信号相加而产生的累计光感测信号为SALSN,其它可依此类推,故不再赘述。如此一来,距离计算电路可利用图8所述的方法,以根据累计光感测信号SALS1~SALSN来得到反射光LRD的成像位置,并进而计算出待测距离DMPlease refer to Figure 11. FIG. 11 is a schematic diagram illustrating another embodiment 1100 of the structure of the image sensor of the present invention. As shown in FIG. 11 , M sensing units of the image sensor 1100 are arranged in N rows and Q columns. The difference between the image sensors 1100 and 700 is that each sensing unit of the image sensor 700 is a square, while each sensing unit of the image sensor 1100 is a rectangle. For example, the width and height of each sensing unit of the image sensor 700 are equal to W PIX , while the width of each sensing unit of the image sensor 1100 is W PIX , and the height is designed to be (W PIX ×K/Q) , where Q<K, that is, the short side of each sensing unit of the image sensor 1100 is located in the horizontal direction (X-axis direction), and the long side is located in the vertical direction. In other words, each row of sensing units of the image sensor 1100 has the same width as each sensing unit of the image sensor 700 , and the number Q of each row of sensing units of the image sensor 1100 is less than that of each row of the image sensor 700 The number of sensing units is K, but the total area of each row of sensing units of the image sensor 1100 remains the same as that of the image sensor 700 . Similar to the image sensor 700 , the image sensor 1100 provides M sensing signals generated by the M sensing units to the distance calculation circuit, so that the distance calculation circuit can calculate the accumulated light sensing signals S ALS1 ˜S ALSN . For example, the cumulative light-sensing signal generated by adding the light-sensing signals of the sensing units CS 11 to CS 1Q in the first row is S ALS1 ; the light-sensing signals of the sensing units CS 21 to CS 2Q in the second row are The cumulative light sensing signal generated by adding the sensing signals is S ALS2 ; the cumulative light sensing signal generated by adding the light sensing signals of the sensing units CS N1 ~ CS NQ in the Nth row is S ALSN , and others can be determined according to And so on, so no more details. In this way, the distance calculation circuit can use the method described in FIG. 8 to obtain the imaging position of the reflected light L RD according to the accumulated light sensing signals S ALS1 ˜S ALSN , and then calculate the distance to be measured D M .

相较于影像传感器700,由于在影像传感器1100中,每一感测单元的长边位于垂直方向上而使得每一行感测单元的数目较少(意即Q<K),因此可减少距离计算电路于产生累计光感测信号SALS1~SALSN时所需累加的次数。由于影像传感器1100的每一行感测单元的总面积仍维持与影像传感器700相同,因此每一行感测单元所接收到的镜头LEN所汇聚的光的能量维持不变。换句话说,当利用影像传感器1100时,可减少距离计算电路于产生累计光感测信号SALS1~SALSN时所需处理的运算量,且同时维持累计光感测信号SALS1~SALSN的信噪比。此外,在影像传感器1100中,每一感测单元的短边位于水平方向上,且其宽度仍维持为WPIX。换句话说,利用影像传感器1100来计算反射光LRD于水平方向上的成像位置时,其分辨率与利用影像传感器700的情况相同。因此,相较于影像传感器700,影像传感器1100可减少距离计算电路所需处理的运算量,并同时维持累计光感测信号的信噪比与成像位置于水平方向(意即短边所位于的方向)上的分辨率。Compared with the image sensor 700, in the image sensor 1100, since the long side of each sensing unit is located in the vertical direction, the number of sensing units in each row is less (that is, Q<K), so the distance calculation can be reduced. The number of accumulations required by the circuit when generating the accumulated light sensing signals S ALS1 -S ALSN . Since the total area of each row of sensing units of the image sensor 1100 remains the same as that of the image sensor 700 , the energy of the light collected by the lens LEN received by each row of sensing units remains unchanged. In other words, when the image sensor 1100 is used, the calculation amount required by the distance calculation circuit to generate the accumulated light sensing signals S ALS1 -S ALSN can be reduced, and at the same time, the value of the accumulated light sensing signals S ALS1 -S ALSN can be maintained. SNR. In addition, in the image sensor 1100 , the short side of each sensing unit is located in the horizontal direction, and its width is still maintained at W PIX . In other words, when the image sensor 1100 is used to calculate the imaging position of the reflected light L RD in the horizontal direction, the resolution is the same as that of the image sensor 700 . Therefore, compared with the image sensor 700, the image sensor 1100 can reduce the amount of calculation required by the distance calculation circuit, and at the same time maintain the signal-to-noise ratio of the accumulated light sensing signal and the imaging position in the horizontal direction (that is, where the short side is located) direction) resolution.

综上所述,本发明所提供的测距装置,借由将测距装置中的影像传感器所感测的光感测信号,移除掉背景光与闪烁光的部分,来降低背景光与闪烁现象的影响。在本发明的影像传感器中,可借由调整每一列感测单元与其相邻的其它列感测单元的水平方向上的位置相隔的位移距离,以提高影像传感器的分辨率。除此之外,本发明另提供一种测距装置的校正方法。借由发光组件发出侦测光至一具有第一已知距离的第一校正物与一具有第二已知距离的第二校正物,以分别得出对应于第一校正物的反射光的第一成像位置与对应于第二校正物的反射光的第二成像位置,并根据第一已知距离、该第一成像位置、该第二已知距离以及该第二成像位置,以计算出可校正该测距装置的内部组件的组装误差角度的校正参数。如此,测距装置可借由校正参数以正确地计算出待测距离,提供给使用者更大的方便。To sum up, the distance measuring device provided by the present invention reduces the background light and flickering phenomenon by removing the background light and flickering light from the light sensing signal sensed by the image sensor in the distance measuring device Impact. In the image sensor of the present invention, the resolution of the image sensor can be improved by adjusting the displacement distance between each column of sensing units and the positions of other adjacent columns of sensing units in the horizontal direction. In addition, the present invention further provides a calibration method for a distance measuring device. The detection light is emitted to a first calibration object with a first known distance and a second calibration object with a second known distance by means of the light-emitting component, so as to respectively obtain the first calibration object corresponding to the reflected light of the first calibration object. an imaging position and a second imaging position corresponding to the reflected light of the second calibration object, and according to the first known distance, the first imaging position, the second known distance and the second imaging position, the possible Correction parameters for correcting assembly error angles of internal components of the distance measuring device. In this way, the distance measuring device can correctly calculate the distance to be measured by correcting the parameters, which provides greater convenience to the user.

以上所述仅为本发明的优选实施例,凡依本发明权利要求所做的均等变化与修饰,皆应属本发明的涵盖范围。The above descriptions are only preferred embodiments of the present invention, and all equivalent changes and modifications made according to the claims of the present invention shall fall within the scope of the present invention.

Claims (18)

1. one kind is utilized the distance measuring equipment of image space difference to find range, this distance measuring equipment has a luminescence component, one first camera lens and an image sensor, this luminescence component is used for sending a detected light directive one determinand, so that this determinand produces a reflected light, this first camera lens is used for converging a bias light or this reflected light, this image sensor is used for the energy of the light that this first camera lens of sensing converged, and to produce M light sensing signal, this distance measuring equipment is characterised in that and comprises:
One luminous/sensing control circuit, be used for a distance sensing during stage, it is luminous to control this luminescence component, and control the energy of the light that this first camera lens of this image sensor sensing converged simultaneously, to produce M the first light sensing signal, not luminous in this luminescence component of noise sensing stage inner control, and control the energy of the light that this first camera lens of this image sensor sensing converged simultaneously, to produce M the second light sensing signal;
Wherein M represents positive integer; And
One distance calculation circuit, be used for according to this M the first light sensing signal and this M the second light sensing signal, to judge the image space of this reflected light on this image sensor, and according to one first known distance between a focal length, this luminescence component and this image sensor of this image space, this first camera lens, to calculate the testing distance between this distance measuring equipment and this determinand.
2. distance measuring equipment as claimed in claim 1 is characterized in that, wherein this luminous/sensing control circuit sends this this determinand of detected light directive by producing a led pulse signal to control this luminescence component, makes this determinand produce this reflected light according to this; This luminous/sensing control circuit produces this M light sensing signal by producing the energy of a shutter pulse signal with the light controlling this first camera lens of this image sensor sensing and converged; This luminous/sensing control circuit reads signal by producing one, so that this image sensor is exported this M light sensing signal to this distance calculation circuit; This luminous/sensing control circuit receives this M the first light sensing signal and this M the second light sensing signal by producing a stage signal to control this distance calculation circuit, to judge this reflected light this image space on this image sensor, and according to this first known distance between this focal length, this luminescence component and this image sensor of this image space, this first camera lens, to calculate this testing distance between this distance measuring equipment and this determinand.
3. distance measuring equipment as claimed in claim 2, wherein this image sensor is characterised in that and comprises:
M sensing cell, this M sensing cell is arranged in the Q row along a first direction, and it is capable to be arranged in N along a second direction, this M sensing cell is used for being pursuant to this shutter pulse signal respectively, the energy of the light that this first camera lens of sensing is converged, producing this M light sensing signal according to this, and read signal, to export this M light sensing signal according to this;
Wherein this distance calculation circuit adds up the light sensing signal according to this M light sensing signal to produce N, and adds up the light sensing signal to calculate this testing distance of this determinand according to this N;
Wherein this distance calculation circuit adds up Q the light sensing signal that sensing cell produced in the capable sensing cell of a H to produce a H of this N accumulative total light sensing signal totally light sensing signal;
Wherein each sensing cell of this M sensing cell is all a rectangle, the long limit of each row sensing cell is positioned on this first direction, to reduce the number of each row sensing cell, keep the energy of the light that each row this received first camera lens of sensing cell converged simultaneously, reduce this distance calculation circuit required number of times that adds up when producing this N accumulative total light sensing signal, and keep the signal to noise ratio (S/N ratio) of this N accumulative total light sensing signal simultaneously, the minor face of each sensing cell is positioned on this second direction, to keep the resolution of this image sensor on this second direction;
Wherein N, Q and H all represent positive integer, and 1≤H≤N.
4. distance measuring equipment as claimed in claim 2, wherein this image sensor is characterised in that and comprises:
M sensing cell is used for being pursuant to this shutter pulse signal respectively, and the energy of the light that this first camera lens of sensing is converged producing this M light sensing signal according to this, and reads signal according to this, to export this M light sensing signal.
5. distance measuring equipment as claimed in claim 4 is characterized in that, wherein this M sensing cell of this image sensor is arranged in the capable K row of N; The one adjacent position of (X+1) row sensing cell on this first direction of one X row sensing cell of this M sensing cell and this M the sensing cell shift length of being separated by; X, N, K all represent positive integer, and 1≤X≤(K-1).
6. distance measuring equipment as claimed in claim 1 is characterized in that comprising in addition:
One second camera lens is used for converging this detected light with this determinand of directive.
7. distance measuring equipment as claimed in claim 1 is characterized in that, wherein the time interval in this distance sensing stage and this noise sensing stage equals half ac period.
8. distance measuring equipment as claimed in claim 1, wherein this distance measuring equipment is characterised in that in addition and comprises:
One parameter calculation circuit, be used for receiving the distance signal that this luminous/sensing control circuit is exported, and obtain one second known distance of proofreading and correct between thing and this distance measuring equipment, and according to this second known distance with measure this this catoptrical one first image space when proofreading and correct thing, to calculate a correction parameter of an assembly error angle that is used for proofreading and correct this distance measuring equipment; This parameter calculation circuit and according to this correction parameter, to export a parameter signal to this distance calculation circuit;
The light sensing signal exported of this parameter calculation circuit this image sensor when measuring this correction thing wherein, this catoptrical this first image space when obtaining measuring this correction thing.
9. distance measuring equipment as claimed in claim 8 is characterized in that, wherein this assembly error angle is represented the luminous error angle that this detected light is rotated;
Wherein this parameter calculation circuit can be according to following formula to calculate this correction parameter:
D C1=1/[1/(D F×L)×D CSI+B];
D wherein C1Represent this second known distance, D CSIRepresent this first image space, B to represent this correction parameter, D FRepresent this focal length, the L of this first camera lens to represent this first known distance between this luminescence component and this image sensor;
Wherein this correction parameter can be represented by following formula with the relation of this luminous error angle:
B=tan?θ LD/L;
θ wherein LDRepresent this luminous error angle;
Wherein when this distance calculation circuit receives this correction parameter, this distance calculation circuit can be according to following formula, to calculate this testing distance after calibrated:
D M=1/[1/(D F×L)×D CS+B];
D wherein MRepresent this testing distance, D CSThis catoptrical this image space when representative measures this determinand.
10. distance measuring equipment as claimed in claim 8 is characterized in that, wherein this assembly error angle is represented the one first sensing error angle and the one second sensing error angle of this image sensor;
Wherein this parameter calculation circuit can be according to following formula to calculate this correction parameter:
D C2=1/(A×D CSJ);
D wherein C2Represent this second known distance, D CSJRepresent this first image space, A to represent this correction parameter;
Wherein the relation of this first sensing error angle of this correction parameter and this image sensor and this second sensing error angle can be represented by following formula:
A=(cosθ CS2×cosθ CS1)/(D F×L);
θ wherein CS1Represent this first sensing error angle, θ CS2Represent this second sensing error angle;
Wherein when this distance calculation circuit receives this correction parameter, this distance calculation circuit can be according to following formula, to calculate this testing distance after calibrated:
D M=1/(A×D CS);
D wherein MRepresent this testing distance, D CSThis catoptrical this image space when representative measures this determinand.
11. distance measuring equipment that utilizes image space difference with range finding, this distance measuring equipment has a luminescence component, one first camera lens and an image sensor, this luminescence component is used for sending a detected light directive one determinand, so that this determinand produces a reflected light, this first camera lens is used for converging a bias light or this reflected light, this image sensor has M sensing cell, this M sensing cell is used for the energy of the light that this first camera lens of sensing converged, to produce M light sensing signal, this distance measuring equipment is characterised in that and comprises:
One luminous/sensing control circuit, be used for a distance sensing during stage, it is luminous to control this luminescence component, and control the energy of the light that this first camera lens of this image sensor sensing converged simultaneously, to produce M the first light sensing signal, not luminous in this luminescence component of noise sensing stage inner control, and control the energy of the light that this first camera lens of this image sensor sensing converged simultaneously, to produce M the second light sensing signal;
Wherein M represents positive integer; And
One distance calculation circuit, be used for according to this M the first light sensing signal and this M the second light sensing signal, to judge the image space of this reflected light on this image sensor, and according to one first known distance between a focal length, this luminescence component and this image sensor of this image space, this first camera lens, to calculate the testing distance between this distance measuring equipment and this determinand, this distance calculation circuit comprises:
A plurality of storage elements are used for storing this M the first light sensing signal and this M second a light sensing signal respectively;
Wherein this luminous/sensing control circuit sends this this determinand of detected light directive by producing a led pulse signal to control this luminescence component, makes this determinand produce this reflected light according to this; This luminous/sensing control circuit is pursuant to this shutter pulse signal by producing a shutter pulse signal with this M sensing cell of controlling this image sensor, and the energy of the light that converged of this first camera lens of sensing respectively is to produce this M light sensing signal according to this; This luminous/sensing control circuit reads signal by producing one, so that this M sensing cell of this image sensor is exported this M light sensing signal to this distance calculation circuit; This luminous/sensing control circuit receives this M the first light sensing signal and this M the second light sensing signal by producing a stage signal to control this distance calculation circuit, to judge this reflected light this image space on this image sensor, and according to this first known distance between this focal length, this luminescence component and this image sensor of this image space, this first camera lens, to calculate this testing distance between this distance measuring equipment and this determinand; Wherein when this stage signal was represented summation, this distance calculation circuit was designated as M positive light sensing signal with this M the first light sensing signal post that is received;
Wherein when this stage signal was represented noise, this distance calculation circuit was designated as M solarising with this M the second light sensing signal post that is received and surveys signal;
Wherein when this stage signal is represented computed range, this distance calculation circuit is surveyed signal subtraction with stored positive light sensing signal and the solarising of these a plurality of storage elements, and select the storage element of value maximum stored after subtracting each other, to judge this reflected light this image space on this image sensor according to this, and according to this first known distance between this focal length, this luminescence component and this image sensor of this image space, this first camera lens, to calculate this testing distance between this distance measuring equipment and this determinand.
12. distance measuring equipment as claimed in claim 11, it is characterized in that, wherein in this distance sensing during the stage, this luminous/sensing control circuit produces this led pulse signal and this shutter pulse signal simultaneously, produces this stage signal that this reads signal and expression summation then; During the stage, this luminous/sensing control circuit produces this shutter pulse signal in this noise sensing, produces this then and reads signal and this stage signal of representing noise;
Wherein when this led pulse signal indication was luminous, this luminescence component sent this detected light; When this shutter pulse signal indication is opened, the energy of the light that this M this first camera lens of sensing cell sensing converged; When this read signal indication and reads, M the first light sensing signal or M the second light sensing signal were exported in this M sensing cell output respectively;
Wherein in this distance sensing in the stage, this luminous/sensing control circuit produces this shutter pulse signal that this luminous led pulse signal of expression and expression are opened, and this that produces then that expression reads reads this stage signal of signal and expression summation; Wherein in distance sensing in the stage, the pulse width that this luminous/sensing control circuit produces this luminous led pulse signal of expression all equals one first known pulse width with the pulse width of this shutter pulse signal that expression is opened; In this noise sensing stage, this shutter pulse signal of unlatching is represented in this luminous/sensing control circuit generation, produces this this stage signal that reads signal and represent noise that expression is read then; The pulse width that this luminous/sensing control circuit produces this shutter pulse signal that expression opens in this noise sensing stage equals this first known pulse width; Produce this pulse width that reads signal that expression reads in this luminous/sensing control circuit in this distance sensing stage and in this noise sensing stage and all equal one second known pulse width.
13. distance measuring equipment as claimed in claim 11, it is characterized in that, wherein in this distance sensing during the stage, this luminous/sensing control circuit produces this led pulse signal and this shutter pulse signal simultaneously, produces this stage signal that this reads signal and expression summation then; During the stage, this luminous/sensing control circuit produces this shutter pulse signal in this noise sensing, produces this then and reads signal and this stage signal of representing noise;
Wherein the number of these a plurality of storage elements equals M; This distance calculation circuit mainly converges a K sensing cell that images in this M sensing cell according to the stored value maximum of a K storage element of this M storage element to judge this reflected light;
Wherein K represents positive integer, and K≤M;
Wherein this distance calculation circuit mainly converges this K the sensing cell that images in this M sensing cell according to reflected light, to calculate this image space according to following formula:
D CS=K×W PIX
D wherein CSRepresent this image space, W PIXRepresent a picture element width;
Wherein the width of each sensing cell of this M sensing cell all equals this picture element width;
Wherein when this stage signal is represented computed range, this distance calculation circuit according to following formula to calculate this testing distance:
D M=(D F×L)/D CS
D wherein MRepresent this testing distance, D FRepresent this focal length, the L of this first camera lens to represent this first known distance between this luminescence component and this image sensor.
14. one kind is used for proofreading and correct and utilizes the bearing calibration of a distance measuring equipment of image space difference with range finding, one luminescence component of this distance measuring equipment is launched detected light to a determinand, an and image sensor of this distance measuring equipment of reflected back, to obtain one first image space, this distance measuring equipment can be according to one first known distance between a focal length, this luminescence component and this image sensor of one first camera lens of this first image space, this distance measuring equipment, to calculate the testing distance between this distance measuring equipment and this determinand, this bearing calibration is characterised in that and comprises:
This luminescence component of this distance measuring equipment sends this detected light to one and proofreaies and correct thing, and this image sensor of this distance measuring equipment of reflected back, to draw one second image space;
Wherein the distance between this distance measuring equipment and this correction thing is one second known distance;
According to this second known distance, this second image space, to calculate a correction parameter of an assembly error angle that is used for proofreading and correct this distance measuring equipment; And
This distance measuring equipment according to this correction parameter to calculate this testing distance after calibrated.
15. bearing calibration as claimed in claim 14 wherein according to this second known distance, this second image space, is characterised in that with this correction parameter that calculates this assembly error angle that is used for proofreading and correct this distance measuring equipment to comprise:
According to this second known distance, this second image space, a correction parameter of a luminous error angle of being rotated with this detected light that calculates this luminescence component that is used for proofreading and correct this distance measuring equipment;
16. bearing calibration as claimed in claim 15, it is characterized in that, wherein according to this second known distance, this first image space, this correction parameter of this luminous error angle of being rotated with this detected light that calculates this luminescence component that is used for proofreading and correct this distance measuring equipment can calculate according to following formula:
D C1=1/[1/(D F×L)×D CSI+B];
D wherein C1Represent this second known distance, D CSIRepresent this second image space, B to represent this correction parameter, D FRepresent this focal length, the L of this first camera lens to represent this first known distance between this luminescence component and this image sensor;
Wherein this correction parameter can be represented by following formula with the relation of this luminous error angle:
B=tanθ LD/L;
θ wherein LDRepresent this luminous error angle;
Wherein this testing distance can draw according to following formula:
D M=1/[1/(D F×L)×D CS+B];
D wherein MRepresent this testing distance, D CSThis first image space when representative measures this determinand.
17. bearing calibration as claimed in claim 14 wherein according to this second known distance, this second image space, is characterised in that with this correction parameter that calculates this assembly error angle that is used for proofreading and correct this distance measuring equipment to comprise:
According to this second known distance, this second image space, with the one first sensing error angle that calculates this image sensor that is used for proofreading and correct this distance measuring equipment and a correction parameter of one second sensing error angle.
18. bearing calibration as claimed in claim 17, it is characterized in that, wherein according to this second known distance, this second image space, can calculate according to following formula with this first sensing error angle of calculating this image sensor that is used for proofreading and correct this distance measuring equipment and this correction parameter of this second sensing error angle:
D C2=1/(A×D CSJ);
D wherein C2Represent this second known distance, D CSJRepresent this second image space, A to represent this correction parameter;
Wherein the relation of this first sensing error angle of this correction parameter and this image sensor and this second sensing error angle can be represented by following formula:
A=(cosθ CS2×cosθ CS1)/(D F×L);
θ wherein CS1Represent this first sensing error angle, θ CS2Represent this second sensing error angle, D FRepresent this focal length, the L of this first camera lens to represent this first known distance between this luminescence component and this image sensor;
Wherein this testing distance can draw according to following formula:
D M=1/(A×D CS);
D wherein CSRepresent this image space, D MRepresent this testing distance.
CN 200910246754 2009-11-25 2009-11-25 Distance measuring device and correction method for distance measurement using imaging position difference Active CN102072718B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 200910246754 CN102072718B (en) 2009-11-25 2009-11-25 Distance measuring device and correction method for distance measurement using imaging position difference

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 200910246754 CN102072718B (en) 2009-11-25 2009-11-25 Distance measuring device and correction method for distance measurement using imaging position difference

Publications (2)

Publication Number Publication Date
CN102072718A true CN102072718A (en) 2011-05-25
CN102072718B CN102072718B (en) 2013-08-28

Family

ID=44031355

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 200910246754 Active CN102072718B (en) 2009-11-25 2009-11-25 Distance measuring device and correction method for distance measurement using imaging position difference

Country Status (1)

Country Link
CN (1) CN102072718B (en)

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI461656B (en) * 2011-12-01 2014-11-21 Ind Tech Res Inst Apparatus and method for sencing distance
CN104796613A (en) * 2011-09-28 2015-07-22 原相科技股份有限公司 video system
CN105783708A (en) * 2014-11-26 2016-07-20 财团法人工业技术研究院 Optical correction device and optical correction method
CN106569220A (en) * 2015-10-08 2017-04-19 恩斯迈电子(深圳)有限公司 Laser ranging correction method and device applying same
CN109470158A (en) * 2017-09-08 2019-03-15 株式会社东芝 Image processor and range unit
CN110068307A (en) * 2015-04-21 2019-07-30 原相科技股份有限公司 Range-measurement system and the method for measuring distance
CN112114328A (en) * 2019-06-21 2020-12-22 广州印芯半导体技术有限公司 Flight time distance measuring device
CN116660881A (en) * 2023-08-02 2023-08-29 荣耀终端有限公司 A parameter measuring method, distance measuring method and communication equipment

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07174549A (en) * 1993-11-24 1995-07-14 Olympus Optical Co Ltd Distance-measuring apparatus
CA2300400A1 (en) * 1999-03-22 2000-09-22 Michael George Taranowski Electronic optical target ranging and imaging
JP2002107145A (en) * 2000-10-03 2002-04-10 Olympus Optical Co Ltd Range finder and adjuster therefor
JP2002323315A (en) * 2001-04-26 2002-11-08 Olympus Optical Co Ltd Adjusting device for range finder
CN1273842C (en) * 2004-06-18 2006-09-06 中国科学院上海技术物理研究所 Intelligent self-adaptive laser scanning distance-measuring imaging device

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104796613A (en) * 2011-09-28 2015-07-22 原相科技股份有限公司 video system
TWI461656B (en) * 2011-12-01 2014-11-21 Ind Tech Res Inst Apparatus and method for sencing distance
US8971583B2 (en) 2011-12-01 2015-03-03 Industrial Technology Research Institute Distance measurement apparatus and method
CN105783708B (en) * 2014-11-26 2019-05-28 财团法人工业技术研究院 Optical correction device and optical correction method
CN105783708A (en) * 2014-11-26 2016-07-20 财团法人工业技术研究院 Optical correction device and optical correction method
CN110068307A (en) * 2015-04-21 2019-07-30 原相科技股份有限公司 Range-measurement system and the method for measuring distance
CN110068307B (en) * 2015-04-21 2021-09-17 原相科技股份有限公司 Distance measuring system and distance measuring method
CN106569220A (en) * 2015-10-08 2017-04-19 恩斯迈电子(深圳)有限公司 Laser ranging correction method and device applying same
CN109470158A (en) * 2017-09-08 2019-03-15 株式会社东芝 Image processor and range unit
CN112114328A (en) * 2019-06-21 2020-12-22 广州印芯半导体技术有限公司 Flight time distance measuring device
CN112114328B (en) * 2019-06-21 2024-06-11 广州印芯半导体技术有限公司 Flying time distance measuring device
CN116660881A (en) * 2023-08-02 2023-08-29 荣耀终端有限公司 A parameter measuring method, distance measuring method and communication equipment
CN116660881B (en) * 2023-08-02 2023-11-10 荣耀终端有限公司 Parameter measurement method, ranging method and communication equipment

Also Published As

Publication number Publication date
CN102072718B (en) 2013-08-28

Similar Documents

Publication Publication Date Title
TWI407081B (en) Distance-measuring device by means of difference of imaging location and calibrating method thereof
CN102650691B (en) Distance measuring system and method with correcting function
CN102072718A (en) Distance measuring device using imaging position difference for distance measurement and correction method thereof
US11650291B2 (en) LiDAR sensor
US9971024B2 (en) Lidar scanner calibration
CN102346030B (en) The method of the testing distance that foundation temperature correction range unit measures and device thereof
TWI443308B (en) Distance-measuring device, 3d image sensing device, and optical touch system
TWI420081B (en) Distance measuring system and distance measuring method
US9645681B2 (en) Optical touch display system
CN101520514A (en) Target and three-dimensional-shape measurement device using the same
CN113176579B (en) Light spot position self-adaptive searching method, time flight ranging system and ranging method
CN102095383A (en) Quick tree-walk detection device based on machine vision
TWI448666B (en) Calibrating method of calibrating measured distance of measured object measured by distance-measuring device according to ambient temperature and device thereof
CN102116863A (en) Infrared distance measuring device
CN116202428A (en) Laser measurement deviation correcting sensor and application thereof
TWI447355B (en) Distance-measuring system with correction function and method thereof
TWI476373B (en) Distance-measuring device by means of difference of imaging location and calibrating method thereof
CN115060292B (en) Bionic navigation visual sensor extinction ratio evaluation method based on sine fitting
CN113900113B (en) TOF sensing device and distance detection method thereof
TWI436254B (en) Optical touch display system
CN103438992A (en) Illuminometer with automatic positioning function
CN114485729A (en) Digital level sight line error and compensation error checking device and checking method
CN220153743U (en) Optical power testing device
JP4289382B2 (en) Monitoring device and imaging device.
RU2521203C1 (en) Method of detecting objects, measuring velocity, range and angular coordinates and apparatus for realising said method

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