TWI689723B - Method for extracting dent on surface of object - Google Patents

Method for extracting dent on surface of object Download PDF

Info

Publication number
TWI689723B
TWI689723B TW108104380A TW108104380A TWI689723B TW I689723 B TWI689723 B TW I689723B TW 108104380 A TW108104380 A TW 108104380A TW 108104380 A TW108104380 A TW 108104380A TW I689723 B TWI689723 B TW I689723B
Authority
TW
Taiwan
Prior art keywords
gravure
block
target block
control device
blocks
Prior art date
Application number
TW108104380A
Other languages
Chinese (zh)
Other versions
TW202030477A (en
Inventor
吳東穎
蘇育德
Original Assignee
中國鋼鐵股份有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 中國鋼鐵股份有限公司 filed Critical 中國鋼鐵股份有限公司
Priority to TW108104380A priority Critical patent/TWI689723B/en
Application granted granted Critical
Publication of TWI689723B publication Critical patent/TWI689723B/en
Publication of TW202030477A publication Critical patent/TW202030477A/en

Links

Images

Landscapes

  • Image Analysis (AREA)

Abstract

A method for extracting a dent on a surface of an object is disclosed and includes steps of: scanning an object; generating an image based on a scan result; dividing the image into a plurality of blocks in two dimensional directions; setting each of the blocks as a target block adjacent to a plurality of peripheral blocks, and calculating inter-block similarities between the target block and each of the peripheral blocks; generating a plurality of inter-block differences according to all inter-block similarities of each target block and a difference transformation function, and calculating a dent coefficient of each target block based on the inter-block differences and a number of the peripheral blocks; and extracting at least one target block as at least one dent block based on the dent coefficient of each target block.

Description

提取物件表面凹印的方法 Method for extracting gravure on surface of object

本發明係關於一種影像處理方法,特別是關於一種提取物件表面凹印的方法。 The invention relates to an image processing method, in particular to a method for extracting gravure on the surface of an object.

在物件生產流程中,如果不便使用標籤作為識別物,通常會以高壓或高溫方式在物件表面留下凹印(如印字或圖案等),以利識別不同物件。此外,由於人工識別效率低且錯誤率不佳,故逐漸發展出自動識別系統。 In the production process of objects, if it is inconvenient to use labels as identification objects, gravure (such as printing or patterns, etc.) is usually left on the surface of the objects under high pressure or high temperature to facilitate identification of different objects. In addition, due to the low efficiency of manual recognition and poor error rate, an automatic recognition system has been gradually developed.

以鋼胚表面的凹印字元為例,習知鋼胚三維表面掃描方法係以三角雷射光學量測方法掃描出鋼胚截面起伏的影像,利用起伏變化資訊辨識鋼胚表面的凹印區域,習知方法是以測量所得的資料產生全域統計直方圖,利用直方圖找出凹印所在處的數值聚集區域,推測凹印所在處的偵測數值分布範圍,提取影像中屬於此數值範圍的像素區域進行分析。 Taking the gravure characters on the surface of the steel embryo as an example, the conventional three-dimensional surface scanning method of the steel embryo scans the undulating image of the cross section of the steel embryo with a triangular laser optical measurement method, and uses the information of the undulation to identify the gravure area on the surface of the steel embryo. The known method is to generate a global statistical histogram from the measured data, use the histogram to find the numerical aggregation area where the gravure is located, infer the distribution range of the detected value where the gravure is located, and extract the pixel area that belongs to this numerical range in the image For analysis.

然而,由於統計直方圖不利於平行運算,故上述習知方法不僅耗時且可靠度不足;再者,因為鋼胚自然斷面有不同表面凹凸分佈,若在截面傾斜情況下,使用全域直方圖會使凹印區域與全域的表面數值混雜,不利於突顯凹印區域的數值叢聚性,造成無法有效提取凹印字元區域。 However, because the statistical histogram is not conducive to parallel operations, the above-mentioned conventional methods are not only time-consuming and lack of reliability; in addition, because the natural cross-section of the steel embryo has different surface uneven distribution, if the section is inclined, use the global histogram It will make the gravure area and the surface value of the whole area mixed, which is not conducive to highlight the numerical clustering of the gravure area, resulting in the inability to effectively extract the gravure character area.

有鑑於此,有必要解決習知技術所存在的問題。 In view of this, it is necessary to solve the problems of the conventional technology.

本發明之一目的在於提供一種提取物件表面凹印的方法,其係利用局部區域特徵間的差異性與關聯性尋找凹印可能出現位置,以便去除全域變化對區域特徵的影響,進而提升凹印提取的有效性。 One object of the present invention is to provide a method for extracting gravure on the surface of an object, which uses the differences and correlations between local region features to find possible locations of the gravure, so as to remove the influence of global changes on the regional features, and thereby improve the gravure Effectiveness of extraction.

為達上述之目的,本發明一實施例提供一種提取物件表面凹印的方法,該方法可由一電子系統執行,該電子系統可包括一控制裝置、 一儲存裝置及一掃描裝置,該控制裝置電性連接該儲存裝置及該掃描裝置,該儲存裝置儲存能使該控制裝置執行動作的至少一指令及執行過程所需的資料與所產生的資料,該方法可包括:一掃描步驟,由該控制裝置致使該掃描裝置對一物件進行掃描;一成像步驟,由該控制裝置或該掃描裝置依據一掃描結果產生一影像;一分區步驟,由該控制裝置將該影像沿二維方向分割為數個區塊;一分析步驟,由該控制裝置對每個區塊分別進行:將該區塊設為一目標區塊,該目標區塊鄰接數個外圍區塊,計算該目標區塊與每個外圍區塊之間的一塊間相似度;一轉換步驟,由該控制裝置對每個目標區塊分別進行:將每個目標區塊的所有塊間相似度分別帶入一差異轉換函數,以產生每個目標區塊的數個塊間差異度,依據該些塊間差異度產生一合計值,將該合計值依據該些外圍區塊的一數量計算一平均值,作為每個目標區塊的一凹印係數;及一取印步驟,由該控制裝置依據每個目標區塊的凹印係數提取至少一目標區塊作為至少一凹印區塊。 To achieve the above objective, an embodiment of the present invention provides a method for extracting gravure on the surface of an object. The method may be performed by an electronic system, which may include a control device, A storage device and a scanning device, the control device is electrically connected to the storage device and the scanning device, the storage device stores at least one instruction and data required to execute the process and the generated data to enable the control device to perform actions, The method may include: a scanning step, which causes the control device to cause the scanning device to scan an object; an imaging step, which generates an image based on a scanning result by the control device or the scanning device; and a partition step, which is controlled by The device divides the image into two blocks in two dimensions; an analysis step is performed by the control device for each block: the block is set as a target block, and the target block is adjacent to several peripheral areas Block, calculate the similarity between the target block and each peripheral block; a conversion step is performed by the control device for each target block: the similarity between all blocks of each target block Bring in a difference conversion function to generate the difference between several blocks of each target block, generate a total value according to the difference between the blocks, and calculate the total value according to a number of the peripheral blocks The average value serves as a gravure coefficient for each target block; and a printing step, the control device extracts at least one target block as at least one gravure block according to the gravure coefficient of each target block.

在本發明之一些實施例中,在該轉換步驟,由該控制裝置依據該些塊間差異度與該目標區塊的一印區機率的乘積產生該合計值。 In some embodiments of the present invention, in the conversion step, the control device generates the total value according to the product of the difference between the blocks and the probability of an area of the target block.

在本發明之一些實施例中,在該轉換步驟,該印區機率係依據多個影像中的已知凹印區域與已知非凹印區域以一支撐向量機演算法計算所得。 In some embodiments of the present invention, in the conversion step, the printing area probability is calculated by a support vector machine algorithm based on the known gravure areas and known non-gravure areas in the multiple images.

在本發明之一些實施例中,在該轉換步驟,該印區機率係依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一K近鄰演算法與一高斯模型計算所得。 In some embodiments of the present invention, in the conversion step, the printing area probability is based on a number of known gravure areas and a number of known non-gravure areas in a plurality of images using a K-nearest neighbor algorithm and a Gaussian Calculated by the model.

在本發明之一些實施例中,在該轉換步驟,該印區機率係依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一卷積深度學習網路演算法計算所得。 In some embodiments of the present invention, in the conversion step, the printing area probability is based on a number of known gravure areas and a number of known non-gravure areas in a plurality of images with a convolutional deep learning network algorithm Calculated.

在本發明之一些實施例中,在該分析步驟及該轉換步驟,該控制裝置依據該目標區塊的順序計算每個目標區塊的塊間相似度及塊間差異度。 In some embodiments of the present invention, in the analysis step and the conversion step, the control device calculates the inter-block similarity and inter-block difference of each target block according to the order of the target block.

在本發明之一些實施例中,在該分析步驟及該轉換步驟,該控制裝置平行計算每個目標區塊的塊間相似度及塊間差異度。 In some embodiments of the present invention, in the analysis step and the conversion step, the control device calculates the inter-block similarity and inter-block difference of each target block in parallel.

在本發明之一些實施例中,在該分區步驟,該控制裝置對每個區塊給予一個二維座標;及在該取印步驟,該控制裝置依據每個目標區塊的凹印係數及該二維座標提取至少一目標區塊作為至少一凹印區塊,並在該影像中產生至少一標記。 In some embodiments of the present invention, in the partitioning step, the control device gives a two-dimensional coordinate to each block; and in the printing step, the control device is based on the gravure coefficient of each target block and the The two-dimensional coordinates extract at least one target block as at least one gravure block, and generate at least one mark in the image.

本發明藉由上述步驟,可以自動地找出胚料(如鋼胚)表面的凹印出現機率高的部分組成凹印區域,以便進一步利用文字辨識等技術取得該凹印區域的文字或圖案內容,本發明還可進行平行運算,具有正確性佳及處理效率高等功效,相較於習知方法,可以提升胚料辨識效率並降低人眼辨識誤差。 Through the above steps, the present invention can automatically find the parts with high probability of gravure on the surface of the blank (such as steel embryo) to form the gravure area, so as to further obtain the text or pattern content of the gravure area by using text recognition technology The present invention can also perform parallel operations, which has the effects of good accuracy and high processing efficiency. Compared with the conventional methods, it can improve the efficiency of blank identification and reduce the error of human eye identification.

B‧‧‧區塊 Block B‧‧‧

B1‧‧‧目標區塊 B1‧‧‧ target block

B2‧‧‧外圍區塊 B2‧‧‧Outer block

S1‧‧‧掃描步驟 S1‧‧‧Scanning steps

S2‧‧‧成像步驟 S2‧‧‧Imaging steps

S3‧‧‧分區步驟 S3‧‧‧Partition steps

S4‧‧‧分析步驟 S4‧‧‧Analysis steps

S5‧‧‧轉換步驟 S5‧‧‧Conversion steps

S6‧‧‧取印步驟 S6‧‧‧Printing steps

第1圖:本發明一實施例之提取物件表面凹印的方法之流程示意圖。 Figure 1: Schematic diagram of a method for extracting gravure on the surface of an object according to an embodiment of the invention.

第2圖:本發明一實施例之區塊示意圖。 Figure 2: Block diagram of an embodiment of the invention.

第3圖:本發明一實施例之目標區塊與外圍區塊的示意圖。 FIG. 3 is a schematic diagram of a target block and a peripheral block according to an embodiment of the invention.

第4a圖:本發明一實施例之實驗過程影像(一)。 Figure 4a: Experimental process image (1) of an embodiment of the present invention.

第4b圖:本發明一實施例之實驗過程影像(二)。 Figure 4b: Experimental process image (2) of an embodiment of the present invention.

第4c圖:本發明一實施例之實驗過程影像(三)。 Figure 4c: Experimental process image (3) of an embodiment of the present invention.

第4d圖:本發明一實施例之實驗過程影像(四)。 Fig. 4d: Experimental process image (4) of an embodiment of the present invention.

第4e圖:本發明一實施例之實驗過程影像(五)。 Figure 4e: Experimental process image (5) of an embodiment of the present invention.

第4f圖:本發明一實施例之實驗過程影像(六)。 Figure 4f: Experimental process image (6) of an embodiment of the present invention.

為了讓本發明之上述及其他目的、特徵、優點能更明顯易懂,下文將特舉本發明較佳實施例,並配合所附圖式,作詳細說明如下。再者,本發明所提到的方向用語,例如上、下、頂、底、前、後、左、右、內、外、側面、周圍、中央、水平、橫向、垂直、縱向、軸向、徑向、最上層或最下層等,僅是參考附加圖式的方向。因此,使用的方向用語是用以說明及理解本發明,而非用以限制本發明。 In order to make the above and other objects, features, and advantages of the present invention more comprehensible, the preferred embodiments of the present invention will be specifically described below in conjunction with the accompanying drawings, which will be described in detail below. Furthermore, the terms of direction mentioned in the present invention, such as up, down, top, bottom, front, back, left, right, inner, outer, side, surrounding, center, horizontal, horizontal, vertical, longitudinal, axial, The radial direction, the uppermost layer or the lowermost layer, etc., are only the directions referring to the attached drawings. Therefore, the directional terminology is used to illustrate and understand the present invention, not to limit the present invention.

請參照第1圖所示,本發明一實施例之提取物件表面凹印的方法可包括一掃描步驟S1、一成像步驟S2、一分區步驟S3、一分析步驟 S4、一轉換步驟S5及一取印步驟S6。 Referring to FIG. 1, the method for extracting gravure on the surface of an object according to an embodiment of the present invention may include a scanning step S1, an imaging step S2, a partitioning step S3, and an analysis step S4, a conversion step S5 and a printing step S6.

具體地,該方法實施例可由一電子系統執行,例如:該電子系統可包括一控制裝置、一儲存裝置及一掃描裝置,該控制裝置可為具備資料處理功能的裝置,如微控制器、微處理器或特殊應用積體電路(ASIC)等;該儲存裝置可為具備資料儲存功能的裝置,如記憶體或資料庫等;該掃描裝置可為具影像攝取功能的裝置,如:三角雷射光學掃描器或結構光形式的三維掃描裝置等,該控制裝置電性連接該儲存裝置及該掃描裝置,該儲存裝置儲存能使該控制裝置執行動作的至少一指令及執行過程所需的資料與所產生的資料。其中,該控制裝置、儲存裝置及掃描裝置的運作方式係本發明所屬技術領域中具有通常知識者可以理解,在此容不贅述。 Specifically, the method embodiment can be executed by an electronic system. For example, the electronic system can include a control device, a storage device, and a scanning device. The control device can be a device with data processing functions, such as a microcontroller or a microcomputer. Processor or special application integrated circuit (ASIC), etc.; the storage device can be a device with data storage function, such as memory or database; the scanning device can be a device with image capture function, such as: triangular laser An optical scanner or a three-dimensional scanning device in the form of structured light, etc., the control device is electrically connected to the storage device and the scanning device, and the storage device stores at least one instruction and data necessary for the execution process of the control device The information generated. The operation modes of the control device, the storage device, and the scanning device are understood by those with ordinary knowledge in the technical field to which the present invention belongs, and will not be repeated here.

如第1圖所示,該掃描步驟S1可由該控制裝置致使該掃描裝置對一物件(例如:可為鋼胚或模胚等胚材)進行掃描。後續僅以鋼胚為例說明,惟不以此為限;例如:可利用該掃描裝置對該物件進行多維度掃描,並將結果傳送到該控制裝置。藉此,可由該掃描裝置取得具備該物件之表面特徵的資料。 As shown in FIG. 1, the scanning step S1 can be caused by the control device to cause the scanning device to scan an object (for example, a blank material such as a steel embryo or a mold embryo). The following only uses the steel embryo as an example, but not limited to this; for example, the scanning device can be used to perform multi-dimensional scanning on the object, and the result is transmitted to the control device. In this way, the scanning device can obtain data with the surface characteristics of the object.

如第1圖所示,該成像步驟S2可由該控制裝置或該掃描裝置依據一掃描結果產生一影像,例如:該控制裝置可將掃描後產生的資料進行二維排列,以產生該影像,但不以此為限,該影像也可由該掃描裝置產生後傳送到該控制裝置。藉此,可以依據該物件之表面特徵的資料取得該物件的一表面影像,作為後續提取該物件上的一凹印(例如:鋼胚上的印字或圖案等)之依據。 As shown in FIG. 1, the imaging step S2 can be used by the control device or the scanning device to generate an image according to a scanning result. For example, the control device can arrange the two-dimensional data after scanning to generate the image, but Not limited to this, the image can also be generated by the scanning device and sent to the control device. In this way, a surface image of the object can be obtained based on the data of the surface characteristics of the object, which can be used as a basis for subsequent extraction of a gravure (such as printing or patterns on the steel embryo) on the object.

如第1及2圖所示,該分區步驟S3可由該控制裝置將該影像沿二維方向分割為數個區塊B,例如:該區塊B為含括許多像素的區塊。藉此,可將整個影像係分為多個局部特徵,以利進行後續分析。其中,該控制裝置可對每個區塊B給予一個二維座標,如:(x,y)等。 As shown in FIGS. 1 and 2, in the partitioning step S3, the control device can divide the image into two blocks B along the two-dimensional direction. For example, the block B is a block including many pixels. In this way, the entire image system can be divided into multiple local features to facilitate subsequent analysis. Among them, the control device can give each block B a two-dimensional coordinate, such as: (x, y).

如第1及3圖所示,該分析步驟S4可由該控制裝置對每個區塊B分別進行:將該區塊B設為一目標區塊B1,每個目標區塊B1鄰接數個外圍區塊B2,計算該目標區塊B1與每個外圍區塊B2之間的一塊間相似度Sim(x,y),該塊間相似度可以表示二相鄰區塊間具關聯性的程度,例 如:不具凹印的區塊間彼此的塊間相似度(關聯性)高。 As shown in FIGS. 1 and 3, the analysis step S4 can be performed by the control device for each block B: the block B is set as a target block B1, and each target block B1 is adjacent to several peripheral areas Block B2, calculate the inter-block similarity Sim ( x,y ) between the target block B1 and each peripheral block B2, the inter-block similarity can indicate the degree of correlation between two adjacent blocks, for example : The inter-block similarity (correlation) between blocks without gravure is high.

舉例而言,如第3圖所示,該外圍區塊B2為在該目標區塊B1周圍,例如:與該目標區塊B1的任一邊緣或角落連接的區塊B,通常每個目標區塊B1與8個方向的外圍區塊B2鄰接,但位於影像邊緣處的目標區塊B1鄰接外圍區塊B2則少於八個,例如:3或5個;該塊間相似度Sim(x,y)的計算方式可為一互相關(Cross correlation)函數或一空間距離函數(例如:|x-y|/sqrt(|x-y|)|,x及y為二維座標),其計算方式係所屬技術領域中具有通常知識者可以理解,在此容不贅述。。 For example, as shown in FIG. 3, the peripheral block B2 is around the target block B1, for example: the block B connected to any edge or corner of the target block B1, usually each target area The block B1 is adjacent to the peripheral block B2 in 8 directions, but the target block B1 located at the edge of the image is less than eight adjacent to the peripheral block B2, for example: 3 or 5; the similarity between the blocks Sim ( x, y ) can be calculated as a cross correlation function or a spatial distance function (for example: |xy|/sqrt(|xy|)|, x and y are two-dimensional coordinates), the calculation method is the technology Those with ordinary knowledge in the field can understand, so I won't go into details here. .

如第1圖所示,在一些實施例中,在該分析步驟S4中,該控制裝置可依序或平行計算每個目標區塊的該些塊間相似度。 As shown in FIG. 1, in some embodiments, in the analysis step S4, the control device may sequentially or in parallel calculate the similarity between the blocks of each target block.

如第1及3圖所示,該轉換步驟S5可由該控制裝置對每個目標區塊B1分別進行:將每個目標區塊B1的所有塊間相似度Sim(x,y)分別帶入一差異轉換函數G(.),以產生每個目標區塊B1的數個塊間差異度G(Sim(x,y)),依據該些塊間差異度G(Sim(x,y))產生一合計值Σ G(Sim(x,y)),將該合計值依據該些外圍區塊的一數量(例如:N=8個)計算一平均值,作為每個目標區塊B1的一凹印係數,如下所示:

Figure 108104380-A0101-12-0005-14
其中,P(x,y)為二維座標(x,y)的目標區塊B1的凹印係數。 As shown in Figures 1 and 3, the conversion step S5 can be performed by the control device for each target block B1: the similarity Sim ( x,y ) between all blocks of each target block B1 is brought into a The difference conversion function G (.) is used to generate the inter-block difference degree G ( Sim ( x,y )) of each target block B1 according to the inter-block difference degree G ( Sim ( x,y )) A total value Σ G ( Sim ( x,y )), calculate the average value based on a number of the peripheral blocks (for example: N=8), as a concave of each target block B1 The coefficient is printed as follows:
Figure 108104380-A0101-12-0005-14
Where, P(x, y) is the gravure coefficient of the target block B1 with two-dimensional coordinates (x, y).

舉例而言,在該轉換步驟S5,該差異轉換函數G(.)是可採用反向轉換或正規化的演算法進行計算,例如:可採用反函數或反sigmoid函數等,用來將該目標區塊B1與周圍區塊之間的塊間相似度轉換成區塊間的塊間差異度,該塊間差異度與區塊間出現凹印的程度呈正相關。詳言之,由於在一影像中,區塊間具有凹印與不具凹印的特性相反,例如:不具凹印的區塊間的塊間相似度高(即差異度低),如區塊間的塊間差異度低,則該處區塊出現凹印的可能性低;反之,如區塊間的塊間差異度高,則該處區塊出現凹印的可能性高。因此,該差異轉換函數G(.)計算結果的值(即塊間差異度)越低代表塊間相似度(區塊間具關聯性的程度)越高(即區塊間越有關聯),例如:位置同為非凹印區塊;另一方面,該差異轉換函數G(.)的值(即 塊間差異度)越高代表塊間相似度(區塊間具關聯性的程度)越低(即區塊間越無關聯),例如:可能出現凹印區塊。 For example, in the conversion step S5, the difference conversion function G (.) can be calculated using an inverse conversion or a normalized algorithm, for example: an inverse function or an inverse sigmoid function can be used to target The inter-block similarity between the block B1 and the surrounding blocks is converted into the inter-block difference between the blocks, and the inter-block difference is positively correlated with the degree of gravure between the blocks. In detail, since in an image, the characteristics of gravure between blocks are the opposite of those without gravure, for example, the similarity between blocks without gravure is high (ie, the difference is low), such as between blocks If the difference between blocks is low, the probability of gravure printing is low. On the contrary, if the difference between blocks is high, the possibility of gravure printing is high. Therefore, the lower the value of the difference conversion function G (.) calculation result (that is, the degree of difference between blocks) represents the higher the degree of similarity between blocks (the degree of correlation between blocks) (that is, the more related between blocks), For example: the position is also a non-gravure block; on the other hand, the higher the value of the difference conversion function G (.) (that is, the degree of difference between blocks) represents the similarity between blocks (the degree of correlation between blocks) Low (that is, the more unrelated the blocks are), for example: gravure blocks may appear.

在一實施例中,該控制裝置還可進一步依據該目標區塊B1的塊間差異度G(Sim(x,y))與該目標區塊B1的一印區機率V(x,y)的乘積產生該合計值Σ G(Sim(x,y))×V(x,y),據此,該凹印係數將對應如下所示:

Figure 108104380-A0101-12-0006-2
其中,該印區機率V(x,y)為收集具有凹印的大量影像後,對該些影像中的凹印位置進行統計,而產生凹印在該些影像中的不同位置發生的機率,可用於進一步提升後續成功找到凹印的準確度;另,由於可能出現凹印區塊的區塊間特性為該塊間差異度高(即塊間相似度低),因此,可僅採用該塊間差異度高(即塊間相似度低)處的區塊進一步進行上述印區機率的乘積計算,無須將所有區塊與印區機率進行計算,以利有效減少數據運算量。以下舉例說明該印區機率的多個實施態樣,惟不以此為限, 應被理解的是,該印區機率可依據多個影像中的已知凹印區域與已知非凹印區域以一支撐向量機(Support Vector Machine)演算法計算所得,例如:可事先收集多個具有凹印字區的影像,如:訓練一支撐向量機,可以得到一分類器,用以計算其屬於其中一類的比率。 In an embodiment, the control device can further be based on the difference G ( Sim ( x,y )) between the blocks of the target block B1 and the probability V ( x,y ) of a printing area of the target block B1 The product produces the total value Σ G ( Sim ( x,y ))× V ( x,y ), according to which, the gravure coefficient will correspond to the following:
Figure 108104380-A0101-12-0006-2
Among them, the printing area probability V ( x, y ) is the probability of occurrence of gravure printing at different positions in the images after collecting a large number of images with gravure printing and counting the gravure printing positions in the images, It can be used to further improve the accuracy of subsequent successful finding of gravure; in addition, since the inter-block characteristics of the gravure block may be that the difference between the blocks is high (that is, the similarity between blocks is low), therefore, only the block can be used The blocks at high inter-block differences (that is, low inter-block similarity) are further subjected to the above-mentioned calculation of the product probability of the printing area, and it is not necessary to calculate the probability of all the blocks and the printing area, so as to effectively reduce the amount of data calculation. The following examples illustrate various implementations of the printing area probability, but not limited to this. It should be understood that the printing area probability can be based on known gravure areas and known non-gravure areas in multiple images Calculated by a support vector machine (Support Vector Machine) algorithm, for example: multiple images with gravure areas can be collected in advance, such as: training a support vector machine, you can get a classifier to calculate which belongs to it A type of ratio.

應被理解的是,該印區機率(如出現印字的機率等)還可依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一K近鄰(K-nearest neighborhood)演算法與一高斯模型(Gaussian model)計算所得,如:將這些印字區域和非印字區域散佈在空間,當一樣本進入,可以計算其週邊和其最近的k個樣本點,當最近樣本點屬於其中一類較多,則就屬於那一類,然後再使用高斯分佈去計算屬於這類的機率數值。 It should be understood that the probability of the printing area (such as the probability of printing) can also be based on a number of known gravure areas and a number of known non-gravure areas in a plurality of images with a K-nearest neighbor (K-nearest neighborhood algorithm and a Gaussian model (Gaussian model) calculation, such as: these printed areas and non-printed areas are scattered in space, when a sample enters, you can calculate the surrounding and its nearest k sample points, when the most recent sample The points belong to one of the more categories, then belong to that category, and then use the Gaussian distribution to calculate the probability value of this category.

應被理解的是,該印區機率還可依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一卷積深度學習網路(Convolutional neural network)演算法計算所得,如:利用大量資料,訓練一深度學習網路進行分類,即可得到一網絡具分辨是否為印字區域資料之能力。 It should be understood that the printing area probability can also be calculated by a convolutional neural network algorithm based on several known gravure areas and several known non-gravure areas in several images The results, such as: using a large amount of data and training a deep learning network for classification, can obtain a network with the ability to distinguish whether it is printing area data.

如第1圖所示,該取印步驟S6可由該控制裝置依據每個目 標區塊的凹印係數提取至少一目標區塊作為至少一凹印區塊,例如:提取該凹印係數大於一門檻值(如0.5至0.9之間的數值)的目標區塊作為該凹印區塊。 As shown in Figure 1, the printing step S6 can be performed by the control device according to each target The gravure coefficient of the target block extracts at least one target block as at least one gravure block, for example: extracts the target block whose gravure coefficient is greater than a threshold (such as a value between 0.5 and 0.9) as the gravure Block.

在一實施例中,如第1及3圖所示,在該取印步驟S6,該控制裝置可依據每個目標區塊B1的凹印係數及該二維座標提取至少一目標區塊B1作為至少一凹印區塊,並在該影像中產生至少一標記,如各式框線、各式叉號或其他符號,以利使用者進行識別。 In one embodiment, as shown in FIGS. 1 and 3, in the fetching step S6, the control device may extract at least one target block B1 as the target block B1 according to the gravure coefficient of each target block B1 and the two-dimensional coordinates At least one gravure block, and at least one mark is generated in the image, such as various borders, various crosses, or other symbols, so as to facilitate user identification.

以下舉例說明本發明上述實施例的實驗過程,以在鋼胚上的凹印文字為例,惟不以此為限。在執行該掃描步驟、成像步驟、分區步驟、分析步驟、轉換步驟及取印步驟過程中,可取得一示例影像的局部區塊的差異轉換函數G(Sim(x,y))的值,如表一所示。 The following is an example to illustrate the experimental process of the above embodiment of the present invention, taking the gravure text on the steel embryo as an example, but not limited thereto. During the execution of the scanning step, imaging step, partitioning step, analysis step, conversion step, and printing step, the value of the difference conversion function G ( Sim ( x,y )) of the local block of an example image can be obtained, such as Table 1 shows.

Figure 108104380-A0101-12-0007-3
Figure 108104380-A0101-12-0007-3

舉例而言,如第4a圖所示,在一張影像中對應示出可能的凹印區塊(如圖中以粗線框出的多個區塊的區域,G(Sim(x,y))高(即低關聯性(即該塊間相似度低))的區塊。接著,如第4b圖所示,還可使用簡單影像處理方法去除“凹印出現可能性低”的區塊,例如:未與任何區塊連接的單獨區塊(如圖中以實線交叉符號“╳”標示的區塊)。接著,如第4c圖所示,如使用上述無印區機率V(x,y)的實施例,還可使用幾何外形判斷是否可能為凹印區塊(如在圖中以虛線框出的區塊),如果區塊整體過大或過小皆屬於應排除的對象。如第4d圖所示,僅標示出二區塊的G(Sim(x,y))=0.5127、0.3874為例,其餘區塊的G(Sim(x,y))函數值可參考表一所示;如 使用上述有印區機率V(x,y)的實施例,還可僅將取得低關聯性(即該塊間相似度低、該塊間差異度高)的區塊乘上該印區機率V(x,y),不需要計算整張圖所有區塊之V(x,y),從而可以減少數據運算量,該印區機率V(x,y)過小(如低於一門檻值)的區塊(如第4d圖所示的V(x,y)=0.2106可以考慮排除作為凹印區域。從而,如第4e圖所示,還可再進一步排除一些印區機率V(x,y)過小而考慮排除作為凹印區域的區塊(如圖中以虛線交叉符號“╳”標示的區塊)。最後,如第4f圖所示,可取得至少一凹印區塊(如圖中以虛線框出的區域內排除虛線交叉符號的區塊)。 For example, as shown in Fig. 4a, corresponding gravure blocks are shown in one image (the area of multiple blocks framed by thick lines in the figure, G ( Sim ( x,y ) ) High (that is, low correlation (that is, the similarity between the blocks is low)). Then, as shown in Figure 4b, a simple image processing method can also be used to remove the "low probability of occurrence of gravure" blocks, For example: a single block that is not connected to any block (as shown in the block marked with a solid cross "╳"). Then, as shown in Figure 4c, if the probability of using the above unprinted area V ( x,y ), the geometric shape can also be used to determine whether it is possible to be a gravure block (such as a block framed by a dotted line in the figure), if the block is too large or too small, it belongs to the object to be excluded. As shown in Figure 4d As shown, only the G ( Sim ( x,y )) = 0.5127, 0.3874 of the second block is marked as an example, and the G ( Sim ( x,y )) function value of the remaining blocks can refer to Table 1; if used In the above embodiment with printing area probability V ( x, y ), only blocks with low correlation (that is, low similarity between blocks and high difference between blocks) may be multiplied by the printing area probability V ( x,y ), there is no need to calculate the V ( x,y ) of all blocks in the whole picture, which can reduce the amount of data calculation. The probability of the printing area V ( x,y ) is too small (such as below a threshold) Blocks ( V ( x,y )=0.2106 as shown in Figure 4d can be considered excluded as gravure areas. Therefore, as shown in Figure 4e, it can be further excluded that the probability of some printing areas V ( x,y ) is too small And consider excluding the block that is the gravure area (the block marked with a dotted cross "╳" in the figure). Finally, as shown in Figure 4f, at least one gravure block can be obtained (the dotted line in the figure) Exclude the blocks with dashed cross symbols in the framed area).

此外,由於該凹印區塊通常會有叢聚性,亦可使用此特性以幾何方式判定多個區塊中的哪個凹印區塊為印字區域,例如:單一區塊為印字區域的機率較低,可予以排除。 In addition, since the gravure block usually has clustering, this feature can also be used to geometrically determine which gravure block in a plurality of blocks is the printing area, for example: a single block is more likely to be a printing area Low, can be excluded.

本發明上述實施例藉由上述步驟,可以自動地找出胚料(如鋼胚)表面的凹印出現機率高的部分組成凹印區域,以便進一步利用文字辨識等技術取得該凹印區域的文字或圖案內容,本發明上述實施例還可進行平行運算,具有正確性佳及處理效率高等功效,相較於習知方法,可以提升胚料辨識效率並降低人眼辨識誤差。 Through the above steps, the above embodiment of the present invention can automatically find the parts with high probability of gravure on the surface of the blank (such as steel embryo) to form the gravure area, so as to further obtain the characters of the gravure area by using text recognition technology Or the content of the pattern, the above embodiment of the present invention can also perform parallel operations, which has the effects of good accuracy and high processing efficiency. Compared with the conventional method, it can improve the efficiency of blank recognition and reduce the error of human eye recognition.

雖然本發明已以較佳實施例揭露,然其並非用以限制本發明,任何熟習此項技藝之人士,在不脫離本發明之精神和範圍內,當可作各種更動與修飾,因此本發明之保護範圍當視後附之申請專利範圍所界定者為準。 Although the present invention has been disclosed in preferred embodiments, it is not intended to limit the present invention. Anyone who is familiar with this skill can make various changes and modifications without departing from the spirit and scope of the present invention. Therefore, the present invention The scope of protection shall be as defined in the scope of the attached patent application.

S1‧‧‧掃描步驟 S1‧‧‧Scanning steps

S2‧‧‧成像步驟 S2‧‧‧Imaging steps

S3‧‧‧分區步驟 S3‧‧‧Partition steps

S4‧‧‧分析步驟 S4‧‧‧Analysis steps

S5‧‧‧轉換步驟 S5‧‧‧Conversion steps

S6‧‧‧取印步驟 S6‧‧‧Printing steps

Claims (8)

一種提取物件表面凹印的方法,該方法係由一電子系統執行,該電子系統包括一控制裝置、一儲存裝置及一掃描裝置,該控制裝置電性連接該儲存裝置及該掃描裝置,該儲存裝置儲存能使該控制裝置執行動作的至少一指令及執行過程所需的資料與所產生的資料,該方法包括:一掃描步驟,由該控制裝置致使該掃描裝置對一物件進行掃描;一成像步驟,由該控制裝置或該掃描裝置依據一掃描結果產生一影像;一分區步驟,由該控制裝置將該影像沿二維方向分割為數個區塊;一分析步驟,由該控制裝置對每個區塊分別進行:將該區塊設為一目標區塊,該目標區塊鄰接數個外圍區塊,計算該目標區塊與每個外圍區塊之間的一塊間相似度;一轉換步驟,由該控制裝置對每個目標區塊分別進行:將每個目標區塊的所有塊間相似度分別帶入一差異轉換函數,以產生每個目標區塊的數個塊間差異度,依據該些塊間差異度產生一合計值,將該合計值依據該些外圍區塊的一數量計算一平均值,作為每個目標區塊的一凹印係數;及一取印步驟,由該控制裝置依據每個目標區塊的凹印係數提取至少一目標區塊作為至少一凹印區塊。 A method for extracting gravure on the surface of an object. The method is executed by an electronic system. The electronic system includes a control device, a storage device, and a scanning device. The control device is electrically connected to the storage device and the scanning device. The device stores at least one instruction that enables the control device to perform actions and data and generated data required for the execution process. The method includes: a scanning step, the control device causes the scanning device to scan an object; an imaging Step, the control device or the scanning device generates an image based on a scan result; a partitioning step, the control device divides the image into two blocks in two dimensions; an analysis step, the control device The blocks are performed separately: the block is set as a target block, the target block is adjacent to several peripheral blocks, and the similarity between the target block and each peripheral block is calculated; a conversion step, Each target block is separately controlled by the control device: the similarity between all blocks of each target block is respectively introduced into a difference conversion function to generate the difference between several blocks of each target block, according to the The difference between the blocks generates a total value, which is calculated as an average value based on a number of the peripheral blocks, as a gravure coefficient for each target block; and a printing step, which is controlled by the control device Extract at least one target block as at least one gravure block according to the gravure coefficient of each target block. 如申請專利範圍第1項所述之提取物件表面凹印的方法,其中在該轉換步驟,由該控制裝置依據該些塊間差異度與該 目標區塊的一印區機率的乘積產生該合計值。 The method of extracting the surface gravure of the object as described in item 1 of the patent application scope, wherein in the conversion step, the control device is based on the difference between the blocks and the The product of the probability of a print area of the target block produces the total value. 如申請專利範圍第2項所述之提取物件表面凹印的方法,其中在該轉換步驟,該印區機率係依據多個影像中的已知凹印區域與已知非凹印區域以一支撐向量機演算法計算所得。 The method for extracting gravure on the surface of an object as described in item 2 of the patent application scope, wherein in the conversion step, the probability of the printing area is based on a known gravure area and a known non-gravure area in a plurality of images with a support Calculated by vector machine algorithm. 如申請專利範圍第2項所述之提取物件表面凹印的方法,其中在該轉換步驟,該印區機率係依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一K近鄰演算法與一高斯模型計算所得。 The method for extracting gravure on the surface of an object as described in item 2 of the scope of the patent application, wherein in the conversion step, the probability of the printing area is based on the number of known gravure areas and the number of known non-gravure printing in several images The area is calculated by a K-nearest neighbor algorithm and a Gaussian model. 如申請專利範圍第2項所述之提取物件表面凹印的方法,其中在該轉換步驟,該印區機率係依據數個影像中的數個已知凹印區域與數個已知非凹印區域以一卷積深度學習網路演算法計算所得。 The method for extracting gravure on the surface of an object as described in item 2 of the scope of the patent application, wherein in the conversion step, the probability of the printing area is based on the number of known gravure areas and the number of known non-gravure printing in several images The area is calculated by a convolutional deep learning network algorithm. 如申請專利範圍第1項所述之提取物件表面凹印的方法,其中在該分析步驟及該轉換步驟,該控制裝置依據該目標區塊的順序計算每個目標區塊的塊間相似度及塊間差異度。 The method for extracting the surface gravure of an object as described in item 1 of the scope of the patent application, wherein in the analysis step and the conversion step, the control device calculates the inter-block similarity of each target block according to the order of the target block and The degree of difference between blocks. 如申請專利範圍第1項所述之提取物件表面凹印的方法,其中在該分析步驟及該轉換步驟,該控制裝置平行計算每個目標區塊的塊間相似度及塊間差異度。 The method for extracting the surface gravure of an object as described in item 1 of the patent application scope, wherein in the analysis step and the conversion step, the control device calculates the inter-block similarity and inter-block difference of each target block in parallel. 如申請專利範圍第1項所述之提取物件表面凹印的方法,其中在該分區步驟,該控制裝置對每個區塊給予一個二維座標;及在該取印步驟,該控制裝置依據每個目標區塊的凹印係數及該二維座標提取至少一目標區塊作為至少一凹印區塊,並在該影像中產生至少一標記。 The method of extracting gravure on the surface of an object as described in item 1 of the scope of the patent application, wherein in the partitioning step, the control device gives a two-dimensional coordinate to each block; and in the fetching step, the control device The gravure coefficients and the two-dimensional coordinates of each target block extract at least one target block as at least one gravure block, and generate at least one mark in the image.
TW108104380A 2019-02-01 2019-02-01 Method for extracting dent on surface of object TWI689723B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
TW108104380A TWI689723B (en) 2019-02-01 2019-02-01 Method for extracting dent on surface of object

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
TW108104380A TWI689723B (en) 2019-02-01 2019-02-01 Method for extracting dent on surface of object

Publications (2)

Publication Number Publication Date
TWI689723B true TWI689723B (en) 2020-04-01
TW202030477A TW202030477A (en) 2020-08-16

Family

ID=71134174

Family Applications (1)

Application Number Title Priority Date Filing Date
TW108104380A TWI689723B (en) 2019-02-01 2019-02-01 Method for extracting dent on surface of object

Country Status (1)

Country Link
TW (1) TWI689723B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI785398B (en) * 2020-10-14 2022-12-01 中國鋼鐵股份有限公司 Method for reading information of steel slab and system for reading information of steel slab

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200617353A (en) * 2004-09-10 2006-06-01 Univ Okayama Method for detecting surface state of work and device for detecting surface state
TW200628756A (en) * 2005-02-02 2006-08-16 China Steel Corp Measuring system and methodology for profile of steel bloom
CN102792155A (en) * 2010-03-11 2012-11-21 杰富意钢铁株式会社 Surface inspection apparatus
TW201641931A (en) * 2015-05-21 2016-12-01 正修科技大學 Device for detecting a three-dimensional image of welds and method for detecting the same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TW200617353A (en) * 2004-09-10 2006-06-01 Univ Okayama Method for detecting surface state of work and device for detecting surface state
TW200628756A (en) * 2005-02-02 2006-08-16 China Steel Corp Measuring system and methodology for profile of steel bloom
CN102792155A (en) * 2010-03-11 2012-11-21 杰富意钢铁株式会社 Surface inspection apparatus
TW201641931A (en) * 2015-05-21 2016-12-01 正修科技大學 Device for detecting a three-dimensional image of welds and method for detecting the same

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI785398B (en) * 2020-10-14 2022-12-01 中國鋼鐵股份有限公司 Method for reading information of steel slab and system for reading information of steel slab

Also Published As

Publication number Publication date
TW202030477A (en) 2020-08-16

Similar Documents

Publication Publication Date Title
WO2018072233A1 (en) Method and system for vehicle tag detection and recognition based on selective search algorithm
Yi et al. Text extraction from scene images by character appearance and structure modeling
CN104517102B (en) Student classroom notice detection method and system
CN105740780B (en) Method and device for detecting living human face
CN109446895B (en) Pedestrian identification method based on human head features
CN106778586A (en) Offline handwriting signature verification method and system
CN106530297A (en) Object grabbing region positioning method based on point cloud registering
Wang et al. Head pose estimation with combined 2D SIFT and 3D HOG features
CN104850822B (en) Leaf identification method under simple background based on multi-feature fusion
JP6317725B2 (en) System and method for determining clutter in acquired images
CN104298995A (en) Three-dimensional face identification device and method based on three-dimensional point cloud
CN109584250B (en) Robust method for automatically dividing and marking visual region
CN112651323B (en) Chinese handwriting recognition method and system based on text line detection
JP2009163682A (en) Image discrimination device and program
CN106846399B (en) Method and device for acquiring visual gravity center of image
TWI689723B (en) Method for extracting dent on surface of object
WO2021031445A1 (en) Three-dimensional dynamic feature-based system and method for offline individual recognition by handwriting
CN108319961A (en) A kind of image ROI rapid detection methods based on local feature region
CN107368826A (en) Method and apparatus for text detection
CN111339974B (en) Method for identifying modern ceramics and ancient ceramics
CN107679467A (en) A kind of pedestrian's weight recognizer implementation method based on HSV and SDALF
Kavitha et al. A robust script identification system for historical Indian document images
JP6075238B2 (en) Character recognition device and character recognition method
JP4492258B2 (en) Character and figure recognition and inspection methods
CN104992161B (en) A kind of Hanzi component segmentation and structural determination method based on part identification