Camera scene analysis method, system, device and medium for intelligent driving car

Through the camera scene analysis method, combined with image and three-dimensional point cloud data, an image point cloud model is established, which solves the challenges of dynamic object recognition and trajectory prediction of the intelligent driving system, and improves the perception accuracy and safety of the system.

CN118397588BActive Publication Date: 2024-10-18SHENZHEN JUEMING ARTIFICIAL INTELLIGENCE CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202410845425.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-27
Publication Date
2024-10-18
Estimated Expiration
2044-06-27

AI Technical Summary

Technical Problem

Existing intelligent driving systems have challenges in real-time data processing, dynamic object recognition accuracy, and reliability in complex environments, especially in terms of accuracy in predicting dynamic object motion trajectories and assessing potential collision risks.

Method used

The camera scene analysis method is used to obtain image data and three-dimensional point cloud data around the vehicle to perform feature extraction, spatial registration and scene analysis, establish an image point cloud model, and adjust the driving strategy in real time, including spatial positioning based on feature point coordinates, Motion trajectory prediction and behavioral pattern recognition.

Benefits of technology

It improves the comprehensive perception of the vehicle's surrounding environment and the accuracy of dynamic object recognition, enhances the safety and reliability of the intelligent driving system, and achieves the precise spatial position and movement of dynamic objects by fusing two-dimensional images and three-dimensional spatial information. Calibration of states improves the accuracy of trajectory prediction and risk assessment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118397588B_ABST
    Figure CN118397588B_ABST
Patent Text Reader

Abstract

The present invention provides a method, system, device and medium for analyzing a scene with a camera for an intelligent driving car. The method includes obtaining image data, three-dimensional point cloud data and environmental parameters of the vehicle's surrounding environment; extracting dynamic objects around the vehicle from the image data, and performing feature extraction on the image data and the three-dimensional point cloud data; performing spatial registration on the image data and the three-dimensional point cloud data, establishing an image point cloud model, and obtaining the structural relationship and continuous frame data of the dynamic objects in the image point cloud model; combining the extracted dynamic objects and the image point cloud model to perform scene analysis, and adjusting the driving strategy of the intelligent driving car in real time based on the scene analysis results. The present invention can enhance the driving experience of the intelligent driving car, reduce the probability of accidents, and improve safety.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of intelligent driving technology, and more specifically, to a camera scene analysis method, system, device and medium for an intelligent driving car. Background Art

[0002] In the field of smart driving cars, it is crucial to ensure that the vehicle can safely and accurately perceive the surrounding environment and respond in a timely manner. Traditional driver assistance systems usually rely on a single sensor, such as a camera or radar, to collect environmental information. However, these single sensors have limitations, such as the performance of cameras degrades in low light conditions, and radars may be affected by complex weather conditions. To overcome these limitations, modern smart driving systems use multi-sensor fusion technology to combine data from on-board cameras, LiDAR, radar, and other sensors to obtain more comprehensive environmental perception capabilities. The data collected by these sensors needs to be analyzed by advanced data processing algorithms to identify and track dynamic objects around the vehicle, such as other vehicles, pedestrians, and cyclists.

[0003] Although multi-sensor fusion technology has made progress in improving environmental perception accuracy, existing technologies still face challenges in real-time data processing, dynamic object recognition accuracy, and reliability in complex environments. In addition, the accuracy of existing systems in predicting the motion trajectory of dynamic objects and assessing potential collision risks also needs to be further improved. Summary of the invention

[0004] The present invention provides a camera scene analysis method, system, medium and computing device for an intelligent driving car.

[0005] In a first aspect of the present invention, a camera scene analysis method for an intelligent driving vehicle is provided, comprising:

[0006] Acquire image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings;

[0007] Extract dynamic objects around the vehicle from the image data, and perform feature extraction on the image data and the three-dimensional point cloud data;

[0008] Perform spatial registration on image data and 3D point cloud data, establish an image point cloud model, and obtain the inter-structural relationship and continuous frame data of dynamic objects in the image point cloud model;

[0009] Combining the extracted dynamic objects and image point cloud models, scene analysis is performed, and based on the scene analysis results, the driving strategy of the intelligent driving car is adjusted in real time; wherein the scene analysis includes:

[0010] Spatial positioning based on the coordinates of feature points in the image point cloud model;

[0011] Predict motion trajectory based on continuous frame data of dynamic objects in image point cloud models;

[0012] Behavior pattern recognition is performed based on the spatial structural relationship, continuous frame data and automobile environmental parameters.

[0013] Further, extracting dynamic objects around the vehicle from the image data includes:

[0014] Perform threshold segmentation on each image frame collected to divide the image into foreground and background.

[0015] In the segmented image, foreground objects are identified and the outlines and boundaries of the objects are determined through pixel connectivity analysis;

[0016] Generate bounding boxes for each recognized object and maintain the consistency of bounding boxes between consecutive frames;

[0017] Use the geometric characteristics of the bounding box to perform preliminary classification of objects;

[0018] Distinguish objects of different colors or textures through color histogram analysis within the bounding box;

[0019] A template matching method is used to compare the features within the bounding box with known object templates to identify specific objects.

[0020] Furthermore, extracting features from the image data and the three-dimensional point cloud data includes:

[0021] Identifying corner points in the image data, and determining the corner points as geometric features in the image data;

[0022] Grouping spatial points in 3D point cloud data to identify different spatial structures and shapes;

[0023] Calculate the normal information in the point cloud data to characterize the directional characteristics of the point cloud surface;

[0024] Extracting geometric features from three-dimensional point cloud data, wherein the geometric features include plane features and surface features;

[0025] The geometric features of image data and 3D point cloud data are combined to form a composite feature set that can be used for spatial registration.

[0026] Furthermore, the spatial registration of the image data and the three-dimensional point cloud data includes:

[0027] Determine the initial spatial relationship between each image data and the three-dimensional point cloud data in the composite feature set;

[0028] Using the initial spatial relationship, roughly aligning the corner points in the image data with the geometric features in the point cloud data;

[0029] Through the rough registration results, the relative position and posture between the image data and the 3D point cloud data are calculated and adjusted to eliminate spatial deviation and achieve spatial alignment.

[0030] Furthermore, establishing the image point cloud model includes:

[0031] Integrate the spatially registered image data and 3D point cloud data in a unified coordinate system;

[0032] Map the texture information of the image data to the corresponding points of the 3D point cloud data to construct a 3D geometric model;

[0033] The three-dimensional geometric model is processed into an image based on the image data to generate an image point cloud model.

[0034] In some embodiments, spatially registering the image data and the three-dimensional point cloud data further comprises:

[0035] Quantifying the spatial error between the image data and the three-dimensional point cloud data based on the cost function shown in formula (1);

[0036]

[0037] In the formula, is the i-th feature point in the image data; is the corresponding feature point in the 3D point cloud data; T is the spatial transformation; n is the total number of registration feature points; C is the cost function;

[0038] Using the gradient information of the cost function C, the update amount of the transformation parameters is calculated to control the iterative optimization of the spatial transformation T;

[0039] In each iteration, the spatial transformation T is updated to reduce the value of the cost function C until a predetermined convergence condition is met.

[0040] Furthermore, the method further comprises:

[0041] The spatial positioning is performed based on the spatial structural relationship of the dynamic object in the image point cloud model through formula (2);

[0042]

[0043] Where Θ is the spatial transformation matrix; pimg(i) is the coordinate of the i-th feature point in the image data; ppcd(i) is the coordinate of the 3D point in the 3D point cloud data corresponding to the i-th feature point in the image data; n is the total number of matching feature point pairs; Θopt is the optimal transformation matrix;

[0044] The motion trajectory is predicted based on the continuous frame data of the dynamic object in the image point cloud model through formula (3);

[0045] p future =p current +v·Δt (3);

[0046] In the formula, p current is the position of the dynamic object in the current frame; v is the velocity vector of the dynamic object; Δt is the time interval; p future is the position of the dynamic object at a future time;

[0047] Behavior pattern recognition is performed based on the spatial structure relationship, continuous frame data and vehicle environment parameters through formula (4);

[0048] S=g(v,a,E,Θ)=w1·v+w2·a+w3·E+w4(4);

[0049] Where S is the behavior pattern; E is the environment parameter geometry; g is the behavior pattern recognition function; w1, w2, w3 and w4 are weight coefficients; v is the velocity vector of the object on the same stage; a is the acceleration vector of the dynamic object.

[0050] In a second aspect of the present invention, a camera scene analysis system for an automobile is provided, comprising:

[0051] An acquisition module, used to acquire image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings;

[0052] An extraction module, used to extract dynamic objects around the vehicle from the image data, and perform feature extraction on the image data and the three-dimensional point cloud data;

[0053] The model building module is used to perform spatial registration of image data and 3D point cloud data, establish an image point cloud model, and obtain the inter-structural relationship and continuous frame data of dynamic objects in the image point cloud model;

[0054] The scene analysis module is used to combine the extracted dynamic objects and image point cloud models to perform scene analysis, and adjust the driving strategy of the intelligent driving car in real time based on the scene analysis results; wherein the scene analysis includes: spatial positioning based on the spatial structural relationship of the dynamic objects in the image point cloud model; motion trajectory prediction based on the continuous frame data of the dynamic objects in the image point cloud model; behavior pattern recognition based on the spatial structural relationship, continuous frame data and vehicle environmental parameters.

[0055] In a third aspect of the present invention, an electronic device is provided, comprising: at least one processor, a memory and an input-output unit; wherein the memory is used to store a computer program, and the processor is used to call the computer program stored in the memory to execute any one of the methods described in the first aspect.

[0056] In a fourth aspect of the present invention, a computer-readable storage medium is provided, which includes instructions, and when the instructions are executed on a computer, the computer executes any one of the methods in the first aspect.

[0057] The above-mentioned embodiments of the present invention have at least the following beneficial effects: by using a variety of sensors to assist the on-board camera, a comprehensive perception of the vehicle's surrounding environment is achieved, including two-dimensional images and three-dimensional spatial information, and dynamic parameters and environmental parameters are collected and processed in real time to ensure the timeliness and accuracy of scene analysis; image processing technology, including threshold segmentation, foreground object recognition, bounding box generation and color histogram analysis, is used to improve the recognition accuracy of dynamic objects; by fusing three-dimensional point cloud data and image data, an accurate spatial model of the vehicle's surrounding environment is constructed to enhance the understanding of the scene; sensor fusion technology and vehicle dynamic parameters are used to calibrate the spatial position and motion state of dynamic objects to improve the accuracy of trajectory prediction; kinematic principles and calibrated object information are used to predict the future movement trajectory of vehicles and other objects; and the trajectory, safety distance, relative speed and environmental factors of vehicles and objects are comprehensively considered to assess risks. BRIEF DESCRIPTION OF THE DRAWINGS

[0058] The above and other objects, features and advantages of the exemplary embodiments of the present invention will become readily understood by reading the detailed description below with reference to the accompanying drawings. In the accompanying drawings, several embodiments of the present invention are shown in an exemplary and non-limiting manner, in which:

[0059] Figure 1 A schematic diagram of a process for analyzing a camera scene for an intelligent driving vehicle provided by an embodiment of the present invention;

[0060] Figure 2 A schematic diagram of the structure of a camera scene analysis system for an intelligent driving vehicle provided by an embodiment of the present invention;

[0061] Figure 3 The schematic diagram schematically shows the structure of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0062] The principles and spirit of the present invention will be described below with reference to several exemplary embodiments. It should be understood that these embodiments are provided only to enable those skilled in the art to better understand and implement the present invention, and are not intended to limit the scope of the present invention in any way. On the contrary, these embodiments are provided to make the present invention more thorough and complete, and to fully convey the scope of the present invention to those skilled in the art.

[0063] Those skilled in the art know that the embodiments of the present invention can be implemented as a system, device, apparatus, method or computer program product. Therefore, the present invention can be specifically implemented in the following forms, namely: complete hardware, complete software (including firmware, resident software, microcode, etc.), or a combination of hardware and software.

[0064] It should be noted that any number of elements in the drawings is for illustration rather than limitation, and any naming is only for distinction and does not have any limiting meaning.

[0065] Reference below Figure 1 , Figure 1 The following is a flow chart of a method for analyzing a scene using a camera of an intelligent driving vehicle provided by an embodiment of the present invention. Figure 1 As shown, the method 100 includes:

[0066] Step 101, acquiring image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings;

[0067] Step 102, extracting dynamic objects around the vehicle from the image data, and performing feature extraction on the image data and the three-dimensional point cloud data;

[0068] Step 103, spatially align the image data and the three-dimensional point cloud data, establish an image point cloud model, and obtain the inter-structural relationship and continuous frame data of the dynamic object in the image point cloud model;

[0069] Step 104, performing scene analysis in combination with the extracted dynamic objects and the image point cloud model, and adjusting the driving strategy of the intelligent driving car in real time based on the scene analysis results.

[0070] It should be noted that in smart driving cars, vehicles are usually equipped with multiple sensors, including but not limited to high-definition cameras, laser radar (LiDAR), radar and GPS systems to obtain 360-degree image data, three-dimensional point cloud data and environmental parameters. For example, the camera can capture high-resolution images of the surrounding environment at a rate of 30 frames per second, while LiDAR can provide three-dimensional position information of surrounding objects accurate to the centimeter level.

[0071] In some embodiments, the automotive camera may include multiple types of cameras to fully capture image data of the vehicle's surroundings. These cameras may include high-resolution color cameras to collect rich color and texture information; fisheye lenses or ultra-wide-angle cameras to provide a wide field of view to capture the environment on the sides and rear of the vehicle; and stereo vision camera pairs to perceive depth information by imitating human eyes. In addition, the system may also be equipped with infrared cameras for working in low-light conditions and high dynamic range (HDR) cameras to maintain image quality in environments with drastic lighting changes.

[0072] Preferably, the image data can be acquired through the above-mentioned color camera and HDR camera, which can provide high-definition two-dimensional images, providing a basis for the extraction and feature extraction of dynamic objects. Three-dimensional point cloud data can be acquired through a depth camera or a stereo vision camera pair, which can measure the precise distance and position of each point in the scene and generate an accurate three-dimensional space model. Environmental parameters, such as light intensity, weather conditions, etc., can be collected through ambient light sensors or meteorological sensors, which work in conjunction with the camera system to provide comprehensive environmental perception capabilities for smart driving cars.

[0073] In some embodiments, in the process of extracting dynamic objects, each image frame needs to be firstly segmented by threshold value to divide the image into foreground and background. For example, a threshold value can be set so that moving vehicles, pedestrians, and cyclists are identified as foreground objects. Then, the outlines and boundaries of these objects are determined by pixel connectivity analysis. For example, a contour tracking algorithm is used to identify and track these dynamic objects.

[0074] Preferably, the feature extraction process may include identifying corner points in the image data and grouping the spatial points in the three-dimensional point cloud data. For example, the Harris corner detection algorithm is used to identify corner points in the image, which usually correspond to the edges or corners of the object. For three-dimensional point cloud data, the RANSAC algorithm can be used to identify geometric features such as planes and curved surfaces. In addition, normal information can also be extracted to characterize the directional characteristics of the point cloud surface.

[0075] Spatial registration is the process of aligning image data and 3D point cloud data in a unified coordinate system. The determination of the initial spatial relationship can be achieved by matching feature points, for example, matching the corner points in the image with the corresponding points in the point cloud. Then, the relative position and posture between the two are adjusted through iterative optimization to eliminate spatial deviation.

[0076] When constructing an image point cloud model, the spatially registered image data and 3D point cloud data are integrated together. For example, the texture information of the image is projected onto the corresponding points of the 3D point cloud data to construct a 3D geometric model with rich visual details. Then, through image processing, an image point cloud model that can be intuitively displayed in a virtual environment is generated.

[0077] Furthermore, step 104 may also include:

[0078] Step 1041, performing spatial positioning based on the coordinates of feature points in the image point cloud model;

[0079] Step 1042, predicting the motion trajectory based on the continuous frame data of the dynamic object in the image point cloud model;

[0080] Step 1043, performing behavior pattern recognition based on the spatial structure relationship, continuous frame data and automobile environment parameters.

[0081] In scene analysis, spatial positioning can be achieved by calculating the optimal transformation matrix. For example, the following formula can be used to express it:

[0082]

[0083] Wherein, Θ is the spatial transformation matrix; pimg(i) is the coordinate of the i-th feature point in the image data; ppcd(i) is the coordinate of the three-dimensional point in the three-dimensional point cloud data corresponding to the i-th feature point in the image data; n is the total number of matching feature point pairs; Θopt is the optimal transformation matrix; the coordinates and total number of matching feature point pairs, as well as the spatial transformation matrix, are involved to determine the exact position of the dynamic object in the image point cloud model.

[0084] The motion trajectory prediction based on the continuous frame data of the dynamic object in the image point cloud model can be expressed by the following formula:

[0085] p future =p current +v·Δt

[0086] In the formula, p current is the position of the dynamic object in the current frame; v is the velocity vector of the dynamic object; Δt is the time interval; p future is the position of the dynamic object at a future time;

[0087] Behavior pattern recognition based on feature point coordinates, continuous frame data and vehicle environment parameters can be expressed by the following formula:

[0088] S=g(v,a,E,Θ)=w1·v+w2·a+w3·E+w4;

[0089] Where S is the behavior pattern; E is the environment parameter geometry; g is the behavior pattern recognition function; w1, w2, w3 and w4 are weight coefficients; v is the velocity vector of the object on the same stage; a is the acceleration vector of the dynamic object.

[0090] Specifically, in the above spatial positioning formula, we need to extract feature points from the image data. These feature points are usually significant textures or geometric structures in the image, such as corners or edges. By applying feature detection algorithms, we can identify these feature points and generate unique descriptors for them. These descriptors can capture the local image information around the feature points.

[0091] Matching feature points between consecutive image frames can be done through feature matching algorithms, which can find pairs of feature points with similar descriptors in different frames. Once these matched feature point pairs are available, they can be further mapped from 2D image coordinates to 3D space coordinates. This usually requires the use of camera intrinsic and extrinsic information, which can be obtained through the camera calibration process. Through this process, 3D points corresponding to image feature points can be found in the 3D point cloud.

[0092] Using these matched feature point pairs to calculate the optimal spatial transformation matrix Θopt can be achieved by minimizing the sum of the squares of the distance errors between all matching point pairs, usually using numerical optimization algorithms such as gradient descent or other iterative methods. Through iterative optimization, a spatial transformation matrix is ​​finally obtained that can accurately map the feature points in the image to their corresponding positions in the three-dimensional point cloud, thereby achieving accurate spatial positioning.

[0093] The purpose of motion trajectory prediction is to determine the position of a dynamic object at a future moment. This process is based on the position change of the object in consecutive frames, which can be the position change of the bounding box, and the velocity vector of the object. First, the position of the object in the current frame needs to be recorded, which is the coordinate position of the object at a specific point in time. Then, the velocity vector of the object needs to be measured, which represents the speed at which the object moves in space. Combined with the time interval between consecutive frames, we can predict the position of the object at a future moment.

[0094] In the process of behavioral pattern recognition, not only the spatial position and motion state of the object need to be considered, but also the environmental parameters of the car. Specifically, first, the relative position and orientation of the object in the image point cloud model and how these parameters change over time are analyzed. Then, the position, velocity, and acceleration data of the object in consecutive frames are collected, which can provide a dynamic view of the object's motion pattern. At the same time, the environmental parameter vector of the car is considered, which may include information such as vehicle speed, road conditions, traffic signals, etc., all of which may affect the behavior of the object.

[0095] In some embodiments, extracting dynamic objects around the vehicle from the image data in step 102 includes:

[0096] Step 1021, performing threshold segmentation on each captured image frame to divide the image into two parts: foreground and background;

[0097] Step 1022, in the segmented image, identifying the foreground object, and determining the outline and boundary of the object through pixel connectivity analysis;

[0098] Step 1023, generating a bounding box for each identified object and maintaining the consistency of the bounding box between consecutive frames;

[0099] Step 1024, using the geometric characteristics of the bounding box to perform preliminary classification of the object;

[0100] Step 1025, distinguishing objects of different colors or textures by analyzing the color histogram within the bounding box;

[0101] Step 1026 , using a template matching method, compares the features within the bounding box with known object templates to identify the specific object.

[0102] Preferably, in step 102, performing threshold segmentation on each captured image frame involves comparing the pixel brightness value of the image with a preset threshold value, thereby dividing the image into two parts: foreground and background. For example, a brightness threshold value can be set, and all pixels above the threshold value are identified as foreground, while pixels below the threshold value are regarded as background.

[0103] Based on the threshold segmentation, the next task is to identify specific dynamic objects in the foreground. This is usually achieved through pixel connectivity analysis, which can determine the outline and boundaries of the object. For example, if a pixel is determined to be part of the foreground, the algorithm will check the pixels around it, and if these pixels are also above the threshold, they will also be classified as the same object.

[0104] Once the foreground objects are identified, the next step is to generate bounding boxes for each object. A bounding box is usually a rectangle whose four corner coordinates define the location and size of the object in the image. The algorithm needs to maintain the consistency of the bounding boxes between consecutive frames, even if the objects move or change pose in the scene. For example, a tracking algorithm can identify the bounding boxes of the same object in consecutive frames, even if their positions change.

[0105] Preferably, the geometric properties of the bounding boxes, such as shape, area, and aspect ratio, can be used to perform a preliminary classification of objects. For example, an elongated bounding box may represent a road sign, while a larger rectangle may represent another vehicle. This classification helps narrow down the candidate objects for subsequent analysis.

[0106] In step 1025, objects of different colors or textures may be further distinguished by analyzing the color histogram within the bounding box. Color histogram is a method of statistically analyzing the distribution of colors in an image and can be used to identify features of specific colors. For example, a red car will have a histogram dominated by red, while a blue car will show a different color distribution.

[0107] Further, in step 1026, when a template matching method is used to identify a specific object, template matching can use a variety of algorithms, such as normalized correlation or nearest neighbor search. For example, if the algorithm has a template of a pedestrian, it can identify the pedestrian in the image by comparing the similarity between the features in the bounding box and the template.

[0108] Exemplarily, first, a template library containing multiple examples is constructed. For example,

[0109] For pedestrian detection, we collect 100 pedestrian images with different lighting, postures and backgrounds. These images are preprocessed, such as size normalization and grayscale conversion. For objects within the bounding box, the SIFT (Scale Invariant Feature Transform) algorithm is used to extract key points and descriptors. The SIFT algorithm can extract features that are invariant to rotation, scaling and partial brightness changes.

[0110] For feature point matching, you can choose FLANN (Fast Nearest Neighbor Library) for feature point matching. FLANN is an efficient feature point matching algorithm suitable for fast retrieval and matching tasks. For the object image within the bounding box, the FLANN algorithm is used to match its SIFT features with the SIFT features of each template in the template library. By calculating the distance between the descriptors, the best matching feature point pair is found. The number and distribution of matched feature point pairs are calculated, and a score is assigned to each match. For example, the number of matching point pairs can be used to evaluate the strength of the match, and more matching point pairs generally mean higher similarity.

[0111] In some embodiments, a threshold value may be set, such as a 50% matching point ratio, and only when the matching score exceeds this threshold value, the template is considered to be successfully matched with the target object. This threshold value may be adjusted according to actual scenarios and requirements.

[0112] In some embodiments, the feature extraction of the image data and the three-dimensional point cloud data in step 102 further includes the following steps:

[0113] Step 1027, identifying corner points in the image data, and determining the corner points as geometric features in the image data;

[0114] Step 1028, grouping the spatial points in the three-dimensional point cloud data to identify different spatial structures and shapes;

[0115] Step 1029, calculating normal information in the point cloud data to characterize the directional characteristics of the point cloud surface;

[0116] Step 1020: extract geometric features from the three-dimensional point cloud data, where the geometric features include plane features and curved surface features; combine the image data and the geometric features of the three-dimensional point cloud data to form a composite feature set that can be used for spatial registration.

[0117] Specifically, the Harris corner detection algorithm can be used to process image data to identify corners, which identifies corners by calculating the gradient and second-order moment of the image. These corners are significant features in the image, usually appearing at the edge or corner of the object, and can provide rich geometric information for the image.

[0118] More specifically, using the Harris corner detection algorithm to identify corners can include the following steps:

[0119] Step 1: Apply the Harris corner detection algorithm to traverse each pixel of the image and calculate the brightness change within the neighborhood of each pixel to evaluate whether the point is a corner point.

[0120] Step 2: After obtaining the Harris response map, non-maximum suppression (NMS) is performed to determine the local maximum point as the final corner point.

[0121] Step 3: According to the results of non-maximum suppression, the final list of corner points is determined. These corner points will be used as geometric features of the image for subsequent image analysis and processing.

[0122] Next, the 3D point cloud data can be analyzed by using spatial clustering algorithms, such as DBSCAN (Density-Based Spatial Clustering of Applications with Noise), to group the spatial points. These algorithms divide the points in the point cloud into different clusters based on their density, and each cluster represents a different spatial structure or shape.

[0123] Before performing DBSCAN clustering on 3D point cloud data, two main parameters of the algorithm need to be set: neighborhood size and minimum number of points. These parameters are adjusted according to the density of the point cloud data and the expected clustering results. The points in the point cloud are divided into three categories according to the set parameters: core points, boundary points, and noise points. Core points are points located in high-density areas, boundary points are located in the neighborhood of core points but are not core points themselves, and noise points are isolated points.

[0124] For each grouped point cloud cluster, the normal is a vector perpendicular to the surface of the object, which can be estimated by algorithms such as Principal Component Analysis (PCA). Geometric features are extracted from point cloud data, which can include plane features and surface features. Plane features can be identified by detecting local plane areas in the point cloud, while surface features can be determined by analyzing the curvature changes of the point cloud. These features help to further analyze the shape and structure of the object.

[0125] More specifically, the discovery information calculation may include the following specific steps:

[0126] Step 1: Select a local neighborhood for each point in the point cloud. This neighborhood usually includes the nearest points around the point, such as determined by a KD-Tree or spherical neighborhood search algorithm.

[0127] Step 2: For each point’s local neighborhood, construct a covariance matrix. This matrix reflects the spatial distribution of the point cloud in the neighborhood.

[0128] Step 3: Apply principal component analysis (PCA) to the covariance matrix. PCA can identify the direction with the largest data variance, that is, the main direction of change of the local surface of the point cloud.

[0129] Step 4: Extract the principal components from the PCA results. These principal component vectors are the normal estimates for each point in the point cloud. The normal is the vector perpendicular to the best fitting plane of the local surface.

[0130] Step 5: Optimize the calculated normals, such as smoothing and denoising, to improve the accuracy and usability of the normal information.

[0131] Furthermore, the corner point information in the image data is combined with the geometric features in the point cloud data to form a composite feature set. This set contains rich information in two-dimensional and three-dimensional space, providing key data support for subsequent spatial registration. After the composite feature set is formed, it is optimized and screened to remove redundant or low-quality feature points. This can be achieved by calculating the stability and significance of the feature points to ensure that the feature set used for registration is accurate and reliable.

[0132] In some embodiments, spatially registering the image data and the three-dimensional point cloud data in step 103 includes:

[0133] Step 1031, determining the initial spatial relationship between each image data and the three-dimensional point cloud data in the composite feature set;

[0134] Step 1032, using the initial spatial relationship, roughly aligning the corner points in the image data with the geometric features in the point cloud data;

[0135] Step 1033, through the rough registration result, calculate and adjust the relative position and posture between the image data and the three-dimensional point cloud data to eliminate spatial deviation and achieve spatial alignment.

[0136] Specifically, determining the initial spatial relationship between each image data and the 3D point cloud data can be accomplished by using known camera intrinsics and extrinsics, which can transform image coordinates into 3D space coordinates. For example, if a calibrated camera model is used, the approximate position of the image feature points in 3D space can be estimated first by using its perspective projection matrix.

[0137] Next, the initial spatial relationship is used to roughly align the corner points in the image with the geometric features in the point cloud. This process involves finding 3D feature points in the point cloud data that correspond to the image corner points. For example, feature points with similar geometric properties (such as curvature or local surface normals) as the image corner points can be searched in the point cloud.

[0138] Rough registration can be achieved by feature point matching algorithms, such as FLANN or KD-Tree, to find the best correspondence between image feature points and point cloud feature points. In some embodiments, the above steps may generate an initial transformation matrix that describes the relative position and posture between the image and the point cloud.

[0139] Calculating and adjusting the relative position and posture between the image data and the three-dimensional point cloud data through the rough registration results involves evaluating the accuracy of the registration results and making adjustments as needed. For example, we can use an iterative optimization algorithm, such as the least squares method, to minimize the registration error. The algorithm calculates a transformation matrix that maps the image feature points to their corresponding positions in the point cloud while minimizing the distance error between the two. In this way, the spatial relationship between the image and point cloud data can be gradually adjusted until an accurate spatial alignment is achieved. In some embodiments, this process may require multiple iterations, and each iteration updates the transformation matrix until the predetermined convergence condition is met to ensure that the image and point cloud data are accurately aligned in space.

[0140] In some embodiments, establishing the image point cloud model in step 103 includes:

[0141] Step 1034, integrating the spatially registered image data and the three-dimensional point cloud data in a unified coordinate system;

[0142] Step 1035, mapping the texture information of the image data to corresponding points of the three-dimensional point cloud data to construct a three-dimensional geometric model;

[0143] Step 1036, image processing is performed on the three-dimensional geometric model based on the image data to generate an image point cloud model.

[0144] In step 1034, the unified coordinate system is to ensure that the image data and the 3D point cloud data are in the same reference frame so that the subsequent fusion process can proceed smoothly. This is usually done by applying the finalized spatial transformation matrix, which accurately maps the image feature points to their corresponding positions in the 3D point cloud.

[0145] Preferably, in step 1035, mapping the texture information of the image data to the corresponding points of the three-dimensional point cloud data requires extracting color and texture data from the image and associating it with the corresponding points in the point cloud. For example, if a point cloud point corresponds to a pixel in the image, then the color value of the pixel will be assigned to the point in the point cloud, thereby reconstructing the appearance of the object in three-dimensional space.

[0146] Then, the 3D geometric model is imaged based on the image data. This process requires meshing the point cloud data to create a polygonal mesh, and then mapping the image texture onto this mesh. In this way, a 3D geometric model with a real-world texture appearance can be generated, which not only has accurate geometry but also realistic surface properties.

[0147] It should be noted that the generated image point cloud model can be used for a variety of applications, such as visualization, further analysis or as input to intelligent driving decision-making systems. This model can help identify and understand the environment around the vehicle, including other vehicles, pedestrians, road signs and terrain.

[0148] In some embodiments, the generated image point cloud model needs to be verified and evaluated to ensure the accuracy and practicality of the model. This may include checking the geometric accuracy, texture consistency, and overall visual realism of the model. Based on the evaluation results, the model may need to be adjusted or optimized to achieve the desired performance standards.

[0149] In some embodiments, spatially registering the image data and the three-dimensional point cloud data further comprises:

[0150] Quantify the spatial error between the image data and the three-dimensional point cloud data based on the cost function shown in the following formula;

[0151]

[0152] In the formula, is the i-th feature point in the image data; is the corresponding feature point in the 3D point cloud data; T is the spatial transformation; n is the total number of registration feature points; C is the cost function;

[0153] Using the gradient information of the cost function C, the update amount of the transformation parameters is calculated to control the iterative optimization of the spatial transformation T;

[0154] In each iteration, the spatial transformation T is updated to reduce the value of the cost function C until a predetermined convergence condition is met.

[0155] Preferably, the update amount of the transformation parameter is calculated by using the gradient information of the cost function C by obtaining the gradient of the cost function with respect to the transformation parameter and using this gradient to guide the adjustment of the transformation parameter, thereby minimizing the cost function. This can use numerical optimization methods, such as gradient descent algorithms.

[0156] In each iteration, the spatial transformation T is updated according to the calculated update amount. The purpose of updating the transformation parameters is to reduce the value of the cost function C, thereby improving the registration accuracy between the image and the point cloud data. This process needs to be repeated until the predetermined convergence condition is met, such as the reduction in the cost function is less than a certain threshold or the number of iterations reaches a preset upper limit.

[0157] Finally, verify and fine-tune the registration results. After the iterative optimization is completed, the accuracy and reliability of the registration results need to be verified. This may involve checking the alignment between the transformed point cloud and the image, and assessing whether the registration error is within an acceptable range. If necessary, the registration process can be fine-tuned to further improve the accuracy.

[0158] The above-mentioned embodiments of the present invention have the following beneficial effects: by comprehensively applying image processing, three-dimensional point cloud analysis and environmental perception technology, a comprehensive and accurate perception of the vehicle's surrounding environment is achieved. This method not only improves the recognition and tracking capabilities of dynamic objects, but also significantly enhances the safety and reliability of intelligent driving through real-time scene analysis and dynamic adjustment of driving strategies. In addition, through precise spatial registration technology and iterative optimization algorithms, a highly consistent three-dimensional environmental model is established, which provides strong support for navigation and decision-making in complex environments.

[0159] like Figure 2 As shown, in some embodiments, a camera scene analysis system 200 for a smart driving car includes:

[0160] An acquisition module 201 is used to acquire image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings;

[0161] An extraction module 202 is used to extract dynamic objects around the vehicle from the image data and perform feature extraction on the image data and the three-dimensional point cloud data;

[0162] The model building module 203 is used to perform spatial registration on the image data and the three-dimensional point cloud data, establish an image point cloud model, and obtain the inter-structural relationship and continuous frame data of the dynamic object in the image point cloud model;

[0163] The scene analysis module 204 is used to perform scene analysis in combination with the extracted dynamic objects and image point cloud models, and adjust the driving strategy of the intelligent driving car in real time based on the scene analysis results; wherein the scene analysis includes: spatial positioning based on the spatial structural relationship of the dynamic objects in the image point cloud model; motion trajectory prediction based on the continuous frame data of the dynamic objects in the image point cloud model; behavior pattern recognition based on the spatial structural relationship, continuous frame data and vehicle environmental parameters.

[0164] It is understandable that the modules described in the vehicle camera scene analysis system 200 are similar to those described in the reference Figure 1 Therefore, the operations, features and beneficial effects described above for the vehicle camera scene analysis method are also applicable to the vehicle camera scene analysis system 200 and the modules contained therein, and will not be repeated here.

[0165] Reference below Figure 3 , which shows a schematic diagram of a structure 300 of an electronic device suitable for implementing some embodiments of the present invention. The electronic devices in some embodiments of the present invention may include, but are not limited to, mobile terminals such as mobile phones, notebook computers, digital broadcast receivers, PDAs (personal digital assistants), PADs (tablet computers), PMPs (portable multimedia players), vehicle-mounted terminals (such as vehicle-mounted navigation terminals), etc., and fixed terminals such as digital TVs, desktop computers, etc. Figure 3 The terminal device shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0166] like Figure 3 As shown, the electronic device 300 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 302 or a program loaded from a storage device 308 into a random access memory (RAM) 303. In the RAM 303, various programs and data required for the operation of the electronic device 300 are also stored. The processing device 301, the ROM 302, and the RAM 303 are connected to each other via a bus 304. An input / output (I / O) interface 305 is also connected to the bus 304.

[0167] Typically, the following devices may be connected to the I / O interface 305: input devices 306 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; output devices 307 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; storage devices 308 including, for example, a magnetic tape, a hard disk, etc.; and communication devices 309. The communication devices 309 may allow the electronic device 300 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 3 The electronic device 300 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 3 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0168] Furthermore, the storage medium of the embodiment of the present application stores program instructions that can implement all the above methods, wherein the program instructions can be stored in the above storage medium in the form of a software product, including several instructions for enabling a computer device (which can be a personal computer, server, or network device, etc.) or a processor to execute all or part of the steps of the methods described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, or terminal devices such as a computer, a server, a mobile phone, and a tablet.

[0169] The above descriptions are only some preferred embodiments of the present invention and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present invention is not limited to the technical solutions formed by a specific combination of the above technical features, but should also cover other technical solutions formed by any combination of the above technical features or their equivalent features without departing from the above inventive concept. For example, the above features are replaced with (but not limited to) technical features with similar functions disclosed in the embodiments of the present invention to form a technical solution.

Claims

1. A camera scene analysis method for an intelligent driving car, characterized in that: The method includes: Step 1: Obtain image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings; Step 2: extracting dynamic objects around the vehicle from the image data, and performing feature extraction on the image data and the three-dimensional point cloud data; wherein extracting dynamic objects around the vehicle from the image data includes: Perform threshold segmentation on each image frame collected to divide the image into foreground and background. In the segmented image, foreground objects are identified and the outlines and boundaries of the objects are determined through pixel connectivity analysis; Generate bounding boxes for each recognized object and maintain the consistency of bounding boxes between consecutive frames; Use the geometric characteristics of the bounding box to perform preliminary classification of objects; By analyzing the color histogram within the bounding box, objects of different colors or textures can be distinguished. Template matching methods are used to compare the features within the bounding box with known object templates to identify specific objects. Performing feature extraction on the image data and the three-dimensional point cloud data, including: Identifying corner points in the image data, and determining the corner points as geometric features in the image data; Grouping spatial points in 3D point cloud data to identify different spatial structures and shapes; Calculate the normal information in the point cloud data to characterize the directional characteristics of the point cloud surface; Extracting geometric features from three-dimensional point cloud data, wherein the geometric features include plane features and curved surface features; Combine the geometric features of image data and 3D point cloud data to form a composite feature set for spatial registration; Step 3: spatially register the image data and the three-dimensional point cloud data, establish an image point cloud model, and obtain the spatial structural relationship and continuous frame data of the dynamic object in the image point cloud model; wherein spatially registering the image data and the three-dimensional point cloud data includes: Determine the initial spatial relationship between each image data and the three-dimensional point cloud data in the composite feature set; Using the initial spatial relationship, roughly aligning the corner points in the image data with the geometric features in the point cloud data; Based on the rough registration results, the relative position and posture between the image data and the 3D point cloud data are calculated and adjusted to eliminate the spatial deviation and achieve spatial alignment. Among them, eliminating the spatial deviation and achieving spatial alignment includes: Quantifying the spatial error between the image data and the three-dimensional point cloud data based on the cost function shown in formula (1); In the formula, is the i-th feature point in the image data; is the coordinate of the 3D point in the 3D point cloud data corresponding to the i-th feature point in the image data; T is the spatial transformation; n is the total number of registration feature points; C is the cost function; using the gradient information of the cost function C, Calculate the update amount of the transformation parameters to control the iterative optimization of the spatial transformation T; In each iteration, the spatial transformation T is updated to reduce the value of the cost function C until a predetermined convergence condition is met; an image point cloud model is established, including: integrating the spatially registered image data and the three-dimensional point cloud data in a unified coordinate system; Map the texture information of the image data to the corresponding points of the 3D point cloud data to construct a 3D geometric model; Performing image processing on the three-dimensional geometric model based on the image data to generate an image point cloud model; Mapping the texture information of the image data to the corresponding points of the three-dimensional point cloud data includes: Extract color and texture data from images; Associating the extracted color and texture data with the corresponding points in the point cloud; If a point cloud point corresponds to a pixel in the image, the color value of the pixel is assigned to the point in the point cloud, and the appearance of the object is reconstructed in three-dimensional space; Step 4: Perform scene analysis based on the extracted dynamic objects and image point cloud model, and adjust the driving strategy of the intelligent driving car in real time based on the scene analysis results; wherein the scene analysis includes: Spatial positioning based on the coordinates of feature points in the image point cloud model; Predict motion trajectory based on continuous frame data of dynamic objects in image point cloud models; Behavior pattern recognition is performed based on the spatial structure relationship, continuous frame data and automobile environment parameters; the behavior pattern recognition includes the following steps: analyzing the relative position and direction of the object in the image point cloud model; Collect the object's position, velocity, and acceleration data in consecutive frames; Using the collected data, including the environmental parameter vector of the intelligent driving car, including vehicle speed, road conditions and traffic signal information, a dynamic view of the object motion pattern is provided; wherein spatial positioning is performed based on the spatial structural relationship of the dynamic object in the image point cloud model through equation (2); Where Θ is the spatial transformation matrix; is the i-th feature point in the image data; is the 3D point coordinates in the 3D point cloud data corresponding to the i-th feature point in the image data; n is the total number of matching feature point pairs; Θopt is the optimal transformation matrix; The motion trajectory is predicted based on the continuous frame data of the dynamic object in the image point cloud model through formula (3); p future =p current +v·Δt (3); In the formula, p current is the position of the dynamic object in the current frame; v is the velocity vector of the dynamic object; Δt is the time interval; p future is the position of the dynamic object at a future time; Behavior pattern recognition is performed based on the spatial structure relationship, continuous frame data and vehicle environment parameters through formula (4); S=g(v,a,E,Θ)=w1·v+w2·a+w3·E+w4 (4) Where S is the behavior pattern; E is the environment parameter geometry; g is the behavior pattern recognition function; w1, w2, w3 and w4 are weight coefficients; v is the velocity vector of the object on the same stage; a is the acceleration vector of the dynamic object.

2. A camera scene analysis system for an intelligent driving car, characterized in that: The system includes: An acquisition module, used to acquire image data, three-dimensional point cloud data and environmental parameters of the vehicle's surroundings; The extraction module is used to extract dynamic objects around the vehicle from the image data and perform feature extraction on the image data and the three-dimensional point cloud data; wherein the extraction of dynamic objects around the vehicle from the image data includes: performing threshold segmentation on the image frame of each acquired image to divide the image into two parts, a foreground and a background; in the segmented image, identifying the foreground object and determining the outline and boundary of the object by pixel connectivity analysis; generating a bounding box for each identified object and maintaining the consistency of the bounding box between consecutive frames; performing preliminary classification of the object by using the geometric characteristics of the bounding box; and distinguishing objects of different colors or textures by color histogram analysis within the bounding box; Using a template matching method, the features within the bounding box are compared with a known object template to identify a specific object; extracting features from the image data and the three-dimensional point cloud data, including: identifying corner points in the image data, and determining the corner points as geometric features in the image data; grouping the spatial points in the three-dimensional point cloud data to identify different spatial structures and shapes; calculating normal information in the point cloud data to characterize the directional characteristics of the point cloud surface; extracting geometric features from the three-dimensional point cloud data, the geometric features including plane features and surface features; combining the geometric features of the image data and the three-dimensional point cloud data to form a composite feature set for spatial registration; A model building module is used to spatially register image data and three-dimensional point cloud data, establish an image point cloud model, and obtain the spatial structural relationship and continuous frame data of the dynamic object in the image point cloud model; wherein, spatially registering the image data and the three-dimensional point cloud data includes: determining the initial spatial relationship between each image data and the three-dimensional point cloud data in the composite feature set; using the initial spatial relationship, roughly registering the corner points in the image data and the geometric features in the point cloud data; calculating and adjusting the relative position and posture between the image data and the three-dimensional point cloud data through the rough registration result to eliminate the spatial deviation and achieve spatial alignment; wherein, eliminating the spatial deviation and achieving spatial alignment includes: quantifying the spatial error between the image data and the three-dimensional point cloud data based on the cost function shown in formula (1); In the formula, is the i-th feature point in the image data; is the coordinate of the three-dimensional point in the three-dimensional point cloud data corresponding to the i-th feature point in the image data; T is the spatial transformation; n is the total number of registered feature points; C is the cost function; the gradient information of the cost function C is used to calculate the update amount of the transformation parameter to control the iterative optimization of the spatial transformation T; in each iteration, the spatial transformation T is updated to reduce the value of the cost function C until the predetermined convergence condition is met; an image point cloud model is established, including: integrating the image data and the three-dimensional point cloud data after spatial registration in a unified coordinate system; mapping the texture information of the image data to the corresponding points of the three-dimensional point cloud data to construct a three-dimensional geometric model; imaging the three-dimensional geometric model based on the image data to generate an image point cloud model; wherein, mapping the texture information of the image data to the corresponding points of the three-dimensional point cloud data includes: extracting color and texture data from the image; associating the extracted color and texture data with the corresponding points in the point cloud; if a point cloud point corresponds to a pixel point in the image, the color value of the pixel is assigned to the point in the point cloud, and the appearance of the object is reconstructed in the three-dimensional space; The scene analysis module is used to combine the extracted dynamic objects and the image point cloud model to perform scene analysis, and adjust the driving strategy of the intelligent driving car in real time based on the scene analysis results; wherein the scene analysis includes: spatial positioning based on the coordinates of the feature points in the image point cloud model; motion trajectory prediction based on the continuous frame data of the dynamic object in the image point cloud model; behavior pattern recognition based on the spatial structure relationship, continuous frame data and automobile environmental parameters; behavior pattern recognition includes the following steps: analyzing the relative position and direction of the object in the image point cloud model; collecting the position, speed and acceleration data of the object in the continuous frames; using the collected data, including the environmental parameter vector of the intelligent driving car, including vehicle speed, road conditions and traffic signal information, to provide a dynamic view of the object's motion pattern; wherein, The spatial positioning is performed based on the spatial structural relationship of the dynamic object in the image point cloud model through formula (2); Where Θ is the spatial transformation matrix; is the i-th feature point in the image data; is the 3D point coordinates in the 3D point cloud data corresponding to the i-th feature point in the image data; n is the total number of matching feature point pairs; Θopt is the optimal transformation matrix; The motion trajectory is predicted based on the continuous frame data of the dynamic object in the image point cloud model through formula (3); p future =p current +v·Δt (3) In the formula, p current is the position of the dynamic object in the current frame; v is the velocity vector of the dynamic object; Δt is the time interval; p future is the position of the dynamic object at a future time; Behavior pattern recognition is performed based on the spatial structure relationship, continuous frame data and vehicle environment parameters through formula (4); S=g(v,a,E,Θ)=w1·v+w2·a+w3·E+w4(4); Where S is the behavior pattern; E is the environment parameter geometry; g is the behavior pattern recognition function; w1, w2, w3 and w4 are weight coefficients; v is the velocity vector of the object on the same stage; a is the acceleration vector of the dynamic object.

3. An electronic device, comprising: one or more processors; a storage device having one or more programs stored thereon; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as claimed in claim 1.

4. A computer-readable storage medium having executable instructions stored thereon, which, when executed by a processor, causes the processor to implement the method described in claim 1.

Citation Information

Patent Citations

  • Vehicle feature identification method and system based on point cloud data

    CN117284320A

  • Stereoscopic model identification system and method based on deep learning

    CN117333358A