A three-dimensional laser radar depth fusion method and system based on binocular vision
By independently evaluating the depth quality of binocular vision and laser, and using standardized residuals for consistency judgment and anchor point correction, the problem of insufficient quality evaluation in the depth fusion of binocular vision and 3D LiDAR is solved. Clear depth information output and reliable data status are achieved under complex conditions, providing a reliable basis for workpiece positioning.
Patent Information
- Application Number
- CN202611441191.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-09-16
- Publication Date
- 2026-11-27
AI Technical Summary
Existing technologies lack independent evaluation of the measurement quality and uncertainty of each when fusing binocular vision and 3D LiDAR depth information. This results in low-quality data interfering with high-quality data, and sparse LiDAR depth extension lacks target instance boundary constraints, leading to blurred depth boundaries and mixing of front and back surfaces. Furthermore, the fusion results lack pixel-level fusion quality and data source status, making it difficult to provide a reliable basis for subsequent workpiece positioning and local geometry estimation.
By establishing source quality and depth uncertainty evaluations for binocular depth and laser depth respectively, using standardized depth residuals for dual-source consistency judgment and asymmetric conflict gating, generating reliable fusion anchor points and correcting them at the real projection positions, limiting the propagation correction amount to the connected region of the same target instance, and outputting the final fusion depth map and pixel-level fusion quality map.
It effectively identifies low-quality data under complex near-field conditions such as low texture, reflection, overexposure, occlusion, and sparse laser points, avoids interference with fusion results, reduces depth mixing and boundary blurring, preserves the dense structure of binoculars, and introduces laser absolute scale correction to provide clear depth information and data source status.
Smart Images

Figure CN123181528A_ABST
Abstract
Description
Technical Field
[0001] This invention belongs to the field of industrial robot technology, and in particular to a method and system for deep fusion of three-dimensional LiDAR based on binocular vision. Background Technology
[0002] In applications such as precision assembly and workpiece positioning using industrial robots, continuous, accurate, and clearly defined depth information within the work area is required. Binocular stereo vision can provide dense depth maps, but it is prone to mismatches, depth holes, and blurred boundaries in areas with low texture, metallic reflections, local overexposure, occlusion, and depth discontinuities. 3D LiDAR can provide ranging information with absolute scale, but its projection onto the image plane results in a sparse distribution, making it difficult to form a continuous target surface depth. Therefore, binocular vision and LiDAR are typically fused to balance depth density and measurement accuracy.
[0003] Existing fusion methods often employ depth replacement, weighted fusion, sparse depth interpolation, or neural network recovery. For example, patent application CN110942477A discloses a scheme for replacing, filling, and interpolating the depth of the binoculars using laser depth; patent CN115861401B discloses a scheme for projecting sparse point clouds onto an image plane, expanding the sparse depth based on differences in the image neighborhood, and outputting a dense depth map using a neural network; and patent application CN111028285A discloses a scheme for filtering binocular parallax using confidence levels and fusing binocular and laser features using a neural network.
[0004] However, the existing technologies still have the following shortcomings: First, there is a lack of independent evaluation of the measurement quality and uncertainty of both binocular depth and laser depth, making it difficult to determine the source of dual-source depth conflict and easily leading to low-quality data interfering with high-quality data; Second, when sparse laser depth is extended, there is a lack of target instance boundary constraints, and correction information may propagate across the target boundary to the background or adjacent workpieces, resulting in blurred depth boundaries and mixing of front and back surfaces; Third, directly propagating the original laser depth can easily destroy the local relative structure already obtained by binoculars, and the fusion result usually only outputs the fusion depth, lacking pixel-level fusion quality and data source status, making it difficult to provide a reliable basis for subsequent workpiece positioning and local geometry estimation. Summary of the Invention
[0005] This invention overcomes the shortcomings of the prior art and provides a method and system for deep fusion of three-dimensional LiDAR based on binocular vision.
[0006] To achieve the above objectives, the technical solution adopted by the present invention is as follows:
[0007] This invention discloses a three-dimensional LiDAR depth fusion method based on binocular vision, comprising the following steps:
[0008] S1. Acquire the left and right eye images captured by the binocular camera, as well as the laser point cloud captured by the 3D lidar, and perform time pairing on the left eye image, right eye image, and laser point cloud.
[0009] S2. Perform target instance segmentation on the left eye image to obtain the target instance mask, target category and instance segmentation confidence, and calculate the instance boundary quality based on the distance from the internal pixels of the target instance to the instance boundary.
[0010] S3. Perform epipolar correction and stereo matching on the time-paired left and right eye images, calculate the binocular depth, and calculate the binocular source quality based on left-right consistency, local texture, exposure status, instance semantics, and instance boundary quality. At the same time, calculate the binocular depth uncertainty based on the disparity uncertainty.
[0011] S4. Transform the time-paired laser point cloud to the left eye camera coordinate system and project it onto the left eye image plane. After forward validity check, image range check and nearest visible point screening, generate laser sparse depth. Calculate the laser source mass based on neighborhood point density, local surface stability, measurement state, instance semantics and instance boundary quality, and calculate the laser depth uncertainty.
[0012] S5. For pixels within the target instance that simultaneously possess effective binocular depth and effective laser depth, calculate the standardized depth residual using the binocular depth, laser depth, binocular depth uncertainty, and laser depth uncertainty. Combine the binocular source quality and laser source quality to determine the consistency and conflict source of the two sources, and generate a reliable fusion anchor point and anchor point correction amount at the real laser projection position.
[0013] S6. The anchor point correction amount of the trusted fusion anchor point is propagated within the connected area of the same target instance. The propagation path cost is determined according to the instance boundary quality, image appearance difference and binocular depth difference. The original binocular depth of the pixel to be corrected is corrected to obtain the final fusion depth.
[0014] S7. Output the final fused depth map, pixel-level fused quality map, and depth source status.
[0015] This invention also discloses a three-dimensional lidar depth fusion system based on binocular vision, comprising:
[0016] The system comprises a fixed support, a binocular camera, a 3D LiDAR, and a perception computing unit. The binocular camera and the 3D LiDAR are fixedly mounted on the fixed support, which is rigidly connected to a fixed foundation on which the worktable or robotic arm base is located. The binocular camera includes a left-eye imaging unit and a right-eye imaging unit for acquiring left-eye and right-eye images of a common observation area. The 3D LiDAR is used to acquire 3D point clouds within the common observation area. The perception computing unit is communicatively connected to both the binocular camera and the 3D LiDAR, and is configured to execute any of the binocular vision-based 3D LiDAR depth fusion methods described above.
[0017] This invention addresses the technical deficiencies in the prior art and offers the following advantages: By establishing independent source quality and depth uncertainty evaluations for both binocular depth and laser depth, and utilizing standardized depth residuals for dual-source consistency judgment and asymmetric conflict gating, this invention effectively identifies low-quality data under complex near-field operating conditions such as low texture, reflection, overexposure, occlusion, and sparse laser points, preventing it from interfering with the fusion results. Simultaneously, by confining laser correction information to the true projection position to form a reliable fusion anchor point, and by constraining the correction amount to propagate within the connected region of the same target instance, it reduces depth mixing and boundary blurring caused by cross-boundary propagation. The final fusion result, while preserving the dense structure of the binocular system, introduces absolute laser scale correction and simultaneously outputs pixel-level fusion quality and data source status, providing reliable, distinguishable, and clearly defined depth information for subsequent workpiece positioning and local geometric measurements. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other embodiments can be obtained from these drawings without creative effort.
[0019] Figure 1 A schematic diagram of the near-field fusion sensing system for a fixed robotic arm;
[0020] Figure 2 The overall flowchart of the binocular vision-3D LiDAR deep fusion method is shown below;
[0021] Figure 3 Flowchart for laser point cloud projection and laser source quality evaluation;
[0022] Figure 4 Flowchart for generating dual-source deep conflict judgment and trusted fusion anchor points;
[0023] Figure 5This is a flowchart of the in-instance correction propagation and final fusion output. Detailed Implementation
[0024] The specific embodiments of the present invention will now be described in detail with reference to the accompanying drawings. It should be understood that the specific embodiments described herein are for illustration and explanation only and are not intended to limit the present invention. Unless otherwise specified in the following embodiments, conditions are performed under conventional conditions or conditions recommended by the manufacturer; equipment whose manufacturers are not specified is all commercially available products.
[0025] I. System Composition and Installation Method
[0026] like Figure 1 As shown, the binocular vision-3D LiDAR near-field fusion system of the present invention is set in a fixed robotic arm operation scenario. The fusion system includes a fixed support 1, a binocular camera 2, a 3D LiDAR 3, and a perception computing unit 4; the operation scenario includes a robotic arm 5, an end effector 6, a target workpiece 7, a worktable 8, and a common observation area 9.
[0027] The fixed bracket 1 is rigidly connected to the fixed foundation where the worktable 8 or the base of the robotic arm 5 is located. The binocular camera 2 and the 3D LiDAR 3 are fixedly installed on the fixed bracket 1 and are located above or diagonally above the working area of the robotic arm. The two types of sensors maintain a constant relative position during system operation, and their common observation range covers the target workpiece 7, the local worktable around the target workpiece, and the local working area that the end effector 6 intends to enter, without needing to cover the entire body structure of the robotic arm 5.
[0028] The binocular camera 2 includes a left-eye imaging unit and a right-eye imaging unit, used to acquire left-eye and right-eye images of the common observation area 9. The binocular images are used to extract target instance regions, target boundaries, and local image features, and to calculate the binocular depth of the target surface based on the parallax relationship between the left and right eye images. The 3D LiDAR 3 is used to acquire 3D point clouds within the common observation area 9. Each effective LiDAR point includes at least 3D coordinates and acquisition time; if the device supports it, it may also include reflection intensity or echo intensity. The perception computing unit 4 is communicatively connected to both the binocular camera 2 and the 3D LiDAR 3, and is used to receive the left-eye image, right-eye image, 3D point cloud, and corresponding time information. The perception computing unit 4 pre-stores or can recall camera intrinsic parameters, binocular camera extrinsic parameters, spatial transformation parameters from the 3D LiDAR to the left-eye camera, time pairing parameters, and quality evaluation and depth fusion parameters. The perception computing unit 4 performs temporal pairing of the binocular images and the 3D point cloud, and sequentially completes target instance segmentation, binocular depth calculation, laser point cloud coordinate transformation and image projection, binocular depth quality evaluation, laser depth quality evaluation, dual-source depth consistency judgment, depth conflict source determination, reliable fusion anchor point generation, and correction amount propagation in the instance connected region. It outputs a local dense fusion depth map, a pixel-level fusion quality map, a reliable fusion anchor point distribution, and invalid depth markers. If necessary, the local dense fusion depth map can also be back-projected into a local fusion point cloud.
[0029] II. Overall Process of Multi-Source Data Quality Awareness Fusion
[0030] like Figure 2 As shown, the binocular vision-3D LiDAR quality perception fusion method of the present invention includes multi-source data pairing, target instance extraction, binocular depth calculation, LiDAR point cloud projection, dual-source quality evaluation, depth conflict determination, reliable fusion anchor point generation, intra-instance correction propagation, and fusion result output. The method of the present invention will be described in detail below step by step.
[0031] III. Step S1: Multi-source data acquisition, time matching, and parameter reading
[0032] A binocular camera acquires left and right eye image sequences, while a 3D lidar acquires a laser point cloud sequence within the target observation area. The nth frame of the left eye image is represented as:
[0033]
[0034] The right-eye image of the m-th frame is represented as:
[0035]
[0036] The k-th frame of the 3D laser point cloud is represented as follows:
[0037]
[0038] in:
[0039]
[0040] In the formula, , and These represent the timestamps of the left eye image (frame n), the right eye image (frame m), and the laser point cloud (frame k), respectively. This represents the number of laser points in the laser point cloud of the k-th frame; This represents the coordinates of the j-th laser point in the k-th frame of the laser point cloud in the three-dimensional lidar coordinate system; , and These are the three coordinate components of the laser point in the lidar coordinate system; the superscript T indicates vector transpose.
[0041] When hardware synchronization triggering conditions are met, the perception computing unit forms the same set of fused data based on the common trigger number or synchronization frame number. When using software timestamp pairing, the image frame with the smallest time difference is selected from the right-eye image sequence based on the timestamp of the nth frame of the left-eye image. Its index is represented as:
[0042]
[0043] The point cloud frame with the smallest time difference is selected from the 3D laser point cloud sequence, and its index is represented as:
[0044]
[0045] The selected right-eye image and 3D laser point cloud should also meet the following requirements:
[0046]
[0047] In the formula, This indicates the maximum permissible time difference between the left and right eye images. This represents the maximum allowable time difference between the left-eye image and the 3D laser point cloud; argmin represents the index of the independent variable that minimizes the expression, i.e., selecting the image frame from the right-eye image sequence with the smallest absolute value of the timestamp difference between it and the nth frame of the left-eye image. The aforementioned time difference thresholds are preset based on the sensor sampling frequency, target motion speed, and fusion accuracy requirements. When any time difference exceeds the corresponding threshold, that set of data is discarded and not proceeds to subsequent dual-source depth fusion processing.
[0048] The perception computing unit simultaneously reads the following fusion parameters from the parameter storage unit: intrinsic parameters and distortion parameters of the left and right cameras; relative rotation and translation parameters between the left and right cameras; extrinsic parameters from the 3D LiDAR to the left camera; temporal pairing parameters of the left and right images and the LiDAR point cloud; calculation parameters for binocular depth quality, LiDAR depth quality, and instance boundary quality; parameters for dual-source consistency judgment, asymmetric conflict gating, trusted fusion anchor generation, and intra-instance correction propagation; parameter version number and parameter validity status.
[0049] IV. Step S2: Target Instance Segmentation and Boundary Quality Calculation
[0050] The perceptual computing unit performs target instance segmentation on the left-eye image, obtaining the instance mask, target category, and instance segmentation confidence score corresponding to the i-th target instance:
[0051]
[0052] in, For the first Binary mask for each target instance. For the target category, Calculate the confidence score for instance segmentation, and .
[0053] The target instance mask is used to distinguish the target workpiece, background, worktable, and adjacent workpieces. For an image pixel position x=(u,v), where u represents the column coordinate of the pixel in the image and v represents the row coordinate of the pixel in the image, the mask can be represented as:
[0054]
[0055] To characterize the credibility of instance attribution at a pixel location, the instance semantic quality corresponding to the i-th target instance is defined as:
[0056]
[0057] When a pixel is located inside the i-th target instance, its instance semantic quality is determined by the segmentation confidence of that instance; when a pixel does not belong to the target instance, its instance semantic quality is zero.
[0058] Further calculate the shortest distance from the pixels inside the instance to the instance boundary. The boundary distance of the i-th target instance at pixel position x is expressed as:
[0059]
[0060] In the formula, Indicates the first The set of boundary pixels of each target instance; This indicates the pixel position within the boundary pixel set; This represents the Euclidean distance. The instance boundary quality is calculated based on the stated boundary distance.
[0061]
[0062] In the formula, To control the scale parameter of the influence range of instance boundaries, and ; exp(·) is the natural exponential function.
[0063] The closer a pixel is to the instance boundary, the smaller the boundary distance, and the lower the instance boundary quality; conversely, the deeper a pixel is inside the instance, the higher the instance boundary quality. This quality is used to reduce the weight of pixels near the instance boundary during subsequent dual-source depth fusion and correction propagation.
[0064] The target instance segmentation can be achieved through deep learning-based instance segmentation models, such as Mask R-CNN, YOLACT, SOLO, etc.; it can also be obtained through object detection combined with contour extraction, semantic segmentation combined with connected component analysis, or other methods that can determine the target region and boundaries. This invention does not specifically limit the methods used.
[0065] V. Step S3: Binocular Depth Calculation and Binocular Source Quality Evaluation
[0066] The perception computing unit performs distortion correction and epipolar correction on the time-paired left and right eye images based on the dual-target positioning parameters, so that the corresponding positions of the same spatial point in the left and right images are located on the same or approximately the same epipolar line.
[0067] Binocular stereo matching is performed on the corrected left and right images to obtain left-eye disparity maps and right-eye disparity maps, respectively. The stereo matching can be obtained using traditional stereo matching methods or deep learning-based stereo matching methods. For the effective pixel position x=(u,v) of the left-eye disparity, its stereo depth is given by the following formula:
[0068]
[0069] In the formula, This represents the stereo depth at pixel position x; B represents the equivalent focal length of the left eye camera in the horizontal direction; B represents the baseline length between the optical centers of the left and right cameras. This represents the left visual parallax at pixel position x; A pre-defined small positive number to prevent the denominator from being zero; a typical value can be 10. -3 Pixels, or 10 based on the parallax estimation accuracy. -2 Pixels up to 10 -6 Other values within the pixel range.
[0070] To indicate whether binocular depth can participate in subsequent fusion, a binocular depth validity flag is defined. The binocular depth validity flag is set to 1 when the left-eye parallax is valid and the binocular depth is within a preset depth range; otherwise, it is set to 0. The preset depth range is determined based on the nearest and farthest observation distances of the working area, for example, set to 0.2 meters to 3 meters. The specific value should be preset according to the actual range of the fixed robotic arm's near-field operations.
[0071] For pixels that are effective for binocular depth, map the left-eye pixel position to the right-eye image. Let... This indicates the corresponding position of the left-eye pixel in the right-eye image:
[0072]
[0073] Obtain the disparity at the corresponding position from the right-eye disparity map and calculate the left-right consistency residual. The specific formula for calculating the left-right consistency residual is as follows:
[0074]
[0075] In the formula, For left-right consistent residuals; The left visual parallax at pixel position x; This represents the disparity at the corresponding position in the right eye disparity map.
[0076] When the position corresponding to the right eye is not an integer pixel, bilinear interpolation or other interpolation methods can be used to obtain the corresponding right eye disparity. The left-right consistency residual reflects the degree of consistency between the left and right eye disparity estimates and is an important indicator for judging the reliability of stereo matching.
[0077] Calculate the left-right matching consistency quality based on the left-right consistency residuals:
[0078]
[0079] In the formula, To ensure consistent quality between left and right sides; For left-right consistent residuals; Let be the scaling parameter of the left-right consistency residual, and The smaller the left-right consistency residual, the closer the left-right matching consistency quality is to 1; the larger the left-right consistency residual, the lower the quality.
[0080] The grayscale variance or gradient intensity is calculated within a preset image neighborhood at pixel position x, and the local texture quality is obtained accordingly. One method for calculating local texture quality is as follows:
[0081]
[0082] In the formula, For local texture quality; Var(·) indicates the calculation of grayscale variance over a specified image neighborhood; Represents the set of grayscale values of the left eye image within a preset image neighborhood of pixel position x; is the scale parameter for texture quality, and The more pronounced the local grayscale changes, the higher the texture quality is generally; low-texture areas correspond to lower texture quality.
[0083] The grayscale values of the left eye image are normalized to the range of 0~1, denoted as . One way to calculate exposure quality is as follows:
[0084]
[0085] In the formula, For exposure quality; This represents the normalized grayscale value of the left eye image. When the pixel grayscale is close to complete black or overexposed, the exposure quality is close to zero; when the pixel grayscale is in the intermediate range, the exposure quality is relatively high. Alternatively, it can be calculated using a piecewise function, local saturation ratio, or a pre-calibrated exposure quality function based on the camera's exposure characteristics.
[0086] For a pixel location belonging to the i-th target instance, the binocular source quality is jointly determined by left-right matching consistency quality, local texture quality, exposure quality, instance semantic quality, and instance boundary quality:
[0087]
[0088] In the formula, For binocular source internal quality; Mark the validity of binocular depth; To ensure consistent quality between left and right sides; For local texture quality; For exposure quality; The instance semantic quality of the i-th target instance; For instance boundary quality; , , , , These are the weighting coefficients corresponding to each quality item.
[0089] Each quality weight satisfies:
[0090]
[0091] and:
[0092]
[0093] Therefore, the range of the mass value within the binocular source is 0 to 1.
[0094] The weights can be preset based on offline calibration data, or obtained through regression models, quality calibration models, or learnable networks, but should remain fixed under the same parameter version.
[0095] To facilitate subsequent calculations of dual-source standardized depth residuals, the binocular depth uncertainty is further estimated based on the disparity uncertainty. According to the relationship between binocular depth and disparity, the binocular depth uncertainty is given by the following formula:
[0096]
[0097] In the formula, This represents the depth uncertainty of the binoculars. Let x be the disparity uncertainty at pixel position x. This disparity uncertainty can be obtained from the stereo matching cost curve, left-right consistency residual, subpixel fitting results, or a pre-calibrated disparity error model. For example, when using the stereo matching cost curve for disparity estimation, the inverse of the curvature or the half-maximum width of the matching cost curve near the optimal disparity can be taken as an estimate of the disparity uncertainty.
[0098] Step S3 ultimately outputs a stereo depth map, a stereo depth validity marker, a stereo source internal quality map, and a stereo depth uncertainty map, which are used for subsequent laser depth comparison, dual-source consistency judgment, and reliable fusion anchor point generation.
[0099] VI. Step S4: 3D laser point cloud projection and laser source quality evaluation
[0100] like Figure 3 As shown, the perception computing unit reads the 3D laser point cloud, spatial transformation parameters from the 3D LiDAR to the left-eye camera, and intra-camera parameters obtained from step S1 (time-paired), transforms the 3D laser points from the 3D LiDAR coordinate system to the left-eye camera coordinate system, and projects them onto the left-eye image plane. Subsequently, it performs camera-foreground validity checks, image range checks, depth buffering, and nearest-visible-point filtering on the projected points to generate a sparse laser depth map. Based on this, it calculates the laser source intra-mass quality and laser depth uncertainty by combining the laser point's neighborhood density, local surface stability, measurement distance or echo state, and the instance semantic quality and instance boundary quality obtained in step S2. The following steps provide a detailed explanation.
[0101] S401: Input Data and Coordinate System Definition
[0102] Let the 3D laser point cloud corresponding to the current left eye image after time pairing be:
[0103]
[0104] In the formula, Indicates the laser point cloud frame number paired with the completion time of the current left eye image; This indicates the number of laser points contained in the laser point cloud of this frame; the j-th laser point is represented as:
[0105]
[0106] in, , and Let represent the three-dimensional coordinates of the j-th laser point in the lidar coordinate system.
[0107] Based on the joint calibration results of the binocular camera and the 3D LiDAR, the rotation matrix from the LiDAR coordinate system to the left eye camera coordinate system is obtained. Translation vector The subscript CL indicates a transformation from the lidar coordinate system L to the left eye camera coordinate system C.
[0108] S402: Laser point cloud coordinate transformation
[0109] For the j-th laser point in the laser point cloud, transform it to the left eye camera coordinate system according to the following formula:
[0110]
[0111] in:
[0112]
[0113] In the formula, , and They represent the first The three-dimensional coordinates of the laser point in the left eye camera coordinate system This indicates the axial depth of the point relative to the left eye camera.
[0114] Perform a forward validity check on the converted laser points. Only laser points with an axial depth greater than the preset minimum effective axial depth are allowed to participate in subsequent projection. When the system also sets a maximum effective axial depth, the axial depth should also be less than this maximum value. Through the above checks, laser points located behind the camera, too close, or exceeding the predetermined observation range are excluded.
[0115] S403: Laser point projection onto the left eye image plane
[0116] Let the intrinsic parameter matrix of the left eye camera after distortion correction be:
[0117]
[0118] In the formula, and These represent the equivalent focal lengths of the left-eye camera in the horizontal and vertical directions, respectively. and This represents the coordinates of the principal point in the left eye image.
[0119] For a laser point that satisfies the forward validity condition, its ideal projection position in the left eye image plane is:
[0120]
[0121]
[0122] In the formula, This represents the continuous pixel coordinates of the j-th laser point in the left eye image; , , The coordinates of the laser point are in the coordinate system of the left eye camera.
[0123] Let the width and height of the left eye image be W and H, respectively. Only retain the projected coordinates that satisfy... and The projection point.
[0124] The depth value of the j-th laser point used for binocular-laser depth comparison is its axial depth in the left eye camera coordinate system. This axial depth is different from the Euclidean distance from the laser point to the lidar measurement origin. The axial depth is used to generate the laser sparse depth in the image coordinate system and compared with the binocular depth; the Euclidean distance is used to evaluate the lidar's own measurement range status.
[0125] S404: Nearest Visible Point Filtering for Multiple Laser Points within the Same Pixel
[0126] Since the continuous projection coordinates of the laser points need to be mapped to discrete image pixels, multiple laser points on different spatial surfaces may be projected onto the same pixel. Therefore, this step uses a depth buffering method to retain the effective laser point closest to the left eye camera.
[0127] set up This represents a function that maps continuous projected coordinates to discrete image pixels. For a pixel position x in the image, the set of laser point numbers projected onto that pixel is defined as follows:
[0128]
[0129] In the formula, This represents the set of all laser point numbers projected onto the image pixel position x; and are the continuous projection coordinates of the j-th laser point in the left eye image; This represents a processing function that maps continuous projected coordinates to discrete image pixels.
[0130] When set When not empty, select the laser point with the smallest axial depth:
[0131]
[0132] In the formula, This represents the laser point number with the smallest axial depth among all laser points projected onto pixel x. This represents the axial depth of the j-th laser point in the coordinate system of the left eye camera.
[0133] The laser sparse depth corresponding to pixel x is:
[0134]
[0135] In the formula, This represents the laser sparse depth at pixel x; Indicates the number is The axial depth of the laser point in the coordinate system of the left eye camera.
[0136] It can also be expressed as:
[0137]
[0138] In the formula, Represents a set In the equation, the minimum axial depth of all laser points is taken.
[0139] By retaining the laser point with the smallest axial depth, the possibility of background points or occluded surface points covering the target surface in front can be reduced.
[0140] S405: Generation of Laser Depth Effectiveness Map
[0141] To distinguish between the actual laser measurement depth and the default null values in the sparse depth map, a laser depth validity map is defined:
[0142]
[0143] In the formula, Let x be the set of laser point numbers projected onto pixel x; This indicates an empty set, meaning that there are no valid laser projection points at this pixel location.
[0144] in, This indicates that there is a real laser projection point at pixel x that has been retained after coordinate transformation, image range checking, and nearest visible point filtering; This indicates that the pixel does not have a true laser depth measurement.
[0145] Therefore, subsequent processing modules cannot rely solely on... The numerical value is used to determine whether laser depth exists at the current position, but should also be checked simultaneously. .
[0146] S406: Laser Neighborhood Point Density Quality
[0147] For pixels The laser point retained at that location is used to establish a radius of [missing information] in the left eye camera coordinate system. The three-dimensional neighborhood:
[0148]
[0149] In the formula, This indicates that the radius of the current laser point in the left eye camera coordinate system is... The set of all laser points within the three-dimensional neighborhood; This represents the coordinates of any laser point within the neighborhood in the left-eye camera coordinate system; To preserve the coordinates of the laser point in the left eye camera coordinate system; The radius is a predefined neighborhood radius; ||·|2 represents the Euclidean distance.
[0150] The number of laser points contained in this three-dimensional neighborhood is:
[0151]
[0152] In the formula, Represents a set The number of laser points in the middle.
[0153] Calculate the laser neighborhood point density mass based on the number of neighborhood points:
[0154]
[0155] In the formula, The density mass of neighboring points; This represents the number of laser points within the three-dimensional neighborhood of the current laser point. The scale parameter representing point density mass.
[0156] When a laser point has many neighboring points, it indicates that the point has sufficient local point cloud support. Approaching 1; when the current laser point is relatively isolated, The corresponding reduction.
[0157] S407: Laser-induced local surface stability quality
[0158] To determine whether a stable and uniform local surface has formed near the current laser point, the neighborhood is used. Fitting the local plane with the laser point in the image:
[0159]
[0160] In the formula, Represents the unit normal vector of the locally fitted plane; The constant term represents the local fitted plane; It represents the coordinates of any point on the plane; the superscript T indicates the transpose of the vector.
[0161] For any laser point in the neighborhood Its residual relative to the local fitting plane is:
[0162]
[0163] In the formula, The residual of the h-th laser point in the neighborhood relative to the local fitting plane; Let h be the coordinates of the h-th laser point in the neighborhood in the coordinate system of the left eye camera. The unit normal vector of the locally fitted plane; This is a constant term for the locally fitted plane.
[0164] Calculate the root mean square residual of the local plane fitting based on the planar residuals of all laser points in the neighborhood:
[0165]
[0166] In the formula, The root mean square residual of the local plane fitting; It is the square of the residual of the h-th laser point in the neighborhood relative to the local fitting plane.
[0167] Further calculation of local surface stability mass:
[0168]
[0169] In the formula, For local surface stability quality; The root mean square residual of the local plane fitting; The quality scale parameter representing the local planar residual.
[0170] When neighboring points can form a stable and consistent local surface Smaller The local planar residual is relatively high; when front and rear surface points, background points, or other target points are mixed in the neighborhood, the local planar residual increases. The corresponding reduction.
[0171] When the number of neighborhood points is less than the preset minimum number of plane fitting points When the current neighborhood is deemed insufficient to support reliable local surface fitting, it is then determined that the current neighborhood is insufficient to support reliable local surface fitting. Set to a predefined low quality value, zero value, or invalid state.
[0172] The local plane fitting in this step is only used to evaluate the stability of the point cloud near the laser point.
[0173] S408: Laser Measurement Condition Quality
[0174] Let the Euclidean distance from the currently retained laser point to the origin of the lidar measurement be... Calculate the distance mass based on the measured distance:
[0175]
[0176] In the formula, For distance mass; The distance is the Euclidean distance from the current laser point to the origin of the lidar measurement. Indicates the pre-set reliable measurement distance center; This is a scale parameter representing the reliable measurement distance range. Distance quality is high when the current laser point's measurement distance is close to the center of the reliable measurement distance; distance quality decreases accordingly when the measurement distance deviates from the predetermined reliable range.
[0177] When a 3D lidar can output reflection intensity, echo width, echo number, single-point confidence level, or other information reflecting the measurement status, this information can be normalized to echo quality, which ranges from 0 to 1. The overall quality of the laser measurement status is calculated based on the distance quality and echo quality.
[0178]
[0179] In the formula, () is the measurement of conditional quality; For distance mass; For echo quality, where ; and The weighting coefficients for distance quality and echo quality are respectively, satisfying... ,and .
[0180] When the 3D LiDAR cannot output usable echo quality information, you can set... At this point, the measured state quality is determined solely by the distance quality, i.e. .
[0181] S409: Overall quality within the laser source
[0182] For the i-th target instance, the overall quality within the laser source is obtained by integrating the laser neighborhood point density quality, local surface stability quality, laser measurement state quality, instance semantic quality, and instance boundary quality.
[0183]
[0184] In the formula, The overall quality within the laser source; Mark the effectiveness of laser depth; Let i be the binary mask for the i-th target instance; The density mass of neighboring points; For local surface stability quality; To measure conditional quality; For instance semantic quality; For instance boundary quality; , , , , These are the weighting coefficients corresponding to each quality item.
[0185] All weights are satisfied:
[0186]
[0187] and:
[0188]
[0189] Therefore, the range of the overall mass within the laser source is 0 to 1.
[0190] Among them, the neighborhood point density quality is used to reflect whether the current laser point has sufficient neighborhood point cloud support; the local surface stability quality is used to reflect whether a stable and consistent local surface has been formed near the current laser point; the measurement state quality is used to reflect whether the measurement distance and echo state of the current laser point are reliable; the instance semantic quality is used to reflect whether the current laser projection point belongs to the i-th target instance; and the instance boundary quality is used to reflect whether the current laser projection point is far away from the instance boundary that is prone to overlap.
[0191] The current location has effective laser source mass for the i-th target instance only when the laser depth validity marker is 1 (a real and valid laser projection point exists at the current location) and the instance mask is 1 (the current location belongs to the i-th target instance). When there is no real laser projection point at the current location, or when the current location does not belong to the i-th target instance, the overall laser source mass is zero.
[0192] S410: Laser depth uncertainty
[0193] To characterize the potential error range of the laser depth, the laser depth uncertainty is calculated based on the ranging uncertainty of the lidar device itself, the local plane fitting residual of the current laser point, and the axial uncertainty caused by joint calibration:
[0194]
[0195] In the formula, For lidar in measuring distance The distance measurement uncertainty of the equipment at the location, The root mean square residual of the local plane fitting in the neighborhood of the current laser point. This is the influence coefficient of local planar residuals on the laser depth uncertainty. The equivalent uncertainty of the joint calibration and projection error along the left eye camera axis. and These represent the lower and upper limits of the laser depth uncertainty, respectively; clip(·) is the clipping function, i.e., when the calculated result is less than... Time to take greater than Time to take When the value is within the range, it remains unchanged.
[0196] When the 3D LiDAR equipment manual, offline calibration experiment, or repeated measurement experiment can provide the equipment's ranging variance at different measurement distances, the ranging uncertainty can be directly determined based on the corresponding data. When the equipment cannot directly provide distance-related ranging uncertainty, it can be estimated using the following formula:
[0197]
[0198] In the formula, This represents the fundamental ranging uncertainty of the lidar. This represents the influence coefficient of the measured distance on the uncertainty of the equipment's distance measurement.
[0199] It is important to emphasize that the overall quality within the laser source and the laser depth uncertainty have different meanings. The former represents the overall reliability of the current laser depth in terms of point cloud support, local surface, measurement state, semantic attribution, and boundary location, and is a quality index normalized to between 0 and 1; the latter represents the possible error range of the current laser axial depth, and is an error measure with the same dimensions as the depth value. The two cannot be substituted for each other.
[0200] S411: Output of this step
[0201] After the above processing, the output of this step is:
[0202] (1) Laser sparse depth map: formed by filtering the real laser projection points through the nearest visible point; (2) Laser depth validity mark: used to mark whether each pixel has a real laser measurement; (3) Laser source integrated quality: the source integrated quality of the laser projection point for the i-th target instance; (4) Laser depth uncertainty: the depth uncertainty of the laser projection point on the axis of the left eye camera.
[0203] The laser sparse depth, laser depth validity, laser source integrated quality, and laser depth uncertainty output in this step will serve as inputs for subsequent dual-source depth consistency evaluation, conflict source determination, reliable fusion anchor point construction, and in-instance correction quantity propagation.
[0204] VII. Step 5: Dual-source depth judgment and trusted fusion anchor point generation
[0205] This step is used to determine whether the binocular depth and laser depth at the same location are consistent, and to select reliable fusion anchor points from the real laser projection points that can be used to correct the binocular depth. The processing flow is as follows: Figure 4 As shown. The following steps will be explained in detail.
[0206] S501: Input Data
[0207] For the pixel position x=(u,v) within the i-th target instance, this step reads: binocular depth, binocular depth validity marker, binocular source quality, binocular depth uncertainty, laser depth, laser depth validity marker, laser source quality, laser depth uncertainty, and the instance mask of the i-th target instance. Specifically, the binocular depth validity marker is 1 for valid and 0 for invalid; the laser depth validity marker is 1 for a valid laser projection; and the instance mask is 1 for a pixel located inside the target instance.
[0208] Dual-source depth determination is only performed when the pixel is located inside the target instance and both the binocular depth and the real laser depth are valid.
[0209] S502: Standardized Depth Residual Calculation
[0210] This invention combines binocular depth uncertainty and laser depth uncertainty to calculate the standardized depth residual:
[0211]
[0212] In the formula, This represents the normalized depth residual of the i-th target instance at pixel position x; For binocular depth, For laser depth, For binocular depth uncertainty, For laser depth uncertainty; To prevent pre-defined positive numbers with a denominator of zero, a typical example value can be taken as 10. -6 (i.e., 0.000001), or 10 can be selected based on the dimensions of the depth value and the calculation accuracy. -3 Up to 10 -9 Other positive numbers within the range.
[0213] The smaller the standardized depth residual, the more consistent the two types of depth are within their respective measurement error allowable ranges; the larger the standardized depth residual, the more obvious the conflict between the two types of depth.
[0214] S503: Dual-Source Consistency and Conflict Source Judgment
[0215] set up To standardize the depth residual threshold, This represents the minimum advantage difference between the two types of source quality. Both thresholds can be determined through offline calibration experiments or repeated measurements experiments. For example, the standardized depth residual threshold can be between 1.5 and 3, indicating that the two depths are considered equal when the difference does not exceed 1.5 to 3 times the overall uncertainty; the minimum advantage difference can be between 0.1 and 0.3, indicating that a clear quality advantage exists only when the quality of one data source is 0.1 to 0.3 higher than that of the other.
[0216] Based on the standardized depth residual and the two types of source quality, the current location is classified into the following states:
[0217] (1) When the standardized depth residual is not greater than the threshold, the binocular depth is determined to be consistent with the laser depth; (2) When the standardized depth residual is greater than the threshold, and the quality of the laser source is at least higher than the quality of the binocular source by the minimum advantage difference, the laser depth quality is determined to be superior; (3) When the standardized depth residual is greater than the threshold, and the quality of the binocular source is at least higher than the quality of the laser source by the minimum advantage difference, the binocular depth quality is determined to be superior; (4) When the two types of depth conflict, but the difference in quality between the two types of sources is insufficient to determine which data source is more reliable, the source of the conflict is determined to be unclear.
[0218] The above judgment process constitutes the asymmetric conflict gating of this invention: when a conflict occurs between two sources, instead of simply averaging or directly replacing them symmetrically, the lower-quality data source is downweighted or eliminated based on the quality differences within each source. When the source of the conflict is unclear, the generation of the fusion anchor point is paused.
[0219] S504: Determination of Anchor Point Depth and Correction Amount
[0220] When both sources are at the same depth, the fusion weight is determined based on the source mass and depth uncertainty of the two depths. The binocular fusion weight equals the binocular source mass divided by the square of the binocular depth uncertainty; the laser fusion weight equals the laser source mass divided by the square of the laser depth uncertainty. That is:
[0221]
[0222]
[0223] In the formula, Weights for binocular fusion; For laser fusion weights; For binocular source internal quality; The mass within the laser source.
[0224] At this point, the anchor point depth is expressed as:
[0225]
[0226] In the formula, Indicates the anchor point depth; For binocular depth; The laser depth.
[0227] The above weighting method means that data sources with higher quality and lower depth uncertainty have a greater weight in the fusion result, reflecting the fusion principle that "the higher the quality, the more reliable; the lower the uncertainty, the more reliable".
[0228] When two types of depth conflict and the laser depth quality clearly dominates, the laser depth can be directly determined as the anchor point depth, or the laser fusion weight can be set to a value much larger than the binocular fusion weight (e.g., the binocular fusion weight can be set to zero or close to zero), thus obtaining a weighted result that is clearly biased towards the laser depth. When the binocular depth quality is clearly dominant or the source of the conflict is unclear, the binocular depth is not corrected using this laser point, nor is a reliable fusion anchor point generated at this location.
[0229] Anchor point correction amount is:
[0230]
[0231] In the formula, This indicates the correction amount for the anchor point depth relative to the original binocular depth; The anchor point depth; This represents the original binocular depth. A positive correction value indicates that the original binocular depth needs to be increased, while a negative correction value indicates that the original binocular depth needs to be decreased.
[0232] S505: Trusted Fusion Anchor Point Filtering and Output
[0233] Only locations that simultaneously meet the following conditions are identified as trusted fusion anchor points:
[0234] (1) Located inside the i-th target instance; (2) Binocular depth is valid; (3) Has a real and valid laser projection, and the laser depth is not a pseudo laser depth obtained by neighborhood interpolation; (4) The two sources have consistent depths, or the laser depth quality is clearly dominant when the two sources conflict; (5) The instance boundary quality and anchor point quality meet the preset minimum requirements; (6) The absolute value of the anchor point correction amount does not exceed the preset maximum allowable correction range.
[0235] This step outputs: a trusted fusion anchor validity flag (1 indicates the location is a trusted fusion anchor, 0 indicates it is not), anchor depth, anchor correction amount, and anchor quality. The anchor quality value ranges from 0 to 1.
[0236] The anchor point quality is determined jointly based on the binocular source quality, the laser source quality, the standardized depth residual, and the conflict judgment result. Specifically, it can be based on the smaller of the binocular source quality and the laser source quality. When the standardized depth residual exceeds a preset threshold, the anchor point quality is attenuated; the greater the excess, the more significant the attenuation. The more consistent the depth of the two sources and the higher the quality of both sources, the higher the anchor point quality. For locations where the laser quality is dominant but there is conflict between the two sources, the anchor point quality should be appropriately reduced. The specific calculation method for the anchor point quality can be determined according to the actual scenario calibration, and this invention does not impose a unique limitation on it.
[0237] Through the above processing, this step generates a reliable fusion anchor point only at the real laser projection location that has been checked for dual-source validity, measurement quality, depth uncertainty, instance attribution, and conflict source.
[0238] Step S6: Intra-instance correction propagation and final fusion depth generation
[0239] Since the actual laser projection points are relatively sparse, this step propagates the correction amount carried by the trusted fusion anchor point to other locations within the same target instance, thereby improving the binocular depth within the target area. The processing flow is as follows: Figure 5 As shown.
[0240] S601: Constrained Propagation Within an Instance
[0241] The effective pixels within the mask of the i-th target instance are used to form a pixel adjacency graph, with adjacent pixels connected using either four-neighbor or eight-neighbor connections. The propagation path can only pass through pixels within the connected regions of the same target instance; it is not allowed to cross instance boundaries to enter the background or adjacent targets.
[0242] The path cost between adjacent pixels is determined jointly based on instance boundary quality, image appearance differences, and binocular depth differences. Image appearance differences refer to the differences in grayscale values, color values, or local image features between adjacent pixels in the left-eye image. The closer the path is to the instance boundary, the greater the appearance difference between adjacent pixels, or the more significant the binocular depth change, the higher the path cost. The specific calculation method for the path cost can be set according to actual needs, such as weighted summation of the above differences or using a monotonically increasing function mapping.
[0243] For a pixel to be corrected, anchor points with lower path costs and satisfactory quality are selected from among the reliable fusion anchor points that can reach the pixel within the same instance connected region. The propagation weight of the candidate anchor point for the pixel to be corrected increases with the anchor point quality and decreases with the increase of the intra-instance geodesic distance and path cost. Specifically, the propagation weight can be proportional to the anchor point quality and decay with the increase of the geodesic distance and path cost. The decay method can be exponential decay, linear decay, or other monotonically decreasing forms, which are not specifically limited in this invention. The intra-instance geodesic distance refers to the shortest path length of two pixels along the allowed path within the same target instance connected region, which can be calculated on the pixel adjacency graph using Dijkstra's algorithm, fast traversal algorithm, or other graph search algorithms.
[0244] The correction values of each candidate anchor point are weighted according to the propagation weights to obtain the propagation correction value for that pixel. Then, the propagation correction value is added to the original stereo depth of that pixel to obtain the corrected stereo depth. If there are no valid candidate anchor points or the propagation weights are insufficient, no correction is performed on that pixel, and the pixel retains its original stereo depth.
[0245] S602: Multi-anchor point divergence check
[0246] When multiple trusted fusion anchors simultaneously propagate correction values to the same pixel, the maximum difference, weighted variance, or other divergence indices between different candidate correction values are calculated. If the divergence index does not exceed a preset threshold, the multiple correction values are weighted according to the propagation weights; if the divergence index exceeds the preset threshold, the propagation of correction values to that pixel is stopped, or only the anchor group with the highest quality and consistent with the local binocular depth variation is retained. This avoids the mixing of anchors belonging to different local surfaces or affected by misprojection. The divergence threshold can be adaptively set according to the surface undulation of the target workpiece or the local variance of binocular depth.
[0247] S603: Final Blending Depth and Point Cloud Generation
[0248] After step S6 is completed, for the i-th target instance, output the final fusion depth, the validity of the final fusion depth, the pixel-level fusion quality, and the depth source status.
[0249] For trusted fusion anchor points, the final fusion quality is determined by the anchor point quality; for propagation correction points, the final fusion quality is determined based on the candidate anchor point quality, propagation path cost, and the degree of divergence among multiple anchor points; for points that retain the original stereo depth, the corresponding stereo source quality is used; the fusion quality of invalid points is set to zero.
[0250] The depth source state is used to represent the data source of the fusion depth for each pixel. For example, states can be defined as: invalid depth, maintaining the original binocular depth without correction, determined by a reliable fusion anchor point consistent with both sources, determined by a reliable fusion anchor point with superior laser depth quality, and obtained from the propagation of corrections within the instance. The specific encoding method can be defined according to the needs of subsequent modules.
[0251] If necessary, the final fused depth map can also be back-projected into a local fused point cloud. During back-projection, the pixel coordinates and corresponding fused depth values are converted into three-dimensional coordinates in the left eye camera coordinate system using the intrinsic parameters of the left eye camera. The specific conversion method is common knowledge in this field and will not be elaborated here.
[0252] The final fusion depth validity flag indicates whether the fusion depth at each pixel location is valid. The flag is set to 1 when the pixel location is a reliable fusion anchor point, a propagation correction location with propagation weights meeting preset conditions, or when valid binocular depth is retained; otherwise, it is set to 0.
[0253] In this invention, the method further includes:
[0254] For the final fused depth map of the same target instance in consecutive frames, using the pixel positions inside the target instance as nodes, corresponding pixel positions in adjacent frames are connected to form temporal edges. The weights of the temporal edges are determined based on the difference in pixel-level fused quality maps, whether the depth source states are consistent, and the final fused depth difference, thus constructing a depth reliability temporal map. The depth reliability temporal map is filtered using instance boundary quality. Temporal edges are added step by step in order of instance boundary quality from high to low to form a temporal map filtering sequence. The filtering thresholds corresponding to the first appearance and final disappearance of each connected component inside the target instance in the temporal map filtering sequence are recorded to obtain the depth topology persistence interval of the target instance. The connected components in the depth topology persistence interval of each target instance whose persistence length is less than the persistence threshold adaptively determined by the mean of the pixel-level fused quality map inside the target instance are counted. The depth observations of the corresponding pixel positions in the time sequence graph of the connected components are marked as instantaneous depth pseudo-structure candidates. For pixel positions marked as instantaneous depth pseudo-structure candidates, if their depth source state changes abruptly in consecutive frames and the pixel-level fusion quality map is lower than the average pixel-level fusion quality map within the same target instance, then the pixel position is determined to be a short-term depth pseudo-structure generated by instantaneous misfusion; otherwise, the original final fusion depth of the pixel position is retained. For pixel positions determined to be short-term depth pseudo-structures, their final fusion depth is replaced with the propagation depth of the nearest reliable fusion anchor point within the connected region of the same target instance, which has the same depth source state and a higher pixel-level fusion quality than the pixel position. If there is no reliable fusion anchor point within the connected region of the target instance that meets the above conditions, then the process regresses to the single-source depth in the frame corresponding to the pixel position where the depth source state is dominant.
[0255] It should be noted that in near-field operations of a fixed robotic arm, although the single-frame fusion depth has utilized the complementary information from binoculars and lasers, in some frames, transient mismatches or local occlusions may still produce short-lived pseudo-depth structures. These pseudo-structures are spatially located inside the target instance but lack temporal consistency. If directly used for subsequent localization or geometric estimation, they will cause abrupt changes in depth values. Therefore, this embodiment, based on the above single-frame fusion results, further performs temporal consistency filtering on the fusion depth of the same target instance from the perspective of consecutive frames to suppress short-lived pseudo-depth structures caused by transient mismatches. Specifically, pixels within the same target instance are used as nodes, and corresponding pixels in adjacent frames are connected to form temporal edges; the weight of the temporal edges is determined by the pixel-level fusion quality difference between adjacent frames, whether the depth source state is consistent, and the final fusion depth difference. The temporal graph is filtered using instance boundary quality, and temporal edges are added gradually from high to low instance boundary quality. The thresholds corresponding to the first appearance and final disappearance of each connected component in the filtering sequence are recorded to obtain the depth topology persistence interval. The shorter the duration interval, the closer the local structure is to the boundary or the more unstable the temporal sequence. Connected components with excessively short durations are marked as candidates for instantaneous depth pseudostructures, compared to a duration threshold adaptively determined by the mean fusion quality within the target instance. For a candidate pixel, if its depth source state changes abruptly in consecutive frames and the pixel-level fusion quality is lower than the mean within the instance, it is determined to be a short-term depth pseudostructure; otherwise, the original depth is retained. After being determined to be a short-term depth pseudostructure, its final fusion depth is replaced by the propagation depth of the nearest reliable fusion anchor point within the connected region of the same instance, which has the same source state and higher fusion quality; if no anchor point meets the conditions, it regresses to the single-source depth where the source state is dominant in the corresponding frame of that pixel. This processing, without changing the original single-frame fusion framework, utilizes temporal source consistency and quality constraints to eliminate instantaneous erroneous fusion structures, improving the temporal stability and reliability of near-field depth sensing results in continuous observation.
[0256] In summary, this invention evaluates the measurement quality of binocular depth and laser depth within the current local region separately, and constructs a standardized depth residual using the uncertainties of the two types of depth. Therefore, when there is a difference in the depth between the two sources, the laser depth is no longer used to replace the binocular depth, nor is the fusion result judged solely based on the binocular confidence level. Instead, the lower-quality data source can be differentially weighted according to the quality status of each type of data. In cases of low texture, metallic reflection, local occlusion, sparse laser points, or mixed target boundaries, the unreasonable interference of low-quality data on reliable depth results can be reduced. Furthermore, this invention forms reliable fusion anchor points only at the actual laser projection location and restricts the anchor point correction amount to propagate within the connected region of the same target instance. The propagation process is constrained by the geodesic path and path boundary quality within the instance, while checking the correction divergence between multiple anchor points, which can reduce the possibility of correction information crossing the target boundary into the background or adjacent workpieces. The resulting fusion depth utilizes the absolute scale information of laser ranging while retaining the existing local continuous structure of binocular depth, and simultaneously outputs pixel-level quality and data source information, providing a depth input with distinguishable reliability for subsequent workpiece positioning, local geometric measurement, and robotic arm operation perception.
[0257] The above are merely specific embodiments of the present invention, but the scope of protection of the present invention is not limited thereto. Any changes or substitutions that can be easily conceived by those skilled in the art within the scope of the technology disclosed in the present invention should be included within the scope of protection of the present invention.
Claims
1. A depth fusion method for three-dimensional LiDAR based on binocular vision, characterized in that, Includes the following steps: S1. Acquire the left and right eye images captured by the binocular camera, as well as the laser point cloud captured by the 3D lidar, and perform time pairing on the left eye image, right eye image, and laser point cloud. S2. Perform target instance segmentation on the left eye image to obtain the target instance mask, target category and instance segmentation confidence, and calculate the instance boundary quality based on the distance from the internal pixels of the target instance to the instance boundary. S3. Perform epipolar correction and stereo matching on the time-paired left and right eye images, calculate the binocular depth, and calculate the binocular source quality based on left-right consistency, local texture, exposure status, instance semantics, and instance boundary quality. At the same time, calculate the binocular depth uncertainty based on the disparity uncertainty. S4. Transform the time-paired laser point cloud to the left eye camera coordinate system and project it onto the left eye image plane. After forward validity check, image range check and nearest visible point screening, generate laser sparse depth. Calculate the laser source mass based on neighborhood point density, local surface stability, measurement state, instance semantics and instance boundary quality, and calculate the laser depth uncertainty. S5. For pixels within the target instance that simultaneously possess effective binocular depth and effective laser depth, calculate the standardized depth residual using the binocular depth, laser depth, binocular depth uncertainty, and laser depth uncertainty. Combine the binocular source quality and laser source quality to determine the consistency and conflict source of the two sources, and generate a reliable fusion anchor point and anchor point correction amount at the real laser projection position. S6. The anchor point correction amount of the trusted fusion anchor point is propagated within the connected area of the same target instance. The propagation path cost is determined according to the instance boundary quality, image appearance difference and binocular depth difference. The original binocular depth of the pixel to be corrected is corrected to obtain the final fusion depth. S7. Output the final fused depth map, pixel-level fused quality map, and depth source status.
2. The 3D LiDAR depth fusion method based on binocular vision according to claim 1, characterized in that, The calculation of the internal mass of the binocular source in step S3 specifically includes: Pixel positions effective for left eye parallax Its binocular depth is expressed as: ; In the formula, pixel position The depth of the eyes at that location, The equivalent focal length of the left-eye camera in the horizontal direction. The baseline length between the optical centers of the left and right cameras. pixel position Left eye parallax, To prevent pre-defined positive numbers with a denominator of zero; The binocular source quality is calculated by weighting the left-right consistency residuals of left and right disparity, local texture quality of the left image, exposure quality, instance semantic quality, and instance boundary quality. : ; In the formula, For binocular depth validity marking, To ensure consistent quality in left-right matching, For local texture quality, For better exposure quality, For the instance semantic quality of the i-th target instance, For instance boundary quality, , , , , To satisfy the condition that the sum is 1 for non-negative weights; Binocular depth uncertainty Calculate using the following formula: ; In the formula, pixel position The parallax uncertainty at that location.
3. The 3D LiDAR depth fusion method based on binocular vision according to claim 1, characterized in that, The calculation of the laser source mass in step S4 specifically includes: For pixel position The laser points retained after being filtered by the nearest visible point are used to calculate the neighborhood point density mass based on the number of laser points in their three-dimensional neighborhood. The local surface stability mass is calculated based on the residual of the local plane fitted by the neighborhood points. The measurement state quality is calculated based on the laser point measurement distance and / or echo information. The overall quality within the laser source is calculated by weighting the instance semantic quality and instance boundary quality. : ; In the formula, Marking the effectiveness of laser depth. For the first A binary mask for each target instance. For neighborhood point density quality, For local surface stability quality, To measure condition quality, For instance semantic quality, For instance boundary quality, , , , , To satisfy the condition that the sum is 1 for non-negative weights; Laser depth uncertainty Calculate using the following formula: ; In the formula, For lidar in measuring distance The distance measurement uncertainty of the equipment at the location, The root mean square residual of the local plane fitting in the neighborhood of the current laser point. This is the influence coefficient of local planar residuals on the laser depth uncertainty. The equivalent uncertainty of the joint calibration and projection error along the left eye camera axis. and These are the lower and upper limits of the laser depth uncertainty, respectively, and clip(·) is the clipping function.
4. The 3D LiDAR depth fusion method based on binocular vision according to claim 1, characterized in that, The calculation of the standardized depth residual and the dual-source consistency judgment in step S5 specifically include: Standardized depth residual Calculate using the following formula: ; In the formula, For binocular depth, For laser depth, For binocular depth uncertainty, For the laser depth uncertainty, To prevent pre-defined positive numbers with a denominator of zero; Dual-source status is determined based on standardized depth residuals and the quality within the two types of sources: when At that time, the depth of the binoculars is determined to be consistent with the depth of the laser. when and At that time, the laser depth quality is determined to be superior; when and At that time, the depth quality of the binoculars was determined to be superior; Otherwise, the source of the conflict is unclear; in, To standardize the depth residual threshold, The minimum quality difference required to determine whether a particular data source is of superior quality.
5. The 3D LiDAR depth fusion method based on binocular vision according to claim 4, characterized in that, The generation of the trusted fusion anchor point and anchor point correction amount in step S5 specifically includes: The pixel position will be determined only if the following conditions are met simultaneously. Determined as a trusted fusion anchor point: Located in the Within each target instance; binocular depth is effective; it has a true and effective laser projection; when the depths of the two sources are consistent or conflicting, the laser depth quality clearly takes precedence; the instance boundary quality meets the preset minimum requirements, and the anchor point quality determined based on the binocular source quality, the laser source quality, the standardized depth residual, and the conflict judgment results meets the preset minimum requirements. The preset thresholds corresponding to the instance boundary quality and anchor point quality are determined through offline calibration according to the actual operation scenario; the absolute value of the anchor point correction amount does not exceed the preset maximum allowable correction range. When the depths of the two sources are the same, the anchor point depth Weighted fusion according to the following formula: ; ; ; In the formula, For binocular fusion weights, For laser fusion weights, For binocular source quality, For the internal mass of the laser source, For binocular depth uncertainty, For laser depth uncertainty; The anchor point correction is the difference between the anchor point depth and the original stereo depth. ; In the formula, This is the anchor point correction amount.
6. The 3D LiDAR depth fusion method based on binocular vision according to claim 5, characterized in that, Step S6, which involves propagating the anchor point correction amount of the trusted fusion anchor point within the connected region of the same target instance, specifically includes: The first The effective pixels inside the mask of each target instance form a pixel adjacency graph. Adjacent pixels are connected by four or eight neighborhoods. The propagation path can only pass through pixels within the connected region of the same target instance and is not allowed to cross the instance boundary. The path cost between adjacent pixels is determined by the instance boundary quality, image appearance difference, and binocular depth difference. The closer the path is to the instance boundary, the greater the appearance difference between adjacent pixels, or the more obvious the binocular depth change, the higher the path cost. For a pixel to be corrected, select the anchor point with lower path cost and satisfactory anchor point quality from the trusted fusion anchor points that can reach the pixel in the same instance connected region as the candidate anchor point. The propagation weight of candidate anchor points to the pixels to be corrected increases with the increase of anchor point quality, and decreases with the increase of in-instance geodesic distance and path cost; The correction values of each candidate anchor point are weighted according to the propagation weight to obtain the propagation correction value of the corresponding pixel. Then, the propagation correction value is added to the original stereo depth of the corresponding pixel to obtain the corrected stereo depth.
7. The 3D LiDAR depth fusion method based on binocular vision according to claim 6, characterized in that, Step S6 also includes a multi-anchor point divergence check: When multiple trusted fusion anchors propagate the correction amount to the same pixel at the same time, calculate the maximum difference, weighted variance or other divergence index between different candidate correction amounts. If the divergence index does not exceed a preset threshold, then multiple correction values are weighted according to the propagation weight; If the divergence index exceeds a preset threshold, then stop propagating the correction amount to that pixel, or only retain the anchor point group with the highest quality and consistent with the local binocular depth change.
8. The 3D LiDAR depth fusion method based on binocular vision according to claim 1, characterized in that, The final fusion result output in step S7 includes: Final fusion depth Ultimate fusion depth and effectiveness Pixel-level fusion quality and depth source status ; Specifically, for trusted fusion anchor points, the final fusion quality is determined by the anchor point quality; for propagation correction points, the final fusion quality is determined based on the candidate anchor point quality, propagation path cost, and the degree of divergence among multiple anchor points; for points that retain the original binocular depth, the corresponding binocular source quality is used; and the fusion quality of invalid points is set to zero. The method further includes: backprojecting the final fused depth map into a local fused point cloud as needed.
9. The 3D LiDAR depth fusion method based on binocular vision according to claim 1, characterized in that, The time pairing mentioned in step S1 specifically includes: Based on the timestamp of the left eye image of the nth frame, select the image frame with the smallest time difference from the right eye image sequence, and select the point cloud frame with the smallest time difference from the three-dimensional laser point cloud sequence; The selected right-eye image and 3D laser point cloud must also meet the following requirements: ; In the formula, The timestamp of the left eye image in the nth frame. The timestamp of the selected right eye image. For the timestamp of the selected laser point cloud, The maximum permissible time difference between the left and right eye images. This represents the maximum permissible time difference between the left-eye image and the 3D laser point cloud. When any time difference exceeds the corresponding threshold, the corresponding data group is discarded and will not proceed to subsequent fusion processing.
10. A 3D LiDAR depth fusion system based on binocular vision, characterized in that, include: Fixed support, binocular camera, 3D LiDAR, and perception computing unit; The binocular camera and the three-dimensional lidar are fixedly mounted on the fixed bracket, and the fixed bracket is rigidly connected to the fixed foundation where the worktable or the robotic arm base is located. The binocular camera includes a left-eye imaging unit and a right-eye imaging unit, used to acquire left-eye and right-eye images of a common observation area; The three-dimensional lidar is used to acquire three-dimensional point clouds within the common observation area; The perception computing unit is communicatively connected to the binocular camera and the three-dimensional lidar, respectively, and is configured to execute the three-dimensional lidar depth fusion method based on binocular vision as described in any one of claims 1 to 9.
Citation Information
Patent Citations
Method for fusing depth maps by using binocular camera and laser radar
CN110942477A
Depth estimation method based on binocular vision and laser radar fusion
CN111028285A
A method, apparatus, and medium for depth restoration by fusion of binocular and point cloud imaging.
CN115861401B
