Steel bar machining intelligent optimization method and system based on computer vision
Computer vision technology is used to collect steel bar images and combine it with dynamic programming models to generate and optimize cutting plans, which solves the waste problem caused by complex steel bar cutting combination calculations, realizes automation and precision of steel bar processing, and improves efficiency and adaptability.
Patent Information
- Application Number
- CN202410860210.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-10-22
- Estimated Expiration
- 2044-06-28
AI Technical Summary
In the existing technology, the calculation of the steel bar cutting combination is complicated, resulting in serious waste of steel bars, and there is a lack of automated intelligent optimization methods to improve the efficiency and quality of steel bar processing.
Using a method based on computer vision, the camera collects cross-sectional and transverse images of the steel bar pile, uses the YOLOv5 algorithm to identify the number and length of steel bars, combines the dynamic programming model to generate a cutting plan, and performs over-limit judgment to optimize the cutting plan and achieve precise cutting.
It improves the automation level of steel bar processing, reduces waste, reduces costs, enhances adaptability and manageability, improves work efficiency, and meets environmental protection and energy saving requirements.
Smart Images

Figure CN118822017A_ABST
Abstract
Description
Technical Field
[0001] This document relates to the field of computer vision technology, and in particular to a computer vision-based intelligent optimization method and system for steel bar processing. Background Art
[0002] As the material basis for the development of the construction industry, building materials have a huge impact on the cost of civil engineering projects. Steel bars, as one of the most important building materials in construction projects, account for more than 30% of the cost of civil engineering projects. Therefore, under the premise of meeting the requirements of structural design specifications, optimizing the steel bar cutting combination method is of great significance to improving the utilization rate of steel bar materials and reducing the cost of civil engineering projects.
[0003] At present, in actual projects, the calculation of manual steel bar cutting combination is complicated. Workers often only combine in a single component when cutting, and simply cut in sequence when cutting, resulting in serious waste of steel bars. In view of the functional requirements of steel bar processing, cutting and quality monitoring of steel bar equipment production companies, an automated intelligent optimization method and system for steel bar cutting is needed. It can monitor the equipment operation status in real time, modify the working parameters of steel bar processing equipment, remotely download the equipment control program and locate the equipment. The remote monitoring system can realize real-time monitoring of key parameters in the operation of steel bar processing equipment, facilitate the maintenance and management of steel bar processing equipment, improve the intelligence level of steel bar processing equipment, and ultimately improve the efficiency and quality of steel bar processing. Summary of the invention
[0004] One or more embodiments of this specification provide a method for intelligent optimization of steel bar processing based on computer vision, including:
[0005] S1. Collect cross-sectional images and transverse images of the steel bar pile through a camera;
[0006] S2. Preprocessing the end image and the transverse image, obtaining the number and length of steel bars based on the end image and the transverse image, and obtaining steel bar data;
[0007] S3. Based on the existing material list requirements and the steel bar data, input the trained dynamic programming model to obtain the steel bar cutting plan;
[0008] S4. Based on the transverse image, the steel bar cutting plan is judged to be out of limit, and the cutting plan is optimized according to the judgment result to obtain the final cutting plan to achieve precise cutting.
[0009] Furthermore, the number of steel bars is obtained based on the end face image, and the specific method is as follows:
[0010] The YOLOv5 algorithm is used to classify the end face image, identify and extract the cross-sectional profile of the steel bar;
[0011] Detect and locate the position of the steel bars with rectangular frames, and calculate the number of steel bar rectangular frames;
[0012] Get the steel bar quantity string according to the number of steel bar rectangles.
[0013] Furthermore, the length of the steel bar is obtained based on the transverse image, and the specific method is as follows:
[0014] Use image segmentation technology to extract the steel bar mask and mark the location and range of the steel bars;
[0015] The length limit is determined by obtaining the position and angle of the camera based on the horizontal image, and the steel bar length is calculated based on the geometric relationship of the steel bar segmentation range.
[0016] Furthermore, based on the existing material list requirements and the steel bar data, the trained dynamic programming model is input to obtain the steel bar cutting plan. The specific method is as follows:
[0017] The objective function is established with the goal of achieving the minimum use of steel bar raw materials while meeting the steel bar cutting requirements. The optimal cutting method is when the remaining material after cutting is no larger than the section with the smallest cutting length, that is:
[0018] L-[a1×c(j,1)+a2×(j,2)+...+an×c(j,n)]≤min(an);
[0019] The objective function is defined as follows:
[0020]
[0021] Where L is the length of the steel bar, a1, a2, …, an are the cutting lengths, and the corresponding number of steel bars are b1, b2, …, bn respectively; c(j,i) is the number of corresponding cutting lengths in the single raw material segmentation method; x1, x2, …, xn represents the number of times each segmentation method is used.
[0022] Furthermore, the constraint equation of the objective function is as follows:
[0023] AX ≥ b;
[0024] Among them, matrix A and matrix X represent the number of adoptions of each segmentation method, and matrix b represents the number of corresponding steel bar cutting requirements.
[0025] Furthermore, the method further comprises:
[0026] First, sort the cutting lengths from large to small, and give priority to cutting the longest cutting lengths.
[0027] Furthermore, the specific method for judging the over-limit of the steel bar cutting scheme based on the transverse image is as follows:
[0028] The transverse image is identified and classified, and the steel bar area in the transverse image is segmented. The steel bar segmentation result is segmented with a mask, and then processed by the maximum connected domain to realize the steel bar over-limit judgment.
[0029] One or more embodiments of this specification provide a computer vision-based intelligent optimization system for steel bar processing, including:
[0030] Image acquisition module: used to acquire cross-sectional images and transverse images of the steel bar pile through a camera;
[0031] Image processing module: used for preprocessing the end face image and the transverse image, obtaining the number and length of steel bars based on the end face image and the transverse image, and obtaining steel bar data;
[0032] Scheme planning module: used to input the trained dynamic programming model based on the existing material list requirements and the steel bar data to obtain the steel bar cutting scheme;
[0033] Scheme optimization module: used to make over-limit judgment on the steel bar cutting scheme based on the transverse image, optimize the cutting scheme according to the judgment result, obtain the final cutting scheme, and realize precise cutting.
[0034] One or more embodiments of the present specification provide an electronic device, including:
[0035] A processor; and a memory arranged to store computer executable instructions, which, when executed, enable the processor to implement the steps of the above-mentioned computer vision-based intelligent optimization method for steel bar processing.
[0036] One or more embodiments of the present specification provide a storage medium for storing computer-executable instructions, which, when executed, implement the steps of the above-mentioned computer vision-based intelligent optimization method for steel bar processing.
[0037] The present invention realizes the automation and optimization of the steel bar cutting plan through the application of camera image acquisition and dynamic programming model, improves work efficiency, reduces costs, enhances adaptability and manageability, and meets the requirements of environmental protection and energy saving.
[0038] The above description is only an overview of the technical solution of the present invention. In order to more clearly understand the technical means of the present invention, it can be implemented according to the contents of the specification. In order to make the above and other purposes, features and advantages of the present invention more obvious and easy to understand, the specific implementation methods of the present invention are listed below. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate one or more embodiments of this specification or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments recorded in this specification. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.
[0040] Figure 1 A flowchart of a computer vision-based intelligent optimization method for steel bar processing provided in one or more embodiments of this specification;
[0041] Figure 2 A flowchart of processing an input end face image using the YOLOv5 algorithm provided in one or more embodiments of this specification;
[0042] Figure 3 This is a diagram showing the effect of processing an input end face image using the YOLOv5 algorithm provided in one or more embodiments of this specification;
[0043] Figure 4 A schematic diagram of over-limit judgment of a steel bar cutting scheme based on a transverse image provided in one or more embodiments of this specification;
[0044] Figure 5 A steel bar processing monitoring screen diagram of a steel bar processing monitoring intelligent platform provided in one or more embodiments of this specification;
[0045] Figure 6 A steel bar quantity report window diagram of a steel bar processing monitoring intelligent platform provided in one or more embodiments of this specification;
[0046] Figure 7 A schematic diagram of the composition of a computer vision-based intelligent optimization system for steel bar processing provided in one or more embodiments of this specification;
[0047] Figure 8 A schematic diagram of the structure of an electronic device provided for one or more embodiments of this specification. DETAILED DESCRIPTION
[0048] In order to enable those skilled in the art to better understand the technical solutions in one or more embodiments of this specification, the following will be combined with the drawings in one or more embodiments of this specification to clearly and completely describe the technical solutions in one or more embodiments of this specification. Obviously, the described embodiments are only part of the embodiments of this specification, not all of the embodiments. Based on one or more embodiments of this specification, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of this document.
[0049] Method Embodiment
[0050] According to an embodiment of the present invention, a method for intelligent optimization of steel bar processing based on computer vision is provided. Figure 1 A flowchart of a computer vision-based intelligent optimization method for steel bar processing provided in one or more embodiments of this specification, such as Figure 1 As shown, the intelligent optimization method for steel bar processing based on computer vision according to an embodiment of the present invention specifically includes:
[0051] S1. Collect cross-sectional images and transverse images of the steel bar pile through a camera.
[0052] Set the camera position, adjust the camera angle and height according to the actual situation of the steel bar pile, ensure that the cross-sectional and transverse images of the steel bar pile can be fully captured, and when acquiring cross-sectional images, ensure that the camera photographing the cross-sectional area of the steel bar pile is parallel to the cross-sectional area. When acquiring transverse images, rotate the camera to the transverse direction of the steel bar pile, ensure that the camera is parallel to the transverse direction, adjust the camera's focal length and exposure, and acquire each acquisition object three times to ensure that an accurately focused and clear image is obtained.
[0053] S2. Preprocess the end face image and the transverse image, and obtain the number and length of the steel bars based on the end face image and the transverse image to obtain steel bar data.
[0054] The collected end face image and transverse image are synchronized to the intelligent platform, and the number of steel bars is obtained based on the end face image, such as Figure 2 As shown, the specific method is:
[0055] The YOLOv5 algorithm is used to classify the input end face image, identify and extract the cross-sectional contour of the steel bar; the cross-sectional contour of the steel bar is detected, and the position of each detected steel bar is marked with a rectangular frame, such as Figure 3 As shown, the number of marked rectangular boxes is calculated; the steel bar number string is obtained according to the number of steel bar rectangular boxes, and the obtained steel bar number string is uploaded to the platform for data interaction.
[0056] The steel bar length is obtained based on the transverse image, and the specific method is as follows:
[0057] The image segmentation technology is used to extract the steel bar segmentation mask from the acquired transverse image, and the position and range of the steel bars are marked; the length limit is determined according to the position and angle of the camera acquired from the transverse image, and the steel bar length is calculated based on the geometric relationship of the steel bar segmentation range.
[0058] S3. Based on the existing material list requirements and the steel bar data, the trained dynamic programming model is input to obtain the steel bar cutting plan.
[0059] The objective function is established with the goal of achieving the minimum use of steel bar raw materials while meeting the steel bar cutting requirements. The optimal cutting method is when the remaining material after cutting is no larger than the section with the smallest cutting length, that is:
[0060] L-[a1×c(j,1)+a2×(j,2)+...+an×c(j,n)]≤min(an);
[0061] The objective function is defined as follows:
[0062]
[0063] Among them, L is the fixed length of the raw material steel bar, a1, a2, …, an are the cutting lengths, and the corresponding number of steel bars cut are b1, b2, …, bn respectively; c(j,i) is the number of corresponding cutting lengths in the single raw material segmentation method; x1, x2, …, xn represents the number of times each segmentation method is used.
[0064] The cut length is L, and the maximum length that can be cut is:
[0065] int(L / ai)
[0066] Among them, int is the remainder rounded down, so there are 0 to int(L / ai) options for selecting ai. Assuming L = 9, ai = 2.3, there are 4 selection methods (0, 1, 2, 3). Assuming that the selection method corresponding to a1 is c(j, 1), ai corresponds to c(j, i), and an corresponds to c(j, n); there are:
[0067] a1×c(j,1)+a2×(j,2)+...+an×c(j,n)≤0.
[0068] For a single steel bar, it is divided and enumerated. To prevent omissions in the enumeration, all feasible solutions are listed in a loop. First, the cutting lengths a1, a2, ..., an are sorted from large to small, and the long cutting length is preferentially selected for cutting, which is also convenient for setting constraints later.
[0069] The constraint equations set by the objective function are as follows:
[0070] AX ≥ b;
[0071] Among them, matrix A and matrix X represent the number of adoptions of each segmentation method, and matrix b represents the number of corresponding steel bar cutting requirements.
[0072] S4. Based on the transverse image, the steel bar cutting plan is judged to be out of limit, and the cutting plan is optimized according to the judgment result to obtain the final cutting plan to achieve precise cutting.
[0073] like Figure 4 As shown, the steel bar cutting plan is judged to be out of limit based on the transverse image: first, the transverse image is identified and classified, and the steel bar area in the transverse image is segmented, and then the steel bar segmentation result is segmented and masked, and then the maximum connected domain is processed to realize the steel bar out of limit judgment. Furthermore, the cutting plan is optimized according to the judgment result to obtain the final cutting plan, and the flat steel bar section is accurately cut in length.
[0074] Use an intelligent platform that integrates technology to quickly process, synchronize and monitor data information in real time.
[0075] By integrating the three functions of YOLOv5 algorithm for real-time detection of the number of steel bars, dynamic planning of steel bar cutting plan optimization, and PaddleSeg precise control of steel bar cutting, an intelligent platform for steel bar processing is established. Based on this platform, the data information processed by the three functional modules are interacted in real time, and the steel bar processing and cutting are comprehensively optimized to meet the indicators of the steel bar processing order project.
[0076] Some renderings of the intelligent platform for monitoring steel bar processing are shown below: Figure 5 , Figure 6 During the steel bar processing, the computer IP and the camera IP are changed to the same network segment. The size of the monitoring screen and the pan / tilt position are changed by controlling the adjustment buttons in this interface so that the appearance and shape of the steel bars can be observed more clearly, which is convenient for the steel bar quantity recognition function based on the YOLO algorithm. The KingView KvdbGrid control is used to generate a report on the steel bar quantity results of each monitoring screen, and the number of steel bars used in the steel bar processing process is identified and counted.
[0077] The beneficial effects of the present invention are as follows:
[0078] By using the trained dynamic programming model, the optimal steel bar cutting plan is generated based on the existing material list requirements and steel bar data, which can maximize the utilization of steel bar materials, reduce waste and lower costs; the cutting plan is judged to be over-limit to ensure the feasibility and effectiveness of the cutting plan; steel bar detection and cutting are automated to reduce labor costs; it can be adjusted and optimized according to different material list requirements and steel bar data to adapt to different production scenarios and changes in demand, and has strong adaptability and scalability; in summary, the present invention realizes the automation and optimization of steel bar cutting plans through the application of camera image acquisition and dynamic programming models, improves work efficiency, reduces costs, enhances adaptability and manageability, and meets the requirements of environmental protection and energy saving.
[0079] System Example
[0080] According to an embodiment of the present invention, a computer vision-based intelligent optimization system for steel bar processing is provided. Figure 7 A schematic diagram of the composition of a computer vision-based intelligent optimization system for steel bar processing provided in one or more embodiments of this specification, such as Figure 7 As shown, the intelligent optimization system for steel bar processing based on computer vision according to an embodiment of the present invention specifically includes:
[0081] Image acquisition module 710: used to acquire cross-sectional images and transverse images of the steel bar pile through a camera;
[0082] Image processing module 720: used to pre-process the end face image and the transverse image, and obtain the number and length of steel bars based on the end face image and the transverse image to obtain steel bar data;
[0083] Scheme planning module 730: used to input the trained dynamic programming model based on the existing material list requirements and the steel bar data to obtain the steel bar cutting scheme;
[0084] The scheme optimization module 740 is used to make an over-limit judgment on the steel bar cutting scheme based on the transverse image, optimize the cutting scheme according to the judgment result, obtain the final cutting scheme, and realize precise cutting.
[0085] The embodiment of the present invention is a system embodiment corresponding to the above-mentioned method embodiment. The specific operations of each module can be understood by referring to the description of the method embodiment, which will not be repeated here.
[0086] Device Example 1
[0087] An embodiment of the present invention provides an electronic device, such as Figure 8As shown, it includes: a memory 80, a processor 82, and a computer program stored in the memory 80 and executable on the processor 82. When the computer program is executed by the processor 82, the following method steps are implemented:
[0088] S1. Collect cross-sectional images and transverse images of the steel bar pile through a camera;
[0089] S2. Preprocessing the end image and the transverse image, obtaining the number and length of steel bars based on the end image and the transverse image, and obtaining steel bar data;
[0090] S3. Based on the existing material list requirements and the steel bar data, input the trained dynamic programming model to obtain the steel bar cutting plan;
[0091] S4. Based on the transverse image, the steel bar cutting plan is judged to be out of limit, and the cutting plan is optimized according to the judgment result to obtain the final cutting plan to achieve precise cutting.
[0092] Device Example 2
[0093] An embodiment of the present invention provides a computer-readable storage medium, on which a program for implementing information transmission is stored. When the program is executed by the processor 82, the following method steps are implemented:
[0094] S1. Collect cross-sectional images and transverse images of the steel bar pile through a camera;
[0095] S2. Preprocessing the end image and the transverse image, obtaining the number and length of steel bars based on the end image and the transverse image, and obtaining steel bar data;
[0096] S3. Based on the existing material list requirements and the steel bar data, input the trained dynamic programming model to obtain the steel bar cutting plan;
[0097] S4. Based on the transverse image, the steel bar cutting plan is judged to be out of limit, and the cutting plan is optimized according to the judgment result to obtain the final cutting plan to achieve precise cutting.
[0098] The computer-readable storage medium in this embodiment includes, but is not limited to, ROM, RAM, magnetic disk or optical disk, etc.
[0099] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, rather than to limit it. Although the present invention has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or replace some or all of the technical features therein with equivalents. However, these modifications or replacements do not cause the essence of the corresponding technical solutions to deviate from the scope of the technical solutions of the embodiments of the present invention.
Claims
1. A computer vision-based intelligent optimization method for steel bar processing, characterized in that: include: S1. Collect cross-sectional images and transverse images of the steel bar pile through a camera; S2. Preprocessing the end image and the transverse image, obtaining the number and length of steel bars based on the end image and the transverse image, respectively, to obtain steel bar data; S3. Based on the existing material list requirements and the steel bar data, input the trained dynamic programming model to obtain the steel bar cutting plan; S4. Based on the transverse image, the steel bar cutting plan is judged to be out of limit, and the cutting plan is optimized according to the judgment result to obtain the final cutting plan to achieve precise cutting.
2. The method according to claim 1, characterized in that: The number of steel bars is obtained based on the end face image, and the specific method is as follows: The YOLOv5 algorithm is used to classify the end face image, identify and extract the cross-sectional profile of the steel bar; Detect and locate the position of the steel bars with rectangular frames, and calculate the number of steel bar rectangular frames; Get the steel bar quantity string according to the number of steel bar rectangles.
3. The method according to claim 1, characterized in that: The steel bar length is obtained based on the transverse image, and the specific method is as follows: Use image segmentation technology to extract the steel bar mask and mark the location and range of the steel bars; The length limit is determined by obtaining the position and angle of the camera based on the horizontal image, and the steel bar length is calculated based on the geometric relationship of the steel bar segmentation range.
4. The method according to claim 1, characterized in that: Based on the existing material list requirements and the steel bar data, the trained dynamic programming model is input to obtain the steel bar cutting plan. The specific method is as follows: The objective function is established with the goal of achieving the minimum use of steel bar raw materials while meeting the steel bar cutting requirements. The optimal cutting method is when the remaining material after cutting is no larger than the section with the smallest cutting length, that is: L-[a1×c(j,1)+a2×(j,2)+...+an×c(j,n)]≤min(an); The objective function is defined as follows: Where L is the length of the steel bar, a1, a2, …, an are the cutting lengths, and the corresponding number of steel bars are b1, b2, …, bn respectively; c(j,i) is the number of corresponding cutting lengths in the single raw material segmentation method; x1, x2, …, xn represents the number of times each segmentation method is used.
5. The method according to claim 4, characterized in that The constraint equation of the objective function is as follows: AX ≥ b; Among them, matrix A and matrix X represent the number of adoptions of each segmentation method, and matrix b represents the number of corresponding steel bar cutting requirements.
6. The method according to claim 5, characterized in that The method further comprises: First, sort the cutting lengths from large to small, and give priority to cutting the longest cutting lengths.
7. The method according to claim 1, characterized in that The specific method for judging the over-limit of the steel bar cutting scheme based on the transverse image is as follows: The transverse image is identified and classified, and the steel bar area in the transverse image is segmented. The steel bar segmentation result is segmented with a mask, and then processed by the maximum connected domain to realize the steel bar over-limit judgment.
8. A computer vision-based intelligent optimization system for steel bar processing, characterized in that: include: Image acquisition module: used to acquire cross-sectional images and transverse images of the steel bar pile through a camera; Image processing module: used for preprocessing the end face image and the transverse image, obtaining the number and length of steel bars based on the end face image and the transverse image, and obtaining steel bar data; Scheme planning module: used to input the trained dynamic programming model based on the existing material list requirements and the steel bar data to obtain the steel bar cutting scheme; Scheme optimization module: used to make over-limit judgment on the steel bar cutting scheme based on the transverse image, optimize the cutting scheme according to the judgment result, obtain the final cutting scheme, and realize precise cutting.
9. An electronic device, characterized in that: include: processor; And, a memory arranged to store computer executable instructions, which, when executed, enable the processor to implement the steps of the computer vision-based intelligent optimization method for steel bar processing as described in any one of claims 1 to 7.
10. A storage medium, characterized in that: Used to store computer executable instructions, which, when executed, implement the steps of the intelligent optimization method for steel bar processing based on computer vision as described in any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent steel bar machining method, device and system
CN111612412A
Steel bar size measuring method and system based on image processing
CN111932508A
Intelligent optimization method and system for steel bar blanking, and storable medium
CN113806690A
Rebar number identification method, device and equipment and storage medium
CN114494767A
Rebar identification and measurement method and device
CN115170489A
Cited By
Calculation method for planned cutting of silicon steel sheet
CN119149869A
