Steel ladle tracking method based on machine vision
Through the ladle tracking method based on machine vision, the Yolov5s model and the K-means algorithm are used to achieve accurate tracking of the ladle number and location, solving the problem of inaccurate tracking in traditional methods and improving the intelligent level of steelmaking production management. and data integrity.
Patent Information
- Application Number
- CN202410597253.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-05-14
- Publication Date
- 2024-09-06
AI Technical Summary
In traditional steelmaking production, the tracking of ladle location and usage time is inaccurate, making it difficult to support production management and safety monitoring of steel companies. Moreover, the model generalization ability is poor and it is difficult to cope with complex scene changes.
Adopt a ladle tracking method based on machine vision, use the Yolov5s lightweight network model, obtain video through the camera, perform image processing and preprocessing, combine the K-means algorithm and LabelImg tool to train the ladle tracking model, and save the recognition results to the MySQL database. Achieve accurate tracking of ladle package number, location and usage time.
It improves the accuracy and completeness of basic steelmaking data, provides support for intelligent production management of steel companies, enhances the generalization ability of the model, and can cope with complex scenarios and changes.
Smart Images

Figure CN118608455A
Abstract
Description
Technical Field
[0001] The invention relates to a ladle tracking method based on machine vision, belonging to the technical field of intelligent steelmaking. Background Art
[0002] Automation and intelligence have been widely used in steel production, and ladle positioning and tracking is a core technology. In traditional processes, the measurement of molten steel temperature, the detection of components, and the weighing of weight will produce large information errors due to the time and space barriers of the operation, which will have a great impact on the stability of molten steel quality and cost control.
[0003] At present, machine vision-based target detection technology has been widely used in various tracking systems. Through advanced machine learning algorithms, non-contact and low-cost accurate identification of ladle number information can be achieved, and the location and usage time of the ladle can be tracked and managed. However, the existing technology has the following problems: it cannot accurately obtain the location and usage time of the ladle, which makes it difficult to provide strong support for the production management and safety monitoring of steel enterprises; the model has poor generalization ability and is difficult to cope with various complex scenarios and changes in practical applications. Summary of the invention
[0004] The main purpose of the present invention is to provide a ladle tracking method based on machine vision, to realize the association between the ladle number and information such as molten steel temperature, composition and weight, to improve the accuracy, timeliness and completeness of basic steelmaking data, to provide strong support for the realization of intelligent steelmaking, and to solve the above-mentioned technical problems existing in the existing technology.
[0005] Technical solution of the present invention: A ladle tracking method based on machine vision uses cameras throughout the steelmaking workshop to obtain ladle videos, and trains them through the Yolov5s lightweight network model to obtain the ladle number information, accurately track the location and usage time of the ladle, and thus achieve comprehensive monitoring and optimization of the steel production process; The following steps are involved: S1: decimal encoding of the ladle number, welding it on the ladle surface, and entering step S2; S2: Read the camera video and enter step S3; S3: The image processor realizes the conversion from video to picture and enters step S4; S4: Use the LabelImg tool to filter and label images, and then proceed to step S5; S5: image preprocessing and entering step S6; S6: K-means algorithm clustering and enter step S7; S7: YOLOv5s lightweight network trains the ladle tracking model and enters step S8; S8: The recognition results are saved in the MySQL database.
[0006] In the step S1, unique decimal codes are assigned according to different types and uses of ladles, and the prepared metal blocks are welded to the ladle body.
[0007] The function for reading the camera in step S2 is VideoCapture(), and the camera is an RGB-D camera, including using the camera function to extract the ladle video containing the ladle number in the RGB-D camera.
[0008] In step S3, the acquired video is converted into pictures using an image processor, and the collected package number images are formed into an original data set.
[0009] The step S4 uses the LabelImg tool to screen and label the pictures, including using the LabelImg tool to label the package numbers in the pictures.
[0010] The image preprocessing in step S5 includes processes such as geometric scaling, cropping, data enhancement, image normalization and data set division; the data enhancement in step S5 includes simulating the image acquisition environment and method of different ladles under various modes such as different exposure, contrast and Gaussian noise, so as to train and evaluate the model.
[0011] In step S6, the K-means algorithm is used for clustering to obtain a priori frame, including the names of different ladle numbers, the coordinates of the center point, and the width and height of the priori frame.
[0012] In step S7, the ladle tracking model is trained using the YOLOv5s lightweight network, including building a feature extraction network Darket-53 on the host side; the evaluation criteria used to measure the quality of the target recognition task in step S7 include accuracy and recall. Accuracy is the ratio of the number of correct predictions of a certain type of numbers by the model to all the numbers judged by the model as this type, which can be expressed as follows: ; Recall is the ratio of the number of correct predictions of a certain type of digits by the model to the number of true positive examples, which can be expressed as follows: ; Among them, TP means that the true category of the true positive sample is a positive example, and the result predicted by the model is also a positive example; TN means that the true category of the true negative sample is a negative example, and the model predicts it as a negative example; FP means that the true category of the false positive sample is a negative example, but the model predicts it as a positive example; FN means that the true category of the false negative sample is a positive example, but the model predicts it as a negative example.
[0013] The identification result in step S8 is saved to the MySQL database, including exporting different ladle number information to the database through SQL insert statements.
[0014] Beneficial effects of the present invention: the network model is trained by using the advanced YOLOv5 algorithm in machine learning. On the premise of identifying the ladle number, the location and use time of the ladle can also be accurately obtained, providing strong support for the production management and safety monitoring of steel enterprises; the present invention adopts data enhancement technology to simulate the image acquisition environment under multiple modes such as different exposure, contrast and Gaussian noise. While enriching the model training data set, it also helps to improve the generalization ability of the model, so that it can cope with various complex scenarios and changes in practical applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 It is a schematic diagram of the process of the present invention. DETAILED DESCRIPTION
[0016] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0017] Technical solution: decimal encoding of ladle numbers and welding of the codes on the ladle surface; reading of camera video; image processor to achieve video to image conversion; LabelImg tool to filter and annotate images; image preprocessing; K-means algorithm clustering; YOLOv5s lightweight network training ladle tracking model; recognition results saved to MySQL database. The present invention can achieve full life cycle tracking and management of ladles, further improve the intelligent level of production scheduling and control, make steel production more efficient, fast and accurate, and provide strong support for the realization of intelligent transformation.
[0018] Example 1 Figure 1 This is a flow chart of the ladle tracking method based on machine vision provided by an embodiment of the present invention. Figure 1 The present invention provides a ladle tracking method based on machine vision, which is characterized by comprising the following steps: S1: decimal encoding of the ladle number, welding it on the ladle surface, and entering step S2; S2: Read the camera video and enter step S3; S3: The image processor realizes the conversion from video to picture and enters step S4; S4: Use the LabelImg tool to filter and label images, and then proceed to step S5; S5: image preprocessing and entering step S6; S6: K-means algorithm clustering and enter step S7; S7: YOLOv5s lightweight network trains the ladle tracking model and enters step S8; S8: The recognition results are saved in the MySQL database.
[0019] The ladle tracking method based on machine vision provided by the present invention uses the YOLOv5s lightweight network in machine learning to train the ladle tracking model, and realizes comprehensive monitoring in the steelmaking workshop when the ladle number data is captured by the RGB-D camera. The method can not only identify the data of the ladle body, but also accurately output the location and usage time of the ladle, which helps to reasonably arrange maintenance resources and improve the utilization efficiency and life of the ladle.
[0020] Specifically, in step S1, unique decimal codes are assigned to ladles of different types and uses, and the prepared metal blocks are welded to the body of the ladles.
[0021] It should be noted that the ladle number should be welded on the ladle body where it is easy to observe and photograph, so as to facilitate the collection of subsequent data sets.
[0022] Furthermore, the function for reading the camera in step S2 is VideoCapture(), and the camera is an RGB-D camera, including using the camera function to extract the ladle video containing the ladle number in the RGB-D camera.
[0023] Furthermore, in step S3, an image processor is used to convert the acquired video into images, and the collected package number images are formed into an original data set.
[0024] Furthermore, in step S4, the LabelImg tool is used to screen and annotate the pictures, including annotating the package numbers in the pictures using the LabelImg tool.
[0025] It should be noted that the output results of the LabelImg tool will save the label information of each image into an XML file, which contains relevant information such as the size and position of the label box, category, etc.
[0026] Furthermore, the image preprocessing in step S5 includes processes such as geometric scaling, cropping, data enhancement, image normalization and data set division.
[0027] It should be noted that data enhancement technology mainly relies on the imgaug library in Python, which can effectively enhance image data. By flexibly using various functions in the library, we can achieve diversified image enhancement and simulate the performance of different ladles in various image acquisition environments and methods, including but not limited to different exposure, contrast adjustment, and Gaussian noise addition.
[0028] Furthermore, in step S6, a K-means algorithm is used for clustering to obtain a priori boxes, including the names of different ladle numbers, the coordinates of the center points, and the width and height of the priori boxes.
[0029] Furthermore, in step S7, the ladle tracking model is trained using the YOLOv5s lightweight network, including building a feature extraction network Darket-53 on the host side.
[0030] Furthermore, the evaluation criteria used to measure the quality of the target recognition task in step S7 include accuracy and recall. Accuracy is the ratio of the number of correct predictions of a certain type of digits by the model to all the digits judged by the model to be of that type, which can be expressed as follows: ; Recall is the ratio of the number of correct predictions of a certain type of digits by the model to the number of true positive examples, which can be expressed as follows: ; Among them, TP means that the true category of the true positive sample is a positive example, and the result predicted by the model is also a positive example; TN means that the true category of the true negative sample is a negative example, and the model predicts it as a negative example; FP means that the true category of the false positive sample is a negative example, but the model predicts it as a positive example; FN means that the true category of the false negative sample is a positive example, but the model predicts it as a negative example.
[0031] Furthermore, in step S8, the recognition result is saved in a MySQL database, including exporting different ladle number information into the database through an SQL insert statement.
[0032] It should be noted that the constructed SQL statement will contain relevant field information such as ladle number, recognition time, location coordinates, and recognition accuracy, and each ladle number will be added to the database as an independent record.
Claims
1. A ladle tracking method based on machine vision, Features The ladle video is acquired by using the cameras in the steelmaking workshop, and the ladle number information is obtained through training with the Yolov5s lightweight network model, so as to accurately track the location and usage time of the ladle, thereby realizing comprehensive monitoring and optimization of the steel production process; the following steps are included: S1: decimal encoding of the ladle number, welding it on the ladle surface, and entering step S2; S2: Read the camera video and enter step S3; S3: The image processor realizes the conversion from video to picture and enters step S4; S4: Use the LabelImg tool to filter and label images, and then proceed to step S5; S5: image preprocessing and entering step S6; S6: K-means algorithm clustering and enter step S7; S7: YOLOv5s lightweight network trains the ladle tracking model and enters step S8; S8: The recognition results are saved in the MySQL database.
2. The ladle tracking method based on machine vision according to claim 1, Features: In the step S1, unique decimal codes are assigned according to different types and uses of ladles, and the prepared metal blocks are welded to the ladle body.
3. The ladle tracking method based on machine vision according to claim 1, Features: The function for reading the camera in step S2 is VideoCapture(), and the camera is an RGB-D camera, including using the camera function to extract the ladle video containing the ladle number in the RGB-D camera.
4. The ladle tracking method based on machine vision according to claim 1, Features: In step S3, the acquired video is converted into pictures using an image processor, and the collected package number images are formed into an original data set.
5. The ladle tracking method based on machine vision according to claim 1, Features: The step S4 uses the LabelImg tool to screen and label the pictures, including using the LabelImg tool to label the package numbers in the pictures.
6. The ladle tracking method based on machine vision according to claim 1, Features: The image preprocessing in step S5 includes processes such as geometric scaling, cropping, data enhancement, image normalization and data set division; the data enhancement in step S5 includes simulating the image acquisition environment and method of different ladles under various modes such as different exposure, contrast and Gaussian noise, so as to train and evaluate the model.
7. The ladle tracking method based on machine vision according to claim 1, Features: In step S6, the K-means algorithm is used for clustering to obtain a priori frame, including the names of different ladle numbers, the coordinates of the center point, and the width and height of the priori frame.
8. The ladle tracking method based on machine vision according to claim 1, Features: In step S7, the ladle tracking model is trained using the YOLOv5s lightweight network, including building a feature extraction network Darket-53 on the host side; the evaluation criteria used to measure the quality of the target recognition task in step S7 include accuracy and recall. Accuracy is the ratio of the number of correct predictions of a certain type of numbers by the model to all the numbers judged by the model as this type, which can be expressed as follows: ; Recall is the ratio of the number of correct predictions of a certain type of digits by the model to the number of true positive examples, which can be expressed as follows: ; Among them, TP means that the true category of the true positive sample is a positive example, and the result predicted by the model is also a positive example; TN means that the true category of the true negative sample is a negative example, and the model predicts it as a negative example; FP means that the true category of the false positive sample is a negative example, but the model predicts it as a positive example; FN means that the true category of the false negative sample is a positive example, but the model predicts it as a negative example.
9. The ladle tracking method based on machine vision according to claim 1, Features: The identification result in step S8 is saved to the MySQL database, including exporting different ladle number information to the database through SQL insert statements.
Citation Information
Patent Citations
Industrial scene-oriented product surface defect automatic identification method
CN112730425A
Steel ladle number detection and recognition method based on Yolov3 algorithm
CN112818980A
Steel ladle model online detection method, device, equipment and system based on machine vision
CN114092737A
Ship trajectory tracking and predicting method based on monocular camera
CN115601397A
YOLOv5-based steel thickness detection and identification method
CN117765059A
Cited By
Steel ladle surface body temperature monitoring method and device, computer equipment and storage medium
CN121252967A
