Conveyor video fault recognition and disposal decision method
By dynamically adjusting the number of image frames and pixel offsets, combined with differential detection and morphological processing, the problems of image ghosting and size calculation in video fault identification of underground belt conveyors in coal mines were solved, achieving high-precision foreign object identification and equipment tear prevention control.
Patent Information
- Application Number
- CN202611676610.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-28
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies for video fault identification of belt conveyors in underground coal mines have poor multi-frame image spatial registration and denoising effects, resulting in blurred edges of foreign objects, making it impossible to accurately measure their size, and they have poor anti-interference capabilities in low signal-to-noise ratio environments.
By collecting data such as the linear speed, instantaneous tension, and vertical acceleration of the belt conveyor, the number of image frames and pixel offset are dynamically adjusted. Combined with differential detection and morphological processing, the geometric parameters of the foreign object are extracted, and corresponding control commands are output.
It improves image signal-to-noise ratio and recognition accuracy in low signal-to-noise ratio environments, suppresses ghosting caused by conveyor belt deformation, and achieves high-precision foreign object size calculation and tiered anti-tear control of equipment.
Smart Images

Figure CN123182124A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of video content recognition technology, specifically to a method for video fault identification and handling decision-making for conveyors. Background Technology
[0002] Underground belt conveyors in coal mines are the core mechanical equipment of the main transportation system, undertaking the task of high-speed transportation of raw coal. In actual production, dangerous foreign objects such as large pieces of gangue and long anchor bolts often get mixed into the coal flow. If they are not checked in time, they can easily cause the conveyor belt to tear and break. To prevent such accidents, cameras are often installed at the head or tail of the belt conveyor in industrial sites to extract the outline of foreign objects by collecting the original grayscale matrix and applying digital image processing technology.
[0003] For example, Chinese patent application CN112830189A discloses a conveyor belt tear prevention and detection device based on binocular vision. It uses a camera to acquire images and employs image processing logic to extract planar features from the conveyor belt surface to assess the presence of foreign objects or tear risks. Another example is Chinese patent application CN114612403A, which discloses an intelligent detection method and system for damage defects in a feeding belt. This method acquires continuous video data of the belt surface by deploying image acquisition terminals, uses a deep learning detection model to identify defects in single-frame belt images, and combines the detection results of multiple consecutive frames for alarm confirmation. Furthermore, for low signal-to-noise ratio video images in low-light environments underground, conventional industrial vision enhancement solutions typically employ multi-frame temporal superposition noise reduction technology, i.e., performing translation registration and mean superposition on multiple consecutive frames of images according to a fixed offset step size corresponding to the rated operating speed of the belt conveyor. However, the above-mentioned prior art has the following technical problems in practical applications: First, under the electrical power limit constraint of the safety explosion-proof standard, the instantaneous lighting power of mining supplementary lights is strictly limited, forcing the camera to complete short exposures at the sub-millisecond level. This results in a sharp reduction in the captured photon flux, and the original grayscale matrix output by the single-frame detection scheme contains a large amount of Gaussian thermal noise and shot noise, leading to a decrease in edge recognition accuracy and poor anti-interference capability. Second, the conventional multi-frame temporal domain registration and superposition noise reduction scheme assumes that the conveyor belt is a rigid carrier and the material moves at an ideal uniform speed. However, in actual operation, due to the transient disturbance of the inverter's intelligent speed regulation or the sudden change in local load caused by uneven material stacking, the rubber conveyor belt will experience nonlinear local stretching and contraction, and the high-speed rotating idlers will also generate high-frequency vertical vibration. If such mechanical deformation and vibration are ignored, and multiple frames are blindly registered and superimposed according to fixed speed parameters, it will lead to deviations in pixel space registration and temporal misalignment, causing irreversible ghosting and blurring of foreign object edges in the synthesized image. This makes it impossible to provide an accurate geometric reference for size measurement, which in turn leads to calculation lag and control errors in equipment linkage. Summary of the Invention
[0004] To address the problem that existing technologies cannot accurately perform spatial registration and denoising of multi-frame images, resulting in ghosting and blurring of foreign object edges and thus compromising the accuracy of size measurement, this invention proposes a video fault identification and handling decision-making method for conveyors. This method includes: S1, collect the linear velocity, instantaneous tension, vertical acceleration, and original grayscale matrix of a single frame of the belt conveyor; S2, acquire the cross-sectional area, elastic modulus, span length, spatial pixel resolution, number of historical image frames, and historical grayscale matrix of the belt conveyor; calculate the horizontal pixel offset based on the linear velocity, instantaneous tension, cross-sectional area, elastic modulus, and span length; dynamically adjust the number of historical image frames based on the vertical acceleration; rewrite the historical grayscale matrix based on the horizontal pixel offset; and perform an arithmetic average operation between the rewritten historical grayscale matrix and the original grayscale matrix of the single frame to obtain the enhanced... S3, extract the grayscale change features of the enhanced grayscale matrix, generate a gradient magnitude matrix, obtain a binarization segmentation threshold, convert the gradient magnitude matrix into a binary image matrix according to the binarization segmentation threshold, extract closed regions and output connected components in the binary image matrix, and calculate the actual length and aspect ratio of the connected components based on the spatial pixel resolution; S4, obtain the length limit and aspect ratio limit values, compare the actual length and aspect ratio values with the length limit and aspect ratio limit values respectively, and output control commands to the controller according to the comparison results.
[0005] This invention suppresses ghosting of foreign object edges caused by conveyor belt deformation by dynamically correcting spatial registration deviations during the superposition process of multiple frames of images. At the same time, it uses differential detection and morphological processing to extract the size of connected components and uses the obtained geometric parameters as trigger conditions for deceleration or braking, thereby reducing computational lag and improving image signal-to-noise ratio and recognition accuracy in short exposure environments.
[0006] Further, the calculation of the horizontal pixel offset includes: extracting the sampling time interval between two adjacent frame images, calculating the rigid displacement in combination with the running linear velocity, obtaining the instantaneous tension at the current moment and the historical moment and calculating the difference in tension change, calculating the elastic deformation displacement in combination with the cross-sectional area, the elastic modulus, the span length and the difference in tension change, adding the rigid displacement and the elastic deformation displacement, and converting them into the horizontal pixel offset in combination with the spatial pixel resolution.
[0007] This invention extracts the difference between the sampling time interval and the instantaneous tension change of adjacent frame images, and derives the elastic deformation displacement by combining the cross-sectional area and elastic modulus. The rigid displacement and elastic deformation displacement are then combined and converted into a horizontal pixel offset, which effectively compensates for the nonlinear stretching caused by the sudden change in local load on the conveyor belt and ensures the accuracy of pixel matrix spatial alignment.
[0008] Further, the dynamic adjustment of the number of historical image frames includes: using the sampling time interval between two adjacent frames as an integration time window, at the beginning of each integration time window, resetting the initial values of vertical velocity and vertical offset to zero, and within the integration time window, performing continuous quadratic time integration on the vertical acceleration according to the sampling time step of the vertical acceleration and taking the absolute value to obtain the vertical offset of the current window; obtaining a single-pixel jitter threshold with a value of 1, converting the vertical offset into an equivalent jitter pixel size in combination with the spatial pixel resolution, comparing the equivalent jitter pixel size with the single-pixel jitter threshold, and reducing the number of historical image frames when the equivalent jitter pixel size is greater than the single-pixel jitter threshold, and increasing the number of historical image frames when the equivalent jitter pixel size is less than or equal to the single-pixel jitter threshold.
[0009] This invention automatically reduces the number of historical image frames when mechanical vibration is excessive and expands the number of historical image frames when vibration is stable, thus suppressing focus blur caused by vertical jitter while ensuring image noise reduction gain.
[0010] Further, the displacement rewriting of the historical grayscale matrix includes: taking the running direction of the belt conveyor as the increasing direction of the image matrix column coordinate address, for each frame of the historical grayscale matrix that lags behind the original grayscale matrix in the reverse running direction in space, calculating the historical horizontal pixel offset of the historical grayscale matrix of that frame relative to the original grayscale matrix of the single frame; traversing each grayscale value in the historical grayscale matrix of that frame, performing an addition operation between its current column coordinate address and the corresponding historical horizontal pixel offset to obtain the target column coordinate address; when the target column coordinate address exceeds the matrix column boundary, performing a pixel discard operation; when the target column coordinate address does not exceed the matrix column boundary, writing the grayscale value into the target column coordinate address to compensate for the positional lag of the historical grayscale matrix in the reverse running direction.
[0011] Further, obtaining the enhanced grayscale matrix includes: performing a numerical addition operation on the corresponding matrix coordinate points of all the rewritten historical grayscale matrices and the original grayscale matrix of the single frame, and dividing the result of the addition operation by the total number of images involved in the operation to obtain the enhanced grayscale matrix.
[0012] Further, the generation of the gradient magnitude matrix includes: calling the differential detection operator to extract the horizontal grayscale change rate and the vertical grayscale change rate of the enhanced grayscale matrix respectively, adding the square of the horizontal grayscale change rate and the square of the vertical grayscale change rate, and performing a square root operation on the sum to obtain the gradient magnitude matrix.
[0013] Further, obtaining the binarization segmentation threshold includes: obtaining the histogram distribution data of the gradient magnitude matrix, and extracting the binarization segmentation threshold from the histogram distribution data according to the principle of maximizing the inter-class variance between the background pixel group and the target pixel group.
[0014] Furthermore, the output connected component includes: searching for adjacent pixels on the binary image matrix to separate the initial connected region, obtaining a rectangular structuring element of a preset size, performing a spatial dilation operation on the outer boundary of the initial connected region, and then performing a spatial erosion operation on the expanded boundary to close the internal holes of the region and obtain the connected component.
[0015] This invention extracts the initial connected region by searching for adjacent pixels in a binary image matrix, and then calls a rectangular structuring element of a preset size to perform spatial dilation and spatial erosion operations in sequence. This fills the pixel breaks and voids caused by factors such as coal sludge covering the surface of foreign objects, restores the true connected domain expansion boundary of foreign objects, and improves the geometric integrity of size calculation.
[0016] Further, the conversion to obtain the actual length and aspect ratio of the connected region includes: traversing the coordinates of the outer edge points of the connected region, fitting and calculating the principal direction deflection angle of the connected region based on the coordinates of the outer edge points, performing coordinate system rotation transformation on all outer edge points according to the principal direction deflection angle, extracting the extreme values of the horizontal and vertical coordinates of the edge points in the new coordinate system after rotation to locate the minimum bounding rectangle boundary of the connected region, calculating the pixel length and pixel width occupied by the minimum bounding rectangle boundary in the new coordinate system after rotation, converting the pixel length and pixel width values with the spatial pixel resolution to obtain the actual length and actual width values, and dividing the actual length value by the actual width value to obtain the aspect ratio.
[0017] Furthermore, the step of outputting control commands to the controller based on the comparison results includes: when the actual length value is greater than the length limit value and the length-to-width ratio value is greater than the ratio limit value, outputting an emergency stop control command and instructing the hydraulic station to perform an unloading brake action; when the actual length value is greater than the length limit value and the length-to-width ratio value is less than or equal to the ratio limit value, outputting a speed reduction control command and instructing the frequency converter to reduce the stator frequency to perform a speed reduction operation.
[0018] This invention achieves tiered linkage intervention for different levels of danger by comparing the actual length value and the length-to-width ratio value with preset limit values. When a slender foreign object with a high degree of danger is identified, the hydraulic station is instructed to perform unloading and braking. When a large foreign object is identified, the frequency converter is instructed to reduce the stator frequency to perform speed reduction. This avoids the impact of unnecessary emergency stops on the mechanical transmission system.
[0019] The present invention has the following technical effects: This invention collects hardware data such as linear velocity, instantaneous tension, and vertical acceleration, converting them into horizontal pixel offsets and the number of historical image frames involved in the calculation in the image matrix coordinate space. Relying on mechanical compensation and arithmetic operations, it reduces ghosting distortion caused by local deformation and high-frequency fluctuations of the conveyor belt in multiple images. Without increasing the instantaneous power of the underground explosion-proof auxiliary lighting, it processes low signal-to-noise ratio images under short exposure conditions to obtain a high-contrast enhanced grayscale matrix. At the same time, it uses differential detection operators and morphological operations to extract the outer contour of foreign objects and convert it into real geometric dimensions. Geometric data exceeding the safety threshold is converted into corresponding control commands, outputting emergency stop control commands and controlling the hydraulic station to perform unloading and braking, or outputting deceleration control commands and controlling the frequency converter to reduce speed. This achieves high-definition target extraction and tiered anti-tear control of equipment in low-light environments. Attached Figure Description
[0020] Figure 1 This is a flowchart of the conveyor video fault identification and handling decision-making method provided in an embodiment of the present invention; Figure 2 This is a comparison diagram of the effects of the prior art provided in the embodiments of the present invention and the present invention. Detailed Implementation
[0021] This invention provides a method for video fault identification and handling decision-making in conveyors, referring to... Figure 1 This includes steps S1-S4: S1: Data Acquisition and Preprocessing.
[0022] Specifically, the system collects data on the linear speed, instantaneous tension, vertical acceleration, and original grayscale matrix of a single frame of the belt conveyor.
[0023] To meet the special environmental safety requirements of underground coal mines containing methane gas, this embodiment uses a programmable logic controller with an intrinsically safe explosion-proof certificate as the underlying data acquisition device.
[0024] First, the linear speed of the belt conveyor is collected. In this embodiment, an incremental photoelectric encoder is deployed at the end of the drive roller shaft of the belt conveyor. The high-speed pulse input pin of the programmable logic controller receives the high-frequency electrical pulse sequence emitted by the incremental photoelectric encoder in real time. Considering that there is an error in directly measuring the circumference, this embodiment preferably extracts the roller diameter recorded on the belt conveyor's nameplate. The roller diameter is multiplied by pi to obtain the circumference of the drive roller. Then, the central processing unit obtains the number of pulses per revolution of the incremental photoelectric encoder, divides the pulse count value per unit time by the number of pulses per revolution to obtain the number of roller revolutions, and then multiplies the circumference of the drive roller by the number of roller revolutions to obtain the current linear speed of the belt conveyor.
[0025] Next, instantaneous tension is collected. In this embodiment, a tension sensor is connected to the hydraulic tension control circuit of the conveyor. The analog input channel of the programmable logic controller collects the analog voltage signal returned by the tension sensor. In order to eliminate electromagnetic spike interference caused by the start-up and shutdown of large underground electrical equipment, this embodiment preferably collects analog voltage signals for 5 consecutive signal sampling cycles. The programmable logic controller sorts the analog voltage signals of these 5 consecutive cycles by size and extracts the voltage value in the middle position as the target voltage after noise reduction. Then, the conversion ratio between voltage and tension recorded in the tension sensor's manufacturer's specifications is extracted. The target voltage is multiplied by the conversion ratio to obtain the instantaneous tension of the current conveyor belt cross section.
[0026] Subsequently, vertical acceleration is acquired. In this embodiment, a vibration acceleration sensor is deployed on the bearing housing of the support roller. The vibration acceleration sensor outputs a charge signal, which is converted into a standard voltage by a signal amplification module and input to a programmable logic controller. In order to restore the electrical signal to a mechanical quantity, this embodiment preferably extracts the voltage sensitivity parameter from the factory calibration file of the vibration acceleration sensor, and performs a multiplication operation between the standard voltage and the voltage sensitivity parameter to obtain the vertical acceleration of the roller in the vertical direction.
[0027] Finally, a single-frame original grayscale matrix is acquired. In this embodiment, an industrial camera is suspended directly above the surface of the focused coal flow, and the column coordinate address of the industrial camera's image is aligned with the running direction of the belt conveyor. Considering the high speed of the belt conveyor, to avoid motion blur exceeding the span of a single pixel, this embodiment preferably sends a shutter trigger pulse signal to the industrial camera via the hardware trigger pin of the industrial control computer. The industrial camera completes pixel sampling within the exposure time window, converts the captured light signal into digital grayscale values, and writes them into the memory space in row and column coordinate order to generate a single-frame original grayscale matrix. This single-frame original grayscale matrix is extracted in the same hardware clock cycle as the aforementioned linear velocity, instantaneous tension, and vertical acceleration to ensure synchronous acquisition of multi-source data in the time dimension.
[0028] S2: Pixel displacement rewriting and enhanced grayscale matrix generation.
[0029] Specifically, the cross-sectional area, elastic modulus, span length, spatial pixel resolution, number of historical image frames, and historical grayscale matrix of the belt conveyor are obtained. The horizontal pixel offset is calculated based on the running linear velocity, instantaneous tension, cross-sectional area, elastic modulus, and span length. The number of historical image frames is dynamically adjusted based on the vertical acceleration. The historical grayscale matrix is rewritten based on the horizontal pixel offset. The rewritten historical grayscale matrix is then arithmetically averaged with the original grayscale matrix of a single frame to obtain the enhanced grayscale matrix.
[0030] First, the central processing unit extracts the sampling time interval between two adjacent frames of the camera's underlying firmware configuration, and performs a multiplication operation on this sampling time interval and the running linear velocity extracted by S1 to obtain the rigid displacement of the conveyor belt under undisturbed conditions.
[0031] Next, the central processing unit (CPU) retrieves the instantaneous tension from the memory of the previous signal sampling period as the instantaneous tension at a historical moment. It then subtracts the instantaneous tension at the current moment from the instantaneous tension at the historical moment to obtain the tension change difference. To map the tension change to length deformation, this embodiment preferably extracts the cross-sectional area specified on the belt conveyor's nameplate, the elastic modulus from the rubber material test report, and the span length from the on-site construction survey drawings. The CPU multiplies the cross-sectional area and the elastic modulus, divides the tension change difference by the product, and then multiplies the quotient with the span length to obtain the elastic deformation displacement. The CPU adds the rigid displacement and the elastic deformation displacement to obtain the total mechanical displacement.
[0032] In order to convert spatial displacement into image offset, this embodiment calibrates the spatial pixel resolution. The specific steps are as follows: a standard checkerboard calibration plate with known side length is obtained and placed on the surface of the conveyor belt. The camera captures the image of the calibration plate. The central processing unit counts the number of pixels spanned by the edge of a single grid in the image. The side length is divided by the number of pixels to obtain the spatial pixel resolution. The central processing unit removes the total mechanical bits to the spatial pixel resolution and retains the integer part, which is used as the horizontal pixel offset.
[0033] Subsequently, the CPU calls its mathematical operation instruction library, using the sampling time interval between two adjacent frames as a single integration time window, to perform continuous integration on the vertical acceleration collected by S1 within the current integration time window, obtaining the vertical offset of the current window. Specifically, at the start of the integration time window that triggers sampling for each frame, the vertical velocity and vertical offset at the initial moment of the current window are both cleared (i.e., set to 0). Within this integration time window, the sampling time step of the underlying hardware is obtained. The vertical acceleration of each hardware sampling cycle is multiplied by the sampling time step to obtain the velocity increment. The velocity increment is then added to the vertical velocity of the previous hardware sampling cycle to obtain the current vertical velocity. Next, the current vertical velocity is multiplied by the sampling time step to obtain the displacement increment. The displacement increment is then multiplied by the previous hardware sampling cycle... The vertical offset of the sampling period is added together, and the absolute value of the accumulated result is taken at the end of the current integration time window to obtain the vertical offset within the current frame period. Then, at the beginning of the next frame integration time window, the integrator is reset to zero to avoid unidirectional baseline drift caused by long-term continuous integration. The vertical offset is obtained. For the initial vertical velocity and vertical offset, this embodiment sets them to 0. The central processing unit divides the vertical offset by the spatial pixel resolution to convert it into the equivalent jitter pixel size in units of pixels. In order to determine whether mechanical jitter causes optical defocus, this embodiment uses the span of a single pixel as the maximum allowable blur-free jitter tolerance, that is, the value of the single pixel jitter threshold is set to 1, representing 1 pixel unit. The central processing unit compares the equivalent jitter pixel size with the single pixel jitter threshold. When the equivalent jitter pixel size is greater than the single pixel jitter threshold, the vibration amplitude is determined to be too large, and the central processing unit reduces the number of historical image frames. In this embodiment, the lower limit of the number of frames to be reduced is preferably set to 3 frames. 3 frames is the minimum effective sample base that satisfies the statistical averaging algorithm to offset random thermal noise. When the equivalent jitter pixel size is less than or equal to the single pixel jitter threshold, the operation is determined to be stable, and the central processing unit expands the number of historical image frames. Since when the cumulative span of image acquisition exceeds 15 frames, the cumulative jump of the roller in the vertical direction will overflow the depth-of-field tolerance range of the camera's optical lens, this embodiment preferably sets the upper limit of the expanded frame number to 15 frames.
[0034] Subsequently, based on the dynamically adjusted historical image frame number, the CPU traces backward from memory and extracts an equal number of original grayscale matrices written to the cache within consecutive sampling periods, serving as the historical grayscale matrix. For each frame of the historical grayscale matrix, the CPU extracts the cumulative time span between the acquisition time of that frame's historical grayscale matrix and the current acquisition time of the single frame's original grayscale matrix. This cumulative time span is multiplied by the running linear velocity to obtain the historical rigid displacement. Simultaneously, the CPU retrieves the historical instantaneous tension corresponding to that acquisition time and subtracts the current instantaneous tension from the historical instantaneous tension to obtain the cumulative tension change difference. The CPU divides this cumulative tension change difference by the product of the cross-sectional area and the elastic modulus, then multiplies it by the span length to obtain the historical elastic deformation displacement. The CPU then compares the historical rigid displacement with the... The historical elastic deformation displacements are summed, divided by the spatial pixel resolution, and rounded to obtain the historical horizontal pixel offset corresponding to the frame. Since the column coordinate address increment direction of the industrial camera image is consistent with the running direction of the belt conveyor, the column coordinate position of the same target object at the historical acquisition time is spatially lagging behind the current acquisition time along the reverse running direction of the belt conveyor. Therefore, in order to compensate for this positional lag in the reverse running direction and achieve spatial alignment with the current frame, for each gray value in the frame matrix, its current column coordinate address and historical horizontal pixel offset are added to obtain the target column coordinate address. When the target column coordinate address exceeds the matrix boundary, a pixel discard operation is performed. For the part that does not exceed the boundary, the gray value is stored in the target column coordinate address to compensate for the positional lag of the historical gray matrix in the reverse running direction of the belt conveyor.
[0035] Finally, the central processing unit extracts all the rewritten historical grayscale matrices and the original grayscale matrices of a single frame acquired by S1, performs numerical addition operations at the corresponding matrix coordinate points, and divides the result of the addition operation by the total number of images involved in the operation to obtain the enhanced grayscale matrix with random thermal noise eliminated.
[0036] S3: Geometric feature extraction of connected components.
[0037] Specifically, the grayscale change features of the enhanced grayscale matrix are extracted to generate a gradient magnitude matrix. A binarization segmentation threshold is obtained. The gradient magnitude matrix is converted into a binary image matrix based on the binarization segmentation threshold. Closed regions are extracted from the binary image matrix to output connected components. The actual length and aspect ratio of the connected components are calculated by combining the spatial pixel resolution.
[0038] First, the central processing unit (CPU) calls the differential detection operator to extract the horizontal and vertical grayscale change rates of the enhanced grayscale matrix. In this embodiment, the preferred differential detection operator is a horizontal convolution kernel and a vertical convolution kernel with specific constant weights. The weights of the horizontal convolution kernel are arranged as follows: the first column has values of -1, -2, -1; the second column has all values of 0; and the third column has values of 1, 2, 1. The weights of the vertical convolution kernel are arranged as follows: the first row has values of -1, -2, -1; the second row has all values of 0; and the third row has values of 1, 2, 1. Specifically, the extraction process involves the CPU calculating the horizontal... The directional convolution kernel slides pixel by pixel on the enhanced grayscale matrix, aligning the center point of the convolution kernel with the current pixel. The weight values within the convolution kernel are multiplied one by one with the grayscale values of the pixels in the covered area, and the results are summed to obtain the horizontal grayscale change rate of the current pixel. Similarly, the vertical convolution kernel is slid and the corresponding one-to-one multiplication and summation are performed to obtain the vertical grayscale change rate. Subsequently, the central processing unit (CPU) adds the square of the horizontal grayscale change rate to the square of the vertical grayscale change rate, and calls the CPU's math library to perform a square root operation on the sum, obtaining the gradient magnitude matrix that enhances the edges of the foreign object contour.
[0039] Next, the central processing unit (CPU) statistically analyzes the frequency distribution of the values of all pixels within the gradient magnitude matrix to obtain the histogram distribution data of the gradient magnitude matrix. Based on the well-known Otsu's method in digital image processing, this embodiment assumes that the image consists of two parts: the target and the background. The CPU sequentially uses each gray level in the histogram distribution data as a temporary threshold and calculates the variance data of the background pixel group and the target pixel group divided by the temporary threshold. According to the principle of maximizing the inter-class variance between the background pixel group and the target pixel group, the gray level that makes the inter-class variance reach its peak is extracted and used as the binarization segmentation threshold. The CPU uses this binarization segmentation threshold as a boundary line, assigning the highest value representing white to pixels with values greater than the binarization segmentation threshold, and assigning the lowest value representing black to the remaining pixels, thus transforming the gradient magnitude matrix into a binary image matrix that is either black or white.
[0040] Subsequently, the CPU performs an eight-neighborhood scan on the binary image matrix, searching for adjacent white pixels to separate the initial connected region. To repair the contour fracture caused by the surface covering with coal sludge, the CPU generates a pure numeric matrix in memory with 5 pixels on each side and all internal values set to 1. This pure numeric matrix is used as a rectangular structuring element of a preset size. Next, spatial dilation and spatial erosion operations are performed sequentially on the outer boundary of the initial connected region. The specific operation logic is as follows: First, the rectangular structuring element is slid along the boundary. As long as the rectangular structuring element contains any white pixel, the center point is marked as white, completing the spatial dilation operation of expanding pixels outward. Then, the rectangular structuring element is used to slide along the expanded boundary. Only when all pixels within the structuring element are white is the white state of the center point retained, and all others are marked as black, completing the spatial erosion operation of separating the outer edge and closing the voids inside the region, finally obtaining the complete connected region.
[0041] Finally, the CPU iterates through the coordinates of the outer edge points of the connected component. To find the geometric boundary and avoid dimensional distortion of tilted objects, the CPU performs principal direction fitting on the connected component based on the coordinates of the outer edge points. Specifically, the CPU iterates through all outer edge points, calculates the arithmetic mean of all x-coordinates and the arithmetic mean of all y-coordinates, and uses this set of average coordinates as the geometric center point of the connected component. Then, it calculates the sum of squares of the x-coordinate deviations, the sum of squares of the y-coordinate deviations, and the sum of the products of the x-coordinate and y-coordinate deviations of each edge point relative to the geometric center point. Based on these three sums, it calls the... The CPU calculates the principal direction deflection angle of the connected component using the arctangent function instruction from the mathematical arithmetic library. Specifically, the CPU multiplies the sum of the products of the horizontal and vertical coordinate deviations by 2 to obtain the first intermediate parameter. It then subtracts the sum of the squares of the horizontal and vertical coordinate deviations to obtain the second intermediate parameter. Finally, it calls a division instruction to divide the first intermediate parameter by the second intermediate parameter to obtain the tangent ratio. Subsequently, the CPU calls the arctangent function instruction from the mathematical arithmetic library, uses the tangent ratio as an input parameter to calculate the double deflection angle, and then divides the double deflection angle by 2 to obtain the principal direction deflection angle of the connected component.
[0042] When locating the minimum bounding rectangle of a connected component, the CPU calls the sine and cosine function instructions from the mathematical arithmetic library based on the principal direction deflection angle to calculate the sine and cosine values of the principal direction deflection angle, respectively. To rotate the principal direction of the connected component in the opposite direction to a state parallel to the horizontal coordinate axis, the CPU performs coordinate system transformation operations on all outer edge points one by one. Specifically, it extracts the x-coordinate and y-coordinate of the current outer edge point, multiplies the x-coordinate with the cosine value to obtain the first product, multiplies the y-coordinate with the sine value to obtain the second product, and adds the first product and the second product to obtain the transformed x-coordinate. Then, it multiplies the y-coordinate with the cosine value to obtain the third product, and multiplies the x-coordinate with the sine value to obtain the fourth product. The third product is subtracted from the fourth product to obtain the new ordinate after transformation. In the new coordinate system, the CPU extracts the maximum and minimum x-coordinates, maximum and minimum ordinates of all edge points, calculates the difference between the maximum and minimum x-coordinates in the new coordinate system after rotation, and uses this difference as the pixel length value occupied by the boundary of the minimum bounding rectangle after rotation. The CPU also calculates the difference between the maximum and minimum ordinates, and uses this difference as the pixel width value occupied by the boundary of the minimum bounding rectangle after rotation. Subsequently, the CPU performs multiplication operations on the pixel length and pixel width values with the spatial pixel resolution obtained in S2 to obtain the actual length value corresponding to the long side and the actual width value corresponding to the short side of the minimum bounding rectangle after rotation. The CPU then calls a division instruction to divide the actual length value by the actual width value to obtain the aspect ratio value.
[0043] S4: Boundary comparison and instruction output.
[0044] Specifically, the length limit value and the ratio limit value are obtained, and the actual length value and the length-to-width ratio value are compared with the length limit value and the ratio limit value respectively. Based on the comparison result, control commands are output to the controller.
[0045] To classify the hazard levels of foreign objects with different geometric shapes, it is necessary to obtain length and proportion limits. This embodiment refers to the safety protection requirements for longitudinal tear prevention of conveyor belts and blockage prevention of transfer chutes in GB 22340-2008 "Safety Specifications for Belt Conveyors for Coal Mines" and MT 872-2000 "Technical Conditions for Protective Devices for Belt Conveyors for Coal Mines". Combined with the minimum safe passage cross-sectional dimensions of the throat of the transfer chute at the head of the main conveyor belt in underground coal mines (taking a typical belt width of 1000mm~1200mm as an example) and the spacing structural parameters of the buffer idler group, when the length of the foreign object exceeds 0.5m, it is very easy to cause jamming or suspension at the material drop throat of the transfer chute or to cross the spacing of the buffer idlers and form rigid pressure. Therefore, the length limit value is set to 0.5m. At the same time, based on the historical statistical data analysis of typical slender metal foreign objects such as abandoned anchor rods and angle steel in underground mines that are prone to penetrating tearing, this embodiment preferably sets the proportion limit value to 5.
[0046] During logical judgment, the central processing unit retrieves the actual length value and aspect ratio value obtained from S3, calls the microprocessor's logical comparison instruction to compare the actual length value with the length limit value, and compares the aspect ratio value with the aspect ratio limit value. When the actual length value is greater than the length limit value and the length-to-width ratio value is greater than the ratio limit value, the current object is determined to be a long, sharp foreign object with a high risk of puncturing the conveyor belt. At the same time, it is determined that the belt conveyor has a risk of severe tearing failure. At this time, the central processing unit writes a feature value (e.g., hexadecimal value 0x0001) representing the emergency stop control command to the preset fault control holding register address (preferably the holding register address 40001 under the Modbus TCP communication protocol) of the programmable logic controller at the bottom layer as the controller through the industrial Ethernet communication protocol. After the programmable logic controller captures the emergency stop control command through periodic scanning, it calls its digital output pin to output a trigger level signal to the hydraulic station of the disc brake, cuts off the pressure holding power of the electromagnetic reversing valve in the hydraulic station, and the internal circuit of the hydraulic station then opens the drain hole to release pressure. After losing hydraulic resistance, the disc spring inside the disc brake releases mechanical potential energy and pushes the brake shoe to tightly clamp the surface of the brake disc, thereby instructing the hydraulic station to perform unloading and braking action, so as to stop the belt conveyor in an emergency. When the actual length is greater than the length limit and the length-to-width ratio is less than or equal to the ratio limit, the object is determined to be a common large foreign object with a relatively low risk of tearing but a potential cause of chute blockage. Simultaneously, the belt conveyor is deemed to have a risk of large-scale blockage. In this case, the central processing unit (CPU) writes a characteristic value (e.g., hexadecimal 0x0002) representing a speed reduction control instruction to the same holding register address (i.e., holding register address 40001) of the programmable logic controller (PLC). Upon receiving this speed reduction control instruction, the PLC calls its analog output channel to output a voltage control signal to the inverter of the drive motor. This voltage control signal linearly decreases from the rated operating voltage to a preset low-speed voltage over time. In this embodiment, the low-speed voltage is preferably set to... The voltage is set at 20% of the rated operating voltage. At this value, the conveyor belt speed drops to a safe visual tracking range for on-site manual dynamic inspection. At the same time, it ensures that the self-cooling exhaust fan on the coaxial of the drive motor maintains a minimum cooling airflow, preventing the motor from burning out due to heat accumulation. After receiving the voltage control signal, the control board inside the frequency converter divides the real-time voltage value of the voltage control signal by the constant ratio of stator voltage to stator frequency to obtain the target stator frequency, based on the principle of maintaining a constant ratio. The control board generates a modulation reference signal corresponding to the fundamental frequency based on the target stator frequency, thereby instructing the frequency converter to reduce the stator frequency output by the inverter module and perform a speed reduction operation. This drives the belt conveyor to smoothly enter the low-speed operation condition, providing sufficient safe time window for on-site personnel to inspect large foreign objects. When the actual length value is less than or equal to the length limit value, the current coal flow status is determined to be safe, no obvious fault is identified, the central processing unit does not output any intervention instructions, the belt conveyor maintains the current normal operating condition, and achieves uninterrupted transportation of normal raw coal.
[0047] Figure 2 The diagram shows a comparison of the effects of the prior art and the present invention in the embodiments of the present invention. It can be seen that when the prior art enters the high-frequency vibration burst range, the image space alignment error caused by the deformation of the conveyor belt and the jumping of the idler rollers cannot be offset, resulting in a significant decrease and violent fluctuation in the contour extraction accuracy. In contrast, the present invention compensates for the pixel registration deviation caused by mechanical disturbance by synchronously introducing instantaneous tension to calculate the horizontal pixel offset and dynamically adjusting the number of historical image frames for the moving average calculation in combination with vertical acceleration. This allows the present invention to maintain a high recognition accuracy in the high-frequency vibration burst range, demonstrating the anti-interference stability of the present invention in short exposure low light environment and mechanical vibration conditions.
Claims
1. A method for video fault identification and handling decision-making in conveyors, characterized in that, include: S1, collect the running linear velocity, instantaneous tension, vertical acceleration, and single-frame original grayscale matrix of the belt conveyor; S2, obtain the cross-sectional area, elastic modulus, span length, spatial pixel resolution, number of historical image frames, and historical grayscale matrix of the belt conveyor; calculate the horizontal pixel offset based on the running linear velocity, instantaneous tension, cross-sectional area, elastic modulus, and span length; dynamically adjust the number of historical image frames based on the vertical acceleration; rewrite the historical grayscale matrix based on the horizontal pixel offset; and perform an arithmetic average operation between the rewritten historical grayscale matrix and the single-frame original grayscale matrix to obtain the enhanced grayscale matrix; S3, extract the grayscale change features of the enhanced grayscale matrix, generate a gradient magnitude matrix, obtain a binarization segmentation threshold, convert the gradient magnitude matrix into a binary image matrix according to the binarization segmentation threshold, extract closed regions from the binary image matrix and output connected components, and calculate the actual length and aspect ratio of the connected components based on the spatial pixel resolution; S4, obtain the length limit and aspect ratio limit values, compare the actual length and aspect ratio values with the length limit and aspect ratio limit values respectively, and output control commands to the controller according to the comparison results.
2. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The calculation of the horizontal pixel offset includes: extracting the sampling time interval between two adjacent frame images, calculating the rigid displacement in combination with the running linear velocity, obtaining the instantaneous tension at the current moment and the historical moment and calculating the difference in tension change, calculating the elastic deformation displacement in combination with the cross-sectional area, the elastic modulus, the span length and the difference in tension change, adding the rigid displacement and the elastic deformation displacement, and converting them into the horizontal pixel offset in combination with the spatial pixel resolution.
3. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The dynamic adjustment of the number of historical image frames includes: using the sampling time interval between two adjacent frames as an integration time window; at the beginning of each integration time window, resetting the initial values of vertical velocity and vertical offset to zero; and within the integration time window, performing continuous quadratic time integration on the vertical acceleration according to the sampling time step of the vertical acceleration and taking the absolute value to obtain the vertical offset of the current window; obtaining a single-pixel jitter threshold with a value of 1; converting the vertical offset into an equivalent jitter pixel size in combination with the spatial pixel resolution; comparing the equivalent jitter pixel size with the single-pixel jitter threshold; reducing the number of historical image frames when the equivalent jitter pixel size is greater than the single-pixel jitter threshold; and increasing the number of historical image frames when the equivalent jitter pixel size is less than or equal to the single-pixel jitter threshold.
4. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The displacement rewriting of the historical grayscale matrix includes: taking the running direction of the belt conveyor as the increasing direction of the image matrix column coordinate address, for each frame of the historical grayscale matrix that lags behind the original grayscale matrix in the reverse running direction in space, calculating the historical horizontal pixel offset of the historical grayscale matrix of that frame relative to the original grayscale matrix of the single frame; traversing each grayscale value in the historical grayscale matrix of that frame, performing an addition operation between its current column coordinate address and the corresponding historical horizontal pixel offset to obtain the target column coordinate address; when the target column coordinate address exceeds the matrix column boundary, performing a pixel discard operation; when the target column coordinate address does not exceed the matrix column boundary, writing the grayscale value into the target column coordinate address to compensate for the positional lag of the historical grayscale matrix in the reverse running direction.
5. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The process of obtaining the enhanced grayscale matrix includes: performing a numerical addition operation on the corresponding matrix coordinate points of all the rewritten historical grayscale matrices and the original grayscale matrix of the single frame, and dividing the result of the addition operation by the total number of images involved in the operation to obtain the enhanced grayscale matrix.
6. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The generation of the gradient magnitude matrix includes: calling the differential detection operator to extract the horizontal and vertical grayscale change rates of the enhanced grayscale matrix respectively, adding the square of the horizontal grayscale change rate to the square of the vertical grayscale change rate, and performing a square root operation on the sum to obtain the gradient magnitude matrix.
7. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The process of obtaining the binarization segmentation threshold includes: obtaining the histogram distribution data of the gradient magnitude matrix, and extracting the binarization segmentation threshold from the histogram distribution data according to the principle of maximizing the inter-class variance between the background pixel group and the target pixel group.
8. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The output connected component includes: searching for adjacent pixels on the binary image matrix to separate the initial connected region, obtaining a rectangular structuring element of a preset size, performing a spatial dilation operation on the outer boundary of the initial connected region, and then performing a spatial erosion operation on the expanded boundary to close the internal holes of the region and obtain the connected component.
9. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The conversion to obtain the actual length and aspect ratio of the connected region includes: traversing the coordinates of the outer edge points of the connected region; fitting and calculating the principal direction deflection angle of the connected region based on the coordinates of the outer edge points; performing coordinate system rotation transformation on all outer edge points according to the principal direction deflection angle; extracting the extreme values of the horizontal and vertical coordinates of the edge points in the new coordinate system after rotation to locate the minimum bounding rectangle boundary of the connected region; calculating the pixel length and pixel width occupied by the minimum bounding rectangle boundary in the new coordinate system after rotation; converting the pixel length and pixel width values with the spatial pixel resolution to obtain the actual length and actual width values; and dividing the actual length value by the actual width value to obtain the aspect ratio.
10. The conveyor video fault identification and handling decision-making method according to claim 1, characterized in that, The step of outputting control commands to the controller based on the comparison results includes: when the actual length value is greater than the length limit value and the length-to-width ratio value is greater than the ratio limit value, outputting an emergency stop control command and instructing the hydraulic station to perform an unloading brake action; when the actual length value is greater than the length limit value and the length-to-width ratio value is less than or equal to the ratio limit value, outputting a speed reduction control command and instructing the frequency converter to reduce the stator frequency to perform a speed reduction operation.
Citation Information
Patent Citations
Conveying belt tearing prevention detection device based on binocular vision
CN112830189A
Intelligent detection method and system for damage defect of feeding belt
CN114612403A
