TWM547661U - System for correcting 3D visual coordinate - Google Patents

System for correcting 3D visual coordinate Download PDF

Info

Publication number
TWM547661U
TWM547661U TW106205587U TW106205587U TWM547661U TW M547661 U TWM547661 U TW M547661U TW 106205587 U TW106205587 U TW 106205587U TW 106205587 U TW106205587 U TW 106205587U TW M547661 U TWM547661 U TW M547661U
Authority
TW
Taiwan
Prior art keywords
image
coordinate system
real world
world coordinate
horizontal
Prior art date
Application number
TW106205587U
Other languages
Chinese (zh)
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 TW106205587U priority Critical patent/TWM547661U/en
Publication of TWM547661U publication Critical patent/TWM547661U/en

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

A system for correcting 3D visual coordinate, comprising: a projection panel; a light-emitting device, emitting a vertical light and a horizontal light onto the projection panel; a photographing device, capturing an image displayed in the projection panel; and an image-correcting device, coupled to the photographing device, establishing a first conversion relationship for the image between a projection coordinate system and a true world coordinate system according to the image captured by the photographing device and obtaining a first image; establishing a second conversion relationship for the first image between the true world coordinate system and a geodetic coordinate system according to the first image; and correcting the image according to the first conversion relationship and the second conversion relationship.

Description

3D視覺座標校正系統 3D visual coordinate correction system

本創作係有關於一種3D測量技術,更加具體地說係有關於一種3D視覺座標校正系統。 This creation is about a 3D measurement technique, more specifically about a 3D vision coordinate correction system.

隨著3D攝影機的普及,立體視覺技術已經廣泛應用到文化、娛樂和科研等領域。 With the popularity of 3D cameras, stereo vision technology has been widely used in culture, entertainment and scientific research.

目前的3D攝影機中具有左右兩個攝影鏡頭,使用3D攝影機時需滿足一些條件,例如,3D攝影機中的左右攝影鏡頭的位置固定、3D攝影機中左右攝影鏡頭滿足一定的位置關係等條件。 The current 3D camera has two left and right photographic lenses, and some conditions are required when using a 3D camera, for example, the position of the left and right photographic lenses in the 3D camera is fixed, and the left and right photographic lenses in the 3D camera satisfy a certain positional relationship.

由於工藝水準,3D攝像機中的左右攝影鏡頭無法滿足理想的擺放位置,且經常由於外力的作用發生偏斜。在此情況下,為了滿足3D攝像機的使用要求,需要對拍攝的圖像進行校正以建立成像模型。 Due to the level of craftsmanship, the left and right photographic lenses in 3D cameras are not able to meet the ideal placement position and are often skewed by external forces. In this case, in order to satisfy the use requirements of the 3D camera, it is necessary to correct the captured image to establish an imaging model.

於習知技術中,一般常使用一精密的校正板做精確且已知的移動,來校正3D攝像機。然而,其難以運用在具有大範圍監控之攝影機校正。此外,精密且可移動的校正板價格高昂且設置複雜。 In conventional techniques, a precision calibration plate is often used to make accurate and known movements to correct a 3D camera. However, it is difficult to apply to camera correction with a wide range of surveillance. In addition, precision and moveable calibration plates are expensive and complicated to set up.

因此,需要一種簡易且可運用於大範圍監控上的3D視覺座標校正系統,以找出其拍攝的原始圖像和經校正的圖 像之間的對應關係。 Therefore, there is a need for a 3D visual coordinate correction system that is simple and can be used for large-scale monitoring to find the original image and corrected image taken. Correspondence between the likes.

以下創作內容僅為示例性的,且不意指以任何方式加以限制。除所述說明性方面、實施方式和特徵之外,通過參照附圖和下述具體實施方式,其他方面、實施方式和特徵也將顯而易見。即,以下創作內容被提供以介紹概念、重點、益處及本文所描述新穎且非顯而易見的技術優勢。所選擇,非所有的,實施例將進一步詳細描述如下。因此,以下創作內容並不意旨在所要求保護主題的必要特徵,也不意旨在決定所要求保護主題的範圍中使用。 The following creations are merely exemplary and are not meant to be limiting in any way. In addition to the illustrative aspects, embodiments, and features, other aspects, embodiments, and features will be apparent from the accompanying drawings. That is, the following authoring content is provided to introduce concepts, priorities, benefits, and novel and non-obvious technical advantages described herein. Selected, not all, embodiments will be described in further detail below. Therefore, the following creative content is not intended to be essential to the claimed subject matter, and is not intended to be used in the scope of the claimed subject matter.

本創作提出一種3D視覺座標校正系統,包括:一投影板;一直線光發射裝置,用以發射一垂直光線及一水平光線於上述投影板上;一攝影裝置,用以擷取上述投影板上所顯示之一影像;以及一影像校正裝置,耦接於上述攝影裝置,用以根據上述攝影裝置所擷取之上述影像建立上述影像於一投影座標系和一真實世界座標系的一第一轉換關係,並取得上述影像於上述真實世界座標系之一第一影像;根據上述第一影像建立上述第一影像於上述真實世界座標系和一大地座標系的一第二轉換關係;以及根據上述第一轉換關係及上述第二轉換關係校正上述影像中。 The present invention proposes a 3D visual coordinate correction system, comprising: a projection board; a linear light emitting device for emitting a vertical light and a horizontal light on the projection board; and a photographing device for capturing the projection board Displaying an image; and an image correcting device coupled to the photographing device for establishing a first conversion relationship between the image in a projection coordinate system and a real world coordinate system according to the image captured by the photographing device And obtaining a first image of the image in the real world coordinate system; establishing a second conversion relationship of the first image to the real world coordinate system and the earth coordinate system according to the first image; and according to the first The conversion relationship and the second conversion relationship described above are corrected in the image.

100‧‧‧3D視覺座標校正系統 100‧‧‧3D visual coordinate correction system

110‧‧‧投影板 110‧‧‧Projection board

120‧‧‧直線光發射裝置 120‧‧‧Line light emitting device

130‧‧‧攝影裝置 130‧‧‧Photographing device

140‧‧‧影像校正裝置 140‧‧‧Image Correction Device

200‧‧‧裝置 200‧‧‧ device

202‧‧‧輸入裝置 202‧‧‧ Input device

204‧‧‧輸出裝置 204‧‧‧Output device

206‧‧‧控制電路 206‧‧‧Control circuit

208‧‧‧中央處理器 208‧‧‧Central Processing Unit

210‧‧‧記憶體 210‧‧‧ memory

212‧‧‧程式碼 212‧‧‧ Code

214‧‧‧收發器 214‧‧‧ transceiver

附圖被包括以提供本創作進一步理解且被合併並組成本創作的一部分。附圖係說明本創作的實施例且連同描述一起用以解釋本創作的原理。其可理解附圖不一定案比例描繪 係,一些元件可以超過在實際實施方式的大小來顯示,以清楚地說明本創作的概念。 The drawings are included to provide a further understanding of the present invention and are incorporated in and constitute a part of the present invention. The drawings illustrate embodiments of the present teachings and together with the description to explain the principles of the present invention. It can be understood that the drawings are not necessarily drawn to scale. In addition, some components may be displayed in excess of the size of the actual implementation to clearly illustrate the concept of the present invention.

第1圖係根據本創作一實施例所述之3D視覺座標校正系統之示意圖。 1 is a schematic diagram of a 3D visual coordinate correction system according to an embodiment of the present invention.

第2圖係顯示依據本創作一實施例中一裝置之簡化功能方塊圖。 Figure 2 is a simplified functional block diagram of a device in accordance with an embodiment of the present invention.

第3A、3B、4A及4B圖係顯示根據本創作一實施例所述之影像校正裝置將投影座標系轉換為真實世界座標系之示意圖。 3A, 3B, 4A and 4B are diagrams showing the conversion of the projection coordinate system into a real world coordinate system by the image correcting device according to an embodiment of the present invention.

第5圖係顯示根據本創作一實施例所述之影像校正裝置將真實世界座標轉換為大地座標系之示意圖。 Fig. 5 is a view showing the conversion of a real world coordinate to a geodetic coordinate system by the image correcting device according to an embodiment of the present invention.

第6A~6D圖係顯示根據本創作一實施例所述之影像校正裝置將直線光發射裝置發射於投影板上之垂直光線及水平光線由投影座標系轉換為大地座標系之過程示意圖。 6A-6D are schematic diagrams showing the process of converting the vertical light and the horizontal light emitted by the linear light emitting device onto the projection plate from the projection coordinate system to the earth coordinate system according to the image correcting device according to an embodiment of the present invention.

為了讓本創作之目的、特徵、及優點能更明顯易懂,下文特舉較佳實施例,並配合所附圖示第1圖至第6D圖,做詳細之說明。本說明書提供不同的實施例來說明不同實施方式的技術特徵。其中,實施例中的各元件之配置係為說明之用,並非用以限制本案。且實施例中圖式標號之部分重複,係為了簡化說明,並非意指不同實施例之間的關聯性。 In order to make the objects, features, and advantages of the present invention more comprehensible, the preferred embodiments will be described in detail below with reference to Figures 1 through 6D of the accompanying drawings. This description provides different embodiments to illustrate the technical features of the various embodiments. The configuration of each component in the embodiments is for illustrative purposes and is not intended to limit the present invention. The overlapping portions of the drawings in the embodiments are for the purpose of simplifying the description and are not intended to be related to the different embodiments.

在本文中使用術語「示範性」意味著所揭示的元件或實施例僅為一實例,且不指示使用者的任何偏好。此外,相同的數字在所有若干圖示中指示相同的元件,且除非在描述中另有指定,冠詞「一」和「上述」包含複數的參考。 The term "exemplary" is used herein to mean that the disclosed elements or embodiments are merely an example and do not indicate any preference of the user. In addition, the same numerals indicate the same elements in all the figures, and the articles "a" and "an"

必須了解的是,使用於本說明書中的「包含」、「包括」等詞,係用以表示存在特定的技術特徵、數值、方法步驟、作業處理、元件以及/或組件,但並不排除可加上更多的技術特徵、數值、方法步驟、作業處理、元件、組件,或以上的任意組合。 It must be understood that the terms "including" and "including" used in the specification are used to indicate that there are specific technical features, numerical values, method steps, process processing, components and/or components, but do not exclude Add more technical features, values, method steps, job processing, components, components, or any combination of the above.

第1圖係根據本創作一實施例所述之3D視覺座標校正系統100之示意圖。3D視覺座標校正系統100可包括一投影板110、一直線光發射裝置120、一攝影裝置130及一影像校正裝置140。投影板110係放置與地面垂直,在一實施例中,投影板110亦可用與地面垂直之牆或平面物取代。 1 is a schematic diagram of a 3D visual coordinate correction system 100 in accordance with an embodiment of the present invention. The 3D visual coordinate correction system 100 can include a projection board 110, a linear light emitting device 120, a photographing device 130, and an image correcting device 140. The projection panel 110 is placed perpendicular to the ground. In one embodiment, the projection panel 110 can also be replaced by a wall or plane perpendicular to the ground.

直線光發射裝置120為可發射出一垂直光線及一水平光線之裝置,且該垂直光線為絕對垂直之基線,而該水平光線為絕對水平之基線。在一實施例中,直線光發射裝置120可為一雷射光發射裝置,其可發射垂直雷射光線及一水平雷射光線。直線光發射裝置120放置於投影板110之前方,發射垂直光線及水平光線於投影板110上。 The linear light emitting device 120 is a device that emits a vertical light and a horizontal light, and the vertical light is an absolute vertical baseline, and the horizontal light is an absolute horizontal baseline. In one embodiment, the linear light emitting device 120 can be a laser light emitting device that emits vertical laser light and a horizontal laser beam. The linear light emitting device 120 is placed in front of the projection plate 110 to emit vertical light and horizontal light onto the projection plate 110.

攝影裝置130可以是任何市售之可擷取3D影像的深度3D攝影機,例如具二個鏡頭的雙眼攝影機/照相機、單一鏡頭可連續拍攝二張照片的攝影機/照相機、雷射立體攝影機/照相機(具有雷射量測深度值之攝影裝置)、紅外線立體攝影機/照相機(具有紅外線量測深度值之攝影裝置)等。常見的深度3D攝影機有微軟開發的體感裝置Kinect。攝影裝置130設置於高處向下拍攝,擷取投影板110上所顯示之影像。由於投影板110係為一二維平面,因此攝影裝置130所擷取之影像係 為一二維影像。 The photographing device 130 may be any commercially available depth 3D camera capable of capturing 3D images, such as a binocular camera/camera with two lenses, a single camera capable of continuously taking two photos of a camera/camera, a laser stereo camera/camera (Photographing device with laser measurement depth value), infrared stereo camera/camera (photographic device with infrared measurement depth value), and the like. A common deep 3D camera is the Kinect developed by Microsoft. The photographing device 130 is set to be photographed at a high position to capture an image displayed on the projection panel 110. Since the projection board 110 is a two-dimensional plane, the image system captured by the photographing device 130 is For a two-dimensional image.

影像校正裝置140可為一電腦或一行動裝置,其可以一有線或無線之方式耦接於攝影裝置130,接收攝影裝置130所傳送之原始影像。如第1圖所示,原始影像可包括投射至投影板110上之垂直光線及水平光線。影像校正裝置140係用以計算取得攝影裝置130所拍攝的原始影像和經校正影像之間的轉換關係。計算之方式將於下方更詳細地說明。 The image correcting device 140 can be a computer or a mobile device, which can be coupled to the photographing device 130 in a wired or wireless manner to receive the original image transmitted by the photographing device 130. As shown in FIG. 1, the original image may include vertical light and horizontal light projected onto the projection panel 110. The image correcting device 140 is configured to calculate a conversion relationship between the original image captured by the photographing device 130 and the corrected image. The method of calculation will be explained in more detail below.

第2圖係顯示依據本創作一實施例中一裝置200之簡化功能方塊圖。如第2圖所示,裝置200可以是第1圖3D視覺座標校正系統100中之影像校正裝置140。裝置200可包括一輸入裝置202、一輸出裝置204、一控制電路206、一中央處理器(Central Processing Unit,CPU)208、一記憶體210、一程式碼212、一收發器214。控制電路206在記憶體210中透過中央處理器208執行程式碼212,並以此控制在裝置200中所進行之作業。裝置200可利用輸入裝置202,(例如,鍵盤、數字鍵、觸碰螢幕或麥克風(聲音輸入))接收使用者輸入訊號;也可由輸出裝置204(例如螢幕或喇叭)輸出圖像及聲音。收發器214在此用作接收及發送無線訊號,將接收之訊號送往控制電路206,以及以無線方式輸出控制電路206所產生之訊號。 Figure 2 is a simplified functional block diagram of a device 200 in accordance with an embodiment of the present invention. As shown in FIG. 2, the apparatus 200 may be the image correcting apparatus 140 in the visual coordinate correction system 100 of FIG. 1D. The device 200 can include an input device 202, an output device 204, a control circuit 206, a central processing unit (CPU) 208, a memory 210, a code 212, and a transceiver 214. The control circuit 206 executes the code 212 in the memory 210 through the central processing unit 208, and thereby controls the operations performed in the device 200. The device 200 can utilize the input device 202 (eg, a keyboard, numeric keys, touch screen, or microphone (sound input)) to receive user input signals; the output device 204 (eg, a screen or speaker) can also output images and sounds. The transceiver 214 is here used to receive and transmit wireless signals, send the received signals to the control circuit 206, and wirelessly output the signals generated by the control circuit 206.

第3A~4B圖係顯示根據本創作一實施例所述之影像校正裝置將投影座標系轉換為真實世界座標系之示意圖。如第3A圖所示,攝影裝置的成像平面(Image Plane)為投影座標系,其中使用的單位為像素(pixel)。假設成像平面的解析度為w×h(pixel2),而其平面的尺寸為l w ×l h mm2。另外,將投影座標 系的像素之座標值轉成單位為mm的真實世界座標系。由於投影座標系的原點係在成像平面的左上角,而真實世界座標系的原點係在成像平面的中心位置,如第3B圖所示。 3A-4B are diagrams showing the conversion of the projection coordinate system into a real world coordinate system by the image correcting device according to an embodiment of the present invention. As shown in FIG. 3A, the imaging plane of the photographing device is a projection coordinate system in which the unit used is a pixel. Assume that the resolution of the imaging plane is w × h (pixel 2 ), and the size of its plane is l w × l h mm 2 . In addition, the coordinate value of the pixel of the projection coordinate system is converted into a real world coordinate system of unit mm. Since the origin of the projection coordinate system is at the upper left corner of the imaging plane, the origin of the real world coordinate system is at the center of the imaging plane, as shown in Fig. 3B.

給定某像素座標值在(p w ,p h )pixel,則其距離像素座標的原點之尺寸為(p w ×(l w /w),p h ×(l h /h))mm。再以真實世界座標系來表示其位置為(x v ,y v )如下: Given a pixel coordinate value at ( p w , p h )pixel, the size of the origin from the pixel coordinates is ( p w ×( l w / w ), p h ×( l h / h )) mm. The position of the real world coordinate system is expressed as ( x v , y v ) as follows:

接著,假設攝影裝置的水平視角(horizontal field of view)與垂直視角(vertical field of view)分別為θ w θ h ,及攝影裝置之焦距為f mm。則由根據第4A~4B圖以得到下列關係式: Next, it is assumed that the horizontal field of view and the vertical field of view of the photographing device are θ w and θ h , respectively, and the focal length of the photographing device is f mm. Then, according to the 4A-4B chart, the following relationship is obtained:

攝影裝置會提供像素(p w ,p h )的深度z k mm。值得注意的是,成像平面的深度為f,即為攝影裝置之焦距。參考第4A~4B圖,第4A圖係說明投影座標系與真實世界座標系在XZ平面上之關係示意圖,而第4B圖係說明投影座標系與真實世界座標系在YZ平面上之關係示意圖。成像平面上的一點(x v ,y v )之真實物體(Physical Object)的空間位置在(x k ,y k )可利用三角 學算出,其算式如下所示。 The photographic device provides a depth z k mm of pixels ( p w , p h ). It is worth noting that the depth of the imaging plane is f , which is the focal length of the photographic device. Referring to Figures 4A-4B, Figure 4A is a schematic diagram showing the relationship between the projection coordinate system and the real world coordinate system on the XZ plane, and Figure 4B is a schematic diagram showing the relationship between the projection coordinate system and the real world coordinate system on the YZ plane. Point (x v, y v) on the imaging plane of the real object (Physical Object) in the spatial position (x k, y k) may be calculated using trigonometry, which is shown in the following equation.

第5圖係顯示根據本創作一實施例所述之影像校正裝置將真實世界座標轉換為大地座標系之示意圖。如圖所示,真實世界座標系的+Y軸(+Y k )定義為朝向地面,而大地座標系的+Y軸(+Y g )定義為朝向天空(反地心引力方向),兩座標系原點都定在攝影裝置之中心,且皆採用右手座標系。為了能取得真正的3D資訊,必須將真實世界座標系轉換至與大地座標系一致。 Fig. 5 is a view showing the conversion of a real world coordinate to a geodetic coordinate system by the image correcting device according to an embodiment of the present invention. As shown, the +Y axis (+ Y k ) of the real world coordinate system is defined as facing the ground, while the +Y axis (+ Y g ) of the earth coordinate system is defined as facing the sky (anti-gravity direction), two coordinates The origin of the system is set at the center of the photographic device, and both are in the right hand coordinates. In order to obtain true 3D information, the real world coordinate system must be converted to conform to the Earth coordinate system.

二個直角座標系之關係可以用Euler angles來表示:繞Z軸轉ψ角,再繞轉後新座標系的Y軸轉θ角,最後再繞最新的座標系的Z軸轉φ角。其結果為三個旋轉矩陣的乘積:Rot(z,ψ)Rot(y,θ)Rot(z,φ)。由於本創作僅需計算偵測物主軸與鉛垂線的夾角,並且要求鉛垂線由地面向天空(反地心引力方向)為大地座標系的Y軸,而不在乎X軸的方向,只要XZ平面為水平面即可。因此,只要二個旋轉就可將真實世界座標系旋轉到 與大地座標系:繞Z軸轉ψ角,使得X軸落在水平面上;再繞新的X軸轉θ角,讓Y軸和鉛垂線一致。 Relationship between the two orthogonal coordinate system can be represented by Euler angles: rotation about the Z axis angle ψ, then the new Y-axis coordinate system about the rotor turn angle θ, and finally about the Z axis of the coordinate system of the latest rotation angle φ. The result is the product of three rotation matrices: Rot ( z , ψ) Rot ( y , θ ) Rot ( z , φ). Since the creation of the angle detection computing only the vertical line of the main shaft thereof, and requires a plumb line ground to the sky (anti-gravity direction) of the Y-axis of the ground coordinate system, but not with the X-axis direction, as long as the XZ plane The water level is fine. Therefore, as long as two rotations can rotate the real world coordinate system to the earth coordinate system: the rotation angle around the Z axis, so that the X axis falls on the horizontal plane; then rotate the θ angle around the new X axis, let the Y axis and lead The vertical line is consistent.

本創作定義大地座標系為E G ={g x ,g y ,g z },而攝影裝置的真實世界座標系為E K ={k x ,k y ,k z }。令R K→G 為從E K E G 的座標轉換矩陣,其可表示如下。 This creation defines the geodetic coordinate system as E G ={g x ,g y ,g z }, and the real world coordinate system of the photographic device is E K ={k x ,k y ,k z }. Let R K→G be a coordinate transformation matrix from E K to E G , which can be expressed as follows.

如果在攝影裝置的真實世界座標系表示的空間一點為(x k ,y k ,z k ),而在大地座標系表示為(x g ,y g ,z g ),則由 可以得到 由於R K→G 是正交矩陣,因此(R K→G )-1=(R K→G )TIf the space represented by the real world coordinate system of the photographing device is ( x k , y k , z k ), and the earth coordinate system is expressed as ( x g , y g , z g ), then Can get Since R K→G is an orthogonal matrix, ( R K→G ) −1 =( R K→G ) T .

第6A~6D圖係顯示根據本創作一實施例所述之影像校正裝置將直線光發射裝置發射於投影板上之垂直光線及水平光線由投影座標系轉換為大地座標系之過程示意圖。 6A-6D are schematic diagrams showing the process of converting the vertical light and the horizontal light emitted by the linear light emitting device onto the projection plate from the projection coordinate system to the earth coordinate system according to the image correcting device according to an embodiment of the present invention.

如第6A圖所示,其係顯示直線光發射裝置發射於投影板上之垂直光線及水平光線之示意圖。攝影裝置擷取投影板上所顯示之影像傳送至影像校正裝置。第6B圖係顯示攝影裝置所擷取之影像,如圖所示,投射至投影板上的光線以點雲圖呈現。一般來說,光線應以直線呈現,然從點雲圖中可觀察出光線有抖動的現象。此現象是因受攝影裝置之解析度影響而造成。 As shown in FIG. 6A, it is a schematic diagram showing vertical light and horizontal light emitted by the linear light emitting device on the projection plate. The photographing device captures the image displayed on the projection board and transmits it to the image correcting device. Figure 6B shows the image captured by the photographic device. As shown, the light projected onto the projection panel is presented as a point cloud. Generally speaking, the light should be presented in a straight line, but the phenomenon that the light is dithered can be observed from the point cloud image. This phenomenon is caused by the resolution of the photographing device.

假如直接在抖動的光線點雲圖上任意取兩點算向量,則有可能因挑選點的位置不同,而造成計算出來的直線向量與實際光線向量有偏差。為了解決此問題,本創作之影像校正裝置使用了主成份分析(Principal Component Analysis,PCA)來建立實際光線向量於投影座標系和真實世界座標系的轉換關係,取其在真實世界座標系中的主要向量,來代表兩條光線的向量。如第6C圖所示,其係顯示光線三維點經由PCA運算得到之近似直線。 If the two-point arithmetic vector is taken directly on the dithered ray point cloud image, it is possible that the calculated linear vector has a deviation from the actual ray vector due to the different positions of the selected points. In order to solve this problem, the image correction device of this creation uses Principal Component Analysis (PCA) to establish the conversion relationship between the actual coordinate vector and the real coordinate system, which is taken in the real world coordinate system. The main vector, which represents the vector of two rays. As shown in Fig. 6C, it shows an approximate straight line obtained by the PCA operation of the three-dimensional point of the light.

於本創作中,經計算後之在真實世界座標系中垂直光線之第一個主成份u k1,此u k1向量近似為垂直光線的方向。令u g1為大地座標系中得到的垂直光線之第一個主成分。由於垂直光線是垂直於水平面,所以u g1向量的x分量與z分量皆為0。利用上述條件,此向量於真實世界座標系與大地座標系的關係 可表示為 由上述式子可求得真實世界座標系繞Z軸所旋轉之角度ψ為 In the present creation, the calculated first principal component u k 1 of the vertical ray in the real world coordinate system, the u k 1 vector is approximately the direction of the vertical ray. Let u g 1 be the first principal component of the vertical ray obtained in the earth coordinate system. Since the vertical ray is perpendicular to the horizontal plane, the x and z components of the u g 1 vector are both zero. Using the above conditions, the relationship between this vector in the real world coordinate system and the earth coordinate system can be expressed as From the above formula, the angle of rotation of the real world coordinate system around the Z axis can be obtained.

而將水平光線上的點進行PCA法運算,於真實世界座標系中可得到水平光線之第一個主成份v k1,此v k1向量近似為水平光線的方向。令v g1為大地座標系中得到的水平光線之第一個主成份,由於大地座標系中水平光線係平行於水平面,因此v g1向量的y分量為0。因此這向量於真實世界座標系與大地座標系的關係可表示為 由上述式子可求得前述真實世界座標系繞Z軸旋轉角度ψ之後的座標再繞Y軸所旋轉角度θ The PCA method is performed on the point on the horizontal light, and the first principal component v k 1 of the horizontal light is obtained in the real world coordinate system, and the v k 1 vector is approximated to the direction of the horizontal light. Let v g 1 be the first principal component of the horizontal ray obtained in the earth coordinate system. Since the horizontal ray in the earth coordinate system is parallel to the horizontal plane, the y component of the v g 1 vector is zero. Therefore, the relationship between this vector and the real world coordinate system and the earth coordinate system can be expressed as From the above formula, the coordinate of the coordinate of the coordinate of the real world coordinate system around the Z-axis rotation angle ψ and the Y-axis rotation angle θ is obtained.

垂直光線及水平光線以PCA法得到第一個主成份後,影像校正裝置以第一個主成份的資訊重繪原本的光線,並對光線進行真實世界座標系和大地座標系之轉換,轉換後之光線如第6D圖所示。 After the vertical light and the horizontal light are obtained by the PCA method, the image correcting device redraws the original light with the information of the first main component, and converts the light into the real world coordinate system and the earth coordinate system. The light is as shown in Figure 6D.

此外,第2圖中之中央處理器208也可執行程式碼212以呈現上述實施例所述之動作和步驟,或其它在說明書中內容之描述。 In addition, the central processing unit 208 in FIG. 2 can also execute the code 212 to present the actions and steps described in the above embodiments, or other descriptions in the description.

因此,透過本創作所提出之3D視覺座標校正系統,僅需使用簡易的投影板及能發出水平及垂直光線之直線光發射裝置,即可找出3D攝像機所擷取之影像與經校正影像之對應關係,亦可達到大範圍監控之效果。 Therefore, through the 3D visual coordinate correction system proposed by the present invention, it is only necessary to use a simple projection board and a linear light emitting device capable of emitting horizontal and vertical light to find the image captured by the 3D camera and the corrected image. The corresponding relationship can also achieve the effect of large-scale monitoring.

以上實施例使用多種角度描述。顯然這裡的教示可以多種方式呈現,而在範例中揭露之任何特定架構或功能僅為一代表性之狀況。根據本文之教示,任何熟知此技藝之人士應理解在本文呈現之內容可獨立利用其他某種型式或綜合多種型式作不同呈現。舉例說明,可遵照前文中提到任何方式利用某種裝置或某種方法實現。一裝置之實施或一種方式之執行可用任何其他架構、或功能性、又或架構及功能性來實現在前文所討論的一種或多種型式上。 The above embodiments are described using a variety of angles. It will be apparent that the teachings herein may be presented in a variety of ways, and that any particular structure or function disclosed in the examples is merely representative. In light of the teachings herein, anyone skilled in the art will appreciate that the content presented herein can be independently rendered in various different types or in a variety of different forms. By way of example, it may be implemented by some means or by some means in any manner as mentioned in the foregoing. The implementation of one device or the execution of one mode may be implemented in any one or more of the types discussed above with any other architecture, or functionality, or architecture and functionality.

熟知此技藝之人士將了解訊息及信號可用多種不同科技及技巧展現。舉例,在以上描述所有可能引用到之數據、指令、命令、訊息、信號、位元、符號、以及碼片(chip)可以伏特、電流、電磁波、磁場或磁粒、光場或光粒、或以上任何 組合所呈現。 Those skilled in the art will understand that messages and signals can be presented in a variety of different technologies and techniques. For example, all of the data, instructions, commands, messages, signals, bits, symbols, and chips that may be referenced above may be volts, current, electromagnetic waves, magnetic or magnetic particles, light fields or light particles, or Any of the above The combination is presented.

熟知此技術之人士更會了解在此描述各種說明性之邏輯區塊、模組、處理器、裝置、電路、以及演算步驟與以上所揭露之各種情況可用的電子硬體(例如用來源編碼或其他技術設計之數位實施、類比實施、或兩者之組合)、各種形式之程式或與指示作為連結之設計碼(在內文中為方便而稱作「軟體」或「軟體模組」)、或兩者之組合。為清楚說明此硬體及軟體間之可互換性,多種具描述性之元件、方塊、模組、電路及步驟在以上之描述大致上以其功能性為主。不論此功能以硬體或軟體型式呈現,將視加注在整體系統上之特定應用及設計限制而定。熟知此技藝之人士可為每一特定應用將描述之功能以各種不同方法作實現,但此實現之決策不應被解讀為偏離本文所揭露之範圍。 Those skilled in the art will appreciate that various illustrative logic blocks, modules, processors, devices, circuits, and logic steps are described herein for use with the electronic hardware (eg, source coded or Digital implementation of other technical designs, analogy implementation, or a combination of both), various forms of programming or design codes linked to instructions (referred to as "software" or "software modules" for convenience in the text), or a combination of the two. To clearly illustrate the interchangeability of the hardware and software, a variety of descriptive elements, blocks, modules, circuits, and steps are generally described above in terms of functionality. Whether this feature is presented in hardware or software, it will depend on the specific application and design constraints imposed on the overall system. The person skilled in the art can implement the described functions in a variety of different ways for each particular application, but the implementation of this decision should not be interpreted as deviating from the scope disclosed herein.

此外,多種各種說明性之邏輯區塊、模組、及電路以及在此所揭露之各種情況可實施在積體電路(integrated circuit,IC)、存取終端、存取點;或由積體電路、存取終端、存取點執行。積體電路可由一般用途處理器、數位信號處理器(digital signal processor,DSP)、特定應用積體電路(application specific integrated circuit,ASIC)、現場可編程閘列(field programmable gate array,FPGA)或其他可編程邏輯裝置、離散閘(discrete gate)或電晶體邏輯(transistor logic)、離散硬體元件、電子元件、光學元件、機械元件、或任何以上之組合之設計以完成在此文內描述之功能;並可能執行存在於積體電路內、積體電路外、或兩者皆有之執行碼或指令。一般用途處理器可能 是微處理器,但也可能是任何常規處理器、控制器、微控制器、或狀態機。處理器可由電腦設備之組合所構成,例如:數位訊號處理器(DSP)及一微電腦之組合、多組微電腦、一組至多組微電腦以及一數位訊號處理器核心、或任何其他類似之配置。 In addition, various illustrative logical blocks, modules, and circuits, and various aspects disclosed herein may be implemented in an integrated circuit (IC), an access terminal, an access point, or an integrated circuit. , access terminal, access point execution. The integrated circuit can be a general purpose processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or the like. Programmable logic device, discrete gate or transistor logic, discrete hardware components, electronic components, optical components, mechanical components, or any combination of the above to perform the functions described herein And may execute an execution code or instruction that exists in the integrated circuit, outside the integrated circuit, or both. General purpose processor possible It is a microprocessor, but it could be any conventional processor, controller, microcontroller, or state machine. The processor may be comprised of a combination of computer devices, such as a combination of a digital signal processor (DSP) and a microcomputer, a plurality of sets of microcomputers, a set of at most groups of microcomputers, and a digital signal processor core, or any other similar configuration.

在此所揭露程序之任何具體順序或分層之步驟純為一舉例之方式。基於設計上之偏好,必須了解到程序上之任何具體順序或分層之步驟可在此文件所揭露的範圍內被重新安排。伴隨之方法權利要求以一示例順序呈現出各種步驟之元件,也因此不應被此所展示之特定順序或階層所限制。 Any specific sequence or layering of the procedures disclosed herein is by way of example only. Based on design preferences, it must be understood that any specific order or hierarchy of steps in the program may be rearranged within the scope of the disclosure. The accompanying claims are intended to be illustrative of a

雖然本創作已以實施範例揭露如上,然其並非用以限定本案,任何熟悉此項技藝者,在不脫離本創作之精神和範圍內,當可做些許更動與潤飾,因此本案之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed above by way of example, it is not intended to limit the scope of the present invention. Anyone skilled in the art can make some changes and refinements without departing from the spirit and scope of the present invention. Therefore, the scope of protection of this case is This is subject to the definition of the scope of the patent application.

100‧‧‧3D視覺座標校正系統 100‧‧‧3D visual coordinate correction system

110‧‧‧投影板 110‧‧‧Projection board

120‧‧‧直線光發射裝置 120‧‧‧Line light emitting device

130‧‧‧攝影裝置 130‧‧‧Photographing device

140‧‧‧影像校正裝置 140‧‧‧Image Correction Device

Claims (8)

一種3D視覺座標校正系統,包括:一投影板;一直線光發射裝置,用以發射一垂直光線及一水平光線於上述投影板上;一攝影裝置,用以擷取上述投影板上所顯示之一影像;以及一影像校正裝置,耦接於上述攝影裝置,用以根據上述攝影裝置所擷取之上述影像建立上述影像於一投影座標系和一真實世界座標系的一第一轉換關係,並取得上述影像於上述真實世界座標系之一第一影像;根據上述第一影像建立上述第一影像於上述真實世界座標系和一大地座標系的一第二轉換關係;以及根據上述第一轉換關係及上述第二轉換關係校正上述影像。 A 3D visual coordinate correction system includes: a projection board; a linear light emitting device for emitting a vertical light and a horizontal light on the projection board; and a photographing device for capturing one of the displayed on the projection board And an image correcting device coupled to the photographing device for establishing a first conversion relationship between the image and a real world coordinate system according to the image captured by the photographing device, and obtaining And the image is in the first image of the real world coordinate system; and the second image is coupled to the first image according to the first image to establish a second conversion relationship between the real world coordinate system and the earth coordinate system; and according to the first conversion relationship and The second conversion relationship corrects the image. 如申請專利範圍第1項所述之3D視覺座標校正系統,其中上述投影板係放置與地面垂直。 The 3D visual coordinate correction system of claim 1, wherein the projection plate is placed perpendicular to the ground. 如申請專利範圍第1項所述之3D視覺座標校正系統,其中上述影像係包括發射至上述投影板之上述垂直光線及上述水平光線,而上述影像校正裝置利用一主成份分析(Principal Component Analysis,PCA)取得對應上述垂直光線及上述水平光線於上述真實世界座標系中之一真實垂直向量及一真實水平向量。 The 3D visual coordinate correction system of claim 1, wherein the image system comprises the vertical light and the horizontal light emitted to the projection plate, and the image correcting device utilizes a principal component analysis (Principal Component Analysis, The PCA) obtains a true vertical vector and a true horizontal vector corresponding to the vertical light and the horizontal light in the real world coordinate system. 如申請專利範圍第3項所述之3D視覺座標校正系統,其 中於上述真實世界座標系中之上述真實垂直向量與上述大地座標系之上述第二轉換關係為 其中,係為上述真實垂直向量,係為上述大地座標系中之一大地真實垂直向量,為上述真實世界座標系繞其Z軸所旋轉之角度,θ為上述真實世界座標系繞其Z軸旋轉上述角度後再繞其Y軸所旋轉之角度。 The 3D visual coordinate correction system according to claim 3, wherein the second vertical relationship between the true vertical vector in the real world coordinate system and the earth coordinate system is among them, Is the above true vertical vector, Is the true vertical vector of the earth in one of the above-mentioned geodetic coordinate systems. For the angle at which the real world coordinate system is rotated about its Z axis, θ is the above real world coordinate system rotating the angle around its Z axis The angle at which it is rotated about its Y axis. 如申請專利範圍第3項所述之3D視覺座標校正系統,其中於上述真實世界座標系中之上述真實水平向量與上述大地座標系之上述第二轉換關係為 其中,係為上述真實水平向量,係為上述大地座標系中之一大地真實水平向量,為上述真實世界座標系繞其Z軸所旋轉之角度,θ為上述真實世界座標系繞其Z軸旋轉上述角度後再繞其Y軸所旋轉之角度。 The 3D visual coordinate correction system according to claim 3, wherein the second horizontal relationship between the real horizontal vector in the real world coordinate system and the earth coordinate system is among them, Is the above true horizontal vector, Is the true horizontal vector of the earth in one of the above-mentioned geodetic coordinates. For the angle at which the real world coordinate system is rotated about its Z axis, θ is the above real world coordinate system rotating the angle around its Z axis The angle at which it is rotated about its Y axis. 如申請專利範圍第1項所述之3D視覺座標校正系統,其 中上述攝影裝置係一深度3D攝影機。 A 3D visual coordinate correction system as described in claim 1 of the patent application, The above-mentioned photographing device is a deep 3D camera. 如申請專利範圍第1項所述之3D視覺座標校正系統,其中上述影像校正裝置係一電腦或一行動裝置。 The 3D visual coordinate correction system of claim 1, wherein the image correction device is a computer or a mobile device. 如申請專利範圍第1項所述之3D視覺座標校正系統,其中上述投影板係用一牆面取代。 The 3D visual coordinate correction system according to claim 1, wherein the projection board is replaced by a wall surface.
TW106205587U 2017-04-21 2017-04-21 System for correcting 3D visual coordinate TWM547661U (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW106205587U TWM547661U (en) 2017-04-21 2017-04-21 System for correcting 3D visual coordinate

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW106205587U TWM547661U (en) 2017-04-21 2017-04-21 System for correcting 3D visual coordinate

Publications (1)

Publication Number Publication Date
TWM547661U true TWM547661U (en) 2017-08-21

Family

ID=60188195

Family Applications (1)

Application Number Title Priority Date Filing Date
TW106205587U TWM547661U (en) 2017-04-21 2017-04-21 System for correcting 3D visual coordinate

Country Status (1)

Country Link
TW (1) TWM547661U (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324604A (en) * 2018-03-30 2019-10-11 联发科技股份有限公司 Stereopsis method and apparatus

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110324604A (en) * 2018-03-30 2019-10-11 联发科技股份有限公司 Stereopsis method and apparatus
TWI702823B (en) * 2018-03-30 2020-08-21 聯發科技股份有限公司 Method and apparatus for stereo vision processing
US10771766B2 (en) 2018-03-30 2020-09-08 Mediatek Inc. Method and apparatus for active stereo vision

Similar Documents

Publication Publication Date Title
US20210012532A1 (en) System and method for calibration of machine vision cameras along at least three discrete planes
US11625841B2 (en) Localization and tracking method and platform, head-mounted display system, and computer-readable storage medium
US20190052851A1 (en) System and Method for Recalibrating a Projector System
WO2022042566A1 (en) Method and apparatus for recognizing three-dimensional gesture on the basis of markers, and device
US20170078570A1 (en) Image processing device, image processing method, and image processing program
JP2022501684A (en) Shooting-based 3D modeling systems and methods, automated 3D modeling equipment and methods
JP2019215811A (en) Projection system, image processing apparatus, and projection method
CN114047831B (en) Computing system with direct three-dimensional pointing and method of tracking pointing/input device
JP2001148025A (en) Device and method for detecting position, and device and method for detecting plane posture
JPWO2019012803A1 (en) Designated device and designated program
CN114286066A (en) Projection correction method, projection correction device, storage medium and projection equipment
CN114286068A (en) Focusing method, focusing device, storage medium and projection equipment
TWM547661U (en) System for correcting 3D visual coordinate
JP2014041074A (en) Image processing apparatus and inspection apparatus
CN114201028B (en) Augmented reality system and method for anchoring display virtual object thereof
CN114339179A (en) Projection correction method, projection correction device, storage medium and projection equipment
TWI672950B (en) Image device capable of compensating image variation
JP5464671B2 (en) Image processing apparatus, image processing method, and image processing program
JP2018032991A (en) Image display unit, image display method and computer program for image display
TWI419012B (en) A method of positioning an optical beacon device for interaction of a large display device
CN112541940A (en) Article detection method and system
TWI779332B (en) Augmented reality system and display method for anchor virtual object thereof
US20180295293A1 (en) Method and apparatus for generating a panoramic image having one or more spatially altered portions
JP6879350B2 (en) Image display systems, image display devices, image display methods, and programs
WO2022185719A1 (en) Information processing device, information processing method, and display device

Legal Events

Date Code Title Description
MM4K Annulment or lapse of a utility model due to non-payment of fees