Multi-view vision and lumping feature completion method for measuring volume of stone coal pile

By using a multi-view visual and agglomeration feature completion method, the problems of reference surface adaptability, agglomeration occlusion and error compensation in the volume measurement of stone coal piles are solved, realizing low-cost and high-precision volume measurement, adapting to the humid environment of slag bins, and supporting safety management and intelligent control.

CN123181530APending Publication Date: 2026-11-27国能神福(石狮)发电有限公司
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611447509.X
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-09-17
Publication Date
2026-11-27

AI Technical Summary

Technical Problem

Existing technologies cannot effectively adapt to the special characteristics of stone and coal pile volume measurement, including poor reference surface adaptability, lack of agglomeration and obstruction handling, contradiction between environmental adaptability and cost, and simplistic error compensation logic, making it difficult to balance measurement accuracy and cost.

Method used

A multi-view vision system is adopted, combined with an improved dark channel prior algorithm, CLAHE algorithm and SIFT feature matching for image preprocessing, dynamic reference surface calibration, improved U-Net model for segmentation and feature extraction, multi-view point cloud fusion and block region completion, and error compensation based on particle characteristics to form a closed-loop measurement method.

Benefits of technology

It achieves low-cost, high-precision measurement of the volume of stone and coal piles in humid environments, with strong environmental adaptability and robustness, and the measurement error is controlled within 3%. It also supports safety management and intelligent control.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure QLYQS_1
    Figure QLYQS_1
  • Figure QLYQS_8
    Figure QLYQS_8
  • Figure SMS_163
    Figure SMS_163
Patent Text Reader

Abstract

The present application relates to the technical field of industrial vision measurement and solid material volume measurement, in particular to a high-precision volume measurement method for stone coal piles suitable for slag yard scenes of thermal power plants and coal chemical enterprises, and specifically discloses a multi-view vision and agglomeration feature completion stone coal pile volume measurement method, which comprises the following steps: S1, multi-view vision system deployment and environment adaptation; S2, image preprocessing in a humid environment; S3, dynamic reference surface calibration; S4, stone coal pile region segmentation and feature extraction; S5, multi-view point cloud fusion and agglomeration region completion; and S6, error compensation and volume calculation associated with particle characteristics. The method realizes low-cost, high-precision and strong environmental adaptability measurement of the volume of stone coal piles, forms a complete closed loop of "measurement-analysis-warning-management", and provides reliable technical support for safe production and intelligent management of slag yards.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of industrial visual measurement and solid material volume measurement technology, and in particular to a high-precision method for measuring the volume of stone and coal piles applicable to slag bins in thermal power plants and coal chemical enterprises. Background Technology

[0002] Stone coal is a solid byproduct generated during the operation of coal-fired power plants. Accurate measurement of its stockpile volume is crucial for slag bin safety management, compliant solid waste declaration, and cost control of waste disposal. However, measuring the volume of stone coal stockpiles faces a series of unique technical challenges in practical industrial applications, distinct from those of conventional coal stockpile measurements.

[0003] First, coal pebbles are typically stored statically in enclosed slag bins. After slag discharge, their moisture content is as high as 15% to 25%, with particle diameters ranging from 5 mm to 150 mm. They also readily form clumps with volumes ranging from 0.1 cubic meters to 1 cubic meter. This high moisture content and clumping characteristic result in a consistently humid and foggy environment inside the slag bins, severely interfering with the data acquisition quality of the visual sensors.

[0004] Secondly, existing technologies for volume measurement cannot effectively adapt to the specific characteristics of the stone coal scene, and there are four main defects: (1) Poor adaptability of the reference surface. The bottom of the slag bin often forms an irregular inclined surface due to the accumulation of residual stone coal or wear caused by long-term operation of the equipment. However, existing technologies generally use a fixed horizontal reference surface for volume calculation, ignoring the changes in the actual bottom shape of the bin, resulting in significant deviations in the volume calculation of the bottom of the pile. (2) Lack of processing for agglomeration and occlusion. Mutual occlusion between stone coal agglomerates will form "information holes" in the visual image, resulting in the loss of three-dimensional point cloud data. Existing technologies can only complete basic noise reduction or achieve macroscopic differentiation between coal and foreign objects, and cannot effectively repair the three-dimensional shape of the occluded area, resulting in prominent volume omission problems. (3) There is a contradiction between environmental adaptability and cost. Humid environments are prone to forming water mist on the surface of the camera lens, which seriously affects the image quality. The cost of high-precision lidar measurement equipment exceeds 100,000 yuan, which is expensive. Moreover, the inspection robot solution adapted to dynamic scenes is not suitable for the measurement needs of static piles of slag bins, making it difficult to achieve a balance between measurement accuracy and industrial application cost. (4) The error compensation logic is simple. Existing technologies mostly rely on fixed historical data models for error compensation. However, the physical properties of stone coal, such as particle size distribution and agglomeration rate, will change dynamically with the boiler's coal calorific value, slag discharge frequency, and other operating conditions. Fixed models cannot match the actual material state in real time, resulting in limited compensation effect and the overall measurement error is still too high.

[0005] To address the aforementioned technical bottlenecks, there is an urgent need for a high-precision method for measuring the volume of stone and coal piles that can adapt to the humid environment of slag bins, accurately handle caking and obstruction, possess dynamic calibration capabilities, and be cost-controllable. Summary of the Invention

[0006] The purpose of this invention is to provide a multi-view visual and agglomeration feature-complete method for measuring the volume of stone and coal piles, so as to achieve low-cost, high-precision, and environmentally adaptable measurement of the volume of stone and coal piles, forming a complete closed loop of "measurement-analysis-early warning-management", and providing reliable technical support for safe production and intelligent management of slag bins.

[0007] To achieve the above objectives, the technical solution of the present invention is: a method for measuring the volume of a coal pile using multi-view vision and agglomeration feature completion, the method steps of which are as follows:

[0008] S1. Deployment and environmental adaptation of multi-view vision system; including hardware deployment and calibration. The hardware deployment includes deploying industrial cameras and temperature and humidity sensors in the slag bin. Multiple industrial cameras are deployed in layers according to vertical height, including low-view cameras covering the bottom of the stack and the reference surface of the bin bottom, medium-view cameras covering the middle area of ​​the stack, and high-view cameras covering the top of the stack and the top area of ​​the bin.

[0009] S2. Image preprocessing under humid conditions; including multi-level processing such as improving the dark channel prior algorithm for anti-fogging and denoising, improving the CLAHE algorithm for texture enhancement, and multi-view image alignment; the improvement of the dark channel prior algorithm is to set a dark channel threshold to distinguish between fog and non-fog areas based on the characteristics of the dark channel values ​​of rough stone and coal surfaces to avoid the stone and coal texture being misjudged as fog areas. After defogging through an atmospheric scattering model, bilateral filtering is used to smooth noise to achieve anti-fogging and denoising; the CLAHE algorithm is improved by setting a contrast limit threshold, performing cropping equalization, brightening the particle edges through Sobel edge detection, and stitching with bilinear interpolation to achieve texture enhancement; multi-view image alignment processing uses SIFT feature matching and RANSAC mismatch removal, and calculates the homography matrix to transform the perspective of low and high view images to a medium view reference;

[0010] S3. Dynamic reference surface calibration; including empty warehouse reference contour extraction, pile-empty warehouse grayscale difference positioning of contact line and least squares fitting of reference surface; empty warehouse reference contour extraction involves acquiring multiple images of the empty warehouse, taking the pixel-level mean value to obtain the empty warehouse mean map, and extracting the junction edge between the warehouse bottom and the warehouse wall and the edge of residual stones and coal through Canny edge detection to form the empty warehouse reference contour; pile-empty warehouse grayscale difference positioning of contact line involves performing grayscale difference operation between the pile image and the empty warehouse mean map, setting the difference threshold to generate a binarized image, and using morphological operations to locate the contact line; least squares fitting of reference surface involves converting the pixel coordinates of the contact line into three-dimensional coordinates, substituting them into the plane equation, solving for the optimal plane coefficients through the least squares method, fitting a dynamic reference surface as the zero plane for volume calculation;

[0011] S4. Segmentation and Feature Extraction of Stone and Coal Pile Regions; including the construction and enhancement of the segmentation dataset, training of the improved U-Net model, and real-time segmentation and agglomeration feature extraction; the construction and enhancement of the segmentation dataset involves collecting multi-view images of stone and coal piles under various working conditions, performing pixel-level annotations including ordinary particle areas, agglomeration areas, and shadow areas, dividing them into training and validation sets according to proportions, and performing data enhancement through random rotation and brightness adjustment; the improvement of the U-Net model involves adding a texture attention module to the U-Net encoder and using a cross-entropy + Dice joint loss function for training; real-time segmentation and agglomeration feature extraction involves inputting the aligned multi-view images into the trained improved U-Net model to output binary masks for three types of regions, extracting agglomeration contours and calculating surface roundness, and classifying agglomerations into regular agglomerations and irregular agglomerations;

[0012] S5. Multi-view point cloud fusion and clumping region completion; including point cloud generation and denoising of ordinary particle regions, occlusion and hole completion of clumping regions, and multi-view point cloud fusion and downsampling; point cloud generation and denoising of ordinary particle regions uses the mid-view image as a reference, and the SGBM algorithm is used to calculate the disparity map of low and high view images and convert it into three-dimensional coordinates. Statistical filtering is used to denoise and generate dense point clouds of ordinary particle regions; occlusion and hole completion of clumping regions is carried out by differential completion based on roundness classification. Regular clumps are fitted with arc extension completion, and irregular clumps are filled by fitting multiple planes with RANSAC and filling them with intersection constraints; multi-view point cloud fusion and downsampling uses the mid-view as a reference and the ICP algorithm is used to iteratively optimize and stitch together low and high view point clouds. After fusion, the complete pile point cloud is obtained by voxel mesh downsampling.

[0013] S6. Error compensation and volume calculation based on particle characteristics; including point cloud trimming and preliminary volume calculation, particle characteristic analysis and parameter extraction, and error compensation based on particle characteristics; point cloud trimming and preliminary volume calculation is based on retaining the point cloud above the dynamic reference plane and calculating the preliminary volume using the voxel accumulation method; particle characteristic analysis and parameter extraction is based on randomly sampling multiple particles from a mask of ordinary particle regions, classifying and statistically analyzing the proportion of fine, medium, and coarse particles according to their equivalent diameter, and calculating the agglomeration rate to achieve real-time quantification of material characteristics; error compensation based on particle characteristics is based on substituting the particle size ratio and agglomeration rate into the error coefficient model to calculate the compensation coefficient and correct the preliminary volume.

[0014] Furthermore, the calibration in step S1 adopts a two-stage calibration, including the first stage of calibrating the camera's internal parameters and spatial attitude between multiple views, and the second stage of calculating the deviation of the model by correcting the volume through physical objects.

[0015] Further, in the first stage: the intrinsic parameter matrix of the industrial camera is calibrated using the checkerboard calibration method. The image distortion caused by lens distortion is corrected by the radial and tangential distortion coefficients. Using the mid-angle camera as the reference coordinate system, the rotation matrix and translation vector of the low-angle and high-angle cameras relative to the mid-angle camera are solved by the stereo calibration function. After the extrinsic parameters are calibrated, multiple typical feature points are selected in the common field of view to verify the coordinate consistency. It is required that the deviation between the transformed coordinates and the actual pixel coordinates of the same feature point in the mid-angle image does not exceed the preset pixel limit.

[0016] Further, in the second stage: Various sizes of simulated stone and coal blocks were fabricated to obtain the actual volume of each block. These blocks were then placed at multiple typical locations within the slag bin, with industrial cameras simultaneously capturing images at each location. The images were converted into 3D point clouds using calibrated intrinsic and extrinsic parameters. The measured volume of the simulated block was calculated, and the deviation rate was calculated using the following formula. , The deviation rate, To measure volume, To determine the true volume, the deviation rate is introduced as a correction factor into the volume calculation formula.

[0017] Furthermore, in step S2, the dark channel prior algorithm for anti-fog and noise reduction is improved by selecting a preset proportion of pixels with the highest brightness in the dark channel image, corresponding to the fog-free bright areas. The average brightness of these pixels in the original image is the atmospheric light value, and the atmospheric scattering model expression is as follows: = ,in, For images with fog, This is the actual image to be restored after dehazing. This is a transmittance diagram. The preset value indicates a foggy area. ≥The preset value is determined to be a texture area. The atmospheric light value is used as the basis for optimizing the transmittance map using a soft matting algorithm, which then leads to the dehazed image. The expression is as follows: Then, bilateral filtering is used to restore the true image after dehazing. The process involves smoothing out noise while preserving particle edges.

[0018] Furthermore, in step S2, the improved CLAHE algorithm enhances the texture by dividing the dehazed image into multiple non-overlapping sub-blocks according to a grid. The grayscale histogram of each sub-block is calculated, and the number of pixels at gray levels 0-255 is counted. A contrast limit threshold is set; when the number of pixels at a certain gray level in a sub-block exceeds this threshold, the excess is evenly distributed to other gray levels. The processed grayscale histogram is then equalized to stretch the grayscale range of the sub-blocks, enhancing the grayscale difference between particles and the background. The Sobel operator is used to calculate the horizontal and vertical edge gradients, expressed as follows: ,in, and These are the gradient values ​​in the horizontal and vertical directions, respectively. To synthesize the gradient magnitude, for >The preset pixel brightness is increased, and then bilinear interpolation is used to stitch all sub-blocks together to eliminate grayscale jumps at block boundaries.

[0019] Furthermore, in step S2, multi-view image alignment involves detecting scale-invariant keypoints using the Difference of Gaussian pyramid, calculating a multi-dimensional descriptor for each keypoint, and matching the feature point descriptors of the low-view and mid-view images using FLANN to obtain initial matching pairs. False matches are then eliminated using the RANSAC algorithm, and multiple pairs of matching points are randomly selected to calculate the homography matrix. The perspective transformation formula is: =H ,in,( , ) represents the pixel coordinates in the original image, , Let H be the pixel coordinates in the transformed image, and let H be the homography matrix. The number of inliers that satisfy the transformation error less than a preset certain value is counted. After multiple iterations, the homography matrix with the highest proportion of inliers is selected as the optimal matrix.

[0020] Furthermore, in step S3, the contact line is located using gray-scale difference positioning between the coal pile and the empty silo. Specifically, this involves acquiring an image of the coal pile and performing gray-scale difference calculations with the average image of the empty silo to calculate the absolute value of the gray-scale difference for the corresponding pixels. The expression is as follows: ,in, The absolute value of the grayscale difference. For pixel coordinates, For the image of the heap, To obtain the average value of the empty warehouse, a difference threshold is set. Pixels with an absolute gray-level difference greater than the difference threshold are marked as the stack area, and pixels with an absolute gray-level difference less than or equal to the difference threshold are marked as the background area, resulting in a binarized image. The binarized image is then subjected to element erosion to remove noise, and then the edge integrity is restored through dilation, thereby locating the contact line between the bottom of the stack and the bottom of the warehouse.

[0021] Furthermore, in step S3, the least-squares fitting of the reference surface equation specifically involves using the pixel coordinates of the contact line. Convert to three-dimensional space coordinates The conversion is based on the pinhole camera model, converting the three-dimensional coordinates of all contact points. , For contact point number, =1,2,..., , Substituting the total number of contact points into the plane equation: , The inclination coefficient of the reference plane along the X-axis direction is denoted as . The inclination coefficient of the reference plane along the Y-axis direction. The intercept of the datum plane at the origin represents the overall height offset of the datum plane. The coefficients are solved using the least squares method. , , To minimize the sum of squared errors, the expression is: Solve this least squares problem to obtain the optimal coefficients. , , The standard deviation of the fit is calculated using the following formula: , To fit the standard deviation, if If the value is less than or equal to a preset value, it is determined to be a flat reference surface; otherwise, it is a tilted or residual reference surface. The generated dynamic reference surface has the following generation equation expression: As a reference plane for volume calculation, the volume of all point clouds above this plane is the actual volume.

[0022] Furthermore, step S4 improves the training of the U-Net model. Specifically, a texture attention module is added to layers 3-4 of the U-Net encoder. First, the LBP texture features of the feature map are calculated, and then a weight map is generated based on the LBP features. Block regions receive higher weights due to their coarser texture, causing the model to prioritize block details. A joint loss function of cross-entropy and Dice is used, expressed as: ,in, The loss function is a combination of cross-entropy and Dice. For cross-entropy loss, Used to penalize classification errors. For pixels to belong to categories The true label, To predict probabilities for the model, ∈{1,2,3}, corresponding to the ordinary particle region, the agglomerated region, and the shaded region, respectively. For Dice's loss, It is used to solve the problem of imbalanced samples. For the prediction area, This is the actual labeled area. To predict the intersection area with the labeled area, and These represent the predicted region area and the labeled region area, respectively; the model is trained multiple times within the PyTorch framework.

[0023] Furthermore, in step S4, real-time segmentation and cluster feature extraction specifically involve inputting the aligned multi-view images into the trained improved U-Net model, which outputs binary masks for three types of regions: ordinary particle regions, cluster regions, and shadow regions. For the cluster region mask, the closed contour coordinates of each cluster are extracted using Canny edge detection. Based on the intrinsic parameters of the mid-view camera, the contour pixel area is converted into the actual area, expressed as:

[0024] ,in, This represents the number of pixels within the block outline. This represents the average depth of the agglomerate region. Focal length The actual area is calculated by summing the Euclidean distances of the contour pixels; the actual perimeter is obtained by adding these distances. Roundness is calculated using the following formula: ,in, This is the actual area. This is the actual perimeter. The value represents the roundness, and the clusters are classified into regular clusters and irregular clusters based on the threshold.

[0025] Furthermore, in step S5, the point cloud generation and denoising of the ordinary particle area specifically involves using the mid-view image as a benchmark, calculating the disparity map using the SGBM algorithm on the low-view and high-view images, setting the pixel size of the block and the pixel range of the disparity, and defining the disparity as the difference between the column coordinates of the same point in the left and right images. A bidirectional disparity consistency check ensures that the proportion of erroneous disparities is less than or equal to a preset value. The qualified disparity map is converted into three-dimensional spatial coordinates using camera intrinsic parameters. Statistical filtering is used to check multiple nearest neighbor points of each point, and points with deviations exceeding a preset multiple of the standard deviation are removed, so that the point cloud density of the ordinary particle area reaches the preset requirements.

[0026] Furthermore, in step S5, the occlusion and void filling in the clumped region is specifically performed by fitting a surface arc to the regular clumped area using the least squares method, assuming the visible point cloud coordinates on the arc are... , Using the visible point index, a circular arc is fitted to obtain the center and radius. Based on the circular arc model, the coordinates of the occlusion area are generated, following the following rules: ,in, The average height of the visible portion. One-third of the clumping height, To complete the Z-coordinate value of the point, The value is the difference between the maximum and minimum heights of the visible portion of the cluster; for irregular clusters, edge points are extracted and then fitted using the RANSAC algorithm. There are 3 planes, and the equation of each fitted plane is: , ,in, , , For the first The coefficients of the fitted plane, To fit the number of planes, the occlusion area is filled according to the plane intersection constraint to avoid distortion of the completed shape.

[0027] Furthermore, in step S5, multi-view point cloud fusion and downsampling specifically involves using the mid-view point cloud as a baseline and employing the ICP algorithm to stitch together low- and high-view point clouds. Let the source point cloud and the target point cloud be defined. The ICP algorithm iteratively optimizes the rotation matrix and translation vector to minimize the objective function, expressed as:

[0028] ,in, For points in the source point cloud, In the target point cloud The corresponding nearest point is iterated multiple times until the root mean square error is less than or equal to a preset value. The expression is: ,in, The root mean square error, To match the total number of point pairs, Let be a rotation matrix. It is a translation vector. and For the first For the matching points, the fused point cloud is downsampled using a voxel grid, dividing the 3D space into a cubic grid with a preset side length, and each grid retains one coordinate mean point.

[0029] Furthermore, in step S6, particle characteristic analysis and parameter extraction, multiple independent particles are randomly sampled from the ordinary particle region mask and classified according to their equivalent diameter, which is denoted as . :

[0030] Fine particles: <20mm, the percentage is recorded as ;

[0031] Medium particle size: 20mm≤ ≤50, the percentage is recorded as ;

[0032] Coarse particles: >50mm, the percentage is recorded as ;

[0033] satisfy + + =100%, the equivalent diameter of a particle is defined as the diameter of a circle with the same projected area as the particle, that is... , This represents the projected area of ​​the particle.

[0034] Simultaneously, the clumping rate is calculated based on the segmentation results, expressed as: ,in, The total area of ​​the clumped region. This represents the total surface area of ​​the pile. The clumping rate;

[0035] Error compensation based on particle characteristics involves substituting particle characteristic parameters into a pre-trained error coefficient model. The formula for calculating the error coefficient is as follows: ,in, This is the error compensation coefficient. The proportion of fine particles, The proportion of medium-sized particles, The goodness of fit of the model is set to the clumping rate. ≥0.92, The coefficient of determination, with a value ranging from 0 to 1;

[0036] The compensated volume is calculated using the following formula: ,in, This is the final volume after error compensation. For the initial volume, This is the error compensation coefficient.

[0037] By adopting the above technical solutions, the beneficial effects of the multi-view vision and agglomeration feature completion method for measuring the volume of stone and coal piles provided by this invention are as follows: By deploying industrial cameras in a multi-view layered manner and combining improved dark channel prior dehazing, CLAHE texture enhancement, and SIFT alignment preprocessing strategies, the interference of the humid and foggy environment of the slag bin on image quality is effectively overcome; at the same time, a dynamic reference surface calibration mechanism is introduced to solve the deviation of the volume calculation reference caused by the irregular tilt of the bin bottom; combined with the improved U-Net model for high-precision segmentation of ordinary particle areas, agglomeration areas, and shadow areas, and the differentiated agglomeration occlusion completion strategy based on roundness classification, point cloud holes are significantly repaired and the integrity of the 3D model is improved; finally, through the error compensation model associated with particle characteristics, dynamic correction of the voxel accumulation volume is realized, forming a closed-loop system of "measurement-analysis-early warning-management", which significantly reduces hardware costs while ensuring measurement accuracy (relative error ≤3%), and has strong environmental adaptability, high robustness, and industrial practical value.

[0038] Furthermore, the multi-view vision system eliminates inherent camera errors and systematic model biases through two-stage calibration. Combined with improved dark channel dehazing, CLAHE texture enhancement, and SIFT alignment in a three-stage preprocessing stage, it effectively overcomes the interference of humidity, fog, texture blurring, and viewpoint bias on image quality. Dynamic reference plane calibration utilizes the gray-scale difference between the empty silo and the stacked body to locate the contact line and fit the actual silo bottom morphology, significantly reducing bottom volume deviation. The improved U-Net introduces LBP texture attention and a joint loss function, achieving high-precision segmentation of clumped regions and classification based on roundness, providing a basis for differential... The system provides a reliable basis for point cloud completion. The circularity classification-based arc fitting and multi-plane RANSAC completion strategy, combined with ICP fine registration, efficiently repairs point cloud holes and achieves high-quality fusion of multi-view data, enabling point cloud coverage to reach over 98%. Finally, by real-time statistical analysis of particle size distribution and agglomeration rate and inputting them into the pre-trained error model for dynamic compensation, the volume correction closely matches the actual material state. The overall measurement error is stable and controllable within 3%. At the same time, the automatic early warning function for agglomeration rate exceeding the threshold completes the safety management closed loop, taking into account low cost, high precision, and strong environmental adaptability. Detailed Implementation

[0039] To further explain the technical solution of the present invention, the present invention will be described in detail below through specific embodiments.

[0040] This embodiment discloses a method for measuring the volume of a coal pile using multi-view vision and agglomeration feature completion. The main steps of the method are as follows: S1. Deployment and environmental adaptation of the multi-view vision system, used to build a low-cost pure vision data acquisition hardware system adapted to the humid environment of the slag bin and complete the precise calibration of the camera; S2. Image preprocessing under humid conditions, used to eliminate fog interference, enhance particle texture, and unify multi-view images to the same reference viewpoint; S3. Dynamic reference plane calibration, used to generate a zero plane for volume calculation that fits the actual shape of the bin bottom to eliminate bottom deviation; S4. Segmentation and feature extraction of the coal pile area, used to accurately distinguish between ordinary particle areas, agglomeration areas, and shadow areas and quantify agglomeration morphological features; S5. Multi-view point cloud fusion and agglomeration area completion, used to construct a complete three-dimensional point cloud model of the pile and repair voids caused by agglomeration occlusion; S6. Error compensation and volume calculation based on particle characteristic correlation, used to correct volume calculation errors based on real-time particle size distribution and agglomeration rate and output early warning information. The following describes each step in detail through an implementable embodiment of the method of this invention.

[0041] S1. Deployment and Environmental Adaptation of Multi-View Vision Systems

[0042] This step aims to build a low-cost, high-precision pure visual data acquisition system adapted to the static scene of stone and coal slag silos, specifically including hardware deployment and two-stage calibration.

[0043] The hardware deployment includes deploying multiple industrial cameras in layers at different vertical heights on the inner wall of the slag bin (which is typically cylindrical). In this embodiment, for example, it is divided into three layers, using three Hikvision MV-CA030-10GM industrial monocular cameras (resolution 1280×720, frame rate 30fps, focal length 8mm, horizontal field of view 60°). Specifically:

[0044] Low-angle camera: 1m from the bottom of the silo, mainly covering the bottom of the stack and the reference surface of the silo bottom;

[0045] Medium-angle camera: 3m from the bottom of the silo, covering the core area in the middle of the stack;

[0046] High-angle camera: 5m from the bottom of the silo, covering the top of the stack and the silo roof area;

[0047] Meanwhile, temperature and humidity sensors (such as the Sensirion SHT30 temperature and humidity sensor with an accuracy of ±0.5℃ / ±3%RH, which can be installed next to the medium-angle camera) are installed to collect environmental parameters inside the warehouse in real time, providing a basis for subsequent image preprocessing. All three industrial camera lenses are coated with anti-fog and hydrophobic coatings (such as AFS-100 nano anti-fog and hydrophobic coating) to adapt to the humid environment of the gravel and coal.

[0048] The two-stage calibration method employs both "basic parameter calibration" and "physical correction" to address two major issues: inherent errors in camera hardware and theoretical deviations in the measurement model.

[0049] Phase 1: Basic parameter calibration, completing the calibration of camera internal parameters and spatial attitude between multiple viewpoints. In this embodiment, the calibration method involves fabricating a checkerboard calibration plate with unit dimensions of 20mm × 20mm and a total size of 400mm × 400mm. This plate is fixed to a movable support. Within a slag bin simulating a typical height range of a pile of stones and coal (0.5m-6m), images of the calibration plate are acquired at 15 different locations and 8 different angles, resulting in a total of 360 images (120 images per camera). OpenCV library functions are used to extract the checkerboard corner points and solve for the industrial camera parameters.

[0050] The intrinsic parameter matrix of an industrial camera, denoted as... , ,in, , These are the focal lengths (in pixels) along the x and y axes in the image coordinate system, respectively. , The coordinates (in pixels) of the principal point (the intersection of the optical axis and the image plane) in the image coordinate system.

[0051] Distortion coefficients include radial distortion coefficients , and tangential distortion coefficient , It is used to correct image distortion caused by lens distortion.

[0052] Using the mid-view camera as the reference coordinate system, the rotation matrix (3×3 orthogonal matrix) and translation vector (3D column vector) of the low-view and high-view cameras relative to the mid-view camera are solved through a stereo calibration function to describe the spatial attitude relationship between the cameras. After extrinsic parameter calibration, multiple (10) typical feature points are selected in the common field of view for coordinate consistency verification. It is required that the deviation between the transformed coordinates and the actual pixel coordinates of the same feature point in the mid-view image does not exceed a preset pixel (e.g., 0.8 pixels).

[0053] The second stage: physical correction. Due to practical factors such as reflection from the inner wall of the slag bin and slight camera installation offsets, the volume calculation model may have systematic deviations. Therefore, the volume conversion coefficient is corrected using simulated blocks with known volumes. For example, simulated blocks of various sizes of stone and coal are made to obtain the actual volume of each block. In this embodiment, three sizes are made with side lengths of 10cm, 20cm, and 30cm, made of concrete with the same density as actual stone and coal (density 1.8g / cm³), and in the shape of regular cubes. The actual volumes of the three simulated blocks are 0.001m³, 0.008m³, and 0.027m³, respectively. The simulated blocks are placed in several typical locations within the slag bin (e.g., the five typical locations are the bin center, 0.5m from the bin wall, the edge of the low-view blind zone, the mid-view core area, and the high-view top area). At each location, three industrial cameras simultaneously capture images, and this is repeated multiple times (3 times) to obtain the average measurement. The images are converted into three-dimensional point clouds using calibrated intrinsic and extrinsic parameters. The measured volume of the simulated block is calculated, and the deviation rate is calculated using the following formula. , The deviation rate, To measure volume, To determine the true volume, the deviation rate is introduced as a correction factor into the volume calculation formula, requiring that the deviation in the simulated block volume calculation be ≤ a preset value (e.g., 2%). This completes the construction of the data acquisition system.

[0054] This step addresses the issues of high cost (reportedly exceeding 100,000 RMB) and lack of hardware adaptation for the humid environment of slag bins in existing LiDAR solutions, leading to unstable image acquisition quality. It also resolves the problem of manufacturing and installation errors in camera intrinsic parameters causing inaccurate spatial coordinate correspondence between multi-view images, affecting the accuracy of subsequent point cloud fusion. This step achieves full-height coverage of the slag heap through layered deployment of multiple industrial cameras, avoiding blind spots caused by occlusion in single-view applications. Anti-fog coatings on the lenses directly prevent water vapor condensation, ensuring image acquisition quality from the source. In the two-stage calibration method, the first stage uses a checkerboard calibration to accurately quantify the spatial attitude between camera internal parameters and multiple viewpoints. The second stage uses physical simulation blocks to correct systematic deviations in the volume calculation model, ensuring a basic calibration error ≤0.5 pixels and a simulation block volume calculation deviation ≤2%. This effectively eliminates inherent camera hardware errors and theoretical deviations in the measurement model, providing a high-precision data acquisition foundation for all subsequent calculation steps. Compared to pure checkerboard calibration, this scheme introduces a simulated block correction with the same characteristics as the actual material, which significantly improves the applicability of the volume measurement model in the gravel and coal scenario.

[0055] S2: Image preprocessing in humid environments

[0056] To address the issues of image fogging, low contrast, and multi-view deviation caused by the humid environment of the stone and cinder silo, this step employs a multi-stage processing approach, including "defogging and noise reduction → texture enhancement → viewpoint alignment," to output high-quality, highly consistent multi-view images.

[0057] (1) Improved dark channel prior algorithm for anti-fogging and noise reduction

[0058] The dark channel prior theory is based on the observation that in a hazy image, there exists at least one pixel with a very low intensity in a color channel. The dark channel value for a hazy image is defined as: ,in, for One of the three color channels This is the dark channel value. In pixels The local neighborhood centered on, For pixels in the neighborhood In the passage The intensity value (range 0-255). Based on the characteristic that the dark channel value of rough surfaces of gravel and coal is usually greater than 0.1, this invention sets the dark channel threshold that distinguishes between "fog areas" and "non-fog areas" to a value that avoids misjudging particle texture as fog areas, such as 0.1.

[0059] In the dark channel image, select a preset percentage of pixels with the highest brightness (e.g., 0.1% of pixels). The corresponding haze-free highlight area has its average brightness in the original image, which is the atmospheric light value. The atmospheric scattering model expression is: = ,in, For images with fog, This is the actual image to be restored after dehazing. Transmittance diagram ( The closer the value is to 1, the lower the degree of fog obstruction. A value less than the preset value (e.g., 0.5) is considered a foggy area. ≥0.5 is considered a texture area. This represents the atmospheric light value. After optimizing the transmittance map using a soft matting algorithm, the dehazed image is derived by reverse engineering, expressed as:

[0060]

[0061] The constant 0.1 in the denominator is used to avoid transmissivity plots. Excessive size leads to image distortion. A 5×5 kernel bilateral filter is then used to restore the true image after dehazing. The process involves smoothing out noise while preserving particle edges.

[0062] (2) Improved CLAHE algorithm enhances texture

[0063] The dehazed image is divided into multiple non-overlapping sub-blocks according to a grid (e.g., in this embodiment, a 16×16 grid is used to divide it into 256 sub-blocks, each approximately 32×32 pixels in size). The grayscale histogram of each sub-block is calculated, and the number of pixels at gray levels 0-255 is counted. A contrast limit threshold is set (e.g., 4 in this embodiment). When the number of pixels at a certain gray level in a sub-block exceeds this threshold, the excess pixels are evenly distributed to other gray levels to avoid local overexposure. The processed grayscale histogram is then equalized to stretch the grayscale range of the sub-blocks and enhance the grayscale difference between the grains and the background. The Sobel operator is used to calculate the horizontal and vertical edge gradients, expressed as: ,in, and These are the gradient values ​​in the horizontal and vertical directions, respectively. To synthesize the gradient magnitude, for Pixels with a preset value (e.g., 20) (i.e., the edges of particles) are given an additional brightness boost (e.g., a 5% increase) to further highlight the outlines of the clusters and ordinary particles. Finally, bilinear interpolation is used to stitch all sub-blocks together, eliminating grayscale abrupt changes at block boundaries.

[0064] (3) SIFT feature matching and perspective transformation to achieve multi-view image alignment

[0065] Feature points were extracted using the SIFT algorithm for low-view, high-view, and mid-view reference images. Scale-invariant keypoints were detected using the Difference of Gaussian Pyramid (DGP), and a multi-dimensional (128-dimensional) descriptor (containing orientation and gradient information) for each keypoint was calculated. The FLANN (Fast Nearest Neighbor) library was used to match the feature point descriptors of the low-view and mid-view images to obtain initial matching pairs. False matches were eliminated using the RANSAC (Random Sample Consensus) algorithm, and multiple pairs (4 pairs) of matching points were randomly selected to calculate the homography matrix (a 3×3 matrix describing the perspective transformation relationship between the two images). The perspective transformation formula is: =H ,in,( , ) represents the pixel coordinates in the original image, , Let H be the pixel coordinates in the transformed image, and H be the homography matrix. Count the number of inliers that satisfy the transformation error being less than a preset value of pixels (e.g., <3 pixels). After multiple iterations (500 times), select the homography matrix with the highest percentage of inliers as the optimal matrix (e.g., inlier percentage ≥80%). Use the optimal homography matrix to perform perspective transformation on the low-view and high-view images to the mid-view reference coordinate system. After transformation, select multiple (20) feature points in the common field of view for verification, requiring the average deviation to be ≤ a preset value of pixels (e.g., ≤1.5 pixels).

[0066] This step addresses the issue that the high moisture content (approximately 15%-25%) in the stone and slag bins easily leads to the formation of water vapor, which can easily form a fog layer on the camera lens surface, resulting in overall washed-out images, blurred details, and low global contrast (grayscale concentrated in the 50-150 range). Furthermore, it resolves the significant viewing angle deviation in images acquired by multiple cameras due to their different installation heights (a large proportion of the bottom of the pile at low angles and a large proportion of the top at high angles). If 3D reconstruction were performed directly without processing, it would result in severe spatial coordinate misalignment. This step addresses the aforementioned issues one by one through multi-stage processing: The improved dark channel prior algorithm sets a threshold to prevent rough textures like pebbles and coal from being misjudged as foggy areas and resulting in excessive dehazing; combined with bilateral filtering, it preserves particle edges while denoising, achieving a signal-to-noise ratio ≥35dB. The improved CLAHE algorithm avoids local overexposure through fine segmentation and contrast threshold limitations, and additionally enhances the brightness of particle edges, effectively restoring the contour contrast between clumps and ordinary particles. The SIFT+RANSAC viewpoint alignment scheme utilizes the scale invariance of feature points and a mismatch removal mechanism to control multi-view image deviation within 1.5 pixels, eliminating viewpoint deviation interference for subsequent point cloud fusion. These three stages of processing collectively ensure image data quality in extremely humid environments, providing reliable input for subsequent segmentation and point cloud generation steps.

[0067] S3: Dynamic reference surface calibration

[0068] This step generates a volume calculation "zero plane" that closely matches the actual bottom shape of the slag bin through comparative analysis of images of the empty bin and the stack.

[0069] (1) Extraction of empty warehouse baseline profile

[0070] In the empty silo state without accumulated coal and stones, multiple (5) images were continuously acquired using a mid-angle camera, and the pixel-level average was taken to obtain the empty silo mean map to eliminate random noise interference. Canny edge detection was applied to this image, and a threshold range was set (30≤low threshold≤90) to extract two types of key contours: the annular junction edge between the silo bottom and the silo wall, and the irregular edges of the residual coal and stones on the silo bottom, which together constitute the baseline contour of the empty silo.

[0071] (2) Gray-scale differential positioning contact line between stack body and empty compartment

[0072] After the coal and stone pile stabilizes, an image of the pile is acquired and compared with the average image of the empty silo. A gray-level difference operation is then performed to calculate the absolute value of the gray-level difference for the corresponding pixels. The expression is as follows:

[0073] ,in, The absolute value of the grayscale difference. For pixel coordinates, For the image of the heap, To create an average value chart for empty warehouses, set a difference threshold (e.g., a difference threshold of 40, based on the typical grayscale difference between coke and the bottom of the warehouse). Select items with an absolute grayscale difference greater than the difference threshold. Pixels with a grayscale difference greater than 40 are marked as pile regions, and the absolute value of the grayscale difference is ≤ the difference threshold. Pixels ≤40 are marked as background areas to obtain a binarized image. The binarized image is then subjected to element erosion (3×3 structure) to remove noise, and then the edge integrity is restored through dilation operation. Finally, the closed curve (contact line) that contacts the bottom of the stack and the bottom of the silo is located, which is the physical boundary between the stack and the reference plane.

[0074] (3) Least square fitting reference surface equation

[0075] pixel coordinates of the contact line Convert to three-dimensional space coordinates The conversion is based on the pinhole camera model: ,in, The distance from the mid-angle camera to the bottom of the warehouse is 3m. Focal length (8mm). These are the pixel row coordinates. The main point's row coordinates (unit: pixels). The coordinates of the point are its three-dimensional spatial depth (in meters). , The coordinates are obtained from the relationship between similar triangles: , ,in, The coordinates of the main point (unit: pixels).

[0076] The three-dimensional coordinates of all contact points , For contact point number, =1,2,..., , Substituting the total number of contact points into the plane equation: , The inclination coefficient of the reference plane along the X-axis direction is denoted as . The inclination coefficient of the reference plane along the Y-axis direction. The intercept of the datum plane at the origin represents the overall height offset of the datum plane. The coefficients are solved using the least squares method. , , To minimize the sum of squared errors, the expression is: Solve this least squares problem to obtain the optimal coefficients. , , The standard deviation of the fit is calculated using the following formula:

[0077] , To fit the standard deviation, if ≤Preset value (e.g.) If the value is ≤0.05, it is determined to be a flat datum surface; otherwise, it is a tilted or residual datum surface. The final dynamic datum surface is generated by the following equation: As the "zero plane" for volume calculation (i.e. (The reference plane), the volume of all point clouds above this plane is the actual volume.

[0078] This step addresses the issue of the silo bottom not being an ideally level surface due to wear and deformation caused by residual stones and coal from previous slag discharges or long-term equipment operation. It also resolves the problem of existing technologies using a fixed horizontal reference plane for volume calculations, which may or may not include silo bottom residue or tilted / recessed areas in the total volume, leading to inaccuracies in bottom volume calculations. This step eliminates random noise using an empty silo mean image, extracts the true silo bottom shape using Canny edge detection, and then precisely locates the actual contact line between the stockpile and the silo bottom using grayscale difference analysis. Finally, it uses the least squares method to fit the reference plane equation and performs flatness (standard deviation ≤ 0.05m) judgment, achieving dynamic calibration of "one silo, one reference plane." This solution upgrades the "zero plane" for volume calculation from a fixed horizontal plane to a personalized reference plane that fits the actual silo bottom shape, reducing bottom volume deviation from 5%-10% in existing technologies to within 3%. Furthermore, the contact line is automatically obtained through differential analysis of the stockpile and empty silo images, requiring no manual intervention and adapting to the repeated measurement needs under frequent slag discharge conditions.

[0079] S4: Segmentation and Feature Extraction of Stone and Coal Pile Regions

[0080] This step uses a deep learning model to accurately segment the ordinary particle area, agglomeration area, and shaded area in the coal pile, and extracts the morphological features of the agglomerates. The specific method is as follows.

[0081] (1) Construction and enhancement of the segmented dataset

[0082] Under varying lighting (day / night) and humidity (dry / humid) conditions, 1000 images of stone and coal piles covering typical working conditions were acquired using a multi-view camera. Pixel-level annotations were performed using the Labelme tool to clearly delineate three regions: ordinary particle area (scattered, particle size <50mm), agglomerated area (agglomerated, particle size ≥50mm), and shadow area (dark areas formed by occlusion). These were divided into a training set (800 images) and a validation set (200 images) at an 8:2 ratio. Data augmentation was performed on the training set, including random rotation (±15°) to simulate camera angle deviation and random brightness adjustment (±20%) to adapt to fluctuations in lighting within the storage area.

[0083] (2) Improve the training of the U-Net model

[0084] A texture attention module is added to layers 3-4 of the U-Net encoder (corresponding to medium-scale feature maps). First, the LBP (Local Binary Pattern) texture features of the feature map are calculated (by generating binary codes through 3×3 neighborhood grayscale contrast to quantify the surface roughness). Then, a weight map is generated based on the LBP features. The blocky areas receive higher weights because of their coarser texture, so that the model focuses on the block details first.

[0085] The joint loss function using cross-entropy and Dice is expressed as follows: ,in, The loss function is a combination of cross-entropy and Dice. For cross-entropy loss, Used to penalize classification errors. For pixels to belong to categories The true label, To predict probabilities for the model, ∈{1,2,3}, corresponding to the ordinary particle region, the agglomerated region, and the shaded region, respectively. For Dice's loss, It is used to solve the problem of imbalanced samples. For the prediction area, This is the actual labeled area. To predict the intersection area with the labeled area, and These are the predicted area and the labeled area, respectively.

[0086] The model is trained in the PyTorch framework for multiple rounds (e.g., 50 rounds, batch size=8, initial learning rate 0.001, decaying by 10% every 10 rounds). The validation set requires mIoU (mean intersection over union) ≥ 95% and IoU (intersection over union) ≥ 98% for the block region.

[0087] (3) Real-time segmentation and block feature extraction

[0088] The aligned multi-view images are input into the trained improved U-Net model, which outputs binary masks for three types of regions: ordinary particle regions, clumped regions, and shadow regions (1 represents the target region, 0 represents the background). For the clumped region mask, the closed contour coordinates of each clumped region are extracted using Canny edge detection. The model is then based on the intrinsic parameters of the mid-view camera (focal length, principal point). (and average block depth), converting the outline pixel area to the actual area, the expression is: ,in, This represents the number of pixels within the block outline. This represents the average depth of the agglomerate region (in meters). Focal length (unit: pixels). This refers to the actual area (unit: m²).

[0089] The actual perimeter (in meters) is obtained by summing the Euclidean distances of the contour pixels. Roundness is calculated using the following formula:

[0090] ,in, This refers to the actual area (unit: m²). This is the actual perimeter (unit: m). This is the roundness value. ∈ 0,1 , =1 corresponds to a standard circle. Blocks are categorized by threshold into: regular blocks (such as...) ≥0.6) and irregular clumps (such as <0.6), providing a basis for subsequent differential completion.

[0091] This step constructs a dedicated segmentation dataset covering various working conditions and performs data augmentation to enable the model to generalize to different environments. An LBP texture attention module is added to layers 3-4 of the U-Net encoder. Leveraging the physical property that the surface roughness of agglomerates is significantly higher than that of ordinary particles, the model is guided to prioritize agglomerate regions, achieving high-precision pixel-level segmentation of the three regions with mIoU ≥ 95% and agglomerate region IoU ≥ 98%. Agglomerates are quantified into regular and irregular categories based on roundness, providing accurate feature input for the differential completion in step S5 and avoiding morphological distortion caused by "one-size-fits-all" completion. This addresses the problem that existing image segmentation methods (such as thresholding and edge detection) struggle to effectively distinguish agglomerates from ordinary particles in stone and coal piles due to their similar color, and that shadow areas formed by mutual occlusion between agglomerates appear as dark holes in the image, easily misclassified as background by conventional segmentation models. Furthermore, it solves the problem that different agglomerate shapes require different completion methods for occluded regions, lacking a classification mechanism for agglomerate shapes.

[0092] S5: Multi-view point cloud fusion and clustered region completion

[0093] This step involves a three-stage processing process: "generating point clouds in ordinary particle areas → completing occlusion in agglomerate areas → fusing point clouds from multiple perspectives" to construct a complete 3D point cloud model of the heap.

[0094] (1) Point cloud generation and denoising in ordinary particle regions

[0095] Using the mid-view image as a baseline, the SGBM (Semi-Global Block Matching) algorithm is applied to calculate disparity maps for low-view and high-view images. The pixel size of the block (e.g., 9×9 pixels to adapt to grain texture scale) and the pixel range of the disparity (e.g., a disparity range of 0-128 to cover the depth range of the heap) are set. Disparity is defined as the difference in column coordinates of corresponding points in the left and right images. A bidirectional disparity consistency check ensures that the percentage of erroneous disparities is ≤ a preset value, such as ≤ 5%. ,in, This represents the number of pixels with a parallax error exceeding 1 pixel during left-right consistency checks. This represents the total number of pixels in the disparity map.

[0096] Convert qualified parallax maps into three-dimensional spatial coordinates using camera intrinsic parameters. :

[0097] , , ,in, Baseline distance (i.e., the horizontal distance between the optical centers of the two cameras, in meters). Focal length (unit: pixels). This represents the disparity value (unit: pixels). For pixel coordinates, Principal point coordinates The coordinates (in meters) of the pixel are the three-dimensional coordinates of the pixel.

[0098] Isolated noise points are removed by statistical filtering: multiple (20) nearest neighbor points of each point are checked, and points with deviations exceeding a preset multiple (e.g., 1.5 times) of the standard deviation are removed, so that the point cloud density of the ordinary particle area reaches the preset requirement, such as a point cloud density of ≥50 points / cm².

[0099] (2) Filling in the gaps and voids in the clumped area

[0100] For regular blocks ( ≥0.6), fit the surface arc using the least squares method (fitting error can be set to ≤0.02m). Let the coordinates of the visible point cloud on the arc be... ( (where the visible point number is used), the center and radius of the fitted circular arc are obtained. The coordinates of the occlusion area are generated based on the circular arc model, following: ,in, Average height of the visible portion (unit: m). It is one-third of the height of the agglomerate (unit: m). The Z coordinate value of the completed point (unit: m). This is the difference between the maximum and minimum height of the visible portion of the cluster (unit: m).

[0101] For irregular clumps ( <0.6), edge points were extracted and then fitted using the RANSAC algorithm. a plane ( Taking values ​​of 3-5, with a fitting error of ≤0.03m for each plane, the equation of each fitted plane is: , ,in, , , For the first The coefficients of the fitted plane, To determine the number of fitting planes, the occluded areas are filled according to the plane intersection constraints to avoid distortion in the completed shape.

[0102] (3) Multi-view point cloud fusion and downsampling

[0103] Using the mid-view point cloud as a baseline, the ICP (Iterative Closest Point) algorithm is employed to stitch together low-view and high-view point clouds. Given the source and target point clouds, the ICP algorithm iteratively optimizes the rotation matrix (a 3×3 orthogonal matrix) and translation vector (a three-dimensional column vector) to minimize the objective function, expressed as: ,in, For points in the source point cloud, In the target point cloud The corresponding nearest point. Iterate multiple times (≥50 times) until the root mean square error is ≤ a preset value, such as ≤0.02m, the expression is: ,in, The root mean square error, To match the total number of point pairs, Let be a rotation matrix. It is a translation vector. and For the first For matching points.

[0104] The fused point cloud (including the completed region) is downsampled using a voxel grid, dividing the 3D space into a cubic grid with a preset side length (e.g., side length = 0.005m, or 0.5cm). Each grid retains one coordinate mean point. The final result is a complete heap point cloud with the required coverage and number of points (coverage ≥ 98%, number of points ≥ 1 million).

[0105] The technical problems to be solved in this step are: mutual occlusion between nodes causes point cloud holes during 3D reconstruction, lack of targeted completion strategies leads to the omission of the volume of occluded areas, and the problem of overlapping, misalignment or splicing gaps caused by direct fusion of point clouds from multiple perspectives due to inconsistent spatial coordinates. This step addresses the aforementioned issues through a three-stage processing approach: For ordinary particle regions, the SGBM algorithm generates a dense disparity map (9×9 block size adapted to particle texture), which is then statistically filtered (K=20, standard deviation 1.5) to remove environmental noise points, ensuring a point cloud density ≥50 points / cm². For clumped regions, innovative differential completion is performed based on roundness classification—regular clumps (C≥0.6) extend along the surface curvature to maintain a rounded overall shape, while irregular clumps (C<0.6) are filled using multiple (3-5) planes along intersection lines to avoid distortion in the completed shape. Both methods reduce the volume omission rate in occluded areas from 5%-8% in existing technologies to ≤1%. The ICP algorithm (≥50 iterations, RMSE≤0.02m) precisely stitches together the three-view point clouds, and voxel downsampling (side length 0.5cm) balances data density and computational efficiency, ultimately achieving a coverage rate of 98% and over 1 million points, constructing a complete and reliable 3D model of the pile, providing a high-quality data foundation for volume calculation.

[0106] S6: Error Compensation and Volume Calculation Related to Particle Characteristics

[0107] (1) Point cloud clipping and preliminary volume calculation

[0108] The dynamic datum surface equations generated based on S3. The complete point cloud is cropped, retaining only the points above the reference plane (i.e., satisfying the condition). (Point cloud). The clipped point cloud space is divided into a voxel mesh with a side length equal to a preset length, such as 0.005m (i.e., 0.5cm). The expression for the volume of a single voxel is: , For the volume of a single voxel, Divide the point cloud space into voxel grids by side length, and count the number of voxel grids containing point cloud data. The preliminary volume is calculated using the following formula:

[0109] , For the initial volume, The value represents the volume of a single voxel and reflects the geometric footprint of the stack, but does not account for errors caused by interparticle spacing and agglomeration morphology.

[0110] (2) Particle characteristic analysis and parameter extraction

[0111] Multiple (1000) independent particles are randomly sampled from the ordinary particle region mask output by S4, and classified according to their equivalent diameter, denoted as . :

[0112] Fine particles: <20mm, the percentage is recorded as (%)

[0113] Medium particle size: 20mm≤ ≤50, the percentage is recorded as (%)

[0114] Coarse particles: >50mm, the percentage is recorded as (%).

[0115] satisfy + + =100%. The equivalent diameter of a particle is defined as the diameter of a circle with the same projected area as the particle, i.e. , This represents the projected area of ​​the particle.

[0116] Simultaneously, the clumping rate is calculated based on the segmentation results, expressed as: ,in, This represents the total area of ​​the clumped region (unit: m²). The total area of ​​the pile (total area of ​​ordinary particle zone + agglomeration zone + shaded zone, unit: m²). The caking rate is %.

[0117] (3) Error compensation based on particle characteristics

[0118] Substituting the particle characteristic parameters into the pre-trained error coefficient model, the formula for calculating the error coefficient is as follows:

[0119] ,in, This is the error compensation coefficient. Percentage of fine particles (%) The percentage of medium particles (%) Given the clumping rate (%), the goodness of fit of this model is set to... ≥0.92, The coefficient of determination, ranging from 0 to 1, indicates a better fit as it approaches 1. (Fine particle ratio) The proportion of medium particles The positive coefficient is used to offset the volume overestimation caused by the gaps between fine particles, while the negative coefficient of the agglomeration rate is used to correct the error introduced by agglomeration occlusion.

[0120] The compensated volume is calculated using the following formula: ,in, The final volume after error compensation (unit: m³). This is the preliminary volume (unit: m³). This is the error compensation coefficient, requiring the final relative error to be ≤3%.

[0121] (4) Data output and early warning linkage

[0122] The compensated volume is obtained via the Modbus protocol. Cumulative volume (Unit: m³, obtained by summing the values ​​from each measurement), Particle distribution ( , , and clumping rate Data is then integrated with the power plant's SCADA (Supervisory Control and Data Acquisition) system to achieve real-time monitoring. When the clumping rate... When the content is ≥40%, the system will automatically trigger an audible and visual warning and send an SMS reminder to prevent clumping and blockage of the slag bin outlet.

[0123] The technical problem to be solved in this step is that the preliminary volume obtained by voxel accumulation only reflects the geometric space occupied by the pile, but there are a large number of inter-particle voids inside the stone and coal pile (especially when the proportion of fine particles is high, the porosity is even greater), and the agglomeration and obstruction of the completion will introduce a certain degree of calculation error, leading to There is a systematic deviation between the actual volume and the actual volume. If a fixed empirical coefficient is used for correction, the fixed coefficient cannot match the real-time material state because the particle size distribution and agglomeration rate of the stone coal change dynamically with the boiler's coal calorific value, slag discharge frequency and other operating conditions.

[0124] This step addresses the aforementioned problem through the following design: Multiple (1000) particles are randomly sampled from the segmentation results and statistically analyzed according to their equivalent diameter. (thin), middle), (Roughly calculated), and the agglomeration rate is calculated simultaneously, realizing real-time quantitative characterization of the current stockpile material properties; the above parameters are substituted into the error coefficient model. The model was obtained by fitting a large amount of measured data through multiple linear regression. ≥0.92), where and The positive coefficients (+0.02, +0.01) compensate for the volume overestimation caused by the gaps between fine particles. The negative coefficient (-0.03) corrects for the error introduced by clumping completion. Ultimately, the overall measurement relative error can be controlled within 3%. Furthermore, The ≥40% early warning mechanism makes full use of the agglomeration rate information in the segmentation results, outputting safety warnings while measuring volume, realizing an integrated closed-loop function of "measurement-analysis-early warning", and improving the safety of slag bin operation.

[0125] By combining the above six steps, the present invention achieves the following overall technical effects compared to the prior art:

[0126] 1. Significant cost advantage: Replacing the LiDAR solution (cost ≥ 100,000 RMB) with three industrial monocular cameras (total cost approximately 20,000-30,000 RMB) can significantly reduce hardware costs (estimated to be reduced by more than 60%). Furthermore, the pure vision solution is easy to maintain and does not require complex maintenance operations such as regular cleaning of the laser lens.

[0127] 2. Strong environmental adaptability: The lens anti-fog coating blocks water vapor condensation at the source, the improved dark channel prior (threshold 0.1) avoids texture misjudgment, and CLAHE enhancement (16×16 blocks, threshold 4) restores contrast, which can make the image signal-to-noise ratio ≥35dB, ensuring stable operation in humid environments with a water content of 15%~25%.

[0128] 3. Good adaptability of the reference surface: Dynamic reference surface calibration can reduce the bottom volume deviation from 5%-10% of the fixed horizontal reference surface to ≤3% by using the empty silo-stack differential positioning contact line and least square fitting reference surface equation, adapting to various irregular shapes such as silo bottom residue or tilt.

[0129] 4. Accurate Occlusion Handling: Improved U-Net (LBP Texture Attention) achieves three-class region segmentation with mIoU ≥ 95%, and differential completion based on roundness classification can improve point cloud coverage to 98%, with occlusion omission rate ≤ 1%.

[0130] 5. Comprehensive error control: A dynamic error model integrating particle size distribution and agglomeration rate is constructed, and the overall measurement relative error can be ≤3%, meeting the requirements of industrial-grade accuracy.

[0131] 6. Complete closed-loop function: While measuring volume, it outputs particle distribution and agglomeration rate and realizes automatic early warning when R≥40%, forming a complete chain of "measurement-analysis-early warning-management", which goes beyond the functional scope of single volume measurement and provides a systematic solution for intelligent management of slag bins.

[0132] The above embodiments and figures are not intended to limit the product form and style of the present invention. Any appropriate changes or modifications made by those skilled in the art should be considered as not departing from the patent scope of the present invention.

Claims

1. A method for measuring the volume of a pile of gravelly coal using multi-view visual analysis and agglomeration feature completion, characterized in that, The steps are as follows: S1. Deployment and environmental adaptation of multi-view vision system; including hardware deployment and calibration. The hardware deployment includes deploying industrial cameras and temperature and humidity sensors in the slag bin. Multiple industrial cameras are deployed in layers according to vertical height, including low-view cameras covering the bottom of the stack and the reference surface of the bin bottom, medium-view cameras covering the middle area of ​​the stack, and high-view cameras covering the top of the stack and the top area of ​​the bin. S2. Image preprocessing in humid environments; This includes multi-level processing such as improving the dark channel prior algorithm for anti-fogging and denoising, and improving the CLAHE algorithm for texture enhancement and multi-view image alignment. The improved dark channel prior algorithm sets a dark channel threshold to distinguish between fog and non-fog areas based on the characteristics of the dark channel values ​​of the rough surface of gravel and coal, so as to avoid the texture of gravel and coal being misjudged as fog. After defogging through an atmospheric scattering model, bilateral filtering is used to smooth the noise to achieve anti-fogging and denoising. The improved CLAHE algorithm sets a contrast limit threshold, performs crop equalization, and uses Sobel edge detection to brighten the particle edges and then performs bilinear interpolation to stitch them together to achieve texture enhancement. The multi-view image alignment processing uses SIFT feature matching and RANSAC mismatch removal, and calculates the homography matrix to transform the perspective of low and high view images to a medium view reference. S3. Dynamic reference surface calibration; This includes extracting the empty warehouse baseline profile, locating the contact line using grayscale difference between the stack and the empty warehouse, and fitting the baseline surface using least squares. The empty warehouse baseline contour extraction involves acquiring multiple images of the empty warehouse, taking the pixel-level mean value to obtain the empty warehouse mean map, and using Canny edge detection to extract the junction of the warehouse bottom and walls, as well as the edges of residual stones and coal, to form the empty warehouse baseline contour. The pile-empty warehouse grayscale difference positioning of the contact line involves performing grayscale difference operations on the pile image and the empty warehouse mean map, setting a difference threshold to generate a binarized image, and then using morphological operations to locate the contact line. The least squares fitting reference surface involves converting the pixel coordinates of the contact line into three-dimensional coordinates, substituting them into the plane equation, and solving for the optimal plane coefficients using the least squares method to fit a dynamic reference surface, which serves as the zero plane for volume calculation. S4. Segmentation and feature extraction of the stone and coal pile region; This includes the construction and enhancement of segmentation datasets, improved training of the U-Net model, and real-time segmentation and block feature extraction; The segmentation dataset was constructed and augmented by collecting multi-view images of coal piles under various working conditions, performing pixel-level annotations on ordinary particle areas, agglomerated areas, and shadow areas, dividing them into training and validation sets proportionally, and augmenting the data through random rotation and brightness adjustment. The U-Net model was improved by adding a texture attention module to the U-Net encoder and using a cross-entropy + Dice joint loss function for training. Real-time segmentation and agglomerated feature extraction involved inputting the aligned multi-view images into the trained improved U-Net model, which output three types of binary masks for different regions. Agglomerated contours were extracted, and surface roundness was calculated, classifying the agglomerated areas into regular and irregular agglomerated areas. S5. Multi-view point cloud fusion and blockage region completion; including point cloud generation and denoising of ordinary granular regions, blockage region occlusion and hole completion, and multi-view point cloud fusion and downsampling; point cloud generation and denoising of ordinary granular regions is based on the mid-view image, and the SGBM algorithm is used to calculate the disparity map of low and high view images and convert it into three-dimensional coordinates. Statistical filtering is used to denoise and generate dense point clouds of ordinary granular regions. The occlusion and hole filling of the blocky region is carried out by differential filling according to the roundness classification. For regular blocks, the arc extension is fitted for filling, and for irregular blocks, multiple planes are fitted by RANSAC and filled according to the intersection constraint. Multi-view point cloud fusion and downsampling are based on the mid-view as the reference and the low and high view point clouds are stitched together by ICP algorithm iteration optimization. After fusion, the complete stack point cloud is obtained by voxel mesh downsampling. S6. Error compensation and volume calculation based on particle characteristics; including point cloud trimming and preliminary volume calculation, particle characteristic analysis and parameter extraction, and error compensation based on particle characteristics; point cloud trimming and preliminary volume calculation is based on retaining the point cloud above the dynamic reference plane and calculating the preliminary volume using the voxel accumulation method; particle characteristic analysis and parameter extraction is based on randomly sampling multiple particles from a mask of ordinary particle regions, classifying and statistically analyzing the proportion of fine, medium, and coarse particles according to their equivalent diameter, and calculating the agglomeration rate to achieve real-time quantification of material characteristics; error compensation based on particle characteristics is based on substituting the particle size ratio and agglomeration rate into the error coefficient model to calculate the compensation coefficient and correct the preliminary volume.

2. The method for measuring the volume of a pile of stone coal using multi-view vision and agglomeration feature completion as described in claim 1, characterized in that, In step S1, the calibration adopts a two-stage calibration, including the first stage of camera internal parameters and spatial attitude calibration between multiple views, and the second stage of calculating model deviation by correcting volume through physical objects. The first stage involves using a checkerboard calibration method to calibrate and solve the intrinsic parameter matrix of the industrial camera. The image distortion caused by lens distortion is corrected by the radial and tangential distortion coefficients. Using the mid-angle camera as the reference coordinate system, the rotation matrix and translation vector of the low-angle and high-angle cameras relative to the mid-angle camera are solved by a stereo calibration function. After extrinsic parameter calibration, multiple typical feature points are selected in the common field of view to verify coordinate consistency. It is required that the deviation between the converted coordinates and the actual pixel coordinates of the same feature point in the mid-angle image does not exceed a preset number of pixels. And / or, Second stage: Obtain the true volume of each simulated block by fabricating simulated stone and coal blocks of various sizes. Place the simulated blocks in multiple typical locations within the slag bin, and simultaneously capture images at each location using industrial cameras. Convert the images into 3D point clouds using calibrated intrinsic and extrinsic parameters, calculate the measured volume of the simulated block, and calculate the deviation rate using the following formula. , The deviation rate, To measure volume, To determine the true volume, the deviation rate is introduced as a correction factor into the volume calculation formula.

3. The method for measuring the volume of a coal pile using multi-view visual and agglomeration feature completion as described in claim 1, characterized in that, In step S2, the improved dark channel prior algorithm for anti-fog and noise reduction is achieved by selecting a preset proportion of pixels with the highest brightness in the dark channel image. The corresponding haze-free bright areas have an average brightness in the original image that represents the atmospheric light value. The atmospheric scattering model expression is as follows: = ,in, For images with fog, This is the actual image to be restored after dehazing. This is a transmittance diagram. The preset value indicates a foggy area. ≥The preset value is determined to be a texture area. The atmospheric light value is used as the basis for optimizing the transmittance map using a soft matting algorithm, which then leads to the dehazed image. The expression is as follows: Then, bilateral filtering is used to restore the true image after dehazing. The process involves smoothing out noise while preserving particle edges. And / or, the improved CLAHE algorithm in step S2 enhances the texture by dividing the dehazed image into multiple non-overlapping sub-blocks according to a grid, calculating the gray-level histogram for each sub-block, counting the number of pixels at gray levels 0-255, setting a contrast limit threshold, and when the number of pixels at a certain gray level in a sub-block exceeds the threshold, the excess is evenly distributed to other gray levels. The processed gray-level histogram is then equalized to stretch the gray-level range of the sub-blocks, enhancing the gray-level difference between the particles and the background. The Sobel operator is used to calculate the horizontal and vertical edge gradients, expressed as: ,in, and These are the gradient values ​​in the horizontal and vertical directions, respectively. To synthesize the gradient magnitude, for >The preset pixel brightness is increased, and then bilinear interpolation is used to stitch all sub-blocks together to eliminate grayscale jumps at the block boundaries; And / or, in step S2, multi-view image alignment is performed by detecting scale-invariant keypoints using the difference-of-Gaussian pyramid, calculating a multi-dimensional descriptor for each keypoint, and using FLANN to match the feature point descriptors of low-view and mid-view images to obtain initial matching pairs. False matches are eliminated using the RANSAC algorithm, and multiple pairs of matching points are randomly selected to calculate the homography matrix. The perspective transformation formula is: =H ,in,( , ) represents the pixel coordinates in the original image, , Let H be the pixel coordinates in the transformed image, and let H be the homography matrix. The number of inliers that satisfy the transformation error less than a preset certain value is counted. After multiple iterations, the homography matrix with the highest proportion of inliers is selected as the optimal matrix.

4. The method for measuring the volume of a pile of gravel and coal by multi-view vision and agglomeration feature completion as described in claim 1, characterized in that, In step S3, the contact line is located using gray-scale difference positioning between the coal pile and the empty silo. Specifically, this involves acquiring an image of the coal pile and performing gray-scale difference calculations with the average image of the empty silo. The absolute value of the gray-scale difference for the corresponding pixels is then calculated, expressed as: ,in, The absolute value of the grayscale difference. For pixel coordinates, For the image of the heap, To obtain the average value map of the empty warehouse, a difference threshold is set. Pixels with an absolute gray-level difference greater than the difference threshold are marked as the pile area, and pixels with an absolute gray-level difference less than or equal to the difference threshold are marked as the background area, resulting in a binarized image. The binarized image is then subjected to element erosion to remove noise, and then the edge integrity is restored through dilation, thereby locating the contact line between the bottom of the pile and the bottom of the warehouse. And / or, in step S3, the least squares fitting reference surface equation, specifically, the pixel coordinates of the contact line... Convert to three-dimensional space coordinates The conversion is based on the pinhole camera model, converting the three-dimensional coordinates of all contact points. , For contact point number, =1,2,..., , Substituting the total number of contact points into the plane equation: , The inclination coefficient of the reference plane along the X-axis direction is denoted as . The inclination coefficient of the reference plane along the Y-axis direction. The intercept of the datum plane at the origin represents the overall height offset of the datum plane. The coefficients are solved using the least squares method. , , To minimize the sum of squared errors, the expression is: Solve this least squares problem to obtain the optimal coefficients. , , The standard deviation of the fit is calculated using the following formula: , To fit the standard deviation, if If the value is less than or equal to a preset value, it is determined to be a flat reference surface; otherwise, it is a tilted or residual reference surface. The generated dynamic reference surface has the following generation equation expression: As a reference plane for volume calculation, the volume of all point clouds above this plane is the actual volume.

5. The method for measuring the volume of a coal pile using multi-view visual and agglomeration feature completion as described in claim 1, characterized in that, Step S4 improves the training of the U-Net model. Specifically, a texture attention module is added to layers 3-4 of the U-Net encoder. First, the LBP texture features of the feature map are calculated, and then a weight map is generated based on the LBP features. Block regions receive higher weights due to their coarser texture, causing the model to prioritize block details. A joint loss function of cross-entropy and Dice is used, expressed as: ,in, The loss function is a combination of cross-entropy and Dice. For cross-entropy loss, Used to penalize classification errors. For pixels, the category they belong to The true label, To predict probabilities for the model, ∈{1,2,3}, corresponding to the ordinary particle region, the agglomerated region, and the shaded region, respectively. For Dice's loss, It is used to solve the problem of imbalanced samples. For the prediction area, This is the actual labeled area. To predict the intersection area with the labeled area, and These represent the predicted region area and the labeled region area, respectively; the model is trained multiple times within the PyTorch framework. And / or, in step S4, real-time segmentation and cluster feature extraction specifically involve inputting the aligned multi-view image into the trained improved U-Net model, which outputs binary masks for three types of regions: ordinary particle regions, cluster regions, and shadow regions. For the cluster region mask, the closed contour coordinates of each cluster are extracted using Canny edge detection. Based on the intrinsic parameters of the mid-view camera, the contour pixel area is converted into the actual area, expressed as: ,in, This represents the number of pixels within the block outline. This represents the average depth of the agglomerate region. Focal length The actual area is calculated by summing the Euclidean distances of the contour pixels; the actual perimeter is obtained by adding these distances. Roundness is calculated using the following formula: ,in, This is the actual area. This is the actual perimeter. The value represents the roundness, and the clusters are classified into regular clusters and irregular clusters based on the threshold.

6. The method for measuring the volume of a pile of gravel and coal by multi-view vision and agglomeration feature completion as described in claim 4, characterized in that, Step S4 improves the training of the U-Net model. Specifically, a texture attention module is added to layers 3-4 of the U-Net encoder. First, the LBP texture features of the feature map are calculated, and then a weight map is generated based on the LBP features. Block regions receive higher weights due to their coarser texture, causing the model to prioritize block details. A joint loss function of cross-entropy and Dice is used, expressed as: ,in, The loss function is a combination of cross-entropy and Dice. For cross-entropy loss, Used to penalize classification errors. For pixels, the category they belong to The true label, To predict probabilities for the model, ∈{1,2,3}, corresponding to the ordinary particle region, the agglomerated region, and the shaded region, respectively. For Dice's loss, It is used to solve the problem of imbalanced samples. For the prediction area, This is the actual labeled area. To predict the intersection area with the labeled area, and These represent the predicted region area and the labeled region area, respectively; the model is trained multiple times within the PyTorch framework. And / or, in step S4, real-time segmentation and cluster feature extraction specifically involve inputting the aligned multi-view image into the trained improved U-Net model, which outputs binary masks for three types of regions: ordinary particle regions, cluster regions, and shadow regions. For the cluster region mask, the closed contour coordinates of each cluster are extracted using Canny edge detection. Based on the intrinsic parameters of the mid-view camera, the contour pixel area is converted into the actual area, expressed as: ,in, This represents the number of pixels within the block outline. This represents the average depth of the agglomerate region. Focal length The actual area is calculated by summing the Euclidean distances of the contour pixels; the actual perimeter is obtained by adding these distances. Roundness is calculated using the following formula: ,in, This is the actual area. This is the actual perimeter. The value represents the roundness, and the clusters are classified into regular clusters and irregular clusters based on the threshold.

7. The method for measuring the volume of a coal pile using multi-view visual and agglomeration feature completion as described in claim 1, characterized in that, In step S5, point cloud generation and denoising of the ordinary particle area are specifically performed as follows: using the mid-view image as a reference, the SGBM algorithm is used to calculate the disparity map for the low-view and high-view images. The pixel size of the block and the pixel range of the disparity are set. The disparity is defined as the difference between the column coordinates of the same point in the left and right images. The proportion of erroneous disparity is ensured to be less than or equal to the preset value through a two-way disparity consistency check. The qualified disparity map is converted into three-dimensional spatial coordinates using camera intrinsic parameters. The multiple nearest neighbor points of each point are checked through statistical filtering, and points with deviations exceeding the preset multiple standard deviations are removed, so that the point cloud density of the ordinary particle area reaches the preset requirements. And / or, in step S5, the occlusion and void filling in the clumped region is performed. Specifically, the surface arc is fitted to the regular clumped area using the least squares method, and the coordinates of the visible point cloud on the arc are set as follows: , Using the visible point index, a circular arc is fitted to obtain the center and radius. Based on the circular arc model, the coordinates of the occlusion area are generated, following the following rules: ,in, The average height of the visible portion. One-third of the clumping height, To complete the Z-coordinate value of the point, This is the difference between the maximum and minimum height of the visible portion of the cluster; For irregular clusters, edge points are extracted and then fitted using the RANSAC algorithm. There are 3 planes, and the equation of each fitted plane is: , ,in, , , For the first The coefficients of the fitted plane, To fit the number of planes, the occlusion area is filled according to the plane intersection constraint to avoid distortion of the completed shape; And / or, in step S5, multi-view point cloud fusion and downsampling, specifically, using the mid-view point cloud as a reference, the ICP algorithm is used to stitch together low- and high-view point clouds. Let the source point cloud and the target point cloud be defined. The ICP algorithm iteratively optimizes the rotation matrix and translation vector to minimize the objective function, expressed as: ,in, For points in the source point cloud, In the target point cloud The corresponding nearest point is iterated multiple times until the root mean square error is less than or equal to a preset value. The expression is: ,in, The root mean square error, To match the total number of point pairs, Let be a rotation matrix. It is a translation vector. and For the first For the matching points, the fused point cloud is downsampled using a voxel grid, dividing the 3D space into a cubic grid with a preset side length, and each grid retains one coordinate mean point.

8. The method for measuring the volume of a coal pile using multi-view visual and agglomeration feature completion as described in claim 6, characterized in that, In step S5, point cloud generation and denoising of the ordinary particle area are specifically performed as follows: using the mid-view image as a reference, the SGBM algorithm is used to calculate the disparity map for the low-view and high-view images. The pixel size of the block and the pixel range of the disparity are set. The disparity is defined as the difference between the column coordinates of the same point in the left and right images. The proportion of erroneous disparity is ensured to be less than or equal to the preset value through a two-way disparity consistency check. The qualified disparity map is converted into three-dimensional spatial coordinates using camera intrinsic parameters. The multiple nearest neighbor points of each point are checked through statistical filtering, and points with deviations exceeding the preset multiple standard deviations are removed, so that the point cloud density of the ordinary particle area reaches the preset requirements. And / or, in step S5, the occlusion and void filling in the clumped region is performed. Specifically, the surface arc is fitted to the regular clumped area using the least squares method, and the coordinates of the visible point cloud on the arc are set as follows: , Using the visible point index, a circular arc is fitted to obtain the center and radius. Based on the circular arc model, the coordinates of the occlusion area are generated, following the following rules: ,in, The average height of the visible portion. One-third of the clumping height, To complete the Z-coordinate value of the point, This is the difference between the maximum and minimum height of the visible portion of the cluster; For irregular clusters, edge points are extracted and then fitted using the RANSAC algorithm. There are 3 planes, and the equation of each fitted plane is: , ,in, , , For the first The coefficients of the fitted plane, To fit the number of planes, the occlusion area is filled according to the plane intersection constraint to avoid distortion of the completed shape; And / or, in step S5, multi-view point cloud fusion and downsampling, specifically, using the mid-view point cloud as a reference, the ICP algorithm is used to stitch together low- and high-view point clouds. Let the source point cloud and the target point cloud be defined. The ICP algorithm iteratively optimizes the rotation matrix and translation vector to minimize the objective function, expressed as: ,in, For points in the source point cloud, In the target point cloud The corresponding nearest point is iterated multiple times until the root mean square error is less than or equal to a preset value. The expression is: ,in, The root mean square error, To match the total number of point pairs, Let be a rotation matrix. It is a translation vector. and For the first For the matching points, the fused point cloud is downsampled using a voxel grid, dividing the 3D space into a cubic grid with a preset side length, and each grid retains one coordinate mean point.

9. The method for measuring the volume of a stone coal pile using multi-view visual and agglomeration feature completion as described in claim 8, characterized in that, Step S6: Particle Characteristic Analysis and Parameter Extraction. Multiple independent particles are randomly sampled from the ordinary particle region mask and classified according to their equivalent diameter. The equivalent diameter is denoted as... : Fine particles: <20mm, the percentage is recorded as ; Medium particle size: 20mm≤ ≤50, the percentage is recorded as ; Coarse particles: >50mm, the percentage is recorded as ; satisfy + + =100%, the equivalent diameter of a particle is defined as the diameter of a circle with the same projected area as the particle, that is... , This represents the projected area of ​​the particle. Simultaneously, the clumping rate is calculated based on the segmentation results, expressed as: ,in, The total area of ​​the clumped region. This represents the total surface area of ​​the pile. The clumping rate; Error compensation based on particle characteristics involves substituting particle characteristic parameters into a pre-trained error coefficient model. The formula for calculating the error coefficient is as follows: ,in, This is the error compensation coefficient. The proportion of fine particles, The proportion of medium-sized particles, The goodness of fit of the model is set to the clumping rate. ≥0.92, The coefficient of determination, with a value ranging from 0 to 1; The compensated volume is calculated using the following formula: ,in, This is the final volume after error compensation. For the initial volume, This is the error compensation coefficient.

10. The method for measuring the volume of a pile of gravel and coal by multi-view vision and agglomeration feature completion as described in claim 1, characterized in that, Step S6: Particle Characteristic Analysis and Parameter Extraction. Multiple independent particles are randomly sampled from the ordinary particle region mask and classified according to their equivalent diameter. The equivalent diameter is denoted as... : Fine particles: <20mm, the percentage is recorded as ; Medium particle size: 20mm≤ ≤50, the percentage is recorded as ; Coarse particles: >50mm, the percentage is recorded as ; satisfy + + =100%, the equivalent diameter of a particle is defined as the diameter of a circle with the same projected area as the particle, that is... , This represents the projected area of ​​the particle. Simultaneously, the clumping rate is calculated based on the segmentation results, expressed as: ,in, The total area of ​​the clumped region. This represents the total surface area of ​​the pile. The clumping rate; Error compensation based on particle characteristics involves substituting particle characteristic parameters into a pre-trained error coefficient model. The formula for calculating the error coefficient is as follows: ,in, This is the error compensation coefficient. The proportion of fine particles, The proportion of medium-sized particles, The goodness of fit of the model is set to the clumping rate. ≥0.92, The coefficient of determination, with a value ranging from 0 to 1; The compensated volume is calculated using the following formula: ,in, This is the final volume after error compensation. For the initial volume, This is the error compensation coefficient.