TWI460397B - System and method for verifying angles of products - Google Patents

System and method for verifying angles of products Download PDF

Info

Publication number
TWI460397B
TWI460397B TW099110044A TW99110044A TWI460397B TW I460397 B TWI460397 B TW I460397B TW 099110044 A TW099110044 A TW 099110044A TW 99110044 A TW99110044 A TW 99110044A TW I460397 B TWI460397 B TW I460397B
Authority
TW
Taiwan
Prior art keywords
point
line
angle
intersection
straight line
Prior art date
Application number
TW099110044A
Other languages
Chinese (zh)
Other versions
TW201135183A (en
Inventor
Chih Kuang Chang
Zhong-Kui Yuan
Dong-Hai Li
Li Jiang
yong-hong Ding
Original Assignee
Hon Hai Prec Ind Co Ltd
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 Hon Hai Prec Ind Co Ltd filed Critical Hon Hai Prec Ind Co Ltd
Priority to TW099110044A priority Critical patent/TWI460397B/en
Publication of TW201135183A publication Critical patent/TW201135183A/en
Application granted granted Critical
Publication of TWI460397B publication Critical patent/TWI460397B/en

Links

Landscapes

  • Image Analysis (AREA)

Description

產品角度驗證系統及方法 Product angle verification system and method

本發明涉及一種產品驗證系統及方法,尤其涉及一種產品角度驗證系統及方法。 The invention relates to a product verification system and method, in particular to a product angle verification system and method.

品質是一個企業能夠保持長久發展的重要因素之一,如何提高和保證產品品質,是企業活動中的重要內容。為了提高和保證產品品質,對產品實施檢驗是必不可少的,同時,日漸增多且急迫的檢驗需求要求企業能夠快速、準確地實施產品的檢驗。 Quality is one of the important factors for a company to maintain its long-term development. How to improve and guarantee product quality is an important part of corporate activities. In order to improve and guarantee the quality of products, it is essential to carry out inspections on products. At the same time, the increasing and urgent inspection requirements require enterprises to implement product inspections quickly and accurately.

通常,為了保證品質,對很多產品或部件上的一些特定角度都有一定的要求。然而,利用習知技術對產品或部件上的角度進行測定,準確率低下,而且在檢測大批量的產品或者部件上的角度時,效率低下。 Usually, in order to ensure quality, there are certain requirements for some specific angles on many products or parts. However, the use of conventional techniques to measure the angle of a product or component has a low accuracy and is inefficient when detecting the angle of a large batch of products or components.

鑒於以上內容,有必要提供一種產品角度驗證方法及系統,其利用產品角度輪廓的點雲資料對該產品的角度進行驗證。 In view of the above, it is necessary to provide a product angle verification method and system that verifies the angle of the product using point cloud data of the product angle profile.

所述之產品角度驗證方法包括:讀取產品角度輪廓的點雲資料;將該點雲資料所代表的所有點進行排序,並根據上述排序選擇其中的第一點及最後一點;根據上述第一點尋找第一個直線交點,及根據上述最後一點尋找第二個直線交點;利用上述第一點及第 一個直線交點確定第一條直線,利用上述最後一點及第二個直線交點確定第二條直線,及利用第一個直線交點及第二個直線交點確定第三條直線;計算上述第一條直線與第三條直線之間的夾角,以及第二條直線與第三條直線之間的夾角,並計算第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離;判斷上述所計算出來的夾角及距離是否都在預設的範圍之內,以驗證產品夾角是否合格;及根據上述判斷輸出對產品夾角的驗證結果。 The product angle verification method includes: reading point cloud data of the product angle profile; sorting all the points represented by the point cloud data, and selecting the first point and the last point according to the above sorting; according to the first Point to find the first straight line intersection, and find the second straight line intersection according to the last point above; use the first point and the above A straight line intersection determines the first line, uses the last point and the second line intersection to determine the second line, and uses the first line intersection and the second line intersection to determine the third line; calculate the first line The angle between the third line and the angle between the second line and the third line, and calculate the distance from the intersection of the first line to the second line, and the intersection of the second line to the first line The distance of the straight line; judge whether the calculated angle and distance are within the preset range to verify whether the angle of the product is qualified; and output the verification result of the angle of the product according to the above judgment.

所述之產品角度驗證系統包括:點雲讀取模組,用於讀取產品角度輪廓的點雲資料,並將該點雲資料所代表的所有點進行排序;交點定位模組,用於根據上述排序選擇其中的第一點及最後一點,根據第一點尋找第一個直線交點,根據最後一點尋找第二個直線交點,從而利用第一點及第一個直線交點確定第一條直線,利用最後一點及第二個直線交點確定第二條直線,及利用第一個直線交點及第二個直線交點確定第三條直線;計算模組,用於計算上述第一條直線與第三條直線之間的夾角,第二條直線與第三條直線之間的夾角,第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離;驗證模組,用於判斷上述所計算出來的夾角及距離是否都在預設的範圍之內,以驗證產品夾角是否合格;及輸出模組,用於根據上述判斷輸出對產品夾角的驗證結果。 The product angle verification system comprises: a point cloud reading module, which is used for reading point cloud data of the product angle profile, and sorting all the points represented by the point cloud data; the intersection point positioning module is used according to The above-mentioned sorting selects the first point and the last point, finds the first straight line intersection point according to the first point, and finds the second straight line intersection point according to the last point, thereby determining the first straight line by using the first point and the first straight line intersection point, Using the last point and the second line intersection to determine the second line, and using the first line intersection and the second line intersection to determine the third line; the calculation module is used to calculate the first line and the third line The angle between the straight lines, the angle between the second line and the third line, the distance from the intersection of the first line to the second line, and the distance from the intersection of the second line to the first line; verification module , for judging whether the calculated angle and distance are within a preset range to verify whether the angle of the product is qualified; and an output module for outputting the product according to the above judgment Verification result angle.

本發明所提供之產品角度驗證系統及方法利用產品的角度輪廓的點雲資料分析出相關參數以驗證該產品的角度是否合格,簡單易行,且效率較高。 The product angle verification system and method provided by the invention utilizes the point cloud data of the angle profile of the product to analyze relevant parameters to verify whether the angle of the product is qualified, simple and easy, and high efficiency.

1‧‧‧產品角度驗證系統 1‧‧‧Product Angle Verification System

10‧‧‧點雲讀取模組 10‧‧‧ point cloud reading module

11‧‧‧交點定位模組 11‧‧‧Intersection Point Module

12‧‧‧計算模組 12‧‧‧ Calculation Module

13‧‧‧驗證模組 13‧‧‧ verification module

14‧‧‧輸出模組 14‧‧‧Output module

2‧‧‧掃描設備 2‧‧‧Scanning equipment

3‧‧‧儲存設備 3‧‧‧Storage equipment

4‧‧‧處理器 4‧‧‧ processor

5‧‧‧顯示設備 5‧‧‧Display equipment

圖1係本發明產品角度驗證系統較佳實施例的功能模組圖。 BRIEF DESCRIPTION OF THE DRAWINGS Figure 1 is a functional block diagram of a preferred embodiment of the product angle verification system of the present invention.

圖2係本發明產品角度驗證方法較佳實施例的實施流程圖。 2 is a flow chart showing an implementation of a preferred embodiment of the product angle verification method of the present invention.

圖3係圖2中步驟S13或者S16的詳細流程圖。 Figure 3 is a detailed flow chart of step S13 or S16 in Figure 2.

圖4係圖2中步驟S19及S21中所計算出的角度及距離的示意圖。 4 is a schematic view of the angles and distances calculated in steps S19 and S21 of FIG. 2.

參閱圖1所示,係本發明產品角度驗證系統較佳實施例的功能模組圖。所述的產品角度驗證系統1包括點雲讀取模組10、交點定位模組11、計算模組12、驗證模組13、及輸出模組14。 Referring to Figure 1, there is shown a functional block diagram of a preferred embodiment of the product angle verification system of the present invention. The product angle verification system 1 includes a point cloud reading module 10, a intersection positioning module 11, a calculation module 12, a verification module 13, and an output module 14.

上述各功能模組係完成特定功能的各個程式碼段,比軟體程式本身更適合於描述軟體在電腦中的執行過程,因此本發明對軟體程式的描述都以模組描述。 Each of the above functional modules is a program segment that performs a specific function, and is more suitable for describing the execution process of the software in the computer than the software program itself. Therefore, the description of the software program of the present invention is described by a module.

此外,所述的產品角度驗證系統1還內置或者外接有儲存設備3、處理器4、及顯示設備5。所述的儲存設備3與掃描設備2通訊連接,用於儲存掃描設備2掃描產品的角度輪廓所得到的點雲資料。此外,該儲存設備3還可以儲存上述各功能模組10-14的程式碼。所述的處理器4用於運行上述各功能模組10-14的程式碼,以實現對產品角度的分析驗證。所述的顯示設備5提供一個用戶介面,用於顯示對產品角度的驗證結果。 In addition, the product angle verification system 1 also has a storage device 3, a processor 4, and a display device 5 built in or externally connected. The storage device 3 is in communication with the scanning device 2 for storing point cloud data obtained by the scanning device 2 scanning the angular contour of the product. In addition, the storage device 3 can also store the code of each of the function modules 10-14 described above. The processor 4 is configured to run the code of each of the function modules 10-14 to implement analysis and verification of the product angle. The display device 5 provides a user interface for displaying verification results for the product angle.

所述點雲讀取模組10用於從上述儲存設備3中讀取產品角度輪廓的點雲資料,並根據掃描順序將該點雲資料所代表的所有點進行排序。 The point cloud reading module 10 is configured to read the point cloud data of the product angle profile from the storage device 3, and sort all the points represented by the point cloud data according to the scanning order.

所述交點定位模組11用於根據上述排序選擇其中的第一點及最後 一點,根據第一點尋找第一個直線交點,根據最後一點尋找第二個直線交點,從而利用第一點及第一個直線交點確定第一條直線,利用最後一點及第二個直線交點確定第二條直線,及利用第一個直線交點及第二個直線交點確定第三條直線。 The intersection positioning module 11 is configured to select the first point and the last according to the above sorting One point, find the first line intersection point according to the first point, find the second line intersection point according to the last point, and use the first point and the first line intersection point to determine the first line, and use the last point and the second line intersection point to determine The second line, and the third line is determined by the intersection of the first line and the intersection of the second line.

尋找第一個直線交點的過程如下:根據上述排序選擇已選擇點(如第一點)的下一點,計算該兩點所組成直線的方向向量。在該方向向量不超過一個預設值的情況下繼續選擇下一點。否則,在該方向向量超過了上述預設值的情況下,記錄該下一點到儲存設備3中。根據上述排序在第一點的週圍取至少一個點,並在所記錄點的週圍取至少一個點,根據所取的點利用最小二乘法擬合出一條直線。計算所取的點(包括第一點及所記錄的點)到該擬合直線的距離,選擇距離最大的點作為第一個直線交點。 The process of finding the first straight line intersection is as follows: the next point of the selected point (such as the first point) is selected according to the above sorting, and the direction vector of the straight line formed by the two points is calculated. Continue to select the next point if the direction vector does not exceed a preset value. Otherwise, in the case where the direction vector exceeds the above preset value, the next point is recorded in the storage device 3. According to the above sorting, at least one point is taken around the first point, and at least one point is taken around the recorded point, and a straight line is fitted by least squares according to the taken point. Calculate the distance from the taken point (including the first point and the recorded point) to the fitted line, and select the point with the largest distance as the first straight line intersection.

尋找第二個直線交點的過程如下:根據上述排序選擇已選擇點(如最後一點)的上一點,計算該兩點所組成直線的方向向量。在該方向向量不超過一個預設值的情況下繼續選擇上一點。否則,在該方向向量超過了上述預設值的情況下,記錄該上一點到儲存設備3中。根據上述排序在最後一點的週圍取至少一個點,並在所記錄點的週圍取至少一個點,根據所取的點利用最小二乘法擬合出一條直線。計算所取的點(包括最後一點及所記錄的點)到該擬合直線的距離,選擇距離最大的點作為第二個直線交點。 The process of finding the intersection of the second straight line is as follows: the upper point of the selected point (such as the last point) is selected according to the above sorting, and the direction vector of the straight line formed by the two points is calculated. Continue to select the previous point if the direction vector does not exceed a preset value. Otherwise, in the case where the direction vector exceeds the above preset value, the upper point is recorded in the storage device 3. According to the above sorting, at least one point is taken around the last point, and at least one point is taken around the recorded point, and a straight line is fitted by least squares according to the taken point. Calculate the distance from the point taken (including the last point and the recorded point) to the fitted line, and select the point with the largest distance as the second straight line intersection.

所述計算模組12用於計算上述第一條直線與第三條直線之間的夾角,第二條直線與第三條直線之間的夾角,第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離。如圖4所示,A點為排序中的第一點,E點為排序中的最後一點,C點 為第一直線交點,F點為第二直線交點,角α為第一條直線AC與第三條直線CF之間的夾角,角β為第二條直線EF與第三條直線CF之間的夾角,D1為第一個直線交點C到第二條直線EF的距離,D2為第二個直線交點F到第一條直線AC的距離。 The calculation module 12 is configured to calculate an angle between the first straight line and the third straight line, an angle between the second straight line and the third straight line, and a distance from the first straight line intersection to the second straight line And the distance from the second straight line intersection to the first line. As shown in Figure 4, point A is the first point in the sort, and point E is the last point in the sort, point C. The intersection of the first straight line, the point F is the intersection of the second straight line, the angle α is the angle between the first straight line AC and the third straight line CF, and the angle β is the angle between the second straight line EF and the third straight line CF D1 is the distance from the first straight line intersection C to the second straight line EF, and D2 is the distance from the second straight line intersection point F to the first straight line AC.

所述驗證模組13用於判斷上述所計算出來的夾角及距離值是否都在預設的範圍之內,以驗證產品夾角是否合格。 The verification module 13 is configured to determine whether the calculated angle and the distance value are within a preset range to verify whether the angle of the product is qualified.

所述輸出模組14用於輸出對產品夾角的驗證結果。其中,若所計算出來的夾角及距離值都在預設的範圍之內,則該產品的夾角合格。否則,若所計算出來的夾角及距離值有一個不在預設的範圍之內,則該產品的夾角不合格。 The output module 14 is configured to output a verification result of the angle of the product. Wherein, if the calculated angle and distance value are within the preset range, the angle of the product is qualified. Otherwise, if the calculated angle and distance value are not within the preset range, the angle of the product is unqualified.

參閱圖2所示,係本發明產品角度驗證方法較佳實施例的實施流程圖。 Referring to Figure 2, there is shown a flow chart of a preferred embodiment of the method for verifying the angle of the product of the present invention.

步驟S10,點雲讀取模組10從上述儲存設備3中讀取產品角度輪廓的點雲資料。 In step S10, the point cloud reading module 10 reads the point cloud data of the product angle profile from the storage device 3.

步驟S11,點雲讀取模組10根據掃描順序將該點雲資料所代表的所有點進行排序。 In step S11, the point cloud reading module 10 sorts all the points represented by the point cloud data according to the scanning order.

步驟S12,交點定位模組11根據上述排序選擇其中的第一點。 In step S12, the intersection positioning module 11 selects the first point according to the above sorting.

步驟S13,交點定位模組11根據該第一點尋找第一個直線交點,詳細流程參見下述的圖3。 In step S13, the intersection positioning module 11 searches for the first straight line intersection according to the first point. For detailed flow, see FIG. 3 below.

步驟S14,交點定位模組11利用上述第一點及第一個直線交點確定第一條直線。 In step S14, the intersection positioning module 11 determines the first straight line by using the first point and the first straight line intersection.

步驟S15,交點定位模組11根據上述排序選擇其中的最後一點。 In step S15, the intersection positioning module 11 selects the last point according to the above sorting.

步驟S16,交點定位模組11根據該最後一點尋找第二個直線交點。 In step S16, the intersection positioning module 11 searches for the second straight line intersection according to the last point.

步驟S17,交點定位模組11利用該最後一點及第二個直線交點確定第二條直線。 In step S17, the intersection positioning module 11 determines the second line by using the last point and the second line intersection.

步驟S18,交點定位模組11利用第一個直線交點及第二個直線交點確定第三條直線。 In step S18, the intersection positioning module 11 determines the third straight line by using the first straight intersection and the second straight intersection.

步驟S19,計算模組12計算上述第一條直線與第三條直線之間的夾角,以及第二條直線與第三條直線之間的夾角。 In step S19, the calculation module 12 calculates an angle between the first straight line and the third straight line, and an angle between the second straight line and the third straight line.

步驟S20,驗證模組13判斷上述所計算出來的夾角是否都在預設的範圍之內,以驗證產品夾角是否合格。若有一個夾角不在預設的範圍內,則流程進入步驟S23。否則,若夾角都在預設的範圍內,則流程進入步驟S21。 In step S20, the verification module 13 determines whether the calculated included angles are all within a preset range to verify whether the angle of the product is acceptable. If an angle is not within the preset range, the flow advances to step S23. Otherwise, if the included angle is within the preset range, the flow advances to step S21.

在步驟S21中,計算模組12計算第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離值。 In step S21, the calculation module 12 calculates the distance from the first straight line intersection to the second line and the distance from the second line intersection point to the first line.

步驟S22,驗證模組13判斷上述所計算出來的距離值是否都在預設的範圍之內,以驗證產品夾角是否合格。若有一個距離值不在預設的範圍內,則流程進入步驟S23。否則,若距離值都在預設的範圍內,則流程進入步驟S24。 In step S22, the verification module 13 determines whether the calculated distance values are within a preset range to verify whether the angle of the product is acceptable. If there is a distance value that is not within the preset range, the flow advances to step S23. Otherwise, if the distance values are within the preset range, the flow advances to step S24.

在步驟S23中,輸出模組14輸出對產品夾角的驗證結果,即確定產品夾角不合格。 In step S23, the output module 14 outputs the verification result of the angle of the product, that is, the product angle is determined to be unqualified.

在步驟S24中,輸出模組14輸出對產品夾角的驗證結果,即確定產品夾角合格。 In step S24, the output module 14 outputs a verification result for the angle of the product, that is, determines that the angle of the product is acceptable.

圖3係圖2中步驟S13的詳細流程圖,即尋找第一個直線交點的詳細流程圖。 FIG. 3 is a detailed flowchart of step S13 in FIG. 2, that is, a detailed flowchart for finding the intersection of the first straight line.

步驟S100,交點定位模組11根據排序選擇已選擇點(如第一點)的下一點,計算該兩點所組成直線的方向向量。 In step S100, the intersection positioning module 11 selects the next point of the selected point (such as the first point) according to the sorting, and calculates the direction vector of the line formed by the two points.

步驟S101,交點定位模組11判斷該方向向量是否超過一個預設值。在上述方向向量超過所述預設值的情況下,流程進入步驟S102。否則,在該方向向量沒有超過所述預設值的情況下,流程返回步驟S100。 In step S101, the intersection positioning module 11 determines whether the direction vector exceeds a preset value. In the case where the above direction vector exceeds the preset value, the flow proceeds to step S102. Otherwise, in a case where the direction vector does not exceed the preset value, the flow returns to step S100.

在步驟S102中,交點定位模組11記錄該下一點到儲存設備3中。 In step S102, the intersection positioning module 11 records the next point into the storage device 3.

步驟S103,交點定位模組11根據排序在第一點的週圍取至少一個點,並在所記錄點的週圍取至少一個點,根據所取的點利用最小二乘法擬合出一條直線。 In step S103, the intersection positioning module 11 takes at least one point around the first point according to the sorting, and takes at least one point around the recorded point, and fits a straight line by least squares according to the taken point.

步驟S104,交點定位模組11計算所取的點(包括第一點及所記錄的點)到該擬合直線的距離。 In step S104, the intersection positioning module 11 calculates the distance of the taken point (including the first point and the recorded point) to the fitting straight line.

步驟S105,交點定位模組11選擇距離最大的點作為第一個直線交點。 In step S105, the intersection positioning module 11 selects the point with the largest distance as the first straight line intersection.

圖2中步驟S16的詳細流程與上述圖3所描述的步驟S13的詳細流程相似,其區別在於將圖3所示的流程中的第一點變為最後一點,及選擇已選擇點的下一點變為選擇已選擇點的上一點。 The detailed flow of step S16 in FIG. 2 is similar to the detailed flow of step S13 described in FIG. 3 described above, except that the first point in the flow shown in FIG. 3 is changed to the last point, and the next point of the selected point is selected. It becomes the upper point of the selected point.

以上所述僅為本發明之較佳實施例而已,且已達廣泛之使用功效,凡其他未脫離本發明所揭示之精神下所完成之均等變化或修飾,均應包含在下述之申請專利範圍內。 The above is only the preferred embodiment of the present invention, and has been used in a wide range of applications. Any other equivalent changes or modifications which are not departing from the spirit of the present invention should be included in the following claims. Inside.

1‧‧‧產品角度驗證系統 1‧‧‧Product Angle Verification System

10‧‧‧點雲讀取模組 10‧‧‧ point cloud reading module

11‧‧‧交點定位模組 11‧‧‧Intersection Point Module

12‧‧‧計算模組 12‧‧‧ Calculation Module

13‧‧‧驗證模組 13‧‧‧ verification module

14‧‧‧輸出模組 14‧‧‧Output module

2‧‧‧掃描設備 2‧‧‧Scanning equipment

3‧‧‧儲存設備 3‧‧‧Storage equipment

4‧‧‧處理器 4‧‧‧ processor

5‧‧‧顯示設備 5‧‧‧Display equipment

Claims (7)

一種產品角度驗證方法,包括:讀取產品角度輪廓的點雲資料;將該點雲資料所代表的所有點進行排序,並根據上述排序選擇其中的第一點及最後一點;根據上述第一點尋找第一個直線交點,及根據上述最後一點尋找第二個直線交點,其中,所述根據上述第一點尋找第一個直線交點的步驟包括:根據排序選擇已選擇點的下一點,計算該兩點所組成直線的方向向量;在該方向向量沒有超過預設值的情況下,繼續選擇下一點;在上述方向向量超過所述預設值的情況下,記錄該下一點;根據排序在第一點的週圍取若干點,並在所記錄點的週圍取若干點,根據所取的點利用最小二乘法擬合出一條直線;計算所取的點到該擬合直線的距離;及選擇距離最大的點作為第一直線交點;所述根據上述最後一點尋找第二個直線交點的步驟包括:根據排序選擇已選擇點的上一點,計算該兩點所組成直線的方向向量;在該方向向量沒有超過所述預設值的情況下,繼續選擇上一點;在上述方向向量超過所述預設值的情況下,記錄該上一點;根據排序在最後一點的週圍取若干點,並在所記錄點的週圍取若干點,根據所取的點利用最小二乘法擬合出一條直線;計算所取的點到該擬合直線的距離;及選擇距離最大的點作為第二直線交點; 利用上述第一點及第一個直線交點確定第一條直線,利用上述最後一點及第二個直線交點確定第二條直線,及利用第一個直線交點及第二個直線交點確定第三條直線;計算上述第一條直線與第三條直線之間的夾角,以及第二條直線與第三條直線之間的夾角,並計算第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離;判斷上述所計算出來的夾角及距離是否都在預設的範圍之內,以驗證產品夾角是否合格;及根據上述驗證輸出對產品夾角的驗證結果。 A product angle verification method includes: reading point cloud data of a product angle profile; sorting all points represented by the point cloud data, and selecting the first point and the last point according to the above sorting; according to the first point Finding a first straight line intersection point, and searching for a second straight line intersection point according to the last point, wherein the step of searching for the first line intersection point according to the first point includes: selecting the next point of the selected point according to the sorting, and calculating the The direction vector of the line formed by the two points; if the direction vector does not exceed the preset value, continue to select the next point; if the direction vector exceeds the preset value, record the next point; Take a few points around a point, take a few points around the recorded point, use the least squares method to fit a line according to the point taken; calculate the distance of the taken point to the fitted line; and select the distance The largest point is the first straight line intersection; the step of finding the second straight line intersection according to the last point mentioned above includes: selecting the selected point according to the sorting From the previous point, calculate a direction vector of the line formed by the two points; if the direction vector does not exceed the preset value, continue to select the last point; if the direction vector exceeds the preset value, record the The last point; take a number of points around the last point according to the sorting, and take a number of points around the recorded point, and use the least squares method to fit a line according to the taken point; calculate the taken point to the fitting straight line The distance; and select the point with the largest distance as the second straight line intersection; Using the first point and the first line intersection to determine the first line, using the last point and the second line intersection to determine the second line, and using the first line intersection and the second line intersection to determine the third line a straight line; calculating an angle between the first straight line and the third straight line, and an angle between the second straight line and the third straight line, and calculating a distance from the first straight line intersection to the second straight line, and The distance between the intersection of the two straight lines and the first straight line; judging whether the calculated angle and distance are within the preset range to verify whether the angle of the product is qualified; and verifying the verification result of the product according to the above verification output. 如申請專利範圍第1項所述之產品角度驗證方法,其中,所述排序是根據掃描的順序進行的。 The product angle verification method according to claim 1, wherein the sorting is performed according to a scanning order. 如申請專利範圍第1項所述之產品角度驗證方法,其中,所述對產品夾角的驗證結果包括:所計算出來的夾角及距離都在預設的範圍內時,產品夾角合格;及所計算出來的夾角及距離中任何一個不在預設的範圍內時,產品夾角不合格。 The product angle verification method according to claim 1, wherein the verification result of the product angle includes: when the calculated angle and distance are within a preset range, the product angle is qualified; and the calculation is performed; When any of the included angles and distances are out of the preset range, the angle of the product is unacceptable. 一種產品角度驗證系統,包括:點雲讀取模組,用於讀取產品角度輪廓的點雲資料,並將該點雲資料所代表的所有點進行排序;交點定位模組,用於根據上述排序選擇其中的第一點及最後一點,根據第一點尋找第一個直線交點,包括:根據排序選擇已選擇點的下一點,計算該兩點所組成直線的方向向量;在該方向向量沒有超過預設值的情況下,繼續選擇下一點;在上述方向向量超過所述預設值的情況下,記錄該下一點;根據排序在第一點的週圍取若干點,並在所記錄點的週圍取若干點,根據所取的點利用最小二乘法擬合出一條直線;計算所取的 點到該擬合直線的距離;及選擇距離最大的點作為第一直線交點;所述交點定位模組還用於根據最後一點尋找第二個直線交點,包括:根據排序選擇已選擇點的上一點,計算該兩點所組成直線的方向向量;在該方向向量沒有超過所述預設值的情況下,繼續選擇上一點;在上述方向向量超過所述預設值的情況下,記錄該上一點;根據排序在最後一點的週圍取若干點,並在所記錄點的週圍取若干點,根據所取的點利用最小二乘法擬合出一條直線;計算所取的點到該擬合直線的距離;及選擇距離最大的點作為第二直線交點;所述交點定位模組還用於從而利用第一點及第一個直線交點確定第一條直線,利用最後一點及第二個直線交點確定第二條直線,及利用第一個直線交點及第二個直線交點確定第三條直線;計算模組,用於計算上述第一條直線與第三條直線之間的夾角,第二條直線與第三條直線之間的夾角,第一個直線交點到第二條直線的距離,以及第二個直線交點到第一條直線的距離;驗證模組,用於判斷上述所計算出來的夾角及距離是否都在預設的範圍之內,以驗證產品夾角是否合格;及輸出模組,用於根據上述判斷輸出對產品夾角的驗證結果。 A product angle verification system includes: a point cloud reading module for reading point cloud data of a product angle profile, and sorting all points represented by the point cloud data; an intersection point positioning module for Sorting selects the first point and the last point, and finds the first line intersection according to the first point, including: selecting the next point of the selected point according to the sorting, and calculating the direction vector of the line formed by the two points; If the preset value is exceeded, continue to select the next point; if the direction vector exceeds the preset value, record the next point; take some points around the first point according to the sorting, and at the recorded point Take a few points around, and use the least squares method to fit a line according to the points taken; calculate the taken Pointing to the distance of the fitting straight line; and selecting the point with the largest distance as the first straight line intersection; the intersection positioning module is further for finding the second straight line intersection according to the last point, including: selecting the upper point of the selected point according to the sorting Calculating a direction vector of the line formed by the two points; if the direction vector does not exceed the preset value, continuing to select the last point; if the direction vector exceeds the preset value, recording the previous point According to the sorting, take a few points around the last point, and take a few points around the recorded points, and use the least squares method to fit a line according to the points taken; calculate the distance from the taken point to the fitted line And selecting the point with the largest distance as the second line intersection; the intersection positioning module is further configured to determine the first line by using the first point and the first line intersection, and determining the first point by using the last point and the second line intersection Two straight lines, and the third straight line is determined by the intersection of the first straight line and the second straight line; the calculation module is used to calculate the first straight line and the third straight line The angle between the angle between the second line and the third line, the distance from the intersection of the first line to the second line, and the distance from the intersection of the second line to the first line; the verification module, It is used to determine whether the calculated angle and distance are within a preset range to verify whether the angle of the product is qualified; and an output module for outputting the verification result of the angle of the product according to the above judgment. 如申請專利範圍第4項所述之產品角度驗證系統,該系統還包括:儲存設備;及掃描設備,用於掃描產品的角度輪廓得到點雲資料,並將點雲資料儲存到上述儲存設備中。 The product angle verification system according to claim 4, wherein the system further comprises: a storage device; and a scanning device, configured to scan the angular contour of the product to obtain point cloud data, and store the point cloud data in the storage device. . 如申請專利範圍第4項所述之產品角度驗證系統,其中,所述排序是根據掃描的順序進行的。 The product angle verification system of claim 4, wherein the sorting is performed according to a scanning order. 如申請專利範圍第4項所述之產品角度驗證系統,其中,所述產品夾角的驗證結果包括: 若所計算出來的夾角及距離都在預設的範圍之內,則該產品的夾角合格,及若所計算出來的夾角及距離有一個不在預設的範圍之內,則該產品的夾角不合格。 The product angle verification system of claim 4, wherein the verification result of the product angle includes: If the calculated angle and distance are within the preset range, the angle of the product is qualified, and if the calculated angle and distance are not within the preset range, the angle of the product is unqualified. .
TW099110044A 2010-04-01 2010-04-01 System and method for verifying angles of products TWI460397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW099110044A TWI460397B (en) 2010-04-01 2010-04-01 System and method for verifying angles of products

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW099110044A TWI460397B (en) 2010-04-01 2010-04-01 System and method for verifying angles of products

Publications (2)

Publication Number Publication Date
TW201135183A TW201135183A (en) 2011-10-16
TWI460397B true TWI460397B (en) 2014-11-11

Family

ID=46751772

Family Applications (1)

Application Number Title Priority Date Filing Date
TW099110044A TWI460397B (en) 2010-04-01 2010-04-01 System and method for verifying angles of products

Country Status (1)

Country Link
TW (1) TWI460397B (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6532820B1 (en) * 2000-01-05 2003-03-18 Marvin F. Fleming Combined ultrasonic techniques for evaluations (CUTE)
US20040094728A1 (en) * 2000-10-30 2004-05-20 Frank Herzog Device for sintering, removing material and/or labeling by means of electromagnetically bundled radiation and method for operating the device
TW200844426A (en) * 2007-05-04 2008-11-16 Univ Nat Formosa On-line mechanical visional inspection system of an object and method thereof
TW200900685A (en) * 2007-02-26 2009-01-01 Aceris 3D Inspection Inc Method and system for the inspection of integrated circuit devices having leads

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6532820B1 (en) * 2000-01-05 2003-03-18 Marvin F. Fleming Combined ultrasonic techniques for evaluations (CUTE)
US20040094728A1 (en) * 2000-10-30 2004-05-20 Frank Herzog Device for sintering, removing material and/or labeling by means of electromagnetically bundled radiation and method for operating the device
TW200900685A (en) * 2007-02-26 2009-01-01 Aceris 3D Inspection Inc Method and system for the inspection of integrated circuit devices having leads
TW200844426A (en) * 2007-05-04 2008-11-16 Univ Nat Formosa On-line mechanical visional inspection system of an object and method thereof

Also Published As

Publication number Publication date
TW201135183A (en) 2011-10-16

Similar Documents

Publication Publication Date Title
US8300920B2 (en) System and method for measuring form and position tolerances of an object
US8249304B2 (en) System and method for measuring gaps between object parts
US20070253635A1 (en) System and method for filtering point clouds
TWI514326B (en) System and method for measuring special boundaries
US20130251195A1 (en) Electronic device and method for measuring point cloud of object
TW201349169A (en) Method for splicing point cloud
US20100104198A1 (en) System and method for determining inflection points in an image of an object
TW201344633A (en) System and method for measuring curved surfaces of objects
CN106528067A (en) Method and device for generating report form
CN109283378A (en) A kind of rotating arc welding is seamed into shape parameter detection method, system, device and medium
CN111998918A (en) Error correction method, error correction device and flow sensing system
JP6647992B2 (en) Design support equipment
TWI460397B (en) System and method for verifying angles of products
CN109099877A (en) Space Cylindricity error evaluation based on longicorn palpus searching algorithm
TWI506566B (en) System and method for outputting measure results automatically
Silva et al. Polymeco-a polygonal mesh comparison tool
JP2009236679A (en) Determination reference data creating apparatus, determination reference data creating method and program
CN110879063A (en) Rapid star map identification method based on triangle matching
US8731867B2 (en) System and method for measuring performance of electronic products
US8437981B2 (en) System and method for verifying manufacturing accuracy
CN109883896B (en) Aerosol detection method and system
TW201028643A (en) Curved surface testing system and method
KR101659309B1 (en) Vision inspection apparatus and method using the same
US9207076B2 (en) Computing device and method for determining ricochet vectors of a probe of a coordinate measuring machine
CN112613263A (en) Simulation verification method and device, electronic equipment and computer-readable storage medium