Pedestrian glare protection and intelligent shadow area generation method and system

By collecting and processing image data in a night driving environment, the light beam of the lighting system is dynamically adjusted to solve the problems of low pedestrian detection accuracy and glare interference, achieve accurate generation of intelligent shadow areas, and improve the safety and comfort of night driving. .

CN118366130BActive Publication Date: 2024-10-01SHENZHEN BAIBOHE TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410791852.0
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-10-01
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

The existing technology has low pedestrian detection accuracy in night driving environments, is difficult to effectively avoid glare interference, and lacks the ability to generate intelligent shadow areas. It is especially difficult to accurately identify and process multiple scenes in complex road conditions.

Method used

By collecting the original left and right images, ORB feature extraction and global stereo matching are performed to obtain the target feature point set, and interior point neighborhood spatial consistency verification and pose relationship analysis are performed, stereo correction and multi-scale feature extraction are performed, and hybrid holes are used Convolution generates segmentation and detection feature maps, identifies vehicle areas and detects pedestrians, and dynamically adjusts the beam control of DLP pixel headlights to generate intelligent shadow areas.

Benefits of technology

It improves the accuracy of pedestrian glare protection and intelligent shadow area generation, enhances the safety and comfort of night driving, and ensures the efficiency and accuracy of target recognition in complex environments.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118366130B_ABST
    Figure CN118366130B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses a method and system for pedestrian glare protection and intelligent shadow area generation. The method includes: collecting the original left and right images and performing ORB feature extraction to obtain a target feature point set; performing an inner point neighborhood space consistency check and posture relationship analysis to obtain posture parameters; performing stereo correction according to the posture parameters to obtain the target left and right images and perform multi-scale feature extraction to obtain an initial feature map; performing mixed hole convolution processing to generate a segmentation feature map and a detection feature map; performing vehicle area recognition on the segmentation feature map to obtain a vehicle area recognition result, and performing pedestrian detection on the detection feature map to obtain a pedestrian detection result; performing beam control analysis on the DLP pixel headlight to obtain the beam projection direction and beam intensity and generate the corresponding intelligent shadow area. The present application improves the accuracy of pedestrian glare protection and intelligent shadow area generation.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to a method and system for pedestrian glare protection and intelligent shadow area generation. Background Art

[0002] With the rapid development of intelligent driving technology, nighttime driving safety has become an area of ​​great concern. Traditional automotive lighting systems are prone to cause glare interference to pedestrians and other vehicles when driving at night, seriously affecting driving safety and pedestrian safety. Most existing glare protection technologies rely on fixed beam patterns, which are difficult to adjust in real time according to actual road conditions, resulting in insufficient effectiveness and adaptability under complex road conditions. At the same time, existing technologies still have technical bottlenecks in the generation of intelligent shadow areas, making it difficult to accurately identify and process a variety of scenarios.

[0003] In the night driving environment, the detection of vehicles and pedestrians is greatly increased due to insufficient light. When dealing with complex nighttime environments, existing pedestrian detection technologies are easily disturbed by factors such as background light and reflected light, resulting in low detection accuracy. In addition, in the process of detecting vehicles and pedestrians, how to effectively avoid the impact of glare on pedestrians while providing clear road lighting has put forward higher requirements for intelligent lighting systems. The current system still has a lot of room for improvement in multi-target detection and real-time response. Summary of the invention

[0004] The present application provides a method and system for pedestrian glare protection and intelligent shadow area generation, which are used to improve the accuracy of pedestrian glare protection and intelligent shadow area generation.

[0005] In a first aspect, the present application provides a method for pedestrian glare protection and intelligent shadow area generation, the method for pedestrian glare protection and intelligent shadow area generation comprising:

[0006] Collecting the original left and right images and performing ORB feature extraction to obtain an initial feature point set, and performing global stereo matching and feature point screening on the initial feature point set to obtain a target feature point set;

[0007] Performing an interior point neighborhood space consistency check and a posture relationship analysis on the target feature point set to obtain posture parameters;

[0008] Performing stereo correction on the original left and right images according to the posture parameters to obtain target left and right images, and performing multi-scale feature extraction on the target left and right images to obtain an initial feature map;

[0009] Performing mixed hole convolution processing on the initial feature map to generate a segmentation feature map and a detection feature map;

[0010] Performing vehicle area recognition on the segmented feature map to obtain a vehicle area recognition result, and performing pedestrian detection on the detection feature map to obtain a pedestrian detection result;

[0011] The beam control analysis of the DLP pixel headlight is performed according to the vehicle area recognition result and the pedestrian detection result to obtain the beam projection direction and beam intensity and generate the corresponding intelligent shadow area.

[0012] In a second aspect, the present application provides a pedestrian glare protection and intelligent shadow area generation system, the pedestrian glare protection and intelligent shadow area generation system comprising:

[0013] An acquisition module is used to acquire the original left and right images and perform ORB feature extraction to obtain an initial feature point set, and perform global stereo matching and feature point screening on the initial feature point set to obtain a target feature point set;

[0014] An analysis module is used to perform an inner point neighborhood space consistency check and a posture relationship analysis on the target feature point set to obtain posture parameters;

[0015] A correction module, used for performing stereo correction on the original left and right images according to the posture parameters to obtain target left and right images, and performing multi-scale feature extraction on the target left and right images to obtain an initial feature map;

[0016] A processing module, used for performing mixed hole convolution processing on the initial feature map to generate a segmentation feature map and a detection feature map;

[0017] A recognition module, used to perform vehicle area recognition on the segmented feature map to obtain a vehicle area recognition result, and perform pedestrian detection on the detection feature map to obtain a pedestrian detection result;

[0018] A generation module is used to perform beam control analysis on the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result, obtain the beam projection direction and beam intensity and generate a corresponding intelligent shadow area.

[0019] In the technical solution provided by the present application, the initial feature point set is efficiently extracted from the original left and right images, and the target feature point set is obtained through global stereo matching and feature point screening. This process ensures the accuracy and robustness of the matching points, improves the accuracy of image feature matching, performs preliminary inlier screening and performs neighborhood feature consistency and local geometric consistency checks to ensure the rationality of the spatial distribution of the inliers. The preliminary estimation and optimization process of the basic matrix makes the calculation of the pose parameters more accurate. According to the accurate pose parameters, the original left and right images are corrected to obtain the target left and right images. The codec network is used to extract multi-scale features, perform convolution and pooling layer by layer, and obtain rich multi-scale feature maps. The initial feature map is subjected to multi-scale hole convolution processing, and the feature receptive field is expanded using hole convolution kernels of different scales to obtain the fused hole convolution feature map, which effectively retains the global and local information in the feature map, enhances the expressive power of the feature map, and improves the accuracy of vehicle area recognition and pedestrian detection. The hole convolution feature map is used to accurately identify the vehicle area and detect pedestrians, and obtain high-precision vehicle and pedestrian detection results, ensuring the efficiency and accuracy of target recognition in complex nighttime environments. According to the vehicle area recognition results and pedestrian detection results, the DLP pixel headlight is analyzed for beam control to generate control parameters for beam projection direction and beam intensity. The genetic algorithm is used to optimize the beam control parameters, dynamically adjust the beam direction and intensity, and generate the corresponding intelligent shadow area, achieving precise glare protection and dynamic shadow generation, effectively improving the safety and comfort of nighttime driving. BRIEF DESCRIPTION OF THE DRAWINGS

[0020] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0021] Figure 1 A schematic diagram of an embodiment of a method for pedestrian glare protection and intelligent shadow area generation in an embodiment of the present application;

[0022] Figure 2 It is a schematic diagram of an embodiment of the pedestrian glare protection and intelligent shadow area generation system in the embodiment of the present application. DETAILED DESCRIPTION

[0023] The embodiments of the present application provide a method and system for pedestrian glare protection and intelligent shadow area generation. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0024] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the pedestrian glare protection and intelligent shadow area generation method in the embodiment of the present application includes:

[0025] Step S101, collecting the original left and right images and performing ORB feature extraction to obtain an initial feature point set, and performing global stereo matching and feature point screening on the initial feature point set to obtain a target feature point set;

[0026] It is understandable that the execution subject of the present application may be a pedestrian glare protection and intelligent shadow area generation system, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.

[0027] Specifically, the original left and right images are collected, and the original left and right images are denoised to eliminate noise interference in the images to obtain denoised left and right images. Gaussian blur processing is performed on the denoised left and right images to reduce high-frequency noise in the images, so that the image features are more obvious, and a blurred image is obtained. ORB feature extraction is performed on the blurred image to obtain an initial feature point set. Key points are detected in the image by the ORB algorithm, and feature descriptors of these key points are calculated to generate a feature description subset. Feature matching is performed on the blurred image according to the feature description subset, and the matching degree is calculated using the Hamming distance to generate an initial matching point set. In the feature matching process, the Hamming distance is used to measure the similarity between binary feature descriptors, and the best matching pair is found by calculating the distance between feature points. In order to improve the reliability of the matching points, the confidence calculation is performed on the initial matching point set to obtain confidence distribution data, and low-confidence matching points are eliminated based on the confidence distribution data to obtain a high-confidence matching point set. The confidence calculation helps to evaluate the credibility of each matching point, ensuring that only those feature point pairs with high matching degree and small error are retained. The high confidence matching point set is subjected to mismatch detection and feature point alignment to obtain the target feature point set. Mismatch detection is to identify and remove those mismatched feature points to reduce interference with subsequent processing steps, while feature point alignment is to ensure the consistency of all matching points in spatial position, thereby improving the accuracy and stability of the overall matching.

[0028] Step S102, performing an interior point neighborhood space consistency check and a posture relationship analysis on the target feature point set to obtain posture parameters;

[0029] Specifically, the RANSAC algorithm is used to perform preliminary inlier screening on the target feature point set to obtain a preliminary inlier set. RANSAC (Random Sampling Consensus Algorithm) identifies inliers in the data, i.e., feature points that meet the expected model, by iteratively selecting subsets of the data and estimating model parameters. The KNN algorithm is used to perform neighborhood feature consistency detection on the preliminary inlier set to obtain a consistent inlier set. The KNN algorithm (k-nearest neighbor algorithm) ensures that the selected inliers have consistent feature attributes by calculating the similarity of each point in the feature space to other points in its neighborhood. Based on Delaunay triangulation, the consistent inlier set is tested for local geometric consistency to obtain a local consistent inlier set. Delaunay triangulation constructs a triangular mesh so that the points in each triangle maintain local geometric consistency, thereby effectively detecting and eliminating points that do not meet local geometric features. The spatial distribution detection is performed on the local consistent inlier set to obtain an optimized inlier set. The spatial distribution detection analyzes the distribution characteristics of the inlier set in three-dimensional space to ensure that these points are evenly and reasonably distributed in space, thereby improving the overall accuracy and stability of the matching points. The optimized inlier set is tested for mismatches by the relative transformation matrix to obtain the final inlier set. The relative transformation matrix can detect and eliminate mismatches to ensure the reliability and accuracy of the inlier set. The eight-point method is used to preliminarily estimate the basic matrix of the final inlier set to obtain the preliminary basic matrix. The eight-point method selects eight or more matching points to calculate the basic matrix to describe the geometric relationship between the image pairs. The preliminary basic matrix is ​​optimized to obtain the optimized basic matrix. The optimization process usually adjusts the basic matrix parameters by minimizing the error function to make it more accurately match the actual data. The optimized basic matrix is ​​re-screened for inliers to obtain the final basic matrix inlier set. The geometric consistency between the inlier set and the optimized basic matrix is ​​verified again to ensure that only the most reliable matching points are retained. The basic matrix of the final basic matrix inlier set is re-estimated by the least squares method to obtain the precise basic matrix. The least squares method improves the accuracy of the basic matrix by minimizing the residual error between matching points. The precise basic matrix is ​​decomposed and the pose relationship is analyzed to obtain the pose parameters. The decomposition of the basic matrix decomposes it into a rotation matrix and a translation vector, which represent the relative pose relationship between the two images. The pose relationship analysis determines the spatial relationship between the cameras at different image capture positions by solving the rotation and translation parameters, and finally obtains the accurate pose parameters.

[0030] Step S103, performing stereo correction on the original left and right images according to the posture parameters to obtain the target left and right images, and performing multi-scale feature extraction on the target left and right images to obtain an initial feature map;

[0031] Specifically, the original left and right images are rotationally corrected using the posture parameters to obtain a rotation-corrected image. The posture parameters include a rotation matrix and a translation vector, which are used to adjust the angle of the image so that the objects in the image are spatially aligned with the actual scene, eliminating the tilt and rotation deviation caused by the difference in camera viewing angles. The rotation-corrected image is translation-corrected to obtain a translation-corrected image. The image position is adjusted by the translation vector so that the corresponding points in the left and right images can be aligned on the same horizontal plane, eliminating the parallax between the cameras and ensuring the consistency of the image content on the plane. The translation-corrected image is scale-corrected to obtain a scale-corrected image. The size ratio of the image is adjusted so that the objects in the image maintain the same scale, ensuring that all feature points in the image are matched and analyzed at the same scale. The scale-corrected image is brightness-corrected to obtain a brightness-corrected image. Brightness correction adjusts the brightness and contrast of the image to eliminate the brightness difference caused by changes in lighting conditions, so that the overall brightness level of the image is consistent, thereby improving the accuracy and stability of feature extraction. Multi-scale feature extraction is performed on the brightness-corrected image based on the codec network to obtain an initial feature map. The codec network is a deep neural network structure, usually composed of an encoder and a decoder. The encoder extracts multi-scale features of the image and obtains feature representations at different scales by extracting and compressing image information layer by layer; the decoder reconstructs these features and retains the key features of the image.

[0032] Normalize the brightness corrected image to obtain a normalized image. Normalization helps eliminate the brightness differences between different images so that the brightness values ​​of the images are distributed within a standardized range. Perform the first layer of convolution on the normalized image using a convolution kernel with a filter size of 3x3 to obtain the first layer of feature maps. Convolution extracts local features in the image, such as edges and corners, by applying a convolution kernel to the image to obtain a set of low-level features. Perform the first layer of maximum pooling on the first layer of feature maps using a 2x2 pooling kernel to obtain the first layer of pooling feature maps. Maximum pooling compresses the size of the feature map by taking the maximum value within the range of the pooling kernel while retaining key features to improve computational efficiency. Perform the second layer of convolution on the first layer of pooling feature maps using a convolution kernel with a filter size of 3x3 to obtain the second layer of feature maps. By applying the convolution kernel again, more complex image features are extracted and the information of the feature map is enriched. Perform the second layer of maximum pooling on the second layer of feature maps using a 2x2 pooling kernel to obtain the second layer of pooling feature maps. The third layer of convolution processing is performed on the second layer pooling feature map using a convolution kernel with a filter size of 3x3 to obtain the third layer feature map. The third layer of maximum pooling processing is performed on the third layer feature map using a pooling kernel with a filter size of 2x2 to obtain the third layer of pooling feature map. The multiple applications of maximum pooling not only reduce the size of the feature map, but also enhance the robustness of the feature. The first layer of deconvolution processing is performed on the third layer of pooling feature map using a deconvolution kernel with a filter size of 3x3 to obtain the first layer of deconvolution feature map. Deconvolution processing restores the spatial resolution of the image while retaining the feature information by inverse operations of the pooling and convolution processes. The first layer of upsampling processing is performed on the first layer of deconvolution feature map using a 2x2 upsampling kernel to obtain the first layer of upsampled feature map. The upsampling processing restores the size of the feature map by interpolation and other methods to make it close to the size of the original image. The second layer of deconvolution processing is performed on the first layer of upsampled feature map using a deconvolution kernel with a filter size of 3x3 to obtain the second layer of deconvolution feature map. Through multiple deconvolution processes, the spatial resolution of the feature map is restored and the expressiveness of the features is enhanced. The second-layer deconvolution feature map is subjected to the second-layer upsampling process using a 2x2 upsampling kernel to obtain the second-layer upsampling feature map, and the second-layer upsampling feature map is subjected to the third-layer deconvolution process using a deconvolution kernel with a filter size of 3x3 to obtain the third-layer deconvolution feature map. The third-layer deconvolution feature map is subjected to the third-layer upsampling process using a 2x2 upsampling kernel to obtain the third-layer upsampling feature map, and the third-layer upsampling feature map is subjected to the fourth-layer convolution process using a convolution kernel with a filter size of 3x3 to obtain the initial feature map.

[0033] Step S104, performing mixed hole convolution processing on the initial feature map to generate a segmentation feature map and a detection feature map;

[0034] Specifically, a dilated convolution kernel with a dilation rate of 1 is used to perform a first-layer dilated convolution operation on the initial feature map to obtain a first-layer dilated convolution feature map. Dilated convolution expands the receptive field of the convolution kernel by inserting holes (i.e., intervals) between the convolution kernels, so that a wider range of feature information can be obtained while keeping the amount of calculation unchanged. A dilated convolution kernel with a dilation rate of 2 is used to perform a second-layer dilated convolution operation on the initial feature map to obtain a second-layer dilated convolution feature map. As the dilation rate increases, the receptive field of the convolution kernel is further expanded, so that the convolution operation can capture a wider range of contextual information. A dilated convolution kernel with a dilation rate of 3 is used to perform a third-layer dilated convolution operation on the initial feature map to obtain a third-layer dilated convolution feature map. Through multi-level dilated convolution processing, each layer of feature maps can obtain information from different scales to form a rich feature hierarchy. A dilated convolution kernel with a dilation rate of 4 is used to perform a fourth-layer dilated convolution operation on the initial feature map to obtain a fourth-layer dilated convolution feature map. The first layer of atrous convolution feature map, the second layer of atrous convolution feature map, the third layer of atrous convolution feature map, and the fourth layer of atrous convolution feature map are feature fused to obtain a fused atrous convolution feature map. The feature fusion process integrates feature maps at different levels and different atrous rates. The fused atrous convolution feature map is feature separated and enhanced to generate a segmentation feature map and a detection feature map. In the feature separation process, the model decomposes the fused feature map into different feature channels according to task requirements, such as the features of the segmentation task and the features of the detection task. Feature enhancement improves the recognition and responsiveness of the feature map through convolution operations and nonlinear transformations. The generated segmentation feature map and detection feature map are used for regional recognition and detection of pedestrians and vehicles, respectively. The segmentation feature map is mainly used for pixel-level target segmentation, and the precise division of the contours of pedestrians and vehicles is achieved through fine feature representation. The detection feature map is used for target detection, and the recognition and positioning of pedestrians and vehicles are achieved by extracting the location information and category information of the target.

[0035] Step S105, performing vehicle area recognition on the segmented feature map to obtain a vehicle area recognition result, and performing pedestrian detection on the detection feature map to obtain a pedestrian detection result;

[0036] Specifically, the segmentation feature map is subjected to region extraction to obtain a vehicle candidate region. By analyzing the pixel features in the segmentation feature map, the region that may contain the vehicle is identified. Feature extraction is performed on the vehicle candidate region to obtain a vehicle feature map. Feature extraction uses methods such as convolutional neural networks to extract features such as the shape, color and texture of the vehicle. The vehicle feature map is subjected to classification processing to obtain a vehicle detection result. The classification processing classifies the vehicle feature map through a trained classifier, such as a support vector machine or a convolutional neural network, to determine whether it is a vehicle. The vehicle detection result is position-marked to obtain a vehicle location map. The position marking generates an image containing vehicle location information by marking the location of the vehicle in the image. The vehicle location map is divided into regions to obtain a vehicle region map. The vehicle region map is subjected to morphological analysis to obtain vehicle morphological information. Morphological analysis extracts detailed morphological information of the vehicle by measuring and calculating the morphological features of the vehicle region, such as area, contour and direction. The vehicle morphological information is subjected to coordinate transformation to obtain vehicle location information. By converting the vehicle morphological information in the image coordinate system into location information in the actual physical space, it is ensured that the actual location of the vehicle can be accurately reflected in the image. The vehicle position information is predicted to obtain the vehicle trajectory information. By analyzing the historical position information of the vehicle, its future movement trajectory is predicted to provide dynamic trajectory information. The vehicle area recognition result is generated according to the vehicle trajectory information. At the same time, pedestrian detection is performed on the detection feature map through the YOLO model to obtain the pedestrian detection result. The YOLO model is an efficient target detection algorithm that can detect the position and category of pedestrians in the image through a single forward pass, greatly improving the detection efficiency and accuracy.

[0037] Step S106: Perform beam control analysis on the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result to obtain the beam projection direction and beam intensity and generate a corresponding intelligent shadow area.

[0038] Specifically, the beam control parameters of the DLP pixel headlight are generated according to the vehicle area recognition results and the pedestrian detection results to obtain the initial beam control parameters. The positions, movement directions and speeds of the vehicles and pedestrians in the detection results are analyzed to calculate the initial beam control parameters to ensure that the beam can effectively avoid pedestrians and illuminate the road. The initial beam control parameters are optimized using a genetic algorithm. A genetic algorithm is a search algorithm that iteratively optimizes the initial parameters by simulating natural selection and genetic mechanisms. The genetic algorithm generates a set of initial parameter sets and generates a new set of parameters through selection, crossover and mutation operations. The performance of each set of parameters is evaluated according to the fitness function, and the parameter set with the best performance is selected for the next generation of optimization. Through multiple iterations, the genetic algorithm gradually reduces the error and obtains the optimized beam control parameters. According to the optimized beam control parameters, the beam projection direction and beam intensity of the DLP pixel headlight are determined. The determination of the beam projection direction and beam intensity is based on the real-time position and movement trajectory of the vehicle and pedestrian, ensuring that the beam can be dynamically adjusted to adapt to complex road environments and pedestrian activities. For example, when a pedestrian is detected ahead, the light beam will automatically avoid the pedestrian to prevent glare; and when a vehicle is detected ahead, the light beam will adjust to provide optimal road lighting. Beam adjustment instructions are generated based on the beam projection direction and beam intensity. These instructions contain specific beam adjustment parameters, including information such as the angle, intensity, and projection area of ​​the beam. The beam adjustment instructions are passed to the DLP pixel headlights through the headlight control system to guide them to make precise beam adjustments. The beam direction and intensity are adjusted through the beam adjustment instructions to generate corresponding intelligent shadow areas. The generation of intelligent shadow areas is to minimize the glare effect on pedestrians and other vehicles while ensuring road lighting. The DLP pixel headlights dynamically adjust the direction and intensity of the beam according to the beam adjustment instructions to generate a lighting mode that adapts to the real-time road environment. In this mode, the beam can avoid pedestrian and vehicle areas to form shadow areas, while providing sufficient lighting in other areas to ensure a clear view for the driver.

[0039] In the embodiment of the present application, the initial feature point set is efficiently extracted from the original left and right images, and the target feature point set is obtained through global stereo matching and feature point screening. This process ensures the accuracy and robustness of the matching points, improves the accuracy of image feature matching, performs preliminary inlier screening and performs neighborhood feature consistency and local geometric consistency checks to ensure the rationality of the spatial distribution of the inliers. The preliminary estimation and optimization process of the basic matrix makes the calculation of the pose parameters more accurate. According to the accurate pose parameters, the original left and right images are corrected to obtain the target left and right images. The codec network is used to extract multi-scale features, and convolution and pooling are performed layer by layer to obtain rich multi-scale feature maps. The initial feature map is subjected to multi-scale hole convolution processing, and the feature receptive field is expanded using hole convolution kernels of different scales to obtain the fused hole convolution feature map, which effectively retains the global and local information in the feature map, enhances the expressive power of the feature map, and improves the accuracy of vehicle area recognition and pedestrian detection. The hole convolution feature map is used to accurately identify the vehicle area and detect pedestrians, and obtain high-precision vehicle and pedestrian detection results, ensuring the efficiency and accuracy of target recognition in complex nighttime environments. According to the vehicle area recognition results and pedestrian detection results, the DLP pixel headlight is analyzed for beam control to generate control parameters for beam projection direction and beam intensity. The genetic algorithm is used to optimize the beam control parameters, dynamically adjust the beam direction and intensity, and generate the corresponding intelligent shadow area, achieving precise glare protection and dynamic shadow generation, effectively improving the safety and comfort of nighttime driving.

[0040] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0041] (1) Collecting the original left and right images, and denoising the original left and right images to obtain denoised left and right images;

[0042] (2) Perform Gaussian blur processing on the denoised left and right images to obtain a blurred image;

[0043] (3) Perform ORB feature extraction on the blurred image to obtain the initial feature point set;

[0044] (4) Generate descriptors for the initial feature point set to obtain a feature description subset;

[0045] (5) Perform feature matching on the blurred image according to the feature description subset and use the Hamming distance to calculate the matching degree to generate an initial matching point set;

[0046] (6) Calculate the confidence of the initial matching point set to obtain confidence distribution data, and remove low-confidence matching points based on the confidence distribution data to obtain a high-confidence matching point set;

[0047] (7) Perform mismatch detection and feature point alignment on the high-confidence matching point set to obtain the target feature point set.

[0048] Specifically, the original left and right images are collected, and the original left and right images are denoised to obtain denoised left and right images. The purpose of denoising is to remove random noise in the image to improve the accuracy of subsequent processing. Use methods such as median filtering or bilateral filtering to effectively retain the edge details of the image while reducing noise interference. Gaussian blur processing is performed on the denoised left and right images to obtain a blurred image. Gaussian blur processing further reduces the high-frequency noise in the image and enhances the smoothness of the image by performing a convolution operation on the image. The convolution kernel of Gaussian blur is a two-dimensional normal distribution function, which is defined as: ;in, represents the value of the Gaussian blur convolution kernel, and are the coordinates in the convolution kernel, is the standard deviation of the Gaussian distribution. By choosing an appropriate The value controls the degree of Gaussian blur, so that the image can remove noise while maintaining certain details. ORB feature extraction is performed on the blurred image to obtain the initial feature point set. ORB is an efficient feature point detection and descriptor generation algorithm. ORB feature extraction uses the FAST algorithm to detect corner points in the image, and then uses the Harris corner point scoring method to score the detected corner points, and selects the feature points with the highest score as the initial feature point set. The ORB algorithm calculates the main direction of each feature point and generates a rotation-invariant BRIEF descriptor based on the main direction. After obtaining the initial feature point set, descriptor generation is performed on the initial feature point set to obtain a feature description subset. The feature description subset contains the binary descriptor of each feature point, and these descriptors can be used to effectively perform feature matching. The descriptor generation is performed by performing a simple grayscale comparison operation on the pixels around the feature point to obtain a binary string with a length of 256 bits. Feature matching is performed on the blurred image according to the feature description subset, and the matching degree is calculated using the Hamming distance to generate the initial matching point set. The Hamming distance is used to measure the similarity between two binary strings, which is defined as the number of different corresponding bits of the two strings. Suppose there are two descriptors and , its Hamming distance Defined as: ;in, and Descriptor Bit, represents the exclusive OR operation, Represents the length of the descriptor. By calculating the Hamming distance between all feature points, the best matching pair is found and the initial matching point set is generated. The confidence calculation is performed on the initial matching point set to obtain the confidence distribution data, and the low-confidence matching points are eliminated based on the confidence distribution data to obtain the high-confidence matching point set. The confidence calculation measures the reliability of the match by evaluating the matching quality of each matching point. The confidence can be calculated based on the inverse of the Hamming distance. For each matching point, its confidence It can be defined as: ;in, is the Hamming distance of the matching point. By sorting the confidences and removing those matching points with low confidence, the reliability of the matching point set is improved. The high-confidence matching point set is subjected to mismatch detection and feature point alignment to obtain the target feature point set. Mismatch detection uses geometric consistency checks to identify and remove matching points whose geometric relationships do not meet expectations. Feature point alignment uses optimization methods such as the least squares method to fine-tune the matching points, making the matching point set more consistent in space, and ultimately obtaining a high-quality target feature point set.

[0049] In a specific embodiment, the process of executing step S102 may specifically include the following steps:

[0050] (1) Using the RANSAC algorithm, perform preliminary inlier screening on the target feature point set to obtain a preliminary inlier set;

[0051] (2) Use the KNN algorithm to perform neighborhood feature consistency detection on the preliminary internal point set to obtain a consistent internal point set;

[0052] (3) Based on Delaunay triangulation, perform local geometric consistency detection on the consistent interior point set to obtain the local consistent interior point set;

[0053] (4) Perform spatial distribution detection on the locally consistent internal point set to obtain the optimized internal point set;

[0054] (5) Perform mismatch detection on the optimized internal point set through the relative transformation matrix to obtain the final internal point set;

[0055] (6) Using the eight-point method to preliminarily estimate the basic matrix of the final interior point set, and obtain the preliminary basic matrix;

[0056] (7) Optimizing the preliminary basic matrix to obtain an optimized basic matrix;

[0057] (8) Re-screen the internal points of the optimized basic matrix to obtain the internal point set of the final basic matrix;

[0058] (9) Using the least squares method, the basic matrix is ​​re-estimated for the point set within the final basic matrix to obtain the accurate basic matrix;

[0059] (10) Decompose the precise basic matrix and analyze the posture relationship to obtain the posture parameters.

[0060] Specifically, the RANSAC algorithm is used to perform preliminary inliers screening on the target feature point set to obtain a preliminary inliers set. The RANSAC (Random Sampling Consensus) algorithm is an iterative method that randomly extracts samples from the data set, fits the model and evaluates its fitness to identify inliers and outliers. RANSAC selects feature points that meet the expected model by randomly selecting feature points and calculating model parameters multiple times to form a preliminary inliers set. The KNN algorithm is used to perform neighborhood feature consistency detection on the preliminary inliers set to obtain a consistent inliers set. The KNN (K nearest neighbor) algorithm evaluates the local consistency of feature points by calculating the distance between each point and other points in its neighborhood. For each preliminary inlier point, its neighbor points in the feature space are calculated, and based on the distribution and characteristics of the neighbor points, the preliminary inliers are adjusted and screened accordingly, so that the final inliers are consistent in the feature space, and a consistent inliers set is obtained. Based on Delaunay triangulation, the consistent inliers set is tested for local geometric consistency to obtain a local consistent inliers set. Delaunay triangulation is a method of dividing a point set on a plane into a series of non-overlapping triangles, so that the circumscribed circle of any triangle does not contain other points. Through Delaunay triangulation, the geometric structure of the consistent inlier set is divided and detected to ensure the geometric consistency of each triangle, and those inliers that meet the expectations in the local geometric structure are screened out to obtain the local consistent inlier set. The spatial distribution detection of the local consistent inlier set is performed to obtain the optimized inlier set. The spatial distribution detection ensures that the inlier set is evenly distributed in space by analyzing the distribution of feature points in three-dimensional space. The distribution of inliers in each grid is checked by calculating the spatial density of the inlier set or by three-dimensional grid division. The optimized inlier set is tested for mismatches through the relative transformation matrix to obtain the final inlier set. The relative transformation matrix describes the geometric relationship between the image pairs. By calculating the transformation matrix, matching points that do not meet the geometric relationship are detected and removed. For example, by calculating the relative transformation of corresponding points in two images, it is verified whether these points meet the expected geometric transformation relationship, thereby identifying and eliminating mismatched points to obtain the final inlier set. The eight-point method is used to preliminarily estimate the basic matrix of the final internal point set to obtain the preliminary basic matrix. The eight-point method is a method for calculating the basic matrix between image pairs by using eight or more pairs of matching points. Basic matrix Satisfies the equation: ;in, and are the homogeneous coordinates of the corresponding points in the two images respectively. By solving the above equations for all matching points, a preliminary fundamental matrix is ​​obtained. The preliminary fundamental matrix is ​​optimized to obtain an optimized fundamental matrix. The optimization process usually adjusts the fundamental matrix parameters by minimizing the residual of the fundamental matrix equation to make it more accurately conform to the actual data. The optimized fundamental matrix is ​​re-screened for inliers to obtain the final inlier set of the fundamental matrix. By verifying the geometric consistency of the optimized fundamental matrix and the inliers again, the matching points that truly conform to the fundamental matrix are screened out to obtain the final inlier set of the fundamental matrix. The least squares method is used to re-estimate the fundamental matrix of the final inlier set of the fundamental matrix to obtain the precise fundamental matrix. The least squares method optimizes the fundamental matrix parameters by minimizing the residual error between matching points. The precise fundamental matrix is ​​decomposed and the pose relationship analysis is performed to obtain the pose parameters. The decomposition of the fundamental matrix decomposes it into a rotation matrix and a translation vector, which represents the relative pose relationship between the two images. The pose relationship analysis determines the spatial relationship between the cameras at different image capture positions by solving the rotation and translation parameters, and finally obtains the precise pose parameters.

[0061] In a specific embodiment, the process of executing step S103 may specifically include the following steps:

[0062] (1) Use the posture parameters to perform rotation correction on the original left and right images to obtain the rotation correction image;

[0063] (2) performing translation correction on the rotation-corrected image to obtain a translation-corrected image, and performing scale correction on the translation-corrected image to obtain a scale-corrected image;

[0064] (3) Performing brightness correction on the scale-corrected image to obtain a brightness-corrected image;

[0065] (4) Based on the codec network, multi-scale feature extraction is performed on the brightness corrected image to obtain the initial feature map.

[0066] Specifically, the original left and right images are rotationally corrected using the pose parameters to obtain a rotation-corrected image. The rotation correction is to eliminate the angle deviation of the camera so that the objects in the image are spatially aligned with the actual scene. The pose parameters include a rotation matrix, which is used to adjust the angle of the image to restore it to the standard viewing angle. For example, if the camera is tilted during shooting, the rotation correction can rotate the image back to the correct angle so that the image content is more straight and aligned. The rotation-corrected image is translated to obtain a translation-corrected image. The horizontal and vertical offsets of the camera position are eliminated so that the corresponding points in the left and right images can be aligned on the same horizontal plane. The translation correction moves all pixels in the image by a predetermined translation amount by applying a translation vector to ensure that the two images are accurately aligned in the horizontal and vertical directions. The translation-corrected image is scale-corrected to obtain a scale-corrected image. The size ratio of the image is adjusted so that the objects in the image maintain the same scale. The scale correction calculates the relative distances between the feature points in the image and adjusts the image scaling according to these distances. For example, if the shooting distances of the two images are different, the scale correction can appropriately enlarge or reduce the image so that the objects in the two images are the same size. The scale-corrected image is subjected to brightness correction to obtain a brightness-corrected image. Brightness correction adjusts the brightness and contrast of the image to eliminate the brightness differences caused by changes in lighting conditions, so that the overall brightness level of the image is consistent. Multi-scale feature extraction is performed on the brightness-corrected image based on the codec network to obtain an initial feature map. The codec network is a deep neural network structure, usually composed of an encoder and a decoder. The encoder extracts multi-scale features of the image layer by layer and compresses the image information through a series of convolution and pooling operations; the decoder restores the resolution of the image layer by layer through a series of deconvolution and upsampling operations while retaining important feature information.

[0067] In a specific embodiment, the execution step performs multi-scale feature extraction processing on the brightness correction image based on the codec network to obtain the initial feature map, which may specifically include the following steps:

[0068] (1) Normalize the brightness correction image to obtain a normalized image, and use a convolution kernel with a filter size of 3x3 to perform the first layer of convolution on the normalized image to obtain the first layer of feature map;

[0069] (2) Use a 2x2 pooling kernel to perform the first-layer maximum pooling processing on the first-layer feature map to obtain the first-layer pooling feature map, and use a convolution kernel with a filter size of 3x3 to perform the second-layer convolution processing on the first-layer pooling feature map to obtain the second-layer feature map;

[0070] (3) Use a 2x2 pooling kernel to perform a second-layer maximum pooling process on the second-layer feature map to obtain a second-layer pooling feature map, and use a convolution kernel with a filter size of 3x3 to perform a third-layer convolution process on the second-layer pooling feature map to obtain a third-layer feature map;

[0071] (4) Use a 2x2 pooling kernel to perform the third-layer maximum pooling processing on the third-layer feature map to obtain a third-layer pooling feature map, and use a deconvolution kernel with a filter size of 3x3 to perform the first-layer deconvolution processing on the third-layer pooling feature map to obtain a first-layer deconvolution feature map;

[0072] (5) Use a 2x2 upsampling kernel to perform a first-layer upsampling process on the first-layer deconvolution feature map to obtain a first-layer upsampling feature map, and use a deconvolution kernel with a filter size of 3x3 to perform a second-layer deconvolution process on the first-layer upsampling feature map to obtain a second-layer deconvolution feature map;

[0073] (6) Using a 2x2 upsampling kernel to perform a second-layer upsampling process on the second-layer deconvolution feature map to obtain a second-layer upsampling feature map, and using a deconvolution kernel with a filter size of 3x3 to perform a third-layer deconvolution process on the second-layer upsampling feature map to obtain a third-layer deconvolution feature map;

[0074] (7) Use a 2x2 upsampling kernel to perform a third-layer upsampling process on the third-layer deconvolution feature map to obtain a third-layer upsampling feature map, and use a convolution kernel with a filter size of 3x3 to perform a fourth-layer convolution process on the third-layer upsampling feature map to obtain an initial feature map.

[0075] Specifically, the brightness-corrected image is normalized to obtain a normalized image. The pixel values ​​of the image are scaled to a standardized range, usually [0, 1] or [-1, 1], to reduce the calculation error caused by the brightness difference of different images and improve the stability and consistency of the convolutional neural network when processing images. For example, if the pixel value range of an image is [0, 255], it is converted to [0, 1] by normalization. The first layer of convolution processing is performed on the normalized image using a convolution kernel with a filter size of 3x3 to obtain the first layer of feature map. The convolution process slides the convolution kernel on the image, calculates the weighted sum of pixels in the local area, and extracts the local features of the image. A 3x3 convolution kernel means that it will consider a 3x3 pixel area in each operation, and obtain a new pixel value through weighted sum calculation to generate a feature map. For example, for a 3x3 convolution kernel, the convolution operation can be expressed as: ;in, represents the pixel value of the convolution output, Indicates that the input image is at position ( The pixel value of Indicates that the convolution kernel is at position ( The weight of Represents the bias term. The first layer feature map is subjected to the first layer maximum pooling process using a 2x2 pooling kernel to obtain the first layer pooling feature map. Maximum pooling reduces the size of the feature map by taking the maximum value within the pooling kernel range while retaining important feature information. For example, a 2x2 pooling kernel considers a 2x2 pixel area in each operation and takes the maximum value as the pixel value after pooling, thereby reducing the size of the feature map while retaining the significant features of the feature map. The first layer pooling feature map is subjected to the second layer convolution process using a convolution kernel with a filter size of 3x3 to obtain the second layer feature map. The 3x3 convolution kernel is slid on the pooling feature map to extract higher-level features. The second layer feature map is subjected to the second layer maximum pooling process using a 2x2 pooling kernel to obtain the second layer pooling feature map. Through multiple convolution and pooling operations, high-level features in the image are extracted layer by layer, so that the feature map contains more abstract feature information. The second layer pooling feature map is subjected to the third layer convolution process using a convolution kernel with a filter size of 3x3 to obtain the third layer feature map. The third layer feature map is subjected to the third layer maximum pooling process using a 2x2 pooling kernel to obtain the third layer pooling feature map. The maximum pooling operation further reduces the size of the feature map while maintaining the significant features of the feature map. The third layer pooling feature map is subjected to the first layer deconvolution process using a deconvolution kernel with a filter size of 3x3 to obtain the first layer deconvolution feature map. The deconvolution operation restores the spatial resolution of the image while maintaining the feature information by reversing the process of pooling and convolution. For example, the deconvolution operation can restore the feature map from low resolution to high resolution, retaining and enhancing the feature information of the image. The first layer deconvolution feature map is subjected to the first layer upsampling process using a 2x2 upsampling kernel to obtain the first layer upsampled feature map. Upsampling restores the resolution of the image through an interpolation method, such as bilinear interpolation or nearest neighbor interpolation. The first layer upsampled feature map is subjected to the second layer deconvolution process using a deconvolution kernel with a filter size of 3x3 to obtain the second layer deconvolution feature map. Through multiple deconvolution and upsampling operations, the spatial resolution of the image is restored layer by layer. The second layer deconvolution feature map is subjected to the second layer upsampling process using the 2x2 upsampling kernel to obtain the second layer upsampling feature map, and the second layer upsampling feature map is subjected to the third layer deconvolution process using the deconvolution kernel with a filter size of 3x3 to obtain the third layer deconvolution feature map. The third layer deconvolution feature map is subjected to the third layer upsampling process using the 2x2 upsampling kernel to obtain the third layer upsampling feature map, and the third layer upsampling feature map is subjected to the fourth layer convolution process using the convolution kernel with a filter size of 3x3 to obtain the initial feature map.

[0076] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0077] (1) Use a dilated convolution kernel with a dilation rate of 1 to perform the first-layer dilated convolution operation on the initial feature map to obtain the first-layer dilated convolution feature map;

[0078] (2) Use a dilated convolution kernel with a dilation rate of 2 to perform a second-layer dilated convolution operation on the initial feature map to obtain a second-layer dilated convolution feature map;

[0079] (3) Use a dilated convolution kernel with a dilation rate of 3 to perform a third-layer dilated convolution operation on the initial feature map to obtain a third-layer dilated convolution feature map;

[0080] (4) Use a dilated convolution kernel with a dilation rate of 4 to perform a fourth-layer dilated convolution operation on the initial feature map to obtain a fourth-layer dilated convolution feature map;

[0081] (5) Fusing the first-layer atrous convolution feature map, the second-layer atrous convolution feature map, the third-layer atrous convolution feature map, and the fourth-layer atrous convolution feature map to obtain a fused atrous convolution feature map;

[0082] (6) Perform feature separation and feature enhancement on the fused hole convolution feature map to generate segmentation feature map and detection feature map.

[0083] Specifically, a dilated convolution kernel with a dilated rate of 1 is used to perform the first dilated convolution operation on the initial feature map to obtain the first dilated convolution feature map. Dilated convolution (also known as expanded convolution) expands the receptive field of the convolution kernel by inserting holes in the convolution kernel, thereby capturing a wider range of contextual information. A dilated rate of 1 means that there are no holes between the convolution kernels, similar to ordinary convolution. Assuming the initial feature map is F and the convolution kernel is K, the convolution operation can be expressed as: ;in, represents the first layer of hole convolution feature map, Represents the location coordinates of the feature map, Represents the position coordinates of the convolution kernel. Use a dilated convolution kernel with a dilation ratio of 2 to perform a second-layer dilated convolution operation on the initial feature map to obtain a second-layer dilated convolution feature map. A dilation ratio of 2 means that a hole is inserted in the middle of the convolution kernel, so that the receptive field of the convolution kernel is doubled. The dilated convolution operation increases the coverage of the convolution kernel by inserting a zero between every two elements of the convolution kernel, and can capture features at a longer distance. For example, assuming that the size of the dilated convolution kernel is 3x3, the convolution operation with a dilation ratio of 2 can be expressed as: ;

[0084] in, Represents the second-layer dilated convolution feature map. The third-layer dilated convolution operation is performed on the initial feature map using a dilated convolution kernel with a dilation ratio of 3 to obtain the third-layer dilated convolution feature map. The dilation ratio of 3 means that two holes are inserted in the middle of the convolution kernel, so that the receptive field of the convolution kernel is expanded to three times the original. The dilated convolution inserts two zeros between every three elements of the convolution kernel, so that the convolution kernel can capture feature information at a longer distance. For example, assuming that the size of the dilated convolution kernel is 3x3, the convolution operation with a dilation ratio of 3 can be expressed as: ;in, Represents the third-layer dilated convolution feature map. The fourth-layer dilated convolution operation is performed on the initial feature map using a dilated convolution kernel with a dilation ratio of 4 to obtain the fourth-layer dilated convolution feature map. The dilation ratio of 4 means that three holes are inserted in the middle of the convolution kernel, so that the receptive field of the convolution kernel is expanded to four times the original. The dilated convolution inserts three zeros between every four elements of the convolution kernel, so that the convolution kernel can capture feature information at a longer distance. For example, assuming that the size of the dilated convolution kernel is 3x3, the convolution operation with a dilation ratio of 4 can be expressed as: ;in, Represents the fourth-layer dilated convolution feature map. The first-layer dilated convolution feature map, the second-layer dilated convolution feature map, the third-layer dilated convolution feature map, and the fourth-layer dilated convolution feature map are feature fused to obtain a fused dilated convolution feature map. Feature fusion combines feature maps at different dilation rates so that the fused feature map contains rich information at multiple scales and multiple levels. For example, the dilated convolution feature maps of each layer are fused by element-by-element addition or element-by-element multiplication. Feature separation and feature enhancement are performed on the fused dilated convolution feature map to generate a segmentation feature map and a detection feature map. Feature separation processes the fused feature map and decomposes it into a feature map for segmentation tasks and a feature map for detection tasks. For example, the fused feature map is separated into two channels by a convolution operation, one channel for segmentation and the other channel for detection. Feature enhancement improves the recognition and responsiveness of the feature map through further convolution operations and nonlinear activation functions (such as ReLU). For example, the fused feature map can be feature enhanced using convolution operations and ReLU activation functions: ; ;in, represents the segmentation feature map, represents the detection feature map, and represents the convolution kernel, and Represents the bias term.

[0085] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0086] (1) Performing region extraction on the segmented feature map to obtain a vehicle candidate region, and performing feature extraction on the vehicle candidate region to obtain a vehicle feature map;

[0087] (2) Classify and process the vehicle feature map to obtain vehicle detection results, and mark the positions of the vehicle detection results to obtain a vehicle position map;

[0088] (3) Divide the vehicle location map into regions to obtain a vehicle area map, and perform morphological analysis on the vehicle area map to obtain vehicle morphological information;

[0089] (4) Performing coordinate transformation on the vehicle shape information to obtain the vehicle position information, and performing trajectory prediction on the vehicle position information to obtain the vehicle trajectory information;

[0090] (5) Generate vehicle area recognition results based on vehicle trajectory information, and perform pedestrian detection on the detection feature map through the YOLO model to obtain pedestrian detection results.

[0091] Specifically, the segmentation feature map is subjected to region extraction to obtain a vehicle candidate region. The region that may contain a vehicle is determined by analyzing the classification results of each pixel in the segmentation feature map. Region extraction can use techniques such as threshold segmentation or connected component analysis to extract continuous pixel blocks with similar features in the image as vehicle candidate regions. Feature extraction is performed on the vehicle candidate region to obtain a vehicle feature map, and feature information that is helpful for classification and identification is extracted from the candidate region. The vehicle feature map is subjected to classification processing to obtain a vehicle detection result. The classification processing classifies the vehicle feature map through a trained classifier (such as SVM, random forest or deep learning model) to determine whether it is a vehicle. During the training process, the classifier learns the mapping relationship between features and categories through a large number of positive and negative samples, so that the input feature map can be accurately classified in the test phase. For example, a trained CNN model can forward propagate the feature map of each candidate region and output the probability that it belongs to a vehicle. After obtaining the vehicle detection result, the vehicle detection result is positionally marked to obtain a vehicle position map. The detected vehicle position is marked in the original image, and a rectangular box is usually used to represent the position and size of the vehicle. The vehicle location map is divided into regions to obtain a vehicle area map. Each vehicle area in the vehicle location map is separated for more detailed analysis. Image segmentation techniques, such as K-means clustering or graph cut algorithm, are used to distinguish the vehicle area from the background area in the image and generate an independent vehicle area map. Morphological analysis is performed on the vehicle area map to obtain vehicle morphological information. Morphological analysis extracts parameters describing the vehicle morphology by measuring and calculating the morphological features of the vehicle area, such as area, perimeter, aspect ratio, and direction. Coordinate transformation is performed on the vehicle morphological information to obtain vehicle location information. The vehicle morphological information in the image coordinate system is converted into location information in the actual physical space. Through camera calibration technology, the pixel coordinates in the image are converted into world coordinates to obtain the location of the vehicle in the actual environment. Trajectory prediction is performed on the vehicle location information to obtain vehicle trajectory information. By analyzing the historical location information of the vehicle, its future motion trajectory is predicted. Common methods include Kalman filtering, particle filtering, and deep learning models. Through trajectory prediction, the future position and motion path of the vehicle are estimated. Based on the vehicle trajectory information, the vehicle area recognition result is generated. The current location information and predicted trajectory of the vehicle are integrated to provide the area that the vehicle may occupy in the future. At the same time, pedestrian detection is performed on the detection feature map through the YOLO model to obtain pedestrian detection results. The YOLO model is an efficient target detection algorithm that can detect the location and category of pedestrians in the image through a single forward propagation. The YOLO model divides the input image into multiple grids and predicts the bounding box and category probability on each grid to achieve real-time pedestrian detection. The pedestrian detection results can be combined with the vehicle detection results for intelligent beam control to ensure that the beam can avoid pedestrians and provide a safe driving environment.

[0092] In a specific embodiment, the process of executing step S106 may specifically include the following steps:

[0093] (1) Generate beam control parameters for the DLP pixel headlight based on the vehicle area recognition results and pedestrian detection results to obtain initial beam control parameters;

[0094] (2) Using genetic algorithms to optimize the initial beam control parameters, using genetic algorithms to reduce errors, and obtaining optimized beam control parameters;

[0095] (3) Determine the beam projection direction and beam intensity of the DLP pixel headlight according to the optimized beam control parameters, and generate a beam adjustment instruction according to the beam projection direction and beam intensity;

[0096] (4) The beam direction and intensity are adjusted through beam adjustment instructions to generate the corresponding intelligent shadow area.

[0097] Specifically, the beam control parameters of the DLP pixel headlight are generated according to the vehicle area recognition results and the pedestrian detection results to obtain the initial beam control parameters. The initial beam control parameters include the projection direction and intensity of the beam, which can be determined by analyzing the positions of the vehicle and the pedestrian. For example, if a pedestrian is detected in front, the direction of the beam will be adjusted to avoid the pedestrian area, and when a vehicle is detected, the intensity of the beam will be adjusted to properly illuminate the road. The initial beam control parameters are optimized using a genetic algorithm, and the error is reduced using a genetic algorithm to obtain the optimized beam control parameters. The genetic algorithm continuously optimizes the initial parameters through operations such as selection, crossover and mutation. The genetic algorithm generates an initial population, and each individual represents a set of beam control parameters. The performance of each individual is evaluated by the fitness function, and the individuals with higher fitness are selected as the parent generation for crossover and mutation to generate new offspring individuals. The fitness function can be defined according to the effect of the beam control parameters, such as the degree to which the beam avoids pedestrians and the effect of illuminating the road. After multiple generations of iterations, the genetic algorithm gradually finds the optimal beam control parameters so that the beam direction and intensity achieve the best effect. According to the optimized beam control parameters, the beam projection direction and beam intensity of the DLP pixel headlight are determined, and beam adjustment instructions are generated according to the beam projection direction and beam intensity. The optimized beam control parameters provide the optimal beam direction and intensity, so that the beam can provide sufficient road lighting while avoiding pedestrians and other vehicles. The beam adjustment instructions include adjusting the angle and intensity of the beam, which are transmitted to the DLP pixel headlight through the headlight control system to guide it to make precise beam adjustments. For example, if the pedestrian area in front of the vehicle is large, the beam direction will deviate from the area and the intensity will be adjusted accordingly to ensure the safety of pedestrians. The beam direction and intensity are adjusted through the beam adjustment instructions to generate the corresponding smart shadow area. The smart shadow area refers to the area where the beam avoids pedestrians and other vehicles by precisely controlling the beam direction and intensity, while illuminating the road area that needs to be illuminated. Fine control of the beam is achieved by adjusting the brightness and direction of each pixel of the DLP pixel headlight. For example, when a pedestrian is detected on the right, the brightness and direction of the left beam will increase to compensate for the reduction of the right beam, thereby generating a shadow area that avoids pedestrians.

[0098] The above describes the pedestrian glare protection and intelligent shadow area generation method in the embodiment of the present application. The following describes the pedestrian glare protection and intelligent shadow area generation system in the embodiment of the present application. Figure 2 In the present application, an embodiment of the pedestrian glare protection and intelligent shadow area generation system includes:

[0099] The acquisition module 201 is used to acquire the original left and right images and perform ORB feature extraction to obtain an initial feature point set, and perform global stereo matching and feature point screening on the initial feature point set to obtain a target feature point set;

[0100] An analysis module 202 is used to perform an interior point neighborhood space consistency check and pose relationship analysis on a target feature point set to obtain pose parameters;

[0101] The correction module 203 is used to perform stereo correction on the original left and right images according to the posture parameters to obtain the target left and right images, and perform multi-scale feature extraction on the target left and right images to obtain an initial feature map;

[0102] The processing module 204 is used to perform mixed hole convolution processing on the initial feature map to generate a segmentation feature map and a detection feature map;

[0103] The recognition module 205 is used to perform vehicle area recognition on the segmented feature map to obtain a vehicle area recognition result, and perform pedestrian detection on the detection feature map to obtain a pedestrian detection result;

[0104] The generation module 206 is used to perform beam control analysis on the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result, obtain the beam projection direction and beam intensity and generate the corresponding intelligent shadow area.

[0105] Through the cooperation of the above components, the initial feature point set is efficiently extracted from the original left and right images, and the target feature point set is obtained through global stereo matching and feature point screening. This process ensures the accuracy and robustness of the matching points, improves the accuracy of image feature matching, performs preliminary inlier screening and checks the consistency of neighborhood features and local geometric consistency to ensure the rationality of the spatial distribution of inliers. The preliminary estimation and optimization process of the basic matrix makes the calculation of the pose parameters more accurate. According to the accurate pose parameters, the original left and right images are corrected to obtain the target left and right images. The codec network is used to extract multi-scale features, perform convolution and pooling layer by layer, and obtain rich multi-scale feature maps. The initial feature map is subjected to multi-scale dilated convolution processing, and the feature receptive field is expanded using dilated convolution kernels of different scales to obtain the fused dilated convolution feature map, which effectively retains the global and local information in the feature map, enhances the expressive power of the feature map, and improves the accuracy of vehicle area recognition and pedestrian detection. The hole convolution feature map is used to accurately identify the vehicle area and detect pedestrians, and obtain high-precision vehicle and pedestrian detection results, ensuring the efficiency and accuracy of target recognition in complex nighttime environments. According to the vehicle area recognition results and pedestrian detection results, the DLP pixel headlight is analyzed for beam control to generate control parameters for beam projection direction and beam intensity. The genetic algorithm is used to optimize the beam control parameters, dynamically adjust the beam direction and intensity, and generate the corresponding intelligent shadow area, achieving precise glare protection and dynamic shadow generation, effectively improving the safety and comfort of nighttime driving.

[0106] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0107] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0108] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A method for pedestrian glare protection and intelligent shadow area generation, It is characterized in that The pedestrian glare protection and intelligent shadow area generation method comprises: The original left and right images are collected and ORB feature extraction is performed to obtain an initial feature point set, and the initial feature point set is subjected to global stereo matching and feature point screening to obtain a target feature point set; specifically, the original left and right images are collected, and the original left and right images are subjected to denoising processing to obtain denoised left and right images; the denoised left and right images are subjected to Gaussian blur processing to obtain a blurred image; the blurred image is subjected to ORB feature extraction to obtain an initial feature point set; a descriptor is generated for the initial feature point set to obtain a feature description subset; feature matching is performed on the blurred image according to the feature description subset and the matching degree is calculated using the Hamming distance to generate an initial matching point set; confidence calculation is performed on the initial matching point set to obtain confidence distribution data, and low confidence matching points are eliminated based on the confidence distribution data to obtain a high confidence matching point set; mismatch detection and feature point alignment are performed on the high confidence matching point set to obtain a target feature point set; Performing an inlier neighborhood space consistency check and pose relationship analysis on the target feature point set to obtain pose parameters; specifically including: using the RANSAC algorithm to perform preliminary inlier screening on the target feature point set to obtain a preliminary inlier set; using the KNN algorithm to perform neighborhood feature consistency detection on the preliminary inlier set to obtain a consistent inlier set; based on Delaunay triangulation, performing local geometric consistency detection on the consistent inlier set to obtain a local consistent inlier set; performing spatial distribution detection on the local consistent inlier set to obtain an optimized inlier set; performing mismatch detection on the optimized inlier set through a relative transformation matrix to obtain a final inlier set; using the eight-point method to perform preliminary estimation of the basic matrix on the final inlier set to obtain a preliminary basic matrix; optimizing the preliminary basic matrix to obtain an optimized basic matrix; re-screening the optimized basic matrix to obtain a final basic matrix inlier set; using the least squares method to re-estimate the basic matrix on the final basic matrix inlier set to obtain an accurate basic matrix; decomposing the accurate basic matrix and performing pose relationship analysis to obtain pose parameters; The original left and right images are stereo-corrected according to the posture parameters to obtain target left and right images, and multi-scale feature extraction is performed on the target left and right images to obtain an initial feature map; specifically including: performing rotation correction on the original left and right images using the posture parameters to obtain a rotation-corrected image; performing translation correction on the rotation-corrected image to obtain a translation-corrected image, and performing scale correction on the translation-corrected image to obtain a scale-corrected image; performing brightness correction processing on the scale-corrected image to obtain a brightness-corrected image; performing normalization processing on the brightness-corrected image to obtain a normalized image The normalized image is subjected to a first-layer convolution operation using a convolution kernel with a filter size of 3x3 to obtain a first-layer feature map; the first-layer feature map is subjected to a first-layer maximum pooling operation using a pooling kernel with a filter size of 2x2 to obtain a first-layer pooling feature map, and the first-layer pooling feature map is subjected to a second-layer convolution operation using a convolution kernel with a filter size of 3x3 to obtain a second-layer feature map; the second-layer feature map is subjected to a second-layer maximum pooling operation using a pooling kernel with a filter size of 2x2 to obtain a second-layer pooling feature map, and the second-layer pooling feature map is subjected to a convolution kernel with a filter size of 3x3 to obtain a second-layer pooling feature map. The third layer of convolution processing is performed on the third layer of feature map to obtain the third layer of feature map; the third layer of maximum pooling processing is performed on the third layer of feature map using a 2x2 pooling kernel to obtain the third layer of pooling feature map, and the third layer of pooling feature map is subjected to the first layer of deconvolution processing using a deconvolution kernel with a filter size of 3x3 to obtain the first layer of deconvolution feature map; the first layer of deconvolution feature map is subjected to the first layer of upsampling processing using a 2x2 upsampling kernel to obtain the first layer of upsampling feature map, and the first layer of upsampling feature map is subjected to the second layer of deconvolution processing using a deconvolution kernel with a filter size of 3x3 to obtain to the second layer deconvolution feature map; use a 2x2 upsampling kernel to perform a second layer upsampling process on the second layer deconvolution feature map to obtain a second layer upsampling feature map, and use a deconvolution kernel with a filter size of 3x3 to perform a third layer deconvolution process on the second layer upsampling feature map to obtain a third layer deconvolution feature map; use a 2x2 upsampling kernel to perform a third layer upsampling process on the third layer deconvolution feature map to obtain a third layer upsampling feature map, and use a convolution kernel with a filter size of 3x3 to perform a fourth layer convolution process on the third layer upsampling feature map to obtain an initial feature map; The initial feature map is subjected to a mixed dilated convolution process to generate a segmentation feature map and a detection feature map; specifically comprising: performing a first-layer dilated convolution operation on the initial feature map using a dilated convolution kernel with a dilation rate of 1 to obtain a first-layer dilated convolution feature map; performing a second-layer dilated convolution operation on the initial feature map using a dilated convolution kernel with a dilation rate of 2 to obtain a second-layer dilated convolution feature map; performing a third-layer dilated convolution operation on the initial feature map using a dilated convolution kernel with a dilation rate of 3 to obtain a third-layer dilated convolution feature map; performing a fourth-layer dilated convolution operation on the initial feature map using a dilated convolution kernel with a dilation rate of 4 to obtain a fourth-layer dilated convolution feature map; performing feature fusion on the first-layer dilated convolution feature map, the second-layer dilated convolution feature map, the third-layer dilated convolution feature map and the fourth-layer dilated convolution feature map to obtain a fused dilated convolution feature map; performing feature separation and feature enhancement on the fused dilated convolution feature map to generate a segmentation feature map and a detection feature map; Performing vehicle region recognition on the segmented feature map to obtain a vehicle region recognition result, and performing pedestrian detection on the detection feature map to obtain a pedestrian detection result; specifically comprising: performing region extraction on the segmented feature map to obtain a vehicle candidate region, and performing feature extraction on the vehicle candidate region to obtain a vehicle feature map; performing classification processing on the vehicle feature map to obtain a vehicle detection result, and performing position marking on the vehicle detection result to obtain a vehicle position map; performing region division on the vehicle position map to obtain a vehicle region map, and performing morphological analysis on the vehicle region map to obtain vehicle morphological information; performing coordinate transformation on the vehicle morphological information to obtain vehicle position information, and performing trajectory prediction on the vehicle position information to obtain vehicle trajectory information; generating a vehicle region recognition result according to the vehicle trajectory information, and performing pedestrian detection on the detection feature map through a YOLO model to obtain a pedestrian detection result; The method comprises the following steps: performing beam control analysis on the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result, obtaining a beam projection direction and a beam intensity, and generating a corresponding intelligent shadow area; specifically comprising: generating beam control parameters for the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result, and obtaining initial beam control parameters; optimizing the initial beam control parameters by using a genetic algorithm, and reducing errors by using a genetic algorithm to obtain optimized beam control parameters; determining a beam projection direction and a beam intensity of the DLP pixel headlight according to the optimized beam control parameters, and generating a beam adjustment instruction according to the beam projection direction and the beam intensity; adjusting the beam direction and intensity by using the beam adjustment instruction, and generating a corresponding intelligent shadow area.

2. A pedestrian glare protection and intelligent shadow area generation system, It is characterized in that The pedestrian glare protection and intelligent shadow area generation system includes: The acquisition module is used to acquire the original left and right images and perform ORB feature extraction to obtain an initial feature point set, and perform global stereo matching and feature point screening on the initial feature point set to obtain a target feature point set; specifically, the acquisition module includes: acquiring the original left and right images, performing denoising processing on the original left and right images to obtain denoised left and right images; performing Gaussian blur processing on the denoised left and right images to obtain a blurred image; performing ORB feature extraction on the blurred image to obtain an initial feature point set; performing descriptor generation on the initial feature point set to obtain a feature description subset; performing feature matching on the blurred image according to the feature description subset and calculating the matching degree using the Hamming distance to generate an initial matching point set; performing confidence calculation on the initial matching point set to obtain confidence distribution data, and eliminating low-confidence matching points based on the confidence distribution data to obtain a high-confidence matching point set; performing mismatch detection and feature point alignment processing on the high-confidence matching point set to obtain a target feature point set; The analysis module is used to perform an inlier neighborhood space consistency check and pose relationship analysis on the target feature point set to obtain pose parameters; specifically comprising: using the RANSAC algorithm to perform preliminary inlier screening on the target feature point set to obtain a preliminary inlier set; using the KNN algorithm to perform neighborhood feature consistency detection on the preliminary inlier set to obtain a consistent inlier set; based on Delaunay triangulation, performing local geometric consistency detection on the consistent inlier set to obtain a local consistent inlier set; performing spatial distribution detection on the local consistent inlier set to obtain an optimized inlier set; performing mismatch detection on the optimized inlier set through a relative transformation matrix to obtain a final inlier set; using the eight-point method to perform preliminary estimation of the basic matrix on the final inlier set to obtain a preliminary basic matrix; optimizing the preliminary basic matrix to obtain an optimized basic matrix; re-screening the optimized basic matrix to obtain a final basic matrix inlier set; using the least squares method to re-estimate the basic matrix on the final basic matrix inlier set to obtain an accurate basic matrix; decomposing the accurate basic matrix and performing pose relationship analysis to obtain pose parameters; The correction module is used to perform stereo correction on the original left and right images according to the posture parameters to obtain target left and right images, and perform multi-scale feature extraction on the target left and right images to obtain an initial feature map; specifically comprising: performing rotation correction on the original left and right images using the posture parameters to obtain a rotation correction image; performing translation correction on the rotation correction image to obtain a translation correction image, and performing scale correction on the translation correction image to obtain a scale correction image; performing brightness correction processing on the scale correction image to obtain a brightness correction image; performing normalization processing on the brightness correction image to obtain to a normalized image, and use a convolution kernel with a filter size of 3x3 to perform a first-layer convolution on the normalized image to obtain a first-layer feature map; use a 2x2 pooling kernel to perform a first-layer maximum pooling on the first-layer feature map to obtain a first-layer pooling feature map, and use a convolution kernel with a filter size of 3x3 to perform a second-layer convolution on the first-layer pooling feature map to obtain a second-layer feature map; use a 2x2 pooling kernel to perform a second-layer maximum pooling on the second-layer feature map to obtain a second-layer pooling feature map, and use a convolution kernel with a filter size of 3x3 to perform a second-layer maximum pooling on the second-layer feature map The pooled feature map is subjected to a third-layer convolution process to obtain a third-layer feature map; a 2x2 pooling kernel is used to perform a third-layer maximum pooling process on the third-layer feature map to obtain a third-layer pooled feature map, and a deconvolution kernel with a filter size of 3x3 is used to perform a first-layer deconvolution process on the third-layer pooled feature map to obtain a first-layer deconvolution feature map; a 2x2 upsampling kernel is used to perform a first-layer upsampling process on the first-layer deconvolution feature map to obtain a first-layer upsampling feature map, and a deconvolution kernel with a filter size of 3x3 is used to perform a second-layer deconvolution process on the first-layer upsampling feature map , obtain a second-layer deconvolution feature map; use a 2x2 upsampling kernel to perform a second-layer upsampling process on the second-layer deconvolution feature map to obtain a second-layer upsampling feature map, and use a deconvolution kernel with a filter size of 3x3 to perform a third-layer deconvolution process on the second-layer upsampling feature map to obtain a third-layer deconvolution feature map; use a 2x2 upsampling kernel to perform a third-layer upsampling process on the third-layer deconvolution feature map to obtain a third-layer upsampling feature map, and use a convolution kernel with a filter size of 3x3 to perform a fourth-layer convolution process on the third-layer upsampling feature map to obtain an initial feature map; A processing module, used to perform mixed dilated convolution processing on the initial feature map to generate a segmentation feature map and a detection feature map; specifically comprising: using a dilated convolution kernel with a dilated rate of 1 to perform a first-layer dilated convolution operation on the initial feature map to obtain a first-layer dilated convolution feature map; using a dilated convolution kernel with a dilated rate of 2 to perform a second-layer dilated convolution operation on the initial feature map to obtain a second-layer dilated convolution feature map; using a dilated convolution kernel with a dilated rate of 3 to perform a third-layer dilated convolution operation on the initial feature map to obtain a third-layer dilated convolution feature map; using a dilated convolution kernel with a dilated rate of 4 to perform a fourth-layer dilated convolution operation on the initial feature map to obtain a fourth-layer dilated convolution feature map; performing feature fusion on the first-layer dilated convolution feature map, the second-layer dilated convolution feature map, the third-layer dilated convolution feature map and the fourth-layer dilated convolution feature map to obtain a fused dilated convolution feature map; performing feature separation and feature enhancement on the fused dilated convolution feature map to generate a segmentation feature map and a detection feature map; The recognition module is used to perform vehicle area recognition on the segmented feature map to obtain a vehicle area recognition result, and perform pedestrian detection on the detection feature map to obtain a pedestrian detection result; specifically comprising: performing area extraction on the segmented feature map to obtain a vehicle candidate area, and performing feature extraction on the vehicle candidate area to obtain a vehicle feature map; performing classification processing on the vehicle feature map to obtain a vehicle detection result, and performing position marking on the vehicle detection result to obtain a vehicle position map; performing area division on the vehicle position map to obtain a vehicle area map, and performing morphological analysis on the vehicle area map to obtain vehicle morphological information; performing coordinate conversion on the vehicle morphological information to obtain vehicle position information, and performing trajectory prediction on the vehicle position information to obtain vehicle trajectory information; generating a vehicle area recognition result according to the vehicle trajectory information, and performing pedestrian detection on the detection feature map through a YOLO model to obtain a pedestrian detection result; A generation module is used to perform beam control analysis on the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result, obtain the beam projection direction and beam intensity and generate a corresponding intelligent shadow area; specifically includes: generating beam control parameters for the DLP pixel headlight according to the vehicle area recognition result and the pedestrian detection result to obtain initial beam control parameters; optimizing the initial beam control parameters by using a genetic algorithm, reducing errors by using a genetic algorithm, and obtaining optimized beam control parameters; determining the beam projection direction and beam intensity of the DLP pixel headlight according to the optimized beam control parameters, and generating a beam adjustment instruction according to the beam projection direction and the beam intensity; adjusting the beam direction and intensity by using the beam adjustment instruction to generate a corresponding intelligent shadow area.