Automatic labeling system based on steel billet spray number recognition
By using an automatic labeling system based on billet serial number recognition in the H-beam production line in the steel and metallurgical industry, the problems of difficulty in material tracking and safety hazards of manual labeling are solved, automatic tracking and label generation of billets are realized, and the efficiency of the production line is improved. Level of automation and security.
Patent Information
- Application Number
- CN202410836743.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-26
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2044-06-26
AI Technical Summary
In the iron and steel metallurgical industry, it is difficult or inaccurate to track the materials one by one in the H-beam production line. As a result, the automatic labeling system cannot be put into normal use, the finished product warehouse area cannot be automatically put into storage, and the manual labeling workload is large and there are leaks and errors. safety hazards.
Design an automatic labeling system based on billet spray number recognition. Use an inkjet printer to spray the billet batch number behind the straightener, install a camera to identify images in the stacking area, and identify the batch number through the improved Yolov3 network model and brightness correction technology. Generate and label labels for automated billet tracking and label generation.
It realizes full tracking of H-shaped steel in the finishing area, reduces the workload of manual labeling, improves the level of informatization, avoids safety hazards of missing or wrong labeling, and ensures the correspondence between billet information flow and physical flow.
Smart Images

Figure CN118560823A
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of information tracking, and more specifically, the invention relates to an automatic labeling system based on steel billet spray number recognition. Background Art
[0002] In the iron and steel metallurgical industry, in order to achieve full-process tracking and traceability of steel billets and prevent accidents such as shipping errors, it is required to number steel billets and use the material tracking system to track the entire process of plate delivery, rolling, steel loading, and steel tapping. In order to achieve a high level of automation in the hot-rolled steel billet production line, the unique steel billet number improves the efficiency of logistics tracking and quality management of steel companies.
[0003] The H-beam production line has complex processes, and there are problems with difficulty or inaccurate tracking of materials one by one in the finishing area, which results in the automatic labeling machine being unable to be put into use normally and the finished product warehouse area being unable to achieve automatic warehousing.
[0004] The existing finished product warehouse needs to be manually labeled before delivery. Manual labeling is not only labor-intensive, but also poses a safety hazard of missing or wrong labeling. Summary of the invention
[0005] The present invention provides an automatic labeling system based on steel billet spray number recognition, aiming to improve the above problems.
[0006] The present invention is implemented as follows: an automatic labeling system based on steel billet spray number recognition, the system comprising:
[0007] The inkjet printer located behind the straightening machine and the labeling machine located at the labeling position are connected to the secondary system through communication. The camera installed in the stacking area is connected to the processor, and the processor is connected to the secondary system.
[0008] After the steel billet arrives at the coding position, the secondary system controls the coding machine to code the batch number of the H-shaped steel billet, and associates the batch number with the basic information of the current steel billet;
[0009] When the steel billet reaches the stop block position in the stacking area, the camera is controlled to capture the steel billet image and send it to the processor. The processor identifies the steel billet batch number in the steel billet image and sends it to the secondary system. The secondary system controls the formation of label information based on the batch number and basic information of the steel section.
[0010] When the steel billet is transported to the labeling location, the labeling machine generates a label corresponding to the label information and labels it.
[0011] Furthermore, a billet batch number recognition model is constructed based on the improved Yolov3 network model, the billet image is input into the billet batch number recognition model, and the billet batch number recognition model outputs the batch number in the current billet image.
[0012] Furthermore, before the billet image is input into the billet batch number recognition model, the brightness of the billet image is corrected to balance the image brightness of the billet image.
[0013] Furthermore, the brightness correction process of the billet image is as follows:
[0014] (1) Use the Gaussian function to extract the illumination component I(x,y) in the billet image;
[0015] (2) Based on the illumination component I(x,y), the brightness value of the corresponding (x,y) pixel is corrected to balance the image brightness of the steel billet image.
[0016] Furthermore, the correction formula for the image brightness of the billet image is as follows:
[0017]
[0018] Where F′(x,y) is the brightness value of the billet image at the position (x,y) after correction, and F(x,y) is the brightness value of the billet image at the position (x,y) before correction. is the mean value of the illumination component in the billet image, and γ(x,y) is the brightness balance index at the position (x,y).
[0019] Furthermore, the improved Yolov3 network model structure is as follows:
[0020] A first DBL module, a Res×1 residual module, a first Res×4 residual module, a first Res×8 residual module, a second Res×8 residual module, a second Res×4 residual module, a third Res×4 residual module, a second DBL module and a first Res×2 residual module connected in sequence;
[0021] The output end of the first Res×2 residual module is connected to the first convolutional layer Conv, and the output end of the first convolutional layer Conv is the first output end;
[0022] The output end of the first Res×2 residual module is connected to the third DBL module and the first upsampling module in sequence, the output end of the second Res×4 residual module and the first upsampling module is connected to the seventh DBL module through the first tensor concatenation module Concat, the seventh DBL module is connected to the second Res×2 residual module and the second convolution layer Conv in sequence, and the output end of the second convolution layer Conv is the second output end;
[0023] The output end of the second Res×2 residual module is connected to the fourth DBL module and the second upsampling module in sequence, the output ends of the second Res×8 residual module and the second upsampling module are connected to the eighth DBL module through the second tensor concatenation module Concat, the eighth DBL module is connected to the third Res×2 residual module and the third convolutional layer Conv in sequence, and the output end of the third convolutional layer Conv is the third output end;
[0024] The output end of the third Res×2 residual module is connected to the fifth DBL module and the third upsampling module in sequence, the output ends of the first Res×8 residual module and the third upsampling module are connected to the ninth DBL module through the third tensor concatenation module Concat, the ninth DBL module is connected to the fourth Res×2 residual module and the fourth convolutional layer Conv in sequence, and the output end of the fourth convolutional layer Conv is the fourth output end;
[0025] The output end of the fourth Res×2 residual module is connected to the sixth DBL module and the fourth upsampling module in sequence, the output ends of the first Res×4 residual module and the fourth upsampling module are connected to the tenth DBL module through the fourth tensor concatenation module Concat, the tenth DBL module is connected to the fifth Res×2 residual module and the fifth convolutional layer Conv in sequence, and the output end of the fifth convolutional layer Conv is the fifth output end;
[0026] The output results from the first output terminal to the fifth output terminal are subjected to non-maximum suppression, and then the billet batch number in the billet image is output.
[0027] Furthermore, the DBL module is a combination of a convolutional layer Conv, a BN layer, and an activation function layer Relu.
[0028] Furthermore, the inkjet printer prints the batch number every 5 meters.
[0029] Furthermore, the inkjet printer sprays the batch number of the steel billet on the flange of the H-shaped steel billet.
[0030] The automatic labeling system based on steel billet spray number recognition provided by the present invention has the following beneficial technical effects:
[0031] (1) Use a printer to print the batch number on the steel billet after the straightening machine, and install a camera at the manual inspection table in the stacking area to identify the batch number of the steel billet, so as to achieve full-line tracking of heavy H-beam in the finishing area;
[0032] (2) Automatic labeling of steel billets into warehouses is realized, which greatly improves the problem of manual labeling which is labor-intensive and has potential safety hazards, realizes the correspondence between information flow and physical flow of steel billets, and improves the information level of heavy H-beams. BRIEF DESCRIPTION OF THE DRAWINGS
[0033] Figure 1A schematic diagram of the structure of an automatic labeling system based on steel billet spray number recognition provided by an embodiment of the present invention;
[0034] Figure 2 A schematic diagram of the structure of an improved Yolov3 network model provided by an embodiment of the present invention;
[0035] Figure 3 An improved comparison diagram of the Yolov3 network model before the target detection output layer provided by an embodiment of the present invention, wherein (a) is the existing Yolov3 network model, and (b) is the improved Yolov3 network model;
[0036] Figure 4 A schematic diagram showing how the loss function value varies with the number of iterations provided in an embodiment of the present invention;
[0037] Figure 5 The following are the effect diagrams of identifying the spray number of a steel billet provided by the embodiments of the present invention, wherein (a) is Example 1 and (b) is Example 2;
[0038] Figure 6 A comparison diagram of the pretreatment effects of the steel billets provided in the embodiments of the present invention, wherein (a) is an image of the pretreated steel billet, and (b) is an image of the steel billet after pretreatment. DETAILED DESCRIPTION
[0039] The specific implementation modes of the present invention are further explained in detail below by describing the embodiments with reference to the accompanying drawings, so as to help those skilled in the art to have a more complete, accurate and in-depth understanding of the inventive concept and technical solution of the present invention.
[0040] Figure 1 The structural schematic diagram of the automatic labeling system based on the steel billet spray number recognition provided by the embodiment of the present invention, for the convenience of explanation, only the part related to the embodiment of the present invention is shown, and the system includes:
[0041] The inkjet printer is arranged behind the straightening machine, and the labeling machine is arranged at the labeling position. The inkjet printer and the labeling machine are connected to the secondary system in communication. The camera installed on the inspection stand is connected to the processor, and the processor is connected to the secondary system.
[0042] After the billet arrives at the coding position, the secondary system controls the printer to code the batch number on the flange of the H-shaped billet, and associates the batch number with the basic information of the current billet;
[0043] After that, the rows of stands are moved horizontally to the cold saw area, and the cold saw cuts the steel billets into fixed lengths and sends them to the stacking area. When the steel billets reach the stop block position in the stacking area, the camera is controlled to capture the image of the steel billet and send it to the processor. The processor identifies the batch number of the steel billet in the image and sends it to the secondary system. The secondary system controls the formation of label information based on the batch number and basic information of the steel section. When the steel billets are transported to the labeling position, the labeling machine generates a label corresponding to the label information and labels it. Finally, the steel billets are packed and shipped through stacking.
[0044] In an embodiment of the present invention, when subsequent steel billets are cold sawed, it is ensured that there is at least one complete batch number on the H-shaped steel after sawing, and the inkjet printer sprays the batch number once every 5 meters. If there are two batch numbers on a steel billet, any one of the batch numbers can be selected to form the label information.
[0045] In the embodiment of the present invention, the process of identifying the billet number in the billet image is as follows:
[0046] A billet batch number recognition model is constructed, and the billet image captured by the camera is input into the billet batch number recognition model, and the billet batch number recognition model outputs the batch number in the current billet image.
[0047] The present invention adopts the trained improved Yolov3 network model as the steel billet batch number recognition model. The structure of the improved Yolov3 network model is as follows: Figure 2 As shown, the improved Yolov3 network model includes:
[0048] A first DBL module, a Res×1 residual module, a first Res×4 residual module, a first Res×8 residual module, a second Res×8 residual module, a second Res×4 residual module, a third Res×4 residual module, a second DBL module and a first Res×2 residual module connected in sequence;
[0049] The output end of the first Res×2 residual module is connected to the first convolutional layer Conv, and the first convolutional layer Conv outputs the first recognition result Y1;
[0050] The output end of the first Res×2 residual module is connected to the third DBL module and the first upsampling module in sequence, the output end of the second Res×4 residual module and the first upsampling module is connected to the seventh DBL module through the first tensor concatenation module Concat, the seventh DBL module is connected to the second Res×2 residual module and the second convolution layer Conv in sequence, and the second convolution layer Conv outputs the second recognition result Y2;
[0051] The output end of the second Res×2 residual module is connected to the fourth DBL module and the second upsampling module in sequence, the output ends of the second Res×8 residual module and the second upsampling module are connected to the eighth DBL module through the second tensor concatenation module Concat, the eighth DBL module is connected to the third Res×2 residual module and the third convolution layer Conv in sequence, and the third convolution layer Conv outputs the third recognition result Y3;
[0052] The output end of the third Res×2 residual module is connected to the fifth DBL module and the third upsampling module in sequence, the output ends of the first Res×8 residual module and the third upsampling module are connected to the ninth DBL module through the third tensor concatenation module Concat, the ninth DBL module is connected to the fourth Res×2 residual module and the fourth convolution layer Conv in sequence, and the fourth convolution layer Conv outputs the fourth recognition result Y4;
[0053] The output end of the fourth Res×2 residual module is connected to the sixth DBL module and the fourth upsampling module in sequence, the output ends of the first Res×4 residual module and the fourth upsampling module are connected to the tenth DBL module through the fourth tensor concatenation module Concat, the tenth DBL module is connected to the fifth Res×2 residual module and the fifth convolution layer Conv in sequence, and the fifth convolution layer Conv outputs the fifth recognition result Y5;
[0054] The first to fifth recognition results Y1 to Y5 are subjected to non-maximum suppression and then the billet spray number in the billet image is output.
[0055] Among them, the DBL module is a combination of the convolution layer Conv, the BN layer and the activation function layer Relu.
[0056] Since the size of a single character printed on a steel billet accounts for less than 5% of the entire image, the difficulty of steel billet character recognition lies in accurately locating and classifying relatively small characters in complex scenes. The present invention improves the Yolov3 network model by: (1) firstly enhancing the deep residual network to extract character features, then designing 5 convolutional feature maps of different scales, and fusing them with the feature maps of corresponding scales in the residual network to form a final feature pyramid to perform the steel billet character prediction task; (2) adding 2 residual units to the second residual block of Darknet53 of the Yolov3 network model to obtain accurate position information in the lower layer of the network; at the same time, performing an upsampling operation on the feature pyramid with a step size of 2, and fusing it with the previous deep residual network to form a deep fusion fast character detection model; (3) the target detection output layer of the Yolo v3 network contains 6 DBL units and a 1×1 convolution, such as Figure 3As shown in (a), in order to avoid gradient vanishing and enhance feature reuse, the first 6 DBL units in the output layer are converted into 1 DBL unit and 2 ResNet units, as shown in Figure 3 (b) shows that while ensuring high detection accuracy, the model depth is reduced and the detection speed is improved.
[0057] In the training stage, the steel billets with printed characters taken at the heavy H site are used as the training sample set. During the training process, the loss function value changes with the number of iterations as follows: Figure 4 As shown in the figure, as the number of iterations increases, the average loss function value tends to be stable. After nearly 20,000 training iterations, the average loss function value is reduced to about 0.18. The improved Yolo 3 network model performs relatively well. Based on the feature extraction network structure of the Yolo v3 network model, two scale detections are added to improve mAP and recognition accuracy. The recognition accuracy rate reaches 99.5%. At the same time, the network structure before the output layer is changed, which effectively reduces the detection time. The recognition time for a single image is only 135ms. Figure 5 To show the recognition results, Figure 5 (a) and (b) are both the recognition effect diagrams of the steel billet spray number.
[0058] Due to the influence of factors such as changes in ambient lighting conditions and shadows between objects, there will be obvious differences in the brightness of the collected images. Unconstrained changes in the brightness of the billet will cause differences in grayscale and contrast between the billet characters and the background, as well as differences in brightness distribution in the billet area, thereby reducing the distinction between the characters and the background, resulting in increased difficulty in extracting stable features in the billet area. In order to improve the recognition stability of the billet batch number recognition model, after obtaining the billet image, the billet image is first processed, and the processed billet image is then input into the billet batch number recognition model for batch number recognition of the current billet. The preprocessing process of the billet image is described below:
[0059] (1) Using the Gaussian function to extract the illumination component I(x, y) in the billet image, I(x, y) represents the illumination component of the xth row and yth column in the billet image;
[0060] The imaging of an object is produced when the light reflected from its surface reaches the imaging unit. The brightness F(x,y) of the billet image at the position (x,y) is composed of the product of the illumination component I(x,y) incident on the billet surface and the reflection component R(x,y) of the billet surface. The expression is as follows: F(x,y)=I(x,y)*R(x,y). In order to eliminate the interference of uneven illumination, the illumination component of the billet image must be extracted first. The Gaussian function can effectively extract the illumination component in the billet image. The Gaussian function form is: In the formula, λ is the normalization constant, c is the Gaussian function scale factor. According to the Retinex color theory, the Gaussian function scale factor c controls the range of the convolution kernel. The larger the c, the larger the convolution kernel range, and the more sensitive to global reactions. The smaller the c, the smaller the convolution kernel range, and the more sensitive to local reactions. After a large number of experiments, in order to adapt to most images, the parameter c = 2 is selected. At the same time, it is necessary to ensure that the Gaussian function G(x, y) satisfies ∫∫G(x, y) = 1, and then the Gaussian function is used to convolve with the image to extract the illumination component I(x, y) = F(x, y) * G(x, y).
[0061] (2) Based on the illumination component I(x,y), the brightness value of the corresponding (x,y) pixel is corrected to balance the image brightness of the steel billet image.
[0062] After the illumination component I(x,y) is extracted through the Gaussian function, the illumination balance of the billet image can be performed. It needs to be converted to the HSV color model. The two-dimensional gamma function is shown in the following formula:
[0063]
[0064]
[0065] Where F′(x,y) is the brightness value of the billet image at the position (x,y) after correction, and F(x,y) is the brightness value of the billet image at the position (x,y) before correction. is the mean value of the illumination component in the billet image, γ(x,y) is the brightness balance index at the position (x,y), and the illumination is balanced based on the brightness balance index to obtain the corrected image brightness value.
[0066] The illumination equalization steel billet preprocessing based on the two-dimensional gamma function has obvious effects on images with uneven illumination, such as night images and exposed images. The algorithm has fast calculation speed. It only takes about 40ms to perform illumination equalization processing on a single image, which effectively improves the image quality and the accuracy of subsequent character detection and recognition steps. The preprocessing results of the steel billet are shown as follows: Figure 6 As shown, (a) is the preprocessed billet image, and (b) is the preprocessed billet image.
[0067] The present invention has been described exemplarily. Obviously, the specific implementation of the present invention is not limited to the above-mentioned method. As long as various non-substantial improvements are made using the method concept and technical solution of the present invention, or the concept and technical solution of the present invention are directly applied to other occasions without improvement, they are all within the protection scope of the present invention.
Claims
1. An automatic labeling system based on steel billet spray number recognition, characterized in that: The system comprises: The inkjet printer located behind the straightening machine and the labeling machine located at the labeling position are connected to the secondary system through communication. The camera installed in the stacking area is connected to the processor, and the processor is connected to the secondary system. After the steel billet arrives at the coding position, the secondary system controls the inkjet printer to code the batch number of the H-shaped steel billet, and associates the batch number with the basic information of the current steel billet; When the steel billet reaches the stop block position in the stacking area, the camera is controlled to capture the steel billet image and send it to the processor. The processor identifies the steel billet batch number in the steel billet image and sends it to the secondary system. The secondary system controls the formation of label information based on the batch number and basic information of the steel section. When the steel billet is transported to the labeling location, the labeling machine generates a label corresponding to the label information and labels it.
2. The automatic labeling system based on steel billet spray number recognition as claimed in claim 1, characterized in that: A billet batch number recognition model is constructed based on the improved Yolov3 network model. The billet image is input into the billet batch number recognition model, and the billet batch number recognition model outputs the batch number in the current billet image.
3. The automatic labeling system based on steel billet spray number recognition as claimed in claim 2, characterized in that: Before the billet image is input into the billet batch number recognition model, the brightness of the billet image is corrected to balance the image brightness of the billet image.
4. The automatic labeling system based on steel billet spray number recognition as described in claim 3 is characterized in that: The brightness correction process of the billet image is as follows: (1) Use the Gaussian function to extract the illumination component I(x,y) in the billet image; (2) Based on the illumination component I(x,y), the brightness value of the corresponding (x,y) pixel is corrected to balance the image brightness of the steel billet image.
5. The automatic labeling system based on steel billet spray number recognition as claimed in claim 4, characterized in that: The correction formula for the image brightness of the billet image is as follows: Where F′(x,y) is the brightness value of the billet image at the (x,y) position after correction, F(x,y) is the brightness value of the billet image at the (x,y) position before correction, I is the mean value of the illumination component in the billet image, and γ(x,y) is the brightness balance index at the (x,y) position.
6. The automatic labeling system based on steel billet spray number recognition as claimed in claim 2, characterized in that: The improved Yolov3 network model structure is as follows: A first DBL module, a Res×1 residual module, a first Res×4 residual module, a first Res×8 residual module, a second Res×8 residual module, a second Res×4 residual module, a third Res×4 residual module, a second DBL module and a first Res×2 residual module connected in sequence; The output end of the first Res×2 residual module is connected to the first convolutional layer Conv, and the output end of the first convolutional layer Conv is the first output end; The output end of the first Res×2 residual module is connected to the third DBL module and the first upsampling module in sequence, the output end of the second Res×4 residual module and the first upsampling module is connected to the seventh DBL module through the first tensor concatenation module Concat, the seventh DBL module is connected to the second Res×2 residual module and the second convolution layer Conv in sequence, and the output end of the second convolution layer Conv is the second output end; The output end of the second Res×2 residual module is connected to the fourth DBL module and the second upsampling module in sequence, the output ends of the second Res×8 residual module and the second upsampling module are connected to the eighth DBL module through the second tensor concatenation module Concat, the eighth DBL module is connected to the third Res×2 residual module and the third convolutional layer Conv in sequence, and the output end of the third convolutional layer Conv is the third output end; The output end of the third Res×2 residual module is connected to the fifth DBL module and the third upsampling module in sequence, the output ends of the first Res×8 residual module and the third upsampling module are connected to the ninth DBL module through the third tensor concatenation module Concat, the ninth DBL module is connected to the fourth Res×2 residual module and the fourth convolutional layer Conv in sequence, and the output end of the fourth convolutional layer Conv is the fourth output end; The output end of the fourth Res×2 residual module is connected to the sixth DBL module and the fourth upsampling module in sequence, the output ends of the first Res×4 residual module and the fourth upsampling module are connected to the tenth DBL module through the fourth tensor concatenation module Concat, the tenth DBL module is connected to the fifth Res×2 residual module and the fifth convolutional layer Conv in sequence, and the output end of the fifth convolutional layer Conv is the fifth output end; The output results from the first output terminal to the fifth output terminal are subjected to non-maximum suppression, and then the billet batch number in the billet image is output.
7. The automatic labeling system based on steel billet spray number recognition as claimed in claim 6, characterized in that: The DBL module is a combination of the convolution layer Conv, the BN layer and the activation function layer Relu.
8. The automatic labeling system based on steel billet spray number recognition as claimed in claim 1, characterized in that: The inkjet printer prints the batch number every 5 meters.
9. The automatic labeling system based on steel billet spray number recognition as claimed in claim 1, characterized in that: The inkjet printer sprays the batch number of the steel billet on the flange of the H-shaped steel billet.
Citation Information
Patent Citations
Identifying system and method for billets on blanking production line of train wheels
CN103870934A
Two-dimensional code identification method and system, electronic equipment and storage medium
CN110032907A
Intelligent steel slag detection method and system based on convolutional neural network
CN110796046A
Steel billet labeling method and system based on three-dimensional point cloud
CN112224590A
Automatic spout a yard labeller
CN208647352U
Cited By
Steel labeling and code spraying method based on visual system
CN119116550A
