Target detection method and device, computer readable storage medium and vehicle
By obtaining the velocity value and status of the ground center point of the target to be detected in the target detection technology, and updating the Kalman filter parameters, the problem of poor stability of the motion trajectory coordinates in the existing technology is solved, and more accurate position determination and smoothness are achieved. Movement trajectory.
Patent Information
- Application Number
- CN202410473911.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-04-18
- Publication Date
- 2024-08-30
AI Technical Summary
After obtaining the position coordinates of the target to be detected, the existing target detection technology uses simple weighting processing, resulting in poor stability and deviation of the motion trajectory coordinates.
By obtaining the first velocity value of the ground center point of the target to be detected in the current frame image, determine whether its state is stationary or moving, and update the Kalman filter parameters according to the state or use the historical velocity value to calculate the second velocity value to Accurately determine the target position and improve coordinate stability.
It effectively improves the coordinate stability of the motion trajectory of the target to be detected, reduces coordinate jitter during the target detection process, and generates a smoother motion trajectory.
Smart Images

Figure CN118570759A
Abstract
Description
Technical Field
[0001] The present application relates to the field of autonomous driving technology, and in particular to a target detection method, device, computer-readable storage medium and vehicle. Background Art
[0002] With the rapid development of autonomous driving technology, the automatic parking function, as an indispensable part of the autonomous driving process, has gradually attracted widespread attention. The automatic parking function requires the vehicle to have accurate position recognition and trajectory prediction capabilities for obstacles in the surrounding environment (such as vehicles, pedestrians, etc.). Therefore, the vehicle usually needs to use target detection technology to obtain information such as the location and movement trajectory of the obstacle.
[0003] In the existing target detection technology, after obtaining the position coordinates of the target to be detected, the coordinates of the adjacent historical frame trajectories are simply weighted to obtain the position of the target to be detected, thereby achieving smooth processing of the motion trajectory of the target to be detected. However, this trajectory smoothing method is simple and crude, and the calculated position of the target to be detected may have deviations, resulting in poor coordinate stability of the motion trajectory. Summary of the invention
[0004] Embodiments of the present application provide a target detection method, device, computer-readable storage medium, and vehicle, which improve the coordinate stability of the motion trajectory of a target to be detected during the target detection process.
[0005] In the first aspect, an embodiment of the present application provides a target detection method, which is applied to a domain controller of a vehicle. The method includes: obtaining a first velocity value of a ground center point of a target to be detected in a current frame image at a first moment, wherein the first moment is associated with the moment of obtaining the current frame image, and the first velocity value is a velocity value in a global coordinate system. Determine the state of the target to be detected according to the first velocity value, wherein the state of the target to be detected includes a stationary state or a moving state. Determine a second velocity value of the ground center point of the target to be detected at the first moment according to the state of the target to be detected. Determine the position information of the target to be detected in the current frame image according to the second velocity value.
[0006] In an embodiment of the present application, the domain controller can determine the state of the target to be detected based on the estimated speed value of the target to be detected at the first moment, i.e., the above-mentioned first speed value, and can adopt different methods to determine the actual speed value of the target to be detected at the first moment, i.e., the above-mentioned second speed value, according to the state of the target to be detected. Further, the position information of the target to be detected can be determined according to the second speed value. Through the above method, the domain controller can determine the speed value of the target to be detected through the motion state of the target to be detected, and then determine the position information of the target to be detected. The position information of the target to be detected determined by it is more accurate, which effectively improves the coordinate stability of the target to be detected, reduces the jitter of its coordinates during the target detection process, and thus generates a smoother motion trajectory.
[0007] In combination with the first aspect, in a feasible implementation, the obtaining of a first velocity value of a grounding center point of a target to be detected in a current frame image at a first moment includes: obtaining a first coordinate value of a grounding center point of a target to be detected in a current frame image in a global coordinate system. If it is determined according to the first coordinate value that the target to be detected has a matching historical motion trajectory, obtaining a first velocity value of the grounding center point of the target to be detected at the first moment.
[0008] In combination with the first aspect, in a feasible implementation method, determining the second speed value of the grounding center point of the target to be detected at the first moment according to the state of the target to be detected includes: if it is determined that the state of the target to be detected is the motion state, updating the Kalman filter parameters of the grounding center point according to the grounding center point of the target to be detected, and determining the second speed value of the grounding center point of the target to be detected at the first moment according to the updated Kalman filter parameters.
[0009] In combination with the first aspect, in a feasible implementation method, the method also includes: if it is determined that the state of the target to be detected is the stationary state, obtaining the historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images, and determining the second speed value of the grounding center point of the target to be detected at the first moment based on the historical speed values at the at least two historical moments.
[0010] In combination with the first aspect, in a feasible implementation method, determining the second speed value of the grounding center point of the target to be detected at the first moment based on the historical speed values at the at least two historical moments includes: determining the average speed value of the historical speed values at the at least two historical moments as the second speed value of the grounding center point of the target to be detected at the first moment.
[0011] In combination with the first aspect, in a feasible implementation, before determining that the target to be detected has a matching historical motion trajectory according to the first coordinate value, the method further includes: determining the Euclidean distance of the ground center point according to the first coordinate value, and generating a target matching matrix. Determine whether the target to be detected has a matching historical motion trajectory according to the target matching matrix.
[0012] In combination with the first aspect, in a feasible implementation, determining the state of the target to be detected according to the first speed value includes: if it is determined that the first speed value is less than a preset speed threshold, determining that the state of the target to be detected is a stationary state. If it is determined that the first speed value is greater than or equal to the preset speed threshold, determining that the state of the target to be detected is a moving state.
[0013] In combination with the first aspect, in a feasible implementation, the obtaining of the first velocity value of the grounding center point of the target to be detected at the first moment corresponding to the current frame image includes: obtaining a second coordinate value of the grounding center point of the target to be detected at a second moment adjacent to the first moment, wherein the second moment is prior to the first moment. The first velocity value of the grounding center point of the target to be detected at the first moment corresponding to the current frame image is determined according to the difference between the first coordinate value and the second coordinate value and the time difference between the first moment and the second moment.
[0014] In combination with the first aspect, in a feasible implementation, the obtaining of the first coordinate value of the grounding center point of the target to be detected in the current frame image in the global coordinate system includes: determining the target to be detected in the current frame image based on multiple frames of original images captured by a fisheye camera, wherein the current frame image is obtained by splicing the original images at the first moment in the multiple frames of original images. Obtain at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system. The average value of the at least two third coordinate values is determined as the first coordinate value of the grounding center point of the target to be detected.
[0015] In combination with the first aspect, in a feasible implementation, obtaining at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system includes: obtaining a sub-image corresponding to the target to be detected in the current frame image, wherein the sub-image of the target to be detected includes the target to be detected. Determine at least two fourth coordinate values of the grounding point of the target to be detected in the current frame image based on the sub-image. Convert the at least two fourth coordinate values into at least two fifth coordinate values in the vehicle rear axle coordinate system corresponding to the vehicle. Determine the third coordinate value of the grounding point of the target to be detected in the global coordinate system based on the at least two fifth coordinate values and the mileage information of the vehicle.
[0016] In combination with the first aspect, in a feasible implementation, the position information includes the coordinate value of the grounding point of the target to be detected, and determining the position information of the target to be detected in the current frame image according to the second speed value includes: determining the sixth coordinate value of the grounding point of the target to be detected in the global coordinate system according to the second speed value. Converting the sixth coordinate value into a seventh coordinate value in the vehicle rear axle coordinate system corresponding to the vehicle. Determining the eighth coordinate value of the grounding point of the target to be detected in the current frame image according to the seventh coordinate value.
[0017] In a second aspect, an embodiment of the present application provides a target detection device, which includes: an acquisition unit, used to acquire a first velocity value of a ground center point of a target to be detected in a current frame image at a first moment, wherein the first moment is associated with the acquisition moment of the current frame image, and the first velocity value is a velocity value in a global coordinate system. A processing unit, used to determine a state of the target to be detected based on the first velocity value, wherein the state of the target to be detected includes a stationary state or a moving state. The processing unit is also used to determine a second velocity value of the ground center point of the target to be detected at the first moment based on the state of the target to be detected. The processing unit is also used to determine the position information of the target to be detected in the current frame image based on the second velocity value.
[0018] In conjunction with the second aspect, in a feasible implementation, the processing unit is further used to obtain a first coordinate value of a grounding center point of the target to be detected in the current frame image in a global coordinate system. The acquisition unit is further used to obtain a first velocity value of the grounding center point of the target to be detected at the first moment if it is determined that the target to be detected has a matching historical motion trajectory according to the first coordinate value.
[0019] In combination with the second aspect, in a feasible implementation method, the processing unit is also used to update the Kalman filter parameters of the grounding center point according to the grounding center point of the target to be detected if it is determined that the state of the target to be detected is the motion state, and determine the second speed value of the grounding center point of the target to be detected at the first moment according to the updated Kalman filter parameters.
[0020] In combination with the second aspect, in a feasible implementation method, the processing unit is also used to obtain historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images if it is determined that the state of the target to be detected is the stationary state, and determine the second speed value of the grounding center point of the target to be detected at the first moment based on the historical speed values at the at least two historical moments.
[0021] In combination with the second aspect, in a feasible implementation, the processing unit is also used to determine the average speed value of the historical speed values at the at least two historical moments as the second speed value of the grounding center point of the target to be detected at the first moment.
[0022] In conjunction with the second aspect, in a feasible implementation, the processing unit is further configured to determine the Euclidean distance of the ground center point according to the first coordinate value and generate a target matching matrix. The processing unit is further configured to determine whether the target to be detected has a matching historical motion trajectory according to the target matching matrix.
[0023] In conjunction with the second aspect, in a feasible implementation, the processing unit is further configured to determine that the state of the target to be detected is a stationary state if it is determined that the first speed value is less than a preset speed threshold. The processing unit is further configured to determine that the state of the target to be detected is a moving state if it is determined that the first speed value is greater than or equal to the preset speed threshold.
[0024] In combination with the second aspect, in a feasible implementation, the acquisition unit is further used to acquire a second coordinate value of the grounding center point of the target to be detected at a second moment adjacent to the first moment, wherein the second moment is prior to the first moment. The processing unit is further used to determine a first velocity value of the grounding center point of the target to be detected at a first moment corresponding to the current frame image according to a difference between the first coordinate value and the second coordinate value and a time difference between the first moment and the second moment.
[0025] In combination with the second aspect, in a feasible implementation, the processing unit is further used to determine the target to be detected in the current frame image based on the multiple frames of original images captured by the fisheye camera, wherein the current frame image is obtained by splicing the original images at the first moment in the multiple frames of original images. The acquisition unit is also used to obtain at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system. The processing unit is also used to determine the average value of the at least two third coordinate values as the first coordinate value of the grounding center point of the target to be detected.
[0026] In combination with the second aspect, in a feasible implementation, the acquisition unit is further used to acquire a sub-image corresponding to the target to be detected in the current frame image, wherein the sub-image of the target to be detected includes the target to be detected. The processing unit is further used to determine at least two fourth coordinate values of the grounding point of the target to be detected in the current frame image based on the sub-image. The processing unit is further used to convert the at least two fourth coordinate values into at least two fifth coordinate values in the vehicle rear axle coordinate system corresponding to the vehicle. The processing unit is further used to determine the third coordinate value of the grounding point of the target to be detected in the global coordinate system based on the at least two fifth coordinate values and the mileage information of the vehicle.
[0027] In combination with the second aspect, in a feasible implementation, the processing unit is further used to determine a sixth coordinate value of the grounding point of the target to be detected in the global coordinate system according to the second speed value. The processing unit is further used to convert the sixth coordinate value into a seventh coordinate value in the vehicle rear axle coordinate system corresponding to the vehicle. The processing unit is further used to determine an eighth coordinate value of the grounding point of the target to be detected in the current frame image according to the seventh coordinate value.
[0028] In the third aspect, an embodiment of the present application provides a computer-readable storage medium, which is used to store a computer program. When the computer program is run on a computer, the computer executes the target detection method provided by any possible implementation method in the first aspect above, and can also achieve the beneficial effects of the target detection method provided by the first aspect.
[0029] In a fourth aspect, an embodiment of the present application provides a target detection device, the electronic device may include a processor and a memory, the processor and the memory are connected to each other. The memory is used to store a computer program, and the processor is configured to execute the computer program to implement the target detection method provided in the first aspect, and can also achieve the beneficial effects of the target detection method provided in the first aspect.
[0030] In a fifth aspect, an embodiment of the present application provides a vehicle, which may include the target detection device provided in the fourth aspect above.
[0031] By implementing the embodiment of the present invention, the domain controller can determine the state of the target to be detected based on the estimated speed value of the target to be detected at the first moment, that is, the above-mentioned first speed value, and can adopt different methods to determine the actual speed value of the target to be detected at the first moment, that is, the above-mentioned second speed value, according to the state of the target to be detected. Further, the position information of the target to be detected can be determined according to the second speed value. Through the above method, the domain controller can determine the speed value of the target to be detected through the motion state of the target to be detected, and then determine the position information of the target to be detected. The position information of the target to be detected determined by it is more accurate, which effectively improves the coordinate stability of the target to be detected, reduces the jitter of its coordinates during the target detection process, and thus generates a smoother motion trajectory. BRIEF DESCRIPTION OF THE DRAWINGS
[0032] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0033] Figure 1 It is a flowchart of a target detection method provided in an embodiment of the present application;
[0034] Figure 2 is a structural schematic diagram of a target detection device provided in an embodiment of the present application;
[0035] Figure 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application;
[0036] Figure 4 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0037] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application.
[0038] In existing target detection schemes, after obtaining the position information, i.e., the coordinates, of the target, the motion trajectory of the target is usually smoothed by simply weighting the coordinates of the adjacent historical frame trajectories. However, this trajectory smoothing method is simple and crude, and the calculated position of the target to be detected may have deviations, resulting in poor coordinate stability of the motion trajectory. Therefore, the technical problem to be solved by this application is: how to improve the coordinate stability of the motion trajectory of the target to be detected.
[0039] See also Figure 1 , Figure 1 is a flowchart of a target detection method provided by an embodiment of the present application. Optionally, the method can be executed by a domain controller of a vehicle. It should be understood that the method provided by the present application can also be executed by other devices with data processing and control capabilities, and the present application does not limit this. For ease of understanding, the method provided by the present application will be described below using a domain controller as an example. Figure 1 As shown, the method may include the following steps:
[0040] S101, obtaining a first velocity value of a grounding center point of a target to be detected in a current frame image at a first moment.
[0041] In some feasible implementations, the domain controller of the vehicle may obtain a first velocity value of the grounding center point of the target to be detected in the current frame image at a first moment. Here, the first velocity value is a velocity value in a global coordinate system.
[0042] It should be understood that the targets to be detected determined by the domain controller are obstacles existing around the vehicle, such as vehicles, pedestrians, etc.
[0043] It should be noted that the time corresponding to the current frame image may be the starting time corresponding to when the domain controller starts to execute the target detection method.
[0044] In an optional implementation, the domain controller may first obtain the first coordinate value of the grounding center point of the target to be detected in the current frame image in the global coordinate system. Further, if the domain controller determines that the first coordinate value determines that the target to be detected has a matching historical motion trajectory, the domain controller may obtain the first velocity value of the grounding center point of the target to be detected at the first moment.
[0045] In an optional implementation, the domain controller may first determine the target to be detected in the current frame image based on multiple frames of original images captured by a fisheye camera installed on the vehicle. Here, the current frame original image may be obtained by splicing the original images at the first moment in the multiple frames of original images. Furthermore, the domain controller may first obtain at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system, and may determine the average value of the at least two third coordinate values as the first coordinate value of the grounding center point of the target to be detected.
[0046] The multiple frames of original images are fisheye images captured by a fisheye camera installed on the vehicle. It should be noted that one or more fisheye cameras may be installed on the vehicle to capture images of the environment around the vehicle. When the multiple frames of original images are captured by multiple fisheye cameras, the domain controller may splice the multiple frames of original images to obtain the current frame image or the historical frame image.
[0047] For example, assuming that the domain controller determines that the target to be detected is vehicle A, and assuming that the four third coordinate values of the grounding point of vehicle A obtained by the domain controller in the global coordinate system are (P1, P2, P3, P4), the domain controller can determine the first coordinate value P0 of the grounding center point of the target to be detected as:
[0048]
[0049] Among them, P1, P2, P3, and P4 represent the ground contact point coordinates of the left front wheel, left rear wheel, right rear wheel, and right front wheel of vehicle A, respectively.
[0050] Optionally, the domain controller may determine the target to be detected in the current frame image according to the multiple frames of original images through a target detection algorithm.
[0051] Optionally, the domain controller may also identify the category, location, size and other related information of the target to be detected through the above target detection algorithm. For example, the domain controller may identify the category of the target to be detected as a pedestrian through the target detection algorithm. For another example, the domain controller may identify the location of the target to be detected as being on the left side of the vehicle through the target detection algorithm.
[0052] Optionally, after the domain controller identifies the category of the target to be detected through the target detection algorithm, it can obtain the identification information corresponding to the target to be detected. It should be understood that the identification information of the target to be detected can be used to indicate the category of the target to be detected, and the identification information of different targets to be detected is also different.
[0053] For example, when the target to be detected is vehicle A, its identification information may be 01. For another example, when the target to be detected is vehicle B, its identification information may be 02.
[0054] Optionally, the above-mentioned target detection algorithm may include a you only look once (YOLO) series algorithm, a single shot multiBox detector (SSD) algorithm, etc., and the embodiment of the present application does not impose any specific restrictions on this.
[0055] In an optional implementation, after the domain controller determines the target to be detected in the current frame image, the domain controller may first obtain the sub-image corresponding to the target to be detected in the multiple frames of original images. Here, the sub-image of the target to be detected may include the above-mentioned target to be detected. Then, the domain controller may determine at least two fourth coordinate values of the grounding point of the target to be detected in the current frame image based on the sub-image. It should be understood that the at least two fourth coordinate values are the coordinate values of the target to be detected in the image coordinate system. The domain controller may then convert the at least two fourth coordinate values into at least two fifth coordinate values in the vehicle rear axle coordinate system corresponding to the vehicle. Further, the domain controller may determine the third coordinate value of the grounding point of the target to be detected in the global coordinate system based on the at least two fifth coordinate values and the mileage information of the vehicle.
[0056] It should be noted that the image coordinate system is a coordinate system established with any point in the fisheye image captured by the fisheye camera as the origin.
[0057] The vehicle rear axle coordinate system is a coordinate system established with the center of the rear axle of the vehicle on which the above-mentioned fisheye camera is installed as the origin, with the positive direction of the x-axis forward along the longitudinal axis of the vehicle body and the positive direction of the y-axis perpendicular to the longitudinal axis of the vehicle body to the left.
[0058] The global coordinate system is a coordinate system established with the position where the above-mentioned vehicle starts to travel as the origin.
[0059] In an optional implementation, after the domain controller determines the target to be detected in the current frame image, the domain controller can determine the first sub-image corresponding to the target to be detected in multiple frames of original images according to the target to be detected, and can determine the first sub-image as the sub-image corresponding to the target to be detected. It should be understood that the first sub-image of the target to be detected may include the target to be detected.
[0060] Optionally, after determining the first sub-image corresponding to the target to be detected, the domain controller may expand the length or width of the first sub-image by a certain ratio to obtain a second sub-image, and determine the second sub-image as the sub-image of the target to be detected. In this way, the obtained sub-image of the target to be detected can more completely include the target to be detected, so as to improve the accuracy of target detection.
[0061] Specifically, after obtaining the sub-image of the target to be detected, the domain controller can determine at least two fourth coordinate values of the target to be detected based on the sub-image through a preset ground point recognition model. Further, the domain controller determines at least two fifth coordinate values of the target to be detected in the vehicle rear axle coordinate system corresponding to the vehicle based on the internal and external parameters of the vehicle's fisheye camera and the at least two fourth coordinate values through a closed-form solution of the projection model. Further, the domain controller can determine the third coordinate value of the ground point of the target to be detected in the global coordinate system based on the at least two fifth coordinate values and the mileage information of the vehicle.
[0062] It should be understood that the coordinate values of the grounding point of the above-mentioned target to be detected are different in different coordinate systems, but the relative position relationship thereof remains unchanged.
[0063] In the above implementation, the domain controller directly performs ground point identification in the original image taken by the fisheye camera to obtain the ground point coordinates of the target to be detected, so as to realize the detection of the target to be detected, instead of acting on the surround view image obtained by the original image after distortion correction, projection transformation, image stitching, etc., thereby avoiding artificial or systematic errors and improving the recognition accuracy of the detection algorithm.
[0064] In an optional implementation, if the domain controller determines that there is a matching historical detection trajectory of the target to be detected based on the first coordinate value, the second coordinate value of the ground center point of the target to be detected at the second moment adjacent to the first moment corresponding to the current frame image can be obtained. Here, the second moment is prior to the first moment. Further, the domain controller can determine the first speed value of the target to be detected at the first moment corresponding to the current frame image based on the difference between the first coordinate value and the second coordinate value and the time difference between the first moment and the second moment.
[0065] Optionally, before the domain controller determines whether the target to be detected has a matching historical motion trajectory, the domain controller may first calculate a matching process according to a target matching matrix to determine whether the target to be detected has a matching historical motion trajectory. The target matching matrix is determined by the Euclidean distance of the ground center point of the target to be detected.
[0066] In an optional implementation, the domain controller may calculate the matching process according to the target matching matrix by using the Hungarian bipartite graph matching algorithm to achieve matching between the target to be detected and the historical motion trajectory. That is, the domain controller may determine whether there is a matching historical motion trajectory for the target to be detected by using the above method.
[0067] Optionally, after matching the target to be detected with the historical motion trajectory, the domain controller can divide the historical motion trajectory into a list of trajectories in detection and a list of lost trajectories according to the detection status. The list of trajectories in detection refers to trajectories that have always matched the target to be detected, and the list of lost trajectories refers to trajectories that have not matched the target to be detected.
[0068] Furthermore, the domain controller may perform a first Hungarian match between the list of trajectories being detected and the target to be detected, and match them according to the preset first Euclidean distance matching threshold of the ground center point, and obtain three types of data: the target to be detected that successfully matched for the first time, the target to be detected that failed to match for the first time, and the trajectory that failed to match for the first time. Then, the domain controller may add the target to be detected that successfully matched for the first time to the list of trajectories being detected, and the domain controller may first delete the trajectory that failed to match for the first time from the list of trajectories being detected, and then determine the number of times the trajectory that failed to match has been lost. If the maximum number of times of being lost is exceeded, the trajectory is completely deleted. If the maximum number of times of being lost is not exceeded, it is added to the list of lost trajectories.
[0069] Furthermore, a second Hungarian match is performed for the target to be detected that failed the first match and the track in the track list that was lost. The domain controller performs matching based on the preset second Euclidean distance matching threshold of the ground center point, and three types of data can be obtained: the target to be detected that successfully matched the second time, the target to be detected that failed the second match, and the track that failed the second match. Then, the domain controller can add the target to be detected that successfully matched the second time to the track list being detected, and the domain controller can first delete the track that failed the second match from the track list being detected, and then determine the number of times the track that failed the second match was lost. If the maximum number of times of being lost is exceeded, the track is completely deleted. If it does not exceed the maximum number of times of being lost, it can be added to the track list that was lost.
[0070] Optionally, for the target to be detected that fails to match for the second time, the domain controller may regard it as a new target to be detected, reallocate new identification information to it, and add it to the trajectory list being detected to determine whether there is a matching historical trajectory for it.
[0071] In the above implementation, the domain controller uses the Euclidean distance of the ground center point of the target to be detected as the matching matrix, which can avoid introducing a large number of invalid areas in the matching process and thus affecting the performance of the target detection algorithm, thereby improving the accuracy of the target detection algorithm.
[0072] S102: Determine the state of the target to be detected according to the first speed value.
[0073] In some feasible implementations, the domain controller may determine the state of the target to be detected according to the first speed value of the target to be detected at the first moment corresponding to the current frame image. The state of the target to be detected may include a stationary state or a moving state.
[0074] Optionally, if the domain controller determines that the first speed value of the target to be detected at the first moment corresponding to the current frame image is less than a preset speed threshold, the state of the target to be detected can be determined to be a stationary state. If the domain controller determines that the first speed value is greater than or equal to the preset speed threshold, the state of the target to be detected can be determined to be a moving state.
[0075] The preset speed threshold may be an empirical value obtained through multiple experiments, and the preset speed threshold may be a factory default of the domain controller of the vehicle.
[0076] S103, determining a second velocity value of the ground contact center point of the target to be detected at the first moment according to the state of the target to be detected.
[0077] In some feasible implementations, after determining the state of the target to be detected, the domain controller may determine a second speed value of the grounding center point of the target to be detected at a first moment according to the state of the target to be detected.
[0078] In an optional implementation, if the domain controller determines that the state of the target to be detected is a stationary state, it can first obtain the historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images, and can determine the second speed value of the grounding center point of the target to be detected at the above-mentioned first moment based on the historical speed values at the at least two historical moments.
[0079] Specifically, the domain controller may determine the average speed value of the historical speed values at the at least two historical moments as the second speed value of the grounding center point of the target to be detected at the first moment.
[0080] Optionally, if the domain controller determines that the state of the target to be detected is a stationary state, it may first obtain the historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images, and further determine the average value as the speed value of the grounding center point of the target to be detected at the first moment. Further, the domain controller may determine the speed value of the grounding center point of the target to be detected at the first moment as the second speed value of the grounding point of the target to be detected at the first moment.
[0081] In another optional implementation, if the domain controller determines that the state of the target to be detected is a moving state, it can update the Kalman filter parameters of the grounding center point of the target to be detected according to the grounding center point of the target to be detected, and can further determine the second speed value of the grounding center point of the target to be detected at the first moment according to the updated Kalman filter parameters.
[0082] Specifically, if the domain controller determines that the state of the target to be detected is a moving state, the Kalman filter parameters of the grounding center point of the target to be detected can be updated according to the first coordinate value of the grounding center point of the target to be detected in the global coordinate system, and the Kalman filter parameters of the grounding center point of the target to be detected can be determined as the Kalman filter parameters of the grounding point of the target to be detected. Further, the domain controller can update the second speed value of the grounding point of the target to be detected at the first moment according to the Kalman filter parameters of the grounding center point of the target to be detected.
[0083] It should be noted that since the target to be detected (such as obstacles such as vehicles) has rigid properties, that is, the motion properties of each point of the target to be detected are consistent, the motion state (that is, the motion speed) of at least one grounding point of the target to be detected is the same as the motion state of the grounding center point of the target to be detected.
[0084] S104: Determine the position information of the target to be detected in the current frame image according to the second speed value.
[0085] In some feasible implementations, the domain controller may determine the position information of the target to be detected in the current frame image according to the second speed value of the grounding point of the target to be detected at the first moment.
[0086] In an optional implementation, when the position information includes the coordinates of the grounding point of the target to be detected in the current frame image, after the domain controller determines the second speed value of the grounding point of the target to be detected at the first moment, the domain controller can determine the motion trajectory of the target to be detected at the first moment and the sixth coordinate value according to the second speed value. The sixth coordinate value is the coordinate of the target to be detected in the global coordinate system.
[0087] Further, the domain controller may convert the sixth coordinate value into a seventh coordinate value in the vehicle rear axle coordinate system corresponding to the vehicle. Specifically, the domain controller may determine the seventh coordinate value of the target to be detected in the vehicle rear axle coordinate system corresponding to the vehicle according to the sixth coordinate value through a closed-form solution of the projection model.
[0088] Further, the domain controller can determine the eighth coordinate value of the grounding point of the target to be detected in the current frame image according to the seventh coordinate value, that is, determine the position information of the target to be detected in the current frame image. Specifically, the domain controller can determine the eighth coordinate value of the target to be detected in the image coordinate system according to the internal and external parameters of the fisheye camera of the vehicle and the seventh coordinate value.
[0089] In an embodiment of the present application, the domain controller can determine the state of the target to be detected based on the estimated speed value of the target to be detected at the first moment, i.e., the above-mentioned first speed value, and can adopt different methods to determine the actual speed value of the target to be detected at the first moment, i.e., the above-mentioned second speed value, according to the state of the target to be detected. Further, the position information of the target to be detected can be determined according to the second speed value. Through the above method, the domain controller can determine the speed value of the target to be detected through the motion state of the target to be detected, and then determine the position information of the target to be detected. The position information of the target to be detected determined by it is more accurate, which effectively improves the coordinate stability of the target to be detected, reduces the jitter of its coordinates during the target detection process, and thus generates a smoother motion trajectory.
[0090] See also Figure 2 , Figure 2 Schematic diagram of the structure of a target detection device provided in an embodiment of the present application. Figure 2 As shown, the target detection device 20 may include a processing unit 21 and an acquisition unit 22 .
[0091] In a specific implementation, the acquisition unit 22 is used to acquire a first velocity value of the ground center point of the target to be detected in the current frame image at a first moment, wherein the first moment is associated with the acquisition moment of the current frame image, and the first velocity value is a velocity value in the global coordinate system. The processing unit 21 is used to determine the state of the target to be detected according to the first velocity value, wherein the state of the target to be detected includes a stationary state or a moving state. The processing unit 21 is also used to determine a second velocity value of the ground center point of the target to be detected at the first moment according to the state of the target to be detected. The processing unit 21 is also used to determine the position information of the target to be detected in the current frame image according to the second velocity value.
[0092] In a feasible implementation, the processing unit 21 is further used to obtain a first coordinate value of the grounding center point of the target to be detected in the current frame image in the global coordinate system. The acquisition unit 22 is further used to obtain a first velocity value of the grounding center point of the target to be detected at a first moment if it is determined that there is a matching historical motion trajectory of the target to be detected according to the first coordinate value.
[0093] In a feasible implementation, the processing unit 21 is also used to update the Kalman filter parameters of the grounding center point according to the grounding center point of the target to be detected if it is determined that the state of the target to be detected is a moving state, and determine the second speed value of the grounding center point of the target to be detected at the first moment according to the updated Kalman filter parameters.
[0094] In a feasible implementation, the processing unit 21 is also used to obtain historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images if it is determined that the state of the target to be detected is a stationary state, and determine the second speed value of the grounding center point of the target to be detected at the first moment based on the historical speed values at at least two historical moments.
[0095] In a feasible implementation, the processing unit 21 is further configured to determine an average speed value of historical speed values at at least two historical moments as a second speed value of the grounding center point of the target to be detected at the first moment.
[0096] In a feasible implementation, the processing unit 21 is further configured to determine the Euclidean distance of the ground center point according to the first coordinate value and generate a target matching matrix. The processing unit 21 is further configured to determine whether the target to be detected has a matching historical motion trajectory according to the target matching matrix.
[0097] In a feasible implementation, the processing unit 21 is further configured to determine that the state of the target to be detected is a stationary state if the first speed value is determined to be less than a preset speed threshold. The processing unit 21 is further configured to determine that the state of the target to be detected is a moving state if the first speed value is determined to be greater than or equal to the preset speed threshold.
[0098] In a feasible implementation, the acquisition unit 22 is further used to acquire a second coordinate value of the grounding center point of the target to be detected at a second moment adjacent to the first moment, wherein the second moment is prior to the first moment. The processing unit 21 is further used to determine a first velocity value of the grounding center point of the target to be detected at a first moment corresponding to the current frame image according to a difference between the first coordinate value and the second coordinate value and a time difference between the first moment and the second moment.
[0099] In a feasible implementation, the processing unit 21 is further used to determine the target to be detected in the current frame image according to the multiple frames of original images captured by the fisheye camera, wherein the current frame image is obtained by splicing the original images at the first moment in the multiple frames of original images. The acquisition unit 22 is further used to acquire at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system. The processing unit 21 is further used to determine the average value of the at least two third coordinate values as the first coordinate value of the grounding center point of the target to be detected.
[0100] In a feasible implementation, the acquisition unit 22 is also used to acquire a sub-image corresponding to the target to be detected in the current frame image, wherein the sub-image of the target to be detected contains the target to be detected. The processing unit 21 is also used to determine at least two fourth coordinate values of the grounding point of the target to be detected in the current frame image based on the sub-image. The processing unit 21 is also used to convert the at least two fourth coordinate values into at least two fifth coordinate values in the vehicle rear axle coordinate system corresponding to the vehicle. The processing unit 21 is also used to determine the third coordinate value of the grounding point of the target to be detected in the global coordinate system based on the at least two fifth coordinate values and the mileage information of the vehicle.
[0101] In a feasible implementation, the processing unit 21 is further used to determine a sixth coordinate value of the grounding point of the target to be detected in the global coordinate system according to the second speed value. The processing unit 21 is further used to convert the sixth coordinate value into a seventh coordinate value in the vehicle rear axle coordinate system corresponding to the vehicle. The processing unit 21 is further used to determine an eighth coordinate value of the grounding point of the target to be detected in the current frame image according to the seventh coordinate value.
[0102] See also Figure 3 , Figure 3 3 is a schematic diagram of the structure of an electronic device provided in an embodiment of the present application. The electronic device may be a domain controller in the above embodiment, and may be used to implement the steps of the target detection method performed by the domain controller described in the above embodiment. The electronic device may include: a processor 31, a memory 32, and a bus system 33.
[0103] The memory 32 includes but is not limited to RAM, ROM, EPROM or CD-ROM, and is used to store relevant instructions and data. The memory 32 stores the following elements, executable modules or data structures, or their subsets, or their extended sets:
[0104] Operation instructions: include various operation instructions, used to implement various operations.
[0105] Operating system: includes various system programs used to implement various basic businesses and handle hardware-based tasks.
[0106] Figure 3 Only one memory is shown in the figure, of course, the memory can also be set to multiple as needed.
[0107] like Figure 3 As shown, the electronic device may further include an input / output device 34, which may be a communication module or a transceiver circuit. In the embodiment of the present application, the input / output device 34 is used to execute the process of transmitting and receiving data or signaling such as speed values involved in the embodiment.
[0108] The processor 31 may be a controller, a CPU, a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component or any combination thereof. It may implement or execute various exemplary logic blocks, modules and circuits described in conjunction with the disclosure of the embodiments of the present application. The processor 31 may also be a combination that implements a computing function, such as a combination of one or more microprocessors, a combination of a DSP and a microprocessor, and the like.
[0109] In a specific application, the components of the electronic device are coupled together through the bus system 33, wherein the bus system 33 may include a power bus, a control bus, a status signal bus, etc. in addition to the data bus. Figure 3 In FIG. 3 , various buses are labeled as bus system 33. Figure 3 The drawing is only schematic.
[0110] It should be noted that in practical applications, the processor in the embodiment of the present application can be an integrated circuit chip with signal processing capabilities. In the implementation process, each step of the above method embodiment can be completed by an integrated logic circuit of hardware in the processor or an instruction in the form of software. The above processor can be a general-purpose processor, a digital signal processor (digital signal processor, DSP), an application specific integrated circuit (application specific integrated circuit, ASIC), a field programmable gate array (field programmable gate array, FPGA) or other programmable logic devices, discrete gates or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed.
[0111] It can be understood that the memory in the embodiments of the present application can be a volatile memory or a non-volatile memory, or can include both volatile and non-volatile memories. Among them, the non-volatile memory can be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory can be a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available, such as static random access memory (static RAM, SRAM), dynamic random access memory (dynamic RAM, DRAM), synchronous dynamic random access memory (synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (double data rate SDRAM, DDR SDRAM), enhanced synchronous dynamic random access memory (enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (synchlink DRAM, SLDRAM) and direct memory bus random access memory (directrambus RAM, DR RAM). It should be noted that the memory described in the embodiments of the present application is intended to include but is not limited to these and any other suitable types of memory.
[0112] The embodiment of the present application further provides a computer-readable storage medium on which a computer program is stored. When the computer program is executed by a computer, the method or steps performed by the domain controller in the above embodiment are implemented.
[0113] The embodiment of the present application also provides a computer program product, which, when executed by a computer, implements the method or steps executed by the domain controller in the above embodiment.
[0114] The present application also provides a vehicle, see Figure 4 , Figure 4 Schematic diagram of a vehicle structure provided by an embodiment of the present application. Figure 4 As shown, the vehicle may include the target detection device described in the above embodiment. The vehicle may also include a plurality of wheels, a seat, an on-board power supply, electrical equipment, etc.
[0115] It should be noted that, for the sake of simplicity, the embodiments of any of the above-mentioned target detection methods are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some of its steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions involved are not necessarily required by the present application.
[0116] The terms "first", "second", etc. in the specification and claims of this application and the above-mentioned drawings are used to distinguish different objects, rather than to describe a specific order. In addition, the terms "including" and "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 is not limited to the listed steps, but optionally includes steps that are not listed, or optionally includes other steps inherent to these processes, methods, products or devices.
[0117] Reference to "embodiments" herein means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those skilled in the art that the embodiments described herein may be combined with other embodiments.
[0118] Although the present application is described herein in conjunction with various embodiments, in the process of implementing the present application to be protected, those skilled in the art may understand and implement other changes to the disclosed embodiments by viewing the drawings, the disclosure, and the appended claims. In the claims, the word "comprising" does not exclude other components or steps, and "one" or "a" does not exclude multiple situations. Certain measures are recorded in different dependent claims, but this does not mean that these measures cannot be combined to produce good results.
[0119] Those skilled in the art can understand that all or part of the steps in the various methods of the method embodiments of any of the above-mentioned target detection methods can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable memory, and the memory can include: a flash drive, a read-only memory (English: Read-Only Memory, abbreviated as: ROM), a random access memory (English: Random Access Memory, abbreviated as: RAM), a disk or an optical disk, etc.
[0120] The embodiments of the present application are introduced in detail above. Specific examples are used herein to illustrate the principles and implementation methods of a target detection method, device, computer-readable storage medium and vehicle of the present application. The description of the above embodiments is used to help understand the method and core idea of the present application. At the same time, for a person skilled in the art, according to the idea of a target detection method, device, computer-readable storage medium and vehicle of the present application, there may be changes in the specific implementation method and scope of application. In summary, the content of this specification should not be understood as a limitation on the present application.
[0121] Those skilled in the art should be aware that in one or more of the above examples, the functions described in this application can be implemented in hardware, software, firmware, or any combination thereof. When implemented in software, these functions can be stored in a computer-readable medium or transmitted as one or more instructions or codes on a computer-readable medium. Computer-readable media include computer storage media and communication media, wherein communication media include any media that facilitates the transmission of computer programs from one place to another. Storage media can be any available media that can be accessed by general or special-purpose computers.
[0122] The specific implementation methods described above further illustrate the purpose, technical solutions and beneficial effects of the present application in detail. It should be understood that the above description is only the specific implementation methods of the present application and is not intended to limit the scope of protection of the present application. Any modifications, equivalent substitutions, improvements, etc. made on the basis of the technical solutions of the present application should be included in the scope of protection of the present application.
Claims
1. A target detection method, It is characterized in that Applied to a domain controller of a vehicle, the method comprises: Acquire a first velocity value of a ground center point of a target to be detected in a current frame image at a first moment, wherein the first moment is associated with a moment of acquisition of the current frame image, and the first velocity value is a velocity value in a global coordinate system; Determining a state of the target to be detected according to the first speed value, wherein the state of the target to be detected includes a stationary state or a moving state; Determine a second velocity value of a grounding center point of the target to be detected at the first moment according to the state of the target to be detected; The position information of the target to be detected in the current frame image is determined according to the second speed value.
2. The method according to claim 1, It is characterized in that The step of obtaining a first velocity value of a grounding center point of a target to be detected in a current frame image at a first moment includes: Obtaining a first coordinate value of a ground center point of a target to be detected in a current frame image in a global coordinate system; If it is determined according to the first coordinate value that the target to be detected has a matching historical motion trajectory, a first velocity value of the grounding center point of the target to be detected at the first moment is acquired.
3. The method according to claim 1 or 2, It is characterized in that The step of determining a second velocity value of a grounding center point of the target to be detected at the first moment according to the state of the target to be detected includes: If it is determined that the state of the target to be detected is the motion state, the Kalman filter parameters of the grounding center point are updated according to the grounding center point of the target to be detected, and the second speed value of the grounding center point of the target to be detected at the first moment is determined according to the updated Kalman filter parameters.
4. The method according to claim 3, It is characterized in that The method further comprises: If it is determined that the state of the target to be detected is the stationary state, the historical speed values of the grounding center point of the target to be detected at at least two historical moments corresponding to at least two historical frame images are obtained, and the second speed value of the grounding center point of the target to be detected at the first moment is determined based on the historical speed values at the at least two historical moments.
5. The method according to claim 4, It is characterized in that The determining, according to the historical speed values at the at least two historical moments, a second speed value of the grounding center point of the target to be detected at the first moment comprises: The average speed value of the historical speed values at the at least two historical moments is determined as the second speed value of the grounding center point of the target to be detected at the first moment.
6. The method according to claim 2, It is characterized in that Before determining that the target to be detected has a matching historical motion trajectory according to the first coordinate value, the method further includes: Determine the Euclidean distance of the ground center point according to the first coordinate value, and generate a target matching matrix; It is determined whether the target to be detected has a matching historical motion trajectory according to the target matching matrix.
7. The method according to any one of claims 1 to 5, It is characterized in that The determining the state of the target to be detected according to the first speed value includes: If it is determined that the first speed value is less than a preset speed threshold, determining that the state of the target to be detected is a stationary state; If it is determined that the first speed value is greater than or equal to the preset speed threshold, it is determined that the state of the target to be detected is a moving state.
8. The method according to claim 2, It is characterized in that The obtaining of a first velocity value of a grounding center point of the target to be detected at the first moment includes: Acquire a second coordinate value of a grounding center point of the target to be detected at a second moment adjacent to the first moment, wherein the second moment is prior to the first moment; A first velocity value of the grounding center point of the target to be detected at the first moment is determined according to the difference between the first coordinate value and the second coordinate value and the time difference between the first moment and the second moment.
9. The method according to claim 2, It is characterized in that The step of obtaining a first coordinate value of a ground center point of the target to be detected in the current frame image in a global coordinate system includes: Determine a target to be detected in a current frame image according to multiple frames of original images captured by a fisheye camera, wherein the current frame image is obtained by splicing original images at the first moment in the multiple frames of original images; Acquire at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system; An average value of the at least two third coordinate values is determined as a first coordinate value of the grounding center point of the target to be detected.
10. The method according to claim 9, It is characterized in that The obtaining of at least two third coordinate values of the grounding point of the target to be detected in the global coordinate system includes: Acquire a sub-image corresponding to the target to be detected in the current frame image, wherein the sub-image of the target to be detected includes the target to be detected; Determine at least two fourth coordinate values of the grounding point of the target to be detected in the current frame image according to the sub-image; Converting the at least two fourth coordinate values into at least two fifth coordinate values in a vehicle rear axle coordinate system corresponding to the vehicle; At least two third coordinate values of the touchdown point of the target to be detected in the global coordinate system are determined according to the at least two fifth coordinate values and the mileage information of the vehicle.
11. The method according to claim 1, It is characterized in that The position information includes the coordinate value of the grounding point of the target to be detected, and determining the position information of the target to be detected in the current frame image according to the second speed value includes: Determine a sixth coordinate value of the grounding point of the target to be detected in the global coordinate system according to the second speed value; Converting the sixth coordinate value into a seventh coordinate value in a vehicle rear axle coordinate system corresponding to the vehicle; An eighth coordinate value of the grounding point of the target to be detected in the current frame image is determined according to the seventh coordinate value.
12. A target detection device, It is characterized in that The device comprises: an acquisition unit, configured to acquire a first velocity value of a ground center point of a target to be detected in a current frame image at a first moment, wherein the first moment is associated with a moment of acquisition of the current frame image, and the first velocity value is a velocity value in a global coordinate system; a processing unit, configured to determine a state of the target to be detected according to the first speed value, wherein the state of the target to be detected includes a stationary state or a moving state; The processing unit is further used to determine a second speed value of a grounding center point of the target to be detected at the first moment according to the state of the target to be detected; The processing unit is further used to determine the position information of the target to be detected in the current frame image according to the second speed value.
13. A target detection device, It is characterized in that The method comprises a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method according to any one of claims 1 to 11 when executing the computer program.
14. A computer-readable storage medium, It is characterized in that Used to store a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 11.
15. A vehicle, It is characterized in that The vehicle comprises the object detection device as claimed in claim 12.
Citation Information
Cited By
Target tracking method and device, electronic equipment and storage medium
CN119810153A
