TWI447606B - Method for detecting sliversof a billet - Google Patents
Method for detecting sliversof a billet Download PDFInfo
- Publication number
- TWI447606B TWI447606B TW101119977A TW101119977A TWI447606B TW I447606 B TWI447606 B TW I447606B TW 101119977 A TW101119977 A TW 101119977A TW 101119977 A TW101119977 A TW 101119977A TW I447606 B TWI447606 B TW I447606B
- Authority
- TW
- Taiwan
- Prior art keywords
- small steel
- steel embryo
- code length
- image
- determining
- Prior art date
Links
Landscapes
- Length Measuring Devices By Optical Means (AREA)
- Image Analysis (AREA)
- Investigating Materials By The Use Of Optical Means Adapted For Particular Applications (AREA)
Description
本發明是有關於一種小鋼胚剝片偵測方法,特別是有關於一種利用小鋼胚影像來偵測小鋼胚是否發生剝片或夾渣之異常狀態的方法。The invention relates to a method for detecting small steel sheet stripping, in particular to a method for detecting whether an abnormal state of stripping or slag inclusion occurs in a small steel embryo by using a small steel embryo image.
小鋼胚為棒線材的上游產品,而棒線材係則為製造螺絲螺帽、手工具等物品的主要原料,因此小鋼胚的品質好壞會直接影響到螺絲螺帽、手工具等下游產品的製造品質與製造成本。Small steel embryos are the upstream products of rod and wire rods, while rod and wire rods are the main raw materials for the manufacture of screws, nuts, hand tools, etc. Therefore, the quality of small steel embryos will directly affect downstream products such as screw nuts and hand tools. Manufacturing quality and manufacturing costs.
小鋼胚產線上常見之缺陷有轉角裂、海綿狀缺陷、夾渣、燒除剝片以及機械剝片等,其中轉角裂、海綿狀缺陷、夾渣是由小鋼胚產線上游產生,而燒除剝片和機械剝片是與小鋼胚產線上設備異常有關。因此,若能在小鋼胚產出時,對其表面進行即時的檢測,即可確保品質不佳的小鋼胚不會被送到下游。Common defects in small steel embryo production line include corner crack, spongy defect, slag inclusion, burnt stripping and mechanical stripping. Among them, corner crack, sponge defect and slag inclusion are generated from the upstream of small steel embryo production line. Burnt stripping and mechanical stripping are associated with equipment anomalies on small steel embryo production lines. Therefore, if the small steel embryo is produced, the surface of the steel can be immediately detected to ensure that the small steel embryo of poor quality will not be sent downstream.
本發明之一方面是在提供於一種小鋼胚剝片偵測方法。此小鋼胚剝片偵測方法係利用影像處理方法來進行小鋼胚表面異常的判斷,除可檢測出機械剝片和夾渣之表面異常外,也可協助現場操作人員提早了解設備異常狀況。One aspect of the invention is provided in a method for detecting small steel sheet strips. The small steel embryo stripping detection method uses the image processing method to judge the surface abnormality of the small steel embryo. In addition to detecting the surface abnormality of the mechanical stripping and the slag inclusion, it can also assist the field operator to understand the abnormal condition of the equipment early. .
根據本發明之一實施例,在此小鋼胚剝片偵測方法中,首先,提供小鋼胚之小鋼胚影像。接著,對小鋼胚影 像進行二值化步驟,以得到二值化影像。此二值化影像包含複數個前景物件。然後,計算這些前景物件之複數個物件面積值。接著,根據這些物件面積值之大小來將物件面積值排序,以得到面積值序列。然後,計算面積值序列中每兩相鄰之該些物件面積值之差值,以得到這些物件面積值之至少一個面積差值。接著,從此至少一個面積差值中,選擇出最大面積差值。然後,根據此最大面積差值來從物件面積值中決定出至少一個較大物件面積值。接著,判斷較大物件面積值之總和是否大於預設面積閥值,以提供第一判斷結果。當第一判斷結果為是時,決定小鋼胚出現機械剝片或夾渣之異常狀況。According to an embodiment of the present invention, in the method for detecting small steel embryo strips, first, a small steel embryo image of a small steel embryo is provided. Next, the small steel embryo shadow The binarization step is performed to obtain a binarized image. This binarized image contains a plurality of foreground objects. Then, a plurality of object area values of these foreground objects are calculated. Next, the object area values are sorted according to the size of the object area values to obtain a sequence of area values. Then, the difference between each two adjacent object area values in the sequence of area values is calculated to obtain at least one area difference of the object area values. Then, from among the at least one area difference, the maximum area difference is selected. Then, at least one larger object area value is determined from the object area values based on the maximum area difference. Next, it is determined whether the sum of the larger object area values is greater than a preset area threshold to provide a first determination result. When the first judgment result is YES, it is determined that the small steel embryo has an abnormal condition of mechanical peeling or slag inclusion.
根據本發明另一實施例,在此小鋼胚剝片偵測方法中,首先,提供小鋼胚之小鋼胚影像。接著,對小鋼胚影像進行二值化步驟,以得到二值化影像。其中此二值化影像包含複數個前景物件。然後,計算前景物件之物件輪廓長度。接著,將物件輪廓長度之和除以前景物件之個數,以得到平均輪廓長度。然後,判斷平均輪廓長度是否大於預設輪廓長度閥值,以提供第一判斷結果。當第一判斷結果為是時,決定小鋼胚出現機械剝片或夾渣之異常狀況。According to another embodiment of the present invention, in the method for detecting small steel embryo strips, first, a small steel embryo image of a small steel embryo is provided. Next, the small steel embryo image is binarized to obtain a binarized image. The binarized image includes a plurality of foreground objects. Then, calculate the object outline length of the foreground object. Next, the sum of the object outline lengths is divided by the number of foreground objects to obtain an average contour length. Then, it is judged whether the average contour length is greater than the preset contour length threshold to provide the first judgment result. When the first judgment result is YES, it is determined that the small steel embryo has an abnormal condition of mechanical peeling or slag inclusion.
根據本發明又一實施例,在此小鋼胚剝片偵測方法中,首先提供小鋼胚之小鋼胚影像。接著,對該小鋼胚影像進行一二值化步驟,以得到二值化影像。其中,此二值化影像包含複數個前景物件。然後,對二值化影像進行碼長編碼(Run-Length Coding;RLC)演算法,以獲得複數個碼長(Run-Length)數量。此碼長編碼演算法係沿著水平方向來對二值化影像進行掃描。然後,將這些碼長數量加總來計 算出碼長總量。接著,判斷碼長總量是否小於預設碼長數量閥值,以提供判斷結果。當此判斷結果為是時,決定此小鋼胚出現機械剝片或夾渣之異常狀況。According to still another embodiment of the present invention, in the method for detecting small steel embryo stripping, first, a small steel embryo image of a small steel embryo is provided. Next, a binarization step is performed on the small steel embryo image to obtain a binarized image. The binarized image includes a plurality of foreground objects. Then, the Run-Length Coding (RLC) algorithm is performed on the binarized image to obtain a plurality of Run-Length numbers. This code length encoding algorithm scans the binarized image along the horizontal direction. Then, add the total number of these codes to calculate Calculate the total length of the code. Next, it is determined whether the total code length is less than a preset code length threshold to provide a determination result. When the result of this determination is YES, it is determined that the small steel embryo has an abnormal condition of mechanical peeling or slag inclusion.
根據本發明再一實施例,在此小鋼胚剝片偵測方法中,首先提供小鋼胚之小鋼胚影像。接著,對該小鋼胚影像進行一二值化步驟,以得到二值化影像。其中,此二值化影像包含複數個前景物件。然後,對二值化影像進行碼長編碼演算法,以獲得複數個碼長。此碼長編碼演算法係沿著水平方向來對二值化影像進行掃描。然後,從這些碼長中決定出最大碼長。接著,判斷最大碼長是否大於預設碼長閥值,以提供判斷結果。當此判斷結果為是時,決定此小鋼胚出現機械剝片或夾渣之異常狀況。According to still another embodiment of the present invention, in the method for detecting small steel embryo stripping, first, a small steel embryo image of a small steel embryo is provided. Next, a binarization step is performed on the small steel embryo image to obtain a binarized image. The binarized image includes a plurality of foreground objects. Then, the code length coding algorithm is performed on the binarized image to obtain a plurality of code lengths. This code length encoding algorithm scans the binarized image along the horizontal direction. Then, the maximum code length is determined from these code lengths. Next, it is determined whether the maximum code length is greater than a preset code length threshold to provide a determination result. When the result of this determination is YES, it is determined that the small steel embryo has an abnormal condition of mechanical peeling or slag inclusion.
由上述說明可知,本發明實施例之小鋼胚剝片偵測方法係利用前景物件之物件輪廓長度、物件面積值或碼長總量來進行小鋼胚的表面偵測,以判斷線上的小鋼胚是否有銹皮、夾渣或機械剝片之異常狀態。It can be seen from the above description that the small steel piece peeling detection method in the embodiment of the present invention uses the object contour length, the object area value or the total code length of the foreground object to detect the surface of the small steel embryo to judge the small line. Whether the steel embryo has an abnormal state of scale, slag or mechanical peeling.
請同時參照第1a-1b圖,其係繪示根據本發明實施例之小鋼胚剝片偵測方法100的流程示意圖。在小鋼胚剝片偵測方法100中,首先進行影像擷取步驟110,以擷取線上小鋼胚之表面影像。接著,進行正規化步驟120,以對小鋼胚影像進正規化。然後,進行二值化步驟130,以對正規化的影像進行二值化。在本實施例中,二值化步驟130係以u-k* σ來作為二值化閥值,其中u為正規化影像之平 均灰階值;σ為灰階標準差;k為常數(在此為2.0)。Please refer to FIG. 1a-1b at the same time, which is a schematic flow chart of a small steel stripping detection method 100 according to an embodiment of the invention. In the small steel stripping detection method 100, an image capturing step 110 is first performed to capture a surface image of a small steel blank on the line. Next, a normalization step 120 is performed to normalize the image of the small steel embryo. Then, a binarization step 130 is performed to binarize the normalized image. In this embodiment, the binarization step 130 uses u-k* σ as the binarization threshold, where u is the normalized image level. Average grayscale value; σ is the grayscale standard deviation; k is a constant (here 2.0).
請參照第1c-1e圖,其係分別繪示根據本發明實施例之小鋼胚之二值化影像的示意圖,其中剖線的部份係代表白色,而未剖線的部份係代表黑色。若小鋼胚之表面有機械剝片之異常狀態,則二值化影像會包含長條型的前景物件101,如第1c圖所示。若小鋼胚之表面有銹皮之異常狀態,則二值化影像會包含多個小塊零碎分佈的的前景物件101,如第1d圖所示。若小鋼胚之表面有夾渣之異常狀態,則二值化影像會包含一大塊的的前景物件101,如第1e圖所示。Please refer to FIG. 1c-1e, which is a schematic diagram showing a binarized image of a small steel blank according to an embodiment of the present invention, wherein the part of the line represents white, and the part of the unlined part represents black. . If the surface of the small steel blank has an abnormal state of mechanical peeling, the binarized image will contain a long strip of foreground object 101, as shown in Fig. 1c. If the surface of the small steel blank has an abnormal state of the scale, the binarized image will contain a plurality of small pieces of the foreground object 101 distributed as a piecemeal, as shown in Fig. 1d. If the surface of the small steel embryo has an abnormal state of slag inclusion, the binarized image will contain a large piece of foreground object 101, as shown in Fig. 1e.
另外,雖然本實施例之小鋼胚剝片偵測方法100係對小鋼胚影像正規化後再進行二值化,但本發明之實施例並不受限於此。在本發明之其他實施例中,亦可根據使用者的需求來省略正規化步驟。In addition, although the small steel billet detecting method 100 of the present embodiment performs binarization after normalizing the small steel embryo image, the embodiment of the present invention is not limited thereto. In other embodiments of the invention, the normalization step can also be omitted according to the needs of the user.
請回到第1a圖,在二值化步驟後130後,接著進行面積計算步驟140,以計算二值化影像中之每一個前景物件之物件面積值。然後,進行排序步驟150,以根據這些物件面積值之大小來將物件面積值排序,而得到面積值序列。接著,進行差值計算步驟160,以計算面積值序列中每兩相鄰之物件面積值之差值,而得到這些物件面積值之至少一個面積差值。例如。若二值化影像內共有M個前景物件101,其面積由大至小分別為a1 ,a2 ,...,aM ,則面積差值d1 ,d2 ,...,dM-1 為a1 -a2 ,a2 -a3 ,...,aM-1 -aM 。然後,進行選擇步驟170,以從這些面積差值中,選擇出最大的面積差值,例如d3 。接著,進行較大物件面積值決定步驟180,以從物件面 積值中決定出較大物件面積值。Returning to Figure 1a, after 130 after the binarization step, an area calculation step 140 is then performed to calculate an object area value for each of the foreground objects in the binarized image. Then, a sorting step 150 is performed to sort the object area values according to the size of the object area values to obtain a sequence of area values. Next, a difference calculation step 160 is performed to calculate a difference between each two adjacent object area values in the sequence of area values to obtain at least one area difference of the object area values. E.g. If there are M foreground objects 101 in the binarized image, the area from large to small is a 1 , a 2 , ..., a M , then the area difference d 1 , d 2 , ..., d M -1 is a 1 - a 2 , a 2 - a 3 , ..., a M-1 - a M . Then, selection step 170, the difference in these areas, the maximum difference area is selected, for example, d 3. Next, a larger object area value determining step 180 is performed to determine a larger object area value from the object area values.
請參照第1f圖,其係繪示根據本發明實施例之較大物件面積值決定步驟180的流程示意圖。在較大物件面積值決定步驟180中,首先進行起始面積值決定步驟182,以從最大面積差值所對應之兩物件面積值中決定起始面積值。例如,若最大面積差值為d3 =a3 -a4 ,則面積值a3 和a4 代表大物件面積值和小物件面積值的邊界(或稱為邊界物件面積值),而面積值a3 ,即兩邊界物件面積值中之最大者,則被決定為起始面積值。然後,進行決定步驟184,以根據起始面積值與最大面積值來決定較大物件面積值。在本實施例中,最大面積值為物件面積值中之最大者,例如a1 ,而較大物件面積值則為面積值序列中從起始面積值a3 至最大面積值a1 所包含的面積值,即a1 ,a2 ,a3 。Please refer to FIG. 1f, which is a flow chart showing a larger object area value determining step 180 according to an embodiment of the present invention. In the larger object area value determining step 180, a starting area value determining step 182 is first performed to determine the starting area value from the two object area values corresponding to the maximum area difference. For example, if the maximum area difference is d 3 = a 3 - a 4 , the area values a 3 and a 4 represent the boundary between the large object area value and the small object area value (or the boundary object area value), and the area value a 3 , the largest of the two boundary object area values, is determined as the starting area value. Then, a decision step 184 is performed to determine a larger object area value based on the starting area value and the maximum area value. In this embodiment, the maximum area value is the largest of the object area values, such as a 1 , and the larger object area value is included in the sequence of area values from the starting area value a 3 to the maximum area value a 1 . Area value, ie a 1 , a 2 , a 3 .
請參照第1b圖,在較大物件面積值決定步驟180後,接著進行判斷步驟190,以判斷較大物件面積值之總和是否大於預設之面積閥值。在本實施例中,預設面積閥值為M個前景物件101之總面積值的80%,但本發明之實施例並不受限於此。當較大物件面積值之總和大於總面積值的80%,表示影像中前幾大的前景物件佔總面積百分比較高,並據此判定小鋼胚之表面有機械剝片或夾渣之異常狀況。Referring to FIG. 1b, after the larger object area value determining step 180, a determining step 190 is then performed to determine whether the sum of the larger object area values is greater than a predetermined area threshold. In the present embodiment, the preset area threshold is 80% of the total area value of the M foreground objects 101, but the embodiment of the present invention is not limited thereto. When the sum of the larger object area values is greater than 80% of the total area value, it means that the first few foreground objects in the image account for a higher percentage of the total area, and according to this, it is determined that the surface of the small steel embryo has mechanical peeling or slag inclusion abnormality. situation.
另外,在本發明之其他實施例中,較大物件面積值之總和可利用以下方程式來計算:k*=argmax(dk )Additionally, in other embodiments of the invention, the sum of the larger object area values can be calculated using the equation: k* = argmax(d k )
其中k*為起始面積值;p為較大物件面積值之總和與總面積值之比例。Where k* is the starting area value; p is the ratio of the sum of the larger object area values to the total area value.
由上述說明可知,本實施例係利用前景物件的面積來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生,此係因為銹皮之二值化影像包含大量的前景物件,因此其前幾大物件佔總面積的百分比會比其他異常狀態(例如機械剝片)還小,如第1g圖之表格所示。It can be seen from the above description that the present embodiment uses the area of the foreground object to determine whether the small steel slag has an abnormal state of slag inclusion or mechanical peeling. This is because the binarized image of the scale contains a large number of foreground objects, so The percentage of the first few objects in the total area will be smaller than other abnormal conditions (such as mechanical stripping), as shown in the table in Figure 1g.
請參照第2a-2b圖,其係繪示根據本發明實施例之小鋼胚剝片偵測方法200的流程示意圖。小鋼胚剝片偵測方法200係類似於小鋼胚剝片偵測方法100,但不同之處在於小鋼胚剝片偵測方法200更包含夾渣判斷步驟210。由上述說明可知,本發明實施例之小鋼胚剝片偵測方法100可判斷出定小鋼胚之表面可能有機械剝片或夾渣之異常狀況,但無法更進一步判斷是兩者之中的哪一種,而小鋼胚剝片偵測方法200可利用夾渣判斷步驟210來進一步判斷出小鋼胚之表面為是否為夾渣之異常狀況。Please refer to FIG. 2a-2b, which is a schematic flow chart of a method for detecting small steel sheet stripping according to an embodiment of the present invention. The small steel sheet stripping detection method 200 is similar to the small steel sheet stripping method 100, but the difference is that the small sheet metal stripping detecting method 200 further includes a slag determining step 210. It can be seen from the above description that the small steel sheet stripping detecting method 100 of the embodiment of the present invention can determine that the surface of the small steel blank may have abnormal conditions of mechanical stripping or slag inclusion, but it cannot be further judged that Which of the small steel stripping detection methods 200 can utilize the slag determination step 210 to further determine whether the surface of the small steel blank is an abnormal condition of slag inclusion.
請參照第2c圖,其係繪示根據本發明實施例之夾渣判斷步驟210的流程示意圖。在夾渣判斷步驟210中,首先進行碼長編碼步驟211,以對二值化影像進行碼長編碼(Run-Length Coding;RLC)演算法,而獲得複數個碼長(Run-Length)數量。在本實施例中,碼長編碼步驟211係沿著垂直方向來對二值化影像進行掃描,如第2d圖所示。在掃描過程中,每條掃描線L都會對應至一個碼長數量,此 碼長數量係與掃描線L越過前景物件之邊界的次數有關。在碼長編碼步驟211後,接著進行加總步驟212,以將這些碼長加總來獲得碼長總量。然後,進行判斷步驟213,以判斷碼長總量是否大於預設之碼長數量閥值。當碼長總量大於預設之碼長數量閥值時,即代表小鋼胚出現夾渣之異常狀況,反之則代表小鋼胚出現機械剝片之異常狀況。在本實施例中,預設之碼長數量閥值為20(個),但本發明之實施例並不受限於此。Please refer to FIG. 2c, which is a schematic flow chart of the slag inclusion determining step 210 according to an embodiment of the present invention. In the slag determination step 210, the code length encoding step 211 is first performed to perform a Run-Length Coding (RLC) algorithm on the binarized image to obtain a plurality of Run-Length numbers. In the present embodiment, the code length encoding step 211 scans the binarized image along the vertical direction as shown in Fig. 2d. During the scanning process, each scanning line L corresponds to a code length, this The number of code lengths is related to the number of times the scan line L crosses the boundary of the foreground object. After the code length encoding step 211, a summing step 212 is then performed to add up the code lengths to obtain a total code length. Then, a determining step 213 is performed to determine whether the total code length is greater than a preset number of code length thresholds. When the total length of the code length is greater than the preset threshold of the code length, it represents the abnormal condition of the slag inclusion in the small steel embryo, and vice versa, the abnormal condition of the mechanical peeling of the small steel embryo. In the present embodiment, the preset code length threshold is 20 (one), but the embodiment of the present invention is not limited thereto.
請參照第3圖,其係繪示本發明實施例之小鋼胚剝片偵測方法300的流程示意圖。小鋼胚剝片偵測方法300係類似於小鋼胚剝片偵測方法100,但不同之處在於小鋼胚剝片偵測方法300係利用前景物件的輪廓長度來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生。Please refer to FIG. 3 , which is a schematic flow chart of a method for detecting a small steel stripping strip 300 according to an embodiment of the present invention. The small steel sheet stripping detection method 300 is similar to the small steel sheet stripping method 100, but the difference is that the small steel sheet stripping method 300 uses the contour length of the foreground object to determine whether the small steel embryo has An abnormal state of slag inclusion or mechanical peeling occurs.
在小鋼胚剝片偵測方法300中,首先進行影像擷取步驟110、正規化步驟120以及二值化步驟130,以獲得小鋼胚的二值化影像。然後,進行輪廓長度計算步驟340,以計算所有前景物件之物件輪廓長度。在本實施例中,前景物件之物件輪廓長度係利用畢氏定理來求得,但本發明之實施例並不受於此。接著,進行平均計算步驟350,以將所有前景物件輪廓長度之和除以前景物件之個數,以得到平均輪廓長度。然後,進行判斷步驟360,以判斷平均輪廓長度是否大於預設輪廓長度閥值,而提供判斷結果。在本實施例中,預設輪廓長度閥值為40(個像素單位),但本發明之實施例並不受限於此。當判斷結果為是時,決定小鋼胚出現機械剝片或夾渣之異常狀況。In the small steel stripping detection method 300, an image capturing step 110, a normalizing step 120, and a binarization step 130 are first performed to obtain a binarized image of a small steel blank. Then, a contour length calculation step 340 is performed to calculate the object contour length of all foreground objects. In the present embodiment, the object profile length of the foreground object is obtained using the Pearson's theorem, but the embodiment of the present invention is not limited thereto. Next, an averaging calculation step 350 is performed to divide the sum of the lengths of all foreground object contours by the number of foreground objects to obtain an average contour length. Then, a determining step 360 is performed to determine whether the average contour length is greater than a preset contour length threshold, and the determination result is provided. In the present embodiment, the preset contour length threshold is 40 (pixel units), but the embodiment of the present invention is not limited thereto. When the judgment result is YES, it is determined that the small steel embryo has an abnormal condition of mechanical peeling or slag inclusion.
由上述說明可知,本實施例係利用前景物件的平均輪廓長度來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生,此係因為銹皮之二值化影像包含大量的前景物件,其平均輪廓長度會比其他異常狀態(例如機械剝片)還小。另外,小鋼胚剝片偵測方法300可更包含前述之夾渣判斷步驟210,以更進一步判斷小鋼胚是之異常狀況為夾渣或是機械剝片。It can be seen from the above description that the present embodiment uses the average contour length of the foreground object to determine whether the small steel blank has an abnormal state of slag inclusion or mechanical stripping, because the binarized image of the scale contains a large number of foreground objects. The average profile length will be smaller than other abnormal conditions (such as mechanical stripping). In addition, the small steel stripping detection method 300 may further include the foregoing slag determination step 210 to further determine whether the small steel embryo is abnormally slag or mechanically peeled.
請參照第4圖,其係繪示本發明實施例之小鋼胚剝片偵測方法400的流程示意圖。小鋼胚剝片偵測方法400係類似於小鋼胚剝片偵測方法100,但不同之處在於小鋼胚剝片偵測方法300係利用二值化影像的碼長數量來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生。Please refer to FIG. 4 , which is a schematic flow chart of a method for detecting a small steel stripping strip 400 according to an embodiment of the present invention. The small steel sheet stripping detection method 400 is similar to the small steel sheet stripping method 100, but the difference is that the small steel sheet stripping method 300 uses the number of code lengths of the binarized image to judge the small steel. Whether the embryo has an abnormal state of slag inclusion or mechanical peeling.
在小鋼胚剝片偵測方法400中,首先進行影像擷取步驟110、正規化步驟120以及二值化步驟130,以獲得小鋼胚的二值化影像。然後,進行碼長編碼步驟411,以對二值化影像進行碼長編碼演算法,而獲得複數個碼長數量。在本實施例中,碼長編碼步驟411係沿著水平方向來對二值化影像進行掃描,如第4a圖所示。在掃描過程中,每條掃描線L都會對應至一個碼長數量,此碼長數量係與掃描線L越過前景物件之邊界的次數有關。在碼長編碼步驟411後,接著進行加總步驟412,以將這些碼長數量加總來獲得碼長總量。然後,進行判斷步驟413,以判斷碼長總量是否小於預設之碼長數量閥值。當碼長總量小於預設之碼長數量閥值時,即代表小鋼胚出現機械剝片或夾渣之異常狀況。在本實施例中,預設之碼長數量閥值為70(個), 但本發明之實施例並不受限於此。In the small steel stripping detection method 400, the image capturing step 110, the normalizing step 120, and the binarization step 130 are first performed to obtain a binarized image of the small steel blank. Then, a code length encoding step 411 is performed to perform a code length encoding algorithm on the binarized image to obtain a plurality of code length numbers. In the present embodiment, the code length encoding step 411 scans the binarized image along the horizontal direction as shown in FIG. 4a. During the scanning process, each scanning line L corresponds to a code length number, which is related to the number of times the scanning line L crosses the boundary of the foreground object. After the code length encoding step 411, a summing step 412 is then performed to add the total number of code lengths to obtain a total code length. Then, a determining step 413 is performed to determine whether the total code length is less than a preset number of code length thresholds. When the total length of the code length is less than the preset threshold of the number of code lengths, it means that the small steel blank has abnormal conditions of mechanical peeling or slag inclusion. In this embodiment, the preset code length threshold is 70 (pieces), However, embodiments of the invention are not limited thereto.
由上述說明可知,本實施例係利用二值化影像的碼長數量來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生,此係因為銹皮之二值化影像包含大量的前景物件,當水平掃描線掃過銹皮之二值化影像,其碼長總量會遠大於其他異常狀態(例如機械剝片)的碼長總量,如第4b圖之表格所示。另外,小鋼胚剝片偵測方法400可更包含前述之夾渣判斷步驟210,以更進一步判斷小鋼胚是之異常狀況為夾渣或是機械剝片。It can be seen from the above description that the present embodiment uses the number of code lengths of the binarized image to determine whether the small steel embryo has an abnormal state of slag inclusion or mechanical stripping, because the binarized image of the scale contains a large amount of foreground. For objects, when the horizontal scanning line sweeps over the binary image of the scale, the total length of the code will be much larger than the total length of other abnormal states (such as mechanical stripping), as shown in the table in Figure 4b. In addition, the small steel stripping detection method 400 may further include the foregoing slag determination step 210 to further determine whether the abnormal condition of the small steel blank is slag or mechanical peeling.
請參照第5圖,其係繪示本發明實施例之小鋼胚剝片偵測方法500的流程示意圖。小鋼胚剝片偵測方法500係類似於小鋼胚剝片偵測方法400,但不同之處在於小鋼胚剝片偵測方法500係利用二值化影像的碼長長度來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生。Please refer to FIG. 5 , which is a schematic flow chart of a small steel stripping detection method 500 according to an embodiment of the present invention. The small steel sheet stripping detection method 500 is similar to the small steel sheet stripping method 400, but the difference is that the small steel sheet stripping detection method 500 uses the code length of the binarized image to judge the small steel. Whether the embryo has an abnormal state of slag inclusion or mechanical peeling.
在小鋼胚剝片偵測方法500中,首先進行影像擷取步驟110、正規化步驟120以及二值化步驟130,以獲得小鋼胚的二值化影像。然後,進行碼長編碼步驟511,以對二值化影像進行碼長編碼演算法,而獲得複數個碼長。在本實施例中,碼長編碼步驟511沿著水平方向來對二值化影像進行掃描來獲得複數個碼長,每一個碼長的長度係代表此掃描線經過物件邊緣之前所掃過的距離(或像素)。接著,進行決定步驟512,以從這些碼長中決定出最大碼長。然後,進行判斷步驟513,以判斷最大碼長是否大於預設之碼長閥值。當最大碼長大於預設之碼長閥值時,即代表小鋼胚出現機械剝片或夾渣之異常狀況。在本實施例中, 預設之碼長閥值為30(個像素單位),但本發明之實施例並不受限於此。In the small steel stripping detection method 500, an image capturing step 110, a normalizing step 120, and a binarization step 130 are first performed to obtain a binarized image of a small steel blank. Then, a code length encoding step 511 is performed to perform a code length encoding algorithm on the binarized image to obtain a plurality of code lengths. In this embodiment, the code length encoding step 511 scans the binarized image along the horizontal direction to obtain a plurality of code lengths, and the length of each code length represents the distance swept by the scan line before passing the edge of the object. (or pixel). Next, a decision step 512 is performed to determine the maximum code length from these code lengths. Then, a determining step 513 is performed to determine whether the maximum code length is greater than a preset code length threshold. When the maximum code length is greater than the preset code length threshold, it represents the abnormal condition of mechanical stripping or slag inclusion in the small steel blank. In this embodiment, The preset code length threshold is 30 (pixel units), but embodiments of the present invention are not limited thereto.
由上述說明可知,本實施例係利用二值化影像的碼長大小來判斷小鋼胚是否有夾渣或機械剝片之異常狀態發生,此係因為銹皮之二值化影像包含大量的前景物件,當水平掃描線掃過銹皮之二值化影像時,其碼長通常不會大於其他異常狀態(例如機械剝片)的碼長,如第5a圖之表格所示。另外,小鋼胚剝片偵測方法500可更包含前述之夾渣判斷步驟210,以更進一步判斷小鋼胚是之異常狀況為夾渣或是機械剝片。It can be seen from the above description that the present embodiment uses the code length of the binarized image to determine whether the small steel embryo has an abnormal state of slag inclusion or mechanical peeling, because the binarized image of the scale contains a large amount of foreground. When the horizontal scan line sweeps over the binary image of the scale, the code length is usually no longer than the code length of other abnormal states (such as mechanical peeling), as shown in the table in Figure 5a. In addition, the small steel stripping detection method 500 may further include the foregoing slag determination step 210 to further determine whether the small steel embryo is abnormally slag or mechanically peeled.
雖然本發明已以數個實施例揭露如上,然其並非用以限定本發明,在本發明所屬技術領域中任何具有通常知識者,在不脫離本發明之精神和範圍內,當可作各種之更動與潤飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。While the invention has been described above in terms of several embodiments, it is not intended to limit the scope of the invention, and the invention may be practiced in various embodiments without departing from the spirit and scope of the invention. The scope of protection of the present invention is defined by the scope of the appended claims.
100‧‧‧小鋼胚剝片偵測方法100‧‧‧Small steel embryo stripping detection method
101‧‧‧前景物件101‧‧‧ Prospect objects
110‧‧‧影像擷取步驟110‧‧‧Image capture steps
120‧‧‧正規化步驟120‧‧‧ formalization steps
130‧‧‧二值化步驟130‧‧‧ Binarization steps
140‧‧‧面積計算步驟140‧‧‧ Area calculation steps
150‧‧‧排序步驟150‧‧‧Sorting steps
160‧‧‧差值計算步驟160‧‧‧Difference calculation steps
170‧‧‧選擇步驟170‧‧‧Selection steps
180‧‧‧較大物件面積值決定步驟180‧‧‧ Large object area value determination steps
182‧‧‧起始面積值決定步驟182‧‧‧ starting area value decision step
184‧‧‧決定步驟184‧‧‧Decision steps
190‧‧‧判斷步驟190‧‧‧ Judgment steps
200‧‧‧小鋼胚剝片偵測方法200‧‧‧Small steel embryo stripping detection method
210‧‧‧夾渣判斷步驟210‧‧‧Slag slag determination step
211‧‧‧碼長編碼步驟211‧‧‧ code length coding step
212‧‧‧加總步驟212‧‧‧Additional steps
213‧‧‧判斷步驟213‧‧‧ Judgment steps
300‧‧‧小鋼胚剝片偵測方法300‧‧‧Small steel embryo stripping detection method
340‧‧‧輪廓長度計算步驟340‧‧‧Contour length calculation steps
350‧‧‧平均計算步驟350‧‧‧Average calculation steps
360‧‧‧判斷步驟360‧‧‧ Judgment steps
400‧‧‧小鋼胚剝片偵測方法400‧‧‧Small steel embryo stripping detection method
411‧‧‧碼長編碼步驟411‧‧‧ code length coding step
412‧‧‧加總步驟412‧‧‧Additional steps
413‧‧‧判斷步驟413‧‧‧ judgment steps
500‧‧‧小鋼胚剝片偵測方法500‧‧‧Small steel embryo stripping detection method
511‧‧‧碼長編碼步驟511‧‧‧ code length coding step
512‧‧‧決定步驟512‧‧‧Decision steps
513‧‧‧判斷步驟513‧‧‧ judgment steps
L‧‧‧掃描線L‧‧‧ scan line
為讓本發明之上述和其他目的、特徵、和優點能更明顯易懂,上文特舉數個較佳實施例,並配合所附圖式,作詳細說明如下:第1a-1b圖係繪示根據本發明實施例之小鋼胚剝片偵測方法的流程示意圖。The above and other objects, features and advantages of the present invention will become more <RTIgt; A schematic flow chart of a method for detecting a small steel sheet strip according to an embodiment of the present invention.
第1c-1e圖係分別繪示根據本發明實施例之小鋼胚之二值化影像的示意圖。The 1c-1e diagram is a schematic diagram showing a binarized image of a small steel embryo according to an embodiment of the present invention.
第1f圖係繪示根據本發明實施例之較大物件面積值決 定步驟的流程示意圖。Figure 1f is a diagram showing the larger object area value according to an embodiment of the present invention. A schematic diagram of the process of the steps.
第1g圖係繪示根據本發明實施例之各種異常狀態之二值化影像之前幾大物件佔總面積的百分比。The 1g figure shows the percentage of the total area of several objects before the binarized image of various abnormal states according to an embodiment of the present invention.
第2a-2b圖係繪示根據本發明實施例之小鋼胚剝片偵測方法的流程示意圖。2a-2b is a schematic flow chart showing a method for detecting small steel sheet stripping according to an embodiment of the present invention.
第2c圖係繪示根據本發明實施例之夾渣判斷步驟的流程示意圖。2c is a schematic flow chart showing the slag determination step according to an embodiment of the present invention.
第2d圖係繪示根據本發明實施例之碼長編碼步驟沿著垂直方向進行掃描的示意圖。FIG. 2d is a schematic diagram showing scanning along the vertical direction according to the code length encoding step of the embodiment of the present invention.
第3圖係繪示本發明實施例之小鋼胚剝片偵測方法的流程示意圖。FIG. 3 is a schematic flow chart showing a method for detecting a small steel sheet peeling strip according to an embodiment of the present invention.
第4圖係繪示本發明實施例之小鋼胚剝片偵測方法的流程示意圖。FIG. 4 is a schematic flow chart showing a method for detecting a small steel piece peeling strip according to an embodiment of the present invention.
第4a圖係繪示根據本發明實施例之碼長編碼步驟沿著水平方向進行掃描的示意圖。Figure 4a is a schematic diagram showing scanning along the horizontal direction in accordance with the code length encoding step of the embodiment of the present invention.
第4b圖係繪示根據本發明實施例之各種異常狀態之二值化影像之碼長總量。Figure 4b is a diagram showing the total code length of the binarized image of various abnormal states according to an embodiment of the present invention.
第5圖係繪示本發明實施例之小鋼胚剝片偵測方法的流程示意圖。FIG. 5 is a schematic flow chart showing a method for detecting a small steel piece peeling strip according to an embodiment of the present invention.
第5a圖係繪示根據本發明實施例之各種異常狀態之二值化影像之最大碼長。Figure 5a is a diagram showing the maximum code length of a binarized image of various abnormal states according to an embodiment of the present invention.
300‧‧‧小鋼胚剝片偵測方法300‧‧‧Small steel embryo stripping detection method
110‧‧‧影像擷取步驟110‧‧‧Image capture steps
120‧‧‧正規化步驟120‧‧‧ formalization steps
130‧‧‧二值化步驟130‧‧‧ Binarization steps
340‧‧‧輪廓長度計算步驟340‧‧‧Contour length calculation steps
350‧‧‧平均計算步驟350‧‧‧Average calculation steps
360‧‧‧判斷步驟360‧‧‧ Judgment steps
Claims (10)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101119977A TWI447606B (en) | 2012-06-04 | 2012-06-04 | Method for detecting sliversof a billet |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
TW101119977A TWI447606B (en) | 2012-06-04 | 2012-06-04 | Method for detecting sliversof a billet |
Publications (2)
Publication Number | Publication Date |
---|---|
TW201351178A TW201351178A (en) | 2013-12-16 |
TWI447606B true TWI447606B (en) | 2014-08-01 |
Family
ID=50158023
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
TW101119977A TWI447606B (en) | 2012-06-04 | 2012-06-04 | Method for detecting sliversof a billet |
Country Status (1)
Country | Link |
---|---|
TW (1) | TWI447606B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI560446B (en) * | 2016-01-21 | 2016-12-01 | China Steel Corp |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN111311670B (en) * | 2020-02-19 | 2023-09-19 | 中冶赛迪信息技术(重庆)有限公司 | Cooling bed punching recognition method, system and equipment based on image recognition |
CN111724337B (en) * | 2020-03-05 | 2023-04-18 | 中冶赛迪信息技术(重庆)有限公司 | Cold bed top punching identification method and system, electronic equipment and medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5331178A (en) * | 1991-07-05 | 1994-07-19 | Kabushiki Kaisha Kobe Seiko Sho | Optical surface inspecting system for inspecting the surface of a rolling roll having mechanism for keeping clean a window through which a camera detects a condition of the rolling roll |
TW200628756A (en) * | 2005-02-02 | 2006-08-16 | China Steel Corp | Measuring system and methodology for profile of steel bloom |
US20090046923A1 (en) * | 2002-12-03 | 2009-02-19 | Tzyy-Shuh Chang | Apparatus and method for detecting surface defects on a workpiece such as a rolled/drawn metal bar |
TW201217080A (en) * | 2010-10-29 | 2012-05-01 | China Steel Corp | capable of detecting steel billet defect in real time and displaying detection results in order to determine the process stability and the features of steel grades |
-
2012
- 2012-06-04 TW TW101119977A patent/TWI447606B/en not_active IP Right Cessation
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5331178A (en) * | 1991-07-05 | 1994-07-19 | Kabushiki Kaisha Kobe Seiko Sho | Optical surface inspecting system for inspecting the surface of a rolling roll having mechanism for keeping clean a window through which a camera detects a condition of the rolling roll |
US20090046923A1 (en) * | 2002-12-03 | 2009-02-19 | Tzyy-Shuh Chang | Apparatus and method for detecting surface defects on a workpiece such as a rolled/drawn metal bar |
TW200628756A (en) * | 2005-02-02 | 2006-08-16 | China Steel Corp | Measuring system and methodology for profile of steel bloom |
TW201217080A (en) * | 2010-10-29 | 2012-05-01 | China Steel Corp | capable of detecting steel billet defect in real time and displaying detection results in order to determine the process stability and the features of steel grades |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
TWI560446B (en) * | 2016-01-21 | 2016-12-01 | China Steel Corp |
Also Published As
Publication number | Publication date |
---|---|
TW201351178A (en) | 2013-12-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN115239704B (en) | Accurate detection and repair method for wood surface defects | |
JP5421192B2 (en) | Crack detection method | |
CN107490582B (en) | Assembly line workpiece detection system | |
TWI447606B (en) | Method for detecting sliversof a billet | |
CN102136061A (en) | Method for automatically detecting, classifying and identifying defects of rectangular quartz wafer | |
CN103051872A (en) | Method for detecting conveyor belt deviation based on image edge extraction | |
JP5812705B2 (en) | Crack detection method | |
CN111753794B (en) | Fruit quality classification method, device, electronic equipment and readable storage medium | |
JP4488308B2 (en) | Method for detecting cracks on the surface of structures | |
JP4870016B2 (en) | Crack detection method | |
JP5520005B2 (en) | Wood defect detection apparatus and method | |
CN116703911A (en) | LED lamp production quality detecting system | |
CN107037053B (en) | Apparatus and method for detecting spot defects | |
CN112561875A (en) | Photovoltaic cell panel coarse grid detection method based on artificial intelligence | |
CN115493843A (en) | Quality monitoring method and equipment based on bearing retainer | |
JP2014020926A (en) | Surface defect inspection device and surface defect inspection method | |
KR101272005B1 (en) | Apparatus and method for detecting surface defects of hot billet | |
CN107993223A (en) | Scratch detection method, apparatus and electronic equipment | |
JP5849397B2 (en) | Surface defect detection device and surface defect detection method | |
KR101562988B1 (en) | Apparatus and method for detecting surface defects of hot billet | |
JP5498109B2 (en) | Defect detection apparatus and defect detection method | |
KR101543896B1 (en) | Apparatus and method of detecting scap defect | |
KR101360653B1 (en) | Apparatus for detecting seem crack of rolled steel | |
JP5452035B2 (en) | Defect inspection method and defect inspection apparatus | |
TW201532695A (en) | Error detection method for detecting a steel strip tail |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
MM4A | Annulment or lapse of patent due to non-payment of fees |