Copper rod surface treatment management and control method, system, equipment and medium
The oxide scale area of the copper rod surface is obtained through video monitoring and preset conveying modes, and the pickling or grinding control program is flexibly selected, which solves the problem of surface treatment mode curing in the existing technology, and improves production efficiency and product quality.
Patent Information
- Application Number
- CN202510117279.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-01-24
- Publication Date
- 2025-03-07
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
The existing copper rod production lines are relatively solidified in the surface treatment mode, and it is difficult to choose an excellent treatment mode, which affects production efficiency and product quality.
Through video monitoring and preset conveying mode, the scale area of the copper rod surface is obtained, and the control program for pickling or polishing is flexibly selected according to the area size until the scale is completely removed.
The flexibly selects the scale removal mode according to the scale area, improves the processing efficiency and effect, and meets the requirements of economical and high-quality production.
Smart Images

Figure CN119579582A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of copper rod quality control, and in particular to a copper rod surface treatment control method, system, equipment and medium. Background Art
[0002] Copper rod is the raw material for the production of wires and cables. It is generally produced with electrolytic copper and has a lower resistivity than low-oxygen copper rod. Therefore, in the production of products with more stringent requirements on resistance, oxygen-free copper rod is more economical. The manufacture of oxygen-free copper rod requires higher quality raw materials.
[0003] At present, the surface treatment process of copper rods is: descaling-washing-polishing-washing-coloring-washing-drying and other post-treatments. In the descaling and polishing process, the curing mode is generally used. For example, the descaling adopts a fixed pickling or polishing method. Pickling is easy to cause excessive corrosion to the surface of the copper rod, affecting the surface quality of the copper rod. It is generally suitable for large-area scale removal. The polishing and grinding method for large-area scale is not only inefficient, but also has poor descaling effect. It is suitable for small-area scale removal. It is difficult to flexibly select the descaling method according to the size of the scale on the copper rod surface, that is, it is difficult to select a better surface treatment mode, which is not conducive to the efficient energy saving and high-quality production requirements of the copper rod production line. Summary of the invention
[0004] The main purpose of the present application is to provide a copper rod surface treatment control method, system, equipment and medium, aiming to solve the technical problem that the surface treatment mode of the existing copper rod production line is relatively rigid and it is difficult to select a better surface treatment mode.
[0005] To achieve the above objectives, the present application provides a copper rod surface treatment control method, comprising the following steps: Acquire a first monitoring video of a target copper rod being transported to a first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod rotates while being transported in a straight line; Decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod; Acquire the oxide scale area on the surface of the target copper rod according to the multiple first surface images; Determine whether the scale area is greater than a preset first threshold value, if so, obtain the pickling control program, if not, obtain the grinding control program; Determine whether the preset condition is met. If not, return to obtaining the first monitoring video of the target copper rod being transported to the first monitoring area based on the preset transport mode. If so, end; wherein the preset condition is that the oxide scale area is 0.
[0006] Optionally, obtaining the oxide scale area on the surface of the target copper rod according to the plurality of first surface images includes: Performing grayscale processing on the plurality of first surface images to obtain a plurality of grayscale images; According to the gray value range distribution of each gray image, the oxide scale area in each gray image is extracted; Filter out the grayscale image with the largest oxide scale area and mark it as the first grayscale image; The oxide scale area S1 corresponding to the oxide scale region in the first grayscale image is obtained.
[0007] Optionally, after obtaining the oxide scale area S1 corresponding to the oxide scale area in the first grayscale image, the method further includes: Screening out a second grayscale image corresponding to the first grayscale image; wherein the first grayscale image corresponds to half of the surface of the target copper rod, and the second grayscale image corresponds to the other half of the surface of the target copper rod; Obtaining an oxide scale area S2 corresponding to the oxide scale region in the second grayscale image; Obtain the oxide scale area S on the surface of the target copper rod; where S=S1+S2.
[0008] Optionally, obtaining an oxide scale area S1 corresponding to an oxide scale region in the first grayscale image includes: Extracting the contour of the oxide scale region in the first grayscale image; Identify the convex edge points corresponding to the four sides of the oxide scale area contour; According to the four protruding edge points, a target rectangle is constructed; wherein the four sides of the target rectangle coincide with the four protruding edge points respectively; Get the measured area S' of the target rectangle; According to the measured area S', the oxide scale area S1 is obtained; wherein S1=S'-K1*S', and K1 is the first adjustment coefficient.
[0009] Optionally, after the preset conditions are met, the method further includes: Acquire a second monitoring video of the target copper rod after the oxide scale is removed and transported to the second monitoring area based on a preset transport mode; Decomposing the second monitoring video frame by frame to obtain a plurality of second surface images of the target copper rod; Obtaining the scratch length on the surface of the target copper rod according to the plurality of second surface images; Determine whether the scratch length is greater than a preset second threshold value. If so, obtain the fine grinding control program; if not, obtain the water washing control program.
[0010] Optionally, obtaining the scratch length on the surface of the target copper rod according to the plurality of second surface images includes: performing binarization processing on the plurality of second surface images to obtain a plurality of black-and-white images; Identify the contour lines corresponding to the scratches in each black and white image; Filter out the black-and-white image with the longest scratch outline and mark it as the target black-and-white image; Get the corresponding scratch length in the target black and white image.
[0011] Optionally, obtaining the corresponding scratch length in the target black-and-white image includes: Connecting two end points of the contour line corresponding to the scratch in the target black-and-white image to obtain a first straight line segment, and obtaining a length h1 of the first straight line segment; Taking the midpoint of the first straight line segment as a starting point, construct a second straight line segment intersecting with the contour line of the scratch, and obtaining the length h2 of the second straight line segment; wherein the second straight line segment is perpendicular to the first straight line segment; According to the length h1 and the length h2, the corresponding scratch length H in the target black-and-white image is obtained; wherein H=h1+K2*h2, and K2 is the second adjustment coefficient.
[0012] To achieve the above objectives, the present application also provides a copper rod surface treatment control system, including: A video acquisition module, used to acquire a first monitoring video of a target copper rod being transported to a first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod rotates while being transported in a straight line; A video decomposition module, used for decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod; A data processing module, used for acquiring the oxide scale area on the surface of the target copper rod according to the plurality of first surface images; A program calling module is used to determine whether the scale area is greater than a preset first threshold value, and if so, obtain a pickling control program, and if not, obtain a grinding control program; The iteration module is used to determine whether the preset condition is met. If not, it returns to obtaining the first monitoring video of the target copper rod being transported to the first monitoring area based on the preset transport mode. If so, it ends; wherein the preset condition is that the oxide scale area is 0.
[0013] To achieve the above objectives, the present application also provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above method.
[0014] To achieve the above objectives, the present application also provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the above method.
[0015] The beneficial effects that this application can achieve are as follows: The present application adopts a video monitoring method and combines it with a preset conveying mode, so that a first monitoring video containing information of the upper and lower surfaces of the target copper rod can be collected at the same time, so that it can be decomposed frame by frame into multiple first surface images of the target copper rod. Therefore, the upper and lower surfaces of the target copper rod can be respectively reflected in different first surface images, and the oxide scale features corresponding to the upper and lower surfaces of the target copper rod can be respectively identified to ensure the accuracy and comprehensiveness of the identification. Then, according to the first surface image, the oxide scale area corresponding to the surface of the target copper rod can be calculated and obtained, and a first threshold is set to determine whether the oxide scale area is greater than the first threshold. If so, it means that the oxide scale area is identified to be large and suitable for pickling to remove the oxide scale, then the pickling control program is obtained. If not, it means that the oxide scale area is small and suitable for grinding to remove the oxide scale, then the grinding control program is obtained, so as to realize the flexible selection of the better oxide scale removal mode according to the size of the oxide scale area, and a comprehensive balance can be made between the oxide scale removal effect and the processing efficiency to meet the economic requirements as much as possible, and then return to the first monitoring video of the target copper rod being transported to the first monitoring area based on the preset conveying mode until the preset conditions are met to ensure that the oxide scale is completely removed. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the following is a brief introduction to the drawings required for the specific embodiments or the prior art description. In all drawings, similar elements or parts are generally identified by similar reference numerals. In the drawings, the elements or parts are not necessarily drawn according to the actual scale.
[0017] Figure 1 This is a schematic flow chart of a copper rod surface treatment control method in an embodiment of the present application; Figure 2 A schematic diagram of the principle of constructing a target rectangle based on the extracted oxide scale area contour in an embodiment of the present application; Figure 3 A schematic diagram of a black and white image with scratches identified in an embodiment of the present application; Figure 4 It is a schematic diagram of the principle of constructing the first straight line segment and the second straight line segment based on the contour line of the scratch in the embodiment of the present application.
[0018] Reference numerals: 110 - target copper rod, 120 - oxide scale area contour, 130 - protruding edge point, 140 - target rectangle, 150 - contour line, 160 - first straight line segment, 170 - second straight line segment.
[0019] The realization of the purpose, functional features and advantages of this application will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0020] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.
[0021] It should be noted that all directional indications in the embodiments of the present application (such as up, down, left, right, front, back, etc.) are only used to explain the relative position relationship, movement status, etc. between the components in a certain specific posture. If the specific posture changes, the directional indication will also change accordingly.
[0022] In this application, unless otherwise clearly specified and limited, the terms "connection", "fixation", etc. should be understood in a broad sense. For example, "connection" can be a fixed connection, a detachable connection, or an integral connection; it can be a mechanical connection or an electrical connection; it can be a direct connection or an indirect connection through an intermediate medium, it can be the internal connection of two elements or the interaction relationship between two elements, unless otherwise clearly defined. For ordinary technicians in this field, the specific meanings of the above terms in this application can be understood according to specific circumstances.
[0023] In addition, if there are descriptions involving "first", "second", etc. in the embodiments of the present application, the descriptions of "first", "second", etc. are only used for descriptive purposes and cannot be understood as indicating or implying their relative importance or implicitly indicating the number of technical features indicated. Therefore, the features defined as "first" and "second" may explicitly or implicitly include at least one of the features. In addition, the meaning of "and / or" appearing in the full text includes three parallel schemes. Taking "A and / or B" as an example, it includes scheme A, or scheme B, or a scheme that satisfies both A and B. In addition, the technical solutions between the various embodiments can be combined with each other, but it must be based on the ability of ordinary technicians in the field to implement. When the combination of technical solutions is contradictory or cannot be implemented, it should be considered that such a combination of technical solutions does not exist and is not within the scope of protection required by this application.
[0024] Example 1 Reference Figure 1-Figure 4 This embodiment provides a copper rod surface treatment control method, comprising the following steps: Acquire a first monitoring video of the target copper rod 110 being transported to the first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod 110 rotates while being transported in a straight line; Decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod 110; Acquire the oxide scale area on the surface of the target copper rod 110 according to the multiple first surface images; Determine whether the scale area is greater than a preset first threshold value, if so, obtain the pickling control program, if not, obtain the grinding control program; Determine whether the preset condition is met. If not, return to obtaining the first monitoring video of the target copper rod 110 being transported to the first monitoring area based on the preset transport mode. If so, end; wherein the preset condition is that the oxide scale area is 0.
[0025] In this embodiment, by adopting the video monitoring method and combining with the preset conveying mode, the first monitoring video containing the upper and lower surface information of the target copper rod 110 can be collected at the same time, so that it can be decomposed frame by frame into multiple first surface images of the target copper rod 110. Therefore, the upper and lower surfaces of the target copper rod 110 can be respectively reflected in different first surface images, and the oxide scale features corresponding to the upper and lower surfaces of the target copper rod 110 can be respectively identified to ensure the accuracy and comprehensiveness of the identification. Then, according to the first surface image, the oxide scale area corresponding to the surface of the target copper rod 110 can be calculated and obtained, and a first threshold is set to judge the oxide scale area. Whether the scale area is greater than the first threshold, if so, it means that the scale area is large and suitable for pickling to remove the scale, then the pickling control program is obtained, if not, it means that the scale area is small and suitable for grinding to remove the scale, then the grinding control program is obtained, so as to realize the flexible selection of the better descaling mode according to the size of the scale area, and to make a comprehensive balance between the descaling effect and the processing efficiency to meet the economic requirements as much as possible, and then return to the first monitoring video of obtaining the target copper rod 110 transported to the first monitoring area based on the preset conveying mode until the preset conditions are met to ensure that the scale is completely removed.
[0026] It should be noted that when the first monitoring video is collected by the corresponding camera, the camera is generally set above the target copper rod 110, which is convenient for information collection. The camera is connected to a computer terminal, which is configured with image processing software, and the collected first monitoring video information can be processed, including decomposition, identification and analysis, etc., and the data can be displayed in real time for viewing. Here, the existing image magnification algorithm can be used to enlarge the first surface image, so as to accurately identify the oxide scale feature. When it is necessary to return to the step of obtaining the first monitoring video of the target copper rod 110 delivered to the first monitoring area based on the preset conveying mode, the target copper rod 110 can be controlled to move backward by the production line conveying system, so that the corresponding section of the target copper rod 110 is returned to the first monitoring area, and the target copper rod 110 is controlled to move forward after the first monitoring video is collected. The above-mentioned first threshold is an area threshold, which can be set according to the actual process requirements. It should also be noted that the method of the present embodiment is mainly applicable to the surface treatment control of the copper rod with local oxide scale.
[0027] As an optional implementation, obtaining the oxide scale area on the surface of the target copper rod 110 according to the plurality of first surface images includes: Performing grayscale processing on the plurality of first surface images to obtain a plurality of grayscale images; According to the gray value range distribution of each gray image, the oxide scale area in each gray image is extracted; Filter out the grayscale image with the largest oxide scale area and mark it as the first grayscale image; The oxide scale area S1 corresponding to the oxide scale region in the first grayscale image is obtained.
[0028] In this embodiment, since the oxide scale formed after oxidation of the copper rod surface is darker in color and has a certain color difference from the color of the copper rod itself, the first surface image can be gray-processed to form a gray-scale image. The difference in color difference leads to different gray-scale values of the oxide scale and the copper rod itself. Therefore, according to the gray-scale value range distribution of the gray-scale image, the area within the gray-scale value range of the oxide scale can be identified as the oxide scale area. However, the multiple gray-scale images are images corresponding to different rotation angles of the target copper rod 110, that is, the relative angles of the oxide scale and the shooting angle of view are different, and the plane expansion area formed by the oxide scale area at different rotation angles will be different. Therefore, the gray-scale image with the largest oxide scale area should be screened out and marked as the first gray-scale image as a reference object. The gray-scale image with the largest oxide scale area indicates that the image is formed at the center of the oxide scale area facing the shooting angle of view, which can more realistically characterize the size of the oxide scale area, thereby accurately calculating the oxide scale area S1 and improving the accuracy of the image data.
[0029] As an optional implementation, after obtaining the oxide scale area S1 corresponding to the oxide scale area in the first grayscale image, the method further includes: Filter out a second grayscale image corresponding to the first grayscale image; wherein the first grayscale image corresponds to half of the surface of the target copper rod 110, and the second grayscale image corresponds to the other half of the surface of the target copper rod 110; Obtaining an oxide scale area S2 corresponding to the oxide scale region in the second grayscale image; The oxide scale area S on the surface of the target copper rod 110 is obtained; wherein S=S1+S2.
[0030] In this embodiment, since the first grayscale image can only show half of the surface of the target copper rod 110, there may be local oxide scale on the other half of the surface. Therefore, in order to improve data accuracy, a second grayscale image corresponding to the other half of the target copper rod 110 is also screened out. During screening, the first grayscale image can be identified according to the frame number of the first monitoring video to which it belongs, and then the corresponding second grayscale image can be identified by skipping frames. The number of skipped frames is related to the rotation speed of the target copper rod 110. After the second grayscale image is screened out, the oxide scale area S2 corresponding to the oxide scale area in the second grayscale image is identified and calculated, and the sum of the oxide scale area S1 and the oxide scale area S2 is output as the final oxide scale area S, which improves data accuracy and has good reference and guidance.
[0031] As an optional implementation manner, obtaining the oxide scale area S1 corresponding to the oxide scale region in the first grayscale image includes: Extracting the contour of the oxide scale region in the first grayscale image 120; Identify the protruding edge points 130 corresponding to the four sides of the oxide scale area contour 120; According to the four protruding edge points 130 , a target rectangle 140 is constructed; wherein the four sides of the target rectangle 140 coincide with the four protruding edge points 130 respectively; Obtaining the measured area S' of the target rectangle 140; According to the measured area S', the oxide scale area S1 is obtained; wherein S1=S'-K1*S', and K1 is the first adjustment coefficient.
[0032] In this embodiment, since the pattern formed by the oxide scale is generally irregular, if accurate calculation is performed, the data processing pressure is increased, the data processing efficiency is low, and it is not conducive to the efficient operation of the copper rod production line. Therefore, when calculating the oxide scale area S1 here, the oxide scale area contour 120 in the first grayscale image is first extracted, and then the most protruding edge points, that is, the protruding edge points 130, are found in the four sides of the oxide scale area contour 120. Then, based on the four protruding edge points 130, a target rectangle 140 containing the oxide scale area contour 120 can be constructed, and the measurement area S' of the target rectangle 140 is quickly calculated and substituted into Wherein S1=S'-K1*S', the evaluation value of the oxide scale area S1 can be quickly obtained. Since the measured area S' is larger than the true value of the oxide scale area S1, the area within the target rectangle 140 and outside the oxide scale area is an invalid area, but the shape of the oxide scale is not uniform, so the invalid area cannot be truly calculated. Therefore, K1*S' is introduced here to predict the value of the invalid area. Generally speaking, the larger S' is, the larger the invalid area is, that is, the larger K1*S' is. Here, the first adjustment coefficient K1 can be obtained according to big data training, and the oxide scale area S1 finally calculated can be closer to the true value and improve the data processing efficiency.
[0033] It should be noted that the calculation method of the oxide scale area S2 corresponding to the oxide scale region in the second grayscale image is the same as the calculation method of the oxide scale area S1, and a more realistic oxide scale area S is finally calculated.
[0034] As an optional implementation manner, after the preset conditions are met, the method further includes: Acquire a second monitoring video of the target copper rod 110 after the oxide scale is removed and transported to the second monitoring area based on a preset transport mode; Decomposing the second monitoring video frame by frame to obtain a plurality of second surface images of the target copper rod 110; Acquire the scratch length on the surface of the target copper rod 110 according to the plurality of second surface images; Determine whether the scratch length is greater than a preset second threshold value. If so, obtain the fine grinding control program; if not, obtain the water washing control program.
[0035] In this embodiment, after the oxide scale is removed, the scratches hidden behind the oxide scale can be clearly displayed on the surface of the target copper rod 110. The scratch is also one of the defects that affect the surface quality of the copper rod. Therefore, it is also necessary to consider scratch treatment as one of the key points of the copper rod surface treatment. Therefore, the oxide scale is removed first and then the scratch identification is performed to improve the identification accuracy. Similarly, the target copper rod 110 after the oxide scale is removed is continuously transported forward based on the preset conveying mode. When it is transported to the second monitoring area, a second monitoring video is collected and decomposed into multiple second surface images frame by frame, so that the corresponding scratch length on the surface of the target copper rod 110 can be identified. A second threshold value (i.e., the qualified value of the scratch length) is set here. If the scratch length is greater than the second threshold value, it means that the scratch length is too long, and then a fine grinding control program is obtained to perform fine grinding and polishing on the scratch. If the scratch length is less than or equal to the second threshold value, then a water washing control program is obtained to directly enter the water washing process, and the fine grinding process can be omitted, unnecessary processes are reduced, work efficiency is improved, and the concept of energy conservation and emission reduction is met.
[0036] As an optional implementation, obtaining the scratch length on the surface of the target copper rod 110 according to the plurality of second surface images includes: performing binarization processing on the plurality of second surface images to obtain a plurality of black-and-white images; Identify the contour line corresponding to the scratch in each black and white image 150; Filter out the black-and-white image with the longest scratch contour 150 and mark it as the target black-and-white image; Get the corresponding scratch length in the target black and white image.
[0037] In this embodiment, since the scratch is relatively long and thin and difficult to identify directly, the second surface image is binarized to obtain a black and white image, that is, the scratch is converted into a black and thin contour line 150. Also, considering the relative angle relationship between the rotation angle of the target copper rod 110 and the shooting angle, the black and white image with the longest scratch contour line 150 is selected and marked as the target black and white image as a reference object. The calculated scratch length is closer to the actual length, so as to improve data accuracy, and has strong reference and guidance.
[0038] It should be noted that when a black-and-white image has a contour line 150 formed by multiple scratches, the sum of the lengths of the multiple scratches should be calculated simultaneously as the total length of the contour line 150 of the black-and-white image. Here, the multiple scratches can be extracted and spliced into one contour line 150. By comparing the contour lines 150 in different black-and-white images with each other, the black-and-white image with the longest scratch contour line 150 can be screened out.
[0039] As an optional implementation manner, obtaining the corresponding scratch length in the target black-and-white image includes: Connecting two end points of the contour line 150 corresponding to the scratch in the target black-and-white image to obtain a first straight line segment 160, and obtaining a length h1 of the first straight line segment 160; A second straight line segment 170 intersecting the contour line 150 of the scratch is constructed with the midpoint of the first straight line segment 160 as a starting point, and a length h2 of the second straight line segment 170 is obtained; wherein the second straight line segment 170 is perpendicular to the first straight line segment 160; According to the length h1 and the length h2, the corresponding scratch length H in the target black-and-white image is obtained; wherein H=h1+K2*h2, and K2 is the second adjustment coefficient.
[0040] In this embodiment, since the contour line 150 of the scratch is generally an arc, if accurate length calculation is performed, the data processing efficiency will also be reduced. Therefore, the first straight line segment 160 is obtained based on the connection of the two end points of the contour line 150 of the scratch, and its length h1 can be quickly obtained. However, the length h1 is shorter than the arc-shaped contour line 150. K2*h2 is also introduced here as a compensation length. The closer the contour line 150 is to a straight line, the smaller K2*h2 is, and vice versa, K2*h2 is larger. Therefore, compensation can be performed according to the different curvatures of the contour line 150, so that the scratch length H finally calculated is close to the true value, thereby improving data reliability, and the lengths of the first straight line segment 160 and the second straight line segment 170 can be quickly calculated, thereby improving calculation efficiency. Similarly, the second adjustment coefficient K2 here can be obtained based on big data training.
[0041] Example 2 Based on the same inventive idea as the above-mentioned embodiment, this embodiment further provides a copper rod surface treatment control system, including: A video acquisition module is used to acquire a first monitoring video of the target copper rod 110 being transported to the first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod 110 rotates while being transported in a straight line; A video decomposition module, used for decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod 110; A data processing module, used for acquiring the oxide scale area on the surface of the target copper rod 110 according to the multiple first surface images; A program calling module is used to determine whether the scale area is greater than a preset first threshold value, and if so, obtain a pickling control program, and if not, obtain a grinding control program; The iteration module is used to determine whether the preset condition is met. If not, it returns to obtaining the first monitoring video of the target copper rod 110 transported to the first monitoring area based on the preset transport mode. If so, it ends; wherein the preset condition is that the oxide scale area is 0. The relevant explanations and examples of each module in the device of this embodiment can refer to the method of the aforementioned embodiment, and will not be repeated here.
[0042] Example 3 Based on the same inventive concept as the above-mentioned embodiment, this embodiment provides a computer device, which includes a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the above-mentioned method.
[0043] Example 4 Based on the same inventive concept as the aforementioned embodiment, this embodiment provides a computer-readable storage medium, on which a computer program is stored, and a processor executes the computer program to implement the aforementioned method.
[0044] The above are only preferred embodiments of the present application, and are not intended to limit the patent scope of the present application. Any equivalent structure or equivalent process transformation made using the contents of the present application specification and drawings, or directly or indirectly applied in other related technical fields, are also included in the patent protection scope of the present application.
Claims
1. A copper rod surface treatment control method, characterized in that: The following steps are involved: Acquire a first monitoring video of a target copper rod being transported to a first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod rotates while being transported in a straight line; Decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod; Acquire the oxide scale area on the surface of the target copper rod according to the plurality of first surface images; Determine whether the scale area is greater than a preset first threshold, if so, obtain a pickling control program, if not, obtain a grinding control program; Determine whether the preset condition is met. If not, return to the first monitoring video of obtaining the target copper rod transported to the first monitoring area based on the preset transport mode. If so, end; wherein the preset condition is that the oxide scale area is 0.
2. A copper rod surface treatment control method according to claim 1, characterized in that: The step of obtaining the oxide scale area on the surface of the target copper rod according to the plurality of first surface images comprises: Performing grayscale processing on the plurality of first surface images to obtain a plurality of grayscale images; Extracting the oxide scale area in each of the grayscale images according to the grayscale value range distribution of each of the grayscale images; Screening out the grayscale image with the largest oxide scale area and marking it as the first grayscale image; The oxide scale area S1 of the oxide scale region corresponding to the first grayscale image is obtained.
3. A copper rod surface treatment control method as claimed in claim 2, characterized in that: After obtaining the oxide scale area S1 corresponding to the oxide scale region in the first grayscale image, the method further includes: Filter out a second grayscale image corresponding to the first grayscale image; wherein the first grayscale image corresponds to half of the surface of the target copper rod, and the second grayscale image corresponds to the other half of the surface of the target copper rod; Obtaining an oxide scale area S2 corresponding to the oxide scale region in the second grayscale image; The oxide scale area S on the surface of the target copper rod is obtained; wherein S=S1+S2.
4. A copper rod surface treatment control method as claimed in claim 3, characterized in that: The obtaining of the oxide scale area S1 corresponding to the oxide scale region in the first grayscale image includes: Extracting the contour of the oxide scale area in the first grayscale image; Identify the protruding edge points corresponding to the four sides of the oxide scale area contour; According to the four protruding edge points, a target rectangle is constructed; wherein four sides of the target rectangle coincide with the four protruding edge points respectively; Obtaining the measured area S' of the target rectangle; According to the measured area S', the oxide scale area S1 is obtained; wherein S1=S'-K1*S', and K1 is the first adjustment coefficient.
5. A copper rod surface treatment control method according to any one of claims 1 to 4, characterized in that: After the preset conditions are met, the method further includes: Acquire a second monitoring video of the target copper rod after the oxide scale is removed and transported to the second monitoring area based on the preset transport mode; Decomposing the second monitoring video frame by frame to obtain a plurality of second surface images of the target copper rod; Acquiring the scratch length on the surface of the target copper rod according to the plurality of second surface images; Determine whether the scratch length is greater than a preset second threshold value, if so, obtain a fine grinding control program, if not, obtain a water washing control program.
6. A copper rod surface treatment control method as claimed in claim 5, characterized in that: The step of obtaining the scratch length on the surface of the target copper rod according to the plurality of second surface images comprises: performing binarization processing on the plurality of second surface images to obtain a plurality of black-and-white images; identifying the contour of the corresponding scratch in each of the black and white images; Screening out the black-and-white image with the longest scratch contour and marking it as a target black-and-white image; The corresponding scratch length in the target black-and-white image is obtained.
7. A copper rod surface treatment control method as claimed in claim 6, characterized in that: The obtaining of the corresponding scratch length in the target black-and-white image comprises: Connecting two end points of the contour line corresponding to the scratch in the target black-and-white image to obtain a first straight line segment, and obtaining a length h1 of the first straight line segment; Constructing a second straight line segment intersecting the outline of the scratch with the midpoint of the first straight line segment as a starting point, and obtaining a length h2 of the second straight line segment; wherein the second straight line segment is perpendicular to the first straight line segment; According to the length h1 and the length h2, the corresponding scratch length H in the target black-and-white image is obtained; wherein H=h1+K2*h2, and K2 is the second adjustment coefficient.
8. A copper rod surface treatment control system, characterized in that: include: A video acquisition module, used to acquire a first monitoring video of a target copper rod being transported to a first monitoring area based on a preset transport mode; wherein the preset transport mode is that the target copper rod rotates while being transported in a straight line; A video decomposition module, used for decomposing the first monitoring video frame by frame to obtain a plurality of first surface images of the target copper rod; A data processing module, used for acquiring the oxide scale area on the surface of the target copper rod according to the plurality of first surface images; A program calling module is used to determine whether the oxide scale area is greater than a preset first threshold value, and if so, obtain a pickling control program, and if not, obtain a grinding control program; The iteration module is used to determine whether the preset condition is met. If not, it returns to the first monitoring video of the target copper rod being transported to the first monitoring area based on the preset transport mode. If so, it ends; wherein the preset condition is that the oxide scale area is 0.
9. A computer device, characterized in that: The computer device includes a memory and a processor, wherein a computer program is stored in the memory, and the processor executes the computer program to implement a copper rod surface treatment control method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and the processor executes the computer program to implement a copper rod surface treatment control method according to any one of claims 1 to 7.
Citation Information
Patent Citations
Surface treatment method for steel materials
CN108399184A
Hot-rolled steel bar oxide skin stripping performance detection method
CN111624115A
Small sample pipeline defect intelligent identification system and method
CN115049600A
Equipment of polishing is got rid of to steel wire cinder
CN207724071U