LRTM composite material molding product defect line detection method based on binocular vision

By combining binocular vision and multi-dimensional feature point cloud analysis with normal distance and reflectivity difference index, the defect classification problem of LRTM composite material molded products under optical interference was solved, and high-precision defect detection was achieved.

CN123160480APending Publication Date: 2026-11-24SHANDONG SHUANGYI TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611323211.8
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-08-28
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

Existing two-dimensional industrial vision inspection methods have difficulty accurately distinguishing and classifying real physical defects and optical artifacts on the surface of LRTM composite molded products under optical interference, especially resin wrinkles and dry spots.

Method used

A binocular vision-based method is adopted to obtain the reflectivity difference index by alternating imaging of bright and dark light sources. A multi-dimensional feature point cloud is constructed by combining the moving least squares algorithm. The three-dimensional spatial coordinates of real physical defects are extracted by cross-classification using normal distance, anisotropy index and reflectivity difference index.

Benefits of technology

It enables accurate differentiation of resin wrinkles, dry spots and optical artifacts under optical interference, reduces the false alarm rate of appearance inspection, and improves the accuracy of defect feature extraction and classification under complex curved surface backgrounds.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123160480A_ABST
    Figure CN123160480A_ABST
Patent Text Reader

Abstract

This invention relates to the field of machine vision inspection technology and discloses a method for detecting defect lines in LRTM composite material molded products based on binocular vision. The method includes: acquiring bright and dark field images to extract the reflectance difference index; processing the dark field image to generate measured point cloud data; mapping the reflectance difference index to the measured point cloud to generate a multi-dimensional feature point cloud; downsampling and using a moving least squares algorithm to fit and construct a macroscopic reference surface; calculating the projection normal distance of the point cloud; extracting candidate defect point sets based on a noise threshold and calculating the anisotropy index; and finally, cross-classifying the normal distance, anisotropy index, and reflectance difference index according to a joint threshold judgment matrix to extract the three-dimensional spatial coordinates of the real physical defects. This invention integrates optical response and geometric topological features, eliminates interference from curved backgrounds and optical artifacts, and achieves accurate defect classification and extraction.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of machine vision inspection technology, specifically to a method for detecting defect lines in LRTM composite material molded products based on binocular vision. Background Technology

[0002] During the molding process, RTM composite materials are affected by process conditions, and defects such as resin wrinkles and material dry spots may occur on the surface and near the surface. Visual defect detection of molded products is a routine part of industrial production quality control to ensure the structural strength and product yield of composite materials.

[0003] Existing appearance inspections mostly use two-dimensional industrial vision solutions for image acquisition and feature recognition. LRTM composite material molded products have complex woven textures and high reflectivity. Two-dimensional imaging is affected by changes in lighting and local optical properties of the material. Uneven surface reflectivity or localized highlight areas may be misjudged as physical defects during image processing. At the same time, two-dimensional images lack spatial depth data and cannot assess the true geometric undulations of defects.

[0004] To obtain spatial topology, binocular vision-based 3D point cloud technology has been applied to defect detection. Existing 3D point cloud detection methods mostly rely on geometric spatial coordinates for analysis, lacking surface photometric response information. In actual working conditions, resin wrinkles on the surface of composite materials and internal dry spots exhibit similar undulation characteristics in macroscopic geometry. Single point cloud data cannot classify and extract these defects with similar morphologies but different mechanisms from a physical perspective, which will cause confusion of defect types. Summary of the Invention

[0005] To address the shortcomings of existing technologies, this invention provides a method for detecting defect lines in LRTM composite material molded products based on binocular vision. This method solves the problem that existing detection technologies, due to their single feature acquisition dimension, struggle to accurately distinguish and classify real physical defects and optical artifacts on composite material surfaces in the presence of optical interference on curved surfaces.

[0006] To achieve the above objectives, the present invention provides the following technical solution: a method for detecting defect lines in LRTM composite material molded products based on binocular vision, the method comprising the following steps: Acquire bright-field two-dimensional images and dark-field two-dimensional images. Use the dark-field two-dimensional image as a reference to perform spatial translation compensation registration on the bright-field two-dimensional image. Extract the reflectance difference index as a photometric scalar and establish a two-dimensional physical photometric feature field. Local contrast enhancement processing and binocular stereo matching calculation are performed on the dark field 2D image to generate a disparity map, and smoothing processing is performed on the disparity map to generate measured point cloud data; Each reflectance difference index is mapped to the corresponding spatial point in the measured point cloud data to generate a multidimensional feature point cloud. Spatial uniform downsampling is then performed on the multidimensional feature point cloud to obtain a benchmark dataset. A macroscopic reference datum surface is constructed by performing an approximation fitting on the benchmark dataset using the moving least squares algorithm. The multidimensional feature point cloud is projected onto the macroscopic reference surface to calculate the normal distance. Spatial points with normal distances greater than a preset noise threshold are extracted as candidate defect point sets. The preset noise threshold is three times the standard deviation of the substrate Gaussian white noise measured by the binocular camera array during the static calibration stage. The principal curvature is extracted for the candidate defect point set and the anisotropy index is calculated. Based on the three-dimensional joint threshold judgment matrix, the normal distance, anisotropy index and reflectivity difference index are cross-classified to extract the three-dimensional spatial coordinates of the real physical defects.

[0007] The technical essence of this invention lies in solving the problem of defect type confusion by constructing a multi-dimensional data model that integrates optical response characteristics and three-dimensional geometric topology. Specifically, the reflectivity difference is extracted by alternating imaging of bright and dark fields to separate material surface texture anomalies and geometric undulations; the moving least squares method is used to fit the macroscopic reference surface to eliminate the low-frequency geometric interference of the composite material curved substrate itself.

[0008] In terms of judgment logic, the normal distance is used to represent the spatial depth abrupt change, the anisotropy index is used to represent the local topological bending morphology, and the reflectivity difference index is used to represent the optical response of the surface material. These three factors are combined as the physical feature basis for classification. Then, the three-dimensional joint threshold judgment matrix is ​​used to perform cross-classification to accurately distinguish resin wrinkles, dry spots and optical artifacts, and complete the accurate extraction of heterogeneous defects.

[0009] Furthermore, the steps for acquiring bright-field two-dimensional images and dark-field two-dimensional images include: controlling the bright-field light source and the dark-field light source to flash alternately, the bright-field light source providing coaxial illumination perpendicular to the surface of the composite material molded part, and the dark-field light source providing grazing diffuse illumination; synchronously opening the global shutter within the time window when the corresponding bright-field light source and dark-field light source are lit to perform image capture operation, and continuously outputting bright-field two-dimensional images and dark-field two-dimensional images of the same target physical area.

[0010] Further, the steps for establishing a two-dimensional physical photometric feature field include: using a phase-correlation-based image registration algorithm to convert the bright-field two-dimensional image and the dark-field two-dimensional image to the frequency domain space to calculate the cross-power spectrum; finding the coordinate positions of the relevant peaks in the cross-power spectrum domain to calculate the displacement vector of the bright-field two-dimensional image relative to the dark-field two-dimensional image; performing a spatial translation transformation on the bright-field two-dimensional image to generate a registered bright-field two-dimensional image; extracting the corresponding gray-level response values ​​for corresponding points with the same pixel coordinates in the registered bright-field two-dimensional image and the dark-field two-dimensional image; subtracting the gray-level response values ​​of the registered bright-field two-dimensional image and the dark-field two-dimensional image to obtain the difference; adding the gray-level response values ​​of the registered bright-field two-dimensional image and the dark-field two-dimensional image and the positive bias constant to obtain the accumulated value; and using the difference obtained by subtraction to divide the accumulated value obtained by addition to calculate the output reflectance difference index.

[0011] Furthermore, the steps for generating measured point cloud data include: using a contrast-limited adaptive histogram equalization algorithm to divide the dark field two-dimensional image into multiple non-overlapping local rectangular grids and calculate the histogram distribution for each grid; limiting local overexposed pixels and uniformly distributing the pixels in the truncated region to the remaining gray levels of the histogram; and outputting the contrast-enhanced dark field two-dimensional image through interpolation. A semi-global block matching algorithm is used to perform epipolar search and cost aggregation calculations on contrast-enhanced dark-field 2D images to generate an initial disparity map. A weighted least squares algorithm is introduced to construct a global energy functional containing data terms and smoothing terms. The pixel spatial gradient of the contrast-enhanced dark field 2D image is used as the adaptive penalty weight of the smoothing term to solve for the optimal disparity distribution matrix. The initial disparity map is smoothed to generate a smooth disparity map. Based on the camera intrinsic parameter matrix and the extrinsic parameter baseline length, the smooth disparity map is converted into measured point cloud data containing the structural features of the target physical region.

[0012] Furthermore, the steps for converting the smoothed disparity map into measured point cloud data include: multiplying the effective focal length parameter of the camera on the corresponding physical axis with the extrinsic baseline length to obtain the product; dividing the product by the disparity value calculated for the corresponding pixel in the smoothed disparity map to obtain the physical depth coordinates of a single spatial point in the measured point cloud data; and calculating the horizontal and vertical coordinates of the spatial point in the measured point cloud data in the three-dimensional physical coordinate system by subtracting the physical depth coordinates, the index coordinates of the pixel in the image coordinate system, and the coordinates of the camera's optical principal point, in conjunction with the corresponding effective focal length parameter.

[0013] Further steps for obtaining the benchmark dataset include: establishing a reverse projection mapping channel from the three-dimensional physical space to the two-dimensional pixel plane, and reverse projecting the three-dimensional coordinates of each spatial point in the measured point cloud data to the two-dimensional pixel coordinate system to obtain the corresponding index position; By using the index position, the corresponding reflectance difference index is extracted from the two-dimensional physical photometric feature field. The reflectance difference index is then used as a scalar attribute and concatenated into the point cloud data structure to form a multi-dimensional feature point cloud with coordinate and photometric information. The multidimensional feature point cloud is divided into multiple independent and identical three-dimensional solid grids within its three-dimensional physical bounding box, and all spatial points are assigned to the interior of the intersecting three-dimensional solid grids. For each 3D grid containing spatial point data, the arithmetic mean of the three-dimensional coordinates and reflectivity difference index of all spatial points in the grid is calculated independently to generate a feature centroid. The feature centroid is then used to replace the bottom discrete points in the original 3D grid to output a benchmark dataset.

[0014] Furthermore, the steps for constructing the macroscopic reference datum include: establishing an independent local tangent plane coordinate system at each evaluation point in the benchmark dataset and approximating the spatial point distribution in the neighborhood of the evaluation point using a local quadratic polynomial; introducing a Gaussian decay weight function within the solution framework of the moving least squares algorithm to assign adaptive weights to each spatial point in the neighborhood; constructing a local weighted error functional containing squared error and distance weights; and solving for the coefficients of each geometric polynomial by minimizing the local weighted error functional; and reconstructing a continuous three-dimensional spatial coordinate system mesh point by point based on the solved geometric polynomial coefficients and outputting the macroscopic reference datum.

[0015] Furthermore, the steps for calculating the anisotropy index include: taking a single spatial point in the candidate defect point set as the target center, extracting the coordinates of all continuous measured neighboring points within the specified physical radius of the target center in the multidimensional feature point cloud, and calculating the covariance matrix after mean-centered processing; continuously performing eigenvalue decomposition operations on the covariance matrix to extract eigenvalues ​​and associated eigenvectors to establish a local tangent plane coordinate system; deriving the maximum principal curvature describing the maximum local curvature and the minimum principal curvature describing the minimum vertical curvature by combining the principles of surface differential geometry; subtracting the absolute value of the maximum principal curvature from the absolute value of the minimum principal curvature to obtain the difference; adding the absolute values ​​of the maximum and minimum principal curvatures to the positive bias constant to obtain the cumulative value; and dividing the difference obtained by subtraction by the cumulative value obtained by addition to obtain the anisotropy index calculated for a single spatial point in the candidate defect point set.

[0016] Furthermore, the steps for cross-classification to extract real physical defects include: setting physical topology decoupling rules in the three-dimensional joint threshold decision matrix to execute physical determination of specific defect types, specifically establishing mutually independent decision equation sets for resin wrinkle defects, composite material dry spot defects, and optical artifact interference: Set a depth mutation threshold with a value range of 0.2 mm to 0.5 mm, a topological threshold with a value range of 0.6 to 0.8, and a photometric reflectance threshold with a value range of 0.1 to 0.3; When the input normal distance is greater than the depth mutation threshold, the input anisotropy index is greater than the topological morphology threshold, and the input reflectance difference index is greater than the photometric reflectance threshold, it is determined to be a resin wrinkle defect. When the input normal distance is greater than the depth mutation threshold, the input anisotropy index is not greater than the topological morphology threshold, and the input reflectance difference index is not greater than the negative of the photometric reflectance threshold, the classification result is determined to be a dry spot defect in the composite material. When the input normal distance is not greater than the depth abrupt change threshold and the absolute value of the input reflectance difference index is greater than the photometric reflectance threshold, the classification result is determined to be optical artifact interference. When the aforementioned conditions are not met, the classification result is determined to be a general geometric anomaly; Subsequently, the cross-operation of normal distance, anisotropy index, and reflectivity difference index is used to separate the categories of real physical defects, and the associated three-dimensional spatial physical coordinate data is extracted as the three-dimensional spatial coordinates of real physical defects. Discrete spatial data points that are judged as optical artifact interference and minor safety disturbances are eliminated simultaneously. The retained defect type labels and corresponding three-dimensional spatial physical coordinate data are packaged into standard communication data frames and pushed to external industrial control equipment.

[0017] This invention provides a method for detecting defect lines in LRTM composite molded products based on binocular vision. It has the following beneficial effects: 1. This invention extracts the reflectivity difference index by controlling the alternating imaging of bright field and dark field light sources, constructs a two-dimensional physical photometric feature field, and integrates the optical response information of the material surface into the defect detection process. It can separate the optical artifacts caused by surface reflection or texture differences from the real physical fluctuations, solve the problem of misjudgment caused by relying solely on three-dimensional geometric shape, and reduce the false alarm rate of appearance inspection.

[0018] 2. This invention utilizes the moving least squares algorithm to approximate and fit the downsampled point cloud to construct a macroscopic reference surface. By projecting the multidimensional feature point cloud onto the reference surface and calculating the normal distance and anisotropy index, the macroscopic geometric interference caused by the surface contour of the composite material part is eliminated. Based on this, combined with the analysis of the micromorphology by the local principal curvature, the local bending features of small defects can be accurately extracted, thereby improving the accuracy of defect feature extraction under complex surface backgrounds.

[0019] 3. This invention establishes a three-dimensional joint threshold judgment matrix, which combines the normal distance reflecting spatial depth abrupt change, the anisotropy index reflecting local topological morphology, and the reflectivity difference index reflecting material optical properties for cross-operation, and judges the geometric and optical multidimensional features of the comprehensive defect judgment logic. This enables the differentiation between resin wrinkles and composite material dry spots with similar surface undulations but different internal physical properties, and achieves accurate classification of defects with different physical causes. Attached Figure Description

[0020] Figure 1 This is a schematic diagram of the system timing interaction of the present invention; Figure 2 This is a schematic diagram of the method flow of the present invention; Figure 3 This is a flowchart of the image feature mapping and 3D point cloud reconstruction steps of the present invention; Figure 4 This is a three-dimensional schematic diagram of the photometric feature downsampling and macroscopic reference surface fitting of the present invention; Figure 5 This is a flowchart of the defect feature extraction and cross-classification output steps of the present invention; Figure 6 This is a three-dimensional scatter plot showing the multi-dimensional feature decoupling classification of the present invention. Figure 7 This is a bar chart comparing the detection performance of multiple algorithms in this invention. Detailed Implementation

[0021] The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0022] See attached document Figure 1 This invention provides a defect detection system based on multidimensional light source mapping and self-referenced local curvature decoupling. The system includes: an image acquisition module, a three-dimensional reconstruction module, a feature mapping module, a surface fitting module, a feature extraction module, and a classification and output module.

[0023] The image acquisition module is used to acquire a two-dimensional image sequence of the surface of the composite material molded part. The image acquisition module specifically includes a binocular camera array, a bright field light source, a dark field light source, and a strobe controller. The strobe controller receives an external trigger signal and controls the bright field light source and the dark field light source to flash alternately. The binocular camera array synchronously performs image capture within the corresponding light source illumination cycle and outputs a two-dimensional image sequence containing bright field two-dimensional images and dark field two-dimensional images.

[0024] The 3D reconstruction module is used to generate a 3D spatial point cloud of the target physical region. The 3D reconstruction module receives a dark field 2D image, performs image preprocessing, disparity calculation and filtering and smoothing operations in sequence, and outputs measured point cloud data containing the 3D spatial point cloud of the target physical region.

[0025] The feature mapping module is used to perform spatial registration on two-dimensional image sequences to extract photometric scalars from the two-dimensional image sequences, perform physical binding between the photometric scalars and measured point cloud data to generate multi-dimensional feature point clouds, and perform spatial downsampling calculations on the multi-dimensional feature point clouds to generate a benchmark dataset for surface fitting calculations.

[0026] The surface fitting module is used to construct a dynamic and continuous three-dimensional spatial surface based on the benchmark dataset, and to establish a macroscopic reference surface for subsequent high-frequency feature calculation.

[0027] The feature extraction module is used to calculate the normal distance between each spatial point in the multidimensional feature point cloud and the macroscopic reference surface, extract the discrete point set whose normal distance meets the preset conditions as the candidate defect point set, and calculate the local principal curvature based on the topological characteristics of the distribution of the candidate defect point set to generate the corresponding anisotropy index.

[0028] The classification and output module is used to construct a three-dimensional joint threshold judgment matrix based on the normal distance, anisotropy index and photometric scalar, perform physical classification of defect types, and output the final defect type and spatial coordinate data to external industrial control equipment.

[0029] See attached document Figure 2 This invention provides a defect detection method based on multidimensional light source mapping and self-referenced local curvature decoupling, the method comprising the following steps: S1, the image acquisition module acquires bright field two-dimensional images and dark field two-dimensional images within the same target physical region in an alternating gating mode. Using the dark field two-dimensional image as a reference, the feature mapping module performs spatial translation compensation registration on the bright field two-dimensional image to eliminate the difference in physical motion displacement. The feature mapping module extracts grayscale features in the pixel coordinate system, calculates the reflectance difference index of each pixel as a photometric scalar, and establishes a two-dimensional physical photometric feature field. S2, the 3D reconstruction module extracts the dark field 2D image as the calculation data source and performs local contrast enhancement processing on the dark field 2D image. Then, it performs binocular stereo matching calculation to generate a disparity map. The 3D reconstruction module uses the weighted least squares algorithm to perform smoothing processing on the disparity map and generates measured point cloud data containing the structural features of the target physical region based on the triangulation principle. S3, the feature mapping module maps each reflectance difference index in the two-dimensional physical photometric feature field to the corresponding spatial coordinate point in the measured point cloud data according to the pre-calibrated camera intrinsic parameter matrix, generating a multi-dimensional feature point cloud carrying photometric physical quantities. The feature mapping module uses a voxel filtering algorithm to perform spatial uniform downsampling on the multi-dimensional feature point cloud to obtain the benchmark dataset. S4, the surface fitting module uses the moving least squares algorithm to perform local quadratic polynomial approximation fitting on the benchmark dataset to construct a macroscopic reference surface with continuous smoothness. The macroscopic reference surface is used to characterize the inherent low-frequency macroscopic warping deformation morphology of composite material molded parts. S5, the feature extraction module projects the multi-dimensional feature point cloud along the normal direction onto the macroscopic reference surface, calculates the normal distance, extracts spatial points with a normal distance greater than the preset noise threshold as a candidate defect point set, constructs a local surface covariance matrix for the candidate defect point set, extracts the maximum principal curvature and minimum principal curvature of the local surface, and calculates the corresponding anisotropy index. S6, the classification and output module summarizes the normal distance, anisotropy index and reflectance difference index bound to the multi-dimensional feature point cloud. The classification and output module performs cross-classification on the candidate defect point set according to the preset three-dimensional joint threshold judgment matrix, and judges resin wrinkle defects, composite material dry spot defects and general geometric anomalies respectively, while simultaneously removing optical artifact interference and minor safety disturbances. The classification and output module extracts the three-dimensional spatial coordinates of the real physical defects and outputs the three-dimensional spatial coordinates to external industrial control equipment.

[0030] See attached document Figure 3 In specific implementations, step S1 provided by the present invention may include the following steps: S101, the image acquisition module performs an alternating gating high-frequency trigger acquisition operation. The strobe controller in the image acquisition module receives the pulse trigger signal sent by the external industrial control equipment and controls the bright field light source and the dark field light source to flash alternately according to a preset independent timing sequence. In this embodiment, the alternating trigger frequency of the independent timing sequence is limited to between 30 Hz and 60 Hz. The bright field light source provides coaxial illumination perpendicular to the surface of the composite material molded part, and the dark field light source provides low-angle grazing diffuse illumination. The strobe controller outputs a gating signal with a microsecond-level pulse width. In this embodiment, the value range of the microsecond-level pulse width is limited to between 100 microseconds and 500 microseconds. The binocular camera array synchronously opens the global shutter within the time window when the corresponding light source is lit to perform image capture operation to complete the flying shooting action in the continuous production line environment. The binocular camera array continuously outputs bright field two-dimensional images and dark field two-dimensional images within the same target physical area and constitutes a two-dimensional image sequence containing different lighting conditions.

[0031] S102, the feature mapping module performs translation compensation spatial registration calculation on the two-dimensional image sequence. The composite material molding part in the production line environment has a fixed running linear speed, which causes a physical spatial displacement deviation between the bright field two-dimensional images and the dark field two-dimensional images obtained by alternating capture. The feature mapping module extracts the dark field two-dimensional image acquired under the same camera viewpoint as the reference coordinate system benchmark, and uses a phase correlation-based image registration algorithm to convert the bright field two-dimensional image and the dark field two-dimensional image to the frequency domain to calculate the cross power spectrum. By finding the coordinate position of the relevant peak in the cross power spectrum domain, the displacement vector of the bright field two-dimensional image relative to the dark field two-dimensional image is calculated. After obtaining the sub-pixel level displacement compensation parameters, a spatial translation transformation is performed on the bright field two-dimensional image to generate a registered bright field two-dimensional image that eliminates motion misalignment. For the frequency domain derivation process of calculating the image displacement vector based on the phase correlation algorithm, it can be implemented with reference to existing conventional image processing methods.

[0032] S103, the feature mapping module extracts grayscale information in the pixel coordinate system and establishes a two-dimensional physical photometric feature field. For corresponding points with the same pixel coordinates in the registered bright-field and dark-field two-dimensional images, it extracts the corresponding grayscale response values ​​to calculate the reflectance difference index. Based on the surface physical properties of the composite material molded part, it is known that resin-rich areas exhibit specular reflection under coaxial light, while dry spot defect areas exhibit diffuse reflection due to exposed fibers. The numerical distribution characteristics of the reflectance difference index are used to quantitatively transform the optical reflection mechanism of local areas. In principle, the reflectance difference index eliminates the influence of the absolute intensity of the light source by normalizing the grayscale difference between the bright and dark fields and highlights the optical physical response characteristics of the material surface. The formula for calculating the reflectance difference index is: ; In the formula, The reflectance difference index is calculated for the pixel located at position (u1, v1) in the two-dimensional pixel coordinate system. To register the grayscale response value corresponding to the position (u1, v1) in the two-dimensional pixel coordinate system of the brightfield two-dimensional image; δ represents the grayscale response value corresponding to the position (u1, v1) in the two-dimensional pixel coordinate system of the dark field two-dimensional image; u is the column index of the current pixel in the two-dimensional pixel coordinate system; v1 is the row index of the current pixel in the two-dimensional pixel coordinate system; δ is a positive bias constant to prevent system overflow caused by the denominator being zero during the calculation process. The value range of the positive bias constant is set to a decimal between 0.001 and 0.01. By traversing each coordinate point in the pixel grid of the two-dimensional image and performing exponential calculation, the two-dimensional physical photometric feature field corresponding to the current target physical region is output. The two-dimensional physical photometric feature field filters out the interference of the absolute intensity of stray light from the external environment and quantifies the inherent optical reflection property data of the local material on the surface of the composite material molded part.

[0033] In specific implementations, step S2 provided by the present invention may include the following steps.

[0034] S201, the 3D reconstruction module extracts the dark field 2D image as the sole calculation data source for binocular stereo matching. The resin-rich area on the surface of the composite material molded part produces a specular reflection phenomenon under bright field coaxial light, causing local texture pixel saturation distortion. Introducing the bright field 2D image will cause the failure of the corresponding point search in the stereo matching process and cause physical holes in the 3D point cloud. The dark field grazing illumination structure highlights the micro-texture and undulation features of the surface of the composite material molded part through low-angle light diffusion. The 3D reconstruction module uses the limited contrast adaptive histogram equalization algorithm to perform local contrast enhancement processing on the dark field 2D image. The limited contrast adaptive histogram equalization algorithm divides the dark field 2D image into multiple non-overlapping local rectangular grids and calculates the histogram distribution for each. By setting a contrast truncation threshold, the local overexposed pixels are limited and the pixels in the truncated area are evenly distributed to the remaining gray levels of the histogram. In this embodiment, the value range of the contrast truncation threshold is limited to between 2.0 and 4.0. The 3D reconstruction module eliminates the block effect of the grid boundary through bilinear interpolation calculation and outputs the contrast-enhanced dark field 2D image.

[0035] In step S202, the 3D reconstruction module uses a semi-global block matching algorithm to perform epipolar search and cost aggregation calculations on the contrast-enhanced dark-field 2D image to generate an initial disparity map. The initial disparity map exhibits discrete matching noise and spatial coordinate jumps in weak-texture regions. The 3D reconstruction module introduces a weighted least squares algorithm to perform global smoothing filtering optimization on the initial disparity map. The weighted least squares algorithm constructs a global energy functional containing data and smoothing terms. The pixel spatial gradient of the contrast-enhanced dark-field 2D image is used as the adaptive penalty weight for the smoothing term. Higher penalty weights are assigned to textured, flat regions of the dark-field 2D image to force disparity smoothing, while lower penalty weights are assigned to physical boundary edge regions to maintain structural sharpness. In this embodiment, the value range of the higher penalty weight is limited to 100 to 150, and the value range of the lower penalty weight is limited to 10 to 30. The optimal disparity distribution matrix is ​​solved by minimizing the global energy functional. The processed output is a smooth disparity map with continuous structure and clear edges. For the specific derivation process of cost calculation and epipolar aggregation in the semi-global block matching algorithm, refer to existing conventional binocular vision methods.

[0036] S203, the 3D reconstruction module converts the smoothed disparity map into measured point cloud data containing the target physical region using the pre-calibrated intrinsic parameter matrix and extrinsic baseline length of the binocular camera array. The intrinsic parameter matrix and extrinsic baseline length are determined by pre-executed Zhang Zhengyou checkerboard calibration method combined with least squares optimization. The conversion process follows the standard stereo vision triangulation principle. The 3D coordinates of the spatial points are obtained by combining the disparity values ​​of the corresponding pixels with the focal length and baseline parameters. The triangulation principle establishes a spatial projection mapping between the 2D pixel plane and the 3D physical space based on the geometric similar triangle relationship. The disparity values ​​reflect the physical distance and depth from the spatial point to the camera's optical center. The specific spatial coordinate system mapping calculation formula is as follows: ; ; ; In the formula, Z represents the physical depth coordinates of a single spatial point in the measured point cloud data; f x f is the effective focal length parameter of the camera along the corresponding horizontal physical axis; y ... x c represents the horizontal optical principal point coordinates of the camera; y The vertical optical principal point coordinates of the camera are used to calculate the measured point cloud data based on the formula, which accurately reproduces the surface geometry of the composite material molded part. The measured point cloud data is directly input into the downstream module as the basic geometric and physical data for photometric feature 3D mapping and spatial surface fitting.

[0037] See attached document Figure 4 In specific implementations, step S3 provided by the present invention may include the following steps.

[0038] S301, the feature mapping module extracts the reflectance difference indices within the two-dimensional physical photometric feature field and performs cross-dimensional in-situ physical binding to the measured point cloud data. The measured point cloud data is generated from a dark-field two-dimensional image through stereo matching calculation, ensuring a strict projective mapping relationship between any three-dimensional spatial coordinates and the two-dimensional pixel coordinate system. The feature mapping module establishes a reverse projection mapping channel from the three-dimensional physical space to the two-dimensional pixel plane based on the intrinsic parameter matrix of the binocular camera array. In principle, the reverse projection mapping uses the geometric physical model of the pinhole camera to transform the physical points in the three-dimensional physical coordinate system to find their corresponding positions within the two-dimensional image pixel grid. The feature mapping module reverse projects the three-dimensional coordinates of each spatial point in the measured point cloud data to the two-dimensional pixel coordinate system to obtain the corresponding column and row index positions. The calculation formula for the reverse projection mapping is: ; ; In the formula, u3 is the column index position obtained after the measured point cloud data is projected onto the two-dimensional pixel coordinate system; v3 is the row index position obtained after the measured point cloud data is projected onto the two-dimensional pixel coordinate system; X is the horizontal coordinate of the spatial point in the measured point cloud data in the three-dimensional physical coordinate system; Y is the vertical coordinate of the spatial point in the measured point cloud data in the three-dimensional physical coordinate system; Z is the depth coordinate of the spatial point in the measured point cloud data in the three-dimensional physical coordinate system; f x f is the effective focal length parameter of the camera along the corresponding horizontal physical axis; y c is the effective focal length parameter of the camera along the corresponding vertical physical axis; x c represents the horizontal optical principal point coordinates of the camera; y The vertical optical principal point coordinates of the camera are used. Data addressing and matching are performed in the two-dimensional physical photometric feature field using column index and row index positions, and the completely corresponding reflectance difference index is extracted. The extracted reflectance difference index is used as an additional continuous scalar attribute and fused and stitched into the original point cloud data structure that only contains spatial three-dimensional coordinates to form a multi-dimensional feature point cloud with coordinate and photometric information.

[0039] S302, the feature mapping module calls the voxel filtering algorithm to perform spatial uniform downsampling calculation on the multidimensional feature point cloud. The voxel filtering algorithm divides the multidimensional feature point cloud into multiple independent three-dimensional meshes with the same physical side length within the three-dimensional physical bounding box. The physical side length of the three-dimensional mesh is set according to the lower limit of the minimum macroscopic radius of curvature allowed on the surface of the composite material molding part and is limited to a value range of 0.5 mm to 2.0 mm. The feature mapping module traverses all spatial points in the multidimensional feature point cloud and assigns all spatial points to the interior of intersecting three-dimensional meshes according to their three-dimensional coordinates, and calculates the number of spatial points contained within each mesh. The arithmetic mean of the three-dimensional coordinates and reflectivity difference index of all spatial points within each three-dimensional mesh is calculated independently. The arithmetic mean is extracted to generate feature centroids with new coordinates and characteristic attributes within the mesh. These feature centroids directly replace all the bottom discrete points in the original three-dimensional mesh. After voxel mesh reconstruction and feature centroid replacement, a benchmark dataset with uniform spatial distribution density and preservation of the original macroscopic surface geometry of the material is output. For the specific software development and implementation process of voxel mesh boundary division and point cloud octree data traversal, existing conventional methods for three-dimensional data compression can be referenced.

[0040] Step S4 provided by the present invention may include the following steps in a specific implementation.

[0041] S401, the surface fitting module extracts the benchmark dataset as the calculation basis and abandons the introduction of the standard computer-aided design theoretical model as the comparison benchmark. In principle, low-frequency macroscopic thermal warping deformation is inevitable in the curing process of composite material molded parts, and the use of ideal theoretical models for spatial comparison without actual measurement data will cause systematic bias in the difference calculation. The surface fitting module uses the moving least squares algorithm to perform dynamic self-referential surface modeling on the benchmark dataset. The moving least squares algorithm establishes an independent local tangent plane coordinate system at each evaluation point in the benchmark dataset and uses a local quadratic polynomial based on two-dimensional independent projected coordinates to approximate the spatial point distribution in the neighborhood of the evaluation point. The output value of the polynomial corresponds to the fitted physical height value under the local tangent plane coordinate system, and the polynomial contains the geometric constants and first and second order coefficients to be solved.

[0042] S402, the surface fitting module introduces a Gaussian decay weight function within the solution framework of the moving least squares algorithm to assign adaptive weights to each spatial point in the neighborhood. In the general principle explanation, the output value of the Gaussian decay weight function decreases non-linearly and monotonically according to the physical distance from the neighborhood point to the evaluation point, so that the sampling point with a shorter physical distance occupies a larger numerical weight in the local quadratic polynomial approximation calculation. The surface fitting module constructs a local weighted error functional containing squared error and distance weights, and solves the coefficients of each geometric polynomial to be solved by minimizing the local weighted error functional. The operation logic of the Gaussian decay weight function is to solve it with the natural constant as the base and the negative of the ratio of the square of the three-dimensional Euclidean physical distance from the neighborhood point to the center evaluation point to the square of the smoothing factor controlling the boundary of the influence range as the exponent. The smoothing factor determines the filtering smoothness of the local surface and is limited to a range of 2 to 5 times the average point cloud spacing of the benchmark dataset.

[0043] S403, the surface fitting module continuously performs local weighted error functional minimization by traversing all evaluation points in the benchmark dataset. The surface fitting module reconstructs a continuous three-dimensional spatial coordinate system mesh point by point based on the coefficients of each geometric polynomial obtained by the solution and outputs a macroscopic reference surface with continuous smoothness. The constructed macroscopic reference surface physically represents the inherent low-frequency macroscopic warping deformation of the composite material molded part and separates the high-frequency spatial fluctuation data containing local surface anomalies at the numerical level. For the specific numerical calculation process of matrix differentiation and linear equation decomposition in the moving least squares algorithm, existing conventional numerical analysis methods can be referred to.

[0044] See attached document Figure 5 In specific implementations, step S5 provided by the present invention may include the following steps.

[0045] S501, the feature extraction module extracts each spatial point in the multidimensional feature point cloud and projects it onto the macroscopic reference surface along the normal direction of the macroscopic reference surface to find the corresponding intersection point. It calculates the three-dimensional Euclidean physical distance between the spatial point and the corresponding intersection point as the normal distance. In general physical principles, the microscopic undulations of the surface of normal materials exhibit random low-amplitude fluctuations, and the real physical defect area has high-frequency geometric abrupt changes. The feature extraction module establishes a high-frequency spatial residual field containing the normal distances of all spatial points and performs binarization truncation judgment on the high-frequency spatial residual field according to the preset noise threshold. The feature extraction module extracts spatial points with normal distances greater than the preset noise threshold to form a candidate defect point set. The lower limit of the preset noise threshold is set to three times the standard deviation of the substrate Gaussian white noise measured by the binocular camera array in the static calibration stage to establish a safe boundary for the system measurement noise floor. The threshold truncation process separates the underlying system measurement noise at the data level and limits the search space range of subsequent local surface differential feature solutions at the physical level.

[0046] S502, the feature extraction module extracts the topological relationships of spatial point coordinates within the candidate defect point set and establishes a local covariance matrix. It then performs local principal curvature data calculation for each evaluation point. The underlying computational logic uses a single spatial point in the candidate defect point set as the target center, extracts the coordinates of all continuous measured neighboring points within a specified physical radius of the target center in the multi-dimensional feature point cloud, and calculates the mean-centered covariance matrix. The specified physical radius parameter is set based on the minimum physical span of common micro-defects in composite material molded parts and is limited to a continuous range of 1.5 mm to 3.0 mm to avoid excessive feature smoothing. The extraction module continuously performs eigenvalue decomposition on the covariance matrix to extract eigenvalues ​​and associated eigenvectors to establish a local tangent plane coordinate system. Based on this, it derives the maximum principal curvature describing the maximum local curvature and the minimum principal curvature describing the minimum vertical curvature by combining the principles of surface differential geometry. At the microscopic level, the resin accumulation or delamination defect areas exhibit discontinuous boundaries in geometry and produce high-amplitude step responses in the local principal curvature values. The specific matrix algebra derivation process for constructing the covariance matrix and solving the principal curvature by eigenvalue decomposition can be implemented by referring to existing conventional computational geometry methods.

[0047] S503, the feature extraction module extracts the maximum and minimum principal curvatures, performs anisotropic topological characterization calculations of spatial geometry, and generates anisotropic indices. In principle, the anisotropic index quantifies the symmetric distribution of three-dimensional deformation in defect regions along different orthogonal physical axes at the numerical level. Fiber fractures or resin wrinkles on the surface of composite molded parts exhibit a one-dimensional linear extension topological structure with numerical differences between the maximum and minimum principal curvatures. Material bubble bulges or localized dry spots exhibit a two-dimensional point-like symmetrical topological structure, and the curvature response distribution in orthogonal directions tends to be consistent. The formula for calculating the anisotropic index is: ; In the formula, AI is the anisotropy index obtained by solving a single spatial point in the candidate defect point set; k max The absolute value of the maximum principal curvature obtained by solving for the current spatial point; k min ε is the absolute value of the minimum principal curvature obtained from the solution at the current spatial point; ε is the positive bias constant to avoid system overflow caused by a denominator of zero, and the value of the positive bias constant is uniformly set to 10. -6 The anisotropy index is a small real number, and its output is limited to a continuous real number range from 0 to 1. The closer the value is to 1, the more the physical defect tends to be linear and extended. The closer the value is to zero, the more the physical defect tends to be point-like and symmetrical. The anisotropy index obtained by the solution, the reflectivity difference index bound in the multidimensional feature point cloud, and the normal distance are jointly input into the downstream three-dimensional joint threshold judgment matrix.

[0048] In specific implementations, step S6 provided by the present invention may include the following steps.

[0049] S601, the classification and output module receives the normal distance, anisotropy index, and reflectivity difference index of the candidate defect point set in the multi-dimensional feature point cloud and constructs a three-dimensional joint threshold judgment matrix. At the physical logic level, the normal distance quantifies the degree of abrupt change in spatial depth, the anisotropy index characterizes the symmetry of the distribution of local three-dimensional deformation on different physical axes, and the reflectivity difference index maps the ratio of specular reflection and diffuse reflection of local material. Single-dimensional physical features may cause false alarms under complex lighting or background noise conditions and cannot accurately distinguish defect types with similar geometric shapes but different essential materials. The classification and output module integrates the isolated features of each physical dimension into the cross-judgment logic architecture to implement three-dimensional decoupling operation of multi-source data.

[0050] S602, the classification and output module sets physical topology decoupling rules in the three-dimensional joint threshold judgment matrix to execute physical judgment of specific defect types. The lower limit of the depth mutation threshold parameter is determined based on the product of the average point cloud spacing and the vertical observation resolution of the benchmark dataset to match the peak physical resolution of the system. In this embodiment, the value range of the depth mutation threshold is limited to 0.2 mm to 0.5 mm. The classification and output module establishes mutually independent judgment equations for resin wrinkle defects, composite material dry spot defects, and optical artifact interference. The classification and output module also introduces a general geometric anomaly classification term as a fallback logic to avoid algorithm judgment dead zones caused by multi-dimensional boundary numerical combinations. The Boolean logic judgment equations for decoupling classification in the three-dimensional joint threshold judgment matrix are: ; In the formula, Class represents the output classification result; Wrinkle represents resin wrinkle defects; DrySpot represents composite material dry spot defects; Artifact represents optical artifact interference; Anomaly represents general geometric anomalies that do not match known feature models; D n is the input normal distance; AI is the input anisotropy index; RVI is the input reflectance difference index; T d The set depth mutation threshold; T a To distinguish between linear and point-like morphologies, the topological threshold value is limited to between 0.6 and 0.8; T r To define the boundary between specular and diffuse reflection, the photometric reflectance threshold is limited to a value between 0.1 and 0.3. The decision equations use cross-operations of spatial depth, topological index, and photometric index to separate the categories of real physical defects.

[0051] S603, the classification and output module extracts the associated three-dimensional spatial physical coordinate data for resin wrinkling defects, composite material dry spot defects, and general geometric anomalies that are determined to be real physical defects. The classification and output module simultaneously removes discrete spatial data points that are determined to be optical artifacts or minor safety disturbances in the classification results to block system erroneous action commands and over-grinding caused by stray light from the external environment. The classification and output module packages the retained defect type labels and corresponding three-dimensional spatial physical coordinate data into standard communication data frames. The classification and output module pushes the standard communication data frames to external industrial control equipment via the industrial Ethernet bus. The external industrial control equipment drives the robotic arm to perform physical grinding and resin backfilling repair operations based on the accurate spatial positioning coordinates obtained by parsing. The specific network communication process of data frame encapsulation and underlying physical layer transmission on the industrial Ethernet bus can be implemented by referring to the conventional methods of existing industrial communication protocols.

[0052] Application Examples: Reference Appendix Figure 6 With appendix Figure 7 The following uses an automated grinding production line for aerospace carbon fiber composite skin as an example to illustrate the specific application and implementation process of the system of the present invention.

[0053] After carbon fiber composite skin is cured in an autoclave, there are resin wrinkles, composite material dry spots, and optical artifacts caused by mold release agent oil stains on the surface. Resin wrinkles are linear bulges caused by local resin-rich areas, composite material dry spots are exposed fiber areas caused by resin deficiency, and optical artifacts will appear as abnormal light spots in conventional two-dimensional visual inspection.

[0054] During the data acquisition phase, an industrial six-axis robotic arm drives a binocular camera array and a light source assembly to move at a constant speed along the surface of the composite material skin. A strobe controller controls the high-frequency alternating triggering of bright-field and dark-field light sources. The resin wrinkled areas on the surface of the composite material skin have smooth characteristics and produce specular reflection under bright-field coaxial illumination. The dry spot areas of the composite material have rough characteristics with exposed fibers, producing diffuse reflection. Under dark-field diffuse illumination, the binocular camera array acquires the three-dimensional texture morphology of the surface. The image acquisition module and the three-dimensional reconstruction module process the image data in sequence and output the measured point cloud data of the target physical area of ​​the skin and a two-dimensional physical photometric feature field that quantifies the reflectivity difference index of each pixel.

[0055] In the feature decoupling and data processing stage, considering the inherent macroscopic curvature of the aerospace composite material skin, the surface fitting module uses the moving least squares algorithm to process the downsampled benchmark dataset and establish a continuous macroscopic reference surface. This processing separates the design surface morphology of the skin itself from the local geometrical abrupt changes on the surface. The feature extraction module calculates the normal distance from each spatial point in the measured point cloud data to the macroscopic reference surface along the normal direction, and extracts spatial points with a normal distance greater than a preset noise threshold as a candidate defect point set. Then, a local covariance matrix is ​​constructed and the local principal curvature is solved to generate an anisotropy index. Under this calculation logic, resin wrinkles with a linear distribution correspond to a higher anisotropy index, while composite material dry spots with a dotted or irregular distribution correspond to a lower anisotropy index.

[0056] During the defect classification and execution command output stage, the classification and output module receives the normal distance, anisotropy index, and reflectivity difference index. It performs physical classification through a three-dimensional joint threshold judgment matrix. When the normal distance of a region is greater than the depth abrupt change threshold, the anisotropy index is greater than the topological morphology threshold, and the reflectivity difference index is greater than the photometric reflectance threshold, the classification result is determined to be a resin wrinkle defect. When the normal distance of a region is greater than the depth abrupt change threshold, the anisotropy index is less than or equal to the topological morphology threshold, and the reflectivity difference index is less than or equal to the negative photometric reflectance threshold boundary, the classification result is determined to be a composite material dry spot defect. For regions where the normal distance is within the normal range and the absolute value of the reflectivity difference index is relatively large, the system determines it to be optical artifact interference caused by release agents, etc.

[0057] The classification and output module directly filters out data points corresponding to optical artifact interference, extracts the three-dimensional spatial physical coordinate data corresponding to resin wrinkle defects and composite material dry spot defects, and encapsulates them into standard communication data frames. The data frames are transmitted to external grinding control equipment via industrial Ethernet bus. Based on the spatial positioning coordinates obtained by parsing, the external grinding control equipment controls the end effector to perform grinding and removal operations on the resin wrinkle defect area and to execute resin backfill prompt instructions on the composite material dry spot defect area.

[0058] Although embodiments of the invention have been shown and described, it will be understood by those skilled in the art that various changes, modifications, substitutions and alterations can be made to these embodiments without departing from the principles and spirit of the invention, the scope of which is defined by the appended claims and their equivalents.

Claims

1. A method for detecting defect lines in LRTM composite molded products based on binocular vision, characterized in that, The method includes the following steps: Acquire a bright-field two-dimensional image and a dark-field two-dimensional image. Use the dark-field two-dimensional image as a reference to perform spatial translation compensation registration on the bright-field two-dimensional image. Extract the reflectance difference index as a photometric scalar and establish a two-dimensional physical photometric feature field. The dark field 2D image is subjected to local contrast enhancement processing and binocular stereo matching calculation to generate a disparity map, and the disparity map is subjected to smoothing processing to generate measured point cloud data; Each of the reflectivity difference indices is mapped to the corresponding spatial points in the measured point cloud data to generate a multidimensional feature point cloud, and spatial uniform downsampling is performed on the multidimensional feature point cloud to obtain a benchmark dataset. A macroscopic reference datum surface is constructed by performing an approximation fitting on the benchmark dataset using the moving least squares algorithm. The multidimensional feature point cloud is projected onto the macroscopic reference surface to calculate the normal distance. Spatial points with normal distances greater than a preset noise threshold are extracted as a candidate defect point set. The preset noise threshold is three times the standard deviation of the base Gaussian white noise measured by the binocular camera array during the static calibration stage. The principal curvature is extracted for the candidate defect point set and the anisotropy index is calculated. The normal distance, the anisotropy index, and the reflectivity difference index are cross-classified according to the three-dimensional joint threshold judgment matrix to extract the three-dimensional spatial coordinates of the real physical defects.

2. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The steps for obtaining the bright-field two-dimensional image and the dark-field two-dimensional image include: The bright field light source and the dark field light source are controlled to flash alternately. The bright field light source provides coaxial illumination perpendicular to the surface of the composite material molded part, and the dark field light source provides grazing diffuse illumination. Within the time window corresponding to the illumination of the bright field light source and the dark field light source, the global shutter is opened simultaneously to perform image capture operation, and the bright field two-dimensional image and the dark field two-dimensional image of the same target physical area are continuously output.

3. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The steps of performing spatial translation compensation registration on the bright field two-dimensional image based on the dark field two-dimensional image, and extracting the reflectance difference index to establish a two-dimensional physical photometric feature field include: A phase-correlation-based image registration algorithm is used to convert the bright-field two-dimensional image and the dark-field two-dimensional image to the frequency domain to calculate the cross-power spectrum. The coordinate positions of the relevant peaks are found in the cross-power spectrum domain to calculate the displacement vector of the bright-field two-dimensional image relative to the dark-field two-dimensional image. A spatial translation transformation is performed on the bright-field two-dimensional image to generate a registered bright-field two-dimensional image. For corresponding points with the same pixel coordinates in the registered bright-field two-dimensional image and the registered dark-field two-dimensional image, extract the corresponding gray-level response values. Subtract the gray-level response values ​​of the registered bright-field two-dimensional image and the registered dark-field two-dimensional image to obtain the difference. Add the gray-level response values ​​of the registered bright-field two-dimensional image and the registered dark-field two-dimensional image and the positive bias constant to obtain the accumulated value. Divide the difference obtained by subtraction by the accumulated value obtained by addition to calculate and output the reflectance difference index.

4. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The steps of performing local contrast enhancement processing and binocular stereo matching calculation on the dark field two-dimensional image to generate a disparity map, and smoothing the disparity map to generate measured point cloud data include: The contrast-limited adaptive histogram equalization algorithm is used to divide the dark field two-dimensional image into multiple non-overlapping local rectangular grids and calculate the histogram distribution for each grid. It limits the local overexposed pixels and evenly distributes the pixels in the truncated region to the remaining gray levels of the histogram. After interpolation calculation, the contrast-enhanced dark field two-dimensional image is output. An initial disparity map is generated by performing epipolar search and cost aggregation calculations on the contrast-enhanced dark-field two-dimensional image using a semi-global block matching algorithm. A weighted least squares algorithm is introduced to construct a global energy functional containing data terms and smoothing terms. The pixel spatial gradient of the contrast-enhanced dark field two-dimensional image is used as the adaptive penalty weight of the smoothing term to solve for the optimal disparity distribution matrix. The initial disparity map is smoothed to generate a smooth disparity map as the disparity map. The smoothed disparity map is converted into measured point cloud data containing the structural features of the target physical region based on the camera intrinsic parameter matrix and the extrinsic parameter baseline length.

5. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 4, characterized in that, The step of converting the smoothed disparity map into measured point cloud data containing the structural features of the target physical region based on the camera intrinsic parameter matrix and extrinsic parameter baseline length includes: The effective focal length parameter of the camera on the corresponding physical axis is multiplied by the extrinsic baseline length to obtain the product. The product is then divided by the disparity value calculated from the corresponding pixel in the smooth disparity map to obtain the physical depth coordinates of a single spatial point in the measured point cloud data. Based on the coordinate difference obtained by subtracting the index coordinates of the pixel in the image coordinate system from the coordinates of the camera's optical principal point, and combined with the corresponding effective focal length parameters, the horizontal and vertical coordinates of the spatial points in the measured point cloud data in the three-dimensional physical coordinate system are calculated.

6. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The step of mapping each of the reflectivity difference indices to corresponding spatial points in the measured point cloud data to generate a multidimensional feature point cloud, and performing spatial uniform downsampling on the multidimensional feature point cloud to obtain a benchmark dataset includes: Establish a reverse projection mapping channel from three-dimensional physical space to two-dimensional pixel plane, and reverse project the three-dimensional coordinates of each spatial point in the measured point cloud data to the two-dimensional pixel coordinate system to obtain the corresponding index position; Using the index position, the corresponding reflectance difference index is extracted from the two-dimensional physical photometric feature field. The reflectance difference index is then used as a scalar attribute and concatenated into the point cloud data structure to form the multidimensional feature point cloud with coordinate and photometric information. The three-dimensional physical space bounding box of the multi-dimensional feature point cloud is divided into multiple three-dimensional solid grids with independent and identical physical side lengths, and all spatial points are assigned to the interior of intersecting three-dimensional solid grids. For each three-dimensional grid containing spatial point data, the arithmetic mean of the three-dimensional coordinates of all spatial points in the grid and the reflectivity difference index is calculated independently to generate a feature centroid. The feature centroid is then used to replace the bottom discrete points in the original three-dimensional grid to output the benchmark dataset.

7. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The step of constructing a macroscopic reference surface by performing an approximation fitting on the benchmark dataset using the moving least squares algorithm includes: An independent local tangent plane coordinate system is established at each evaluation point in the benchmark dataset, and a local quadratic polynomial is used to approximate the spatial point distribution in the neighborhood of the evaluation point. Within the framework of the moving least squares algorithm, a Gaussian decay weight function is introduced to assign adaptive weights to each spatial point in the neighborhood. A local weighted error functional containing squared error and distance weights is constructed, and the coefficients of each geometric polynomial to be solved are obtained by minimizing the local weighted error functional. Based on the coefficients of each of the geometric polynomials obtained from the solution, a continuous three-dimensional spatial coordinate system mesh is reconstructed point by point, and the macroscopic reference datum surface is output.

8. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The steps of extracting the principal curvature and calculating the anisotropy index for the candidate defect point set include: Using a single spatial point in the candidate defect point set as the target center, the covariance matrix after mean-centered processing is calculated by extracting the coordinates of all continuous measured neighboring points within the specified physical radius of the target center in the multidimensional feature point cloud. The covariance matrix is ​​continuously subjected to eigenvalue decomposition to extract eigenvalues ​​and associated eigenvectors to establish a local tangent plane coordinate system; By combining the physical principles of surface differential geometry, the maximum principal curvature describing the maximum local curvature of the surface and the minimum principal curvature describing the minimum vertical curvature are derived. The difference is obtained by subtracting the absolute value of the maximum principal curvature from the absolute value of the minimum principal curvature. The absolute values ​​of the maximum and minimum principal curvatures are then added to the positive bias constant to obtain an accumulated value. The anisotropy index obtained by solving a single spatial point in the candidate defect point set is obtained by dividing the difference obtained by subtraction by the accumulated value obtained by addition.

9. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The step of cross-classifying the normal distance, the anisotropy index, and the reflectivity difference index according to the three-dimensional joint threshold judgment matrix to extract the three-dimensional spatial coordinates of the real physical defect includes: In the three-dimensional joint threshold determination matrix, physical topology decoupling rules are set to execute physical determination of specific defect types. Independent determination equations are established for resin wrinkle defects, composite material dry spot defects and optical artifact interference. The categories of real physical defects are separated by cross-operation of the normal distance, the anisotropy index, and the reflectivity difference index, and the associated three-dimensional spatial physical coordinate data is extracted as the three-dimensional spatial coordinates of the real physical defects. Discrete spatial data points that are classified as optical artifacts or minor safety disturbances are simultaneously removed. The retained defect type labels and corresponding three-dimensional spatial physical coordinate data are packaged into standard communication data frames and pushed to external industrial control equipment.

10. The method for detecting defect lines in LRTM composite material molded products based on binocular vision according to claim 1, characterized in that, The steps for establishing independent decision equations for resin wrinkle defects, composite material dry spot defects, and optical artifact interference include: Set a depth mutation threshold with a value range of 0.2 mm to 0.5 mm, a topological threshold with a value range of 0.6 to 0.8, and a photometric reflectance threshold with a value range of 0.1 to 0.3; When the input normal distance is greater than the depth abrupt change threshold, the input anisotropy index is greater than the topological morphology threshold, and the input reflectance difference index is greater than the photometric reflectance threshold, the classification result is determined to be the resin wrinkle defect. When the input normal distance is greater than the depth abrupt change threshold, and the input anisotropy index is not greater than the topological morphology threshold, and the input reflectance difference index is not greater than the negative of the photometric reflectance threshold, the classification result is determined to be the dry spot defect of the composite material. When the input normal distance is not greater than the depth abrupt change threshold and the absolute value of the input reflectance difference index is greater than the photometric reflectance threshold, the classification result is determined to be the optical artifact interference. When the aforementioned conditions are not met, the classification result is determined to be a general geometric anomaly.