Steel coil number automatic positioning and identification method based on industrial vision

Through the automatic positioning and identification method of steel coil numbers based on industrial vision, DBnet and multi-scale polar coordinate conversion algorithms are combined with deep neural networks to solve the problem that traditional manual management methods cannot meet the needs of the steel industry and achieve high accuracy of steel coil numbers. Rate identification and inventory management improve production efficiency and accuracy.

CN118823786AActive Publication Date: 2024-10-22ANSTEEL AUTOMAION CO
View PDF 7 Cites 0 Cited by

Patent Information

Application Number
CN202410835304.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-26
Publication Date
2024-10-22
Estimated Expiration
2044-06-26

AI Technical Summary

Technical Problem

Traditional manual recording and management methods cannot meet the needs of the rapid development and expansion of production scale in the steel industry, making it difficult to accurately identify and manage steel coil numbers, affecting production efficiency and cost control.

Method used

The automatic positioning and identification method of steel coil numbers based on industrial vision is adopted, the DBnet algorithm and the multi-scale fusion polar coordinate conversion algorithm are used for coil number positioning and text recognition, and the deep neural network model CTPN is combined for feature extraction and text recognition to realize steel coils. Automatic identification and management of numbers.

Benefits of technology

It improves the identification accuracy of steel coil numbers, reduces manual error rates, improves production efficiency and accuracy of inventory management, and realizes automated management of steel coil inventory, with an accuracy rate of over 97%.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118823786A_ABST
    Figure CN118823786A_ABST
Patent Text Reader

Abstract

The invention relates to a steel coil number automatic positioning and identification method based on industrial vision. The method comprises the following steps: constructing a training sample set; obtaining the training sample set; steel coil number positioning and area extraction: positioning the steel coil number by using a segmented text detection method DBnet algorithm, calculating a minimum surrounding matrix of the steel coil number, rotating the surrounding matrix to a horizontal direction, and extracting text areas of different shapes in a natural scene; coordinate system conversion is conducted, specifically, the steel coil number is horizontally changed, and polar coordinate conversion is conducted through a multi-scale fusion polar coordinate conversion algorithm; steel coil number text recognition, wherein according to the coordinate conversion result, a CPTN depth model is used for completing steel coil number extraction; according to the method, the steel coil number can be extracted more accurately, the problem that the steel coil number extraction accuracy is low is solved, the production cost is effectively reduced, the problems that manual recording efficiency is low and the like are solved, and the method has great significance in improving the efficiency and accuracy of steel coil inventory management.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of metallurgical production, and in particular to an automatic steel coil number positioning and identification method based on industrial vision. Background Art

[0002] The coil number is a unique identifier on a steel coil, usually consisting of a string of numbers and letters. It is a unique number used to identify a specific steel coil, and can include information such as the manufacturer, origin, production time, steel type, and specifications. The identification and management of coil numbers is very important for the steel manufacturing and processing industry, and can achieve tracking management, inventory management, and production scheduling of steel coils. Coil numbers are usually fixed on the steel coil in the form of a label or sign, and can also be automatically identified and managed through coil number recognition technology.

[0003] The background of steel coil number recognition technology is that with the rapid development of the steel industry and the expansion of production scale, the traditional manual recording and management methods can no longer meet the production needs. The steel coil number is the only identifier of the steel coil. Its accurate identification and management are crucial to improving production efficiency and reducing costs. Therefore, the automatic steel coil number recognition technology came into being. The application of this technology can improve the production efficiency and management level of the steel industry, reduce production costs and manual error rates, and has become an indispensable part of production management in the steel industry. Summary of the invention

[0004] The present invention provides a method for automatic positioning and identification of steel coil numbers based on industrial vision, which can realize automatic tracking and management of steel coils, including real-time monitoring of the position, status and production progress of steel coils, which can not only improve production efficiency and production quality, but also reduce the human error rate and errors in the production process.

[0005] In order to achieve the above object, the present invention adopts the following technical solutions:

[0006] A method for automatically locating and identifying steel coil numbers based on industrial vision comprises the following steps:

[0007] S1. Construct a training sample set: obtain an industry data set constructed from production site scenarios as a training sample set;

[0008] S2. Coil number positioning and area extraction: Use the segmented text detection method DBnet algorithm to locate the coil number, calculate the minimum enclosing matrix of the coil number, rotate the enclosing matrix to the horizontal direction, extract text areas of different shapes in natural scenes, and output their position and size information;

[0009] S3, coordinate system conversion: based on the coil number positioning and area extraction results, the coil number is horizontally changed, and the polar coordinate conversion algorithm of multi-scale fusion is used for polar coordinate conversion, and the converted images are fused into one image by interpolation;

[0010] S4. Steel coil number text recognition: The image after coordinate system conversion is input into the deep neural network model CTPN for feature extraction to obtain a feature map, and the feature vector is obtained on the feature map. The obtained feature vector is input into the long short-term memory network LSTM to obtain the text candidate area text proposal, and the graph-based text line construction algorithm is used to obtain the text segments one by one and merge them into text lines to obtain the final steel coil number.

[0011] Furthermore, the training sample set includes location information and category information of the steel coil number.

[0012] Furthermore, the extraction of text regions of different shapes in natural scenes is to extract the steel coil number region using a minimum enclosing matrix.

[0013] Furthermore, the multi-scale fusion polar coordinate transformation in step S3 is performed using different step lengths of x step and step Perform polar coordinate transformation, and then fuse the transformed images into one image by interpolation, where Then the polar coordinate transformation formula is as follows:

[0014]

[0015] The value of the i-th row and j-th column of the image matrix O is calculated using the following formula:

[0016] O step (r step ,θ step )=f(x'+r step cosθ step ,y'+r step sinθ step ) (3)

[0017] where x step and step are the step lengths in the x-axis and y-axis directions, r step and θ step For x step and step is the polar coordinate obtained after step conversion, (x', y') is the center coordinate of polar coordinate space transformation, θ is the angle between a point (x, y) on the xoy plane of the Cartesian coordinate system and the x-axis, and r is the distance from a point (x, y) on the xoy plane in the Cartesian coordinate system to the center of polar coordinate space transformation;

[0018] Use the interpolation algorithm to convert k O step Interpolation is performed to obtain the final polar coordinate image O(r,θ).

[0019] Furthermore, the step 4) specifically includes the following steps:

[0020] S4.1. Use GoogleNet as the backbone network to extract features and obtain the features as feature maps with a size of W×H×C.

[0021] S4.2, then make a sliding window on this feature map, the window size is k×k, each window can get a feature vector, this feature vector will be used to predict the offset distance between the n anchor boxes;

[0022] S4.3. Input the features obtained in the previous step into a bidirectional long short-term memory network LSTM to obtain an output of length W×256, and then connect a 512 fully connected layer to prepare for output;

[0023] S4.4, obtain the horizontal translation of the densely predicted text candidate area text proposal;

[0024] S4.5. Use the graph-based text line construction algorithm to merge the obtained text segments into text lines.

[0025] Compared with the prior art, the present invention has the following beneficial effects:

[0026] 1) A multi-scale fusion polar coordinate transformation algorithm is introduced to calculate the minimum enclosing matrix of the steel coil number. Then, the arc-shaped steel coil number in the minimum enclosing matrix is ​​transformed horizontally using the multi-scale fusion polar coordinate transformation algorithm, and the steel coil number on the arc-shaped steel coil is accurately detected. This method improves the image quality of the steel coil number after the coordinate transformation, which can effectively improve the accuracy of subsequent steel coil number extraction, reduce the error rate, and achieve an accuracy rate of more than 97%;

[0027] 2) Using DBnet algorithm to locate the coil number, optimizing the training process to simplify post-processing, and better detecting text areas of different shapes in natural scenes;

[0028] 3) It improves production efficiency and quality, reduces the rate of manual errors and errors in the production process, and is also of great significance for improving the efficiency and accuracy of inventory management;

[0029] 4) The steel coil identification technology of the present invention can also realize the automated management of steel coil inventory, including the rapid query and statistics of inventory quantity, type, status and other information, which is also of great significance for improving the efficiency and accuracy of inventory management. BRIEF DESCRIPTION OF THE DRAWINGS

[0030] Figure 1 It is a flow chart of the method of the present invention.

[0031] Figure 2 This is the CPTN network structure diagram of the present invention.

[0032] Figure 3 It is a schematic diagram of the steel coil number positioning result described in the present invention.

[0033] Figure 4 It is a schematic diagram of the steel coil number area extraction result of the present invention.

[0034] Figure 5 It is a schematic diagram of the steel coil number coordinate conversion result of the present invention.

[0035] Figure 6 It is a schematic diagram of the steel coil number extraction result of the present invention. DETAILED DESCRIPTION

[0036] The specific implementation of the present invention will be further described below in conjunction with the accompanying drawings:

[0037] See Figure 1 , is a flow chart of the method of the present invention. The present invention is an automatic steel coil number positioning and identification method based on industrial vision, which specifically includes the following steps:

[0038] S1. Construct training sample set: set up a network camera for image acquisition at the steel coil management site. The site is well-lit, the camera resolution is 400W, and the camera is 5m away from the steel coil. Collect steel coil image data to obtain a data set containing 2500 samples. Use the data set to complete the training of the steel coil number positioning model. The data set is an industry data set built based on the production site scene. The samples in each data set contain the location information and category information of the ladle number.

[0039] S2. Coil number positioning and area extraction: The segmented text detection method DBnet algorithm is used to locate the coil number. The network structure diagram is shown in Figure 2. The feature map pyramid network FPN is used to fuse multi-scale features, combined with the multi-resolution scale prediction of SSD and the multi-resolution feature fusion of U-Net. Through the differentiable binary operation, the training process is optimized to simplify the post-processing, which can better extract text areas of different shapes in natural scenes. Figure 3 , output its position and size information;

[0040] Calculate the minimum enclosing matrix of the steel coil number and rotate the enclosing matrix to the horizontal direction, such as Figure 4 As shown in the figure, in the segmentation-based text detection method, the input image is first processed into a pixel-level text segmentation probability map through the network, and then the probability map is converted into a binary map according to a preset threshold. Finally, the final text detection result is obtained by aggregation, using a fixed threshold, as shown in formula (1):

[0041]

[0042] Among them, B i,j is a binary image, P i,j is the pixel value of the probability map, and t is the set threshold;

[0043] This standard binarization operation will lead to non-differentiable gradients during training. Since the function is not differentiable, it cannot participate in network optimization. The segmentation-based text detection method DBnet uses differentiable binarization to binarize the image and complete the segmentation of the text area. Differentiable binarization uses a function that approximates the standard binarization to enable the binarization operation to participate in network training, as shown in formula (4).

[0044]

[0045] in, is a differential binary graph, T i,j is the threshold image pixel value, k is a fixed factor, which can expand the influence of the gradient and help correct the network model error. Here it is 40;

[0046] S3. Coordinate system conversion: After DBnet network detection through segmented text detection method, the text position on the image has been displayed in the form of a four-point annotation box. As the production process of steel coil numbers is known, the steel coil code on the steel coil is preferably in an arc state, and the detection error rate of curved text is high. Based on the segmentation positioning, the steel coil number is horizontally changed to obtain the horizontal steel coil number, such as Figure 5 As shown, the image is converted from the Cartesian coordinate system to the polar coordinate system using the standard conversion method. At a point (x, y) on the xoy plane of the Cartesian coordinate system, with (x', y') as the center, the Cartesian coordinates are converted to polar coordinates using the following formula:

[0047]

[0048]

[0049] Among them, θ is the angle between a point (x, y) on the xoy plane of the Cartesian coordinate system and the x-axis, r is the distance from a point (x, y) on the xoy plane in the Cartesian coordinate system to the center of the polar coordinate space transformation, assuming that the input image matrix is ​​I, (x', y') represents the center of the polar coordinate space transformation, and the output image matrix is ​​O. The one-to-one correspondence between polar coordinates and Cartesian coordinates is used to obtain each pixel value of O, that is:

[0050] O(r, θ)=f(x'+rcosθ,y'+rsinθ) (8)

[0051] When both θ and r are discretized with a step size of 1, due to the large transformation step size, the output image matrix O will lose a lot of information of the original image, resulting in blurry images after polar coordinate transformation, which is not conducive to the subsequent extraction of steel coil numbers. The present invention adopts a multi-scale fusion polar coordinate transformation algorithm, that is, using different step sizes of x step and step Perform polar coordinate transformation, and then fuse the transformed images into one image by interpolation, where Then the polar coordinate transformation formula is as follows:

[0052]

[0053] The value of the i-th row and j-th column of the image matrix O is calculated using the following formula:

[0054] O step (r step ,θ step )=f(x'+r step cosθ step ,y'+r step sinθ step ) (11)

[0055] where x step and step are the step lengths in the x-axis and y-axis directions, r step and θ step For x step and step is the polar coordinate obtained after step conversion, (x', y') is the central coordinate of polar coordinate space transformation, θ is the angle between a point (x, y) on the xoy plane of the Cartesian coordinate system and the x-axis, and r is the distance from a point (x, y) on the xoy plane in the Cartesian coordinate system to the center of polar coordinate space transformation;

[0056] Use the interpolation algorithm to convert k O step Interpolation is performed to obtain the final polar coordinate image O(r,θ).

[0057] S4. Steel coil number text recognition: After DBNet network detection and multi-scale fusion polar coordinate conversion, the horizontal steel coil number is obtained. Next, the text content in these boxes is recognized. The deep neural network with CTPN as the benchmark framework is adopted. The network model consists of three parts: convolution layer, bidirectional LSTM, and fully connected layer. The convolution layer in the network structure uses VGG16. Due to the limited depth and width of the VGG16 network, the detection accuracy of CTPN small text is not high. The feature extraction network GoogleNet is used to replace the original convolution network VGG16 of CTPN. It not only deepens the structure of the neural network, but also increases the width of the network. The Inception-v1 structure is introduced to replace the traditional convolution layer plus the activation function structure, which expands the width of the network. The parallelization module is used to reduce the amount of calculation, thereby reducing the size of the feature map, improving the problem of low accuracy of CPTN in small text recognition. The improved CPTN network structure is as follows Figure 2 As shown, the identification steps are as follows:

[0058] S4.1. First, use the feature extraction network GoogleNet as the backbone network to extract features and obtain the features as feature maps with a size of W×H×C.

[0059] S4.2. Then slide a window on this feature map with a window size of 3×3. That is, each window can get a feature vector of length 3×3×C. This feature vector will be used to predict the offset distance between the five anchor boxes. That is, five text candidate regions will be predicted at the center of each window.

[0060] S4.3. Input the features obtained in the previous step into a bidirectional long short-term memory network LSTM to obtain an output of length W×256, and then connect a 512 fully connected layer to prepare for output;

[0061] S4.4, this method obtains densely predicted text candidate regions, and then uses a standard non-maximum suppression algorithm to filter out redundant detection boxes;

[0062] S4.5. Finally, the graph-based text line construction algorithm is used to merge the obtained text segments into text lines. Figure 6 .

[0063] The above embodiments are implemented based on the technical solution of the present invention, and detailed implementation methods and specific operation processes are given, but the protection scope of the present invention is not limited to the above embodiments. The methods used in the above embodiments are conventional methods unless otherwise specified.

Claims

1. A method for automatic positioning and identification of steel coil numbers based on industrial vision, characterized in that: The steps include: S1. Construct a training sample set: obtain an industry data set constructed from production site scenarios as a training sample set; S2. Coil number positioning and area extraction: Use the segmented text detection method DBnet algorithm to locate the coil number, calculate the minimum enclosing matrix of the coil number, rotate the enclosing matrix to the horizontal direction, extract text areas of different shapes in natural scenes, and output their position and size information; S3, coordinate system conversion: based on the coil number positioning and area extraction results, the coil number is horizontally changed, and the polar coordinate conversion algorithm of multi-scale fusion is used for polar coordinate conversion, and the converted images are fused into one image by interpolation; S4. Steel coil number text recognition: The image after coordinate system conversion is input into the deep neural network model CTPN for feature extraction to obtain a feature map, and the feature vector is obtained on the feature map. The obtained feature vector is input into the long short-term memory network LSTM to obtain the text candidate area text proposal, and the graph-based text line construction algorithm is used to obtain the text segments one by one and merge them into text lines to obtain the final steel coil number.

2. The method for automatic steel coil number positioning and identification based on industrial vision according to claim 1 is characterized in that: The training sample set includes location information and category information of the steel coil number.

3. The method for automatic steel coil number positioning and identification based on industrial vision according to claim 1 is characterized in that: The extraction of text regions of different shapes in natural scenes is to extract the steel coil number region using a minimum enclosing matrix.

4. The method for automatic steel coil number positioning and identification based on industrial vision according to claim 1 is characterized in that: The multi-scale fusion polar coordinate transformation in step S3 is performed using x with different step lengths. step and step Perform polar coordinate transformation, and then fuse the transformed images into one image by interpolation, where Then the polar coordinate transformation formula is as follows: The value of the i-th row and j-th column of the image matrix O is calculated using the following formula: i step (r step ,the step )=f(x'+r step cosθ step ,y'+r step sinth step ) (3) where x step and step are the step lengths in the x-axis and y-axis directions, r step and θ step For x step and step is the polar coordinate obtained after step conversion, (x', y') is the central coordinate of polar coordinate space transformation, θ is the angle between a point (x, y) on the xoy plane of the Cartesian coordinate system and the x-axis, and r is the distance from a point (x, y) on the xoy plane in the Cartesian coordinate system to the center of polar coordinate space transformation; Use the interpolation algorithm to convert k O step Interpolation is performed to obtain the final polar coordinate image O(r,θ).

5. The method for automatic steel coil number positioning and identification based on industrial vision according to claim 1 is characterized in that: The step 4) specifically comprises the following steps: S4.

1. Use GoogleNet as the backbone network to extract features and obtain the features as feature maps with a size of W×H×C. S4.2, then make a sliding window on this feature map, the window size is k×k, each window can get a feature vector, this feature vector will be used to predict the offset distance between the n anchor boxes; S4.

3. Input the features obtained in the previous step into a bidirectional long short-term memory network LSTM to obtain an output of length W×256, and then connect a 512 fully connected layer to prepare for output; S4.4, obtain the horizontal translation of the densely predicted text candidate area text proposal; S4.

5. Use the graph-based text line construction algorithm to merge the obtained text segments into text lines.

Citation Information

Patent Citations

  • Method for extracting and identifying graphic and text information of scanned document

    CN111401372A

  • Scene text positioning and recognition method based on full convolutional network

    CN111553349A

  • Universal detection method for steel coil code spraying identification

    CN112818970A

  • Text recognition method and device, readable storage medium and equipment

    CN113705576A

  • Steel coil end face character recognition method and system based on lightweight feature extraction network

    CN116311203A