Method for measuring safe distance between human body and high-voltage power equipment based on binocular vision

Through binocular vision technology, the stereo matching algorithm that enhances edge information and brightness information and the improved RANSAC algorithm are used to solve the problems of outliers and noise in plane fitting, and realize the safe distance between the human body and high-voltage power equipment. High-precision measurement.

CN118674779APending Publication Date: 2024-09-20STATE GRID QINGHAI ELECTRIC POWER COMPANY +2
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410726749.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-06-06
Publication Date
2024-09-20

AI Technical Summary

Technical Problem

When the existing technology detects the safe distance between the human body and high-voltage power equipment, the point cloud data generated by the plane fitting method contains outliers and noise, resulting in low measurement accuracy.

Method used

Using a measurement method based on binocular vision, plane fitting is performed accurately by obtaining calibration parameters of binocular cameras, epipolar correction images, stereo matching algorithms that enhance edge information and brightness information, parallax calculation, feature extraction and improved RANSAC algorithm. Measure the safe distance between the human body and high-voltage power equipment.

Benefits of technology

It improves the calculation accuracy, solves the outlier and noise problems in plane fitting, and significantly improves the measurement accuracy of the safe distance between the human body and high-voltage power equipment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118674779A
    Figure CN118674779A
Patent Text Reader

Abstract

The invention belongs to the technical field of image processing, and discloses a binocular vision-based method for measuring a safe distance between a human body and high-voltage power equipment, which comprises the following steps of: obtaining calibration parameters of a binocular camera according to a Zhang's calibration method; correcting binocular images of the human body and the high-voltage power equipment according to the calibration parameters; constructing a stereo matching algorithm for enhancing edge information and brightness information, performing feature extraction on the obtained binocular image, constructing a human body skeleton structure, and obtaining two-dimensional coordinates of human body skeleton joint points according to each calculation between the human body skeleton joint points and accompanying joints; obtaining three-dimensional coordinates of human skeleton joint points in combination with the stereo matching algorithm; performing plane fitting iteration on the high-voltage power equipment to obtain a plane fitting model; and calculating the distance from the three-dimensional coordinates of the articulation points of the human body skeleton to the fitting plane of the high-voltage power equipment to obtain the safety distance between the human body and the high-voltage power equipment. The measuring precision of the safety distance between the human body and the high-voltage power equipment is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention belongs to the technical field of image processing, and in particular relates to a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision. Background Art

[0002] In industrial production, high-voltage power equipment is widely used, such as motors, transformers, switch cabinets, etc. However, during the operation of these equipment, if they are improperly operated or not maintained in time, electric shock accidents are likely to occur, which will not only threaten the life safety of the staff, but also have a serious impact on the production and operation of the enterprise. The commonly used anti-electric shock measures in the work of high-voltage power equipment in substations are: using insulating materials, grounding protection systems, relay protection technology, etc., but these measures are likely to fail under electromagnetic interference, extreme and complex environmental conditions, affecting the effect of electric shock protection, and then leading to electric shock accidents.

[0003] The binocular camera obtains binocular images of the human body and high-voltage power equipment, extracts the skeleton of the human body, performs plane fitting on the plane of the high-voltage power equipment, obtains the distance from the key joints of the human body to the plane of the high-voltage power equipment, and performs feedback intervention, thereby protecting the user's personal safety and preventing electric shock. Therefore, it plays an important role in preventing electric shock.

[0004] However, when the existing technology detects the plane distance between the human body and high-voltage power equipment, the point cloud data generated by the plane fitting method used has some scattered outliers and noise problems, which makes it difficult to accurately measure the safe distance between the human body and the high-voltage power equipment. Summary of the invention

[0005] The technical problem to be solved by the present invention is: how to improve the measurement accuracy of the safety distance between the human body and high-voltage power equipment.

[0006] In order to solve the above technical problems, the present invention is implemented by adopting the following technical solutions.

[0007] The present invention provides a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision, comprising: Obtain the calibration parameters of the binocular camera, and obtain the positional relationship between the left camera and the right camera according to the calibration parameters; Acquire a binocular image of a human body and high-voltage power equipment, and perform epipolar correction on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image; The corrected binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information to obtain the binocular image with enhanced information. The pixel points to be matched in the cross window area of ​​the binocular image with enhanced information are Perform two-step cost aggregation to obtain a final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain a binocular image disparity map and a binocular image disparity value; The calibrated binocular image is subjected to feature extraction to obtain the two-dimensional coordinates of the human skeleton joints. According to the extracted two-dimensional coordinates of the human skeleton joints and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joints are subjected to three-dimensional coordinate conversion to obtain the three-dimensional coordinates of the human skeleton joints. According to the disparity value of the binocular image, the depth value constituting the depth map is calculated to obtain the depth map, and then the depth map is input into the point cloud generation network to obtain the three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system. Based on the improved RANSAC algorithm, the three-dimensional point cloud is iterated by plane fitting to obtain the plane fitting model; According to the plane fitting model, the distance from the three-dimensional coordinates of the human skeleton joint points to the high-voltage power equipment fitting plane is calculated to obtain a safe distance between the human body and the high-voltage power equipment.

[0008] Furthermore, according to Zhang's calibration method, the step of obtaining the calibration parameters of the binocular camera includes: Use a binocular camera to take multiple images containing the checkerboard calibration plate at different angles and positions, and extract the coordinates of the corner points in each image in turn; The left camera and the right camera are calibrated separately, and according to the corner point coordinates and the actual size of the chessboard, they are solved by Zhang's calibration method to obtain the internal parameter focal length, principal point coordinates and external parameter rotation matrix and translation vector of the left camera and the right camera respectively.

[0009] Furthermore, the positional relationship between the left camera and the right camera is obtained according to the calibration parameters. The positional relationship between the left camera and the right camera is represented by a rotation matrix R and a translation vector S, and the expression is: (1); In the formula, the subscript l Indicates left, subscript r Indicates right, Represents the rotation matrix of the left camera, represents the translation vector of the left camera, represents the rotation matrix of the right camera, represents the translation vector of the right camera, R r -1Represents the inverse matrix of the right camera's rotation matrix.

[0010] Further, a binocular image of a human body and a high-voltage power device is obtained, and epipolar correction is performed on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image, including: Based on the rotation matrix R, the coordinate systems of the left camera and the right camera are rotated to construct a left image rotation matrix and a right image rotation matrix, so that the imaging planes of the left camera and the right camera are in the same plane; Based on the translation vector S, a transformation matrix in the direction of the translation vector is constructed to make the baseline parallel to the imaging plane of the left camera and the right camera; Combine the left image rotation matrix and the right image rotation matrix with the transformation matrix to obtain the left image stereo correction matrix And the right eye image stereo correction matrix : The left camera and the left image stereo correction matrix Multiply the right camera and the right image stereo correction matrix Multiply them to get the corrected binocular image.

[0011] Furthermore, a method for constructing a stereo matching algorithm for enhancing edge information and brightness information includes: According to the corrected binocular image, the traditional The matching cost under transformation, application The edge extraction operator processes the corrected binocular image and calculates the edge The matching cost under the transformation, the edge The matching cost under transformation is different from the traditional The matching costs under the transformation are linearly fused to obtain the edge information matching cost; the edge matching cost is expressed as: (2); In the formula, represents the edge matching cost, represents the Hamming distance calculation, express The calculated edge value is Represents the left image pixel, Indicates the pixel of the right eye image; According to the corrected binocular image, the absolute difference of the grayscale value of the corresponding pixel and the absolute difference of the gradient value in the vertical direction are used for linear fusion to obtain the brightness information matching cost; the brightness information matching cost is expressed as: (3); In the formula, represents the brightness information matching cost, represents the proportional adjustment parameter; Represents the gray value, , represents a constant, Represents the vertical gradient, Represents the grayscale value of the left camera, Represents the grayscale value of the right camera, Represents the left image pixel, Represents the pixel of the right image, represents the disparity value; The edge information matching cost and the brightness information matching cost are nonlinearly fused to obtain a stereo matching algorithm that enhances edge information and brightness information; the stereo matching algorithm that enhances edge information and brightness information is expressed as: (4); In the formula, represents the matching cost of enhancing edge information and brightness information, represents exponential operation, Represents the edge information matching cost , represents the brightness information matching cost, , Belongs to custom weights, represents a custom weight that controls the matching cost of enhancing edge information, Represents a custom weight that controls the matching cost of enhancing brightness information.

[0012] Furthermore, the corrected binocular image is input into a stereo matching algorithm that enhances edge information and brightness information, and the edge information and brightness information are enhanced to obtain a binocular image with enhanced information. The pixel points to be matched in the cross window area of ​​the binocular image with enhanced information are Perform two-step cost aggregation to obtain the final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain the binocular image disparity map and binocular image disparity value, including: According to the color similarity and spatial distance relationship, the pixels to be matched are constructed in the horizontal and vertical directions of the corrected binocular image. The cross window area is used as the initial skeleton joint point of the human body to obtain the processed binocular image; The processed binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information. After the edge information and brightness information are enhanced, the pixels to be matched in the cross window area of ​​the processed binocular image are matched. Perform two-step cost aggregation; get the final aggregate cost value ; According to the final aggregate cost , select each pixel to be matched The corresponding minimum cost aggregation disparity value , calculate the disparity and obtain the binocular disparity map, including the left disparity map and the right disparity map; According to any pixel point in the left eye disparity map The optimal disparity value , the pixel point The corresponding pixel in the right eye disparity map The optimal disparity value And disparity threshold, identify abnormal matching points, and correct the abnormal points to obtain the disparity value of the binocular image .

[0013] Furthermore, for the pixel points to be matched in the cross window area Perform a two-step cost aggregation, including: In the first step, for all pixels to be matched, the matching cost values ​​of the pixels on their horizontal arms are added and stored as temporary values; in the second step, for all pixels to be matched, the temporary values ​​of the pixels on their vertical arms stored in the first step are added to obtain the final aggregate cost value of the pixel.

[0014] Further, feature extraction is performed on the corrected binocular image to obtain the two-dimensional coordinates of the human skeleton joints, and the three-dimensional coordinates of the human skeleton joints in the left camera coordinate system are calculated according to the extracted two-dimensional coordinates of the human skeleton joints and the calibration parameters as the three-dimensional coordinates of the human skeleton joints, including: The corrected binocular image is input into a multi-level CNN network for feature extraction to obtain the two-dimensional coordinates of the human body joints, which are input into the calculation formula of the human skeleton joint feature confidence map to solve the human skeleton joint feature confidence map, and the human skeleton joints are determined according to the maximum value in the human skeleton joint feature confidence map; Based on the human skeleton joint feature confidence map, the connection probability between each human skeleton joint is calculated using the affinity values ​​between the accompanying joints, and each human skeleton joint is connected to obtain a human skeleton structure map; According to each calculation between the joint points of the human skeleton and the accompanying joints, the affinity value H between the accompanying joints is calculated, and the joint points of the human skeleton having the affinity value between the accompanying joints are linked to obtain the two-dimensional coordinates of the joint points of the human skeleton; According to the extracted two-dimensional coordinates of the human skeleton joint points and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joint points are converted into three-dimensional coordinates to obtain the three-dimensional coordinates of the human skeleton joint points.

[0015] Furthermore, according to the disparity value of the binocular image, the depth value constituting the depth map is calculated to obtain the depth map, and then the depth map is input into the point cloud generation network to obtain the three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system, and the three-dimensional point cloud is iterated by plane fitting based on the improved RANSAC algorithm to obtain the plane fitting model, including the following steps: (1) Input the binocular image disparity value into the disparity depth conversion formula to obtain a depth map, and then input the depth map into the point cloud generation network to obtain a three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system; perform plane fitting on the three-dimensional point cloud to obtain a plane fitting model of the high-voltage power equipment; The parallax depth conversion formula is as follows: (5); in, represents the depth values ​​that make up the depth map, represents the focal length of the camera, represents the baseline distance, Represents the binocular image disparity value; (2) Calculate the probability of each point in the 3D point cloud , according to the probability of each point Select 3 sample points from the 3D point cloud and substitute them into the plane fitting equation to obtain the estimated plane model ,in, denotes the variables for estimating the plane model, Indicates the variable calculated by bringing three sample points into the estimated plane model The corresponding coefficients; (3) Calculate the distance between each point in the three-dimensional point cloud and the estimated plane model, and set the distance less than the threshold The points are recorded in the internal point set middle; (4) According to the probability of each point in the 3D point cloud, calculate each point belonging to the internal point set The sum of the probabilities of the points in the inner point set The number of points in the equation gives the score of each estimated plane model. ; (5) Repeat steps (2) to (4) until the preset maximum number of iterations is reached, and obtain the estimated plane model with the largest score as the plane fitting model of the high-voltage power equipment.

[0016] Compared with the prior art, the present invention has the following beneficial effects:

[0017] The present invention improves the calculation accuracy by constructing a stereo matching algorithm that enhances image edge information and brightness information; when detecting the plane distance between the human body and the high-voltage power equipment, a weighted plane fitting method is used to solve the problem that the point cloud data generated by the plane fitting method used in the prior art has partially scattered outliers and noise, effectively improves the accuracy of plane fitting, and more accurately measures the safe distance between the human body and the high-voltage power equipment. BRIEF DESCRIPTION OF THE DRAWINGS

[0018] Figure 1 It is a flow chart of a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision provided by an embodiment of the present invention;

[0019] Figure 2 It is a schematic diagram of a scenario simulation of a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision provided by an embodiment of the present invention;

[0020] Figure 3 It is a schematic diagram of the process of constructing a stereo matching algorithm for a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision provided by an embodiment of the present invention;

[0021] Figure 4 It is a schematic diagram of the process of establishing a plane fitting model for the method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision provided in an embodiment of the present invention. DETAILED DESCRIPTION

[0022] Example 1

[0023] like Figure 1 As shown, this embodiment introduces a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision, including:

[0024] Get the calibration parameters of the binocular camera, and obtain the positional relationship between the left camera and the right camera based on the calibration parameters.

[0025] The Zhang calibration method can accurately obtain the internal parameters of the binocular camera, such as focal length, principal point coordinates, and external parameters, such as rotation matrix and translation vector. This can ensure the accuracy of subsequent image correction and three-dimensional coordinate calculation, and improve measurement accuracy.

[0026] A binocular image of a human body and high-voltage power equipment is acquired, and epipolar correction is performed on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image.

[0027] By correcting the binocular image, the image error caused by camera distortion and different shooting angles can be eliminated, making the images acquired by the left and right cameras more geometrically consistent, which can improve the accuracy of binocular image matching.

[0028] The corrected binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information to obtain the binocular image with enhanced information. The pixel points to be matched in the cross window area of ​​the binocular image with enhanced information are Perform two-step cost aggregation to obtain a final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain a binocular image disparity map and a binocular image disparity value.

[0029] The stereo matching algorithm is used to find the corresponding pixel points in the left and right images. The position difference between these corresponding points is the disparity, which is used to calculate the depth information. By enhancing the edge information and brightness information, the robustness and accuracy of stereo matching can be improved, thus obtaining a more accurate binocular image disparity map.

[0030] The calibrated binocular image is subjected to feature extraction to obtain the two-dimensional coordinates of the human skeleton joint points. According to the extracted two-dimensional coordinates of the human skeleton joint points and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joint points are transformed into three-dimensional coordinates to obtain the three-dimensional coordinates of the human skeleton joint points.

[0031] According to the disparity value of the binocular image, the depth value constituting the depth map is calculated to obtain the depth map, and then the depth map is input into the point cloud generation network to obtain the three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system. Based on the improved RANSAC algorithm, the three-dimensional point cloud is plane fitted iteratively to obtain the plane fitting model.

[0032] Since high-voltage power equipment is usually in the shape of a plane or a plane approximation, a plane fitting algorithm is used to describe the position of high-voltage power equipment in three-dimensional space. The improved RANSAC algorithm can improve the robustness and accuracy of plane fitting. Through plane fitting, a plane fitting model describing the position of high-voltage power equipment is obtained.

[0033] According to the plane fitting model, the distance from the three-dimensional coordinates of the human skeleton joint points to the high-voltage power equipment fitting plane is calculated to obtain a safe distance between the human body and the high-voltage power equipment.

[0034] Based on the three-dimensional coordinates of the human skeleton joints and the plane fitting model of high-voltage power equipment, the safe distance between the human body and the high-voltage power equipment can be calculated to help workers judge whether the current working environment is safe, so as to make correct operational decisions and avoid safety accidents.

[0035] Example 2

[0036] This embodiment introduces a method for measuring a safe distance between a human body and high-voltage power equipment based on binocular vision, including:

[0037] (1) According to Zhang's calibration method, obtain the calibration parameters of the binocular camera, and obtain the positional relationship between the left camera and the right camera according to the calibration parameters; the calibration parameters include focal length, principal point coordinates, rotation matrix and translation vector;

[0038] The checkerboard calibration plate is used to obtain the parameter relationship between the binocular camera and the outside world. For a single camera, if the homogeneous coordinates of a point P in the space in the image coordinate system are , the homogeneous coordinates in the world coordinate system are , then the relationship between the two can be expressed as:

[0039] Z c [ u v l ] = M 1 [ R S ] [ X W Y W Z W 1 ] (1);

[0040] In the formula, the subscript represents the camera coordinate system, represents the projection scale parameter, represents the camera built-in parameter matrix, [ R T ] represents the camera external parameter matrix, R represents the rotation matrix, represents the translation vector, u represents the value of a certain point on the x-axis in the image coordinate system, and v represents the value of the certain point on the y-axis in the image coordinate system. represents the value on the z-axis in the image coordinate system of the point, and w represents the world coordinate system. X w Represents the value of the point on the x-axis in the world coordinate system. Y w Represents the value of the point on the y-axis in the world coordinate system. Z w Indicates the value of the point on the z-axis in the world coordinate system. 1 represents the supplementary matrix and has no practical meaning.

[0041] like Figure 2 As shown in the figure, the checkerboard calibration plate is placed at different positions and angles, and the left camera and the right camera are used to simultaneously collect 15 to 20 images of the checkerboard calibration plate at different angles and positions. The coordinates of the corner points in the left camera and the right camera images are extracted in turn. According to the fixed distance between the corner points on the checkerboard calibration plate and the focal length of the camera and other parameters, the left camera and the right camera are calibrated separately. According to the coordinates of the corner points and the actual size of the checkerboard, they are solved by Zhang's calibration method to obtain the calibration parameters of the binocular camera.

[0042] (2) acquiring a binocular image of a human body and high-voltage power equipment, and performing epipolar correction on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image;

[0043] The positional relationship between the left camera and the right camera is obtained according to the calibration parameters. The positional relationship between the left camera and the right camera is expressed by a rotation matrix R and a translation vector S, and the expression is: (2); In the formula, the subscript l Indicates left, subscript r Indicates right, Represents the rotation matrix of the left camera, represents the translation vector of the left camera, represents the rotation matrix of the right camera, represents the translation vector of the right camera, R r -1 Represents the inverse matrix of the right camera's rotation matrix.

[0044] Based on the rotation matrix, the camera coordinate systems of the left camera and the right camera are rotated half an angle in opposite directions respectively. and , so that the left eye and right eye imaging planes are in the same plane. Among them, Represents the rotation matrix , The left eye image rotation matrix is ​​obtained after the left eye camera is rotated by half an angle. The left eye image rotation matrix is ​​obtained by rotating the right and left eye cameras by half an angle.

[0045] Based on the translation vector, a transformation matrix in the direction of the translation vector is constructed so that the baseline is parallel to the imaging plane of the left camera and the right camera. The transformation matrix in the direction of the translation vector is expressed as:

[0046] R rect = [ e 1 Τ e 2 Τ e 3 Τ ] Τ (3);

[0047] In the formula, the superscript represents the transpose operation of the matrix, A unit vector representing the direction of the translation vector, where , Representation and The unit vector orthogonal to the principal optical axis, , and They are and The translation vector in direction; Representation and , Orthogonal unit vectors, where .

[0048] Combine the left image rotation matrix and the right image rotation matrix with the transformation matrix to obtain the left image stereo correction matrix And the right eye image stereo correction matrix .

[0049] The left eye image stereo correction matrix It is expressed as:

[0050] (4);

[0051] In the formula, R rect The transformation matrix representing the direction of the translation vector, Represents the left eye image rotation matrix obtained after the left eye camera is rotated by half an angle.

[0052] The right eye image stereo correction matrix It is expressed as:

[0053] (5);

[0054] In the formula, R rect The transformation matrix representing the direction of the translation vector, Represents the right eye image rotation matrix obtained after the right eye camera is rotated by half an angle.

[0055] The left camera and the left image stereo correction matrix Multiply the right camera and the right image stereo correction matrix Multiply to get the corrected binocular image .

[0056] (3) Input the corrected binocular image into the stereo matching algorithm with enhanced edge information and brightness information to obtain the enhanced binocular image. Perform two-step cost aggregation to obtain the final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain the binocular image disparity map and binocular image disparity value, such as Figure 3 As shown, including:

[0057] The method of constructing a stereo matching algorithm for enhancing edge information and brightness information includes:

[0058] According to the corrected binocular image , calculate the traditional The matching cost under transformation, application The edge extraction operator processes the corrected binocular image and calculates the edge The matching cost under transformation is different from the traditional The matching costs under transformation are linearly fused to obtain the edge information matching cost;

[0059] Traditional The matching cost under transformation is expressed as:

[0060] (6);

[0061] In the formula, Indicates traditional The matching cost under transformation, Indicates the left image pixel And right eye image pixels The Hamming distance between them is calculated, where p represents the pixel of the left image and q represents the pixel of the right image.

[0062] edge The matching cost under transformation is expressed as:

[0063] (7);

[0064] In the formula, Representing the edge The matching cost under transformation, represents the Hamming distance calculation, express The calculated edge value is Represents the left image pixel, Indicates the pixel of the right eye image.

[0065] (8);

[0066] In the formula, represents the edge information matching cost after linear fusion, Indicates traditional The matching cost under transformation, Representing the edge The matching cost under transformation, , represents the linear fusion weight.

[0067] According to the corrected binocular image , linear fusion is performed using the absolute difference of the grayscale value of the corresponding pixel and the absolute difference of the gradient value in the vertical direction to obtain the brightness information matching cost, which is expressed as:

[0068] (9);

[0069] In the formula, represents the brightness information matching cost, represents the proportional adjustment parameter; Represents the gray value, , represents a constant, Represents the vertical gradient, Represents the grayscale value of the left camera, Represents the grayscale value of the right camera, Represents the left image pixel, Represents the pixel of the right image, Indicates the disparity value.

[0070] The edge information matching cost and the brightness information matching cost are nonlinearly fused to construct a stereo matching algorithm that enhances edge information and brightness information, which can be expressed as:

[0071] (10);

[0072] In the formula, represents the matching cost of enhancing edge information and brightness information, represents exponential operation, Represents the edge information matching cost , represents the brightness information matching cost, , Belongs to custom weights, represents a custom weight that controls the matching cost of enhancing edge information, Represents a custom weight that controls the matching cost of enhancing brightness information.

[0073] After the correction of the binocular image After constructing the cross window area of ​​each pixel point, the stereo matching algorithm with enhanced edge information and brightness information is input to enhance the edge information and brightness information to obtain the binocular image with enhanced information. , for the binocular image after enhancing information The pixels to be matched in the cross window area Perform two-step cost aggregation to obtain the final aggregate cost value ,include:

[0074] Set a color threshold based on color similarity and spatial distance relationship With a spatial distance threshold , construct the pixels to be matched in the horizontal and vertical directions The cross window area is used as the initial support for the human skeleton. The horizontal direction of the cross window area is , the vertical direction of the cross window area is , respectively expressed as:

[0075] { H ( a ) = { ( x , y ) | x ∈ [ x a − h a − , x a + h a + ] , y = y a } V ( a ) = { ( x , y ) | x = x a , y ∈ [ y a − v a − , y a + v a + ] } (11);

[0076] In the formula, Represent the pixels to be matched The length of the upper arm, lower arm, left arm and right arm, Indicates the pixel to be matched The points in the horizontal area of ​​the cross window area, Indicates the pixel to be matched The points in the vertical area of ​​the cross window area, The pixel to be matched The x-axis coordinate value, The pixel to be matched The coordinate value on the y-axis, is the coordinate value of the point in the horizontal area of ​​the cross window area on the x-axis, It is the coordinate value of the point in the vertical area of ​​the cross window area on the y-axis.

[0077] Pixels to be matched The adjustment criterion for each arm length is expressed as:

[0078] (12);

[0079] In the formula, Represents a pixel, represents the pixel to be matched, Represents pixel and the pixels to be matched The spatial distance difference, Represents pixel and the pixels to be matched The color difference, represents the color threshold, Represents the spatial distance threshold.

[0080] When the pixel to be matched A pixel in When the threshold condition is reached, the arm length no longer changes, and the search for matching pixels is completed. The area and pixel points All pixels with similar colors.

[0081] The vertical direction of the cross window area Each pixel in Repeat the above process to get pixel points Horizontal support area .

[0082] Joint ownership Construct pixels to be matched The adaptive window of , the final cross window area, is expressed as:

[0083] (13);

[0084] In the formula, Represents a pixel, represents the pixel to be matched, Indicates the pixel to be matched The points in the horizontal area of ​​the cross window area, Indicates the pixel to be matched Points belonging to the vertical area in the cross window area Represents a union operation.

[0085] Pixels to be matched After the cross window area is constructed, the matching pixel points are treated Perform two-step cost aggregation: The first step is to add the pixel matching cost values ​​on the horizontal arm of all pixels to be matched and store them as temporary values; In the second step, for all pixels to be matched, the temporary values ​​of the pixels on their vertical arms stored in the first step are added to obtain the final aggregate cost value of the pixel. The final aggregate cost value is divided by the total number of pixels in the support area to make the aggregate value range within a smaller controllable range.

[0086] Final Aggregate Value It is expressed as:

[0087] (14);

[0088] In the formula, represents the initial aggregation cost, represents the final aggregate cost, Indicates The aggregate cost value of the sub-cost aggregation, Represents the number of iterations for cost aggregation, Represents a pixel, Represents pixel The pixels to be matched The points of the cross-section area, represents the sum operation, Indicates the pixel to be matched The number of pixels in the cross-section area.

[0089] According to the final aggregate cost , select each pixel to be matched The corresponding minimum cost aggregation disparity value d ∈ [ 0 ,max disp ] , calculate the disparity, and get the left-eye disparity map and the right-eye disparity map. The disparity calculation process is expressed as:

[0090] (15);

[0091] In the formula, Indicates that when the minimum matching cost is taken, the current pixel to be matched The optimal disparity value is It means to find the minimum value in the final aggregate value. Represents the final aggregate cost value.

[0092] According to any pixel point in the left eye disparity map The optimal disparity value , the pixel point The corresponding pixel in the right eye disparity map The optimal disparity value And disparity threshold, identify abnormal matching points, and correct the abnormal points to obtain the disparity value of the binocular image .

[0093] The identification formula of abnormal matching points is expressed as:

[0094] (16);

[0095] In the formula, Indicates the disparity threshold, usually set to 1. Represents any pixel in the left eye disparity map The optimal disparity value of Indicates the left pixel The corresponding pixel in the right eye disparity map The optimal disparity value.

[0096] If an abnormal pixel appears , then at the pixel points Find the first non-abnormal point in the left and right directions, and the corresponding optimal disparity values ​​are . Then the parallax value after outlier correction is expressed as:

[0097] (17);

[0098] In the formula, Indicates that at abnormal pixels The first non-outlier point in the left direction, Indicates that at abnormal pixels The first non-outlier point on the right, min() means taking the minimum value.

[0099] Combine the corrected disparity values ​​to obtain the binocular image disparity map .

[0100] (4) Perform feature extraction on the calibrated binocular image to obtain the two-dimensional coordinates of the human skeleton joints. Based on the extracted two-dimensional coordinates of the human skeleton joints and the calibration parameters, calculate the three-dimensional coordinates of the human skeleton joints in the left camera coordinate system as the three-dimensional coordinates of the human skeleton joints, including:

[0101] The corrected binocular image Input a multi-level CNN network to perform feature extraction, obtain the two-dimensional coordinates of the human body joints, input them into the calculation formula of the human skeleton joint feature confidence map, solve the human skeleton joint feature confidence map, and determine the human skeleton joints according to the maximum value in the human skeleton joint feature confidence map;

[0102] The calculation formula of the human skeleton joint feature confidence map is expressed as:

[0103] (18);

[0104] In the formula, express The confidence map of Indicates the coordinates of the human joint points that need to be determined, express The square of the second norm of represents the human index, Indicates the joint point index; Indicates Personal The actual position of the joints, Represents the probability distribution of joint points.

[0105] Ideally, the joint point corresponds to the maximum value in the human skeleton joint point feature confidence map. Individual body joint locations It is expressed as:

[0106] (19);

[0107] In the formula, Indicates the human joint points that need to be determined The confidence map of Indicates taking the maximum value.

[0108] Based on the feature confidence map of the human skeleton joints, the connection probability between each human skeleton joint is calculated using the affinity values ​​between the accompanying joints, and each human skeleton joint is linked to obtain the human skeleton structure map.

[0109] According to each calculation between the joint points of the human skeleton and the accompanying joints, the affinity value between the accompanying joints is calculated. , linking the joint points of the human skeleton with affinity values ​​between accompanying joints to obtain the two-dimensional coordinates of the joint points of the human skeleton;

[0110] The affinity value between the adjoint joints is expressed as:

[0111] (20);

[0112] In the formula, and Represents symbolic continuous joints; Continuous joints and The bi-norm between , which represents the body length between two joints. Q ( t ) ∈ [ n 1 , n 2 ] Represents continuous joints and between the body parts, Represents a parameter, No special meaning, express exist arrive The definite integral between Indicates custom parameters. When located on the body, ,otherwise ,in, Indicates Personal class index, Indicates Personal class index.

[0113] Calculate each calculation between a joint point and its continuous joints , by selecting the affinity value between the joints with the largest In this way, all joints of the human skeleton are connected, and the human skeleton will be grouped, so as to obtain the two-dimensional coordinates of the eight human skeleton joints required in the left and right images:

[0114] 7 represents the left wrist, and its left eye image coordinates are set to , the right eye image coordinates are set to ;

[0115] 4 represents the right wrist, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0116] 14 represents the left ankle, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0117] 11 represents the right ankle, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0118] 6 represents the left elbow, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0119] 3 represents the right elbow, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0120] 13 represents the left knee, and its left eye coordinate is set to , the right eye image coordinates are set to ;

[0121] 10 represents the right knee, and its left eye coordinate is set to , the right eye image coordinates are set to .

[0122] In the two-dimensional coordinates of the above eight human skeleton joints, l represents left, r represents right, x represents the horizontal coordinate, and y represents the vertical coordinate.

[0123] According to the extracted two-dimensional coordinates of the human skeleton joint points and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joint points are transformed into three-dimensional coordinates to obtain the human skeleton joint points in the left camera coordinate system. The three-dimensional coordinates of .

[0124] (5) Based on the improved RANSAC algorithm, the plane fitting iteration is performed on the position of the high-voltage power equipment in the three-dimensional space to obtain the plane fitting model, such as Figure 4 As shown, the following steps are included:

[0125] a. Input the binocular image disparity value into the disparity depth conversion formula to obtain a depth map, and then input the depth map into the point cloud generation network to obtain a three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system; perform plane fitting on the three-dimensional point cloud to obtain a plane fitting model of the high-voltage power equipment;

[0126] The parallax depth conversion formula is as follows:

[0127] (twenty one);

[0128] in, represents the depth values ​​that make up the depth map, represents the focal length of the camera, represents the baseline distance, Represents the binocular image disparity value.

[0129] All pixel points in the area where the high-voltage power equipment is located are in the left camera coordinate system The three-dimensional coordinates of [ X p , Y p , Z p ] , expressed as:

[0130] (twenty two);

[0131] In the formula, Indicates the left image The main point is The coordinate values ​​on the axis, Indicates the left image The main point is The coordinate values ​​on the axis, represents the baseline distance, represents the focal length of the camera, represents the disparity value, Indicates the left image The pixels in The coordinate values ​​on the axis, Indicates the left image The pixels in The coordinate values ​​on the axis, Indicates the pixel point in the left camera coordinate system The coordinate values ​​on the axis, Indicates the pixel point in the left camera coordinate system The coordinate values ​​on the axis, Indicates the pixel point in the left camera coordinate system The coordinate values ​​on the axis.

[0132] Combine the coordinates of all pixels in the left camera coordinate system to obtain a 3D point cloud

[0133] b. Calculate the probability of each point in the 3D point cloud , according to the probability of each point Select 3 sample points from the 3D point cloud and substitute them into the plane fitting equation to obtain the estimated plane model ,in, denotes the variables for estimating the plane model, Indicates the variable calculated by bringing three sample points into the estimated plane model The corresponding coefficients;

[0134] Probability The calculation formula is expressed as:

[0135] (twenty three);

[0136] In the formula, Point Cloud A point in To center point The distance Indicates that all pixels are axis, axis, The coordinates of the point where the average value of the sum of the coordinates on the axis is located, represents the proportionality coefficient, represents the standard deviation, where , , point cloud A point in To center point Distance , expressed as:

[0137] (twenty four);

[0138] In the formula, Representing point clouds A point in exist The coordinate values ​​on the axis, Representing point clouds A point in exist The coordinate values ​​on the axis, Representing point clouds A point in exist The coordinate values ​​on the axis, Indicates that all pixels are The average value of the axis coordinates and, Indicates that all pixels are The average value of the axis coordinates and, Indicates that all pixels are The average of the axis coordinate values ​​and.

[0139] c. Calculate the distance between each point in the three-dimensional point cloud and the estimated plane model, and set the distance less than the threshold The points are recorded in the internal point set middle;

[0140] d. According to the probability of each point in the 3D point cloud, calculate each point belonging to the internal point set The sum of the probabilities of the points in the inner point set The number of points in the equation gives the score of each estimated plane model. , the score of the estimated plane model The calculation formula is expressed as:

[0141] (25);

[0142] In the formula, Representing 3D point clouds Middle The probability of a pixel, Indicates that the distance error from the fitting plane is less than the threshold The interior point set of The interior point set The points within.

[0143] e. Repeat steps b to d until the preset maximum number of iterations is 100, and obtain the estimated plane model with the largest score as the final plane fitting model, expressed as ,in, represents the variables in the plane fitting equation, Indicates the corresponding variable obtained by substituting the sample point selected in the last iteration step b into the equation The final coefficient of .

[0144] (6) Calculating the distance from the three-dimensional coordinates of the human skeleton joints to the high-voltage power equipment fitting plane according to the plane fitting model to obtain a safe distance between the human body and the high-voltage power equipment, including:

[0145] Let the coordinates of a point in the fitting plane be , according to the three-dimensional coordinates of the joints of the human skeleton , proceed, and obtain the vector , ;

[0146] Let the plane normal vector be , the normal vector length is ; The vector Projection onto the plane normal vector On, we get the vector In the normal vector Length in direction ;

[0147] Based on the normal vector length and vector In the normal vector Length in direction , calculate the three-dimensional coordinates of the human skeleton joints To plane Distance , as the safe distance between human body and high voltage power equipment, is expressed as:

[0148] (26);

[0149] In the formula, Representation vector In the normal vector The length in the direction, The plane normal vector is The length of the normal vector.

[0150] Example 3

[0151] A computer-readable storage medium having computer instructions stored thereon, characterized in that when the computer instructions are executed by a processor, the steps of the method in the above-mentioned embodiment 1 or 2 are implemented.

[0152] Example 4

[0153] The present invention also provides a computer program product, including computer instructions, characterized in that when the computer instructions are executed by a processor, the steps of the method in the above-mentioned embodiment 1 or 2 are implemented.

[0154] In summary, the present invention improves the calculation accuracy by constructing a stereo matching algorithm that enhances image edge information and brightness information; when detecting the plane distance between the human body and the high-voltage power equipment, a plane fitting method with weights is used to solve the problem that the point cloud data generated by the plane fitting method used in the prior art contains partially scattered outliers and noise, effectively improves the accuracy of plane fitting, and more accurately measures the safe distance between the human body and the high-voltage power equipment.

[0155] It will be appreciated by those skilled in the art that embodiments of the present invention may be provided as methods, systems, or computer program products. Therefore, the present invention may take the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Furthermore, the present invention may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0156] The embodiments of the present invention are described above in conjunction with the accompanying drawings, but the present invention is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the enlightenment of the present invention, ordinary technicians in this field can also make many forms without departing from the scope of protection of the purpose of the present invention and the claims, which all fall within the protection of the present invention.

Claims

1. A method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision, characterized in that: include: Obtain the calibration parameters of the binocular camera, and obtain the positional relationship between the left camera and the right camera according to the calibration parameters; Acquire a binocular image of a human body and high-voltage power equipment, and perform epipolar correction on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image; The corrected binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information to obtain the binocular image with enhanced information. The pixel points to be matched in the cross window area of ​​the binocular image with enhanced information are Perform two-step cost aggregation to obtain a final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain a binocular image disparity map and a binocular image disparity value; The calibrated binocular image is subjected to feature extraction to obtain the two-dimensional coordinates of the human skeleton joints. According to the extracted two-dimensional coordinates of the human skeleton joints and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joints are subjected to three-dimensional coordinate conversion to obtain the three-dimensional coordinates of the human skeleton joints. According to the disparity value of the binocular image, the depth value constituting the depth map is calculated to obtain the depth map, and then the depth map is input into the point cloud generation network to obtain the three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system. Based on the improved RANSAC algorithm, the three-dimensional point cloud is iterated by plane fitting to obtain the plane fitting model; According to the plane fitting model, the distance from the three-dimensional coordinates of the human skeleton joint points to the high-voltage power equipment fitting plane is calculated to obtain a safe distance between the human body and the high-voltage power equipment.

2. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 1 is characterized in that: According to Zhang's calibration method, the steps of obtaining the calibration parameters of the binocular camera include: Use a binocular camera to take multiple images containing the checkerboard calibration plate at different angles and positions, and extract the coordinates of the corner points in each image in turn; The left camera and the right camera are calibrated separately, and according to the corner point coordinates and the actual size of the chessboard, they are solved by Zhang's calibration method to obtain the internal parameter focal length, principal point coordinates and external parameter rotation matrix and translation vector of the left camera and the right camera respectively.

3. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 2 is characterized in that: The positional relationship between the left camera and the right camera is obtained according to the calibration parameters. The positional relationship between the left camera and the right camera is expressed by a rotation matrix R and a translation vector S, and the expression is: (1); In the formula, the subscript l Indicates left, subscript r Indicates right, Represents the rotation matrix of the left camera, Represents the translation vector of the left camera, represents the rotation matrix of the right camera, represents the translation vector of the right camera, R r -1 Represents the inverse matrix of the right camera's rotation matrix.

4. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 3 is characterized in that: Acquire a binocular image of a human body and a high-voltage power device, and perform epipolar correction on the binocular image according to the calibration parameters and the positional relationship between the left camera and the right camera to obtain a corrected binocular image, including: Based on the rotation matrix R, the coordinate systems of the left camera and the right camera are rotated to construct a left image rotation matrix and a right image rotation matrix, so that the imaging planes of the left camera and the right camera are in the same plane; Based on the translation vector S, a transformation matrix in the direction of the translation vector is constructed to make the baseline parallel to the imaging plane of the left camera and the right camera; Combine the left image rotation matrix and the right image rotation matrix with the transformation matrix to obtain the left image stereo correction matrix And the right eye image stereo correction matrix : The left camera and the left image stereo correction matrix Multiply the right camera and the right image stereo correction matrix Multiply them to get the corrected binocular image.

5. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 1 is characterized in that: A method for constructing a stereo matching algorithm for enhancing edge information and brightness information includes: According to the corrected binocular image, the traditional The matching cost under transformation, application The edge extraction operator processes the corrected binocular image and calculates the edge The matching cost under the transformation, the edge The matching cost under transformation is different from the traditional The matching costs under the transformation are linearly fused to obtain the edge information matching cost; the edge matching cost is expressed as: (2); In the formula, represents the edge matching cost, represents the Hamming distance calculation, express The calculated edge value is Represents the left image pixel, Indicates the pixel of the right eye image; According to the corrected binocular image, the absolute difference of the grayscale value of the corresponding pixel and the absolute difference of the gradient value in the vertical direction are used for linear fusion to obtain the brightness information matching cost; the brightness information matching cost is expressed as: (3); In the formula, represents the brightness information matching cost, represents the proportional adjustment parameter; Represents the gray value, , represents a constant, Represents the vertical gradient, Represents the grayscale value of the left camera, Indicates the grayscale value of the right camera, Represents the left image pixel, Represents the pixel of the right image, represents the disparity value; The edge information matching cost and the brightness information matching cost are nonlinearly fused to obtain a stereo matching algorithm that enhances edge information and brightness information; the stereo matching algorithm that enhances edge information and brightness information is expressed as: (4); In the formula, represents the matching cost of enhancing edge information and brightness information, represents exponential operation, Represents the edge information matching cost , represents the brightness information matching cost, , Belongs to custom weights, represents a custom weight that controls the matching cost of enhancing edge information, Represents a custom weight that controls the matching cost of enhancing brightness information.

6. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 5 is characterized in that:The corrected binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information to obtain the binocular image with enhanced information. The pixel points to be matched in the cross window area of ​​the binocular image with enhanced information are Perform two-step cost aggregation to obtain the final aggregated cost value, perform disparity calculation based on the final aggregated cost value, and obtain the binocular image disparity map and binocular image disparity value, including: According to the color similarity and spatial distance relationship, the pixels to be matched are constructed in the horizontal and vertical directions of the corrected binocular image. The cross window area is used as the initial skeleton joint point of the human body to obtain the processed binocular image; The processed binocular image is input into the stereo matching algorithm with enhanced edge information and brightness information. After the edge information and brightness information are enhanced, the pixels to be matched in the cross window area of ​​the processed binocular image are matched. Perform two-step cost aggregation; get the final aggregate cost value ; According to the final aggregate cost , select each pixel to be matched The corresponding minimum cost aggregation disparity value , calculate the disparity and obtain the binocular disparity map, including the left disparity map and the right disparity map; According to any pixel point in the left eye disparity map The optimal disparity value , the pixel point The corresponding pixel in the right eye disparity map The optimal disparity value And disparity threshold, identify abnormal matching points, and correct the abnormal points to obtain the disparity value of the binocular image .

7. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 6 is characterized in that: For the pixel points to be matched in the cross window area Perform a two-step cost aggregation, including: In the first step, for all pixels to be matched, the matching cost values ​​of the pixels on their horizontal arms are added and stored as temporary values; in the second step, for all pixels to be matched, the temporary values ​​of the pixels on their vertical arms stored in the first step are added to obtain the final aggregate cost value of the pixel.

8. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 1 is characterized in that: The calibrated binocular image is subjected to feature extraction to obtain the two-dimensional coordinates of the human skeleton joints. According to the extracted two-dimensional coordinates of the human skeleton joints and the calibration parameters, the three-dimensional coordinates of the human skeleton joints in the left camera coordinate system are calculated as the three-dimensional coordinates of the human skeleton joints, including: The corrected binocular image is input into a multi-level CNN network for feature extraction to obtain the two-dimensional coordinates of the human body joints, which are input into the calculation formula of the human skeleton joint feature confidence map to solve the human skeleton joint feature confidence map, and the human skeleton joints are determined according to the maximum value in the human skeleton joint feature confidence map; Based on the human skeleton joint feature confidence map, the connection probability between each human skeleton joint is calculated using the affinity values ​​between the accompanying joints, and each human skeleton joint is connected to obtain a human skeleton structure map; According to each calculation between the joint points of the human skeleton and the accompanying joints, the affinity value H between the accompanying joints is calculated, and the joint points of the human skeleton having the affinity value between the accompanying joints are linked to obtain the two-dimensional coordinates of the joint points of the human skeleton; According to the extracted two-dimensional coordinates of the human skeleton joint points and the calibration parameters as well as the conversion relationship between the image coordinates and the world coordinates, the extracted two-dimensional coordinates of the human skeleton joint points are converted into three-dimensional coordinates to obtain the three-dimensional coordinates of the human skeleton joint points.

9. The method for measuring the safe distance between a human body and high-voltage power equipment based on binocular vision according to claim 3 is characterized in that: According to the disparity value of the binocular image, the depth value constituting the depth map is calculated to obtain the depth map, and then the depth map is input into the point cloud generation network to obtain the three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system. Based on the improved RANSAC algorithm, the three-dimensional point cloud is iterated by plane fitting to obtain the plane fitting model, including the following steps: (1) Input the binocular image disparity value into the disparity depth conversion formula to obtain a depth map, and then input the depth map into the point cloud generation network to obtain a three-dimensional point cloud of the area where the high-voltage power equipment is located in the left camera coordinate system; perform plane fitting on the three-dimensional point cloud to obtain a plane fitting model of the high-voltage power equipment; The parallax depth conversion formula is as follows: (5); in, represents the depth values ​​that make up the depth map, represents the focal length of the camera, represents the baseline distance, Represents the binocular image disparity value; (2) Calculate the probability of each point in the 3D point cloud , according to the probability of each point Select 3 sample points from the 3D point cloud and substitute them into the plane fitting equation to obtain the estimated plane model ,in, denotes the variables for estimating the plane model, Indicates the variable calculated by bringing three sample points into the estimated plane model The corresponding coefficients; (3) Calculate the distance between each point in the three-dimensional point cloud and the estimated plane model, and set the distance less than the threshold The points are recorded in the internal point set middle; (4) According to the probability of each point in the 3D point cloud, calculate each point belonging to the internal point set The sum of the probabilities of the points in the inner point set The number of points in the equation gives the score of each estimated plane model. ; (5) Repeat steps (2) to (4) until the preset maximum number of iterations is reached, and obtain the estimated plane model with the largest score as the plane fitting model of the high-voltage power equipment.