[go: up one dir, main page]

TWI659392B - Coding method and system through gray-code for structured-light 3d scanner - Google Patents

Coding method and system through gray-code for structured-light 3d scanner Download PDF

Info

Publication number
TWI659392B
TWI659392B TW107107297A TW107107297A TWI659392B TW I659392 B TWI659392 B TW I659392B TW 107107297 A TW107107297 A TW 107107297A TW 107107297 A TW107107297 A TW 107107297A TW I659392 B TWI659392 B TW I659392B
Authority
TW
Taiwan
Prior art keywords
gray
pattern
region
color
coding
Prior art date
Application number
TW107107297A
Other languages
Chinese (zh)
Other versions
TW201939444A (en
Inventor
Pei Ju Chiang
江佩如
Po Hao Huang
黃柏豪
Chien Sheng Liu
劉建聖
Original Assignee
National Chung Cheng University
國立中正大學
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 National Chung Cheng University, 國立中正大學 filed Critical National Chung Cheng University
Priority to TW107107297A priority Critical patent/TWI659392B/en
Application granted granted Critical
Publication of TWI659392B publication Critical patent/TWI659392B/en
Publication of TW201939444A publication Critical patent/TW201939444A/en

Links

Landscapes

  • Length Measuring Devices By Optical Means (AREA)

Abstract

本發明提供一種結合格雷編碼之彩色結構光三維量測方法及其系統,其中排列圖案步驟排列出複數個格雷編碼圖案中最大頻率與最小頻率的圖案。圖案結合步驟對應結合第一格雷編碼圖案與第二格雷編碼圖案而產生一格雷結合圖案。投影量測步驟投影格雷結合圖案至待測物體上而形成一變形格雷結合圖案,然後擷取圖案以計算並輸出三維模型。藉此,利用最高頻與最低頻之圖案結合以及次高頻與次低頻之圖案結合來避免頻率過高所產生的條紋模糊問題,使投影的張數為格雷編碼的一半,進而讓整體量測的時間可以快上一倍,且仍具有高精度。 The invention provides a method and a system for three-dimensional measurement of color structured light combined with Gray coding, in which a pattern arrangement step arranges patterns of the maximum frequency and the minimum frequency in a plurality of Gray coding patterns. The pattern combining step corresponds to combining the first Gray coded pattern and the second Gray coded pattern to generate a Gray combined pattern. The projection measurement step projects a gray combined pattern onto the object to be measured to form a deformed gray combined pattern, and then captures the pattern to calculate and output a three-dimensional model. In this way, the combination of the pattern with the highest frequency and the lowest frequency and the combination of the pattern with the sub-high frequency and sub-low frequency are used to avoid the problem of fringe blur caused by too high frequency. Can double the time and still have high accuracy.

Description

結合格雷編碼之彩色結構光三維量測方法及其系統 Three-dimensional measurement method and system of color structured light combined with Gray coding

本發明是關於一種彩色結構光三維量測方法及其系統,特別是關於一種可縮短量測時間且有效解決色彩串擾問題的結合格雷編碼之彩色結構光三維量測方法及其系統。 The invention relates to a three-dimensional measurement method and system for color structured light, and more particularly to a three-dimensional measurement method and system for color structured light combined with Gray coding, which can shorten the measurement time and effectively solve the problem of color crosstalk.

目前市面上較常見且精度較高的三維掃描儀器大多使用的編碼技術為格雷編碼,格雷編碼在使用上具有簡單、高穩定性、高精度、應用廣泛等優點。此編碼技術為時間編碼,需依照時間一張接著一張地投影圖案,並一張接著一張地擷取照片,所以在整個過程中所投影的編碼圖像張數會影響整體的速度快慢。 At present, the coding technology commonly used on the market for more common and higher-precision 3D scanning instruments is Gray coding. Gray coding has the advantages of simplicity, high stability, high accuracy, and wide application. This coding technology is time coding. It is necessary to project patterns one by one and capture photos one by one according to time, so the number of coded images projected during the entire process will affect the overall speed.

此外,在三維模型重建的過程中,格雷編碼圖案可結合投影機投射已知圖案於待測物體上,然後用相機照相,從而計算出待測物體之三維模型。雖然格雷編碼被廣泛地應用於許多立體模型之建構,但在高精度與高準確度的需求條件下,其量測時間仍然過長且運算效率仍不足,故相關業者均在尋求其解決之道。 In addition, in the process of 3D model reconstruction, the Gray coded pattern can be combined with a projector to project a known pattern on the object to be measured, and then photographed with a camera to calculate a three-dimensional model of the object to be measured. Although Gray coding is widely used in the construction of many three-dimensional models, under the requirements of high accuracy and high accuracy, its measurement time is still too long and the computing efficiency is still insufficient. Therefore, relevant industries are seeking their solutions. .

因此,本發明之目的在於提供一種結合格雷編碼之彩色結構光三維量測方法及其系統,其利用最高頻與最低頻之圖案結合以及次高頻與次低頻之圖案結合來避免頻率過高所產生的短軸效應及條紋模糊問題,使投影的張數為格雷編碼的一半,進而讓整體量測的時間可以快上一倍,且仍具有高精度,以解決習知技術存有量測時間過長以及高頻條紋嚴重模糊影響解碼正確性的缺點及問題。 Therefore, an object of the present invention is to provide a three-dimensional measurement method of color structured light combined with Gray coding and a system thereof, which utilize a combination of patterns of the highest frequency and the lowest frequency and a combination of patterns of the second high frequency and the low frequency to avoid excessive frequency The short-axis effect and the blurring of the stripes cause the number of projections to be half of the Gray code, so that the overall measurement time can be doubled, and still have high accuracy, in order to solve the measurement time of conventional technologies. Disadvantages and problems of too long and high frequency fringes that affect decoding accuracy.

依據本發明一態樣之一實施方式提供一種結合格雷編碼之彩色結構光三維量測方法,其用以量測一待測物體之一三維模型。此結合格雷編碼之彩色結構光三維量測方法包含選定投影階數步驟、產生格雷編碼圖案步驟、排列圖案步驟、圖案結合步驟以及投影量測步驟,其中選定投影階數步驟係選定一投影階數值。產生格雷編碼圖案步驟係產生複數個格雷編碼圖案,格雷編碼圖案的數量等於投影階數值,各格雷編碼圖案呈間隔排列之條紋狀。此外,排列圖案步驟係排列出這些格雷編碼圖案中具有第一條紋頻率之第一格雷編碼圖案與具有第二條紋頻率之第二格雷編碼圖案,第一條紋頻率大於第二條紋頻率。而圖案結合步驟係對應結合第一格雷編碼圖案與第二格雷編碼圖案而產生一格雷結合圖案,此格雷結合圖案具有複數個顏色。再者,投影量測步驟係投影格雷結合圖案至待測物體上而形成一變形格雷結合圖案,然後擷取待測物體表面呈現彩色之變形格雷結合圖案以計算並輸出待測物體之三維模型。 According to an embodiment of the present invention, a three-dimensional measurement method of color structured light combined with Gray coding is provided for measuring a three-dimensional model of an object to be measured. The 3D color structured light measurement method combining gray coding includes a step of selecting a projection order, a step of generating a gray coding pattern, a step of arranging patterns, a step of pattern combining, and a step of projecting measurement. The step of selecting a projection order is to select a projection order value . The step of generating gray coding patterns is to generate a plurality of gray coding patterns. The number of gray coding patterns is equal to the value of the projection level. Each gray coding pattern is arranged in a striped pattern. In addition, the step of arranging patterns is to arrange the first gray coding pattern having a first fringe frequency and the second gray coding pattern having a second fringe frequency among the gray coding patterns, and the first fringe frequency is greater than the second fringe frequency. The pattern combining step corresponds to combining the first Gray coding pattern and the second Gray coding pattern to generate a Gray bonding pattern. The Gray bonding pattern has a plurality of colors. Furthermore, the projection measurement step is to project a gray combination pattern onto the object to be tested to form a deformed gray combination pattern, and then extract a colored gray combination pattern on the surface of the object to be measured to calculate and output a three-dimensional model of the object to be measured.

藉此,本發明之結合格雷編碼之彩色結構光三維量測方法使用格雷編碼圖案兩兩對應結合,結合後的格雷結合圖案利用特定顏色來取代黑白顏色,因此能用較少的圖案張數引藏較多的編碼資訊,進而增加編碼速度以及縮短編碼的時間。 In this way, the three-dimensional measurement method of color structured light combined with gray coding according to the present invention uses gray coding patterns to be paired one by one. The combined gray bonding pattern uses specific colors to replace black and white colors, so it can be used with fewer number of pattern sheets. Hiding more encoding information, which increases encoding speed and shortens encoding time.

前述實施方式之其他實施例如下:前述各格雷編碼圖案皆具有一條紋頻率。而第一條紋頻率為這些條紋頻率中的最大值,第二條紋頻率則為這些條紋頻率的最小值。另外,前述排列圖案步驟可排列出格雷編碼圖案中具有第三條紋頻率之第三格雷編碼圖案與具有第四條紋頻率之第四格雷編碼圖案。第一條紋頻率大於第三條紋頻率,第三條紋頻率大於第四條紋頻率,且第四條紋頻率大於第二條紋頻率。此外,前述圖案結合步驟可對應結合第三格雷編碼圖案與第四格雷編碼圖案而產生另一格雷結合圖案,此另一格雷結合圖案具有複數個顏色。再者,前述投影量測步驟可投影另一格雷結合圖案至待測物體上而形成另一變形格雷結合圖案,然後擷取待測物體表面所呈現彩色之另一變形格雷結合圖案,並利用變形格雷結合圖案與另一變形格雷結合圖案計算輸出待測物體之三維模型。此外,前述顏色可包含黑色、青色及紫色。格雷結合圖案中黑色涵蓋的範圍形成一第一顏色區域;格雷結合圖案中青色涵蓋的範圍形成一第二顏色區域;格雷結合圖案中紫色涵蓋的範圍形成一第三顏色區域。第一顏色區域、第二顏色區域及第三顏色區域彼此不重疊。另外,前述第一格雷編碼圖案、第二格雷編碼圖案及格 雷結合圖案可對應重疊。格雷結合圖案之第一顏色區域對應第一格雷編碼圖案之第一區域,第一格雷編碼圖案之第一區域呈黑色。格雷結合圖案之第二顏色區域對應第一格雷編碼圖案之第二區域與第二格雷編碼圖案之第三區域。第一格雷編碼圖案之第二區域呈白色且第二格雷編碼圖案之第三區域呈黑色。格雷結合圖案之第三顏色區域對應第一格雷編碼圖案之第四區域與第二格雷編碼圖案之第五區域,第一格雷編碼圖案之第四區域與第二格雷編碼圖案之第五區域均呈白色。 Other examples of the foregoing embodiment are as follows: each of the foregoing Gray coding patterns has a fringe frequency. The first fringe frequency is the maximum of these fringe frequencies, and the second fringe frequency is the minimum of these fringe frequencies. In addition, the aforesaid arrangement pattern step can arrange a third Gray coding pattern having a third fringe frequency and a fourth Gray coding pattern having a fourth fringe frequency in the Gray coding pattern. The first fringe frequency is greater than the third fringe frequency, the third fringe frequency is greater than the fourth fringe frequency, and the fourth fringe frequency is greater than the second fringe frequency. In addition, the aforementioned pattern combining step may correspondingly combine the third Gray coding pattern and the fourth Gray coding pattern to generate another Gray combining pattern, and the other Gray combining pattern has a plurality of colors. Furthermore, the aforementioned projection measurement step may project another Gray combination pattern onto the object to be measured to form another deformed Gray combination pattern, and then capture another deformed Gray combination pattern displayed on the surface of the object to be measured, and use the deformation The gray combination pattern is combined with another deformed gray combination pattern to calculate and output a three-dimensional model of the object to be measured. In addition, the aforementioned colors may include black, cyan, and purple. The range covered by black in the gray combination pattern forms a first color region; the range covered by cyan in the gray combination pattern forms a second color region; the range covered by purple in the gray combination pattern forms a third color region. The first color region, the second color region, and the third color region do not overlap each other. In addition, the first Gray code pattern and the second Gray code pattern pass. Lightning patterns can correspond to overlap. The first color region of the gray combination pattern corresponds to the first region of the first gray coding pattern, and the first region of the first gray coding pattern is black. The second color region of the gray combination pattern corresponds to the second region of the first gray coding pattern and the third region of the second gray coding pattern. The second area of the first Gray coded pattern is white and the third area of the second Gray coded pattern is black. The third color region of the gray combination pattern corresponds to the fourth region of the first gray coding pattern and the fifth region of the second gray coding pattern. The fourth region of the first gray coding pattern and the fifth region of the second gray coding pattern are both present. white.

此外,前述顏色可包含黑色、紅色、綠色及藍色。格雷結合圖案中黑色涵蓋的範圍形成第一顏色區域;格雷結合圖案中紅色涵蓋的範圍形成第二顏色區域;格雷結合圖案中綠色涵蓋的範圍形成第三顏色區域;格雷結合圖案中藍色涵蓋的範圍形成第四顏色區域。第一顏色區域、第二顏色區域、第三顏色區域及第四顏色區域彼此不重疊。再者,前述第一格雷編碼圖案、第二格雷編碼圖案及格雷結合圖案對應重疊。格雷結合圖案之第一顏色區域對應第一格雷編碼圖案之第一區域與第二格雷編碼圖案之第二區域,第一格雷編碼圖案之第一區域與第二格雷編碼圖案之第二區域均呈黑色。格雷結合圖案之第二顏色區域對應第一格雷編碼圖案之第三區域與第二格雷編碼圖案之第四區域,第一格雷編碼圖案之第三區域呈黑色且第二格雷編碼圖案之第四區域呈白色。格雷結合圖案之第三顏色區域對應第一格雷編碼圖案之第五區域與第二格雷編碼圖案之第六區域,第一格雷編碼 圖案之第五區域呈白色且第二格雷編碼圖案之第六區域呈黑色。格雷結合圖案之第四顏色區域對應第一格雷編碼圖案之第七區域與第二格雷編碼圖案之第八區域,第一格雷編碼圖案之第七區域與第二格雷編碼圖案之第八區域均呈白色。另外,前述投影階數值可大於等於9。前述結合格雷編碼之彩色結構光三維量測方法可包含一互補運算步驟,此互補運算步驟係運算並產生對應於第一格雷編碼圖案之一互補格雷編碼圖案,互補格雷編碼圖案與第一格雷編碼圖案之顏色互補。圖案結合步驟係對應結合互補格雷編碼圖案與第二格雷編碼圖案而產生一互補格雷結合圖案,然後依據互補格雷結合圖案的一互補強度值與格雷結合圖案的一強度值運算而還原第一格雷編碼圖案。 In addition, the aforementioned colors may include black, red, green, and blue. The range covered by black in the gray combination pattern forms the first color region; the range covered by red in the gray combination pattern forms the second color region; the range covered by green in the gray combination pattern forms the third color region; The range forms a fourth color area. The first color region, the second color region, the third color region, and the fourth color region do not overlap each other. Furthermore, the first Gray coding pattern, the second Gray coding pattern, and the Gray combination pattern correspond to overlap. The first color region of the gray combination pattern corresponds to the first region of the first gray coding pattern and the second region of the second gray coding pattern. The first region of the first gray coding pattern and the second region of the second gray coding pattern are both present. black. The second color region of the gray combination pattern corresponds to the third region of the first gray coding pattern and the fourth region of the second gray coding pattern. The third region of the first gray coding pattern is black and the fourth region of the second gray coding pattern. White. The third color region of the gray combination pattern corresponds to the fifth region of the first gray coding pattern and the sixth region of the second gray coding pattern, and the first gray coding The fifth region of the pattern is white and the sixth region of the second Gray coding pattern is black. The fourth color region of the gray combination pattern corresponds to the seventh region of the first gray coding pattern and the eighth region of the second gray coding pattern. The seventh region of the first gray coding pattern and the eighth region of the second gray coding pattern are present. white. In addition, the aforementioned projection order value may be 9 or more. The aforementioned three-dimensional measurement method of color structured light combined with Gray coding may include a complementary operation step which calculates and generates one of the complementary Gray coding patterns corresponding to the first Gray coding pattern, and the complementary Gray coding pattern and the first Gray coding. The colors of the patterns are complementary. The pattern combining step corresponds to combining the complementary Gray coded pattern and the second Gray coded pattern to generate a complementary Gray coded pattern, and then the first Gray code is restored according to a complementary intensity value of the complementary Gray coded pattern and an intensity value of the Gray coded pattern. pattern.

依據本發明另一態樣之一實施方式提供一種結合格雷編碼之彩色結構光三維量測系統,其包含投影階數選定模組、格雷編碼圖案產生模組、圖案排列模組、投影量測模組。其中投影階數選定模組用以選定投影階數值。格雷編碼圖案產生模組訊號連接投影階數選定模組,此格雷編碼圖案產生模組用以產生格雷編碼圖案。圖案排列模組訊號連接格雷編碼圖案產生模組,圖案排列模組用以排列出第一格雷編碼圖案與第二格雷編碼圖案。再者,圖案結合模組訊號連接圖案排列模組,圖案結合模組對應結合第一格雷編碼圖案與第二格雷編碼圖案而產生具有複數個顏色之格雷結合圖案。投影量測模組訊號連接圖案結合模組,投影量測模組用以投影格雷結合圖案至待測物體上而形成變形格雷結合圖 案,並擷取待測物體表面呈現彩色之變形格雷結合圖案以計算並輸出待測物體之三維模型。 According to another embodiment of the present invention, a three-dimensional color structured light measurement system incorporating gray coding is provided, which includes a projection order selection module, a gray coding pattern generation module, a pattern arrangement module, and a projection measurement module. group. The projection order selection module is used to select the projection order value. The gray code pattern generating module signal is connected to the projection order selection module. This gray code pattern generating module is used to generate a gray code pattern. The signal of the pattern arrangement module is connected to the gray code pattern generation module. The pattern arrangement module is used to arrange the first gray code pattern and the second gray code pattern. Furthermore, the pattern combining module signals are connected to the pattern arranging module, and the pattern combining module correspondingly combines the first Gray coding pattern and the second Gray coding pattern to generate a Gray bonding pattern having a plurality of colors. The projection measurement module signal is connected to the pattern combination module. The projection measurement module is used to project the gray combination pattern on the object to be measured to form a deformed gray combination map. And capture a colored deformed gray combination pattern on the surface of the object to be measured to calculate and output a three-dimensional model of the object.

藉此,本發明的結合格雷編碼之彩色結構光三維量測系統利用最高頻與最低頻之圖案結合以及次高頻與次低頻之圖案結合來避免頻率過高所產生的條紋模糊問題,其投影的張數為格雷編碼的一半,整體的量測時間可以快上一倍,而且仍具有高精度。另外,透過特定之互補還原方法以及零交錯點找閥值,在圖形有色彩串擾現象以及使用普通相機的狀況下,仍可準確地尋找到條紋的邊界。 Thus, the three-dimensional color structured light measurement system incorporating gray coding of the present invention uses the combination of the highest frequency and the lowest frequency pattern and the combination of the sub-high frequency and the sub-low frequency pattern to avoid the problem of fringe blur caused by too high frequency. The number of sheets is half of the Gray code, the overall measurement time can be doubled, and still has high accuracy. In addition, through the specific complementary restoration method and the zero-crossing point finding threshold, the boundary of the stripes can be accurately found even when the graphics have color crosstalk and when using ordinary cameras.

前述實施方式之其他實施例如下:前述各格雷編碼圖案皆具有一條紋頻率,第一條紋頻率為這些條紋頻率中的最大值,而第二條紋頻率則為這些條紋頻率的最小值。前述圖案排列模組排列出格雷編碼圖案中具有第三條紋頻率之第三格雷編碼圖案與具有第四條紋頻率之第四格雷編碼圖案。其中第一條紋頻率大於第三條紋頻率,第三條紋頻率大於第四條紋頻率,且第四條紋頻率大於第二條紋頻率。再者,前述圖案結合模組可對應結合第三格雷編碼圖案與第四格雷編碼圖案而產生另一格雷結合圖案,此另一格雷結合圖案具有複數個顏色。前述投影量測模組投影另一格雷結合圖案至待測物體上而形成另一變形格雷結合圖案,然後擷取待測物體表面所呈現彩色之另一變形格雷結合圖案,並利用變形格雷結合圖案與另一變形格雷結合圖案計算輸出待測物體之三維模型。另外,前述顏色可包含黑色、青色及紫色。格雷結合圖案中黑色涵蓋的範圍形成一第一顏色區域;格雷 結合圖案中青色涵蓋的範圍形成一第二顏色區域;格雷結合圖案中紫色涵蓋的範圍形成一第三顏色區域。其中第一顏色區域、第二顏色區域及第三顏色區域彼此不重疊。此外,前述第一格雷編碼圖案、第二格雷編碼圖案及格雷結合圖案對應重疊。其中格雷結合圖案之第一顏色區域對應第一格雷編碼圖案之第一區域,第一格雷編碼圖案之第一區域呈黑色。格雷結合圖案之第二顏色區域對應第一格雷編碼圖案之第二區域與第二格雷編碼圖案之第三區域,第一格雷編碼圖案之第二區域呈白色,且第二格雷編碼圖案之第三區域呈黑色。格雷結合圖案之第三顏色區域對應第一格雷編碼圖案之第四區域與第二格雷編碼圖案之第五區域,第一格雷編碼圖案之第四區域與第二格雷編碼圖案之第五區域均呈白色。 Other examples of the foregoing embodiment are as follows: each of the aforementioned gray coding patterns has a fringe frequency, the first fringe frequency is a maximum value of these fringe frequencies, and the second fringe frequency is a minimum value of the fringe frequencies. The aforementioned pattern arranging module arranges a third Gray coding pattern having a third fringe frequency and a fourth Gray coding pattern having a fourth fringe frequency in the Gray coding pattern. The first fringe frequency is greater than the third fringe frequency, the third fringe frequency is greater than the fourth fringe frequency, and the fourth fringe frequency is greater than the second fringe frequency. Furthermore, the aforementioned pattern combining module may correspondingly combine the third Gray coding pattern and the fourth Gray coding pattern to generate another Gray combining pattern, and the other Gray combining pattern has a plurality of colors. The aforementioned projection measurement module projects another Gray combination pattern onto the object to be measured to form another deformed Gray combination pattern, and then captures another deformed Gray combination pattern of the color presented on the surface of the object to be measured, and uses the deformed Gray combination pattern Combine the pattern with another deformed Gray to calculate and output a three-dimensional model of the object to be measured. The aforementioned colors may include black, cyan, and purple. Gray combines a range covered by black in the pattern to form a first color area; Gray The range covered by cyan in the combination pattern forms a second color region; the range covered by purple in the Gray pattern forms a third color region. The first color region, the second color region, and the third color region do not overlap each other. In addition, the first Gray coding pattern, the second Gray coding pattern, and the Gray combination pattern correspond to overlap. The first color region of the gray combination pattern corresponds to the first region of the first gray coding pattern, and the first region of the first gray coding pattern is black. The second color region of the gray combination pattern corresponds to the second region of the first gray coding pattern and the third region of the second gray coding pattern. The second region of the first gray coding pattern is white and the third of the second gray coding pattern is white. The area is black. The third color region of the gray combination pattern corresponds to the fourth region of the first gray coding pattern and the fifth region of the second gray coding pattern. The fourth region of the first gray coding pattern and the fifth region of the second gray coding pattern are both present. white.

100、100a‧‧‧結合格雷編碼之彩色結構光三維量測方法 100, 100a‧‧‧Three-dimensional measurement method of color structured light combined with Gray coding

101、102、103、104、105、106、107、108、109、110、101D、110D‧‧‧格雷編碼圖案 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 101D, 110D

103a、104a‧‧‧互補格雷編碼圖案 103a, 104a‧‧‧ Complementary Gray coding pattern

210、220、230、240、250、260、270、210a、220a、230a、240a、250a‧‧‧格雷結合圖案 210, 220, 230, 240, 250, 260, 270, 210a, 220a, 230a, 240a, 250a

260a、270a‧‧‧互補格雷結合圖案 260a, 270a‧‧‧Complementary Gray combination pattern

300‧‧‧結合格雷編碼之彩色結構光 三維量測系統 300‧‧‧Color structured light combined with Gray coding 3D measurement system

S11、S21‧‧‧選定投影階數步驟 S11, S21‧‧‧‧Selection of projection order

S12、S22‧‧‧產生格雷編碼圖案步驟 S12, S22‧‧‧Generate Gray code pattern steps

S13、S23‧‧‧排列圖案步驟 S13, S23‧‧‧‧Arrange pattern steps

S14、S25‧‧‧圖案結合步驟 S14, S25‧‧‧ pattern combination steps

S15、S26‧‧‧投影量測步驟 S15, S26‧‧‧‧Projection measurement steps

S24‧‧‧互補運算步驟 S24‧‧‧ Complementary operation steps

N‧‧‧投影階數值 N‧‧‧ projection value

C1‧‧‧第一顏色區域 C1‧‧‧ first color area

C2‧‧‧第二顏色區域 C2‧‧‧second color area

C3‧‧‧第三顏色區域 C3‧‧‧ third color area

310‧‧‧投影階數選定模組 310‧‧‧Projection Order Selection Module

320‧‧‧格雷編碼圖案產生模組 320‧‧‧Gray coding pattern generation module

330‧‧‧圖案排列模組 330‧‧‧ Pattern Arrangement Module

340‧‧‧圖案互補模組 340‧‧‧Pattern complementary module

350‧‧‧圖案結合模組 350‧‧‧ Pattern Combination Module

360‧‧‧投影量測模組 360‧‧‧Projection measurement module

R1‧‧‧第一區域 R1‧‧‧First Zone

R2‧‧‧第二區域 R2‧‧‧Second Zone

R3‧‧‧第三區域 R3‧‧‧ third zone

R4‧‧‧第四區域 R4‧‧‧Fourth Zone

R5‧‧‧第五區域 R5‧‧‧Fifth District

R‧‧‧觀察區域 R‧‧‧ Observation area

BP、RP+RIP‧‧‧虛線 BP, RP + RIP‧‧‧ dashed line

BIP、GP+GIP‧‧‧實線 BIP, GP + GIP‧‧‧Solid line

第1圖係繪示本發明一實施例的結合格雷編碼之彩色結構光三維量測方法的示意圖。 FIG. 1 is a schematic diagram illustrating a three-dimensional measurement method of color structured light combined with Gray coding according to an embodiment of the present invention.

第2A圖係繪示第1圖之第一階至第十階格雷編碼圖案兩兩結合之示意圖。 FIG. 2A is a schematic diagram showing the combination of the first to tenth-order gray coding patterns of FIG. 1 in pairs.

第2B圖係繪示第2A圖的第七階格雷編碼圖案至第十階格雷編碼圖案的示意圖。 FIG. 2B is a schematic diagram illustrating the seventh-order Gray code pattern to the tenth-order Gray code pattern in FIG. 2A.

第3圖係繪示第2A圖之格雷編碼圖案兩兩結合後的格雷結合圖案之示意圖。 FIG. 3 is a schematic diagram showing a Gray combination pattern in which the Gray coding patterns in FIG. 2A are combined in pairs.

第4圖係繪示本發明另一實施例的第一階至第四階格雷編 碼圖案兩兩結合之示意圖。 FIG. 4 is a first-order to fourth-order Gray edition of another embodiment of the present invention. Schematic illustration of a pair of code patterns.

第5圖係繪示本發明另一實施例的結合格雷編碼之彩色結構光三維量測方法的示意圖。 FIG. 5 is a schematic diagram illustrating a three-dimensional measurement method of color structured light combined with Gray coding according to another embodiment of the present invention.

第6圖係繪示第4圖之高頻的格雷編碼圖案換成互補圖形的示意圖。 FIG. 6 is a schematic diagram showing the high-frequency Gray coding pattern in FIG. 4 replaced with a complementary pattern.

第7圖係繪示第2A圖之高頻的格雷編碼圖案換成互補圖形後與低頻的格雷編碼圖案結合所產生之格雷結合圖案的示意圖。 FIG. 7 is a schematic diagram showing the Gray combination pattern generated by combining the high-frequency Gray coding pattern of FIG. 2A with a complementary pattern and combining the low-frequency Gray coding pattern.

第8圖係繪示第3圖中第一列的格雷結合圖案之局部示意圖。 FIG. 8 is a partial schematic diagram of the Gray combination pattern in the first column of FIG. 3.

第9圖係繪示第8圖及其互補圖中觀察區域的高頻條紋藍版強度變化示意圖。 FIG. 9 is a schematic diagram showing the intensity variation of the high-frequency fringe blue plate in the observation area of FIG. 8 and its complementary diagram.

第10圖係繪示第8圖及其互補圖中觀察區域的低頻條紋紅版及綠版強度相加後之變化示意圖。 Fig. 10 is a schematic diagram showing the changes after the red and green intensities of the low-frequency stripes in the observation area of Fig. 8 and its complementary diagram are added.

第11圖係繪示第8圖透過還原方式所得到之較高頻的格雷編碼圖案。 FIG. 11 shows the higher-frequency Gray coding pattern obtained by the reduction method in FIG. 8.

第12圖係繪示第8圖透過還原方式所得到之較低頻的格雷編碼圖案。 FIG. 12 shows the lower-frequency Gray coding pattern obtained by the reduction method in FIG. 8.

第13圖係繪示本發明一實施例的結合格雷編碼之彩色結構光三維量測系統的示意圖。 FIG. 13 is a schematic diagram showing a three-dimensional measurement system of color structured light combined with Gray coding according to an embodiment of the present invention.

以下將參照圖式說明本發明之複數個實施例。為明確說明起見,許多實務上的細節將在以下敘述中一併說 明。然而,應瞭解到,這些實務上的細節不應用以限制本發明。也就是說,在本發明部分實施例中,這些實務上的細節是非必要的。此外,為簡化圖式起見,一些習知慣用的結構與元件在圖式中將以簡單示意的方式繪示之;並且重複之元件將可能使用相同的編號表示之。 Hereinafter, a plurality of embodiments of the present invention will be described with reference to the drawings. For the sake of clarity, many practical details will be described in the following description. Bright. 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; and repeated components may be represented by the same number.

請一併參閱第1、2A、2B及3圖,第1圖係繪示本發明一實施例的結合格雷編碼之彩色結構光三維量測方法100的示意圖。第2A圖係繪示第1圖之第一階格雷編碼圖案101至第十階格雷編碼圖案110兩兩結合之示意圖。第2B圖係繪示第2A圖的第七階格雷編碼圖案107至第十階格雷編碼圖案110的示意圖。第3圖係繪示第2A圖之格雷編碼圖案101~110兩兩結合後的格雷結合圖案210、220、230、240、250之示意圖。如圖所示,結合格雷編碼之彩色結構光三維量測方法100用以量測待測物體之三維模型,此結合格雷編碼之彩色結構光三維量測方法100包含選定投影階數步驟S11、產生格雷編碼圖案步驟S12、排列圖案步驟S13、圖案結合步驟S14以及投影量測步驟S15。 Please refer to FIGS. 1, 2A, 2B, and 3 together. FIG. 1 is a schematic diagram illustrating a three-dimensional measurement method 100 for color structured light combined with Gray coding according to an embodiment of the present invention. FIG. 2A is a schematic diagram showing the combination of the first-order Gray code pattern 101 to the tenth-order Gray code pattern 110 in FIG. 1. FIG. 2B is a schematic diagram illustrating the seventh-order Gray code pattern 107 to the tenth-order Gray code pattern 110 in FIG. 2A. FIG. 3 is a schematic diagram showing the Gray combination patterns 210, 220, 230, 240, and 250 after the Gray code patterns 101 to 110 of FIG. 2A are combined in pairs. As shown in the figure, the gray structure-coded three-dimensional measurement method 100 for color structured light is used to measure a three-dimensional model of an object to be measured. The gray structure-coded three-dimensional measurement method for color structured light 100 includes selecting a projection order step S11, generating Gray coding pattern step S12, arrangement pattern step S13, pattern combining step S14, and projection measurement step S15.

選定投影階數步驟S11係選定一投影階數值N,此投影階數值N大於等於9,而本實施例之投影階數值N等於10。 Step S11 of selecting a projection order is to select a projection order value N. The projection order value N is greater than or equal to 9, and the projection order value N in this embodiment is equal to 10.

產生格雷編碼圖案步驟S12係產生十個格雷編碼圖案101~110,格雷編碼圖案101~110的數量與投影階數值N均為10。各格雷編碼圖案101~110呈間隔排列之條紋狀。詳細地說,格雷編碼圖案101~110呈黑白間隔排列之條 紋狀。格雷編碼圖案101~110對應之投影階數值N會影響最後重建的點雲數目和重建的精度,點雲數目係代表三維點雲資料的數量,用以重建待測物體之三維模型。在實作上,投影階數值N需大於等於9才能達到所需之重建精度要求,投影到第N階就會需要N張圖案,而在第N張圖案裡最細的條紋若為X像素(pixels),則第N張圖案大小即為X‧2N像素。若將此圖案放大兩倍,則最細的條紋將變成2‧X像素,解析度相當於放大前的第N-1張,也等同投影到第N-1階。 Step S12 of generating gray code patterns is to generate ten gray code patterns 101 to 110, and the number of gray code patterns 101 to 110 and the projection order value N are both 10. Each Gray code pattern 101 to 110 is in a stripe pattern arranged at intervals. In detail, the gray coding patterns 101 to 110 are arranged in black and white intervals. Striated. The projection order value N corresponding to the gray code patterns 101 to 110 will affect the number of point clouds and the accuracy of the reconstruction. The number of point clouds represents the amount of three-dimensional point cloud data used to reconstruct a three-dimensional model of the object to be measured. In practice, the projection order value N needs to be greater than or equal to 9 to achieve the required reconstruction accuracy requirements. Projection to the Nth order will require N patterns, and if the thinnest stripes in the Nth pattern are X pixels ( pixels), the size of the Nth pattern is X‧2N pixels. If this pattern is enlarged twice, the thinnest stripe will become 2‧X pixels, and the resolution is equivalent to the N-1th sheet before the enlargement, and it is also equivalent to the projection to the N-1th order.

排列圖案步驟S13係排列出格雷編碼圖案101~110,格雷編碼圖案101~110分別代表第一階格雷編碼圖案101至第十階格雷編碼圖案110。詳細地說,各格雷編碼圖案101~110皆具有條紋頻率,其中格雷編碼圖案101的條紋頻率為所有格雷編碼圖案101~110條紋頻率的最小值,格雷編碼圖案110的條紋頻率為所有格雷編碼圖案101~110條紋頻率的最大值。而格雷編碼圖案101~110的條紋頻率則依序為由小到大。若舉第2A圖中左邊兩欄之例子來說,格雷編碼圖案110的條紋頻率大於格雷編碼圖案109的條紋頻率,格雷編碼圖案109的條紋頻率大於格雷編碼圖案102的條紋頻率,格雷編碼圖案102的條紋頻率大於格雷編碼圖案101的條紋頻率。 The arranging pattern step S13 is to arrange the gray coding patterns 101 to 110, and the gray coding patterns 101 to 110 respectively represent the first-order gray coding patterns 101 to the tenth-order gray coding patterns 110. In detail, each gray coding pattern 101 to 110 has a fringe frequency, wherein the gray frequency of the gray coding pattern 101 is a minimum value of all gray coding patterns 101 to 110, and the gray frequency of the gray coding pattern 110 is all gray coding patterns. The maximum value of 101 ~ 110 fringe frequency. The fringe frequencies of the Gray code patterns 101 to 110 are in order from small to large. For example, in the two columns on the left of Figure 2A, the fringe frequency of the gray code pattern 110 is greater than the fringe frequency of the gray code pattern 109, the fringe frequency of the gray code pattern 109 is greater than the fringe frequency of the gray code pattern 102, and the gray code pattern 102 The fringe frequency of is greater than the fringe frequency of the Gray coding pattern 101.

圖案結合步驟S14係分別將格雷編碼圖案101、102、103、104、105對應結合格雷編碼圖案110、109、108、107、106而各自產生格雷結合圖案210、220、230、240、250,此五個格雷結合圖案210、220、230、 240、250皆具有三個顏色。詳細地說,圖案結合步驟S14係對應結合第一階格雷編碼圖案101與第十階格雷編碼圖案110而產生一個格雷結合圖案210;第二階格雷編碼圖案102對應結合第九階格雷編碼圖案109而產生格雷結合圖案220;第三階格雷編碼圖案103對應結合第八階格雷編碼圖案108而產生格雷結合圖案230;第四階格雷編碼圖案104對應結合第七階格雷編碼圖案107而產生格雷結合圖案240;第五階格雷編碼圖案105對應結合第六階格雷編碼圖案106而產生格雷結合圖案250。上述格雷結合圖案210、220、230、240、250皆具有三個顏色而為彩色圖形,本實施例之三個顏色分別為黑色、青色及紫色。各格雷結合圖案210、220、230、240、250中黑色涵蓋的範圍形成第一顏色區域C1,圖案中青色涵蓋的範圍形成第二顏色區域C2,圖案中紫色涵蓋的範圍形成第三顏色區域C3。第一顏色區域C1、第二顏色區域C2以及第三顏色區域C3彼此不重疊。 The pattern combining step S14 is to combine the Gray coded patterns 101, 102, 103, 104, and 105 with the Gray coded patterns 110, 109, 108, 107, and 106 respectively to generate the Gray coded patterns 210, 220, 230, 240, and 250 respectively. Five Gray combined patterns 210, 220, 230, Both 240 and 250 have three colors. In detail, the pattern combining step S14 corresponds to combining the first-order Gray coding pattern 101 and the tenth-order Gray coding pattern 110 to generate a Gray coupling pattern 210; the second-order Gray coding pattern 102 corresponding to combining the ninth-order Gray coding pattern 109 The gray combination pattern 220 is generated; the third-order gray coding pattern 103 is correspondingly combined with the eighth-order gray coding pattern 108 to generate a gray combination pattern 230; the fourth-order gray coding pattern 104 is corresponding to the seventh-order gray coding pattern 107 to generate gray combination Pattern 240; the fifth-order Gray coding pattern 105 is correspondingly combined with the sixth-order Gray coding pattern 106 to generate a Gray bonding pattern 250. The gray combination patterns 210, 220, 230, 240, and 250 each have three colors and are color graphics. The three colors in this embodiment are black, cyan, and purple, respectively. Each gray combination pattern 210, 220, 230, 240, 250 covers the range covered by black in the first color region C1, the range covered by cyan in the pattern forms the second color region C2, and the range covered by purple in the pattern forms the third color region C3 . The first color region C1, the second color region C2, and the third color region C3 do not overlap each other.

投影量測步驟S15係投影格雷結合圖案210、220、230、240、250至待測物體上而分別形成五個變形格雷結合圖案,然後擷取待測物體表面呈現彩色之五個變形格雷結合圖案以計算並輸出待測物體之三維模型。藉此,本發明將頻率最低的格雷編碼圖案101與頻率最高的格雷編碼圖案110做結合,並將頻率次低的格雷編碼圖案102與頻率次高的格雷編碼圖案109做結合。同理,其他格雷編碼圖案103、108、格雷編碼圖案104、107、格雷編碼圖案105、106依序對應完成五組高低頻圖案結合而產生影格雷結合圖案210、220、230、 240、250,如第2A圖與第3圖所示。藉此,本發明使用高低頻格雷編碼圖案101~110兩兩對應結合,且結合後的格雷結合圖案210、220、230、240、250利用特定顏色來取代黑白顏色,因此能用較少的圖案張數引藏較多的編碼資訊,進而大幅地增加編碼速度以及縮短編碼的時間。 The projection measurement step S15 is to project the gray combined patterns 210, 220, 230, 240, and 250 onto the object to be measured to form five deformed gray combined patterns, and then capture the five deformed gray combined patterns on the surface of the object to be colored. To calculate and output a three-dimensional model of the object to be measured. In this way, the present invention combines the Gray code pattern 101 with the lowest frequency with the Gray code pattern 110 with the highest frequency, and combines the Gray code pattern 102 with the lowest frequency and the Gray code pattern 109 with the highest frequency. Similarly, the other Gray code patterns 103, 108, Gray code patterns 104, 107, and Gray code patterns 105 and 106 correspondingly complete the combination of five sets of high and low frequency patterns to generate shadow gray pattern 210, 220, 230, 240 and 250 are shown in Fig. 2A and Fig. 3. In this way, the present invention uses high and low frequency gray coding patterns 101 to 110 to be combined in pairs, and the combined gray bonding patterns 210, 220, 230, 240, and 250 use specific colors to replace black and white colors, so fewer patterns can be used. The number of pages introduces more encoding information, which greatly increases the encoding speed and shortens the encoding time.

請一併參閱第1圖與第4圖,第4圖係繪示本發明另一實施例的第一階至第四階格雷編碼圖案101~104兩兩結合之示意圖。此實施例是將第一階格雷編碼圖案101與第四階格雷編碼圖案104做結合而產生格雷結合圖案260,並將第二階格雷編碼圖案102與第三階格雷編碼圖案103做結合而產生格雷結合圖案270。當第一階格雷編碼圖案101、第四階格雷編碼圖案104及格雷結合圖案260對應重疊時,格雷結合圖案260之第一顏色區域C1(黑色)對應第四階格雷編碼圖案104之第一區域R1,且第四階格雷編碼圖案104之第一區域R1呈黑色。此外,格雷結合圖案260之第二顏色區域C2(青色)對應第四階格雷編碼圖案104之第二區域R2與第一階格雷編碼圖案101之第三區域R3,第四階格雷編碼圖案104之第二區域R2呈白色且格第一階格雷編碼圖案101之第三區域R3呈黑色。再者,格雷結合圖案260之第三顏色區域C3(紫色)對應第四階格雷編碼圖案104之第四區域R4與第一階格雷編碼圖案101之第五區域R5,且第四階格雷編碼圖案104之第四區域R4與第一階格雷編碼圖案101之第五區域R5均呈白色,顏色分佈如表一所示。同理,當第二階格雷編碼圖案102、第三階格雷編碼圖案103及格雷結合圖案270對應重疊時,格雷結合圖案270之第 一顏色區域C1(黑色)對應第三階格雷編碼圖案103之第一區域R1,且第三階格雷編碼圖案103之第一區域R1呈黑色。而格雷結合圖案270之第二顏色區域C2(青色)對應第三階格雷編碼圖案103之第二區域R2與第二階格雷編碼圖案102之第三區域R3,第三階格雷編碼圖案103之第二區域R2呈白色且第二階格雷編碼圖案102之第三區域R3呈黑色。另外,格雷結合圖案270之第三顏色區域C3(紫色)對應第三階格雷編碼圖案103之第四區域R4與第二階格雷編碼圖案102之第五區域R5,且第三階格雷編碼圖案103之第四區域R4與第二階格雷編碼圖案102之第五區域R5均呈白色。 Please refer to FIG. 1 and FIG. 4 together. FIG. 4 is a schematic diagram showing the combination of the first to fourth-order Gray coding patterns 101 to 104 according to another embodiment of the present invention. This embodiment is a combination of the first-order Gray coded pattern 101 and the fourth-order Gray coded pattern 104 to generate a Gray-combined pattern 260, and the second-order Gray coded pattern 102 and the third-order Gray coded pattern 103 to generate Gray combined pattern 270. When the first-order Gray coded pattern 101, the fourth-order Gray coded pattern 104, and the Gray combined pattern 260 overlap, the first color region C1 (black) of the gray combined pattern 260 corresponds to the first region of the fourth-order Gray coded pattern 104. R1, and the first region R1 of the fourth-level Gray coding pattern 104 is black. In addition, the second color region C2 (cyan) of the gray combination pattern 260 corresponds to the second region R2 of the fourth-order Gray coding pattern 104 and the third region R3 of the first-order Gray coding pattern 101. The second region R2 is white and the third region R3 of the first-level Gray coding pattern 101 is black. Furthermore, the third color region C3 (purple) of the Gray combination pattern 260 corresponds to the fourth region R4 of the fourth-order Gray coding pattern 104 and the fifth region R5 of the first-order Gray coding pattern 101, and the fourth-order Gray coding pattern The fourth region R4 of 104 and the fifth region R5 of the first-level Gray coding pattern 101 are both white, and the color distribution is shown in Table 1. Similarly, when the second-order Gray code pattern 102, the third-order Gray code pattern 103, and the Gray combination pattern 270 overlap, the first A color region C1 (black) corresponds to the first region R1 of the third-level Gray coding pattern 103, and the first region R1 of the third-level Gray coding pattern 103 is black. The second color region C2 (cyan) of the gray combination pattern 270 corresponds to the second region R2 of the third-order Gray coding pattern 103 and the third region R3 of the second-order Gray coding pattern 102, The two regions R2 are white and the third region R3 of the second-order Gray coding pattern 102 is black. In addition, the third color region C3 (purple) of the Gray combination pattern 270 corresponds to the fourth region R4 of the third-order Gray coding pattern 103 and the fifth region R5 of the second-order Gray coding pattern 102, and the third-order Gray coding pattern 103 The fourth region R4 and the fifth region R5 of the second-level Gray coding pattern 102 are both white.

由第圖2A可知,本發明之投影階數值N為10,若想要投影結合到格雷編碼十階的彩色編碼,則需要第一階格雷編碼圖案101至第十階格雷編碼圖案110依照本發明的結合格雷編碼之彩色結構光三維量測方法100將其兩張成組地做結合。此外,若只想要投影結合到格雷編碼九階的彩色編碼,則仍需要第一階格雷編碼圖案101至第十階格雷編碼圖案110依照本發明的結合格雷編碼之彩色結構光三維量測方法100將其兩張成組地做結合,然後將結合後所得到的五張格雷結合圖案210、220、230、240、250放大一倍而使條紋變粗一倍,如此即可得到九階粗細的條紋圖案。因此,本發明利用放大一倍 來使條紋變粗即可解決奇數階數時奇數張圖案無法兩兩配對的問題。 It can be seen from FIG. 2A that the projection order value N of the present invention is 10, and if the color coding of the tenth order of gray coding is to be projected, the first order gray coding pattern 101 to the tenth order gray coding pattern 110 are required according to the present invention The combined gray-coded 3D color structured light measurement method 100 combines two of them in groups. In addition, if you only want to project the 9th-order color coding combined with Gray coding, you still need the first-order Gray coding pattern 101 to the tenth-order Gray coding pattern 110. The three-dimensional color structured light measurement method combining gray coding according to the present invention 100 Combine two of them into groups, and then double the five Gray combined patterns 210, 220, 230, 240, 250 obtained by combining to double the stripes, so you can get the ninth order thickness Stripes pattern. Therefore, the present invention makes use of double To make the stripes thicker, we can solve the problem that odd-numbered patterns cannot be paired one by one when the order is odd.

請一併參閱第1圖及第4~7圖,第5圖係繪示本發明另一實施例的結合格雷編碼之彩色結構光三維量測方法100a的示意圖。第6圖係繪示第4圖之高頻的格雷編碼圖案104、103換成互補圖形的示意圖。第7圖係繪示第2A圖之高頻的格雷編碼圖案110、109、108、107、106換成互補圖形後與低頻的格雷編碼圖案101、102、103、104、105結合所產生之格雷結合圖案210a、220a、230a、240a、250a的示意圖。如圖所示,結合格雷編碼之彩色結構光三維量測方法100a包含選定投影階數步驟S21、產生格雷編碼圖案步驟S22、排列圖案步驟S23、互補運算步驟S24、圖案結合步驟S25以及投影量測步驟S26。 Please refer to FIG. 1 and FIGS. 4 to 7 together. FIG. 5 is a schematic diagram illustrating a three-dimensional measurement method 100a of color structured light combined with Gray coding according to another embodiment of the present invention. Fig. 6 is a schematic diagram showing the high-frequency Gray coding patterns 104 and 103 in Fig. 4 replaced with complementary patterns. Figure 7 shows the gray code generated by combining the high-frequency Gray code patterns 110, 109, 108, 107, and 106 in Figure 2A with complementary patterns and combining the low-frequency Gray code patterns 101, 102, 103, 104, and 105. Schematic diagrams of bonding patterns 210a, 220a, 230a, 240a, 250a. As shown in the figure, the gray structured three-dimensional color measurement method 100a incorporating gray coding includes a selection projection step S21, a gray coding pattern generation step S22, an arrangement pattern step S23, a complementary operation step S24, a pattern combining step S25, and a projection measurement. Step S26.

在第5圖的實施方式中,選定投影階數步驟S21、產生格雷編碼圖案步驟S22、排列圖案步驟S23、圖案結合步驟S25及投影量測步驟S26分別與第1圖中之選定投影階數步驟S11、產生格雷編碼圖案步驟S12、排列圖案步驟S13、圖案結合步驟S14及投影量測步驟S15之方塊相同,不再贅述。特別的是,第5圖實施方式的結合格雷編碼之彩色結構光三維量測方法100a更包含互補運算步驟S24。此互補運算步驟S24係運算並產生對應於格雷編碼圖案103、104之互補格雷編碼圖案103a、104a,互補格雷編碼圖案103a、104a與格雷編碼圖案103、104之顏色互補,如第6圖之實施例所示。換句話說,互補格雷編碼圖案104a為格雷編碼圖案104之互補圖形;互補 格雷編碼圖案103a為格雷編碼圖案103之互補圖形,而所謂互補係代表原黑色變成白色,而白色變成黑色。格雷編碼圖案101與互補格雷編碼圖案104a做結合而產生互補格雷結合圖案260a,且格雷編碼圖案102與互補格雷編碼圖案103a做結合而產生互補格雷結合圖案270a。本發明利用互補格雷結合圖案260a、270a的原因在於原第1圖的結合格雷編碼之彩色結構光三維量測方法100所結合後的格雷結合圖案210、220、230、240、250是由本來的黑白條紋圖案變成彩色的條紋圖案,而彩色條紋編碼在條紋邊界容易產生混色,造成色彩串擾的現象。為了避免色彩串擾的現象發生,雖可以使用晶片彩色相機(3-Chip CCD Camera)正確分辨不同顏色條紋之間的邊界,但由於晶片彩色相機的價格昂貴,其並不符合以低成本為訴求之應用。為了讓普通的相機也能準確地找出條紋邊界的位置以正確地解碼,本發明提出互補圖形的概念,透過互補格雷編碼圖案104a、103a以及互補格雷結合圖案260a、270a的產生與結合,可避免顏色互相干擾,並找到零交錯的點即為準確的邊界。 In the embodiment of FIG. 5, the projection order selection step S21, the gray code pattern generation step S22, the arrangement pattern step S23, the pattern combination step S25, and the projection measurement step S26 are respectively selected from the projection projection order selection step in FIG. 1. S11. The steps of generating a gray code pattern S12, the arrangement pattern step S13, the pattern combining step S14, and the projection measurement step S15 are the same, and will not be described again. In particular, the gray structure-encoded three-dimensional measurement method 100a for color structured light combined with the gray code embodiment shown in FIG. 5 further includes a complementary operation step S24. This complementary operation step S24 is to calculate and generate complementary Gray coding patterns 103a and 104a corresponding to Gray coding patterns 103 and 104. The complementary Gray coding patterns 103a and 104a are complementary to the colors of Gray coding patterns 103 and 104, as shown in FIG. 6 Example. In other words, the complementary Gray coding pattern 104a is a complementary pattern of the Gray coding pattern 104; The gray coding pattern 103a is a complementary pattern of the gray coding pattern 103, and the so-called complementary system represents that the original black becomes white and the white becomes black. The Gray code pattern 101 is combined with the complementary Gray code pattern 104a to generate a complementary Gray code pattern 260a, and the Gray code pattern 102 is combined with the complementary Gray code pattern 103a to generate a complementary Gray code pattern 270a. The reason why the present invention uses the complementary Gray bonding patterns 260a, 270a is that the gray bonding patterns 210, 220, 230, 240, 250 combined with the gray structured color structured light three-dimensional measuring method 100 of the original figure 1 are originally The black and white stripe pattern becomes a colored stripe pattern, and the color stripe code is prone to mix colors at the stripe border, causing color crosstalk. In order to avoid the phenomenon of color crosstalk, although a chip color camera (3-Chip CCD Camera) can be used to correctly distinguish the boundaries between different color stripes, but because the chip color camera is expensive, it does not meet the requirements of low cost application. In order to enable ordinary cameras to accurately find the position of the fringe boundary for correct decoding, the present invention proposes the concept of complementary graphics. Through the generation and combination of complementary Gray coded patterns 104a, 103a and complementary Gray combined patterns 260a, 270a, Avoid colors interfering with each other, and find zero-interlaced points as accurate boundaries.

請一併參閱第8~12圖,第8圖係繪示第3圖中第一列的格雷結合圖案210之局部示意圖。第9圖係繪示第8圖及其互補圖中觀察區域R的高頻條紋藍版強度變化示意圖。第10圖係繪示第8圖及其互補圖中觀察區域R的低頻條紋紅版及綠版強度相加後之變化示意圖,其中第10圖的虛線係繪示第8圖及其互補圖中觀察區域R的低頻條紋紅版強度相加後之變化示意圖,而第10圖的實線係繪示第8圖及其互補圖中觀察區域R 的低頻條紋綠版強度相加後之變化示意圖。第11圖係繪示第8圖透過還原方式所得到之較高頻的格雷編碼圖案110D。第12圖係繪示第8圖透過還原方式所得到之較低頻的格雷編碼圖案101D。如圖所示,本發明之還原方式係透過原圖形與互補圖形來尋找零交錯點以準確判斷條紋邊界,第8圖為第一階格雷編碼圖案101結合第十階格雷編碼圖案110所產生的格雷結合圖案210,其即為第3圖的格雷結合圖案210的局部放大圖。格雷結合圖案210係投影於白色平面的影像,左邊為青黑交錯的條紋,右邊為紫黑交錯的條紋。左邊的青色為綠色和藍色的組合,而右邊的紫色為藍色和紅色的組合。無論青色與紫色的條紋皆有藍色,故要同時擷取左右兩邊高頻條紋的邊界,需先對第8圖之格雷結合圖案210取藍色版,此處“取藍色版”係指偵測影像中有藍色的強度值,取藍色版後即可得到青色與紫色高頻條紋強度變化的影像,其中第8圖的觀察區域R之條紋強度變化如第9圖中之虛線BP(Blue Pattern)所示。此外,將互補圖形取藍色版亦可得到其互補的高頻條紋強度變化影像,亦即得到互補格雷結合圖案的互補強度值,如第9圖中之實線BIP(Blue Inverse Pattern)所示。觀察區域R的中心剛好位於青黑條紋與紫黑條紋的交接處,此交接處約在1250像素值的位置上。接著,將虛線BP與實線BIP兩者相減,相減值大於零者令為1,也就是白色;而相減值小於零者令為0,也就是黑色,相減運算完後即可將高頻的格雷編碼圖案110D還原出來,如第11圖所示。另外,在擷取低頻條紋邊界時,由於左邊青色為綠色和藍色的組合,而右邊紫色為紅色和藍色的組合, 故將第8圖之格雷結合圖案210及其互補圖形取紅色版後相加,可得到右邊全紅、左邊全黑的低頻條紋強度影像,如第10圖中之虛線RP+RIP(Red Pattern+Red Inverse Pattern)所示。上述“取紅色版”係指偵測影像中有紅色的強度值。再者,將第8圖之格雷結合圖案210及其互補圖形取綠色版後相加,則可得到右邊全黑、左邊全綠的低頻條紋強度影像,如第10圖中之實線GP+GIP(Green Pattern+Green Inverse Pattern)所示。上述“取綠色版”係指偵測影像中有綠色的強度值。然後,將虛線RP+RIP與實線GP+GIP兩者相減,相減值大於零者令為1,也就是白色;而相減值小於零者令為0,也就是黑色,相減運算完後即可將低頻的格雷編碼圖案101D還原出來,如第12圖所示。藉此,本發明透過特定之互補還原方法,在圖形即使有色彩串擾現象以及使用普通相機(非晶片彩色相機)的狀況下,亦可準確地尋找到條紋的邊界。在分解還原為兩張黑白的格雷編碼圖案110D、101D後,即可視為格雷編碼進行解碼,進而找到影像上每個位置正確的編碼值。 Please refer to FIGS. 8 to 12 together. FIG. 8 is a partial schematic diagram of the gray combination pattern 210 in the first column in FIG. 3. FIG. 9 is a schematic diagram showing the intensity variation of the high-frequency fringe blue plate in the observation region R in FIG. 8 and its complementary diagram. FIG. 10 is a schematic diagram showing the changes of the intensity of the low-frequency stripe red plate and the green plate of the observation area R in FIG. 8 and its complementary diagram after addition. The dotted line in FIG. 10 is the diagram of FIG. 8 and its complementary diagram. The schematic diagram of the change of the intensity of the low-frequency stripe red plate in the observation area R after addition, and the solid line in FIG. 10 shows the observation area R in FIG. 8 and its complementary figure Schematic diagram of the changes of the low-frequency stripe green version after the intensity is added. FIG. 11 shows a higher-frequency Gray coding pattern 110D obtained by the reduction method in FIG. 8. FIG. 12 shows the lower-frequency Gray coding pattern 101D obtained by the reduction method in FIG. 8. As shown in the figure, the restoration method of the present invention is to find the zero-interlaced points through the original graphics and the complementary graphics to accurately determine the fringe boundary. Figure 8 is a combination of the first-order Gray coding pattern 101 and the tenth-order Gray coding pattern 110. The gray bond pattern 210 is a partial enlarged view of the gray bond pattern 210 in FIG. 3. The Gray combination pattern 210 is an image projected on a white plane, with blue-black streaks on the left and purple-black streaks on the right. The cyan on the left is a combination of green and blue, and the purple on the right is a combination of blue and red. Both the cyan and purple stripes have blue, so to capture the boundary of the high-frequency stripes on the left and right at the same time, you must first take the blue version of the gray combination pattern 210 in Figure 8, where "take the blue version" means The detected image has a blue intensity value. After taking the blue version, an image of the intensity changes of the cyan and purple high-frequency stripes can be obtained. The variation of the intensity of the fringe in the observation area R in FIG. 8 is shown as the dotted line BP in FIG. 9. (Blue Pattern). In addition, taking the blue version of the complementary pattern can also obtain its complementary high-frequency fringe intensity change image, that is, the complementary intensity value of the complementary Gray combination pattern, as shown by the solid line BIP (Blue Inverse Pattern) in Figure 9 . The center of the observation area R is just at the intersection of the blue-black stripes and the purple-black stripes, and this intersection is about 1250 pixels. Next, subtract both the dotted line BP and the solid line BIP. If the subtraction value is greater than zero, let it be 1, that is, white; and if the subtraction value is less than zero, let it be 0, that is, black. After the subtraction operation is complete, The high-frequency Gray code pattern 110D is restored, as shown in FIG. 11. In addition, when capturing the low-frequency fringe boundary, since the left cyan is a combination of green and blue, and the right purple is a combination of red and blue, Therefore, the gray combination pattern 210 in Figure 8 and its complementary pattern are added in red to obtain the low-frequency stripe intensity image with full red on the right and black on the left, such as the dashed line RP + RIP (Red Pattern + Red Inverse Pattern). The above “take the red version” refers to the intensity value of red in the detected image. Furthermore, the gray combination pattern 210 in Figure 8 and its complementary graphics are added in green to obtain low-frequency fringe intensity images that are all black on the right and green on the left, such as the solid line GP + GIP in FIG. 10 (Green Pattern + Green Inverse Pattern). The above “take the green version” refers to the intensity value of green in the detected image. Then, subtract the dotted line RP + RIP and the solid line GP + GIP. If the subtraction value is greater than zero, let it be 1, that is, white; and if the subtraction value is less than zero, let it be 0, that is, black. Subtraction operation After completion, the low-frequency Gray coding pattern 101D can be restored, as shown in FIG. 12. Therefore, the present invention can accurately find the boundaries of the stripes even if the graphics have color crosstalk and the use of ordinary cameras (non-chip color cameras) through a specific complementary restoration method. After being decomposed and reduced to two black and white Gray coded patterns 110D and 101D, they can be regarded as Gray coded and decoded, and then the correct coded value of each position on the image can be found.

請一併參閱第5、6及13圖,第13圖係繪示本發明一實施例的結合格雷編碼之彩色結構光三維量測系統300的示意圖。此結合格雷編碼之彩色結構光三維量測系統300包含投影階數選定模組310、格雷編碼圖案產生模組320、圖案排列模組330、圖案互補模組340、圖案結合模組350以及投影量測模組360。其中投影階數選定模組310用以選定投影階數值N。格雷編碼圖案產生模組320訊號連接投影階數選定模組310,且格雷編碼圖案產生模組320用以產生格雷編碼圖案 101~110。再者,圖案排列模組330訊號連接格雷編碼圖案產生模組320,圖案排列模組330用以排列出格雷編碼圖案101~110。圖案互補模組340訊號連接圖案排列模組330與圖案結合模組350,且圖案互補模組340用以運算並產生對應於格雷編碼圖案103、104之互補格雷編碼圖案103a、104a,互補格雷編碼圖案103a、104a與格雷編碼圖案103、104之顏色互補。另外,圖案結合模組350訊號連接圖案排列模組330,圖案結合模組350分別將格雷編碼圖案101、102、103、104、105對應結合格雷編碼圖案110、109、108、107、106而各自產生格雷結合圖案210、220、230、240、250,此五個格雷結合圖案210、220、230、240、250皆具有多個顏色。此外,投影量測模組360訊號連接圖案結合模組350,投影量測模組360用以投影格雷結合圖案210、220、230、240、250至待測物體上而分別形成五個變形格雷結合圖案,然後擷取待測物體表面呈現彩色之五個變形格雷結合圖案以計算並輸出待測物體之三維模型。藉此,本發明透過結合兩張成組的格雷編碼圖案101~110,以高頻圖案和低頻圖案結合產生格雷結合圖案210、220、230、240、250,此方式比投影傳統的格雷編碼圖案節省一半的量測時間。此外,本發明使用彩色條紋的互補圖形概念來準確地尋找條紋邊界,可解決傳統人工找閥值或是全域影像找閥值的問題與缺點。 Please refer to FIGS. 5, 6 and 13 together. FIG. 13 is a schematic diagram showing a color structured light three-dimensional measurement system 300 combining gray coding according to an embodiment of the present invention. The color structured light three-dimensional measurement system 300 incorporating gray coding includes a projection order selection module 310, a gray coding pattern generating module 320, a pattern arranging module 330, a pattern complementary module 340, a pattern combining module 350, and a projection amount. Test module 360. The projection order selection module 310 is used to select a projection order value N. The gray code pattern generating module 320 is connected to the projection order selection module 310, and the gray code pattern generating module 320 is used to generate a gray code pattern. 101 ~ 110. In addition, the pattern arrangement module 330 is connected to the gray code pattern generation module 320, and the pattern arrangement module 330 is used to arrange the gray code patterns 101 to 110. The pattern complementary module 340 signals connect the pattern arrangement module 330 and the pattern combination module 350, and the pattern complementary module 340 is used to calculate and generate complementary gray coding patterns 103a and 104a corresponding to the gray coding patterns 103 and 104, and complementary gray coding. The patterns 103a, 104a are complementary to the colors of the Gray code patterns 103, 104. In addition, the pattern combining module 350 signals are connected to the pattern arranging module 330. The pattern combining module 350 respectively combines the gray coding patterns 101, 102, 103, 104, and 105 with the gray coding patterns 110, 109, 108, 107, and 106 respectively. The gray combination patterns 210, 220, 230, 240, and 250 are generated. The five gray combination patterns 210, 220, 230, 240, and 250 each have multiple colors. In addition, the projection measurement module 360 signals are connected to the pattern combination module 350, and the projection measurement module 360 is used to project the gray combination patterns 210, 220, 230, 240, and 250 onto the object to be measured to form five deformed gray combinations respectively. Pattern, and then capture the five deformed gray combined patterns on the surface of the object under test to calculate and output a three-dimensional model of the object under test. In this way, the present invention combines two sets of Gray coded patterns 101 to 110, and combines the high-frequency pattern and low-frequency pattern to generate Gray-linked patterns 210, 220, 230, 240, and 250. This method is better than projecting traditional Gray-coded patterns. Save half the measurement time. In addition, the present invention uses the complementary graphic concept of colored stripes to accurately find the fringe boundary, which can solve the problems and disadvantages of traditional manual search threshold or global image search threshold.

另外值得一提的是,本發明除利用青色、紫色及黑色三種顏色來組成彩色條紋,亦可利用其他顏色的編碼圖案,例如:利用黑色、紅色、綠色及藍色四種顏色所組成的彩 色條紋。詳細地說,格雷結合圖案(未示於圖中)的顏色包含黑色、紅色、綠色及藍色。格雷結合圖案中黑色涵蓋的範圍形成第一顏色區域;格雷結合圖案中紅色涵蓋的範圍形成第二顏色區域;格雷結合圖案中綠色涵蓋的範圍形成第三顏色區域;格雷結合圖案中藍色涵蓋的範圍形成一第四顏色區域。第一顏色區域、第二顏色區域、第三顏色區域及第四顏色區域彼此不重疊。當低頻階格雷編碼圖案、高頻階格雷編碼圖案以及格雷結合圖案對應重疊時,格雷結合圖案之第一顏色區域(黑色)對應低頻格雷編碼圖案之第一區域與高頻格雷編碼圖案之第二區域,且低頻格雷編碼圖案之第一區域與高頻格雷編碼圖案之第二區域均呈黑色。再者,格雷結合圖案之第二顏色區域(紅色)對應低頻格雷編碼圖案之第三區域與高頻格雷編碼圖案之第四區域,且低頻格雷編碼圖案之第三區域呈黑色,而高頻格雷編碼圖案之第四區域呈白色。此外,格雷結合圖案之第三顏色區域(綠色)對應低頻格雷編碼圖案之第五區域與高頻格雷編碼圖案之第六區域,且低頻格雷編碼圖案之第五區域呈白色,而高頻格雷編碼圖案之第六區域呈黑色。另外,格雷結合圖案之第四顏色區域(綠色)對應低頻格雷編碼圖案之第七區域與高頻格雷編碼圖案之第八區域,且低頻格雷編碼圖案之第七區域與高頻格雷編碼圖案之第八區域均呈白色。藉此,本發明可利用不同的顏色種類配合相同的解碼還原方法,將互補的顏色強度值取出來進行零交錯找閥值,然後藉由此閥值進行二值化找到正確的條紋邊界而還原回格雷編碼圖案。 It is also worth mentioning that, in addition to using three colors of cyan, purple and black to form colored stripes, the present invention can also use coding patterns of other colors, for example, using a color consisting of four colors of black, red, green, and blue. Color stripes. In detail, the colors of the Gray bond pattern (not shown) include black, red, green, and blue. The range covered by black in the gray combination pattern forms the first color region; the range covered by red in the gray combination pattern forms the second color region; the range covered by green in the gray combination pattern forms the third color region; The range forms a fourth color area. The first color region, the second color region, the third color region, and the fourth color region do not overlap each other. When the low-frequency Gray code pattern, the high-frequency Gray code pattern, and the Gray combination pattern overlap, the first color region (black) of the Gray combination pattern corresponds to the first region of the low-frequency Gray code pattern and the second region of the high-frequency Gray code pattern. The first region of the low-frequency Gray coding pattern and the second region of the high-frequency Gray coding pattern are both black. Furthermore, the second color region (red) of the gray combination pattern corresponds to the third region of the low-frequency Gray coding pattern and the fourth region of the high-frequency Gray coding pattern, and the third region of the low-frequency Gray coding pattern is black, and the high-frequency gray The fourth area of the coding pattern is white. In addition, the third color region (green) of the Gray combination pattern corresponds to the fifth region of the low-frequency Gray coding pattern and the sixth region of the high-frequency Gray coding pattern, and the fifth region of the low-frequency Gray coding pattern is white, and the high-frequency Gray coding The sixth area of the pattern is black. In addition, the fourth color region (green) of the gray combination pattern corresponds to the seventh region of the low-frequency Gray coding pattern and the eighth region of the high-frequency Gray coding pattern, and the seventh region of the low-frequency Gray coding pattern and the first All eight areas are white. Therefore, the present invention can use different color types to cooperate with the same decoding and reduction method, and take out complementary color intensity values to perform a zero-interlaced search threshold, and then perform a binarization to find the correct fringe boundary by the threshold to restore. Back to gray coding pattern.

由上述實施方式可知,本發明具有下列優點:其一,使用格雷編碼圖案兩兩對應結合,結合後的格雷結合圖案利用特定顏色來取代黑白顏色,因此能用較少的圖案張數引藏較多的編碼資訊,進而增加編碼速度以及縮短編碼的時間。其二,透過特定之互補還原方法,在圖形即使有色彩串擾現象以及使用普通相機的狀況下,藉由零交錯點找閥值仍可準確地尋找到條紋的邊界。 It can be known from the above embodiments that the present invention has the following advantages: First, the Gray code pattern is used in combination correspondingly, and the combined Gray pattern uses a specific color instead of black and white, so it can be used to collect less More encoding information, which increases encoding speed and shortens encoding time. Second, through the specific complementary reduction method, even if the graphics have color crosstalk and the situation of using ordinary cameras, the boundary of the stripes can still be accurately found by using the threshold value of zero interlacing.

雖然本發明已以實施方式揭露如上,然其並非用以限定本發明,任何熟習此技藝者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 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 can make various modifications and retouches without departing from the spirit and scope of the present invention. Therefore, the protection of the present invention The scope shall be determined by the scope of the attached patent application.

Claims (16)

一種結合格雷編碼之彩色結構光三維量測方法,用以量測一待測物體之一三維模型,該結合格雷編碼之彩色結構光三維量測方法包含以下步驟:一選定投影階數步驟,係選定一投影階數值;一產生格雷編碼圖案步驟,係產生複數格雷編碼圖案,該些格雷編碼圖案的數量等於該投影階數值,各該格雷編碼圖案呈間隔排列之條紋狀;一排列圖案步驟,係排列出該些格雷編碼圖案中具有一第一條紋頻率之一第一格雷編碼圖案與具有一第二條紋頻率之一第二格雷編碼圖案,該第一條紋頻率大於該第二條紋頻率;一圖案結合步驟,係對應結合該第一格雷編碼圖案與該第二格雷編碼圖案而產生一格雷結合圖案,該格雷結合圖案具有複數顏色;以及一投影量測步驟,係投影該格雷結合圖案至該待測物體上而形成一變形格雷結合圖案,然後擷取該待測物體表面呈現彩色之該變形格雷結合圖案以計算並輸出該待測物體之該三維模型;其中,各該格雷編碼圖案皆具有一條紋頻率,該第一條紋頻率為該些條紋頻率中的最大值,該第二條紋頻率為該些條紋頻率的最小值。A three-dimensional measurement method of color structured light combined with Gray coding for measuring a three-dimensional model of an object to be measured. The three-dimensional measurement method of color structured light combined with Gray coding includes the following steps: a step of selecting a projection order, a A projection level value is selected; a step of generating gray coding patterns is to generate a plurality of gray coding patterns, the number of the gray coding patterns is equal to the projection level value, and each of the gray coding patterns is arranged in a stripe pattern arranged at intervals; a step of arranging patterns, A first Gray coding pattern having a first fringe frequency and a second Gray coding pattern having a second fringe frequency are arranged in the Gray coding patterns, the first fringe frequency is greater than the second fringe frequency; The pattern combining step corresponds to combining the first Gray coded pattern and the second Gray coded pattern to generate a Gray combined pattern, the Gray combined pattern has a plurality of colors; and a projection measurement step, which projects the Gray combined pattern onto the A deformed Gray combination pattern is formed on the object to be tested, and then the surface of the object to be tested is captured to present The deformed gray color combination pattern is used to calculate and output the three-dimensional model of the object to be measured; wherein each gray coded pattern has a fringe frequency, and the first fringe frequency is a maximum value among the fringe frequencies. The two fringe frequencies are the minimum of these fringe frequencies. 如申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法,其中該排列圖案步驟包含:排列出該些格雷編碼圖案中具有一第三條紋頻率之一第三格雷編碼圖案與具有一第四條紋頻率之一第四格雷編碼圖案;其中該第一條紋頻率大於該第三條紋頻率,該第三條紋頻率大於該第四條紋頻率,且該第四條紋頻率大於該第二條紋頻率。The gray structure-coded three-dimensional measurement method of color structured light combined with gray coding according to item 1 of the scope of patent application, wherein the step of arranging patterns includes: arranging the third gray coding patterns having a third fringe frequency among the gray coding patterns And a fourth gray coding pattern having a fourth fringe frequency; wherein the first fringe frequency is greater than the third fringe frequency, the third fringe frequency is greater than the fourth fringe frequency, and the fourth fringe frequency is greater than the second Stripe frequency. 如申請專利範圍第2項所述之結合格雷編碼之彩色結構光三維量測方法,其中該圖案結合步驟包含:對應結合該第三格雷編碼圖案與該第四格雷編碼圖案而產生另一格雷結合圖案,該另一格雷結合圖案具有複數顏色。As described in item 2 of the scope of the patent application, a three-dimensional measurement method of color structured light combined with gray coding, wherein the pattern combining step includes: correspondingly combining the third gray coding pattern and the fourth gray coding pattern to generate another gray coupling. Pattern, the other Gray bond pattern has a plurality of colors. 如申請專利範圍第3項所述之結合格雷編碼之彩色結構光三維量測方法,其中該投影量測步驟包含:投影該另一格雷結合圖案至該待測物體上而形成另一變形格雷結合圖案,然後擷取該待測物體表面所呈現彩色之該另一變形格雷結合圖案,並利用該變形格雷結合圖案與該另一變形格雷結合圖案計算輸出該待測物體之該三維模型。The three-dimensional measurement method of color structured light combined with Gray coding according to item 3 of the scope of patent application, wherein the projection measurement step includes: projecting another Gray combination pattern onto the object to be measured to form another deformed Gray combination Pattern, and then capture the another deformed Gray combination pattern of the color presented on the surface of the object to be measured, and use the deformed Gray combination pattern and the other deformed Gray combination pattern to calculate and output the three-dimensional model of the object to be measured. 如申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法,其中該些顏色包含黑色、青色及紫色,該格雷結合圖案中黑色涵蓋的範圍形成一第一顏色區域,該格雷結合圖案中青色涵蓋的範圍形成一第二顏色區域,該格雷結合圖案中紫色涵蓋的範圍形成一第三顏色區域,該第一顏色區域、該第二顏色區域及該第三顏色區域彼此不重疊。According to the three-dimensional measurement method of color structured light combined with gray coding as described in item 1 of the scope of the patent application, wherein the colors include black, cyan, and purple, and the range covered by black in the gray combined pattern forms a first color area, the The range covered by cyan in the gray combination pattern forms a second color region, and the range covered by purple in the gray combination pattern forms a third color region. The first color region, the second color region, and the third color region are different from each other. overlapping. 如申請專利範圍第5項所述之結合格雷編碼之彩色結構光三維量測方法,其中該第一格雷編碼圖案、該第二格雷編碼圖案及該格雷結合圖案對應重疊;該格雷結合圖案之該第一顏色區域對應該第一格雷編碼圖案之一第一區域,該第一格雷編碼圖案之該第一區域呈黑色;該格雷結合圖案之該第二顏色區域對應該第一格雷編碼圖案之一第二區域與該第二格雷編碼圖案之一第三區域,該第一格雷編碼圖案之該第二區域呈白色且該第二格雷編碼圖案之該第三區域呈黑色;及該格雷結合圖案之該第三顏色區域對應該第一格雷編碼圖案之一第四區域與該第二格雷編碼圖案之一第五區域,該第一格雷編碼圖案之該第四區域與該第二格雷編碼圖案之該第五區域均呈白色。The three-dimensional measurement method of color structured light combined with Gray coding according to item 5 of the scope of patent application, wherein the first Gray coding pattern, the second Gray coding pattern, and the Gray bonding pattern are correspondingly overlapped; The first color region corresponds to a first region of the first Gray coded pattern, and the first region of the first Gray coded pattern is black; the second color region of the gray combination pattern corresponds to one of the first Gray coded patterns. A second region and a third region of the second Gray coding pattern, the second region of the first Gray coding pattern is white and the third region of the second Gray coding pattern is black; and The third color region corresponds to a fourth region of the first Gray coded pattern and a fifth region of the second Gray coded pattern. The fourth region of the first Gray coded pattern and the second region of the second Gray coded pattern. The fifth area is all white. 如申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法,其中該些顏色包含黑色、紅色、綠色及藍色,該格雷結合圖案中黑色涵蓋的範圍形成一第一顏色區域,該格雷結合圖案中紅色涵蓋的範圍形成一第二顏色區域,該格雷結合圖案中綠色涵蓋的範圍形成一第三顏色區域,該格雷結合圖案中藍色涵蓋的範圍形成一第四顏色區域,該第一顏色區域、該第二顏色區域、該第三顏色區域及該第四顏色區域彼此不重疊。The three-dimensional measurement method of color structured light combined with gray coding as described in the first item of the patent application range, wherein the colors include black, red, green, and blue, and the range covered by black in the gray combined pattern forms a first color Area, the range covered by red in the gray combination pattern forms a second color region, the range covered by green in the gray combination pattern forms a third color region, and the range covered by blue in the gray combination pattern forms a fourth color region The first color region, the second color region, the third color region, and the fourth color region do not overlap each other. 如申請專利範圍第7項所述之結合格雷編碼之彩色結構光三維量測方法,其中該第一格雷編碼圖案、該第二格雷編碼圖案及該格雷結合圖案對應重疊;該格雷結合圖案之該第一顏色區域對應該第一格雷編碼圖案之一第一區域與該第二格雷編碼圖案之一第二區域,該第一格雷編碼圖案之該第一區域與該第二格雷編碼圖案之該第二區域均呈黑色;該格雷結合圖案之該第二顏色區域對應該第一格雷編碼圖案之一第三區域與該第二格雷編碼圖案之一第四區域,該第一格雷編碼圖案之該第三區域呈黑色且該第二格雷編碼圖案之該第四區域呈白色;該格雷結合圖案之該第三顏色區域對應該第一格雷編碼圖案之一第五區域與該第二格雷編碼圖案之一第六區域,該第一格雷編碼圖案之該第五區域呈白色且該第二格雷編碼圖案之該第六區域呈黑色;及該格雷結合圖案之該第四顏色區域對應該第一格雷編碼圖案之一第七區域與該第二格雷編碼圖案之一第八區域,該第一格雷編碼圖案之該第七區域與該第二格雷編碼圖案之該第八區域均呈白色。The three-dimensional measurement method of color structured light combined with gray coding according to item 7 of the scope of the patent application, wherein the first gray coding pattern, the second gray coding pattern, and the gray coupling pattern are correspondingly overlapped; The first color region corresponds to a first region of the first Gray coded pattern and a second region of the second Gray coded pattern. The first region of the first Gray coded pattern and the first region of the second Gray coded pattern. Both regions are black; the second color region of the gray combination pattern corresponds to a third region of the first gray code pattern and a fourth region of the second gray code pattern, and the first region of the first gray code pattern The three regions are black and the fourth region of the second Gray coded pattern is white; the third color region of the gray combination pattern corresponds to one of the first Gray coded pattern and the fifth region and one of the second Gray coded pattern. A sixth area, the fifth area of the first Gray coded pattern is white, and the sixth area of the second gray coded pattern is black; and The fourth color region corresponds to a seventh region of the first Gray coding pattern and an eighth region of the second Gray coding pattern. The seventh region of the first Gray coding pattern and the second gray coding pattern. The eighth area is all white. 如申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法,其中該投影階數值大於等於9。As described in item 1 of the scope of the patent application, the three-dimensional measurement method of color structured light combined with gray coding, wherein the projection order value is 9 or more. 如申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法,更包含:一互補運算步驟,係運算並產生對應於該第一格雷編碼圖案之一互補格雷編碼圖案,該互補格雷編碼圖案與該第一格雷編碼圖案之顏色互補;其中,該圖案結合步驟係對應結合該互補格雷編碼圖案與該第二格雷編碼圖案而產生一互補格雷結合圖案,然後依據該互補格雷結合圖案的一互補強度值與該格雷結合圖案的一強度值運算而還原該第一格雷編碼圖案。The three-dimensional measurement method of color structured light combined with gray coding as described in item 1 of the scope of the patent application, further includes: a complementary operation step for calculating and generating a complementary gray coding pattern corresponding to one of the first gray coding patterns. The complementary Gray code pattern is complementary to the color of the first Gray code pattern; wherein the pattern combining step corresponds to combining the complementary Gray code pattern and the second Gray code pattern to generate a complementary Gray code pattern, and then according to the complementary Gray code pattern A complementary intensity value of the pattern is calculated with an intensity value of the Gray combination pattern to restore the first Gray coded pattern. 一種使用申請專利範圍第1項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,包含:一投影階數選定模組,用以選定該投影階數值;一格雷編碼圖案產生模組,訊號連接該投影階數選定模組,該格雷編碼圖案產生模組用以產生該些格雷編碼圖案;一圖案排列模組,訊號連接該格雷編碼圖案產生模組,該圖案排列模組用以排列出該第一格雷編碼圖案與該第二格雷編碼圖案;一圖案結合模組,訊號連接該圖案排列模組,該圖案結合模組對應結合該第一格雷編碼圖案與該第二格雷編碼圖案而產生具有複數顏色之該格雷結合圖案;以及一投影量測模組,訊號連接該圖案結合模組,該投影量測模組用以投影該格雷結合圖案至該待測物體上而形成該變形格雷結合圖案,並擷取該待測物體表面呈現彩色之該變形格雷結合圖案以計算並輸出該待測物體之該三維模型;其中,各該格雷編碼圖案皆具有該條紋頻率,該第一條紋頻率為該些條紋頻率中的最大值,該第二條紋頻率為該些條紋頻率的最小值。A measurement system using the gray structured three-dimensional measurement method of color structured light combined with gray coding as described in the first patent application scope includes: a projection order selection module for selecting the projection order value; a gray coding pattern generation A module, a signal is connected to the projection order selection module, and the Gray code pattern generating module is used to generate the Gray code patterns; a pattern arrangement module, a signal is connected to the Gray code pattern generating module, and the pattern arrangement module It is used for arranging the first Gray coding pattern and the second Gray coding pattern. A pattern combining module is connected to the pattern arranging module. The pattern combining module correspondingly combines the first Gray coding pattern and the second Gray coding pattern. Encoding the pattern to generate the gray bond pattern with a plurality of colors; and a projection measurement module, which is connected to the pattern bonding module by a signal, and the projection measurement module is used to project the gray bond pattern onto the object to be measured and formed The deformed gray combined pattern is captured and the deformed gray combined pattern on the surface of the object to be detected is colored to calculate and output the measured object. The three-dimensional model; wherein each of the gray coding patterns has the fringe frequency, the first fringe frequency is a maximum value of the fringe frequencies, and the second fringe frequency is a minimum value of the fringe frequencies. 如申請專利範圍第11項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,其中該圖案排列模組排列出該些格雷編碼圖案中具有一第三條紋頻率之一第三格雷編碼圖案與具有一第四條紋頻率之一第四格雷編碼圖案;其中該第一條紋頻率大於該第三條紋頻率,該第三條紋頻率大於該第四條紋頻率,且該第四條紋頻率大於該第二條紋頻率。The measurement system according to the three-dimensional measurement method of color structured light combined with gray coding according to item 11 of the scope of patent application, wherein the pattern arranging module arranges one of the gray coding patterns having a third fringe frequency and a third Gray coding pattern and a fourth Gray coding pattern having a fourth fringe frequency; wherein the first fringe frequency is greater than the third fringe frequency, the third fringe frequency is greater than the fourth fringe frequency, and the fourth fringe frequency is greater than The second fringe frequency. 如申請專利範圍第12項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,其中該圖案結合模組對應結合該第三格雷編碼圖案與該第四格雷編碼圖案而產生另一格雷結合圖案,該另一格雷結合圖案具有複數顏色。According to the measurement system of the three-dimensional measurement method of color structured light combined with gray coding according to item 12 of the scope of patent application, the pattern combining module correspondingly combines the third gray coding pattern and the fourth gray coding pattern to generate another One Gray bond pattern has a plurality of colors. 如申請專利範圍第13項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,其中該投影量測模組投影該另一格雷結合圖案至該待測物體上而形成另一變形格雷結合圖案,然後擷取該待測物體表面所呈現彩色之該另一變形格雷結合圖案,並利用該變形格雷結合圖案與該另一變形格雷結合圖案計算輸出該待測物體之該三維模型。The measurement system according to the three-dimensional measurement method of color structured light combined with Gray coding according to item 13 of the scope of the patent application, wherein the projection measurement module projects the other Gray combination pattern onto the object to form another Deformed Gray combination pattern, and then capture the another deformed Gray combination pattern of the color presented on the surface of the object to be tested, and use the deformed Gray combination pattern and the other deformed Gray combination pattern to calculate and output the three-dimensional model of the object to be measured . 如申請專利範圍第11項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,其中該些顏色包含黑色、青色及紫色,該格雷結合圖案中黑色涵蓋的範圍形成一第一顏色區域,該格雷結合圖案中青色涵蓋的範圍形成一第二顏色區域,該格雷結合圖案中紫色涵蓋的範圍形成一第三顏色區域,該第一顏色區域、該第二顏色區域及該第三顏色區域彼此不重疊。According to the measurement system of the three-dimensional measurement method of color structured light combined with gray coding as described in item 11 of the scope of patent application, wherein the colors include black, cyan, and purple, the range covered by black in the gray combination pattern forms a first A color region, the range covered by cyan in the gray combination pattern forms a second color region, and the range covered by purple in the gray combination pattern forms a third color region, the first color region, the second color region, and the third region The color areas do not overlap each other. 如申請專利範圍第15項所述之結合格雷編碼之彩色結構光三維量測方法之量測系統,其中該第一格雷編碼圖案、該第二格雷編碼圖案及該格雷結合圖案對應重疊;該格雷結合圖案之該第一顏色區域對應該第一格雷編碼圖案之一第一區域,該第一格雷編碼圖案之該第一區域呈黑色;該格雷結合圖案之該第二顏色區域對應該第一格雷編碼圖案之一第二區域與該第二格雷編碼圖案之一第三區域,該第一格雷編碼圖案之該第二區域呈白色且該第二格雷編碼圖案之該第三區域呈黑色;及該格雷結合圖案之該第三顏色區域對應該第一格雷編碼圖案之一第四區域與該第二格雷編碼圖案之一第五區域,該第一格雷編碼圖案之該第四區域與該第二格雷編碼圖案之該第五區域均呈白色。The measurement system according to the three-dimensional measurement method of color structured light combined with Gray coding according to item 15 of the scope of patent application, wherein the first Gray coding pattern, the second Gray coding pattern, and the Gray coupling pattern are correspondingly overlapped; the Gray The first color region of the combined pattern corresponds to a first region of the first Gray coded pattern, and the first region of the first Gray coded pattern is black; the second color region of the gray combined pattern corresponds to the first gray. A second region of a coding pattern and a third region of the second gray coding pattern, the second region of the first gray coding pattern is white and the third region of the second gray coding pattern is black; and the The third color region of the gray combination pattern corresponds to a fourth region of the first gray coding pattern and a fifth region of the second gray coding pattern. The fourth region of the first gray coding pattern and the second gray The fifth area of the coding pattern is all white.
TW107107297A 2018-03-05 2018-03-05 Coding method and system through gray-code for structured-light 3d scanner TWI659392B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW107107297A TWI659392B (en) 2018-03-05 2018-03-05 Coding method and system through gray-code for structured-light 3d scanner

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW107107297A TWI659392B (en) 2018-03-05 2018-03-05 Coding method and system through gray-code for structured-light 3d scanner

Publications (2)

Publication Number Publication Date
TWI659392B true TWI659392B (en) 2019-05-11
TW201939444A TW201939444A (en) 2019-10-01

Family

ID=67347982

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107107297A TWI659392B (en) 2018-03-05 2018-03-05 Coding method and system through gray-code for structured-light 3d scanner

Country Status (1)

Country Link
TW (1) TWI659392B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112729166B (en) * 2021-01-04 2022-03-11 熵智科技(深圳)有限公司 Structured light encoding method, encoding and decoding method, device, computer device and medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW201305764A (en) * 2011-06-10 2013-02-01 Schneeberger Holding Ag Linear position measuring system
US20170102224A1 (en) * 2010-01-20 2017-04-13 Faro Technologies, Inc. Articulated arm coordinate measurement machine having a 2d camera and method of obtaining 3d representations
US20170270716A1 (en) * 2016-03-16 2017-09-21 Canon Kabushiki Kaisha 3d shape reconstruction using reflection onto electronic light diffusing layers
US20170277187A1 (en) * 2016-02-29 2017-09-28 Optecks, Llc Aerial Three-Dimensional Scanner
CN107490348A (en) * 2017-07-26 2017-12-19 爱佩仪中测(成都)精密仪器有限公司 Coding grating projecting method in coding structural light three-dimensional measurement

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170102224A1 (en) * 2010-01-20 2017-04-13 Faro Technologies, Inc. Articulated arm coordinate measurement machine having a 2d camera and method of obtaining 3d representations
TW201305764A (en) * 2011-06-10 2013-02-01 Schneeberger Holding Ag Linear position measuring system
US20170277187A1 (en) * 2016-02-29 2017-09-28 Optecks, Llc Aerial Three-Dimensional Scanner
US20170270716A1 (en) * 2016-03-16 2017-09-21 Canon Kabushiki Kaisha 3d shape reconstruction using reflection onto electronic light diffusing layers
CN107490348A (en) * 2017-07-26 2017-12-19 爱佩仪中测(成都)精密仪器有限公司 Coding grating projecting method in coding structural light three-dimensional measurement

Also Published As

Publication number Publication date
TW201939444A (en) 2019-10-01

Similar Documents

Publication Publication Date Title
Huang et al. A fast and flexible projector-camera calibration system
CN107607040B (en) Three-dimensional scanning measurement device and method suitable for strong reflection surface
CN100554869C (en) A Two-Dimensional Three-Frequency Phase-Resolution Measurement Method Based on Color Structured Light
CN102878950B (en) system and method for three-dimensional profile measurement
CN102944187B (en) Method for acquiring phase position of fast bright reflection surface on basis of color stripe permutation projection
US6853458B2 (en) Three-dimensional measuring method and device, and computer program
CN107071248B (en) High dynamic range imaging method for extracting geometric features of strong reflection surface
CN104221053B (en) Shaped reflector and surface profile map
CN201218726Y (en) 3D Reconstruction Device of Cultural Relics Based on Color Structured Light
CN103942830B (en) Directly utilize and there is the method that the phase place of nonlinearity erron realizes scene three-dimensional reconstruction
CN104197861A (en) Three-dimensional digital imaging method based on structured light gray level vector
CN103925889B (en) A kind of high light body surface phase place quick recovery method based on least square method
CN108592823A (en) A kind of coding/decoding method based on binocular vision color fringe coding
CN102519395B (en) Color response calibration method in colored structure light three-dimensional measurement
CN102708566B (en) Novel single-camera and single-projection light source synchronous calibrating method
CN102853783A (en) High-precision multi-wavelength three-dimensional measurement method
CN101290217A (en) Three-dimensional measurement method of color-coded structured light based on green stripe center
TWI659392B (en) Coding method and system through gray-code for structured-light 3d scanner
CN110390645B (en) System and method for improved 3D data reconstruction for stereoscopic transient image sequences
CN117387524B (en) A high dynamic range three-dimensional measurement method and system
CN111006599B (en) Microscale measurement method of object surface based on pixel grating and computer vision
CN120495101B (en) Three-dimensional measurement method and system based on fusion of linear polarization image and grayscale image
Pan et al. Color n-ary gray code for 3-d shape measurement
CN114399445A (en) Global illumination resistant self-alignment exclusive or code method
CN113888439A (en) Image processing method, image processing device, electronic equipment and computer readable storage medium