[go: up one dir, main page]

TWI880360B - Laser sensing device and calibration method thereof - Google Patents

Laser sensing device and calibration method thereof Download PDF

Info

Publication number
TWI880360B
TWI880360B TW112136410A TW112136410A TWI880360B TW I880360 B TWI880360 B TW I880360B TW 112136410 A TW112136410 A TW 112136410A TW 112136410 A TW112136410 A TW 112136410A TW I880360 B TWI880360 B TW I880360B
Authority
TW
Taiwan
Prior art keywords
view
field
image
target
aspect ratio
Prior art date
Application number
TW112136410A
Other languages
Chinese (zh)
Other versions
TW202514522A (en
Inventor
吳東穎
陳俊吉
楊詠宜
李境嚴
Original Assignee
中國鋼鐵股份有限公司
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 中國鋼鐵股份有限公司 filed Critical 中國鋼鐵股份有限公司
Priority to TW112136410A priority Critical patent/TWI880360B/en
Publication of TW202514522A publication Critical patent/TW202514522A/en
Application granted granted Critical
Publication of TWI880360B publication Critical patent/TWI880360B/en

Links

Images

Landscapes

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

Abstract

A laser sensing device includes a laser source, an image sensor and a processor. The laser source is configured to emit a laser line to a target, and moves in a first direction. The image sensor is configured to face a space area at which the target locates and capture an object image. The processor is configured to: compute a reference object distance between the target and the image sensor from the object image; compute a field of view of a reference plane according to the reference object distance and a nearest field of view, a farthest field of view and a depth of field of the image sensor; and zoom in and out a length of a second direction which is vertical to the first direction in the object image according to a reference field of view, the field of view of the reference plane, a target image aspect ratio of a reference image corresponding to the target in the reference field of view and a physical aspect ratio of the target.

Description

雷射感測裝置及其校正方法Laser sensing device and calibration method thereof

本發明是有關於雷射感測,且特別是指一種雷射感測裝置及其校正方法。 The present invention relates to laser sensing, and in particular to a laser sensing device and a calibration method thereof.

雷射三角線掃描儀常被用來掃描表面具有深度變化的目標物,透過線掃描,可迅速擷取到目標物的三維結構。但在雷射三角線掃描儀內感測器之鏡頭的結構中,目標物與雷射三角線掃描儀之間的距離改變時,掃描之影像在橫向方向的解析度會不同,使得在二維平面尺寸比例產生形變。 Laser triangulation scanners are often used to scan targets with varying depths on their surfaces. Through line scanning, the three-dimensional structure of the target can be quickly captured. However, in the structure of the sensor lens in the laser triangulation scanner, when the distance between the target and the laser triangulation scanner changes, the resolution of the scanned image in the horizontal direction will be different, causing deformation of the two-dimensional plane size ratio.

目前為解決此問題,需使用精密校正運算,首先計算在不同深度距離時所分別對應的解析度,接著計算原始掃描之影像在每個深度距離所需進行轉換的比例,運算過程複雜且耗時。 Currently, to solve this problem, precise calibration calculations are required. First, the resolutions corresponding to different depths are calculated, and then the ratio of the original scanned image that needs to be converted at each depth is calculated. The calculation process is complex and time-consuming.

本發明是在於提供一種雷射感測裝置及其校正方 法,其透過由雷射感測裝置掃描目標物時,得到目標物相對於雷射感測裝置的參考物距,再依據雷射感測裝置的最近視野、最遠視野、景深等基本參數,以及目標物在最近視野或最遠視野被擷取之影像的目標物影像長寬比和目標物的實體長寬比來縮放調整影像的橫向長度比例,即可校正在此參考物距之橫向方向產生形變的影像,簡化目前藉由運算空間絕對距離數值之精密校正的繁瑣運算過程。本發明之校正方法更易於導入雷射感測裝置使用且此雷射感測裝置更易於維護。 The present invention provides a laser sensing device and a calibration method thereof. When the laser sensing device scans the target, the reference object distance of the target relative to the laser sensing device is obtained. Then, according to the basic parameters of the laser sensing device such as the nearest field of view, the farthest field of view, the depth of field, and the target image aspect ratio of the image captured in the nearest field of view or the farthest field of view and the physical aspect ratio of the target, the horizontal length ratio of the image is scaled and adjusted. The image deformed in the horizontal direction of the reference object distance can be corrected, simplifying the current cumbersome calculation process of precise calibration by calculating the absolute distance value in space. The calibration method of the present invention is easier to introduce into the laser sensing device and the laser sensing device is easier to maintain.

本發明之一態樣是在提供一種雷射感測裝置,其包含雷射源、影像感測器以及處理器。雷射源配置為朝向目標物發射線雷射光,並沿著第一方向移動。影像感測器配置為朝向目標物所在之空間區域擷取物件影像。處理器配置為進行下列操作:由物件影像計算出目標物相對於影像感測器的參考物距;依據參考物距及影像感測器的最近視野、最遠視野和景深計算出參考平面視野;以及依據基準視野、參考平面視野、目標物在基準視野對應之基準影像的目標物影像長寬比,以及目標物的實體長寬比來縮放調整物件影像在垂直第一方向之第二方向上的長度,其中目標物影像長寬比實質等於基準影像在第二方向的長度與第一方向的長度之比,實體長寬比實質等於目標物的實體在第二方向的長度與第一方向的長度之比。 One aspect of the present invention is to provide a laser sensing device, which includes a laser source, an image sensor and a processor. The laser source is configured to emit laser light toward a target object and move along a first direction. The image sensor is configured to capture an object image toward a spatial region where the target object is located. The processor is configured to perform the following operations: calculate the reference object distance of the target object relative to the image sensor from the object image; calculate the reference plane view according to the reference object distance and the nearest view, the farthest view and the depth of field of the image sensor; and scale and adjust the length of the object image in a second direction perpendicular to the first direction according to the reference view, the reference plane view, the target image aspect ratio of the reference image corresponding to the reference view, and the physical aspect ratio of the target object, wherein the target image aspect ratio is substantially equal to the ratio of the length of the reference image in the second direction to the length of the first direction, and the physical aspect ratio is substantially equal to the ratio of the length of the physical body of the target object in the second direction to the length of the first direction.

依據本發明的一實施例,在基準視野為最近視野時,處理器縮放調整物件影像在第二方向的長度之比例 R=(FOV(z1)/FOV(d1))(Do/Dd1);其中、FOV(z1)、FOV(d1)、Do以及Dd1分別代表參考平面視野、最近視野、實體長寬比以及基準視野為最近視野時所對應之基準影像的目標物影像長寬比。 According to an embodiment of the present invention, when the reference field of view is the closest field of view, the processor scales and adjusts the length ratio of the object image in the second direction by R=(FOV(z 1 )/FOV(d 1 ))(D o /D d1 ); wherein FOV(z 1 ), FOV(d 1 ), D o and D d1 respectively represent the reference plane field of view, the closest field of view, the entity aspect ratio and the target object image aspect ratio of the reference image corresponding to the reference image when the reference field of view is the closest field of view.

依據本發明的一實施例,在基準視野為最遠視野時,處理器縮放調整物件影像在第二方向的長度之比例R=(FOV(z1)/FOV(d2))(Do/Dd2);其中FOV(z1)、FOV(d2)、Do以及Dd2分別代表參考平面視野、最遠視野、實體長寬比以及目標物在最遠視野對應之基準影像的目標物影像長寬比。 According to an embodiment of the present invention, when the reference field of view is the farthest field of view, the processor scales and adjusts the length ratio of the object image in the second direction by R=(FOV(z 1 )/FOV(d 2 ))(D o /D d2 ); wherein FOV(z 1 ), FOV(d 2 ), D o and D d2 respectively represent the reference plane field of view, the farthest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the farthest field of view.

依據本發明的一實施例,處理器計算參考物距包含:擷取物件影像所對應的多個深度值;以及從此些深度值中選出對應至最多數量的深度值做為參考物距。 According to an embodiment of the present invention, the processor calculates the reference object distance by: capturing multiple depth values corresponding to the object image; and selecting the depth value corresponding to the largest number from these depth values as the reference object distance.

依據本發明的一實施例,處理器從此些深度值中選出對應至最多數量的深度值包含:將此些深度值代入高斯模型或高斯混合模型運算,以得到參考物距。 According to an embodiment of the present invention, the processor selects the depth value corresponding to the largest number from these depth values, including: substituting these depth values into a Gaussian model or a Gaussian mixture model to calculate and obtain a reference object distance.

依據本發明的一實施例,處理器計算出的參考平面視野

Figure 112136410-A0305-12-0003-1
;其中z1、FOV(d1)、FOV(d2)以及r分別代表參考物距、最近視野、最遠視野以及景深。 According to one embodiment of the present invention, the reference plane field of view calculated by the processor
Figure 112136410-A0305-12-0003-1
; wherein z 1 , FOV(d 1 ), FOV(d 2 ) and r represent the reference object distance, the closest field of view, the farthest field of view and the depth of field respectively.

本發明之另一態樣是在提供一種雷射感測裝置的校正方法,其包含:利用雷射感測裝置朝向目標物發射線雷射光,並沿著第一方向移動,且擷取目標物所在之空間區域的物件影像;由物件影像計算出目標物相對於雷射感 測裝置的參考物距;依據參考物距及雷射感測裝置的最近視野、最遠視野和景深計算出參考平面視野;以及依據基準視野、參考平面視野、目標物在基準視野對應之基準影像的目標物影像長寬比,以及目標物的實體長寬比來縮放調整物件影像在垂直第一方向之第二方向上的長度,其中目標物影像長寬比實質等於基準影像在第二方向的長度與第一方向的長度之比,實體長寬比實質等於目標物的實體在第二方向的長度與第一方向的長度之比。 Another aspect of the present invention is to provide a calibration method for a laser sensing device, which comprises: using the laser sensing device to emit a laser beam toward a target object, and moving along a first direction, and capturing an object image of a spatial region where the target object is located; calculating a reference object distance of the target object relative to the laser sensing device from the object image; calculating a reference plane field of view based on the reference object distance and the nearest field of view, the farthest field of view, and the depth of field of the laser sensing device; and calculating a reference plane field of view based on the reference object distance and the nearest field of view, the farthest field of view, and the depth of field of the laser sensing device. The length of the object image in the second direction perpendicular to the first direction is scaled and adjusted according to the reference field of view, the reference plane field of view, the target image aspect ratio of the reference image corresponding to the reference field of view, and the physical aspect ratio of the target, wherein the target image aspect ratio is substantially equal to the ratio of the length of the reference image in the second direction to the length in the first direction, and the physical aspect ratio is substantially equal to the ratio of the length of the entity of the target in the second direction to the length in the first direction.

依據本發明的一實施例,在基準視野為最近視野時,更包含:縮放調整物件影像在第二方向的長度之比例R=(FOV(z1)/FOV(d1))(Do/Dd1);其中FOV(z1)、FOV(d1)、Do以及Dd1分別代表參考平面視野、最近視野、實體長寬比以及目標物在最近視野對應之基準影像的目標物影像長寬比。 According to an embodiment of the present invention, when the reference field of view is the closest field of view, it further includes: scaling and adjusting the length ratio of the object image in the second direction R=(FOV(z 1 )/FOV(d 1 ))(D o /D d1 ); wherein FOV(z 1 ), FOV(d 1 ), D o and D d1 respectively represent the reference plane field of view, the closest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the target object in the closest field of view.

依據本發明的一實施例,在基準視野為最遠視野時,更包含:縮放調整物件影像在第二方向的長度之比例R=(FOV(z1)/FOV(d2))(Do/Dd2);其中FOV(z1)、FOV(d2)、Do以及Dd2分別代表參考平面視野、最遠視野、實體長寬比以及目標物在最遠視野對應之基準影像的目標物影像長寬比。 According to an embodiment of the present invention, when the reference field of view is the farthest field of view, it further includes: scaling and adjusting the length ratio of the object image in the second direction R=(FOV(z 1 )/FOV(d 2 ))(D o /D d2 ); wherein FOV(z 1 ), FOV(d 2 ), D o and D d2 respectively represent the reference plane field of view, the farthest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the farthest field of view.

依據本發明的一實施例,計算出的參考平面視野

Figure 112136410-A0305-12-0004-3
;其中z1、FOV(d1)、FOV(d2)以及r分別代表參考物距、最近視野、最遠視野以及景深。 According to one embodiment of the present invention, the calculated reference plane view
Figure 112136410-A0305-12-0004-3
; wherein z 1 , FOV(d 1 ), FOV(d 2 ) and r represent the reference object distance, the closest field of view, the farthest field of view and the depth of field respectively.

100:雷射感測裝置 100: Laser sensor device

110:雷射源 110: Laser source

120:影像感測器 120: Image sensor

130:處理器 130: Processor

200:目標物 200: Target

300:雷射感測裝置的校正方法 300: Calibration method of laser sensing device

FOV(d1):最近視野 FOV(d 1 ): closest field of view

FOV(d2):最遠視野 FOV(d 2 ): Maximum field of view

lcx:長度 l cx : length

lfx:長度 l fx :length

lox:長度 l ox : length

lcy:長度 l cy : length

lfy:長度 l fy : length

loy:長度 l oy : length

r:景深 r: Depth of field

S310,S320,S330:步驟 S310, S320, S330: Steps

z1:參考物距 z 1 : reference object distance

為了更完整了解實施例及其優點,現參照結合所附圖式所做之下列描述,其中:圖1為依據本發明實施例之雷射感測裝置掃描目標物的示意圖;圖2為依據本發明實施例之雷射感測裝置的影像感測器之鏡頭的景深及視野範圍的示意圖;圖3為目標物的平面俯視圖;圖4為影像感測器在最近視野範圍所擷取的目標物之物件影像的示意圖;圖5為影像感測器在最遠視野範圍所擷取的目標物之物件影像的示意圖;圖6為依據本發明實施例之雷射感測裝置的校正方法的流程示意圖;以及圖7為物件影像所對應的多個深度值與此些深度值所分別對應的數量的示意圖。 In order to more fully understand the embodiments and their advantages, reference is now made to the following description in conjunction with the attached figures, wherein: FIG. 1 is a schematic diagram of a laser sensing device scanning a target according to an embodiment of the present invention; FIG. 2 is a schematic diagram of the depth of field and the field of view of the lens of the image sensor of the laser sensing device according to an embodiment of the present invention; FIG. 3 is a plan view of the target; FIG. 4 is a schematic diagram of an object image of the target captured by the image sensor in the nearest field of view; FIG. 5 is a schematic diagram of an object image of the target captured by the image sensor in the farthest field of view; FIG. 6 is a schematic diagram of the process of the calibration method of the laser sensing device according to an embodiment of the present invention; and FIG. 7 is a schematic diagram of multiple depth values corresponding to the object image and the quantities corresponding to these depth values.

以下仔細討論本發明的實施例。然而,可以理解的是,實施例提供許多可應用的概念,其可實施於各式各樣的特定內容中。所討論、揭示之實施例僅供說明,並非用以限定本發明之範圍。 The following is a detailed discussion of embodiments of the present invention. However, it is understood that the embodiments provide many applicable concepts that can be implemented in a variety of specific contexts. The embodiments discussed and disclosed are for illustrative purposes only and are not intended to limit the scope of the present invention.

圖1為依據本發明實施例之雷射感測裝置100的示意圖。雷射感測裝置100用於掃描表面具有深度變化的 目標物200,其包含雷射源110、影像感測器120和處理器130。 FIG1 is a schematic diagram of a laser sensing device 100 according to an embodiment of the present invention. The laser sensing device 100 is used to scan a target object 200 having a depth variation on the surface, and includes a laser source 110, an image sensor 120, and a processor 130.

如圖1所示,雷射源110配置為朝向目標物200發射線雷射光,並沿著方向Y移動,以使線雷射光完整掃過目標物200,其中線雷射光為沿著垂直於方向Y之方向X延伸。雷射感測裝置100還可包含移動機構(圖未示);藉由移動機構帶動雷射源110和影像感測器120,雷射源110和影像感測器120得以沿著方向Y對目標物200進行雷射感測。在一些實施例中,目標物200可放置於移動平台上;藉由移動平台帶動目標物200沿著相反於方向Y的方向移動,雷射源110和影像感測器120亦得以沿著方向Y對目標物200進行雷射感測。 As shown in FIG. 1 , the laser source 110 is configured to emit a line laser light toward the target 200 and move along the direction Y so that the line laser light completely scans the target 200, wherein the line laser light extends along the direction X perpendicular to the direction Y. The laser sensing device 100 may also include a moving mechanism (not shown); the moving mechanism drives the laser source 110 and the image sensor 120, and the laser source 110 and the image sensor 120 are able to perform laser sensing on the target 200 along the direction Y. In some embodiments, the target 200 may be placed on a moving platform; the moving platform drives the target 200 to move in a direction opposite to the direction Y, and the laser source 110 and the image sensor 120 are also able to perform laser sensing on the target 200 along the direction Y.

影像感測器120配置為朝向目標物200所在之空間區域擷取物件影像,其中物件影像為影像感測器120在線雷射光完整掃過目標物200後所擷取到的影像。影像感測器120包含鏡頭和感光元件(圖未示),其中鏡頭用以聚集光線至感光元件,而感光元件用以感測且接收從目標物200反射且經由鏡頭聚集的線雷射光,進而產生影像。感光元件可以是電荷耦合元件(Charge Coupled Device,CCD)、互補式金屬氧化物半導體(Complementary Metal-Oxide Semiconductor,CMOS)元件或是其他感光元件。 The image sensor 120 is configured to capture an object image facing the spatial area where the target 200 is located, wherein the object image is the image captured by the image sensor 120 after the line laser light completely scans the target 200. The image sensor 120 includes a lens and a photosensitive element (not shown), wherein the lens is used to focus light to the photosensitive element, and the photosensitive element is used to sense and receive the line laser light reflected from the target 200 and focused by the lens, thereby generating an image. The photosensitive element can be a charge coupled device (CCD), a complementary metal oxide semiconductor (CMOS) element, or other photosensitive elements.

處理器130電性連接雷射源110和影像感測器120。處理器130可控制雷射源110對目標物200投射 線雷射光,以及接收從影像感測器120傳來之物件影像,進而從物件影像計算出目標物200的三維結構資訊,其中三維結構資訊包含二維尺寸資訊及深度資訊。 The processor 130 is electrically connected to the laser source 110 and the image sensor 120. The processor 130 can control the laser source 110 to project a laser beam to the target 200, and receive an object image from the image sensor 120, and then calculate the three-dimensional structure information of the target 200 from the object image, wherein the three-dimensional structure information includes two-dimensional size information and depth information.

圖2為依據本發明實施例之雷射感測裝置100的影像感測器120之鏡頭的景深r及視野範圍的示意圖。影像感測器120之鏡頭的景深r所對應的最近視野FOV(d1)及最遠視野FOV(d2)的範圍呈梯形狀。如圖1和圖2所示,若目標物200與鏡頭的距離(深度)(在方向Z)在景深r的範圍內,從目標物200反射之線雷射光皆能被鏡頭聚集至感光元件而成像。然而,隨著目標物200與鏡頭的距離改變時,影像感測器120擷取之物件影像在方向X的解析度也會跟著改變而產生形變。 FIG2 is a schematic diagram of the depth of field r and the field of view of the lens of the image sensor 120 of the laser sensing device 100 according to an embodiment of the present invention. The range of the closest field of view FOV ( d1 ) and the farthest field of view FOV ( d2 ) corresponding to the depth of field r of the lens of the image sensor 120 is trapezoidal. As shown in FIG1 and FIG2, if the distance (depth) between the target object 200 and the lens (in the direction Z) is within the range of the depth of field r, the linear laser light reflected from the target object 200 can be focused by the lens to the photosensitive element to form an image. However, as the distance between the target object 200 and the lens changes, the resolution of the object image captured by the image sensor 120 in the direction X will also change and produce deformation.

圖3為目標物200的平面俯視圖,且圖4和圖5分別為影像感測器120在最近視野FOV(d1)和最遠視野FOV(d2)範圍所擷取的目標物200之物件影像的示意圖。在最近視野FOV(d1)範圍時,物件影像在方向X的長度lcx(最近視野之物件影像在方向X的長度)長於目標物200在方向X的長度lox(目標物在方向X的長度),且物件影像在方向Y的長度lcy(最近視野之物件影像在方向Y的長度)相等於目標物200在方向Y的長度loy(目標物在方向Y的長度);在最遠視野FOV(d2)範圍時,物件影像在方向X的長度lfx(最遠視野之物件影像在方向X的長度)短於目標物200在方向X的長度lox,且物件影像在方向Y的長度lfy(最遠視野之物件影像在方向Y 的長度)相等於目標物200在方向Y的長度loy。因此,物件影像在方向X的長度會隨著目標物200與鏡頭的距離不同而產生不同比例的形變。 FIG. 3 is a plan view of the target object 200 , and FIG. 4 and FIG. 5 are schematic diagrams of the object images of the target object 200 captured by the image sensor 120 in the range of the closest field of view FOV (d 1 ) and the farthest field of view FOV (d 2 ), respectively. In the range of the closest field of view FOV (d 1 ), the length of the object image in the direction X, l cx (the length of the object image in the closest field of view in the direction X) is longer than the length of the target 200 in the direction X, l ox (the length of the target in the direction X), and the length of the object image in the direction Y, l cy (the length of the object image in the closest field of view in the direction Y) is equal to the length of the target 200 in the direction Y, l oy (the length of the target in the direction Y); in the range of the farthest field of view FOV (d 2 ), the length of the object image in the direction X, l fx (the length of the object image in the farthest field of view in the direction X) is shorter than the length of the target 200 in the direction X, l ox , and the length of the object image in the direction Y, l fy (the length of the object image in the farthest field of view in the direction Y) is equal to the length of the target 200 in the direction Y, l Therefore, the length of the object image in the direction X will produce different proportions of deformation as the distance between the target object 200 and the lens changes .

圖6為依據本發明實施例之雷射感測裝置的校正方法300的流程示意圖。以下有關雷射感測裝置的校正方法300可經由雷射感測裝置100內的處理器130執行,但所屬技術領域中具有通常知識者亦可依據以下說明,使用其他處理器來執行雷射感測裝置的校正方法300。首先,在步驟S310中,由物件影像計算出目標物200相對於雷射感測裝置100的影像感測器120的參考物距z1FIG6 is a flowchart of a laser sensing device calibration method 300 according to an embodiment of the present invention. The laser sensing device calibration method 300 described below can be executed by the processor 130 in the laser sensing device 100, but a person skilled in the art can also use other processors to execute the laser sensing device calibration method 300 according to the following description. First, in step S310, a reference object distance z 1 of the target object 200 relative to the image sensor 120 of the laser sensing device 100 is calculated from the object image.

圖7為物件影像所對應的多個深度值(距離)與此些深度值所分別對應的數量的示意圖。進一步地,在步驟S310中,可先擷取物件影像所對應的多個深度值。亦即,擷取完整掃過目標物200之物件影像的此些深度值。接著,從此些深度值中選出對應至最多數量的深度值做為參考物距z1。也就是,從物件影像的此些深度值的集中度來判斷目標物200與影像感測器120之間的距離,從而找出參考物距z1。舉例來說,可將物件影像的此些深度值代入高斯模型(Gaussian Model)或高斯混合模型(Gaussian Mixture Model)運算,以利用高斯模型或高斯混合模型找到統計直方圖的最大值,而得到參考物距z1。如圖7所示,物件影像所對應的此些深度值呈現高斯分布,參考物距z1為高斯分布的高點,即為此些深度值中對應數量最多的深度值。 FIG. 7 is a schematic diagram of multiple depth values (distances) corresponding to an object image and the quantities corresponding to these depth values. Further, in step S310, multiple depth values corresponding to the object image may be captured first. That is, these depth values of the object image that completely scans the target object 200 are captured. Then, the depth value corresponding to the largest quantity is selected from these depth values as the reference object distance z 1 . That is, the distance between the target object 200 and the image sensor 120 is determined from the concentration of these depth values of the object image, thereby finding the reference object distance z 1 . For example, these depth values of the object image can be substituted into a Gaussian model or a Gaussian mixture model to find the maximum value of the statistical histogram using the Gaussian model or the Gaussian mixture model, thereby obtaining a reference object distance z 1 . As shown in FIG7 , these depth values corresponding to the object image present a Gaussian distribution, and the reference object distance z 1 is the high point of the Gaussian distribution, i.e., the depth value with the largest number of corresponding values among these depth values.

配合參考圖2,接著,在步驟S320中,依據參考物距z1及影像感測器120的最近視野FOV(d1)、最遠視野FOV(d2)和景深r計算出參考物距z1所對應的參考平面視野FOV(z1)。參考平面視野的公式如下所示:

Figure 112136410-A0305-12-0009-5
其中,FOV(z1)、z1、FOV(d1)、FOV(d2)以及r分別代表參考平面視野、參考物距、最近視野、最遠視野以及景深。 With reference to FIG. 2 , then, in step S320 , the reference plane field of view FOV (z 1 ) corresponding to the reference object distance z 1 is calculated according to the reference object distance z 1 and the closest field of view FOV (d 1 ), the farthest field of view FOV (d 2 ) and the depth of field r of the image sensor 120 . The formula of the reference plane field of view is as follows:
Figure 112136410-A0305-12-0009-5
Here, FOV(z 1 ), z 1 , FOV(d 1 ), FOV(d 2 ) and r represent the reference plane field of view, the reference object distance, the closest field of view, the farthest field of view and the depth of field, respectively.

在步驟S330中,依據基準視野、參考平面視野FOV(z1)、目標物200在基準視野對應之基準影像的目標物影像長寬比,以及目標物200的實體長寬比來縮放調整物件影像在方向X上的長度,其中基準視野為最近視野FOV(d1)或最遠視野FOV(d2),基準影像為影像感測器120在基準視野時所擷取目標物200的影像,目標物影像長寬比實質等於基準影像在方向X的長度與方向Y的長度之比,且實體長寬比實質等於目標物200的實體在方向X的長度與方向Y的長度之比。 In step S330, the length of the object image in the direction X is scaled and adjusted according to the reference field of view, the reference plane field of view FOV (z 1 ), the target image aspect ratio of the reference image corresponding to the target 200 in the reference field of view, and the physical aspect ratio of the target 200, wherein the reference field of view is the nearest field of view FOV (d 1 ) or the farthest field of view FOV (d 2 ), the reference image is the image of the target 200 captured by the image sensor 120 when in the reference field of view, the target image aspect ratio is substantially equal to the ratio of the length of the reference image in the direction X to the length in the direction Y, and the physical aspect ratio is substantially equal to the ratio of the length of the physical body of the target 200 in the direction X to the length in the direction Y.

舉例來說,在基準視野為最近視野FOV(d1)時,處理器130縮放調整物件影像在方向X的長度之比例的公式如下所示:R=(FOV(z1)/FOV(d1))(Do/Dd1),其中,R、Do以及Dd1分別代表比例、實體長寬比以及基準視野為最近視野時所對應之基準影像的目標物影像長寬比。 For example, when the reference field of view is the closest field of view FOV( d1 ), the processor 130 scales and adjusts the length ratio of the object image in the direction X by the following formula: R=(FOV( z1 )/FOV( d1 ))( D0 / Dd1 ), wherein R, D0 and Dd1 respectively represent the ratio, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the reference image when the reference field of view is the closest field of view.

因此,利用參考平面視野FOV(z1)與基準視野(最近視野FOV(d1))的比值以及實體長寬比Do與目標物影像長寬比Dd1(最近視野FOV(d1)時的目標物影像長寬比Dd1)的比值縮放調整物件影像在方向X的長度,可將物件影像在二維尺寸調整至與目標物200的實體一樣的比例。 Therefore, by scaling and adjusting the length of the object image in the direction X using the ratio of the reference plane field of view FOV (z 1 ) to the benchmark field of view (closest field of view FOV (d 1 )) and the ratio of the entity aspect ratio Do to the target image aspect ratio D d1 (target image aspect ratio D d1 at the closest field of view FOV (d 1 )), the object image can be adjusted in two-dimensional size to the same ratio as the entity of the target 200 .

例如,在圖3中,目標物顯示「ABC」實體長寬比Do(長度lox/長度loy)為3/1。在圖4中,最近視野FOV(d1)時所對應之基準影像「ABC」的目標物影像長寬比Dd1(長度lcx/長度lcy)為6/1。將最近視野FOV(d1)所對應之基準影像的目標物影像長寬比Dd1調整至與實體長寬比Do一致時需縮小兩倍。 For example, in Figure 3, the physical aspect ratio Do (length l ox /length l oy ) of the target display "ABC" is 3/1. In Figure 4, the target image aspect ratio D d1 (length l cx /length l cy ) of the reference image "ABC" corresponding to the closest field of view FOV (d 1 ) is 6/1. To adjust the target image aspect ratio D d1 of the reference image corresponding to the closest field of view FOV (d 1 ) to be consistent with the physical aspect ratio Do, it needs to be reduced by two times.

在基準視野為最遠視野FOV(d2)時,處理器130縮放調整物件影像在方向X的長度之比例的公式如下所示:R=(FOV(z1)/FOV(d2))(Do/Dd2),其中,Dd2代表基準視野為最遠視野時所對應之基準影像的目標物影像長寬比。 When the reference field of view is the farthest field of view FOV( d2 ), the processor 130 scales and adjusts the length ratio of the object image in the direction X by the following formula: R=(FOV( z1 )/FOV( d2 ))( D0 / Dd2 ), wherein Dd2 represents the target image aspect ratio of the reference image corresponding to the farthest field of view.

類似於上述說明,利用參考平面視野FOV(z1)與基準視野(最遠視野FOV(d2))的比值以及實體長寬比Do與目標物影像長寬比Dd2(最遠視野FOV(d2)時的目標物影像長寬比Dd2)的比值縮放調整物件影像在方向X的長度,可將物件影像在二維尺寸調整至與目標物200的實體一樣的比例。 Similar to the above description, the length of the object image in the direction X is scaled and adjusted using the ratio of the reference plane field of view FOV (z 1 ) to the benchmark field of view (the farthest field of view FOV (d 2 )) and the ratio of the entity aspect ratio Do to the target image aspect ratio D d2 (the target image aspect ratio D d2 at the farthest field of view FOV (d 2 )). The object image can be adjusted in two-dimensional size to the same ratio as the entity of the target 200.

例如,在圖5中,最遠視野FOV(d2)時所對應之基準影像「ABC」的目標物影像長寬比Dd2(長度lfx/長度lfy)為1.5/1。將最遠視野FOV(d2)所對應之基準影像的目標物影像長寬比Dd2調整至與實體長寬比Do一致時需放大兩倍。 For example, in FIG5 , the target image aspect ratio D d2 (length l fx /length l fy ) of the reference image "ABC" corresponding to the farthest field of view FOV (d 2 ) is 1.5/1. To adjust the target image aspect ratio D d2 of the reference image corresponding to the farthest field of view FOV (d 2 ) to be consistent with the physical aspect ratio D o , it is necessary to magnify it twice.

需補充說明的是,處理器130擷取之此些深度值,以及計算參考平面視野FOV(z1)、縮放之比例R等,可以位元直接儲存、計算或只計算相對比例,不須先轉換為實際物理值(空間絕對距離)才進行處理,因此,大幅減少處理器130的處理時間。 It should be noted that the depth values captured by the processor 130, as well as the calculation of the reference plane field of view FOV (z 1 ), the scaling ratio R, etc., can be directly stored and calculated in bits or only the relative ratio can be calculated without first converting to actual physical values (absolute spatial distance) for processing, thereby greatly reducing the processing time of the processor 130.

綜上所述,本發明之雷射感測裝置及雷射感測裝置的校正方法可免去藉由運算空間絕對距離數值之精密校正的繁瑣運算過程,即可校正影像在參考物距時之橫向方向所產生的形變,且更易於維護及導入使用。 In summary, the laser sensing device and the calibration method of the laser sensing device of the present invention can avoid the tedious calculation process of precise calibration by calculating the absolute distance value in space, and can calibrate the deformation of the image in the horizontal direction when referring to the object distance, and is easier to maintain and introduce for use.

雖然本揭露已以實施例揭露如上,然其並非用以限定本揭露,任何所屬技術領域中具有通常知識者,在不脫離本揭露的精神和範圍內,當可作些許的更動與潤飾,故本揭露的保護範圍當視後附的申請專利範圍所界定者為準。 Although the present disclosure has been disclosed as above by way of embodiments, it is not intended to limit the present disclosure. Any person with ordinary knowledge in the relevant technical field may make some changes and modifications within the spirit and scope of the present disclosure. Therefore, the protection scope of the present disclosure shall be subject to the scope defined by the attached patent application.

100:雷射感測裝置 100: Laser sensor device

110:雷射源 110: Laser source

120:影像感測器 120: Image sensor

130:處理器 130: Processor

200:目標物 200: Target

Claims (9)

一種雷射感測裝置,包含: 一雷射源,配置為朝向一目標物發射一線雷射光,並沿著一第一方向移動; 一影像感測器,配置為朝向該目標物所在之一空間區域擷取一物件影像;以及 一處理器,配置為進行下列操作: 由該物件影像計算出該目標物相對於該影像感測器的一參考物距; 依據該參考物距及該影像感測器的一最近視野、一最遠視野和一景深計算出一參考平面視野;以及 依據一基準視野、該參考平面視野、該目標物在該基準視野對應之一基準影像的一目標物影像長寬比,以及該目標物的一實體長寬比來縮放調整該物件影像在垂直該第一方向之一第二方向上的長度,其中該目標物影像長寬比實質等於該基準影像在該第二方向的長度與該第一方向的長度之比,該實體長寬比實質等於該目標物的一實體在該第二方向的長度與該第一方向的長度之比; 其中該處理器計算該參考物距包含: 擷取該物件影像所對應的複數個深度值;以及 從該些深度值中選出對應至最多數量的該深度值做為該參考物距。 A laser sensing device comprises: A laser source configured to emit a line of laser light toward a target object and move along a first direction; An image sensor configured to capture an object image toward a spatial region where the target object is located; and A processor configured to perform the following operations: Calculate a reference object distance of the target object relative to the image sensor from the object image; Calculate a reference plane field of view based on the reference object distance and a nearest field of view, a farthest field of view and a depth of field of the image sensor; and The length of the object image in a second direction perpendicular to the first direction is scaled and adjusted according to a reference field of view, the reference plane field of view, a target image aspect ratio of a reference image corresponding to the reference field of view, and a physical aspect ratio of the target, wherein the target image aspect ratio is substantially equal to the ratio of the length of the reference image in the second direction to the length in the first direction, and the physical aspect ratio is substantially equal to the ratio of the length of a physical body of the target in the second direction to the length in the first direction; wherein the processor calculates the reference object distance including: capturing a plurality of depth values corresponding to the object image; and selecting the depth value corresponding to the largest number from the depth values as the reference object distance. 如請求項1所述之雷射感測裝置,其中在該基準視野為該最近視野時,該處理器縮放調整該物件影像在該第二方向的長度之一比例 ; 其中FOV(z 1)、FOV(d 1)、D o以及D d1分別代表該參考平面視野、該最近視野、該實體長寬比以及該基準視野為該最近視野時所對應之該基準影像的該目標物影像長寬比。 The laser sensing device as claimed in claim 1, wherein when the reference field of view is the closest field of view, the processor scales and adjusts a ratio of the length of the object image in the second direction ; wherein FOV(z 1 ), FOV(d 1 ), D o and D d1 respectively represent the reference plane field of view, the closest field of view, the entity aspect ratio and the target object image aspect ratio of the reference image corresponding to the reference image when the reference field of view is the closest field of view. 如請求項1所述之雷射感測裝置,其中在該基準視野為該最遠視野時,該處理器縮放調整該物件影像在該第二方向的長度之一比例 ; 其中FOV(z 1)、FOV(d 2)、D o以及D d2分別代表該參考平面視野、該最遠視野、該實體長寬比以及該目標物在該最遠視野對應之該基準影像的該目標物影像長寬比。 The laser sensing device as claimed in claim 1, wherein when the reference field of view is the farthest field of view, the processor scales and adjusts a ratio of the length of the object image in the second direction ; wherein FOV(z 1 ), FOV(d 2 ), D o and D d2 respectively represent the reference plane field of view, the farthest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the farthest field of view. 如請求項1所述之雷射感測裝置,其中該處理器從該些深度值中選出對應至最多數量的該深度值包含: 將該些深度值代入一高斯模型或一高斯混合模型運算,以得到該參考物距。 The laser sensing device as described in claim 1, wherein the processor selects the depth value corresponding to the largest number from the depth values, including: Substituting the depth values into a Gaussian model or a Gaussian mixture model to obtain the reference object distance. 如請求項1所述之雷射感測裝置,其中該處理器計算出的該參考平面視野 ; 其中z 1、FOV(d 1)、FOV(d 2)以及r分別代表該參考物距、該最近視野、該最遠視野以及該景深。 The laser sensing device as claimed in claim 1, wherein the reference plane field of view calculated by the processor ; wherein z 1 , FOV(d 1 ), FOV(d 2 ) and r represent the reference object distance, the closest field of view, the farthest field of view and the depth of field respectively. 一種雷射感測裝置的校正方法,包含: 利用一雷射感測裝置朝向一目標物發射一線雷射光,並沿著一第一方向移動,且擷取該目標物所在之一空間區域的一物件影像; 由該物件影像計算出該目標物相對於該雷射感測裝置的一參考物距; 依據該參考物距及該雷射感測裝置的一最近視野、一最遠視野和一景深計算出一參考平面視野;以及 依據一基準視野、該參考平面視野、該目標物在該基準視野對應之一基準影像的一目標物影像長寬比,以及該目標物的一實體長寬比來縮放調整該物件影像在垂直該第一方向之一第二方向上的長度,其中該目標物影像長寬比實質等於該基準影像在該第二方向的長度與該第一方向的長度之比,該實體長寬比實質等於該目標物的一實體在該第二方向的長度與該第一方向的長度之比; 其中計算該參考物距包含: 擷取該物件影像所對應的複數個深度值;以及 從該些深度值中選出對應至最多數量的該深度值做為該參考物距。 A calibration method for a laser sensing device, comprising: Using a laser sensing device to emit a line of laser light toward a target object, and moving along a first direction, and capturing an object image in a spatial region where the target object is located; Calculating a reference object distance of the target object relative to the laser sensing device from the object image; Calculating a reference plane field of view based on the reference object distance and a closest field of view, a farthest field of view, and a depth of field of the laser sensing device; and The length of the object image in a second direction perpendicular to the first direction is scaled and adjusted according to a reference field of view, the reference plane field of view, a target image aspect ratio of a reference image corresponding to the reference field of view, and a physical aspect ratio of the target, wherein the target image aspect ratio is substantially equal to the ratio of the length of the reference image in the second direction to the length in the first direction, and the physical aspect ratio is substantially equal to the ratio of the length of a physical body of the target in the second direction to the length in the first direction; Wherein calculating the reference object distance includes: Capturing a plurality of depth values corresponding to the object image; and Selecting the depth value corresponding to the largest number from the depth values as the reference object distance. 如請求項6所述之雷射感測裝置的校正方法,其中在該基準視野為該最近視野時,更包含: 縮放調整該物件影像在該第二方向的長度之一比例 ; 其中FOV(z 1)、FOV(d 1)、D o以及D d1分別代表該參考平面視野、該最近視野、該實體長寬比以及該目標物在該最近視野對應之該基準影像的該目標物影像長寬比。 The calibration method of the laser sensing device as described in claim 6, wherein when the reference field of view is the closest field of view, the method further comprises: scaling and adjusting a ratio of the length of the object image in the second direction ; wherein FOV(z 1 ), FOV(d 1 ), D o and D d1 represent the reference plane field of view, the closest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the target in the closest field of view respectively. 如請求項6所述之雷射感測裝置的校正方法,其中在該基準視野為該最遠視野時,更包含: 縮放調整該物件影像在該第二方向的長度之一比例 ; 其中FOV(z 1)、FOV(d 2)、D o以及D d2分別代表該參考平面視野、該最遠視野、該實體長寬比以及該目標物在該最遠視野對應之該基準影像的該目標物影像長寬比。 The calibration method of the laser sensing device as described in claim 6, wherein when the reference field of view is the farthest field of view, the method further comprises: scaling and adjusting a ratio of the length of the object image in the second direction ; wherein FOV(z 1 ), FOV(d 2 ), D o and D d2 respectively represent the reference plane field of view, the farthest field of view, the entity aspect ratio and the target image aspect ratio of the reference image corresponding to the farthest field of view. 如請求項6所述之雷射感測裝置的校正方法,其中計算出的該參考平面視野 ; 其中z 1、FOV(d 1)、FOV(d 2)以及r分別代表該參考物距、該最近視野、該最遠視野以及該景深。 A method for calibrating a laser sensing device as described in claim 6, wherein the reference plane field of view calculated ; wherein z 1 , FOV(d 1 ), FOV(d 2 ) and r represent the reference object distance, the closest field of view, the farthest field of view and the depth of field respectively.
TW112136410A 2023-09-23 2023-09-23 Laser sensing device and calibration method thereof TWI880360B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW112136410A TWI880360B (en) 2023-09-23 2023-09-23 Laser sensing device and calibration method thereof

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW112136410A TWI880360B (en) 2023-09-23 2023-09-23 Laser sensing device and calibration method thereof

Publications (2)

Publication Number Publication Date
TW202514522A TW202514522A (en) 2025-04-01
TWI880360B true TWI880360B (en) 2025-04-11

Family

ID=96141676

Family Applications (1)

Application Number Title Priority Date Filing Date
TW112136410A TWI880360B (en) 2023-09-23 2023-09-23 Laser sensing device and calibration method thereof

Country Status (1)

Country Link
TW (1) TWI880360B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106471803A (en) * 2014-12-04 2017-03-01 深圳市大疆创新科技有限公司 Imaging system and method
TWI660212B (en) * 2014-07-28 2019-05-21 以色列商奧寶科技股份有限公司 Auto-focus system
CN113870336A (en) * 2021-09-26 2021-12-31 深圳市银星智能科技股份有限公司 Distance determination method and device, intelligent equipment and storage medium
TWI758368B (en) * 2016-12-07 2022-03-21 美商麥吉克艾公司 Distance sensor including adjustable focus imaging sensor

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI660212B (en) * 2014-07-28 2019-05-21 以色列商奧寶科技股份有限公司 Auto-focus system
CN106471803A (en) * 2014-12-04 2017-03-01 深圳市大疆创新科技有限公司 Imaging system and method
TWI758368B (en) * 2016-12-07 2022-03-21 美商麥吉克艾公司 Distance sensor including adjustable focus imaging sensor
CN113870336A (en) * 2021-09-26 2021-12-31 深圳市银星智能科技股份有限公司 Distance determination method and device, intelligent equipment and storage medium

Also Published As

Publication number Publication date
TW202514522A (en) 2025-04-01

Similar Documents

Publication Publication Date Title
JP4111166B2 (en) 3D shape input device
JP5075757B2 (en) Image processing apparatus, image processing program, image processing method, and electronic apparatus
EP1343332B1 (en) Stereoscopic image characteristics examination system
US7643159B2 (en) Three-dimensional shape measuring system, and three-dimensional shape measuring method
JP6363863B2 (en) Information processing apparatus and information processing method
TWI489082B (en) Method and system for calibrating laser measuring apparatus
JP2014106732A (en) Information processor and information processing method
JP2019056679A (en) Surface evaluation method, surface evaluation device, and evaluation model storage device
WO2022050279A1 (en) Three-dimensional measurement device
JP6282377B2 (en) Three-dimensional shape measurement system and measurement method thereof
CN112634376A (en) Calibration method and device, calibration equipment and storage medium
JP2007508557A (en) Device for scanning three-dimensional objects
JPWO2018154634A1 (en) Projection display device, control method of projection display device, and program
JP5136108B2 (en) 3D shape measuring method and 3D shape measuring apparatus
JP6029293B2 (en) Scanning electron microscope image processing apparatus and scanning method
JP3493403B2 (en) 3D measuring device
TWI880360B (en) Laser sensing device and calibration method thereof
JP7527532B1 (en) IMAGE POINT CLOUD DATA PROCESSING APPARATUS, IMAGE POINT CLOUD DATA PROCESSING METHOD, AND IMAGE POINT CLOUD DATA PROCESSING PROGRAM
JP5206499B2 (en) Measuring method, measuring device, measurement control program
CN118131191A (en) Method and apparatus for providing corresponding points between real world and image sensor
JP2010041416A (en) Image processing unit, image processing method, image processing program, and imaging apparatus
WO2016194576A1 (en) Information processing device and method
CN113269824A (en) Image-based distance determination method and system
JP2010198554A (en) Device and method for correcting image
JP4542821B2 (en) Image processing method, image processing apparatus, and image processing program