Belt deviation detection method, device, equipment and storage medium
By using image processing technology, the projection point set of the midpoint of the idler roller edge and the midpoint of the belt edge is determined, which solves the problem of belt offset detection being sensitive to environmental changes in the existing technology and realizes efficient belt offset detection.
Patent Information
- Application Number
- CN202510919938.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2025-07-04
- Publication Date
- 2026-11-24
- Estimated Expiration
- 2045-07-04
AI Technical Summary
In existing technologies, belt misalignment detection is sensitive to environmental changes, resulting in poor detection convenience.
By using image processing technology, the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image is determined, and the projection point set of the midpoint of the idler roller edge and the straight line of the belt edge is calculated. Based on the comparison between the midpoint of the idler roller edge and the midpoint of the belt edge, belt offset detection is realized.
It improves the convenience of belt misalignment detection and can accurately detect whether the belt has shifted under environmental changes.
Smart Images

Figure CN120482660B_ABST
Abstract
Description
Technical Field
[0001] This application relates to the field of image processing technology, and in particular to a belt offset detection method, apparatus, device, and storage medium. Background Technology
[0002] Coal enterprises generally use belt conveyors to transport coal. However, wear and uneven material conveying can cause belt misalignment, which can lead to adverse effects such as a change in the conveying direction. Therefore, belt misalignment detection is necessary during the conveying process of belt conveyors.
[0003] Currently, one method for detecting belt misalignment is to install physical sensors, such as touch sensors, microswitches, and photoelectric switches, on both sides of the belt conveyor. Once the belt deviates from the preset track, the physical sensors will be triggered to send corresponding signals to remind the staff.
[0004] However, physical sensors are quite sensitive to environmental changes, such as temperature, humidity, and dust. Environmental changes can affect the detection of physical sensors, which shows that the existing technology is not very convenient for detecting belt misalignment. Summary of the Invention
[0005] To improve the convenience of detecting belt misalignment, this application provides a belt misalignment detection method, apparatus, device, and storage medium.
[0006] In a first aspect, this application provides a belt offset detection method, including:
[0007] Determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set;
[0008] Based on the reference scale belt conveyor image, determine the belt edge straight line, and calculate the projection point set of the belt edge straight line on the target elliptical point set;
[0009] The midpoint of the belt edge is determined based on the set of projection points;
[0010] The offset detection result is determined based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0011] Secondly, this application provides a belt misalignment detection device, comprising:
[0012] The idler roller midpoint determination module is used to determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set;
[0013] The projection point set generation module is used to determine the belt edge straight line based on the reference scale belt conveyor image and calculate the projection point set of the belt edge straight line on the target elliptical point set.
[0014] The belt midpoint determination module is used to determine the midpoint of the belt edge based on the set of projection points;
[0015] The detection result generation module is used to determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0016] Thirdly, this application provides a computer device, which includes a memory and a processor. The memory stores a computer program, and the processor executes the computer program to implement the steps in the method described above.
[0017] Fourthly, this application provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above-described method.
[0018] Fifthly, this application also provides a computer program product. The computer program product includes a computer program that, when executed by a processor, implements the steps in any of the above method embodiments.
[0019] The aforementioned belt offset detection method, apparatus, equipment, and storage medium determine the target elliptical point set corresponding to the idler in a reference-scale belt conveyor image, and determine the midpoint of the idler edge based on the target elliptical point set; determine the belt edge straight line based on the reference-scale belt conveyor image, and calculate the projection point set of the belt edge straight line on the target elliptical point set; determine the midpoint of the belt edge based on the projection point set; and determine the offset detection result based on the midpoint of the idler edge and the midpoint of the belt edge. Through the above implementation, the target elliptical point set corresponding to the idler edge and the midpoint of the idler edge are first determined, and then the projection area of the belt edge straight line on the target elliptical point set, i.e., the projection point set, is determined, thereby determining the midpoint of the belt edge corresponding to the idler; subsequently, by comparing the midpoint of the idler edge with the midpoint of the belt edge, it can be determined whether the idler is offset. This application achieves belt offset detection simply by acquiring images and calculating and comparing the midpoints of the idler edge and the belt edge in the images, thus greatly improving the convenience of belt offset detection.
[0020] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this application, nor is it intended to limit the scope of this application. Other features of this application will become readily apparent from the following description. Attached Figure Description
[0021] To more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings used in the embodiments will be briefly introduced below. It should be understood that the following drawings only show some embodiments of the present invention and should not be regarded as a limitation on the scope. For those skilled in the art, other related drawings can be obtained based on these drawings without creative effort.
[0022] Figure 1 This is a flowchart of a belt offset detection method provided in the embodiments of this application;
[0023] Figure 2 This is a reference-scale image of a belt conveyor provided in the embodiments of this application;
[0024] Figure 3 This is a schematic diagram of the structure of a belt offset detection device provided in the embodiments of this application;
[0025] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of this application;
[0026] Figure 5 This is an internal structural diagram of a computer-readable storage medium provided in an embodiment of this application. Detailed Implementation
[0027] To make the objectives, technical solutions, and advantages of this disclosure clearer, the following detailed description is provided in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative and not intended to limit the scope of this disclosure.
[0028] It should be noted that the terms "first," "second," etc., used in the specification, claims, and accompanying drawings herein are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, apparatus, product, or device that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or devices.
[0029] In this article, the term "and / or" is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A alone, A and B simultaneously, and B alone. Additionally, the character " / " in this article generally indicates that the preceding and following related objects have an "or" relationship.
[0030] Example 1
[0031] Figure 1 This is a flowchart of a belt offset detection method provided in Embodiment 1 of this application, with reference to... Figure 1 The method can be executed by a device that performs the method, which can be implemented in software and / or hardware, and the method includes:
[0032] S110. Determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set.
[0033] In material transportation scenarios, belt conveyors are commonly used. A belt conveyor includes a body with rows of idlers rotatably connected to it, and a belt is mounted on each idler. The idlers rotate, driving the belt to move. Due to various unfavorable factors, the belt may shift, therefore it is necessary to detect belt shift to prevent adverse effects. This embodiment uses image processing to detect belt shift. For this purpose, a camera is installed on the side of the belt conveyor to capture images such as... Figure 2 The image shown is the original image of the belt conveyor. This original image contains not only the belt conveyor content but also the background content (the gray area to the right of the belt conveyor content). However, this background content is not useful for belt offset detection, so it needs to be deleted first.
[0034] Specifically, this embodiment includes a region of interest extraction network, which is used to extract the content (region of interest, ROI) of the conveyor belt in the original image of the conveyor belt; and the extracted content of the conveyor belt is recorded as the reference scale conveyor belt image.
[0035] The reference-scale belt conveyor image contains idlers, such as... Figure 2 As shown by the red cylinder in the image, from Figure 2 From the perspective shown, the circular side edge of the idler roller is elliptical. By performing image processing on the belt conveyor image at the reference scale, a set of edge points distributed along the ellipse can be obtained, and this set of edge points is denoted as the target elliptical point set.
[0036] Among them, by performing corresponding mathematical calculations on the target elliptical point set, the edge of the target elliptical point set along the side of the ellipse closest to the belt can be determined. Figure 2 The midpoint of each point distributed along the blue arc (in the middle) is designated as the midpoint of the roller's edge. Figure 2 The blue dots are shown on the blue arc in the middle.
[0037] S120. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0038] In this process, image processing of the reference-scale belt conveyor image can also determine the belt edge points. These belt edge points can form a straight line, i.e., the belt edge line, such as... Figure 2 As shown by the green line in the diagram.
[0039] It should be noted that, in addition to determining the midpoint of the idler roller edge, this embodiment also aims to find a specific belt edge point on the straight line of the belt edge. This specific belt edge point is used to compare with the aforementioned midpoint of the idler roller edge to determine whether the belt has shifted. The method for determining this specific belt edge point in this embodiment is as follows: first, the straight line is projected onto the target elliptical point set to determine the corresponding projection area, which is also known as... Figure 2 The orange line segment on the green line is denoted as the set of belt edge points located on the orange line segment.
[0040] S130. Determine the midpoint of the belt edge based on the set of projection points.
[0041] Specifically, by performing corresponding mathematical calculations on the projected point set, the special belt edge points in the projected point set can be determined, and these special belt edge points are denoted as the midpoints of the belt edges, such as... Figure 2 The orange dots are shown in the image.
[0042] S140. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0043] First, the distance between the midpoint of the idler roller edge and the midpoint of the belt edge can be calculated, and then the offset detection result can be determined by the distance between the two points. The offset detection result is used to characterize whether the belt has shifted and the direction of the belt shift.
[0044] Specifically, the distance between the midpoint of the idler roller edge and the midpoint of the belt edge is calculated; if the distance is within a preset threshold range, the offset detection result is determined to be that the belt has not shifted; wherein, the threshold range is set based on historical experience data; for example, the threshold range is [2.3cm, 2.7cm]; if the distance is greater than the threshold range, the direction of belt offset is determined to be to the left; if the distance is less than the threshold range, the direction of belt offset is determined to be to the right.
[0045] It should be noted that in this embodiment, only one side of the belt conveyor is captured. In another embodiment, images of both sides of the belt conveyor are captured. The point distances corresponding to each image can be calculated according to the above steps and recorded as the first point distance and the second point distance, respectively. If the first point distance and the second point distance are not equal, it is determined that the belt has shifted, and the direction of the belt shift is toward the side of the belt conveyor corresponding to the smaller point distance between the first point distance and the second point distance.
[0046] It should be noted that this embodiment determines the target elliptical point set corresponding to the idler in the reference-scale conveyor belt image, and determines the midpoint of the idler edge based on the target elliptical point set; it determines the straight line of the belt edge based on the reference-scale conveyor belt image, and calculates the projection point set of the straight line of the belt edge on the target elliptical point set; it determines the midpoint of the belt edge based on the projection point set; and it determines the offset detection result based on the midpoint of the idler edge and the midpoint of the belt edge. Through the above implementation, the target elliptical point set corresponding to the idler edge and the midpoint of the idler edge are first determined, and then the projection area of the straight line of the belt edge on the target elliptical point set, i.e., the projection point set, is determined, thereby determining the midpoint of the belt edge corresponding to the idler; then, by comparing the midpoint of the idler edge and the midpoint of the belt edge, it can be determined whether the idler is offset; this application can realize belt offset detection by only acquiring images and calculating and comparing the midpoint of the idler edge and the midpoint of the belt edge in the images, thus improving the convenience of belt offset detection.
[0047] Example 2
[0048] This application provides a belt offset detection method in Embodiment 2, which optimizes the "determining the target elliptical point set corresponding to the idler roller in the reference-scale belt conveyor image" in Embodiment 1. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0049] S211. Generate a multi-scale image set based on the reference scale belt conveyor image, wherein the multi-scale image set includes belt conveyor images at at least two resolution scales.
[0050] The reference scale conveyor image is a conveyor image taken by the camera at a normal resolution scale, which is a camera-defined resolution. The set of elliptical points determined by the reference scale conveyor image is subsequently used to calculate the midpoint of the idler roller edge. However, the distribution of each point in the elliptical point set determined by the reference scale conveyor image may not be good along the corresponding ellipse. Therefore, conveyor images at other resolution scales can be generated from the reference scale conveyor image. Then, by calculating the elliptical point sets corresponding to multiple conveyor images at other resolution scales, a set of elliptical points with the best distribution along the corresponding ellipse can be determined from multiple elliptical point sets as the target elliptical point set.
[0051] To generate conveyor belt images at other resolution scales, this embodiment specifically uses bilinear interpolation to process the baseline scale conveyor belt image, thereby generating multiple conveyor belt images at other resolution scales, and these multiple images at other resolution scales are denoted as a multi-scale image set. For example, the baseline scale conveyor belt image is downsampled to 0.5 times the resolution using bilinear interpolation to obtain a 0.5 times resolution conveyor belt image, and then upsampled to 2 times the resolution using bilinear interpolation to obtain a 2 times resolution conveyor belt image. The baseline scale conveyor belt image (1 times resolution conveyor belt image), the 0.5 times resolution conveyor belt image, and the 2 times resolution conveyor belt image are combined into a multi-scale image set.
[0052] S212. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set.
[0053] In this embodiment, an ellipse fitting algorithm is preset. This ellipse fitting algorithm is used to process the images of each belt conveyor in a multi-scale image set and outputs an ellipse point set that corresponds one-to-one with each belt conveyor image. The ellipse point set output by the ellipse fitting algorithm is recorded as the initial ellipse point set. For example, the ellipse fitting algorithm used in this embodiment is the Fitzgibbon algorithm. In other embodiments, the specific algorithm is not limited.
[0054] S213. Calculate the gradient consistency index corresponding to each of the initial elliptic point sets.
[0055] Taking one of the initial elliptic point sets as an example, the corresponding gradient consistency index S can be obtained by further mathematical calculations on the initial elliptic point set. The gradient consistency index S is used to reflect the effect of the distribution of each point in the corresponding initial elliptic point set along the corresponding ellipse.
[0056] S214. Based on the gradient consistency index and index threshold, determine the candidate elliptic point set.
[0057] The indicator threshold is set based on historical experience data. In this embodiment, the indicator threshold is 0.8. In other embodiments, the specific threshold is not limited. The indicator threshold is used to compare the gradient consistency index S. If the gradient consistency index S is greater than the indicator threshold, it means that the distribution of each point in the initial ellipse point set corresponding to the gradient consistency index S along the corresponding ellipse is better, and the initial ellipse also has the potential to become the target ellipse point set. The initial ellipse point set with gradient consistency index S greater than the indicator threshold is recorded as the candidate ellipse point set.
[0058] S215. In response to the fact that the number of candidate elliptic point sets is greater than one, calculate the point set score corresponding to each candidate elliptic point set.
[0059] If there is only one candidate elliptic point set, then the candidate elliptic point set can be directly used as the target elliptic point set. If there is more than one candidate elliptic point set, then the target elliptic point set needs to be selected from each candidate elliptic point set. In this embodiment, the candidate elliptic point set is further considered from multiple dimensions to calculate the total score of the candidate elliptic point set in multiple dimensions, and the total score is recorded as the point set score.
[0060] S216. Based on the scores of each candidate elliptic point set and each point set, determine the target elliptic point set.
[0061] The target elliptic point set is the candidate elliptic point set corresponding to the point set with the largest score.
[0062] S217. Determine the midpoint of the roller edge based on the target elliptical point set.
[0063] S220. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0064] S230. Determine the midpoint of the belt edge based on the set of projection points.
[0065] S240. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0066] Example 3
[0067] This application provides a belt offset detection method in Embodiment 3, which optimizes the "calculation of gradient consistency index corresponding to each initial elliptical point set" in Embodiment 2. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0068] S311. Generate a multi-scale image set based on the reference scale belt conveyor image, wherein the multi-scale image set includes belt conveyor images at at least two resolution scales.
[0069] S312. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set.
[0070] S313A. Transform each of the initial elliptical point sets to the corresponding target coordinate system to obtain the transformed elliptical point sets corresponding to each of the initial elliptical point sets.
[0071] Taking one of the initial elliptical point sets as an example, the ellipse corresponding to the initial elliptical point set can be calculated by the ellipse fitting algorithm. The ellipse has a major axis and a minor axis. A new coordinate system is established with the major axis as the X-axis and the minor axis as the Y-axis, and this new coordinate system is denoted as the target coordinate system. Through the corresponding coordinate system transformation matrix, the initial elliptical point set can be transformed from the original coordinate system to the target coordinate system, and the new point set obtained by transforming the initial elliptical point set to the target coordinate system is denoted as the transformed elliptical point set.
[0072] S313B, Calculate the local curvature corresponding to each transformed elliptical point set.
[0073] Taking one of the transformed elliptical point sets as an example, the transformed elliptical point set corresponds to an ellipse in the target coordinate system. Each point in the transformed elliptical point set has a corresponding point on this ellipse, and the set of these corresponding points is denoted as the ideal elliptical point set. It should be noted that each point in the transformed elliptical point set may or may not be located on the corresponding ellipse; all points in the ideal elliptical point set are located on the corresponding ellipse. By performing corresponding calculations on the transformed elliptical point set and the corresponding ideal elliptical point set, the radius of curvature of the ellipse can be obtained, and the local curvature is the reciprocal of the radius of curvature of the ellipse.
[0074] S313C, In response to the local curvature not exceeding the preset curvature threshold, breakage compensation is performed on the transformed elliptic point sets corresponding to each local curvature to obtain the compensated elliptic point sets corresponding to each transformed elliptic point set.
[0075] Taking the local curvature of one of the transformed elliptic point sets as an example, the local curvature is used to characterize the quality of the fitting of the corresponding transformed elliptic point set to the ellipse (distributed along the ellipse). To facilitate the measurement of this local curvature, a curvature threshold is set based on historical experience data in this embodiment. If the local curvature does not exceed the curvature threshold, it indicates that the ellipse fitting effect of the corresponding transformed elliptic point set is relatively good.
[0076] It should be noted that the gap between two adjacent points in the transformed elliptical point set may be too large. This large gap can also be regarded as the ellipse corresponding to the transformed elliptical point set being broken. Therefore, it is necessary to perform break compensation on the transformed elliptical point set. Break compensation is to perform lateral compensation on the two points (break points) involved in the break. The new point set obtained after the break compensation of the transformed elliptical point set is denoted as the compensated elliptical point set.
[0077] S313D, calculate the gradient consistency index corresponding to each compensated elliptic point set.
[0078] Taking one of the compensated elliptic point sets as an example, this compensated elliptic point set contains a total of N points (x... i ,yi By processing each point individually using the preset Sobel operator, the gradient direction angle corresponding to each point can be obtained. Each point has its corresponding elliptic geometric normal direction angle φ. normal (x i ,y i The formula for calculating the gradient consistency index S of the compensated elliptic point set is as follows:
[0079]
[0080] S314. Based on the gradient consistency index and index threshold, determine the candidate elliptic point set.
[0081] S315. In response to the fact that the number of candidate elliptic point sets is greater than one, calculate the point set score corresponding to each candidate elliptic point set.
[0082] S316. Based on the scores of each candidate elliptic point set and each point set, determine the target elliptic point set.
[0083] S317. Determine the midpoint of the roller edge based on the target elliptical point set.
[0084] S320. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0085] S330. Determine the midpoint of the belt edge based on the set of projection points.
[0086] S340. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0087] Example 4
[0088] This application provides a belt offset detection method in Embodiment 4, which optimizes the "performing breakage compensation on each of the transformed elliptical point sets corresponding to each local curvature to obtain the compensated elliptical point sets corresponding to each transformed elliptical point set" in Embodiment 3. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. This method includes:
[0089] S411. Generate a multi-scale image set based on the reference scale belt conveyor image, wherein the multi-scale image set includes belt conveyor images at at least two resolution scales.
[0090] S412. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set.
[0091] S413A. Transform each of the initial elliptical point sets to the corresponding target coordinate system to obtain the transformed elliptical point sets corresponding to each of the initial elliptical point sets.
[0092] S413B, Calculate the local curvature corresponding to each transformed elliptical point set.
[0093] S413C1, In response to the local curvature not exceeding a preset curvature threshold, calculate the perimeter continuity of each of the transformed elliptical point sets; in response to the perimeter continuity being less than a continuity threshold, calculate the fracture offset corresponding to the transformed elliptical point set; or, calculate the cumulative fracture length of each of the transformed elliptical point sets; in response to the cumulative fracture length being greater than a length threshold, calculate the fracture offset corresponding to the transformed elliptical point set.
[0094] If the local curvature does not exceed the preset curvature threshold, it indicates that the ellipse fitting effect of the transformed elliptical point set corresponding to the local curvature meets the standard. At this time, it is necessary to further determine whether the transformed elliptical point set needs to be compensated for breakage, because the transformed elliptical point set may have severe breakage. For example, if the distance between adjacent points in the transformed elliptical point set is too large, or if a large number of points in the transformed elliptical point set do not fall on the ellipse corresponding to the transformed elliptical point set, it is determined that the transformed elliptical point set has severe breakage.
[0095] This embodiment provides two methods for determining whether the transformed elliptic point set is severely broken:
[0096] Firstly, the cumulative length L at the break point is obtained by summing the distances between adjacent points with larger spacing in the elliptical point set after statistical transformation. break In this process, if the distance between two adjacent points exceeds a custom threshold, the distance between the two adjacent points is considered to be too large; and the sum of the distances L between each pair of adjacent points in the transformed elliptical point set is calculated. total Then calculate the perimeter continuity C of the transformed elliptic point set. cont Among them, the perimeter continuity C cont The calculation formula is:
[0097] It should be noted that this embodiment is for the perimeter continuity C cont A continuity threshold is set; if the perimeter continuity C cont If the value is less than the continuity threshold, it is determined that the transformed elliptical point set corresponding to the perimeter continuity is severely broken.
[0098] Secondly, the cumulative length L at the break point is obtained by summing the distances between adjacent points with larger spacing in the elliptical point set after statistical transformation. break It should be noted that this embodiment refers to the cumulative length L at the fracture point. breakA corresponding length threshold is set; if the cumulative length L at the fracture point... break If the length exceeds this threshold, it is determined that the transformed elliptical point set corresponding to the continuity of the perimeter is severely broken.
[0099] It should be noted that either of the two methods described above can be used to determine whether the converted elliptic point set is severely broken. If it is determined that the converted elliptic point set is severely broken, then the converted elliptic point set needs to be compensated for the breakage. The corresponding compensation amount can be calculated based on the converted elliptic point set, and this compensation amount is recorded as the breakage offset.
[0100] S413C2. Based on each fracture offset, the corresponding transformed elliptical point set is compensated to obtain the compensated elliptical point set corresponding to each transformed elliptical point set.
[0101] Taking the fracture offset corresponding to one of the transformed elliptical point sets as an example, the fracture offset is used to perform lateral compensation on the fracture points in the transformed elliptical point set, and the new point set obtained after the transformed elliptical point set is compensated is denoted as the compensated elliptical point set.
[0102] S413D, calculate the gradient consistency index corresponding to each compensated elliptic point set.
[0103] S414. Based on the gradient consistency index and index threshold, determine the candidate elliptic point set.
[0104] S415. In response to the fact that the number of candidate elliptic point sets is greater than one, calculate the point set score corresponding to each candidate elliptic point set.
[0105] S416. Based on the scores of each candidate elliptic point set and each point set, determine the target elliptic point set.
[0106] S417. Determine the midpoint of the roller edge based on the target elliptical point set.
[0107] S420. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0108] S430. Determine the midpoint of the belt edge based on the set of projection points.
[0109] S440. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0110] Example 5
[0111] This application provides a belt offset detection method in Embodiment 5, which optimizes the "calculation of point set scores corresponding to each candidate elliptical point set" in Embodiment 2. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0112] S511. Generate a multi-scale image set based on the reference scale belt conveyor image, wherein the multi-scale image set includes belt conveyor images at at least two resolution scales.
[0113] S512. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set.
[0114] S513. Calculate the gradient consistency index corresponding to each of the initial elliptic point sets.
[0115] S514. Based on the gradient consistency index and index threshold, determine the candidate elliptic point set.
[0116] S515A, In response to the fact that the number of candidate elliptic point sets is greater than one, determine the proportion of matching edge points, perimeter continuity and gradient consistency index corresponding to each candidate elliptic point set.
[0117] Specifically, the number of points in the candidate ellipse point set that fall exactly on the ellipse corresponding to that candidate ellipse point set is counted to obtain the number of matching edge points N. match Then, determine the total number of points N in the candidate elliptic point set. total Finally, the proportion C of the number of matched edge points is calculated. cov Among them, the proportion of matching edge points is C cov The calculation formula is: Furthermore, the sum of the distances between adjacent points with larger spacing in the candidate elliptical point set is calculated to obtain the cumulative length L at the fracture point. break In this process, if the distance between two adjacent points exceeds a custom threshold, the distance between the two adjacent points is considered to be too large; and the sum L of the distances between each pair of adjacent points in the candidate ellipse point set is calculated. total Then calculate the perimeter continuity C corresponding to the candidate elliptic point set. cont Among them, the perimeter continuity C cont The calculation formula is: Each candidate elliptic point set has a corresponding gradient consistency index S. The calculation method of gradient consistency index S is described in the above embodiment and will not be repeated here.
[0118] S515B. Based on the proportion of matching edge points, the perimeter continuity, and the gradient consistency index corresponding to each candidate elliptical point set, and the weight parameter group, the point set score corresponding to each candidate elliptical point set is obtained; wherein, the weight parameter group includes weight parameters corresponding to the proportion of matching edge points, the perimeter continuity, and the gradient consistency index, respectively.
[0119] Among them, the weight parameter group is the proportion of matching edge points C. cov The weighting parameter is set to τ, which is the gradient consistency index S, and the weighting parameter is set to β, which is the perimeter continuity C. cont The weighting parameter is set to γ; in this embodiment, τ = 0.4, β = 0.3, and γ = 0.3; in other embodiments, the specific values are not limited.
[0120] The formula for calculating the point set score is as follows:
[0121] Score = τ·C cov +β·S+γ·C cont .
[0122] S516. Based on the scores of each candidate elliptic point set and each point set, determine the target elliptic point set.
[0123] S517. Determine the midpoint of the roller edge based on the target elliptical point set.
[0124] S520. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0125] S530. Determine the midpoint of the belt edge based on the set of projection points.
[0126] S540. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0127] Example 6
[0128] This application provides a belt offset detection method in Embodiment Six, which optimizes the "determining the midpoint of the idler roller edge based on the target elliptical point set" in Embodiment One. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0129] S611. Determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image.
[0130] S612. Transform the target elliptical point set to polar coordinates to obtain the target polar coordinate point set.
[0131] The new set of points obtained by transforming the target elliptical point set to the polar coordinate system is denoted as the target polar coordinate point set; each polar coordinate point in the target polar coordinate point set corresponds one-to-one with each rectangular coordinate point in the target elliptical point set.
[0132] S613. Generate an angle distribution histogram based on the target polar coordinate point set.
[0133] In this embodiment, each polar coordinate in the target polar coordinate point set has its corresponding polar angle. Multiple polar angle intervals are set for each polar angle. By placing each polar angle corresponding to the target polar coordinate point set into the corresponding polar angle interval, the number of points in each polar angle interval can be counted to generate an angle distribution histogram.
[0134] S614. Determine the maximum continuous interval based on the angle distribution histogram.
[0135] The longest continuous interval is the longest continuous interval in the angle distribution histogram with a number of points greater than 0.
[0136] S615. Determine the center angle based on the maximum continuous interval.
[0137] Wherein, the central angle α mid It is half the sum of the maximum and minimum polar angles in the largest continuous interval.
[0138] S616. Based on the center angle and the corresponding gradient direction compensation coefficient, gradient direction angle, and unit normal direction vector, determine the midpoint of the roller edge.
[0139] Wherein, the central angle α mid There is a corresponding gradient direction compensation coefficient λ. In this embodiment, the gradient direction compensation coefficient λ ranges from 0.1 to 0.3. The Sobel operator is used to adjust the center angle α. mid The central angle α can be calculated. mid Corresponding gradient direction angle central angle α mid The corresponding unit normal direction vector is denoted as The midpoint M of the roller edge can be calculated using the central angle, the corresponding gradient direction compensation coefficient, the gradient direction angle, and the unit normal vector. roller M, the midpoint of the edge of the idler roller roller The calculation formula is as follows:
[0140]
[0141] Wherein, φ(α) mid ) is the central angle α mid The corresponding Cartesian coordinates.
[0142] S620. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0143] S630. Determine the midpoint of the belt edge based on the set of projection points.
[0144] S640. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0145] Example 7
[0146] This application provides a belt offset detection method in Embodiment 7, which optimizes the "determining the belt edge straight line based on the reference scale belt conveyor image" in Embodiment 1 or 2. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0147] S710. Determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set.
[0148] S721. Calculate the set of edge segments corresponding to the belt conveyor images at each resolution scale in the multi-scale image set corresponding to the reference scale belt conveyor image.
[0149] Taking a belt conveyor image at a single resolution scale in a multi-scale image set as an example, this embodiment pre-sets a line segment detection algorithm. For example, the line segment detection algorithm is the LSD algorithm. The line segment detection algorithm processes the belt conveyor image at a single resolution scale and outputs multiple line segments located at the belt edge position in the belt conveyor image. The multiple line segments are distributed along the straight line where the belt edge is located; and the combination of the multiple line segments is denoted as the edge line segment set.
[0150] S722. Map the edge segment sets corresponding to the belt conveyor images at other resolution scales to the edge segment sets corresponding to the belt conveyor image at the reference scale to obtain a comprehensive segment set.
[0151] The line segment detection algorithm processes the belt conveyor image at the reference scale to obtain the set of edge line segments corresponding to the reference scale belt conveyor image, and this set of edge line segments is denoted as the reference edge line segment set. The line segment detection algorithm also processes belt conveyor images at other resolution scales one by one to obtain the set of edge line segments corresponding to belt conveyor images at other resolution scales. The edge line segment sets corresponding to belt conveyor images at other resolution scales are mapped to the reference edge line segment set to obtain a new set of line segments, and this new set of line segments is denoted as the comprehensive line segment set.
[0152] S723. Calculate the segment weights corresponding to each segment in the comprehensive segment set, and determine the overlapping segment groups in the comprehensive segment set.
[0153] The formula for calculating the line segment weight W is: W = M 2 / (d+ε), where M is the gradient intensity, d is the line segment density, and ε is a constant; the Sobel operator processes the line segment to obtain the gradient corresponding to each pixel in the line segment, calculates the sum of squares of each gradient, and then calculates the square root of the sum of squares to obtain the gradient intensity M; taking a line segment as an example in the comprehensive line segment set, the number of line segments in a region near the line segment is the line segment density d corresponding to the line segment.
[0154] It should be noted that the comprehensive line segment set contains line segments corresponding to the belt conveyor images at various resolution scales. Therefore, for a given location on the belt edge, there may be multiple overlapping line segments, which correspond to multiple belt conveyor images at different resolution scales. The set of overlapping line segments at the same location on the belt edge in the comprehensive line segment set is denoted as the overlapping line segment group.
[0155] S724. Retain the segment with the largest segment weight in each of the overlapping segment groups to obtain the belt edge straight line. Each segment in the overlapping segment group has its own corresponding segment weight. By retaining the segment with the largest segment weight in each overlapping segment group, and then deleting the other segments in the overlapping segment group whose segment weights are not the largest, the segments retained in the comprehensive segment set are recorded as the belt edge straight line.
[0156] S725. Calculate the set of projection points of the straight line of the belt edge on the target elliptical point set.
[0157] S730. Determine the midpoint of the belt edge based on the set of projection points.
[0158] S740. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0159] Example 8
[0160] This application provides a belt offset detection method in Embodiment 8, which optimizes the "determining the midpoint of the belt edge based on the projection point set" in Embodiment 1. It should be noted that for parts not detailed in this embodiment, please refer to the descriptions in other embodiments. The method includes:
[0161] S810. Determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set.
[0162] S820. Determine the straight line of the belt edge based on the reference scale belt conveyor image, and calculate the projection point set of the straight line of the belt edge on the target elliptical point set.
[0163] S831. Transform the projection point set to the polar coordinate system of the target elliptical point set to obtain the projection polar coordinate point set.
[0164] The point set obtained by transforming the projected point set to the polar coordinate system is the projected polar coordinate point set; the polar coordinates of each point in the projected polar coordinate point set are equal to the rectangular coordinates of each point in the projected point set (x, y, y). i ,y i One-to-one correspondence.
[0165] S832. Calculate the Gaussian neighborhood edge weights corresponding to each point in the projected polar coordinate point set.
[0166] Wherein, each point in the projected polar coordinate point set (polar coordinates, (r) i ,θ i The corresponding Gaussian neighborhood edge weight W(x) can be calculated for each of these. i ,y i ), where the Gaussian neighborhood edge weight W(x) i ,y i The calculation formula for ) is as follows:
[0167]
[0168] Where M(x) i ,y i ) represents the gradient intensity (in polar coordinates) of a point in the projected polar coordinate point set. i Let be the polar radius of the point, a be the length of the minor axis of the ellipse corresponding to the target elliptical point set, and σ be the Gaussian bandwidth parameter (constant).
[0169] S833. Determine the midpoint of the belt edge based on the edge weights of each Gaussian neighborhood and the set of projected polar coordinate points.
[0170] Among them, the midpoint M of the belt edge belt The calculation formula is:
[0171]
[0172] Where, x i Let y be the abscissa of the rectangular coordinates corresponding to the polar coordinates of the projected polar coordinate points. i The ordinate is the rectangular coordinate corresponding to the polar coordinates in the projected polar coordinate point set.
[0173] S840. Determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0174] It should be understood that although the steps in the flowcharts of the embodiments described above are shown sequentially according to the arrows, these steps are not necessarily executed in the order indicated by the arrows. Unless explicitly stated herein, there is no strict order restriction on the execution of these steps, and they can be executed in other orders. Moreover, at least some steps in the flowcharts of the embodiments described above may include multiple steps or multiple stages. These steps or stages are not necessarily completed at the same time, but can be executed at different times. The execution order of these steps or stages is not necessarily sequential, but can be performed alternately or in turn with other steps or at least some of the steps or stages of other steps.
[0175] Example 9
[0176] Based on the same inventive concept, this embodiment also provides a belt offset detection device for implementing the belt offset detection method described above. The solution provided by this device is similar to the solution described in the above method. Therefore, the specific limitations of one or more belt offset detection device embodiments provided below can be found in the limitations of the belt offset detection method above, and will not be repeated here.
[0177] In this embodiment, as Figure 3 As shown, a belt offset detection device is provided, comprising:
[0178] The idler roller midpoint determination module is used to determine the target elliptical point set corresponding to the idler roller in the reference scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set;
[0179] The projection point set generation module is used to determine the belt edge straight line based on the reference scale belt conveyor image and calculate the projection point set of the belt edge straight line on the target elliptical point set.
[0180] The belt midpoint determination module is used to determine the midpoint of the belt edge based on the set of projection points;
[0181] The detection result generation module is used to determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge.
[0182] Each module in the aforementioned belt misalignment detection device can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in the processor of a computer device in hardware form or independent of it, or stored in the memory of a computer device in software form, so that the processor can call and execute the corresponding operations of each module.
[0183] It should be noted that this embodiment determines the target elliptical point set corresponding to the idler in the reference-scale conveyor belt image, and determines the midpoint of the idler edge based on the target elliptical point set; it determines the straight line of the belt edge based on the reference-scale conveyor belt image, and calculates the projection point set of the straight line of the belt edge on the target elliptical point set; it determines the midpoint of the belt edge based on the projection point set; and it determines the offset detection result based on the midpoint of the idler edge and the midpoint of the belt edge. Through the above implementation, the target elliptical point set corresponding to the idler edge and the midpoint of the idler edge are first determined, and then the projection area of the straight line of the belt edge on the target elliptical point set, i.e., the projection point set, is determined, thereby determining the midpoint of the belt edge corresponding to the idler; then, by comparing the midpoint of the idler edge and the midpoint of the belt edge, it can be determined whether the idler is offset; this application can realize belt offset detection by only acquiring images and calculating and comparing the midpoint of the idler edge and the midpoint of the belt edge in the images, thus improving the convenience of belt offset detection.
[0184] In an optional embodiment, the idler midpoint determination module is specifically used to: determine the target elliptical point set corresponding to the idler in the reference-scale belt conveyor image.
[0185] A multi-scale image set is generated based on the baseline scale belt conveyor image, the multi-scale image set including belt conveyor images at at least two resolution scales;
[0186] Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set;
[0187] Calculate the gradient consistency index corresponding to each of the initial elliptic point sets;
[0188] Based on the gradient consistency index and index threshold, the candidate elliptic point set is determined;
[0189] In response to the fact that the number of candidate elliptic point sets is greater than one, the point set score corresponding to each candidate elliptic point set is calculated.
[0190] The target elliptic point set is determined based on the scores of each candidate elliptic point set and each point set.
[0191] In an optional embodiment, the roller midpoint determination module is specifically used for calculating the gradient consistency index corresponding to each of the initial elliptic point sets:
[0192] Each initial elliptic point set is transformed to its corresponding target coordinate system to obtain the transformed elliptic point set corresponding to each initial elliptic point set.
[0193] Calculate the local curvature corresponding to each transformed elliptic point set;
[0194] In response to the fact that the local curvature does not exceed the preset curvature threshold, the transformed elliptic point set corresponding to each local curvature is subjected to breakage compensation to obtain the compensated elliptic point set corresponding to each transformed elliptic point set.
[0195] Calculate the gradient consistency index corresponding to each compensated elliptic point set.
[0196] In an optional embodiment, in order to perform breakage compensation on each of the transformed elliptical point sets corresponding to each of the local curvatures to obtain the compensated elliptical point sets corresponding to each transformed elliptical point set, the idler roller midpoint determination module is specifically used for:
[0197] Calculate the perimeter continuity of each of the transformed elliptical point sets, and in response to the perimeter continuity being less than a continuity threshold, calculate the fracture offset corresponding to the transformed elliptical point set; or, calculate the cumulative fracture length of each of the transformed elliptical point sets, and in response to the cumulative fracture length being greater than a length threshold, calculate the fracture offset corresponding to the transformed elliptical point set.
[0198] Based on each fracture offset, the corresponding transformed elliptical point set is compensated to obtain the compensated elliptical point set corresponding to each transformed elliptical point set.
[0199] In an optional embodiment, the roller midpoint determination module is specifically used for calculating the point set score corresponding to each of the candidate elliptical point sets:
[0200] Determine the proportion of matching edge points, perimeter continuity, and gradient consistency index corresponding to each candidate elliptic point set;
[0201] Based on the proportion of matching edge points, the perimeter continuity, and the gradient consistency index corresponding to each candidate elliptic point set, and the weight parameter set, the point set score corresponding to each candidate elliptic point set is obtained; wherein, the weight parameter set includes weight parameters corresponding to the proportion of matching edge points, the perimeter continuity, and the gradient consistency index, respectively.
[0202] In an optional embodiment, in determining the midpoint of the idler roller edge based on the target elliptical point set, the idler roller midpoint determination module is specifically used for:
[0203] Transform the target elliptical point set to polar coordinates to obtain the target polar coordinate point set;
[0204] Generate an angle distribution histogram based on the target polar coordinate point set;
[0205] The maximum continuous interval is determined based on the angle distribution histogram;
[0206] The center angle is determined based on the maximum continuous interval;
[0207] The midpoint of the roller edge is determined based on the central angle and the corresponding gradient direction compensation coefficient, gradient direction angle, and unit normal direction vector.
[0208] In an optional embodiment, in determining the straight line of the belt edge based on the reference-scale belt conveyor image, the projection point set generation module is specifically used for:
[0209] Calculate the set of edge segments corresponding to the belt conveyor images at each resolution scale in the multi-scale image set corresponding to the baseline scale belt conveyor image;
[0210] The edge segment sets corresponding to belt conveyor images at other resolution scales are mapped to the edge segment sets corresponding to the belt conveyor image at the reference scale to obtain a comprehensive segment set.
[0211] Calculate the segment weights corresponding to each segment in the comprehensive segment set, and determine the overlapping segment groups in the comprehensive segment set;
[0212] The line segment with the largest weight in each of the overlapping line segment groups is retained to obtain the straight line at the edge of the belt.
[0213] In an optional embodiment, in determining the midpoint of the belt edge based on the set of projected points, the belt midpoint determination module is specifically used for:
[0214] The projection point set is transformed to the polar coordinate system of the target elliptical point set to obtain the projection polar coordinate point set;
[0215] Calculate the Gaussian neighborhood edge weights corresponding to each point in the projected polar coordinate point set;
[0216] The midpoint of the belt edge is determined based on the edge weights of each Gaussian neighborhood and the set of projected polar coordinate points.
[0217] Example 10
[0218] In this embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows. Figure 4 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes non-volatile storage media and internal memory. The non-volatile storage media stores the operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The database stores data. The network interface communicates with external terminals via a network connection. When executed by the processor, the computer program implements a belt misalignment detection method.
[0219] Those skilled in the art will understand that Figure 4 The structure shown is merely a block diagram of a portion of the structure related to the present disclosure and does not constitute a limitation on the computer device to which the present disclosure is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0220] Example 11
[0221] In this embodiment, a computer-readable storage medium is provided, such as... Figure 5 As shown, a computer program is stored thereon, and when the computer program is executed by the processor, it implements the steps in the above-described method embodiments.
[0222] Example 12
[0223] In this embodiment, a computer program product is provided, including a computer program that, when executed by a processor, implements the steps in the above-described method embodiments.
[0224] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this disclosure are all information and data authorized by the user or fully authorized by all parties.
[0225] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. Any references to memory, databases, or other media used in the embodiments provided in this disclosure can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetic random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM). The databases involved in the embodiments provided in this disclosure may include at least one type of relational database and non-relational database. Non-relational databases may include, but are not limited to, blockchain-based distributed databases. The processors involved in the embodiments provided in this disclosure may be general-purpose processors, central processing units, graphics processing units, digital signal processors, programmable logic devices, quantum computing-based data processing logic devices, etc., and are not limited to these.
[0226] The technical features of the above embodiments can be combined in any way. For the sake of brevity, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0227] The embodiments described above are merely illustrative of several implementations of this disclosure, and while the descriptions are specific and detailed, they should not be construed as limiting the scope of this patent disclosure. It should be noted that those skilled in the art can make various modifications and improvements without departing from the concept of this disclosure, and these all fall within the protection scope of this disclosure. Therefore, the protection scope of this disclosure should be determined by the appended claims.
Claims
1. A method for detecting belt misalignment, characterized in that, include: Determine the target elliptical point set corresponding to the idler roller in the reference-scale belt conveyor image, and determine the midpoint of the idler roller edge based on the target elliptical point set. Based on the reference-scale image of the conveyor belt, the straight line of the belt edge is determined, and the projection point set of the straight line of the belt edge on the target elliptical point set is calculated. The midpoint of the belt edge is determined based on the set of projection points. The offset detection result is determined based on the midpoint of the idler roller edge and the midpoint of the belt edge; The determination of the target elliptical point set corresponding to the idler roller in the reference-scale belt conveyor image includes: A multi-scale image set is generated based on the baseline-scale belt conveyor image. The multi-scale image set includes belt conveyor images at at least two resolution scales. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set. Calculate the gradient consistency index corresponding to each of the initial elliptic point sets. Based on the gradient consistency index and index threshold, a candidate elliptic point set is determined. If the number of candidate elliptic point sets is greater than one, calculate the point set score corresponding to each candidate elliptic point set. The target elliptic point set is determined based on the scores of each candidate elliptic point set and each point set. The step of determining the midpoint of the roller edge based on the target elliptical point set includes: Transform the target elliptical point set to polar coordinates to obtain the target polar coordinate point set. An angle distribution histogram is generated based on the target polar coordinate point set. The maximum continuous interval is determined based on the aforementioned angle distribution histogram. The center angle is determined based on the maximum continuous interval. The midpoint of the roller edge is determined based on the central angle and the corresponding gradient direction compensation coefficient, gradient direction angle, and unit normal direction vector.
2. The method according to claim 1, characterized in that, The calculation of the gradient consistency index corresponding to each of the initial elliptic point sets includes: Each initial elliptic point set is transformed to its corresponding target coordinate system to obtain the transformed elliptic point set corresponding to each initial elliptic point set. Calculate the local curvature corresponding to each transformed elliptic point set; In response to the fact that the local curvature does not exceed the preset curvature threshold, the transformed elliptic point set corresponding to each local curvature is subjected to breakage compensation to obtain the compensated elliptic point set corresponding to each transformed elliptic point set. Calculate the gradient consistency index corresponding to each compensated elliptic point set.
3. The method according to claim 2, characterized in that, The step of performing fracture compensation on each of the transformed elliptical point sets corresponding to each of the local curvatures to obtain the compensated elliptical point sets corresponding to each transformed elliptical point set includes: Calculate the perimeter continuity of each of the transformed elliptical point sets, and in response to the perimeter continuity being less than a continuity threshold, calculate the fracture offset corresponding to the transformed elliptical point set; or, calculate the cumulative fracture length of each of the transformed elliptical point sets, and in response to the cumulative fracture length being greater than a length threshold, calculate the fracture offset corresponding to the transformed elliptical point set. Based on each fracture offset, the corresponding transformed elliptical point set is compensated to obtain the compensated elliptical point set corresponding to each transformed elliptical point set.
4. The method according to claim 1, characterized in that, The calculation of the point set score corresponding to each of the candidate elliptic point sets includes: Determine the proportion of matching edge points, perimeter continuity, and gradient consistency index corresponding to each candidate elliptic point set; Based on the proportion of matching edge points, the perimeter continuity, and the gradient consistency index corresponding to each candidate elliptic point set, and the weight parameter set, the point set score corresponding to each candidate elliptic point set is obtained; wherein, the weight parameter set includes weight parameters corresponding to the proportion of matching edge points, the perimeter continuity, and the gradient consistency index, respectively.
5. The method according to claim 1, characterized in that, Determining the straight line of the belt edge based on the reference scale belt conveyor image includes: Calculate the set of edge segments corresponding to the belt conveyor images at each resolution scale in the multi-scale image set corresponding to the baseline scale belt conveyor image; The edge segment sets corresponding to belt conveyor images at other resolution scales are mapped to the edge segment sets corresponding to the belt conveyor image at the reference scale to obtain a comprehensive segment set. Calculate the segment weights corresponding to each segment in the comprehensive segment set, and determine the overlapping segment groups in the comprehensive segment set; The line segment with the largest weight in each of the overlapping line segment groups is retained to obtain the straight line at the edge of the belt.
6. The method according to claim 1, characterized in that, Determining the midpoint of the belt edge based on the projection point set includes: The projection point set is transformed to the polar coordinate system of the target elliptical point set to obtain the projection polar coordinate point set; Calculate the Gaussian neighborhood edge weights corresponding to each point in the projected polar coordinate point set; The midpoint of the belt edge is determined based on the edge weights of each Gaussian neighborhood and the set of projected polar coordinate points.
7. A belt misalignment detection device, characterized in that, The device includes: The idler roller midpoint determination module is used to determine the target elliptical point set corresponding to the idler roller in the reference-scale belt conveyor image, and to determine the midpoint of the idler roller edge based on the target elliptical point set. The projection point set generation module is used to determine the belt edge straight line based on the reference-scale belt conveyor image, and calculate the projection point set of the belt edge straight line on the target elliptical point set. The belt midpoint determination module is used to determine the midpoint of the belt edge based on the set of projection points. The detection result generation module is used to determine the offset detection result based on the midpoint of the idler roller edge and the midpoint of the belt edge; Specifically, in determining the target elliptical point set corresponding to the idler roller in the reference-scale belt conveyor image, the idler roller midpoint determination module is used for: A multi-scale image set is generated based on the baseline-scale belt conveyor image. The multi-scale image set includes belt conveyor images at at least two resolution scales. Determine the initial elliptical point set corresponding to each of the belt conveyor images in the multi-scale image set. Calculate the gradient consistency index corresponding to each of the initial elliptic point sets. Based on the gradient consistency index and index threshold, a candidate elliptic point set is determined. If the number of candidate elliptic point sets is greater than one, calculate the point set score corresponding to each candidate elliptic point set. The target elliptic point set is determined based on the scores of each candidate elliptic point set and each point set. Specifically, in determining the midpoint of the idler roller edge based on the target elliptical point set, the idler roller midpoint determination module is used for: Transform the target elliptical point set to polar coordinates to obtain the target polar coordinate point set. An angle distribution histogram is generated based on the target polar coordinate point set. The maximum continuous interval is determined based on the aforementioned angle distribution histogram. The center angle is determined based on the maximum continuous interval. The midpoint of the roller edge is determined based on the central angle and the corresponding gradient direction compensation coefficient, gradient direction angle, and unit normal direction vector.
8. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that, When the processor executes the computer program, it implements the steps of the method according to any one of claims 1 to 6.
9. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
10. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the steps of the method according to any one of claims 1 to 6.
Citation Information
Patent Citations
Detection method and detection device for belt conveyor, controller and belt conveyor
CN115258589A
Belt deviation monitoring system and method based on binocular laser camera
CN115417067A
