Method and device for measuring lay length of steel wire rope
Through image processing and matching technology, real-time online monitoring of wire rope lay length is achieved, solving the problem of lack of automated monitoring methods in the coal mining industry and improving safety production levels.
Patent Information
- Application Number
- CN202410750029.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-12
- Publication Date
- 2024-10-08
AI Technical Summary
The coal mining industry lacks automated wire rope lay length monitoring methods, which affects coal mine production safety and worker safety.
Using image acquisition, closed operation processing, least squares fitting and DS-NCC matching technology, the wire rope image is collected without contact through the camera, the wire rope lay length is calculated, and real-time online monitoring is performed under operating conditions.
Real-time online monitoring of the wire rope lay length is realized, which improves the reliability of coal mine safety production and avoids changes to the mine hoist structure.
Smart Images

Figure CN118746249A_ABST
Abstract
Description
Technical Field
[0001] The invention belongs to the technical field of mining hoist monitoring, and in particular relates to a wire rope lay length measuring method and device. Background Art
[0002] Coal mining is an important basic industry in my country. Coal mining is a dangerous industry. The severe situation of coal mine safety production has always restricted the development of the coal mining industry and seriously threatened the health and life safety of coal miners. Lay monitoring of running wire ropes plays an important role in the safety of the coal mining industry, but there is currently a lack of corresponding automatic monitoring methods and devices. Summary of the invention
[0003] In order to solve the problem of the current lack of wire rope lay length monitoring method, the present invention provides a wire rope lay length measuring method, comprising the following steps:
[0004] S1. Collect wire rope images.
[0005] S2. Perform a closing operation on the image, first dilating and then corroding.
[0006] S3, scan two columns of pixels in the image. The pixel column is judged starting from the first pixel. If the previous pixel is 0 and the next pixel is 255, then store the pixel position and continue to judge. If the previous pixel is 255 and the next pixel is 0, then store the pixel position. The area between the two pixel positions is recorded as the white area. Find the center point of the white area as a rough estimate of the position.
[0007] S4. Using two of the roughly estimated two columns of pixels as starting points, find the associated center point and perform least squares fitting to obtain the slope of the straight line.
[0008] S5. Scan the remaining columns of pixels of the image and find the center point of the white area.
[0009] S6. Combine all the associated center points with the slope of the straight line to draw all the straight lines.
[0010] S7. Calculate the vertical distance between two adjacent groups of straight lines. If the vertical distance is less than a threshold value q, discard the second group of straight lines.
[0011] S8. Calculate the average distance between groups of all straight lines obtained and multiply it by the number of steel wire strands to obtain the lay length of the wire rope.
[0012] Further, S1 includes the following steps:
[0013] S1.1. When the wire rope is in operation, images of the wire rope are continuously collected and the collected images can be connected.
[0014] S1.2. Take out the collected image and rotate the image so that the position of the wire rope in the image is horizontal. Select the rectangular area containing the wire rope in the first of any two consecutive images, perform DS-NCC matching in the second image, and obtain the displacement matrix.
[0015] S1.3, the second picture is spliced with the first picture according to the displacement matrix to obtain the total picture.
[0016] Furthermore, in S1.2, the DS-NCC matching adopts the normalized crossover method, and the calculation formula is:
[0017]
[0018] Where: C NCC is the basis for similarity calculation, W is the width of the selected template, H is the height of the selected template, f(x,y) is the pixel value of the template at the coordinate (x,y), g(x',y') is the pixel value of the matching area at the coordinate (x',y'), x is the horizontal coordinate value in the template area, y is the vertical coordinate value in the template area, x' is the horizontal coordinate value in the matching area, and y' is the vertical coordinate value in the matching area.
[0019] The following steps are involved:
[0020] S1.2.1. Start a large-scale diamond search from the center of the search area. NCC As a criterion, when the maximum C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise proceed to S1.2.2.
[0021] S1.2.2. The maximum C found in S1.2.1 NCC The point where the position is located is used as the new search center point, and a large-scale search matching calculation is performed. When the largest C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise continue to S1.2.2.
[0022] S1.2.3, find the maximum C NCC The value corresponding to is taken as the center point, and a small range search is used for matching calculation to find the maximum C NCC The point corresponding to the value is the best matching point, and the algorithm ends.
[0023] Furthermore, the expansion calculation in S2 is: dst(x,y)=max[src(x+x',y+y')]; the corrosion calculation is: dst(x,y)=min[src(x+x,y+y)].
[0024] Wherein: dst(x, y) is the pixel value at the coordinate (x, y) after comparison and calculation, and src(x+x', y+y') is the pixel value near the center coordinate (x, y).
[0025] Furthermore, the least squares straight line fitting in S4 includes:
[0026] S4.1. The straight line is assumed to be y=bx+a.
[0027] S4.2. Establish vertical error:
[0028]
[0029] S4.3, take the derivative to get the parameters:
[0030]
[0031] S4.4, after sorting, we get the equation system:
[0032]
[0033] S4.5. Solve the system of equations to obtain the best estimates of the line parameters a and b:
[0034]
[0035] Where: a and b are the assumed straight line parameters, N is the total number of points, y is i is the ordinate of the i-th point, x i is the horizontal coordinate of the ith point.
[0036] Furthermore, in S1, the diameter of the steel wire rope accounts for 30%-50% of the image width.
[0037] The present invention also provides a wire rope lay length measuring device, using the above method, comprising a background plate, a base, a camera, an auxiliary light source, an ambient light sensor and a processing unit, wherein the camera, the auxiliary light source and the ambient light sensor are connected to the processing unit, data of the camera and the ambient light sensor are transmitted to the processing unit, and the camera and the auxiliary light source are controlled by the processing unit. The camera is installed on the base, the wire rope is arranged between the camera and the background plate, and the wire rope is photographed by the camera.
[0038] Furthermore, the base includes a support plate, a first slide groove is provided on the base, the camera is mounted on the support plate, and the support plate can slide along the first slide groove, so that the distance between the camera and the wire rope can be adjusted.
[0039] Furthermore, a plurality of steel wire ropes and cameras are provided, and each steel wire rope is photographed by a camera.
[0040] Furthermore, the plurality of steel wires are arranged in the same plane, and the plane is parallel to the background plate. The base also includes a plurality of mounting plates, and the support plate is provided with a second slide groove, and the direction of the second slide groove is parallel to the background plate. Each camera is mounted on a mounting plate, and the mounting plate can slide along the second slide groove.
[0041] The present invention sets up a camera on the front of the steel wire rope to collect images of the steel wire rope without contact, and does not need to change the original structure of the mine hoist, thereby enhancing practicality.
[0042] The method of the present invention can directly monitor the lay length of the steel wire rope in the running state, rather than just monitoring in the static state, and provides a new method for real-time online monitoring of the steel wire rope. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] In order to more clearly illustrate the embodiments of the present invention 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 of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0044] Figure 1 This is a lay length processing diagram of the steel wire rope of the present invention;
[0045] Figure 2 It is a redrawing diagram of the lay length of the steel wire rope of the present invention;
[0046] Figure 3 is a schematic diagram of the process of stitching pictures in S1 of the present invention;
[0047] Figure 4 It is a schematic diagram of the flow of the diamond search method in S1.2 of the present invention;
[0048] Figure 5 It is a schematic diagram of the structure of the present invention;
[0049] In the figure: 1. background plate; 2. base; 3. camera; 4. auxiliary light source; 5. ambient light sensor; 6. wire rope; 7. processing unit; 8. support plate; 9. first slide groove; 10. mounting plate; 11. second slide groove. DETAILED DESCRIPTION
[0050] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0051] Embodiment 1:
[0052] The wire rope lay length measurement method of this embodiment comprises the following steps:
[0053] S1. Using the camera 3 to collect the image of the steel wire rope 6. Preferably, in this embodiment, the diameter of the steel wire rope 6 accounts for 30%-50% of the image width.
[0054] S2. Perform a closing operation on the image, first dilating and then corroding.
[0055] like Figure 1 As shown, S3, scan two columns of pixels in the image. The pixel column is judged starting from the first pixel. If the previous pixel is 0 and the next pixel is 255, then the pixel position is stored and the judgment continues. If the previous pixel is 255 and the next pixel is 0, then the pixel position is stored. The area between the two pixel positions is recorded as the white area, and the center point of the white area is found as a rough estimate of the position.
[0056] S4. Using two of the roughly estimated two columns of pixels as starting points, find the associated center point and perform least squares fitting to obtain the slope of the straight line.
[0057] S5. Scan the remaining columns of pixels of the image and find the center point of the white area.
[0058] like Figure 2 As shown, S6, combine all associated center points with the slopes of the straight lines to draw all the straight lines.
[0059] S7. Calculate the vertical distance between two adjacent groups of straight lines. If the vertical distance is less than a threshold value q, discard the second group of straight lines.
[0060] S8. Calculate the average distance between groups of all straight lines obtained and multiply it by the number of steel wire strands to obtain the lay length of the wire rope.
[0061] like Figure 3 As shown, preferably, S1 includes the following steps:
[0062] S1.1. The steel wire rope 6 is in operation, and images of the steel wire rope 6 are continuously collected. The collected images can be connected.
[0063] S1.2, take out the collected image, rotate the image so that the position of the wire rope 6 in the image is horizontal. Select a rectangular area containing the wire rope 6 in the first of any two consecutive images, perform DS-NCC matching in the second image, and obtain a displacement matrix.
[0064] S1.3, the second picture is spliced with the first picture according to the displacement matrix to obtain the total picture.
[0065] The continuously shot pictures can be combined into a total picture. Compared with acquiring a picture to obtain an image of the wire rope 6 of the same length, a camera 3 of the same specification can be used to acquire a clearer image of the wire rope 6, and an image of the wire rope 6 in dynamic operation can be acquired.
[0066] like Figure 4 As shown, in this embodiment, preferably, in S1.2, the DS-NCC matching adopts the normalized crossover method, and the calculation formula is:
[0067]
[0068] The following steps are involved:
[0069] S1.2.1. Start a large-scale diamond search from the center of the search area. NCC As a criterion, when the maximum C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise proceed to S1.2.2.
[0070] S1.2.2. The maximum C found in S1.2.1 NCC The point where the position is located is used as the new search center point, and a large-scale search matching calculation is performed. When the largest C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise continue to S1.2.2.
[0071] S1.2.3, find the maximum C NCC The value corresponding to is taken as the center point, and a small range search is used for matching calculation to find the maximum C NCC The point corresponding to the value is the best matching point, and the algorithm ends.
[0072] In this embodiment, preferably, the expansion calculation in S2 is: dst(x, y) = max[src(x+x', y+y')]; the corrosion calculation is: dst(x, y) = min[src(x+x', y+y')].
[0073] Preferably, in this embodiment, the least squares straight line fitting in S4 includes:
[0074] S4.1. The straight line is assumed to be y=bx+a.
[0075] S4.2. Establish vertical error:
[0076]
[0077] S4.3, take the derivative to get the parameters:
[0078]
[0079] S4.4, after sorting, we get the equation system:
[0080]
[0081] S4.5. Solve the system of equations to obtain the best estimates of the line parameters a and b:
[0082]
[0083] The method of the present invention can directly monitor the lay length of the steel wire rope 6 in a running state, rather than just monitoring in a static state, and provides a new method for real-time online monitoring of the steel wire rope 6.
[0084] Embodiment 2:
[0085] like Figure 5 As shown, the wire rope lay length measuring device of this embodiment includes a background plate 1, a base 2, a camera 3, an auxiliary light source 4, an ambient light sensor 5 and a processing unit 7. The background plate 1 is preferably a white background plate, which is convenient for collecting clear wire rope 6 images.
[0086] The camera 3, the auxiliary light source 4 and the ambient light sensor 5 are connected to the processing unit 7, and the data of the camera 3 and the ambient light sensor 5 are transmitted to the processing unit 7, and the camera 3 and the auxiliary light source 4 are controlled by the processing unit 7. The ambient light sensor 5 is used to sense the light intensity at the wire rope 6, and when the ambient light intensity is low, the auxiliary light source 4 is turned on for supplementary light.
[0087] The camera 3 is installed on the base 2 , the steel wire rope 6 is arranged between the camera 3 and the background plate 1 , and the steel wire rope 6 is photographed by the camera 3 .
[0088] In this embodiment, the base 2 preferably includes a support plate 8, a first slide groove 9 is provided on the base 2, and the camera 3 is installed on the support plate 8. The support plate 8 can slide along the first slide groove 9, so that the distance between the camera 3 and the wire rope 6 can be adjusted, which is convenient for adjusting the diameter of the wire rope 6 to the width of the image.
[0089] Further preferably, there are a plurality of steel wire ropes 6 and cameras 3, and each steel wire rope 6 is photographed by a camera 3, so that images of multiple steel wire ropes 6 can be collected simultaneously, thereby determining the lay lengths of multiple steel wire ropes 6 at the same time.
[0090] Further preferably, the plurality of steel wires 6 are arranged in the same plane, and the plane is parallel to the background plate 1. The base 2 further comprises a plurality of mounting plates 10, and the support plate 8 is provided with a second slide groove 11, and the direction of the second slide groove 11 is parallel to the background plate 1. Each camera 3 is mounted on a mounting plate 10, and the mounting plate 10 can slide along the second slide groove 11, so as to facilitate the alignment of each camera 3 with the steel wire 6.
[0091] The present invention sets up the camera 3 on the front of the steel wire rope 6 to collect images of the steel wire rope 6 without contact, and does not need to change the original structure of the mine hoist, thereby enhancing practicality.
[0092] Embodiment 3:
[0093] The wire rope lay length measurement method of this embodiment is used in the measurement device of the above embodiment, and comprises the following steps:
[0094] This embodiment takes four cameras 3 and four steel ropes 6 as an example, and adjusts the positions of the cameras 3 so that the cameras 3 correspond to the steel ropes 6 .
[0095] The position of camera 3 is adjusted so that the diameter of wire rope 6 occupies 30%-50% of the width of the picture. The distance of camera 3 is determined by technicians in this field according to the actual situation on site using existing technology. No specific limitation is made here. The distance of camera 3 is mainly determined by the running speed of wire rope 6 on site and various parameters of the camera itself.
[0096] The image of the steel wire rope 6 is collected by the camera 3 in real time, and the pictures collected by the cameras 3 are taken out continuously. The pictures taken at the same time are taken as a group of pictures, and the pictures are rotated so that the position of the steel wire rope 6 in the pictures is in a horizontal state.
[0097] After rotating the picture so that the position of the wire rope 6 in the picture is horizontal, the two rotated pictures in each group are grayed by mapping Y=0.3R+0.59G+0.11B: where Y is the gray value, R is the red value, G is the green value, and B is the blue value; [a11, a12, a13; a21, a22, a23; a31, a32, a33] is the unrotated state array, and [a11, a21, a31; a12, a22, a32; a13, a23, a33] is the transposed array after rotation.
[0098] For each group of two pictures, a rectangular area is selected from the first picture, and DS-NCC matching is performed in the second picture to finally obtain the displacement matrix. The calculation formula of the normalized cross-correlation method is:
[0099]
[0100] The diamond search method is:
[0101] Step 1: Start a large-scale diamond search from the center of the search area, with C NCC As a criterion, the maximum C NCC When the value is at the matching center point, proceed to step 3, otherwise proceed to step 2.
[0102] Step 2: Take the maximum C found in step 1 NCCThe point where the position is located is used as the new search center point, and a large-scale search matching calculation is performed. When the largest C NCC When the value is at the matching center point, proceed to step 3, otherwise proceed to step 2.
[0103] Step 3: The maximum C found last time NCC The value corresponding to is taken as the center point, and a small range search is used for matching calculation to find the maximum C NCC The point corresponding to the value is the best matching point, and the algorithm ends.
[0104] The second image in each group is concatenated with the first image according to the displacement matrix to obtain the total image. The total image is closed. The closing operation is to connect the white areas displayed by the steel wire together. The specific operation process is expansion first and then corrosion. The expansion calculation is: dst(x,y)=max[src(x+x',y+y')]; the corrosion calculation is: dst(x,y)=min[src(x+x',y+y')].
[0105] Scan the middle column of the image to find the center point of the white area as a rough estimate of the position. The specific operation of column pixel scanning is: select the image column and start judging from the first pixel. If the previous pixel is 0 and the next pixel is 255, then remember the pixel position and continue judging. If the previous pixel is 255 and the next pixel is 0, then remember the pixel position. The area between these two pixel positions is the white area we are looking for.
[0106] Using two of the rough estimates as starting points, find the associated boundary points and perform the least squares fitting to get the slope of the straight line. The least squares straight line fitting calculation is as follows. The straight line is assumed to be y = bx + a, then the vertical error is established:
[0107]
[0108] Derivative parameters are obtained:
[0109]
[0110] After rearrangement, we get the system of equations:
[0111]
[0112] Solving the above system of equations gives the best estimates of the line parameters a and b:
[0113]
[0114] This will give you the slope of the straight line.
[0115] Scan the pixels of other columns except the middle column of the image and find the center point of the white area. The number of columns can be determined by the surface state of the wire rope 6. When there are many interferences such as oil stains on the surface of the wire rope 6 or the wire is seriously broken, select more columns to avoid interference.
[0116] Draw all the lines by combining all the center points with the slope of the line.
[0117] Calculate the vertical distance between the two groups of straight lines. If it is less than the threshold q, discard the second group of straight lines.
[0118] The wire rope lay length is calculated by averaging the distance between groups of all the straight lines obtained. In this embodiment, a wire rope with 7 strands of steel wire is used as an example. The method for calculating the lay length is: by finding the contour straight line to calculate the vertical distance between groups, and then multiplying the single average pixel value by 7 to obtain the wire rope lay length. The calculation is as follows: lay length = single average pixel value * 7.
[0119] Obviously, those skilled in the art can make various changes and modifications to the present invention without departing from the spirit and scope of the present invention. Thus, if these modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include these modifications and variations.
Claims
1. A method for measuring the lay length of a steel wire rope, characterized in that: The following steps are involved: S1, collecting wire rope images; S2, perform a closing operation on the image, first dilating and then corroding; S3, scan two columns of pixels in the image; judge the pixel column from the first pixel, if the previous pixel is 0 and the next pixel is 255, then store the pixel position and continue to judge, if the previous pixel is 255 and the next pixel is 0, then store the pixel position, and the area between the two pixel positions is recorded as the white area; find the center point of the white area as a rough estimate of the position; S4, using two of the roughly estimated two columns of pixels as starting points, finding the associated center point and performing least squares fitting to obtain the slope of the straight line; S5, scanning the remaining columns of pixels of the image and finding the center point of the white area; S6. Combine all the associated center points with the slopes of the lines to draw all the lines; S7, calculating the vertical distance between two adjacent groups of straight lines, and if it is less than a threshold value q, discarding the second group of straight lines; S8. Calculate the average distance between groups of all straight lines obtained and multiply it by the number of steel wire strands to obtain the lay length of the wire rope.
2. The method for measuring the lay length of a steel wire rope according to claim 1, characterized in that: S1 includes the following steps: S1.
1. The wire rope is in operation, and the wire rope images are continuously collected. The collected images can be connected; S1.
2. Take out the collected image and rotate the image so that the position of the wire rope in the image is horizontal; select a rectangular area containing the wire rope from the first of any two consecutive images. Perform DS-NCC matching in the second image and obtain the displacement matrix; S1.3, the second picture is spliced with the first picture according to the displacement matrix to obtain the total picture.
3. The method for measuring the lay length of a steel wire rope according to claim 2, characterized in that: In S1.2, DS-NCC matching uses the normalized crossover method, and the calculation formula is: Where: C NCC is the basis for similarity calculation, W is the width of the selected template, H is the height of the selected template, f(x,y) is the pixel value of the template at the coordinate (x,y), g(x',y') is the pixel value of the matching area at the coordinate (x',y'), x is the horizontal coordinate value in the template area, y is the vertical coordinate value in the template area, x' is the horizontal coordinate value in the matching area, and y' is the vertical coordinate value in the matching area; The following steps are involved: S1.2.
1. Start a large-scale diamond search from the center of the search area. NCC As a criterion, when the maximum C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise proceed to S1.2.2; S1.2.
2. The maximum C found in S1.2.1 NCC The point where the position is located is used as the new search center point, and a large-scale search matching calculation is performed. When the largest C NCC When the value is at the matching center point, proceed to S1.2.3, otherwise continue to S1.2.2; S1.2.3, find the maximum C NCC The value corresponding to is taken as the center point, and a small range search is used for matching calculation to find the maximum C NCC The point corresponding to the value is the best matching point, and the algorithm ends.
4. The method for measuring the lay length of a steel wire rope according to claim 1, characterized in that: The expansion calculation in S2 is: dst(x,y)=max[src(x+x',y+y')]; the corrosion calculation is: dst(x,y)=min[src(x+x',y+y')]; Among them: dst(x,y) is the pixel value at the coordinate (x,y) after comparison and calculation, and src(x+x',y+y') is the pixel value near the center coordinate (x,y).
5. The method for measuring the lay length of a steel wire rope according to claim 1, characterized in that: The least squares straight line fitting in S4 includes: S4.1, the straight line is assumed to be y = bx + a; S4.
2. Establish vertical error: S4.3, take the derivative to get the parameters: S4.4, after sorting, we get the equation system: S4.
5. Solve the system of equations to obtain the best estimates of the line parameters a and b: Where: a and b are the assumed straight line parameters, N is the total number of points, y is i is the ordinate of the i-th point, x i is the horizontal coordinate of the ith point.
6. The method for measuring the lay length of a steel wire rope according to claim 1, characterized in that: In S1, the diameter of the wire rope accounts for 30%-50% of the image width.
7. A wire rope lay length measuring device, characterized in that: The method as claimed in claim 1 includes a background plate, a base, a camera, an auxiliary light source, an ambient light sensor and a processing unit, wherein the camera, the auxiliary light source and the ambient light sensor are connected to the processing unit, data of the camera and the ambient light sensor are transmitted to the processing unit, and the camera and the auxiliary light source are controlled by the processing unit; the camera is installed on the base, the wire rope is arranged between the camera and the background plate, and the wire rope is photographed by the camera.
8. The wire rope lay length measuring device according to claim 7, characterized in that: The base comprises a support plate, a first slide groove is arranged on the base, the camera is mounted on the support plate, and the support plate can slide along the first slide groove, so that the distance between the camera and the wire rope can be adjusted.
9. The wire rope lay length measuring device according to claim 8, characterized in that: There are several steel wire ropes and cameras, and each steel wire rope is photographed by a camera.
10. The wire rope lay length measuring device according to claim 9, characterized in that: A plurality of steel wire ropes are arranged in the same plane, and the plane is parallel to the background plate; the base also includes a plurality of mounting plates, the support plate is provided with a second slide groove, and the direction of the second slide groove is parallel to the background plate; each camera is installed on a mounting plate, and the mounting plate can slide along the second slide groove.
