TWI623912B - Depth-image constructed method and system using the same - Google Patents

Depth-image constructed method and system using the same Download PDF

Info

Publication number
TWI623912B
TWI623912B TW105125475A TW105125475A TWI623912B TW I623912 B TWI623912 B TW I623912B TW 105125475 A TW105125475 A TW 105125475A TW 105125475 A TW105125475 A TW 105125475A TW I623912 B TWI623912 B TW I623912B
Authority
TW
Taiwan
Prior art keywords
image
plane
depth
planar
depth image
Prior art date
Application number
TW105125475A
Other languages
Chinese (zh)
Other versions
TW201801046A (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 英華達股份有限公司
Publication of TW201801046A publication Critical patent/TW201801046A/en
Application granted granted Critical
Publication of TWI623912B publication Critical patent/TWI623912B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/282Image signal generators for generating image signals corresponding to three or more geometrical viewpoints, e.g. multi-view systems
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N13/00Stereoscopic video systems; Multi-view video systems; Details thereof
    • H04N13/20Image signal generators
    • H04N13/261Image signal generators with monoscopic-to-stereoscopic image conversion

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

一種深度影像建構方法包含於一平面上的起始位置與自起始位置相對平面上的圓心旋轉預設角度後的對照位置分別擷取三維物體的第一平面影像與第二平面影像,其中第一、第二平面影像分別具有一底線;根據預設角度旋轉第二平面影像,使第一、第二平面影像的底線互相平行;沿垂直第二平面影像的底線的方向平移第一平面影像與第二平面影像的至少一者,使得第二平面影像的底線與第一平面影像的底線對齊;以及在平移之後,根據第一平面影像與第二平面影像分別計算三維物體相對平面的距離並紀錄於深度影像中對應的像素,以產生深度影像。 A method for constructing a depth image includes acquiring a first planar image and a second planar image of a three-dimensional object at a starting position on a plane and a control position rotated by a preset angle from the center of the circle on the plane relative to the starting position. The first and second plane images have a bottom line respectively; the second plane image is rotated according to a preset angle so that the bottom lines of the first and second plane images are parallel to each other; the first plane image is translated in a direction perpendicular to the bottom line of the second plane image and At least one of the second plane images aligns the bottom line of the second plane image with the bottom line of the first plane image; and after translation, calculates and records the distance of the three-dimensional object relative to the plane according to the first plane image and the second plane image, and records Corresponding pixels in the depth image to generate a depth image.

Description

深度影像建構方法及其應用的系統 Deep image construction method and its application system

本發明是有關於一種深度影像建構方法,特別是有關於應用深度影像建構方法的系統。 The invention relates to a method for constructing a depth image, and more particularly to a system for applying a method for constructing a depth image.

傳統的深度影像建構方法與系統,通常需藉由多個影像擷取裝置同時照射具有深度的場景,以獲得場景與場景中的三維物體的深度資訊。為讓多個影像擷取裝置同時照射具有深度的場景,需花費許多時間校準光軸、調整光場等,以獲得先備的條件。因此,傳統的深度影像建構方法與系統的應用除需要較高的建置成本外,還必須耗費更多的時間處理前置作業與後續的相關計算,才有辦法取得場景與場景中的三維物體的深度資訊。這些嚴苛的條件進一步地限制傳統的深度影像建構方法與系統的發展,並阻礙相關深度影像應用的普及。由此可見,上述現有的架構,顯然仍存在不便與缺陷,而有待加以進一步改進。為了解決上述問題,相關領域莫不費盡心思來謀 求解決之道,但長久以來一直未見適用的方式被發展完成。因此,如何能有效解決上述問題,實屬當前重要研發課題之一,亦成為當前相關領域亟需改進的目標。 Traditional depth image construction methods and systems usually require multiple image capture devices to simultaneously illuminate a scene with depth to obtain the depth information of the scene and three-dimensional objects in the scene. In order for multiple image capture devices to illuminate a scene with depth at the same time, it takes a lot of time to calibrate the optical axis, adjust the light field, etc., to obtain the prerequisites. Therefore, in addition to the application of traditional depth image construction methods and systems, in addition to higher construction costs, more time must be spent on pre-operations and subsequent related calculations in order to obtain a scene and three-dimensional objects in the scene. In depth information. These harsh conditions further restrict the development of traditional depth image construction methods and systems, and hinder the popularization of related depth image applications. It can be seen that the above existing architecture obviously still has inconveniences and defects, and needs to be further improved. In order to solve the above-mentioned problems, the related fields have made great efforts to seek Seeking a solution, but for a long time no suitable method has been developed and completed. Therefore, how to effectively solve the above problems is really one of the important R & D topics at present, and it has become an urgent target for improvement in related fields.

本發明之一技術態樣是有關於一種深度影像建構方法,其在一平面的不同位置對應擷取三維物體的多個平面影像,並利用複數個平面影像中至少兩者計算三維物體相對平面的距離以產生深度影像。 One technical aspect of the present invention relates to a method for constructing a depth image, which captures multiple planar images of a three-dimensional object correspondingly at different positions on a plane, and uses at least two of the plurality of planar images to calculate the relative plane of the three-dimensional object Distance to produce a depth image.

本發明提供一種深度影像建構方法,用於根據三維物體產生第一深度影像。第一深度影像可包含複數個深度像素。深度影像建構方法包含(a)在一平面的起始位置擷取三維物體的第一平面影像,其中第一平面影像具有第一影像底線;(b)自起始位置相對於平面上的圓心旋轉預設角度至對照位置,並於對照位置擷取三維物體的第二平面影像,其中第二平面影像具有第二影像底線;(c)根據預設角度旋轉第二平面影像,使第一影像底線與第二影像底線互相平行;(d)沿垂直第二影像底線的方向平移第一平面影像與第二平面影像的至少一者,使得第二平面影像的第二影像底線與第一平面影像的第一影像底線對齊;以及(e)在平移之後,根據第一平面影像與第二平面影像分別計算三維物體相對於平面的距離並紀錄在深度像素中對應的深度像素,以產生第一深度影像。 The invention provides a depth image construction method for generating a first depth image according to a three-dimensional object. The first depth image may include a plurality of depth pixels. The depth image construction method includes (a) capturing a first planar image of a three-dimensional object at a starting position on a plane, wherein the first planar image has a first image baseline; (b) rotating from the starting position relative to a center of a circle on the plane Preset the angle to the control position, and capture a second plane image of the three-dimensional object at the control position, where the second plane image has the second image baseline; (c) rotate the second plane image according to the preset angle to make the first image baseline Parallel to the second image bottom line; (d) translating at least one of the first plane image and the second plane image in a direction perpendicular to the second image base line, so that the second image bottom line of the second plane image and the first plane image are Align the bottom line of the first image; and (e) calculate the distance of the three-dimensional object relative to the plane from the first plane image and the second plane image after translation, and record the corresponding depth pixel in the depth pixel to generate a first depth image .

在本發明一或多個實施方式中,上述之步驟(c)可更包含(c1)根據校正角度旋轉第一平面影像,使第一影像底 線與三維物體的水平線互相平行;以及(c2)根據校正角度與預設角度旋轉第二平面影像,使第一影像底線以及第二影像底線互相平行。 In one or more embodiments of the present invention, the step (c) may further include (c1) rotating the first plane image according to the correction angle, so that the first image is The line and the horizontal line of the three-dimensional object are parallel to each other; and (c2) rotating the second plane image according to the correction angle and the preset angle, so that the first image bottom line and the second image bottom line are parallel to each other.

在本發明一或多個實施方式中,上述之通過圓心之平面的法線與三維物體至少交於一定點。 In one or more embodiments of the present invention, the normal of the plane passing through the center of the circle intersects the three-dimensional object at least at a certain point.

在本發明一或多個實施方式中,上述之定點位於平面之外。 In one or more embodiments of the present invention, the above-mentioned fixed point lies outside the plane.

在本發明一或多個實施方式中,上述之第一平面影像以及第二平面影像分別包含複數個平面像素。步驟(d)可更包含(d1)計算第一平面影像的平面像素與第二平面影像的平面像素與空間中的長度的對應關係;以及(d2)根據對應關係,計算並沿垂直第一物體影像的底線的方向平移第一平面影像與第二平面影像的至少一者。 In one or more embodiments of the present invention, each of the first and second planar images includes a plurality of planar pixels. Step (d) may further include (d1) calculating the correspondence between the planar pixels of the first planar image and the planar pixels of the second planar image and the length in space; and (d2) calculating and along the vertical first object according to the correspondence. The direction of the bottom line of the image translates at least one of the first planar image and the second planar image.

在本發明一或多個實施方式中,上述之深度影像建構方法,更包含改變起始位置,重複進行步驟(a)至步驟(e),以產生另一深度影像;以及將另一深度影像中的每一深度像素與深度影像中的對應之深度像素取平均,以更新深度影像的深度像素,以產生第二深度影像。 In one or more embodiments of the present invention, the above-mentioned depth image construction method further includes changing the starting position, and repeating steps (a) to (e) to generate another depth image; and converting another depth image; Each depth pixel in is averaged with a corresponding depth pixel in the depth image to update the depth pixel of the depth image to generate a second depth image.

本發明提供一種深度影像建構系統包含可旋轉機構、影像擷取裝置以及計算模組。可旋轉機構配置以相對圓心在一平面內旋轉。影像擷取裝置配置於可旋轉機構,且與圓心相距一距離。當可旋轉機構相對圓心旋轉於平面的複數個位置而帶動影像擷取裝置時,影像擷取裝置配置以於複數個位置分別擷取三維物體的複數個平面影像。複數個位置可形成參考 圓。所述平面並不通過三維物體。計算模組可包含第一編程。第一編程配置以根據平面影像中至少兩者產生第一深度影像。 The invention provides a depth image construction system including a rotatable mechanism, an image capturing device, and a computing module. The rotatable mechanism is configured to rotate in a plane relative to the center of the circle. The image capturing device is arranged on the rotatable mechanism and is a distance from the center of the circle. When the rotatable mechanism rotates at a plurality of positions on the plane relative to the center of the circle to drive the image capturing device, the image capturing device is configured to capture a plurality of planar images of the three-dimensional object at the plurality of positions, respectively. Multiple locations can form a reference circle. The plane does not pass through a three-dimensional object. The computing module may include a first programming. The first programming is configured to generate a first depth image according to at least two of the planar images.

在本發明一或多個實施方式中,上述之影像擷取裝置的法線與平面的法線平行。 In one or more embodiments of the present invention, the normal of the image capturing device is parallel to the normal of the plane.

在本發明一或多個實施方式中,上述之複數個平面影像對應之複數個位置中可包含起始位置及參考位置。起始位置與參考位置間係沿參考圓形成圓心角,且第一編程更利用距離及圓心角產生第一深度影像。 In one or more embodiments of the present invention, the plurality of positions corresponding to the plurality of plane images may include a start position and a reference position. A center angle is formed along the reference circle between the starting position and the reference position, and the first programming further uses the distance and the center angle to generate a first depth image.

在本發明一或多個實施方式中,上述之深度影像包含複數個深度像素。計算模組可更包含第二編程。第二編程配置以根據複數個平面影像兩兩配對所產生的複數個第一深度影像,平均複數個第一深度影像中相對應的深度像素,以產生第二深度影像。 In one or more embodiments of the present invention, the above-mentioned depth image includes a plurality of depth pixels. The computing module may further include a second programming. The second programming is configured to generate a second depth image by averaging corresponding depth pixels in the plurality of first depth images according to the plurality of first depth images generated by pairing the plurality of plane images in pairs.

100‧‧‧深度影像建構系統 100‧‧‧Depth image construction system

200/200’‧‧‧可旋轉機構 200 / 200’‧‧‧ rotatable mechanism

220‧‧‧懸臂 220‧‧‧ cantilever

240‧‧‧旋轉承軸 240‧‧‧ rotating bearing

260‧‧‧軌道 260‧‧‧ track

280‧‧‧滑動件 280‧‧‧ Slider

300‧‧‧影像擷取裝置 300‧‧‧Image capture device

400‧‧‧計算模組 400‧‧‧ Computing Module

420‧‧‧第一編程 420‧‧‧first programming

440‧‧‧第二編程 440‧‧‧Second programming

500‧‧‧三維物體 500‧‧‧Three-dimensional object

520‧‧‧水平線 520‧‧‧Horizontal

600A~600E‧‧‧平面影像 600A ~ 600E‧‧‧Planar image

600B’/600B”/600C’/600C”‧‧‧平面影像 600B ’/ 600B” / 600C ’/ 600C” ‧‧‧Planar image

620B/620B’/620C/620C’‧‧‧平面像素 620B / 620B ’/ 620C / 620C’‧‧‧ flat pixels

640A~640E‧‧‧物體平面影像 640A ~ 640E‧‧‧object plane image

660B‧‧‧第一影像底線 660B‧‧‧The first image bottom line

660C‧‧‧第二影像底線 660C‧‧‧Second Image Bottom Line

700‧‧‧深度影像建構方法 700‧‧‧Depth image construction method

800‧‧‧第一深度影像 800‧‧‧ first depth image

820‧‧‧深度像素 820‧‧‧ Depth Pixel

822‧‧‧深度像素 822‧‧‧ Depth Pixel

824‧‧‧深度像素 824‧‧‧ Depth Pixel

840‧‧‧物體深度影像 840‧‧‧ Object Depth Image

900‧‧‧第二深度影像 900‧‧‧ Second depth image

920‧‧‧深度像素 920‧‧‧ Depth pixels

A1/A2/A3/A4‧‧‧位置 A1 / A2 / A3 / A4‧‧‧Location

B1/B2/B3/B4/B5‧‧‧位置 B1 / B2 / B3 / B4 / B5‧‧‧Location

C1/C2/C3‧‧‧圓心 C1 / C2 / C3‧‧‧ Center

D‧‧‧方向 D‧‧‧ direction

k‧‧‧第一角度 k‧‧‧first angle

L1/L2‧‧‧延伸線 L1 / L2‧‧‧ extension cable

P1/P2/P3‧‧‧平面 P1 / P2 / P3‧‧‧Plane

r‧‧‧距離 r‧‧‧ distance

RA‧‧‧旋轉軸 RA‧‧‧Rotary shaft

S710~S760‧‧‧步驟 S710 ~ S760‧‧‧step

VL1‧‧‧垂直線 VL1‧‧‧ vertical line

X‧‧‧定點 X‧‧‧ fixed point

Φ‧‧‧預設角度 Φ‧‧‧Preset angle

為讓本發明之上述和其他目的、特徵、優點與實施例能更明顯易懂,所附圖式之說明如下:第1圖繪示依據本發明多個實施方式之深度影像建構系統的示意圖。 In order to make the above and other objects, features, advantages, and embodiments of the present invention more comprehensible, the description of the drawings is as follows: FIG. 1 is a schematic diagram of a depth image construction system according to various embodiments of the present invention.

第2圖繪示依據本發明另外多個實施方式之深度影像建構系統的示意圖。 FIG. 2 is a schematic diagram of a depth image construction system according to another embodiment of the present invention.

第3圖繪示依據本發明多個實施方式之深度影像建構系統於真實世界中應用於三維物體的簡單示意圖。 FIG. 3 is a simple schematic diagram of a depth image construction system applied to a three-dimensional object in the real world according to various embodiments of the present invention.

第4A圖至第4E圖分別繪示依據本發明多個實施方式之深度影像建構系統於不同位置所擷取的平面影像的示意圖。 FIG. 4A to FIG. 4E are respectively schematic diagrams of plane images captured by the depth image construction system according to various embodiments of the present invention at different positions.

第5圖繪示依據本發明多個實施方式之深度影像建構方法的流程圖。 FIG. 5 is a flowchart illustrating a method for constructing a depth image according to various embodiments of the present invention.

第6A圖至第6D圖繪示依據本發明多個實施方式之深度影像建構方法中不同步驟於成像空間的簡單示意圖。 6A to 6D are simple schematic diagrams of different steps in an imaging space in a method for constructing a depth image according to various embodiments of the present invention.

第7圖繪示依據本發明多個實施方式之深度影像的示意圖。 FIG. 7 is a schematic diagram of a depth image according to various embodiments of the present invention.

第8圖繪示依據本發明另外多個實施方式之深度影像建構方法中不同步驟於成像空間的的簡單示意圖。 FIG. 8 is a simple schematic diagram of different steps in an imaging space in a method for constructing a depth image according to another embodiment of the present invention.

第9圖繪示依據本發明另外多個實施方式之深度影像的示意圖。 FIG. 9 is a schematic diagram of a depth image according to another embodiment of the present invention.

除非有其他表示,在不同圖式中相同之號碼與符號通常被當作相對應的部件。該些圖示之繪示為清楚表達該些實施方式之相關關聯而非繪示該實際尺寸。 Unless otherwise indicated, the same numbers and symbols in different drawings are usually regarded as corresponding parts. The illustrations are shown to clearly illustrate the relevant associations of the embodiments and not to illustrate the actual dimensions.

以下將以圖式揭露本發明之複數個實施方式,為明確說明起見,許多實務上的細節將在以下敘述中一併說明。然而,應瞭解到,這些實務上的細節不應用以限制本發明。也就是說,在本發明部分實施方式中,這些實務上的細節是非必要的。此外,為簡化圖式起見,一些習知慣用的結構與元件在圖式中將以簡單示意的方式繪示之。 In the following, a plurality of embodiments of the present invention will be disclosed graphically. For the sake of clarity, many practical details will be described in the following description. It should be understood, however, that these practical details should not be used to limit the invention. That is, in some embodiments of the present invention, these practical details are unnecessary. In addition, in order to simplify the drawings, some conventional structures and components will be shown in the drawings in a simple and schematic manner.

在本文中,使用第一、第二與第三等等之詞彙,是用於描述各種元件、組件、區域、層與/或區塊是可以被理解的。但是這些元件、組件、區域、層與/或區塊不應該被這些術語所限制。這些詞彙只限於用來辨別單一元件、組件、區域、層與/或區塊。因此,在下文中的一第一元件、組件、區域、層與/或區塊也可被稱為第二元件、組件、區域、層與/或區塊,而不脫離本發明的本意。 In this article, the terms first, second, third, etc. are used to describe various elements, components, regions, layers, and / or blocks that are understandable. However, these elements, components, regions, layers and / or blocks should not be limited by these terms. These terms are limited to identifying single elements, components, regions, layers, and / or blocks. Therefore, a first element, component, region, layer, and / or block in the following may also be referred to as a second element, component, region, layer, and / or block without departing from the intention of the present invention.

第1圖為依據本發明多個實施方式繪示深度影像建構系統100的示意圖。如第1圖所示,深度影像建構系統100包含可旋轉機構200、影像擷取裝置300以及計算模組400。可旋轉機構200配置以一旋轉軸RA相對圓心C1在一平面P1旋轉。在多個實施方式中,可旋轉機構200可包含懸臂220以及旋轉承軸240,分別作為旋轉軸RA與圓心C1,但不限於此。影像擷取裝置300配置於可旋轉機構200,且與圓心C1相距一距離Y。在多個實施方式中,距離Y可於後續的編程中作為影像擷取裝置300的旋轉半徑。在多個實施方式中,距離Y可視實際情況而變動。在多個實施方式中,當可旋轉機構200相對圓心C1旋轉於平面P1的複數個位置A1、A2、A3、A4等,而帶動影像擷取裝置300時,影像擷取裝置300配置以在位置A1、A2、A3、A4時,分別擷取三維物體(參照第3圖的三維物體500)的複數個平面影像(可參照第4A圖至第4E圖),其中複數個位置A1、A2、A3、A4皆位於參考圓R1上。在多個實施方式中,影像擷取裝置300可透過無線或有線的方式與計算模組400相連接。在多個實施方式中,影像擷取裝置300所擷 取的平面影像,也可存儲於其他設備後,再由計算模組400讀取。計算模組400可包含第一編程420。在多個實施方式中,第一編程420可根據平面影像中至少兩者,產生深度影像(參照第5圖),將如後詳述。舉例來說,第一編程420可依照如第5圖所示的深度影像建構方法700,以平面影像中任兩者分別作為第一平面影像與第二平面影像而產生深度影像,但不限於此。 FIG. 1 is a schematic diagram illustrating a depth image construction system 100 according to various embodiments of the present invention. As shown in FIG. 1, the depth image construction system 100 includes a rotatable mechanism 200, an image capturing device 300, and a computing module 400. The rotatable mechanism 200 is configured to rotate on a plane P1 with a rotation axis RA relative to the circle center C1. In various embodiments, the rotatable mechanism 200 may include a cantilever 220 and a rotation bearing shaft 240 as the rotation axis RA and the circle center C1, respectively, but is not limited thereto. The image capturing device 300 is disposed on the rotatable mechanism 200 and is separated from the circle center C1 by a distance Y. In various embodiments, the distance Y can be used as the rotation radius of the image capture device 300 in subsequent programming. In various embodiments, the distance Y may vary depending on the actual situation. In various embodiments, when the rotatable mechanism 200 is rotated at a plurality of positions A1, A2, A3, A4, etc. of the plane P1 relative to the circle center C1, and the image capturing device 300 is driven, the image capturing device 300 is configured to be at the position At A1, A2, A3, and A4, a plurality of plane images (refer to FIGS. 4A to 4E) of the three-dimensional object (refer to the three-dimensional object 500 in FIG. 3) are acquired, among which a plurality of positions A1, A2, and A3 , A4 are located on the reference circle R1. In various embodiments, the image capturing device 300 may be connected to the computing module 400 in a wireless or wired manner. In various embodiments, captured by the image capture device 300 The acquired planar image may also be stored in other devices and then read by the computing module 400. The computing module 400 may include a first programming 420. In various embodiments, the first programming 420 may generate a depth image according to at least two of the planar images (refer to FIG. 5), which will be described in detail later. For example, the first programming 420 may generate a depth image by using any two of the planar images as the first planar image and the second planar image according to the depth image construction method 700 shown in FIG. 5, but is not limited thereto. .

由於深度影像建構系統100的旋轉軸以已知的距離Y相對圓心C1旋轉於參考圓R1上,且配置以在已知的不同位置A1、A2、A3、A4分別擷取三維物體的複數個平面影像,因此,讓計算模組400可根據前述的平面影像中至少兩者與已知條件作為參數,如距離Y、位置A1、A2、A3、A4等,透過第一編程420的計算而得到第一深度影像中每一深度像素的量值,其中深度像素的量值可代表三維物體距離平面P1的距離。藉由固定的取樣流程與已知條件可減少執行第一編程420所需的計算量,使得計算模組400可較為簡易地執行第一編程420而獲得深度影像,且可進一步地降低建構深度影像所需的時間,以節省深度影像建構系統100產生深度影像時,所耗費的計算資源與計算時間(computing time)。此外,深度影像建構系統100可藉由單一影像擷取裝置300而達致深度影像的產生,降低深度影像建構系統100的建構成本與擷取影像時的調整時間。 Because the rotation axis of the depth image construction system 100 rotates on the reference circle R1 with respect to the center C1 at a known distance Y, and is configured to capture a plurality of planes of the three-dimensional object at different known positions A1, A2, A3, and A4, respectively. Therefore, the calculation module 400 can obtain the first program 420 through the calculation of the first programming 420 according to at least two of the foregoing planar images and known conditions as parameters, such as the distance Y, the positions A1, A2, A3, and A4. The magnitude of each depth pixel in a depth image, where the magnitude of the depth pixel can represent the distance of the three-dimensional object from the plane P1. The fixed sampling process and known conditions can reduce the amount of calculation required to execute the first programming 420, so that the computing module 400 can relatively easily execute the first programming 420 to obtain a depth image, and further reduce the construction of the depth image The required time is used to save the computing resources and computing time consumed by the depth image construction system 100 when generating the depth image. In addition, the depth image construction system 100 can achieve the generation of a depth image by using a single image capture device 300, which reduces the construction cost of the depth image construction system 100 and the adjustment time when capturing an image.

第2圖為依據本發明另外多個實施方式繪示深度影像建構系統100’的示意圖。如第2圖所示,在其他的多個實 施方式中,可旋轉機構200’也可包含軌道260,以及滑動件280可滑動地卡合於軌道260以及影像擷取裝置300之間,配置以帶動影像擷取裝置300移動於軌道260的位置B1、B2、B3、B4、B5。然而,此處所述之可旋轉機構200’的圓心C2以及旋轉軸RA分別為軌道260於平面P2所形成之參考圓R2的中心與半徑,而非實際的元件。此外,無論是位置B1、B2、B3、B4、B5皆可作為後述之起始位置或對照位置,將如後詳述。 FIG. 2 is a schematic diagram illustrating a depth image construction system 100 'according to another embodiment of the present invention. As shown in Figure 2, In the embodiment, the rotatable mechanism 200 'may also include a track 260, and the sliding member 280 is slidably engaged between the track 260 and the image capturing device 300, and is configured to drive the image capturing device 300 to move to the position of the track 260. B1, B2, B3, B4, B5. However, the center of the circle C2 and the axis of rotation RA of the rotatable mechanism 200 'described here are the centers and radii of the reference circle R2 formed by the track 260 on the plane P2, rather than the actual components. In addition, both the positions B1, B2, B3, B4, and B5 can be used as the starting position or the control position described later, which will be described in detail later.

值得注意的是,前述之深度影像建構系統100或深度影像建構系統100’的態樣僅為示例,其非用以限制本發明。舉例來說,深度影像建構系統100’的可旋轉機構200’可不限於完成整個環狀繞行,也可為1/4圓或半圓等形狀。舉例來說,深度影像建構系統100’的軌道260可為其他合適的形狀,如橢圓形或方形等。應瞭解到,本領域具有通常知識者,可視實際需要,在不脫離本揭露的精神和範圍下,做適度的修改或替代,只要能夠讓影像擷取裝置300於平面上的不同位置擷取三維物體的平面影像,且每一位置相對圓心C2的旋轉半徑與旋轉角度已知即可。 It should be noted that the aforementioned aspect of the depth image construction system 100 or the depth image construction system 100 'is merely an example, and is not intended to limit the present invention. For example, the rotatable mechanism 200 'of the depth image construction system 100' may not be limited to completing the entire circular detour, but may also be a 1/4 circle or a semicircle shape. For example, the track 260 of the depth image construction system 100 'may be other suitable shapes, such as oval or square. It should be understood that those with ordinary knowledge in the field can make appropriate modifications or substitutions without departing from the spirit and scope of the present disclosure, as long as the image capturing device 300 can capture three-dimensional images at different positions on the plane according to actual needs. The plane image of the object, and the rotation radius and rotation angle of each position relative to the center C2 may be known.

第3圖繪示依據本發明多個實施方式之深度影像建構系統100’於真實世界中應用於三維物體500的簡單示意圖。如第3圖所示,在多個實施方式中,通過參考圓R2的圓心C2之平面P2的法線N1與三維物體500至少交於一定點X,以確保位於位置B1、B2、B3、B4、B5的影像擷取裝置300所擷取到的平面影像可包含對應三維物體500的物體平面影像,像是第4A圖至第4E圖的平面影像600A~600E中所包含的物體平 面影像640A~640E。在多個實施方式中,定點X實質上位於平面P2之外,以避免三維物體500與平面P2相重合的部分無法被影像擷取裝置300擷取,進而可能無法對應三維物體500產生深度影像。也就是說,在多個實施方式中,三維物體500需位於平面P2之外,或平面P2並不通過三維物體500。 FIG. 3 is a simple schematic diagram of a depth image construction system 100 ′ applied to a three-dimensional object 500 in the real world according to various embodiments of the present invention. As shown in FIG. 3, in various embodiments, the normal line N1 of the plane P2 of the center C2 of the reference circle R2 and the three-dimensional object 500 intersect at least a certain point X to ensure that they are located at the positions B1, B2, B3, B4 The plane image captured by the image capturing device 300 of B5 and B5 may include the plane image of the object corresponding to the three-dimensional object 500, such as the plane images 600A ~ 600E included in the plane images 600A to 600E of FIGS. 4A to 4E. Surface images 640A ~ 640E. In various embodiments, the fixed point X is located substantially outside the plane P2 to avoid that the portion where the three-dimensional object 500 coincides with the plane P2 cannot be captured by the image capturing device 300, and may not be able to generate a depth image corresponding to the three-dimensional object 500. That is, in various embodiments, the three-dimensional object 500 needs to be located outside the plane P2, or the plane P2 does not pass through the three-dimensional object 500.

在多個實施方式中,影像擷取裝置300的法線與平面P2的法線N1平行。舉例來說,影像擷取裝置300位於位置B1、B2、B3時,影像擷取裝置300的法線N2、N3、N4可分別與平面P2的法線N1互相平行,讓影像擷取裝置300所擷取的三維物體500的平面影像可應用於後續的過程中產生深度影像。舉例來說,透過第5圖所示的深度影像建構方法700而產生如第7圖的第一深度影像800,或第9圖的第二深度影像900等。 In various embodiments, the normal line of the image capturing device 300 is parallel to the normal line N1 of the plane P2. For example, when the image capture device 300 is located at positions B1, B2, and B3, the normal lines N2, N3, and N4 of the image capture device 300 may be parallel to the normal line N1 of the plane P2, respectively, so that the image capture device 300 The captured planar image of the three-dimensional object 500 can be used to generate depth images in subsequent processes. For example, the depth image construction method 700 shown in FIG. 5 is used to generate the first depth image 800 as shown in FIG. 7 or the second depth image 900 as shown in FIG. 9.

第4A圖至第4E圖繪示依據本發明多個實施方式之深度影像建構系統100’於位置B1~B5分別對三維物體500所擷取的平面影像600A~600E的示意圖。而第4A圖至第4E圖的平面影像600A~600E可分別與第3圖位置B1~B5所擷取的三維物體500相對應。在多個實施方式中,位置B1~B5可分別作為起始位置及參考位置,只要起始位置及參考位置不同即可。藉由起始位置與參考位置朝向圓心C2分別的連線在參考圓R2上所形成的圓心角,進一步地讓第一編程420透過距離Y及圓心角作為參數而產生第一深度影像。舉例來說,參照第3圖。在多個實施方式中,以位置B1作為起始位置,位置B2作為參考位置,並在參考圓R2上形成圓心角ψ 1。在其他的多個 實施方式中,也可以位置B1作為起始位置,位置B3作為參考位置,並在參考圓R2上形成圓心角ψ 2,但不限於此。只要起始位置與參考位置於平面P2上不相重疊,且在參考圓R2上所形成的圓心角為已知,即可讓第一編程420據以產生第一深度影像。應瞭解到,本領域具有通常知識者,當可視實際需要,在不脫離本揭露的精神和範圍下,做適度的修改或替代。 4A to 4E are schematic diagrams of plane images 600A to 600E captured by the three-dimensional object 500 at positions B1 to B5 according to the depth image construction system 100 'according to various embodiments of the present invention. The planar images 600A to 600E in FIGS. 4A to 4E may correspond to the three-dimensional objects 500 captured at positions B1 to B5 in FIG. 3, respectively. In various embodiments, the positions B1 to B5 can be used as the starting position and the reference position, as long as the starting position and the reference position are different. The center angle formed on the reference circle R2 by the respective lines of the starting position and the reference position toward the center C2 of the reference position further allows the first programming 420 to generate a first depth image by using the distance Y and the center angle as parameters. For example, refer to FIG. 3. In various embodiments, the position B1 is used as the starting position, the position B2 is used as the reference position, and the center angle ψ 1 is formed on the reference circle R2. Among others In the embodiment, the position B1 may be used as the starting position, the position B3 may be used as the reference position, and the center angle ψ 2 may be formed on the reference circle R2, but is not limited thereto. As long as the starting position and the reference position do not overlap on the plane P2 and the center angle formed on the reference circle R2 is known, the first programming 420 can be used to generate a first depth image. It should be understood that those with ordinary knowledge in the field may make appropriate modifications or substitutions without departing from the spirit and scope of the present disclosure, according to actual needs.

第5圖為依據本發明多個實施方式繪示之深度影像建構方法700的流程圖。第6A圖至第6C圖為依據本發明多個實施方式繪示之深度影像建構方法700中不同步驟於成像空間的簡單示意圖。如第5圖所示,在多個實施方式中,深度影像建構方法700可包含步驟S710至步驟S750。自步驟S710開始,於一平面的起始位置擷取三維物體的第一平面影像,第一平面影像具有第一影像底線。舉例來說,參照第3圖與第4B圖,自平面P2的起始位置B2擷取三維物體500的平面影像600B(如第4B圖)作為第一平面影像。進一步地,此處所述之平面影像600B可具有第一影像底線660B。 FIG. 5 is a flowchart of a depth image construction method 700 according to various embodiments of the present invention. 6A to 6C are simple schematic diagrams of different steps in an imaging space in a depth image construction method 700 according to various embodiments of the present invention. As shown in FIG. 5, in various embodiments, the depth image construction method 700 may include steps S710 to S750. Starting from step S710, a first plane image of a three-dimensional object is captured at a starting position of a plane, and the first plane image has a first image baseline. For example, referring to FIGS. 3 and 4B, a planar image 600B (such as FIG. 4B) of the three-dimensional object 500 is captured from the starting position B2 of the plane P2 as the first planar image. Further, the planar image 600B described herein may have a first image baseline 660B.

接續地進行步驟S720,自起始位置相對平面上的圓心旋轉預設角度至對照位置,於對照位置擷取三維物體的第二平面影像,第二平面影像具有第二影像底線。舉例來說,參照第3圖與第4C圖,自起始位置B2相對平面P2上的圓心C2旋轉預設角度Φ至對照位置B3,於對照位置B3擷取三維物體500的平面影像600C(如第4C圖)作為第二平面影像。進一步地,此處所述之平面影像600C可具有第二影像底線660C。 Step S720 is successively performed, a preset angle is rotated from the starting position relative to the center of the circle on the plane to the control position, and a second plane image of the three-dimensional object is acquired at the control position. The second plane image has a second image baseline. For example, referring to FIGS. 3 and 4C, the preset position Φ is rotated from the starting position B2 to the center C2 on the plane P2 by a predetermined angle Φ to the control position B3, and a plane image 600C of the three-dimensional object 500 is captured at the control position B3 (such as (Figure 4C) as the second plane image. Further, the planar image 600C described herein may have a second image baseline 660C.

接續地進行步驟S730,根據預設角度旋轉第二平面影像,使第一影像底線以及第二影像底線互相平行。具體而言,可參照第6A圖與第6B圖所示。參照第6A圖,為了方便說明步驟S730的實際意義,可先將平面影像600B與平面影像600C進一步轉換至成像空間的平面P3,讓平面影像600B與平面影像600C分別投影在成像空間的參考圓R3上。其中平行於平面影像600B邊緣的延伸線L1可與通過參考圓R3的圓心C3的垂直線VL1之間,夾一第一角度k,平行平面影像600C邊緣的延伸線L2可與通過圓心C3的垂直線VL1之間,夾一第二角度k+Φ。接續地,參照第6B圖,於成像空間的平面P3中,藉由旋轉矩陣R可將第一影像底線660B以及第二影像底線660C旋轉至互相平行。在多個實施方式中,旋轉第二影像底線660C至與第一影像底線660B互相平行的旋轉矩陣R,其關係式可為: 在多個實施方式中,當θ的量值與預設角度Φ相同時,第一影像底線660B以及旋轉後的第二影像底線660C可互相平行。 Step S730 is successively performed, and the second plane image is rotated according to a preset angle, so that the bottom line of the first image and the bottom line of the second image are parallel to each other. Specifically, refer to FIG. 6A and FIG. 6B. Referring to FIG. 6A, in order to explain the practical significance of step S730, the planar image 600B and the planar image 600C may be further converted to the plane P3 of the imaging space, and the planar image 600B and the planar image 600C are respectively projected on the reference circle R3 of the imaging space. on. The extension line L1 parallel to the edge of the plane image 600B may be at a first angle k between the extension line L1 passing through the center C3 of the reference circle R3 and the extension line L2 of the edge of the parallel plane image 600C may be perpendicular to the center C3 Between the lines VL1, a second angle k + Φ is included. Successively, referring to FIG. 6B, in the plane P3 of the imaging space, the first image floor 660B and the second image floor 660C can be rotated to be parallel to each other by rotating the matrix R. In various embodiments, the second image baseline 660C is rotated to a rotation matrix R parallel to the first image baseline 660B, and the relationship can be: In various embodiments, when the magnitude of θ is the same as the preset angle Φ, the first image baseline 660B and the rotated second image baseline 660C may be parallel to each other.

在其他多個實施方式中,步驟S730可更包含根據一校正角度旋轉第一平面影像,使第一影像底線與三維物體的水平線互相平行;以及根據校正角度與預設角度旋轉第二平面影像,使第一影像底線以及第二影像底線互相平行。舉例來說,如第6B圖所示,於成像空間的平面P3中,可先根據校正角度產生旋轉矩陣R旋轉平面影像600B。若此處所述之校正角度與第一角度k相等,則以第一角度k作為旋轉矩陣R的θ旋轉 平面影像600B所產生的平面影像600B’,於成像空間中的平面影像600B’的第一影像底線660B經旋轉後可與平面影像600A的影像底線660A實質上互相平行。若與第3圖共同參照,可發見影像底線660A於空間中與三維物體500的水平線520也互相平行,亦即,於此實施方式中,經旋轉後的平面影像600B’的第一影像底線660B與三維物體500的水平線520實質上互相平行。接續地,再根據校正角度與預設角度Φ產生另一旋轉矩陣R旋轉平面影像600C,而讓第一影像底線660B與第二影像底線660C互相平行。 In other embodiments, step S730 may further include rotating the first plane image according to a correction angle so that the bottom line of the first image and the horizontal line of the three-dimensional object are parallel to each other; and rotating the second plane image according to the correction angle and a preset angle. Make the bottom line of the first image and the bottom line of the second image parallel to each other. For example, as shown in FIG. 6B, in the plane P3 of the imaging space, a rotation matrix R rotation plane image 600B may be first generated according to the correction angle. If the correction angle described here is equal to the first angle k, the first angle k is used as the θ rotation of the rotation matrix R The planar image 600B 'generated by the planar image 600B, the first image baseline 660B of the planar image 600B' in the imaging space, after being rotated, may be substantially parallel to the image baseline 660A of the planar image 600A. If it is referenced together with FIG. 3, it can be seen that the image bottom line 660A is parallel to the horizontal line 520 of the three-dimensional object 500 in space, that is, the first image bottom line of the rotated planar image 600B 'in this embodiment. 660B and the horizontal line 520 of the three-dimensional object 500 are substantially parallel to each other. Successively, another rotation matrix R is used to generate the plane image 600C according to the correction angle and the preset angle Φ, so that the first image baseline 660B and the second image baseline 660C are parallel to each other.

值得注意的是,前述之旋轉矩陣R的態樣僅為示例,而非用以限制本發明。舉例來說,也可透過旋轉矩陣R將平面影像600B的第一影像底線660B旋轉至與三維物體500的水平線520互相垂直的方向。應瞭解到,本領域具有通常知識者,可視實際需要,在不脫離本揭露的精神和範圍下,做適度的修改或替代,只要能夠讓平面影像600B或旋轉後的平面影像600B’的第一影像底線660B與平面影像600C的第二影像底線660C互相平行即可。 It should be noted that the aforementioned aspect of the rotation matrix R is merely an example, and is not intended to limit the present invention. For example, the first image baseline 660B of the planar image 600B can also be rotated to a direction perpendicular to the horizontal line 520 of the three-dimensional object 500 through the rotation matrix R. It should be understood that those with ordinary knowledge in the field may make appropriate modifications or substitutions without departing from the spirit and scope of the present disclosure, as long as the plane image 600B or the rotated plane image 600B ' The image bottom line 660B and the second image bottom line 660C of the planar image 600C may be parallel to each other.

接續地進行步驟S740,沿垂直第二影像底線的方向平移第一平面影像與第二平面影像的至少一者,讓第二平面影像的第二影像底線與第一平面影像的第一影像底線對齊。舉例來說,參照第6C圖,在多個實施方式中,在成像空間的平面P3上,可沿垂直旋轉後的第二影像底線660C的方向D,平移平面影像600B’,使得平面影像660C’的第二影像底線660與平移後的平面影像660B”的第一影像底線660B相對齊。舉 例來說,參照第6D圖,在其他的多個實施方式中,在成像空間的平面P3上,也可將第二平面影像600C’沿垂直旋轉後的第二影像底線660C的方向D平移,而讓平移後的平面影像660C”的第二影像底線660與第一平面影像660B’的第一影像底線660B相對齊。 Step S740 is successively performed, and at least one of the first planar image and the second planar image is translated in a direction perpendicular to the bottom line of the second image, so that the second image bottom line of the second plane image is aligned with the first image bottom line of the first plane image. . For example, referring to FIG. 6C, in various embodiments, on the plane P3 of the imaging space, the plane image 600B 'can be translated along the direction D of the second image baseline 660C after vertical rotation, so that the plane image 660C' The second image baseline 660 of the image is aligned with the first image baseline 660B of the flat image 660B after translation. For example, referring to FIG. 6D, in other embodiments, on the plane P3 of the imaging space, the second plane image 600C 'may also be translated in the direction D of the second image baseline 660C after vertical rotation. The second image baseline 660 of the translated planar image 660C ″ is aligned with the first image baseline 660B of the first planar image 660B ′.

參照第4B圖與第4C圖,在其他的多個實施方式中,平面影像600B以及平面影像600C可分別包含複數個平面像素,如不包含物體平面影像640B的平面像素620B、包含物體平面影像640B的平面像素620B’、不包含物體平面影像640C的平面像素620C以及包含物體平面影像640C的620C’等。步驟S740可更包含計算第一平面影像與第二平面影像於成像空間的像素距離與實際空間中長度的對應關係;以及根據對應關係,計算並沿垂直第一物體影像的底線的方向平移第一平面影像與第二平面影像的至少一者。舉例來說,可根據於第6A圖至第6D圖的成像空間中所計算之平面影像600B的平面像素620B對應第3圖的實際空間中的長度的相對關係,用以決定在成像空間中平移平面影像600B’與平面影像660C’至相對齊時的像素距離。 Referring to FIG. 4B and FIG. 4C, in other embodiments, the planar image 600B and the planar image 600C may each include a plurality of planar pixels, such as a planar pixel 620B that does not include an object planar image 640B, and an planar image 640B that includes an object. Plane pixel 620B ', plane pixel 620C that does not include the plane image 640C of the object, and 620C' that includes the plane image 640C of the object, etc. Step S740 may further include calculating a correspondence relationship between the pixel distance of the first planar image and the second planar image in the imaging space and the length in the actual space; and according to the correspondence relationship, calculating and translating the first in a direction perpendicular to the bottom line of the first object image At least one of a planar image and a second planar image. For example, the relative relationship between the plane pixels 620B of the planar image 600B calculated in the imaging space of FIGS. 6A to 6D corresponding to the length in the actual space of FIG. 3 may be used to determine the translation in the imaging space. The pixel distance when the planar image 600B ′ and the planar image 660C ′ are relatively aligned.

參照第6B圖至第6D圖,在其他的多個實施方式中,也可藉由比對平面影像600B中包含物體平面影像640B的平面像素620B’(如第4B圖)與平面影像600C中包含物體平面影像640C的平面像素620C’(如第4C圖)的相對位置,以決定於成像空間中,平移平面影像600B’與第二平面影像600C’的至少一者時,所需移動距離的像素數量。 Referring to FIG. 6B to FIG. 6D, in other embodiments, the plane image 600B may also include the plane pixel 620B '(e.g., FIG. 4B) of the plane image 640B and the plane image 600C of the object. The relative position of the plane pixels 620C '(as shown in FIG. 4C) of the plane image 640C is determined by the number of pixels required to move the plane image 600B' and the second plane image 600C 'by moving at least one of the plane images 600B' and the second plane image 600C 'in the imaging space. .

第7圖為依據本發明多個實施方式繪示之第一深度影像800的示意圖。接續地進行步驟S750,在平移之後,根據第一平面影像與第二平面影像分別計算三維物體在像素中相對平面的距離,產生深度影像。舉例來說,參照第3圖、第6C圖以及第7圖,根據平面影像600B”與平面影像600C’分別計算三維物體500以及其他像素內所擷取的影像相對平面P2的距離,並紀錄在第7圖的深度像素820中對應者,像是紀錄三維物體500與平面P2的距離於深度像素824,或紀錄其他像素內所擷取的影像與平面P2的距離於深度像素822等,以產生第一深度影像800。 FIG. 7 is a schematic diagram of a first depth image 800 according to various embodiments of the present invention. Step S750 is successively performed. After the translation, the distances of the three-dimensional objects relative to the plane of the pixels are respectively calculated according to the first plane image and the second plane image to generate a depth image. For example, referring to FIG. 3, FIG. 6C, and FIG. 7, according to the plane image 600B "and the plane image 600C ', the distances of the captured images in the three-dimensional object 500 and other pixels from the plane P2 are calculated and recorded in The counterpart of the depth pixel 820 in FIG. 7 is to record the distance between the three-dimensional object 500 and the plane P2 to the depth pixel 824, or to record the distance between the image captured in other pixels and the plane P2 to the depth pixel 822, etc. to generate First depth image 800.

舉例來說,在多個實施方式中,可先透過將包含物體平面影像640B的平面像素620B’、包含物體平面影像640C的平面像素620C’與包含物體深度影像840的深度像素824相對正,以建立平面影像600B與平面影像600C的像素與深度像素820的對應關係。再藉由立體視覺(stereo vision)的方法進一步計算產生三維物體500以及其他像素內所擷取的影像相對平面P2的距離,並對應紀錄於深度像素820,以產生第一深度影像800。 For example, in various embodiments, the plane pixels 620B ′ including the plane image 640B of the object, the plane pixels 620C ′ including the plane image 640C of the object, and the depth pixels 824 including the depth image 840 of the object may be relatively positive. The correspondence between the pixels of the planar image 600B and the planar image 600C and the depth pixels 820 is established. The distance of the captured image in the three-dimensional object 500 and other pixels from the plane P2 is further calculated by the method of stereo vision, and is recorded in the depth pixel 820 correspondingly to generate the first depth image 800.

如第7圖所示,第一深度影像800可包含複數個深度像素820。每一深度像素820的量值,可代表對應的平面影像的像素中所擷取的物體與平面P2的距離。舉例來說,深度像素820以0~255的數值表示距離,越大的數值代表距離平面P2越遠,但不限於此。舉例來說,第一深度影像800中包含對應三維物體500(參照第3圖)的物體深度影像840的深度像素 824,其量值代表三維物體500距離平面P2的距離。在多個實施方式中,第一深度影像800的深度像素820可與平面影像的平面像素相對應,舉例來說,與第4B圖的平面影像600B的平面像素620B、620B’相對應。 As shown in FIG. 7, the first depth image 800 may include a plurality of depth pixels 820. The magnitude of each depth pixel 820 may represent the distance between the object captured in the corresponding planar image pixel and the plane P2. For example, the depth pixel 820 represents a distance with a value from 0 to 255. A larger value represents a further distance from the plane P2, but is not limited thereto. For example, the first depth image 800 includes the depth pixels of the object depth image 840 corresponding to the three-dimensional object 500 (refer to FIG. 3). 824, whose magnitude represents the distance of the three-dimensional object 500 from the plane P2. In various embodiments, the depth pixels 820 of the first depth image 800 may correspond to the planar pixels of the planar image, for example, the planar pixels 620B, 620B 'of the planar image 600B of FIG. 4B.

回頭參照第6B圖。在多個實施方式中,若將平面影像600B’視作旋轉後的第一平面影像,並將平面影像600C’視作旋轉後的第二平面影像,則圓心C3至第一影像底線660B的延伸線的垂直距離大於圓心C3至第二影像底線660C的延伸線的垂直距離。此時,預設角度Φ>0。在其他的多個實施方式中,若將平面影像600C’視作旋轉後的第一平面影像,並將平面影像600B’視作旋轉後的第二平面影像,則圓心C3至第二影像底線660B的延伸線的垂直距離大於圓心C3至第一影像底線660C的延伸線的垂直距離。此時,預設角度Φ<0。應瞭解到,本領域具有通常知識者,當可視實際需要,在不脫離本揭露的精神和範圍下,做適度的修改或替代。 Refer back to Figure 6B. In various embodiments, if the plane image 600B ′ is regarded as the first plane image after rotation, and the plane image 600C ′ is regarded as the second plane image after rotation, the circle C3 extends to the first image bottom line 660B. The vertical distance of the line is greater than the vertical distance of the center line C3 to the extension line of the second image bottom line 660C. At this time, the preset angle Φ> 0. In other embodiments, if the plane image 600C ′ is regarded as the first plane image after rotation and the plane image 600B ′ is regarded as the second plane image after rotation, the circle center C3 to the second image bottom line 660B The vertical distance of the extension line of is greater than the vertical distance from the circle center C3 to the extension line of the first image bottom line 660C. At this time, the preset angle Φ <0. It should be understood that those with ordinary knowledge in the field may make appropriate modifications or substitutions without departing from the spirit and scope of the present disclosure, according to actual needs.

第8圖繪示依據本發明另外多個實施方式之深度影像建構方法700中不同步驟於成像空間的簡單示意圖。第9圖繪示依據本發明另外多個實施方式之第二深度影像900的示意圖。在其他的多個實施方式中,深度影像建構方法700更包含步驟S760。在步驟S760中,改變起始位置,並重複進行步驟S710至步驟S750,以取得複數個深度影像或至少另一深度影像,接著將取得之深度影像中對應的每一深度像素取平均,用以更新深度影像的深度像素。舉例來說,參照第3圖、第7圖至第9圖,影像擷取裝置300移動於位置B1~B5,並分別拍 攝如第4A圖至第4E圖的平面影像600A~600E。在多個實施方式中,計算模組400可更包含第二編程440。第二編程440可根據複數個平面影像,如平面影像600A~600E,取其中兩兩配對,根據前述步驟S730至步驟S750產生複數個第一深度影像800。接著平均複數個第一深度影像800中相對應的深度像素820,以產生第二深度影像900。換句話說,第二深度影像900中的深度像素920的量值為每一第一深度影像800的深度像素820中對應者量值的平均。 FIG. 8 is a simple schematic diagram of different steps in an imaging space in a depth image construction method 700 according to other embodiments of the present invention. FIG. 9 is a schematic diagram of a second depth image 900 according to another embodiment of the present invention. In other embodiments, the depth image construction method 700 further includes step S760. In step S760, the starting position is changed, and steps S710 to S750 are repeatedly performed to obtain a plurality of depth images or at least another depth image, and then average each depth pixel corresponding to the obtained depth image for Updates the depth pixels of a depth image. For example, referring to FIG. 3, FIG. 7 to FIG. 9, the image capturing device 300 moves to positions B1 to B5, and shoots separately Take planar images 600A ~ 600E as shown in Figures 4A to 4E. In various embodiments, the computing module 400 may further include a second programming 440. The second programming 440 may generate a plurality of first depth images 800 according to the foregoing steps S730 to S750 according to the foregoing steps S730 to S750 according to the plurality of planar images, such as the planar images 600A to 600E. Then, the corresponding depth pixels 820 in the plurality of first depth images 800 are averaged to generate a second depth image 900. In other words, the magnitude of the depth pixels 920 in the second depth image 900 is an average of the magnitudes of the corresponding ones in the depth pixels 820 of each first depth image 800.

綜上所述,本發明提供一種深度影像建構方法,其在一平面的不同位置對應擷取三維物體的多個平面影像,並利用複數個平面影像中至少兩者計算三維物體相對平面的距離以產生深度影像。在多個實施方式中,本發明可提供一種應用深度影像建構方法的系統,透過固定起始位置及參考位置之間相對的關係作為已知條件,如起始位置及參考位置之間的距離、起始位置及參考位置之間相對參考圓的圓心旋轉的角度等。由於取樣流程與已知條件的變化較為固定,是故應用深度影像建構方法的系統可減少或降低產生深度影像所需的計算量,讓計算模組建構深度影像所需的時間可進一步地被降低,以節省應用深度影像建構方法的系統於產生深度影像時,所耗費的計算資源與計算時間。此外,應用深度影像建構方法的系統可藉由單一影像擷取裝置而達致深度影像的產生,降低應用深度影像建構方法的系統的建構成本。 In summary, the present invention provides a method for constructing a depth image, which captures multiple planar images of a three-dimensional object correspondingly at different positions in a plane, and uses at least two of the plurality of planar images to calculate the distance of the three-dimensional object relative to the plane to Generate depth images. In various embodiments, the present invention may provide a system for applying a method of constructing a depth image, by using a relative relationship between a fixed starting position and a reference position as a known condition, such as a distance between the starting position and the reference position, The rotation angle between the starting position and the reference position relative to the center of the reference circle. Because the change of the sampling process and known conditions is relatively fixed, the system applying the depth image construction method can reduce or reduce the amount of calculation required to generate the depth image, so that the time required for the calculation module to construct the depth image can be further reduced. In order to save the calculation resources and time consumed by the system applying the depth image construction method when generating the depth image. In addition, the system applying the depth image construction method can achieve the generation of the depth image by a single image capture device, reducing the construction cost of the system applying the depth image construction method.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和 範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention. Any person skilled in the art will not depart from the spirit and scope of the present invention. Within the scope, various modifications and retouching can be made, so the protection scope of the present invention shall be determined by the scope of the appended patent application.

Claims (10)

一種深度影像建構方法,用於根據一三維物體產生一第一深度影像,其中該第一深度影像包含複數個深度像素,該深度影像建構方法包含:(a)在一平面的一起始位置擷取該三維物體的一第一平面影像,該第一平面影像具有一第一影像底線,其中該平面之法線平行該第一平面影像之法線;(b)自該起始位置相對於該平面上的一圓心旋轉一預設角度至一對照位置,於該對照位置擷取該三維物體的一第二平面影像,該第二平面影像具有一第二影像底線,其中該平面之法線平行該第二平面影像之法線;(c)根據該預設角度旋轉該第二平面影像,使該第一影像底線以及該第二影像底線互相平行;(d)沿垂直該第二影像底線的方向平移該第一平面影像與該第二平面影像的至少一者,使得該第二平面影像的該第二影像底線與該第一平面影像的該第一影像底線對齊;以及(e)在平移之後,根據該第一平面影像與該第二平面影像分別計算該三維物體相對於該平面的距離,並紀錄在該些深度像素中對應者,以產生該第一深度影像。A depth image construction method for generating a first depth image according to a three-dimensional object, wherein the first depth image includes a plurality of depth pixels, and the depth image construction method includes: (a) capturing a starting position in a plane A first plane image of the three-dimensional object, the first plane image having a first image baseline, wherein the normal of the plane is parallel to the normal of the first plane image; (b) relative to the plane from the starting position A center of the circle is rotated by a preset angle to a control position, and a second plane image of the three-dimensional object is captured at the control position. The second plane image has a second image base line, and the normal of the plane is parallel to the The normal of the second plane image; (c) rotating the second plane image according to the preset angle so that the first image baseline and the second image baseline are parallel to each other; (d) in a direction perpendicular to the second image baseline Panning at least one of the first planar image and the second planar image so that the second image baseline of the second planar image is aligned with the first image baseline of the first planar image; and ( e) After the translation, calculate the distance of the three-dimensional object with respect to the plane according to the first plane image and the second plane image, and record the corresponding ones in the depth pixels to generate the first depth image. 如申請專利範圍第1項所述之深度影像建構方法,其中步驟(c)更包含:(c1)根據一校正角度旋轉該第一平面影像,使該第一影像底線與該三維物體的一水平線互相平行;以及(c2)根據該校正角度與該預設角度旋轉該第二平面影像,使該第一影像底線以及該第二影像底線互相平行。The method for constructing a depth image according to item 1 of the scope of patent application, wherein step (c) further comprises: (c1) rotating the first plane image according to a correction angle so that the bottom line of the first image and a horizontal line of the three-dimensional object Parallel to each other; and (c2) rotating the second plane image according to the correction angle and the preset angle so that the bottom line of the first image and the bottom line of the second image are parallel to each other. 如申請專利範圍第1項所述之深度影像建構方法,其中通過該圓心之該平面的法線與該三維物體至少交於一定點。The depth image construction method according to item 1 of the scope of patent application, wherein the normal of the plane passing through the center of the circle intersects the three-dimensional object at least at a certain point. 如申請專利範圍第3項所述之深度影像建構方法,其中該定點位於該平面之外。The depth image construction method according to item 3 of the scope of patent application, wherein the fixed point is located outside the plane. 如申請專利範圍第1項所述之深度影像建構方法,其中該第一平面影像以及該第二平面影像分別包含複數個平面像素,其中步驟(d)更包含:(d1)計算該第一平面影像的該些平面像素與該第二平面影像的該些平面像素與空間中的長度的一對應關係;以及(d2)根據該對應關係,計算並沿垂直該第一物體影像的底線的方向平移該第一平面影像與該第二平面影像的至少一者。The method for constructing a depth image according to item 1 of the scope of the patent application, wherein the first plane image and the second plane image each include a plurality of plane pixels, and step (d) further includes: (d1) calculating the first plane A corresponding relationship between the planar pixels of the image and the planar pixels of the second planar image and the length in space; and (d2) calculating and translating in a direction perpendicular to the bottom line of the first object image according to the corresponding relationship At least one of the first planar image and the second planar image. 如申請專利範圍第1項所述之深度影像建構方法,更包含:改變該起始位置,重複進行步驟(a)至步驟(e),以產生另一該第一深度影像;以及將另一該第一深度影像中的每一該些深度像素與該第一深度影像中的對應之該深度像素取平均,以更新該第一深度影像的該些深度像素,以產生一第二深度影像。The method for constructing a depth image as described in item 1 of the patent application scope further comprises: changing the starting position, and repeating steps (a) to (e) to generate another first depth image; and Each of the depth pixels in the first depth image is averaged with the corresponding depth pixel in the first depth image to update the depth pixels of the first depth image to generate a second depth image. 一種深度影像建構系統,包含:一可旋轉機構,配置以相對一圓心在一平面旋轉;一影像擷取裝置,配置於該可旋轉機構,且與該圓心相距一距離,其中當該可旋轉機構相對該圓心旋轉於該平面之複數個位置而帶動該影像擷取裝置時,該影像擷取裝置配置以於該些位置分別擷取一三維物體的複數個平面影像,其中該些位置可形成一參考圓,以及該平面並不通過該三維物體,該平面之法線平行該些平面影像之法線;以及一計算模組,包含一第一編程,配置以根據該些平面影像中至少兩者產生一第一深度影像。A depth image construction system includes: a rotatable mechanism configured to rotate in a plane relative to a circle center; an image capture device disposed in the rotatable mechanism and a distance from the circle center, wherein when the rotatable mechanism When the image capturing device is driven by rotating at a plurality of positions on the plane relative to the center of the circle, the image capturing device is configured to capture a plurality of planar images of a three-dimensional object at the positions, respectively, where the positions can form a A reference circle, and the plane does not pass through the three-dimensional object, the normal of the plane is parallel to the normal of the plane images; and a calculation module including a first programming configured to be based on at least two of the plane images Generate a first depth image. 如申請專利範圍第7項所述之深度影像建構系統,其中該影像擷取裝置的法線與該平面的法線平行。The depth image construction system according to item 7 of the scope of patent application, wherein the normal of the image capturing device is parallel to the normal of the plane. 如申請專利範圍第7項所述之深度影像建構系統,其中該些平面影像對應之該些位置中包含一起始位置及一參考位置,該起始位置及該參考位置間係沿該參考圓形成一圓心角,且該第一編程更利用該距離及該圓心角產生該第一深度影像。The depth image construction system according to item 7 of the scope of the patent application, wherein the positions corresponding to the plane images include a starting position and a reference position, and the starting position and the reference position are formed along the reference circle. A center angle, and the first programming uses the distance and the center angle to generate the first depth image. 如申請專利範圍第7項所述之深度影像建構系統,其中該深度影像包含複數個深度像素,該計算模組更包含第二編程,配置以根據該些平面影像兩兩配對產生的複數個該第一深度影像,平均該些第一深度影像中相對應的該些深度像素,以產生一第二深度影像。The depth image construction system according to item 7 of the scope of the patent application, wherein the depth image includes a plurality of depth pixels, and the calculation module further includes a second programming configured to match the plurality of pairwise generated pairs of the planar images. The first depth image averages the corresponding depth pixels in the first depth images to generate a second depth image.
TW105125475A 2016-06-21 2016-08-10 Depth-image constructed method and system using the same TWI623912B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
??201610452874.X 2016-06-21
CN201610452874.XA CN106060521B (en) 2016-06-21 2016-06-21 Depth image constructing method and system

Publications (2)

Publication Number Publication Date
TW201801046A TW201801046A (en) 2018-01-01
TWI623912B true TWI623912B (en) 2018-05-11

Family

ID=57168704

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105125475A TWI623912B (en) 2016-06-21 2016-08-10 Depth-image constructed method and system using the same

Country Status (2)

Country Link
CN (1) CN106060521B (en)
TW (1) TWI623912B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10841561B2 (en) * 2017-03-24 2020-11-17 Test Research, Inc. Apparatus and method for three-dimensional inspection

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957872A (en) * 2011-08-22 2013-03-06 无锡海森诺科技有限公司 Multifunctional photographing device
TW201439664A (en) * 2013-04-15 2014-10-16 Htc Corp Controlling method and electronic apparatus
CN104154875A (en) * 2014-08-20 2014-11-19 深圳大学 Three-dimensional data acquisition system and acquisition method based on two-axis rotation platform

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1069415C (en) * 1997-07-22 2001-08-08 潘浩瀚 Real-time compound stereoscopic and cartoon photographic method and device
CN2610367Y (en) * 2002-12-19 2004-04-07 关钟森 Folding camera
CN1580975A (en) * 2003-07-30 2005-02-16 杨小标 Method for manufacturing four-dimensional holographic portrait anticounterfeit mark
US8233077B2 (en) * 2007-12-27 2012-07-31 Qualcomm Incorporated Method and apparatus with depth map generation
TWI532009B (en) * 2010-10-14 2016-05-01 華晶科技股份有限公司 Method and apparatus for generating image with shallow depth of field
CN102566244A (en) * 2010-12-21 2012-07-11 天津国信浩天三维科技有限公司 360-degree panoramic three-dimensional camera system
CN102168954B (en) * 2011-01-14 2012-11-21 浙江大学 Monocular-camera-based method for measuring depth, depth field and sizes of objects
JP2012190299A (en) * 2011-03-11 2012-10-04 Sony Corp Image processing system and method, and program
CN102760234B (en) * 2011-04-14 2014-08-20 财团法人工业技术研究院 Depth image acquisition device, system and method
US20130057655A1 (en) * 2011-09-02 2013-03-07 Wen-Yueh Su Image processing system and automatic focusing method
KR101930235B1 (en) * 2012-05-15 2018-12-18 삼성전자 주식회사 Method, device and system for digital image stabilization
CN103905806B (en) * 2012-12-26 2018-05-01 三星电子(中国)研发中心 The system and method that 3D shootings are realized using single camera
CN104102068B (en) * 2013-04-11 2017-06-30 聚晶半导体股份有限公司 Atomatic focusing method and automatic focusing mechanism
CN204302657U (en) * 2014-12-31 2015-04-29 苏州江奥光电科技有限公司 A kind of device utilizing single camera to realize binocular vision three-dimensional imaging
CN204461397U (en) * 2015-03-23 2015-07-08 浙江师范大学 A kind of three dimensional depth view data scanister of single-sensor

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102957872A (en) * 2011-08-22 2013-03-06 无锡海森诺科技有限公司 Multifunctional photographing device
TW201439664A (en) * 2013-04-15 2014-10-16 Htc Corp Controlling method and electronic apparatus
CN104154875A (en) * 2014-08-20 2014-11-19 深圳大学 Three-dimensional data acquisition system and acquisition method based on two-axis rotation platform

Also Published As

Publication number Publication date
CN106060521A (en) 2016-10-26
CN106060521B (en) 2019-04-16
TW201801046A (en) 2018-01-01

Similar Documents

Publication Publication Date Title
US20160282598A1 (en) 3D Microscope Calibration
TWI605270B (en) Device and method for relative positioning of multi-aperture optics comprising several optical channels in relation to an image sensor
US10353191B2 (en) Circular scanning technique for large area inspection
EP3128484B1 (en) Method of estimating parameter of three-dimensional (3d) display device and 3d display device using the method
US10692409B2 (en) Information processing apparatus, information processing method, and computer program product for arranging a planar image in a full-spherical panoramic image obtained by imaging an omnidirectional range
CN109118545A (en) 3-D imaging system scaling method and system based on rotary shaft and binocular camera
WO2012053521A1 (en) Optical information processing device, optical information processing method, optical information processing system, and optical information processing program
JP6848385B2 (en) 3D shape measuring device
TWI618640B (en) Three dimensional printing system, and method for three dimensional printing
WO2021212978A1 (en) Calibration method, calibration apparatus, and non-volatile computer-readable storage medium
CN108648232A (en) A kind of binocular stereo visual sensor integral type scaling method based on accurate two-axis platcform
CN110809786A (en) Calibration device, calibration chart, chart pattern generation device, and calibration method
WO2013005265A1 (en) Three-dimensional coordinate measuring device and three-dimensional coordinate measuring method
Piccinini et al. Automated image mosaics by non‐automated light microscopes: the MicroMos software tool
CN103327238B (en) Based on the spatial registration method of panorama clipping the ball all-in-one
JP2010276433A (en) Imaging device, image processor, and distance measuring device
TWI623912B (en) Depth-image constructed method and system using the same
CN103797515B (en) By the method and system of the motion analysis that Geometric corrections and warpage carry out
CN109118529A (en) A kind of screw hole Image Quick Orientation method of view-based access control model
López-Nicolás et al. Unitary torus model for conical mirror based catadioptric system
JP4548228B2 (en) Image data creation method
CN106706269B (en) Double fish-eye detection method and device
JP6807281B2 (en) Imaging device, imaging system, and imaging method
WO2019100216A1 (en) 3d modeling method, electronic device, storage medium and program product
CN108510537B (en) 3D modeling method and device