TWI604411B - Structured-light-based exposure control method and exposure control apparatus - Google Patents

Structured-light-based exposure control method and exposure control apparatus Download PDF

Info

Publication number
TWI604411B
TWI604411B TW105142351A TW105142351A TWI604411B TW I604411 B TWI604411 B TW I604411B TW 105142351 A TW105142351 A TW 105142351A TW 105142351 A TW105142351 A TW 105142351A TW I604411 B TWI604411 B TW I604411B
Authority
TW
Taiwan
Prior art keywords
exposure
image
exposure control
pixel
confidence
Prior art date
Application number
TW105142351A
Other languages
Chinese (zh)
Other versions
TW201824190A (en
Inventor
陳星宏
周詹閔
Original Assignee
光寶電子(廣州)有限公司
光寶科技股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 光寶電子(廣州)有限公司, 光寶科技股份有限公司 filed Critical 光寶電子(廣州)有限公司
Priority to TW105142351A priority Critical patent/TWI604411B/en
Application granted granted Critical
Publication of TWI604411B publication Critical patent/TWI604411B/en
Publication of TW201824190A publication Critical patent/TW201824190A/en

Links

Description

基於結構光的曝光控制方法及曝光控制裝置Structure light-based exposure control method and exposure control device

本發明是有關於一種曝光控制方法及曝光控制裝置,且特別是有關於一種基於結構光的曝光控制方法及曝光控制裝置。The present invention relates to an exposure control method and an exposure control device, and more particularly to an exposure control method based on structured light and an exposure control device.

在電腦圖學的領域中,針對物體外觀輪廓的幾何量測技術在現今的應用上,舉凡工業設計、逆向工程、製造零件檢測、數位文物典藏、文物遺跡考古等均有三維取像與資料分析的需求。In the field of computer graphics, the geometric measurement technology for the appearance contour of objects has three-dimensional image acquisition and data analysis in industrial applications, reverse engineering, manufacturing parts inspection, digital cultural relics collection, cultural relics archaeology, etc. Demand.

以現有基於時間編碼的結構光(time-coded structured light)而言,其可提供相當精細的立體掃描結果。此種掃描方式是利用不同相位移以及頻率的結構光投射到物體表面,再利用影像擷取裝置擷取因物體表面輪廓而造成變形的結構光的多張影像,以藉由影像分析得到物體的完整表面資訊。然而,在投射具有結構光的圖樣到物體表面時可能因為曝光過度造成錯誤立體資訊,或因為曝光不足而造成信心度過低而計算出錯誤率高的立體資訊。In the case of existing time-coded structured light, it provides fairly fine stereoscopic scan results. The scanning method is to use the structured light with different phase shifts and frequencies to project onto the surface of the object, and then use the image capturing device to capture multiple images of the structured light deformed by the surface contour of the object to obtain the object by image analysis. Complete surface information. However, when projecting a pattern having structured light to the surface of the object, stereoscopic information may be calculated due to excessive stereoscopic information caused by overexposure or low confidence due to insufficient exposure.

本發明提供一種基於結構光的曝光控制方法及曝光控制裝置,用以控制曝光條件以提升立體掃描的影像品質。The invention provides an exposure control method based on structured light and an exposure control device for controlling exposure conditions to improve image quality of stereoscopic scanning.

本發明的基於結構光的曝光控制方法適用於具有投影機及影像擷取裝置的曝光控制裝置,上述曝光控制方法包括:根據多個曝光條件對物體進行結構光掃描操作以產生對應的多個影像組;從所述曝光條件中決定最佳曝光條件,其中最佳曝光條件對應的影像組的曝光不合格值小於其他影像組的曝光不合格值,曝光不合格值是藉由每一影像組中的過度曝光畫素的個數及信心度過低畫素的個數來決定;以及根據最佳曝光條件對應的影像組計算物體的立體影像。The structured light-based exposure control method of the present invention is applicable to an exposure control device having a projector and an image capturing device, and the exposure control method includes: performing a structured light scanning operation on an object according to a plurality of exposure conditions to generate a corresponding plurality of images The optimal exposure condition is determined from the exposure conditions, wherein the exposure failure value of the image group corresponding to the optimal exposure condition is smaller than the exposure failure value of the other image group, and the exposure failure value is obtained by each image group The number of overexposed pixels and the degree of confidence are determined by the number of low pixels; and the stereo image of the object is calculated according to the image group corresponding to the optimal exposure condition.

本發明的基於結構光的曝光控制裝置包括投影機、影像擷取裝置及處理器。處理器耦接投影機及影像擷取裝置。處理器指示投影機及影像擷取裝置根據多個曝光條件對物體進行結構光掃描操作以產生對應的多個影像組。處理器從所述曝光條件中決定最佳曝光條件。最佳曝光條件對應的影像組的曝光不合格值小於其他影像組的曝光不合格值。曝光不合格值是藉由每一影像組中的過度曝光畫素的個數及信心度過低畫素的個數來決定。處理器根據最佳曝光條件對應的影像組計算物體的立體影像。The structured light-based exposure control apparatus of the present invention includes a projector, an image capture device, and a processor. The processor is coupled to the projector and the image capturing device. The processor instructs the projector and the image capturing device to perform a structured light scanning operation on the object according to the plurality of exposure conditions to generate a corresponding plurality of image groups. The processor determines an optimal exposure condition from the exposure conditions. The exposure failure value of the image group corresponding to the optimal exposure condition is smaller than the exposure failure value of the other image group. The exposure failure value is determined by the number of overexposed pixels in each image group and the number of low confidence pixels. The processor calculates a stereoscopic image of the object according to the image group corresponding to the optimal exposure condition.

基於上述,本發明的曝光控制方法及曝光控制裝置會從多個曝光條件中決定最佳曝光條件,並根據最佳曝光條件對應的影像組計算物體的立體影像。Based on the above, the exposure control method and the exposure control device of the present invention determine an optimal exposure condition from a plurality of exposure conditions, and calculate a stereoscopic image of the object based on the image group corresponding to the optimal exposure condition.

為讓本發明的上述特徵和優點能更明顯易懂,下文特舉實施例,並配合所附圖式作詳細說明如下。The above described features and advantages of the invention will be apparent from the following description.

本發明的部份實施例接下來將會配合附圖來詳細描述,以下的描述所引用的元件符號,當不同附圖出現相同的元件符號將視為相同或相似的元件。這些實施例只是本發明的一部份,並未揭示所有本發明的可實施方式。更確切的說,這些實施例只是本發明的專利申請範圍中的方法及裝置的範例。The components of the present invention will be described in detail in the following description in conjunction with the accompanying drawings. These examples are only a part of the invention and do not disclose all of the embodiments of the invention. Rather, these embodiments are merely examples of the methods and apparatus in the scope of the patent application of the present invention.

圖1是根據本發明一實施例所繪示的曝光控制裝置的方塊圖。圖2是根據本發明一實施例所繪示的曝光控制裝置的示意圖。但此僅是為了方便說明,並不用以限制本發明。1 is a block diagram of an exposure control apparatus according to an embodiment of the invention. 2 is a schematic diagram of an exposure control apparatus according to an embodiment of the invention. However, this is for convenience of description and is not intended to limit the invention.

請參照圖1及圖2,曝光控制裝置100包括投影機110、影像擷取裝置120及處理器130。處理器130耦接至投影機110及影像擷取裝置120。曝光控制裝置100可針對物體T進行掃描,以獲得物體T的立體資訊。在本實施例中,影像擷取裝置120可設置於投影機110上方,如圖2所示。然而,本發明並不限制於圖2中的設置方式。例如,投影機110及影像擷取裝置120可以彼此水平設置或以其他方式設置。Referring to FIGS. 1 and 2 , the exposure control device 100 includes a projector 110 , an image capturing device 120 , and a processor 130 . The processor 130 is coupled to the projector 110 and the image capturing device 120. The exposure control device 100 can scan the object T to obtain stereoscopic information of the object T. In this embodiment, the image capturing device 120 can be disposed above the projector 110, as shown in FIG. However, the present invention is not limited to the arrangement in Fig. 2. For example, projector 110 and image capture device 120 can be horizontally disposed or otherwise disposed from each other.

在本實施例中,影像擷取裝置120用以擷取物體T的影像。影像擷取裝置120包括鏡頭以及感光元件。鏡頭由透鏡所構成,而感光元件用以分別感測進入鏡頭的光線強度,進而分別產生影像。感光元件可以例如是電荷耦合元件(charge coupled device,CCD)、互補性氧化金屬半導體(complementary metal-oxide semiconductor,CMOS)元件或其他元件,本發明不在此設限。In this embodiment, the image capturing device 120 is configured to capture an image of the object T. The image capturing device 120 includes a lens and a photosensitive element. The lens is composed of a lens, and the photosensitive element is used to respectively sense the intensity of the light entering the lens, thereby generating an image separately. The photosensitive element may be, for example, a charge coupled device (CCD), a complementary metal-oxide semiconductor (CMOS) element, or other elements, and the invention is not limited thereto.

在本實施例中,處理器130耦接至投影機110及影像擷取裝置120。處理器130可以例如是中央處理單元(central processing unit,CPU),或是其他可程式化之一般用途或特殊用途的微處理器(microprocessor)、數位訊號處理器(digital signal processor,DSP)、可程式化控制器、特殊應用積體電路(Application Specific Integrated Circuits,ASIC)、可程式化邏輯裝置(programmable logic device,PLD)或其他類似裝置或這些裝置的組合。In this embodiment, the processor 130 is coupled to the projector 110 and the image capturing device 120. The processor 130 can be, for example, a central processing unit (CPU), or other programmable general purpose or special purpose microprocessor, digital signal processor (DSP), Programmable controllers, Application Specific Integrated Circuits (ASICs), programmable logic devices (PLDs), or other similar devices or combinations of these devices.

本領域具通常知識者應明瞭,曝光控制裝置100更包括可耦接至投影機110、影像擷取裝置120及處理器130的資料儲存裝置(未繪示於圖中),用以儲存影像以及資料。資料儲存裝置可以例如是任意型式的固定式或可移動式隨機存取記憶體(random access memory,RAM)、唯讀記憶體(read-only memory,ROM)、快閃記憶體(flash memory)、硬碟或其他類似裝置或這些裝置的組合。It should be understood by those skilled in the art that the exposure control device 100 further includes a data storage device (not shown) that can be coupled to the projector 110, the image capturing device 120, and the processor 130 for storing images and data. The data storage device may be, for example, any type of fixed or removable random access memory (RAM), read-only memory (ROM), flash memory, or flash memory. A hard disk or other similar device or a combination of these devices.

在本實施例中,處理器130可指示投影機110對物體T進行結構光掃描操作,也就是指示投影機110依序投射具有多個掃描圖樣的結構光於物體T以掃描物體T。舉例來說,投影機110可依序投射具有掃描圖樣1-6的結構光於物體T。掃描圖樣1-3可具有第一空間頻率且掃描圖樣4-6可具有不同於第一空間頻率的第二空間頻率。掃描圖樣1-3及掃描圖樣4-6可為正弦波圖樣或餘弦波圖樣,並且各可具有三種不同的相位移(例如,-120度、0度及120度)。當具有掃描圖樣1-6的結構光投射在物體T時,處理器130指示影像擷取裝置120擷取物體T的多個影像。因此,掃描圖樣1-3及掃描圖樣4-6的三種不同的相位移可分別對應到影像擷取裝置120所擷取的多個影像的其中之一,更精確來說,當具有掃描圖樣1的結構光投射在物體T時,影像擷取裝置120會擷取物體T對應掃描圖樣1的影像,當具有其他掃描圖樣的結構光投射在物體T時則以此類推。值得注意的是,雖然在本實施例中是以兩組不同空間頻率的掃描圖樣的結構光掃描物體T,但本發明並不以此為限。在另一實施例中,也可以三組或更多組不同空間頻率的掃描圖樣的結構光掃描物體T,以達到更精確的掃描效果。此外,雖然在本實施例中的相同空間頻率下的掃描圖樣具有三種不同的相位移,但本發明並不以此為限。在另一實施例中,相同空間頻率下的掃描圖樣也可具有四種或其他不同的相位移。In this embodiment, the processor 130 may instruct the projector 110 to perform a structured light scanning operation on the object T, that is, instruct the projector 110 to sequentially project a structure light having a plurality of scanning patterns on the object T to scan the object T. For example, the projector 110 can sequentially project the structured light having the scanning patterns 1-6 to the object T. The scan patterns 1-3 may have a first spatial frequency and the scan patterns 4-6 may have a second spatial frequency different from the first spatial frequency. Scan Patterns 1-3 and Scan Patterns 4-6 can be sinusoidal or cosine wave patterns, and each can have three different phase shifts (eg, -120 degrees, 0 degrees, and 120 degrees). When the structured light having the scanning pattern 1-6 is projected on the object T, the processor 130 instructs the image capturing device 120 to capture a plurality of images of the object T. Therefore, the three different phase shifts of the scan pattern 1-3 and the scan pattern 4-6 can respectively correspond to one of the plurality of images captured by the image capture device 120, more precisely, when having the scan pattern 1 When the structured light is projected on the object T, the image capturing device 120 captures the image corresponding to the scanning pattern 1 of the object T, and so on when the structured light having other scanning patterns is projected on the object T. It should be noted that although in the present embodiment, the object T is scanned by the structured light of two sets of scanning patterns of different spatial frequencies, the present invention is not limited thereto. In another embodiment, the structured light of the scanning pattern of three or more sets of different spatial frequencies may also be scanned to achieve a more accurate scanning effect. Further, although the scanning pattern at the same spatial frequency in the present embodiment has three different phase shifts, the present invention is not limited thereto. In another embodiment, the scan pattern at the same spatial frequency may also have four or other different phase shifts.

圖3是根據本發明一實施例所繪示的曝光控制方法的流程圖。FIG. 3 is a flow chart of an exposure control method according to an embodiment of the invention.

在步驟S301中,根據多個曝光條件對物體T進行結構光掃描操作以產生對應的多個影像組。曝光條件可為投影機110的亮度大小、影像擷取裝置120的光圈大小、投影機110及影像擷取裝置120的同步曝光時間或掃描圖樣的變化強度範圍(例如,曝光值為0-255的掃描圖樣或曝光值為0-127的掃描圖樣)。以曝光條件是投影機110的亮度大小為例,處理器130可指示投影機110以不同亮度投射具有掃描圖樣1-6的結構光於物體T,因此在每一個投影機110投射亮度下影像擷取裝置120都可擷取出一個影像組(例如,對應掃描圖樣1-6的影像1-6)。In step S301, a structured light scanning operation is performed on the object T according to a plurality of exposure conditions to generate a corresponding plurality of image groups. The exposure conditions may be the brightness of the projector 110, the aperture size of the image capturing device 120, the synchronized exposure time of the projector 110 and the image capturing device 120, or the range of varying intensity of the scanned pattern (eg, an exposure value of 0-255). Scan the pattern or scan pattern with an exposure value of 0-127). Taking the exposure condition as the brightness of the projector 110 as an example, the processor 130 can instruct the projector 110 to project the structured light having the scanning pattern 1-6 at different brightnesses on the object T, so that the image is projected at each projector 110. The capture device 120 can extract an image group (for example, images 1-6 corresponding to scan patterns 1-6).

在步驟S303中,從上述曝光條件中決定最佳曝光條件。其中最佳曝光條件對應的影像組的曝光不合格值小於其他影像組的曝光不合格值。曝光不合格值是藉由每一影像組中的過度曝光畫素的個數及信心度過低畫素的個數來決定。In step S303, an optimum exposure condition is determined from the above exposure conditions. The exposure failure value of the image group corresponding to the optimal exposure condition is smaller than the exposure failure value of the other image group. The exposure failure value is determined by the number of overexposed pixels in each image group and the number of low confidence pixels.

具體來說,處理器130會計算每一個影像組的過度曝光地圖並標記過度曝光地圖中的過度曝光區塊。以圖4為例,當處理器130在計算一個影像組的過度曝光地圖400時,處理器130可根據預設的曝光門檻值來尋找過度曝光區塊410。詳細來說,當一個畫素在此影像組中的任一影像中的曝光值大於曝光門檻值時,則處理器130判斷此畫素為過度曝光畫素,並將此畫素標記在過度曝光區塊410中。以八位元曝光值為例,曝光門檻值可設定為250。過度曝光地圖400可利用下列方程式來實作:Specifically, the processor 130 calculates an overexposed map for each image group and marks overexposed blocks in the overexposed map. Taking FIG. 4 as an example, when the processor 130 is calculating the overexposed map 400 of an image group, the processor 130 may find the overexposed block 410 according to the preset exposure threshold. In detail, when the exposure value of a pixel in any of the images in the image group is greater than the exposure threshold, the processor 130 determines that the pixel is an overexposed pixel and marks the pixel in overexposure. In block 410. Taking the octet exposure value as an example, the exposure threshold can be set to 250. The overexposed map 400 can be implemented using the following equation:

過度曝光地圖=(影像1>曝光門檻值)*…*(影像n>曝光門檻值)。其中影像1到影像n代表了影像1到影像n所有畫素的曝光值。Overexposed map = (Image 1 > Exposure threshold) *...* (Image n > Exposure threshold). Image 1 to image n represent the exposure values of all pixels from image 1 to image n.

在上述方程式中,n為相同空間頻率的掃描圖樣的個數的倍數。例如,在本實施例中,n可為3或6。In the above equation, n is a multiple of the number of scan patterns of the same spatial frequency. For example, in the present embodiment, n may be 3 or 6.

也就是說,處理器130可藉由上述方程式判斷影像組中的每一個畫素是否過度曝光並計算出包括過度曝光區塊410的過度曝光地圖400。That is, the processor 130 can determine whether each pixel in the image group is overexposed by the above equation and calculate the overexposed map 400 including the overexposed block 410.

另外,處理器130還會計算每一個影像組的信心度不足地圖並標記信心度不足地圖中的信心度不足區塊。以圖5為例,當處理器130在計算一個影像組的信心度不足地圖500時,處理器130可根據預設的信心度門檻值來尋找信心度不足區塊510。詳細來說,當一畫素在一個影像組中的信心度小於信心度門檻值時,則判斷此畫素為信心度過低畫素並將此畫素標記在信心度過低區塊510中,其中信心度為此畫素在此影像組中的曝光值的變化度。信心度不足地圖500可利用下列方程式來實作:In addition, the processor 130 also calculates a map of insufficient confidence for each image group and marks an insufficient confidence block in the map with insufficient confidence. Taking FIG. 5 as an example, when the processor 130 is calculating the confidence level of the image group less than the map 500, the processor 130 may find the lack of confidence block 510 according to the preset confidence threshold value. In detail, when the confidence of a pixel in an image group is less than the confidence threshold, the pixel is judged to be too low in confidence and the pixel is marked in the low confidence block 510. , where confidence is the degree of change in the exposure value of the pixel in this image group. Insufficient confidence map 500 can be implemented using the following equation:

信心度不足地圖=(I 2+Q 2) 1/2,其中I=(2*影像2-影像1-影像3),Q=tan(120/360*π)*(影像1-影像3)。其中影像1-3代表了影像1-3所有畫素的曝光值。 Insufficient confidence map = (I 2 + Q 2 ) 1/2 , where I = (2 * image 2 - image 1 - image 3), Q = tan (120 / 360 * π) * (image 1 - image 3) . The image 1-3 represents the exposure value of all pixels of the image 1-3.

詳細來說,影像1-3中畫素的曝光值可以下列方程式(1)、(2)、(3)來表示:In detail, the exposure values of the pixels in the images 1-3 can be expressed by the following equations (1), (2), (3):

………(1) ………(1)

………(2) ………(2)

………(3) .........(3)

在方程式(1)-(3)中, 分別為影像1-3中畫素的曝光值觀測強度, 為對應環境光強度而 對應投影機所投射的結構光亮度, 為相位角, 為相位移。在本實施例中, 為120度。 In equations (1)-(3), , , The intensity of the exposure value of the pixels in the image 1-3, For the corresponding ambient light intensity Corresponding to the brightness of the structure projected by the projector, For the phase angle, For phase shift. In this embodiment, It is 120 degrees.

………(4) .........(4)

在方程式(4)中,藉由等號左半部的運算可消除相位角 與環境光強度對應值 及投影機所投射的結構光亮度對應值 的相依性,並得到相位角 及相位移 的關係,如方程式(5)所示,最後再從方程式(5)推導出方程式(6)。 In equation (4), the phase angle is eliminated by the operation of the left half of the equal sign. Corresponding to ambient light intensity And the corresponding value of the structural lightness projected by the projector Dependence and get the phase angle versus , , Phase shift The relationship is shown in equation (5), and finally equation (6) is derived from equation (5).

)………(5) ).........(5)

………(6) .........(6)

如此一來,信心度不足地圖的I即為 ,且Q即為 ,而上述信心度就可視為三角形斜邊長度,如圖6所示。 In this way, the confidence is not enough for the map I is And Q is And the above confidence can be regarded as the length of the triangle bevel, as shown in Figure 6.

從上述方程式可得知,當一個畫素在一個影像組中的變化度越低時,計算出的信心度也會越低。當一畫素在一個影像組中的信心度小於信心度門檻值(例如,10)時,則處理器130將此畫素標記在信心度過低區塊510中。It can be seen from the above equation that the lower the degree of change of a pixel in an image group, the lower the calculated confidence. When the confidence of a pixel in an image group is less than the confidence threshold (eg, 10), the processor 130 marks the pixel in the confidence low block 510.

當處理器130計算出過度曝光區塊410及信心度不足區塊510之後,就可從過度曝光區塊410及信心度不足區塊510中獲得過度曝光的畫素個數及信心度過低的畫素個數。在本實施例中,處理器130可將曝光不合格值設定為過度曝光畫素的個數及信心度過低畫素的個數的總合。然而,本發明並不以此為限。在另一實施例中,處理器130可將曝光不合格值設定為過度曝光畫素的個數乘以第一權重參數及信心度過低畫素的個數乘以第二權重參數的總合。After the processor 130 calculates the overexposed block 410 and the lack of confidence block 510, the number of overexposed pixels and the low confidence can be obtained from the overexposed block 410 and the lack of confidence block 510. The number of pixels. In the present embodiment, the processor 130 may set the exposure failure value to the sum of the number of overexposed pixels and the number of low confidence pixels. However, the invention is not limited thereto. In another embodiment, the processor 130 may set the exposure failure value to the number of overexposed pixels multiplied by the first weight parameter and the number of confidence low pixels multiplied by the total of the second weight parameters. .

接著,處理器130可計算出每個曝光條件所對應的曝光不合格值,並將具有最小曝光不合格值的曝光條件設定為最佳曝光條件,如圖7所示。Next, the processor 130 may calculate an exposure failure value corresponding to each exposure condition, and set an exposure condition having a minimum exposure failure value as an optimum exposure condition, as shown in FIG.

在步驟S305中,根據最佳曝光條件對應的影像組計算物體的立體影像。In step S305, a stereoscopic image of the object is calculated according to the image group corresponding to the optimal exposure condition.

值得注意的是,在本實施例中計算曝光不合格值的區域為影像的整個畫面,但本發明並不以此為限。在另一實施例中,也可僅對感興趣區域(Region of Interest,ROI)來計算曝光不合格值,以減少運算時間。It should be noted that the area in which the exposure failure value is calculated in this embodiment is the entire picture of the image, but the invention is not limited thereto. In another embodiment, the exposure failure value may also be calculated only for the Region of Interest (ROI) to reduce the computation time.

綜上所述,本發明的曝光控制方法及曝光控制裝置可根據對應每一曝光條件的影像組中的過度曝光畫素的個數及信心度過低畫素的個數來計算初對應每一曝光條件曝光不合格值,再從多個曝光條件中尋找出曝光不合格值最小的最佳曝光條件,並利用對應最佳曝光條件的影像組產生立體影像,以有效提升立體掃描的精確度。In summary, the exposure control method and the exposure control apparatus of the present invention can calculate the initial correspondence each according to the number of overexposed pixels in the image group corresponding to each exposure condition and the number of low pixels of confidence. The exposure condition is unqualified, and the optimal exposure conditions with the smallest exposure failure value are found from a plurality of exposure conditions, and the image group corresponding to the optimal exposure condition is used to generate a stereoscopic image to effectively improve the accuracy of the stereoscopic scanning.

雖然本發明已以實施例揭露如上,然其並非用以限定本發明,任何所屬技術領域中具有通常知識者,在不脫離本發明的精神和範圍內,當可作些許的更動與潤飾,故本發明的保護範圍當視後附的申請專利範圍所界定者為準。Although the present invention has been disclosed in the above embodiments, it is not intended to limit the present invention, and any one of ordinary skill in the art can make some changes and refinements without departing from the spirit and scope of the present invention. The scope of the invention is defined by the scope of the appended claims.

100‧‧‧曝光控制裝置
110‧‧‧投影機
120‧‧‧影像擷取裝置
130‧‧‧處理器
T‧‧‧物體
S301、S303、S305‧‧‧曝光控制方法的步驟
400‧‧‧過度曝光地圖
410‧‧‧過度曝光區塊
500‧‧‧信心度不足地圖
510‧‧‧信心度不足區塊
100‧‧‧Exposure control device
110‧‧‧Projector
120‧‧‧Image capture device
130‧‧‧Processor
T‧‧‧ objects
Steps of S301, S303, S305‧‧‧ exposure control method
400‧‧‧Overexposed map
410‧‧‧Excessively exposed blocks
500‧‧‧Insufficient confidence map
510‧‧‧Insufficient confidence block

圖1是根據本發明一實施例所繪示的曝光控制裝置的方塊圖。 圖2是根據本發明一實施例所繪示的曝光控制裝置的示意圖。 圖3是根據本發明一實施例所繪示的曝光控制方法的流程圖。 圖4是根據本發明一實施例所繪示的過度曝光地圖的示意圖。 圖5是根據本發明一實施例所繪示的信心度不足地圖的示意圖。 圖6是根據本發明一實施例所繪示的相位角與信心度關係的示意圖。 圖7是根據本發明一實施例所繪示的曝光條件與曝光不合格值的關係的示意圖。1 is a block diagram of an exposure control apparatus according to an embodiment of the invention. 2 is a schematic diagram of an exposure control apparatus according to an embodiment of the invention. FIG. 3 is a flow chart of an exposure control method according to an embodiment of the invention. 4 is a schematic diagram of an overexposed map according to an embodiment of the invention. FIG. 5 is a schematic diagram of a map of insufficient confidence according to an embodiment of the invention. FIG. 6 is a schematic diagram showing the relationship between phase angle and confidence according to an embodiment of the invention. FIG. 7 is a schematic diagram showing the relationship between exposure conditions and exposure failure values according to an embodiment of the invention.

S301、S303、S305‧‧‧曝光控制方法的步驟 Steps of S301, S303, S305‧‧‧ exposure control method

Claims (14)

一種基於結構光的曝光控制方法,適用於具有一投影機及一影像擷取裝置的一曝光控制裝置,該曝光控制方法包括: 根據多個曝光條件對一物體進行一結構光掃描操作以產生對應的多個影像組; 從該些曝光條件中決定一最佳曝光條件,其中該最佳曝光條件對應的影像組的一曝光不合格值小於其他該些影像組的該曝光不合格值,該曝光不合格值是藉由每一該些影像組中的一過度曝光畫素的個數及一信心度過低畫素的個數來決定;以及 根據該最佳曝光條件對應的影像組計算該物體的一立體影像。An exposure control method based on structured light is applicable to an exposure control device having a projector and an image capture device, the exposure control method comprising: performing a structured light scanning operation on an object according to a plurality of exposure conditions to generate a corresponding a plurality of image groups; determining an optimal exposure condition from the exposure conditions, wherein an exposure failure value of the image group corresponding to the optimal exposure condition is smaller than the exposure failure value of the other image groups, the exposure The unqualified value is determined by the number of overexposed pixels in each of the image groups and the number of pixels that are too low in confidence; and calculating the object according to the image group corresponding to the optimal exposure condition A three-dimensional image. 如申請專利範圍第1項所述的曝光控制方法,其中該結構光掃描操作包括: 利用該投影機依序投射具有多個掃描圖樣的結構光於該物體以掃描該物體;以及 當具有該些掃描圖樣的結構光投射在該物體時,利用該影像擷取裝置擷取該物體的多個影像。The exposure control method of claim 1, wherein the structured light scanning operation comprises: sequentially projecting a structure light having a plurality of scan patterns on the object to scan the object; and having the When the structured light of the scanned pattern is projected on the object, the image capturing device is used to capture a plurality of images of the object. 如申請專利範圍第2項所述的曝光控制方法,其中當一畫素在每一該些影像組中的任一影像中的一曝光值大於一曝光門檻值時,則判斷該畫素為該過度曝光畫素。The exposure control method of claim 2, wherein when a pixel has an exposure value greater than an exposure threshold in any of the image groups, determining the pixel is Overexposed pixels. 如申請專利範圍第2項所述的曝光控制方法,其中當一畫素在每一該些影像組中的一信心度小於一信心度門檻值時,則判斷該畫素為該信心度過低畫素,其中該信心度為該畫素在每一該些影像組中的一曝光值的變化度。The exposure control method of claim 2, wherein when a pixel has a confidence level in each of the image groups less than a confidence threshold, determining that the pixel is too low in confidence. A pixel, wherein the confidence is a degree of change of an exposure value of the pixel in each of the image groups. 如申請專利範圍第2項所述的曝光控制方法,其中該些曝光條件為該投影機的亮度、該影像擷取裝置的光圈、該投影機及該影像擷取裝置的曝光時間或該些掃描圖樣的變化強度。The exposure control method of claim 2, wherein the exposure conditions are brightness of the projector, aperture of the image capturing device, exposure time of the projector and the image capturing device, or the scanning The intensity of the change in the pattern. 如申請專利範圍第2項所述的曝光控制方法,其中該些掃描圖樣包括一第一空間頻率以及一第二空間頻率的特定圖樣。The exposure control method of claim 2, wherein the scan patterns comprise a first spatial frequency and a specific pattern of a second spatial frequency. 如申請專利範圍第2項所述的曝光控制方法,其中每一該些掃描圖樣的結構光具有至少三種不同相位移,而各所述相位移分別對應於該些影像的其中之一。The exposure control method of claim 2, wherein the structured light of each of the scan patterns has at least three different phase shifts, and each of the phase shifts respectively corresponds to one of the images. 一種基於結構光的曝光控制裝置,包括: 一投影機; 一影像擷取裝置;以及 一處理器,耦接該投影機及該影像擷取裝置, 其中該處理器指示該投影機及該影像擷取裝置根據多個曝光條件對一物體進行一結構光掃描操作以產生對應的多個影像組, 其中該處理器從該些曝光條件中決定一最佳曝光條件,其中該最佳曝光條件對應的影像組的一曝光不合格值小於其他該些影像組的該曝光不合格值,該曝光不合格值是藉由每一該些影像組中的一過度曝光畫素的個數及一信心度過低畫素的個數來決定, 其中該處理器根據該最佳曝光條件對應的影像組計算該物體的一立體影像。An exposure control device based on structured light, comprising: a projector; an image capture device; and a processor coupled to the projector and the image capture device, wherein the processor indicates the projector and the image The taking device performs a structured light scanning operation on an object according to a plurality of exposure conditions to generate a corresponding plurality of image groups, wherein the processor determines an optimal exposure condition from the exposure conditions, wherein the optimal exposure condition corresponds to The exposure failure value of the image group is smaller than the exposure failure value of the other image groups, and the exposure failure value is exceeded by the number of overexposed pixels in each of the image groups and a confidence The number of low pixels is determined, wherein the processor calculates a stereoscopic image of the object according to the image group corresponding to the optimal exposure condition. 如申請專利範圍第8項所述的曝光控制裝置,其中該處理器指示該投影機依序投射具有多個掃描圖樣的結構光於該物體以掃描該物體,其中當具有該些掃描圖樣的結構光投射在該物體時,該處理器指示該影像擷取裝置擷取該物體的多個影像。The exposure control device of claim 8, wherein the processor instructs the projector to sequentially project a structure having a plurality of scan patterns on the object to scan the object, wherein the structure having the scan patterns When the light is projected on the object, the processor instructs the image capturing device to capture a plurality of images of the object. 如申請專利範圍第9項所述的曝光控制裝置,其中當一畫素在每一該些影像組中的任一影像中的一曝光值大於一曝光門檻值時,則判斷該畫素為該過度曝光畫素。The exposure control device of claim 9, wherein when a pixel has an exposure value greater than an exposure threshold in any of the image groups, determining the pixel is Overexposed pixels. 如申請專利範圍第9項所述的曝光控制裝置,其中當一畫素在每一該些影像組中的一信心度小於一信心度門檻值時,則判斷該畫素為該信心度過低畫素,其中該信心度為該畫素在每一該些影像組中的一曝光值的變化度。The exposure control device of claim 9, wherein when a pixel has a confidence level in each of the image groups less than a confidence threshold, the pixel is judged to be too low in confidence. A pixel, wherein the confidence is a degree of change of an exposure value of the pixel in each of the image groups. 如申請專利範圍第9項所述的曝光控制裝置,其中該些曝光條件為該投影機的亮度、該影像擷取裝置的光圈、該投影機及該影像擷取裝置的曝光時間、或者該些掃描圖樣的變化強度。The exposure control device of claim 9, wherein the exposure conditions are brightness of the projector, aperture of the image capture device, exposure time of the projector and the image capture device, or The intensity of the change in the scanned pattern. 如申請專利範圍第9項所述的曝光控制裝置,其中該些掃描圖樣包括一第一空間頻率以及一第二空間頻率的特定圖樣。The exposure control device of claim 9, wherein the scan patterns comprise a specific pattern of a first spatial frequency and a second spatial frequency. 如申請專利範圍第9項所述的曝光控制裝置,其中每一該些掃描圖樣的結構光具有至少三種不同相位移,而各所述相位移分別對應於該些影像的其中之一。The exposure control device of claim 9, wherein the structured light of each of the scan patterns has at least three different phase shifts, and each of the phase shifts respectively corresponds to one of the images.
TW105142351A 2016-12-21 2016-12-21 Structured-light-based exposure control method and exposure control apparatus TWI604411B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW105142351A TWI604411B (en) 2016-12-21 2016-12-21 Structured-light-based exposure control method and exposure control apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW105142351A TWI604411B (en) 2016-12-21 2016-12-21 Structured-light-based exposure control method and exposure control apparatus

Publications (2)

Publication Number Publication Date
TWI604411B true TWI604411B (en) 2017-11-01
TW201824190A TW201824190A (en) 2018-07-01

Family

ID=61023087

Family Applications (1)

Application Number Title Priority Date Filing Date
TW105142351A TWI604411B (en) 2016-12-21 2016-12-21 Structured-light-based exposure control method and exposure control apparatus

Country Status (1)

Country Link
TW (1) TWI604411B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11248903B2 (en) 2019-09-18 2022-02-15 Industrial Technology Research Institute Three-dimension measurement device and operation method thereof

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074044A (en) * 2011-01-27 2011-05-25 深圳泰山在线科技有限公司 System and method for reconstructing surface of object
CN102929089A (en) * 2012-11-19 2013-02-13 北京理工大学 Lighting device capable of improving resolution of multi-projector true three-dimensional display
CN103336634A (en) * 2013-07-24 2013-10-02 清华大学 Adaptive hierarchical structure light-based touch detection system and method
CN103857444A (en) * 2011-09-23 2014-06-11 可利爱驰有限公司 Virtual Sport System for Acquiring Good Image of Ball by Controlling Camera According To Surrounding Brightness

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102074044A (en) * 2011-01-27 2011-05-25 深圳泰山在线科技有限公司 System and method for reconstructing surface of object
CN103857444A (en) * 2011-09-23 2014-06-11 可利爱驰有限公司 Virtual Sport System for Acquiring Good Image of Ball by Controlling Camera According To Surrounding Brightness
CN102929089A (en) * 2012-11-19 2013-02-13 北京理工大学 Lighting device capable of improving resolution of multi-projector true three-dimensional display
CN103336634A (en) * 2013-07-24 2013-10-02 清华大学 Adaptive hierarchical structure light-based touch detection system and method

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11248903B2 (en) 2019-09-18 2022-02-15 Industrial Technology Research Institute Three-dimension measurement device and operation method thereof

Also Published As

Publication number Publication date
TW201824190A (en) 2018-07-01

Similar Documents

Publication Publication Date Title
TWI584634B (en) Electronic apparatus and method of generating depth map
JP5907596B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method and program
JP6363863B2 (en) Information processing apparatus and information processing method
US20180176440A1 (en) Structured-light-based exposure control method and exposure control apparatus
CN108827184B (en) Structured light self-adaptive three-dimensional measurement method based on camera response curve
CN107517346B (en) Photographing method and device based on structured light and mobile device
JP5633058B1 (en) 3D measuring apparatus and 3D measuring method
KR20150050450A (en) Method and apparatus for generating depth map of a scene
KR101737518B1 (en) Method and system for determining optimal exposure time and frequency of structured light based 3d camera
WO2017206509A1 (en) Method, apparatus and system for adapting projection area
JP6418884B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method and program
CN107820019B (en) Blurred image acquisition method, blurred image acquisition device and blurred image acquisition equipment
JP2020197989A5 (en) Image processing systems, image processing methods, and programs
JP5822463B2 (en) Three-dimensional measuring apparatus, three-dimensional measuring method, and program
TWI604411B (en) Structured-light-based exposure control method and exposure control apparatus
JP6624785B2 (en) Image processing method, image processing device, imaging device, program, and storage medium
US11475629B2 (en) Method for 3D reconstruction of an object
WO2018012524A1 (en) Projection device, projection method and projection control program
US9998724B2 (en) Image processing apparatus and method for processing three-dimensional data that describes a space that includes physical objects
US10757318B2 (en) Determination of a contrast value for a digital image
KR101465996B1 (en) Method for measurement of high speed 3d shape using selective long period
CN111462331A (en) Method for expanding epipolar geometry and calculating three-dimensional point cloud in real time
TW201823677A (en) Structured-light-based exposure control method and exposure control apparatus
TWI637145B (en) Structured-light-based three-dimensional scanning method, apparatus and system thereof
Alasal et al. Improving passive 3D model reconstruction using image enhancement