Parking space position updating method and device, electronic equipment and storage medium
By merging multi-frame visual detection results and joint optimization of vehicle poses, the problems of single-frame detection instability and pose calculation divergence are solved, and the accuracy and safety of automatic parking are improved.
Patent Information
- Application Number
- CN202410705287.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-03
- Publication Date
- 2024-08-23
AI Technical Summary
In existing automatic parking technology, there is instability in single-frame visual detection, which affects the accuracy and safety of parking space detection, and the divergence of vehicle pose calculations leads to a decrease in parking accuracy.
By merging multi-frame visual parking space detection results to reduce noise and interference, combined with the observation frame collection of visual parking spaces and vehicle poses, joint optimization is performed to improve the vehicle's accuracy of target parking space location information.
It improves the accuracy, stability and efficiency of parking, reduces the problem of vehicle pose divergence, and improves the stability and accuracy of parking space detection.
Smart Images

Figure CN118537841A
Abstract
Description
Technical Field
[0001] The present invention relates to the field of data processing technology, and in particular to a parking space position updating method, device, electronic equipment and storage medium. Background Art
[0002] Automatic parking is an important function in the field of autonomous driving. It integrates multiple technologies such as sensor technology, computer vision, and control algorithms. It can assist drivers to complete parking operations more conveniently and safely, and improve parking efficiency and safety. However, there are two problems in the existing automatic parking technology:
[0003] (1) In vision-based parking systems, single-frame visual detection is usually used. However, due to the influence of factors such as lighting conditions, camera angles, and shadows, single-frame visual detection often has unstable problems, which may lead to deviations in the results of parking space detection and recognition, thereby affecting the accuracy and safety of parking.
[0004] (2) When a vehicle is parking, the vehicle's posture calculated by the wheel speed meter or posture sensor will gradually diverge, resulting in the vehicle being unable to accurately enter the target parking space and even the risk of a collision. Summary of the invention
[0005] The present invention provides a parking space position updating method, device, electronic device and storage medium. By fusing multi-frame visual parking space detection results, the influence of noise and interference in single-frame visual detection is reduced, and the stability of parking space detection is improved. At the same time, a set of observation frames coupled with multi-frame visual parking spaces and vehicle postures is used to jointly optimize the target parking space and vehicle posture during parking, which can effectively control the problem of gradual divergence of vehicle posture, improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle searching for a parking space, and thus effectively improve the accuracy, stability and efficiency of parking.
[0006] According to one aspect of the present invention, a method for updating a parking space position is provided, the method comprising:
[0007] When the vehicle observation features meet the preset positioning joint optimization conditions, the current observation frame after time alignment is determined according to the visual parking space detection results and the vehicle posture;
[0008] Determine the parking space reprojection error and the vehicle posture error corresponding to the target parking space according to the joint optimization parameters and the observation frame set including the current observation frame;
[0009] According to the parking space reprojection error and the vehicle posture error, the position information of the optimized target parking space relative to the vehicle is determined.
[0010] According to another aspect of the present invention, a parking space position updating device is provided, the device comprising:
[0011] An observation frame determination module is used to determine the current observation frame after time alignment according to the visual parking space detection result and the vehicle posture when the vehicle observation feature meets the preset positioning joint optimization condition;
[0012] An error determination module, used for determining a parking space reprojection error and a vehicle posture error corresponding to a target parking space according to a joint optimization parameter and an observation frame set including a current observation frame;
[0013] The parking space position updating module is used to determine the position information of the optimized target parking space relative to the vehicle based on the parking space reprojection error and the vehicle posture error.
[0014] According to another aspect of the present invention, an electronic device is provided, the electronic device comprising:
[0015] at least one processor; and
[0016] a memory communicatively connected to the at least one processor; wherein,
[0017] The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parking space position updating method described in any embodiment of the present invention.
[0018] According to another aspect of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the parking space position updating method described in any embodiment of the present invention when executed.
[0019] The technical solution of the embodiment of the present invention reduces the influence of noise and interference in single-frame visual detection and improves the stability of parking space detection by fusing multi-frame visual parking space detection results; at the same time, a set of observation frames that couple multi-frame visual parking spaces and vehicle postures is used to jointly optimize the target parking space and vehicle posture during the parking process, which can effectively control the problem of gradual divergence of the vehicle posture and improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle's parking space search, thereby effectively improving the accuracy, stability and efficiency of parking.
[0020] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present invention, nor are they intended to limit the scope of the present invention. Other features of the present invention will become easily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS
[0021] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0022] Figure 1 is a flow chart of a parking space position updating method provided according to the first embodiment of the present invention;
[0023] Figure 2 is a flow chart of a parking space position updating method provided according to Embodiment 2 of the present invention;
[0024] Figure 3 is a flow chart of a parking space position updating method provided according to Embodiment 3 of the present invention;
[0025] Figure 4 is a flowchart of a parking space detection and matching method provided according to Embodiment 3 of the present invention;
[0026] Figure 5 is a flowchart of a method for associating a visual parking space with a vehicle posture provided in accordance with Embodiment 3 of the present invention;
[0027] Figure 6 is a flowchart of a parking space updating method provided according to Embodiment 3 of the present invention;
[0028] Figure 7 is a schematic diagram of a parking space coordinate system conversion provided according to Embodiment 3 of the present invention;
[0029] Figure 8 is a schematic diagram of the structure of a parking space position updating device provided according to a fourth embodiment of the present invention;
[0030] Fig. 9 It is a structural schematic diagram of an electronic device for implementing the parking space position updating method according to an embodiment of the present invention. DETAILED DESCRIPTION
[0031] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0032] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. 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 or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0033] Embodiment 1
[0034] Figure 1 This is a flow chart of a parking space position update method provided in the first embodiment of the present invention. This embodiment can be applied to the situation where the position information of the target parking space relative to the vehicle is jointly optimized and updated by combining the visual parking space and the vehicle posture during the parking process. The method can be executed by a parking space position update device, which can be implemented in the form of hardware and / or software. The parking space position update device can be configured in an electronic device, such as but not limited to a vehicle-mounted device. Figure 1 As shown, a parking space location updating method provided in the first embodiment specifically includes the following steps:
[0035] S110: When the vehicle observation features meet the preset positioning joint optimization conditions, determine the current observation frame after time alignment according to the visual parking space detection results and the vehicle posture.
[0036] Among them, the vehicle observation characteristics can be understood as the vehicle observation information obtained in real time during the parking process. Exemplarily, the vehicle observation characteristics may include but are not limited to: the vehicle displacement distance between the previous frame (the timestamp corresponding to the previous visual detection) and the current frame (the timestamp corresponding to the current visual detection), the vehicle head offset angle between the previous frame and the current frame, the time interval between the previous observation frame and the current frame, etc.
[0037] The preset positioning joint optimization condition may refer to a pre-configured judgment condition for determining whether to perform joint optimization based on the vehicle observation features of the current frame, that is, whether it is necessary to combine the visual parking space and the vehicle posture to jointly optimize and update the position information of the target parking space relative to the vehicle. The preset positioning joint optimization condition may include at least one of the following: detecting that the vehicle displacement distance exceeds a preset distance threshold; detecting that the vehicle head offset angle exceeds a preset angle threshold; detecting that the time interval for which no observation frame is added exceeds a preset time threshold.
[0038] The visual parking space detection result may refer to the visual parking space information detected from the visual parking space image collected by the vehicle visual detection system. The visual parking space detection result may include but is not limited to the following information: the number of parking spaces, the coordinates of the four corner points of each parking space, the four parking space line equations of each parking space, etc.
[0039] The vehicle posture may refer to the information related to the vehicle posture, such as the vehicle position information and heading angle, obtained through attitude solution based on the acceleration, angular velocity and other data collected by the vehicle's Inertial Measurement Unit (IMU).
[0040] The current observation frame may refer to the observation result obtained by binding the visual parking space detection result and the vehicle posture after time alignment (i.e., time synchronization) when the vehicle observation features of the current frame meet the preset positioning joint optimization conditions. That is, a new observation frame is added. The current observation frame couples the two parts of information, visual parking space and vehicle posture, and is an important data input for the subsequent joint optimization.
[0041] In an embodiment of the present invention, during the parking process of the vehicle, the vehicle visual detection system and IMU can be controlled to collect the vehicle's visual parking space image and IMU sensor data in real time, and then the above data are processed accordingly to obtain the corresponding visual parking space detection result and vehicle posture; then, the acquired vehicle observation features and preset positioning joint optimization conditions are used to determine whether it is necessary to combine the visual parking space and vehicle posture to perform joint optimization and update on the position information of the target parking space relative to the vehicle. Specifically, if the vehicle observation features do not meet the preset positioning joint optimization conditions, there is no need to perform subsequent joint optimization processes until a new observation frame is added; if the vehicle observation features meet the preset positioning joint optimization conditions, the time-aligned visual parking space detection results and vehicle posture are bound to the current observation frame.
[0042] It should be understood that the data collected by sensors such as the vehicle visual detection system and IMU are not necessarily strictly synchronized in time. Therefore, when adding a new observation frame, i.e., the current observation frame, it is necessary to first determine the consistency of the timestamps corresponding to the visual parking detection results and the vehicle posture. If the timestamps of the two are consistent, the visual parking detection results and the vehicle posture are directly bound to the current observation frame; if the timestamps of the two are inconsistent, the timestamps of the visual parking detection results are used as the reference to perform time alignment on the visual parking detection results and bind the time-aligned visual parking detection results and the vehicle posture to the current observation frame. By ensuring the temporal synchronization of the visual parking detection results and the vehicle posture, the stability of the subsequent joint optimization can be improved, thereby improving the accuracy of the position information of the target parking space relative to the vehicle during the vehicle search for parking spaces, thereby improving the accuracy and stability of parking.
[0043] S120. Determine a parking space reprojection error and a vehicle posture error corresponding to the target parking space according to the joint optimization parameters and an observation frame set including the current observation frame.
[0044] Among them, the joint optimization parameters may refer to some optimization parameters involved in the joint optimization process, and the joint optimization parameters may include: parking space optimization parameters such as the four target optimization corner point coordinates and four target optimization parking space line equations for the target parking space, as well as vehicle posture optimization parameters such as the target optimized vehicle position (vehicle position x-component and y-component) and the target optimized heading angle for the vehicle posture.
[0045] The observation frame set may refer to a set consisting of a current observation frame and several historical observation frames. The target parking space may refer to a parking space where a vehicle is to be parked.
[0046] The parking space reprojection error may refer to the error between the actual parking space observation value and the parking space optimization parameter for the target parking space, and the parking space reprojection error may at least include: parking space corner point error and parking space line error. The vehicle posture error may refer to the error between the actual vehicle posture observation value and the vehicle posture optimization parameter for the vehicle posture, and the vehicle posture error may at least include: heading angle error and position distance error.
[0047] In an embodiment of the present invention, joint optimization parameters and historically added observation frames, i.e., historical observation frames, can be obtained from a storage unit configured in the vehicle, such as a memory of a vehicle electronic control unit (ECU), and then the obtained several historical observation frames and the newly added current observation frames are constructed into an observation frame set, and then the observation frame set and the joint optimization parameters are used to call a pre-configured error calculation model or error calculation formula to determine the parking space reprojection error and vehicle posture error corresponding to the target parking space. In a specific embodiment, the parking space reprojection error and vehicle posture error corresponding to the target parking space can be determined based on the obtained joint optimization parameters and the constructed observation frame set by respectively calling the pre-configured parking space reprojection error determination formula and the vehicle posture error determination formula.
[0048] S130: Determine the position information of the optimized target parking space relative to the vehicle according to the parking space reprojection error and the vehicle posture error.
[0049] In an embodiment of the present invention, after determining the parking space reprojection error and the vehicle posture error, the loss function corresponding to the parking space reprojection error and the vehicle posture error can be continuously adjusted and optimized by calling a preset joint optimization algorithm such as a gradient descent method, a least squares method, and a Newton method, and when the loss function is minimized, the target parking space position information and the vehicle posture information after joint optimization are obtained. Since the coordinate system corresponding to the optimized target parking space position information and the vehicle posture information at this time is the same as the coordinate system corresponding to the target parking space position information and the vehicle posture of the current observation frame (before optimization) required to be used by the subsequent automatic parking planning control algorithm, the two are located The reference systems are different, that is, the automatic parking planning and control algorithm cannot directly use the optimized target parking space position information and vehicle posture information as data input. Therefore, it is necessary to convert the optimized target parking space position information to the coordinate system where the vehicle posture of the current observation frame is located after optimization, and then use the vehicle posture of the current observation frame (before optimization) to convert the target parking space position information after the above coordinate conversion to the starting coordinate system again, and then obtain the position information of the optimized target parking space relative to the vehicle, so that the subsequent automatic parking planning and control algorithm can adjust and control the vehicle posture more accurately according to the optimized target parking space position information, thereby improving the accuracy and efficiency of parking.
[0050] The technical solution of the embodiment of the present invention reduces the influence of noise and interference in single-frame visual detection and improves the stability of parking space detection by fusing multi-frame visual parking space detection results; at the same time, a set of observation frames that couple multi-frame visual parking spaces and vehicle postures is used to jointly optimize the target parking space and vehicle posture during the parking process, which can effectively control the problem of gradual divergence of the vehicle posture and improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle's parking space search, thereby effectively improving the accuracy, stability and efficiency of parking.
[0051] Further, based on the above-mentioned embodiment of the invention, before determining the time-aligned current observation frame according to the visual parking space detection result and the vehicle posture in S110, it also includes:
[0052] Acquire the visual parking space image collected by the vehicle visual detection system;
[0053] Calling a preset parking space detection model to determine a visual parking space detection result corresponding to the visual parking space image;
[0054] The visual parking space detection result of the current frame is matched with the visual parking space detection result of the historical frame, and the parking spaces belonging to the same parking space position between different frames are associated according to the parking space matching result.
[0055] The vehicle visual detection system may include but is not limited to image acquisition devices such as a front-view camera and a surround-view camera for acquiring visual parking space images. The preset parking space detection model may refer to a pre-configured model for detecting parking spaces from acquired visual parking space images and generating corresponding visual parking space detection results. The preset parking space detection model may include but is not limited to: Faster RCNN model, Mask-RCNN model, YOLO model, Resnet model, GoogLeNet model, etc.
[0056] In an embodiment of the present invention, during the parking process of a vehicle, a vehicle visual detection system such as a surround camera system can be controlled to collect the vehicle's environmental perception data, i.e., a visual parking space image, in real time, and then the collected visual parking space image is input into a preset parking space detection model, and the corresponding visual parking space detection result is obtained after model processing, such as the number of parking spaces contained in the visual parking space image, the four corner point coordinates of each parking space, the four parking space line equations of each parking space, and other visual parking space information; then, by comparing the visual parking space detection result of the current frame with the visual parking space detection result of the historical frame, for example, by comparing the parking space position, shape, and type information of the previous and subsequent frames, the visual parking spaces in the visual parking space image can be matched, and the parking spaces belonging to the same parking space position between different frames can be associated, and the parking spaces can be numbered. Furthermore, in the process of parking space matching and inter-frame association, some false detection information can be excluded in advance, the noise of subsequent multi-frame joint optimization can be reduced, and the joint optimization effect can be effectively improved.
[0057] Embodiment 2
[0058] Figure 2 This is a flow chart of a parking space location update method provided in Embodiment 2 of the present invention, which is further optimized and expanded based on the above-mentioned implementation mode and can be combined with various optional technical solutions in the above-mentioned implementation mode. Figure 2 As shown, a parking space position updating method provided in the second embodiment specifically includes the following steps:
[0059] S210, obtaining vehicle observation features, and when it is determined that the vehicle observation features meet the preset positioning joint optimization conditions, respectively extracting the first timestamp and the second timestamp corresponding to the visual parking space detection result and the vehicle posture.
[0060] In an embodiment of the present invention, during the parking process of the vehicle, the vehicle's driving status information can be collected in real time to obtain the vehicle observation features corresponding to the vehicle, and then it is determined whether the vehicle observation features meet the preset positioning joint optimization conditions. If so, the first timestamp and the second timestamp corresponding to the visual parking space detection result and the vehicle posture are extracted respectively, that is, the corresponding timestamps of the visual parking space image of the vehicle and the IMU sensor data are collected respectively; if not, there is no need to extract the timestamp information of the two, and wait until the next time a new vehicle observation feature is obtained, and the above judgment process is executed again.
[0061] S220: When the first timestamp and the second timestamp are consistent, the visual parking space detection result and the vehicle posture are bound to the current observation frame.
[0062] In an embodiment of the present invention, when the extracted first timestamp and the second timestamp are consistent, it indicates that the sensor data collected by the vehicle visual detection system and the IMU are synchronized in time. Therefore, the visual parking space detection result and the vehicle posture corresponding to the current frame (current moment) can be directly bound to the current observation frame.
[0063] S230. When the first timestamp and the second timestamp are inconsistent, obtain the two frames of vehicle pose information closest to the first timestamp in the preset vehicle pose set, and then use the vehicle uniform motion based on the constant speed and angular velocity to interpolate the vehicle pose information between the two frames of vehicle pose information, and bind the visual parking space detection result and the vehicle pose corresponding to the first timestamp obtained after interpolation as the current observation frame.
[0064] In an embodiment of the present invention, when the extracted first timestamp and the second timestamp are inconsistent, it indicates that the sensor data collected by the vehicle visual detection system and the IMU are not strictly synchronized in time. Therefore, it is necessary to perform time alignment processing on the collected visual parking space detection results and vehicle postures. Specifically, based on the first timestamp t_vis corresponding to the current visual parking space detection result, the two frames of vehicle posture information closest to it are found in the preset vehicle posture set, and the timestamps are recorded as t1_dr and t2_dr respectively. Then, the vehicle posture information between t1_dr and t2_dr is interpolated using the uniform motion of the vehicle based on the constant speed and angular velocity, and then the vehicle posture corresponding to the first timestamp t_vis is determined. Finally, the visual parking space detection result and the vehicle posture corresponding to the first timestamp t_vis are bound to the current observation frame.
[0065] S240 , respectively obtain historical observation frames and joint optimization parameters, and construct each historical observation frame and the current observation frame into an observation frame set.
[0066] In the embodiment of the present invention, the joint optimization parameters and the historical observation frames can be obtained from the memory of the vehicle ECU respectively, and then the obtained several historical observation frames and the newly added current observation frame are constructed into an observation frame set OBS=U i∈(0,n) O i (n is the number of observation frames), each observation frame O in the observation frame set i Both of them couple the visual parking space and vehicle posture information, and are important data inputs for subsequent joint optimization.
[0067] Furthermore, the joint optimization parameters may include parking space optimization parameters and vehicle posture optimization parameters. The specific parameters are described as follows:
[0068] 1) Parking space optimization parameters include:
[0069] pt0,pt1,pt2,pt3,line 01 ,line 12 ,line 23 ,line 30
[0070] Among them, pt j (j∈(0,1,2,3)) represents the coordinates of the jth target optimized corner point of the target parking space. Each corner point has 2 parameters, recorded as X and Y (i.e., the horizontal and vertical coordinates of the corner point); line k (k∈(01,12,23,30)) represents the kth target optimized parking space line equation of the target parking space, which can be expressed in a general form. There are 3 parameters in each target optimized parking space line equation, which are recorded as A, B, and C.
[0071] 2) Vehicle posture optimization parameters include:
[0072] U i∈(0,n) x i ,y i ,θ i
[0073] Among them, x i and i Respectively represent the i-th observation frame O i The corresponding target optimizes the x and y components of the vehicle position; θ i represents the i-th observation frame O i The corresponding target optimized heading angle.
[0074] It should be noted that the coordinate systems corresponding to the above joint optimization parameters are all vehicle coordinate systems relative to the parking starting point, which is recorded as the starting point coordinate system in this embodiment.
[0075] S250. Based on the joint optimization parameters and the observation frame set, the preset parking space corner point error determination formula, the preset parking space line error determination formula, the preset heading angle error determination formula and the preset position distance error determination formula are called respectively to determine the parking space corner point error, parking space line error, heading angle error and position distance error corresponding to the target parking space, and the parking space corner point error and parking space line error are used as the parking space reprojection error, and the heading angle error and position distance error are used as the vehicle posture error.
[0076] Among them, the parking space reprojection error may include the parking space corner point error and the parking space line error, and the vehicle posture error may include the heading angle error and the position distance error. The parking space corner point error represents the error between the target optimization corner point coordinates to be optimized and the actual observed corner point coordinates (in the observation frame). The parking space line error represents the distance between the actual observed corner point coordinates converted to the starting point coordinate system and the target optimization parking space line to be optimized. The heading angle error represents the error between the target optimization heading angle to be optimized and the actual observed heading angle. The position distance error represents the error between the target optimization vehicle position to be optimized and the actual observed vehicle position.
[0077] In an embodiment of the present invention, based on the acquired joint optimization parameters and the constructed observation frame set, the corresponding preset parking space corner point error determination formula, preset parking space line error determination formula, preset heading angle error determination formula and preset position distance error determination formula can be called respectively to determine the parking space corner point error, parking space line error, heading angle error and position distance error corresponding to the target parking space.
[0078] Further, based on the above-mentioned embodiments of the invention, the preset parking space corner point error determination formula can be expressed as:
[0079]
[0080] in, represents the i-th observation frame O i The corresponding parking space corner error; represents the i-th observation frame O i The corresponding jth actual observed corner point coordinates; T i represents the transformation relationship from the i-th observation frame coordinate system to the starting point coordinate system, and Indicates T i The inverse matrix of .
[0081] The formula for determining the preset parking space line error can be expressed as:
[0082]
[0083] in, represents the i-th observation frame O iThe corresponding parking space line error; Dis(·) represents the distance calculation function from point to line.
[0084] The preset heading angle error determination formula can be expressed as:
[0085]
[0086] in, represents the i-th observation frame O i The corresponding heading angle error; represents the i-th observation frame O i The corresponding actual observed heading angle.
[0087] The preset position distance error determination formula can be expressed as:
[0088]
[0089] in, represents the i-th observation frame O i The corresponding position distance error; dis(·) represents the point-to-point distance calculation function; P i represents the i-th observation frame O i The corresponding target optimizes the vehicle position, including x i and i , that is, the x-component and y-component of the vehicle position to be optimized (unknown quantity to be optimized); P(O i ) represents the i-th observation frame O i The corresponding actual observed vehicle position includes and That is, the i-th observation frame O i The actual observed x component and the actual observed y component corresponding to the vehicle position (known actual observed values).
[0090] S260, calling a preset joint optimization algorithm to optimize and adjust the loss function corresponding to the parking space reprojection error and the vehicle posture error, and when the loss function reaches a minimum, obtaining the first optimized target parking space position and the optimized vehicle posture of the current observation frame.
[0091] Among them, the preset joint optimization algorithm may refer to a pre-configured algorithm for optimizing the corresponding loss function according to the parking space reprojection error and the vehicle posture error. The preset joint optimization algorithm may include but is not limited to: gradient descent method, least squares method, Newton method, etc.
[0092] The first optimized target parking space position can be understood as the target parking space position obtained after jointly optimizing the target parking space and the vehicle posture during the parking process.
[0093] The vehicle pose of the current observation frame after optimization can be understood as the current vehicle pose obtained after joint optimization, that is, the vehicle pose corresponding to the last observation frame after optimization (nth frame).
[0094] In the embodiment of the present invention, when determining the parking space corner error Parking line error Heading angle error and position distance error Afterwards, the corresponding loss function Loss can be determined first, where the loss function Loss can be expressed in a variety of forms, such as the mean squared error loss function (MSE), logarithmic loss function, mean absolute error loss function, etc., which can be set accordingly according to actual needs, and this embodiment does not make specific limitations on this.
[0095] Taking the mean square error loss function (MSE) as an example, the loss function in this embodiment can be expressed as follows:
[0096]
[0097] Where W1, W2, W3 and W4 represent loss weights.
[0098] Next, by calling the preset joint optimization algorithms such as gradient descent method, least squares method, Newton method, etc., the loss weight in the above loss function Loss is continuously adjusted and optimized, and when the loss function Loss is minimized, the first optimized target parking space position after joint optimization and the vehicle posture of the current observation frame after optimization are obtained. Among them, the first optimized target parking space position can be expressed as Q new =(pt0,pt1,pt2,pt3,line 01 ,line 12 ,line 23 ,line 30 ) 1ew ; After optimization, the vehicle posture of the current observation frame can be expressed as (x n ,y n ,θn) new It can be understood that the first optimized target parking space position obtained at this time and the vehicle posture of the current observation frame after optimization are both based on the starting point coordinate system.
[0099] S270: Convert the first optimized target parking space position to the coordinate system where the vehicle posture of the optimized current observation frame is located to obtain the second optimized target parking space position.
[0100] In the embodiment of the present invention, since the subsequent automatic parking planning control algorithm cannot directly use the optimized target parking space position information and vehicle posture information as data input, it is necessary to first obtain the first optimized target parking space position Q after the joint optimization. new Convert to the coordinate system of the vehicle posture in the current observation frame after optimization to obtain the second optimized target parking space position The specific coordinate transformation formula is as follows:
[0101]
[0102] In the formula, It represents the conversion relationship from the starting point coordinate system to the optimized nth vehicle pose (i.e. the vehicle pose of the current observation frame after optimization) coordinate system.
[0103] S280. Using the vehicle posture of the current observation frame, the position of the second optimized target parking space is converted to the starting point coordinate system, thereby obtaining the position information of the optimized target parking space relative to the vehicle.
[0104] In the embodiment of the present invention, after the first optimized target parking space position Q new Switch to the second optimized target parking space position Afterwards, the vehicle posture of the current observation frame (before optimization) can be used to convert the second optimized target parking space position Convert to the starting coordinate system to obtain the optimized target parking space relative to the vehicle position information The specific coordinate transformation formula is as follows:
[0105]
[0106] In the formula, Represents the transformation relationship from the coordinate system of the nth observation frame (vehicle posture before optimization) to the starting point coordinate system.
[0107] The technical solution of the embodiment of the present invention can improve the stability of subsequent joint optimization by binding the time-aligned visual parking space detection results and the vehicle posture as the current observation frame when the vehicle observation characteristics meet the preset positioning joint optimization conditions, thereby improving the accuracy of the position information of the target parking space relative to the vehicle during the vehicle search for a parking space; by fusing the visual parking space detection results of multiple frames, the influence of noise and interference in single-frame visual detection is reduced, and the stability and accuracy of parking space detection are improved; at the same time, by using the observation frame set that couples the multi-frame visual parking space and vehicle posture, the target parking space and vehicle posture in the parking process are jointly optimized, which can effectively control the problem of gradual divergence of the vehicle posture, improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle search for a parking space, and provide reliable visual parking space perception information and accurate vehicle posture information for the automatic parking planning control algorithm, thereby effectively improving the accuracy, stability and efficiency of parking.
[0108] Embodiment 3
[0109] Figure 3 This is a flowchart of a parking space position update method provided in Example 3 of the present invention. Based on the above examples, this example provides an implementation method of a parking space position update method, which can realize the joint optimization and update of the position information of the target parking space relative to the vehicle in combination with the visual parking space and the vehicle posture during the parking process, improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle search for parking spaces, effectively reduce the error of the target parking space during the search for parking spaces, and ensure that the automatic parking planning control algorithm can make more accurate adjustments to the vehicle posture, thereby improving the accuracy, stability and efficiency of parking. Figure 3 As shown, a parking space position updating method provided by Embodiment 3 of the present invention specifically includes the following steps:
[0110] S310: Perform parking space detection according to the visual parking space image collected by the vehicle visual detection system to obtain a visual parking space detection result.
[0111] In the embodiment of the present invention, Figure 4 As shown, S310 mainly includes the following three steps: ① parking space detection; ② parking space frame reconstruction; ③ parking space matching and inter-frame association. Specifically, deep learning technology can be used, such as calling the existing parking space detection neural network model to detect and classify the parking spaces in the collected visual parking space images, and reconstructing, screening and correcting the parking space frames with abnormal detection through post-processing algorithms such as non-maximum suppression (NMS). As the observation quantity for subsequent optimization, it is necessary to try to ensure the detection rate and accuracy of the single-frame visual parking space.
[0112] By comparing the parking space positions, shapes and types of the previous and next frames, the visual parking spaces are matched, and the parking spaces belonging to the same parking space position in different frames are associated and numbered. In order to improve the stability of visual detection, some false detection information can also be excluded in advance, reducing the noise of subsequent multi-frame joint optimization, and effectively improving the joint optimization effect.
[0113] S320: When the vehicle observation features meet the preset positioning joint optimization conditions, determine the current observation frame after time alignment according to the visual parking space detection results and the vehicle posture, and construct an observation frame set.
[0114] In the embodiment of the present invention, Figure 5 As shown, S320 mainly includes the following three steps: ① timestamp retrieval; ② vehicle posture interpolation; ③ adding observation frames. Specifically, based on the first timestamp t_vis corresponding to the current visual parking space detection result, the two frames of vehicle posture information closest to it can be found in the preset vehicle posture set, and the timestamps are recorded as t1_dr and t2_dr respectively, and then the vehicle posture information between t1_dr and t2_dr is interpolated based on the uniform motion of the vehicle with constant speed and angular velocity, and then the vehicle posture corresponding to the first timestamp t_vis is determined. Time alignment of the visual parking space detection result and the vehicle posture is an important step to improve the stability of subsequent joint optimization.
[0115] In addition, a variety of preset positioning joint optimization conditions can be set according to actual application requirements. When the conditions are met, the visual parking space detection result and the vehicle posture corresponding to the current frame are bound and added as a new observation frame, namely the current observation frame, denoted as O. i , and construct the corresponding observation frame set OBS = U i∈(0,n) O i (n is the number of observation frames). Each observation frame in the observation frame set couples the visual parking space and vehicle posture information, which is an important data input for subsequent joint optimization.
[0116] S330. Based on the joint optimization parameters and the observation frame set, the preset parking space corner point error determination formula, the preset parking space line error determination formula, the preset heading angle error determination formula and the preset position distance error determination formula are respectively called to determine the parking space corner point error, parking space line error, heading angle error and position distance error corresponding to the target parking space.
[0117] S340: Based on the parking space corner point error, the parking space line error, the heading angle error and the position distance error, the target parking space position and the vehicle posture during the parking process are jointly optimized to obtain the optimized position information of the target parking space relative to the vehicle.
[0118] In the embodiment of the present invention, Figure 6As shown in FIG, S340 mainly includes the following three steps: ① Jointly optimize the target parking space and the parking posture of multiple frames of the vehicle; ② Adjust the relative target parking space of the last observation frame; ③ Convert the adjusted target parking space to the starting coordinate system. Specifically, by constructing a joint optimization problem, the target parking space and the vehicle posture during the parking process are optimized to obtain the first optimized target parking space position Q new , and the vehicle pose of the current observation frame after optimization.
[0119] Since the subsequent automatic parking planning control algorithm cannot directly use the optimized target parking space position information Q new and vehicle posture information as data input, so it is necessary to optimize the first target parking space position Q new Perform coordinate system conversion. Figure 7 This is a schematic diagram of a parking space coordinate system conversion provided by the third embodiment of the present invention. Figure 7 As shown, in order to facilitate the data input of the automatic parking planning control algorithm, the parking spaces need to be new (i.e. the above Q new ) to (i.e. the above ) in the coordinate system to ensure parking space new The relative position relationship between the optimized vehicle posture and The relative position relationship between the vehicle posture and the position before optimization is consistent. Specifically, the first optimized target parking space position Q new Convert to the coordinate system of the vehicle posture in the current observation frame after optimization to obtain the second optimized target parking space position Then use the vehicle posture of the current observation frame (before optimization) to calculate the position of the second optimized target parking space. Convert to the starting coordinate system to obtain the optimized target parking space relative to the vehicle position information
[0120] The technical solution of the embodiment of the present invention can provide jointly optimized target parking space position information in real time during the parking process. Compared with ordinary single-frame visual perception, it has higher stability and accuracy, and can effectively reduce the error of the target parking space during the parking space search process, ensuring that the automatic parking planning and control algorithm can adjust the vehicle posture more accurately. In addition, this technical solution can not only optimize the target parking space, but also optimize the vehicle posture during the parking process, and can provide the automatic parking planning and control algorithm with reliable visual parking space perception information and accurate vehicle posture information, which can simplify the parking strategy and effectively improve the accuracy, stability and efficiency of parking.
[0121] Embodiment 4
[0122] Figure 8This is a schematic diagram of the structure of a parking space position updating device provided in Embodiment 4 of the present invention. Figure 8 As shown, the device comprises:
[0123] An observation frame determination module 41 is used to determine a current observation frame after time alignment according to the visual parking space detection result and the vehicle posture when the vehicle observation feature meets the preset positioning joint optimization condition;
[0124] An error determination module 42, configured to determine a parking space reprojection error and a vehicle posture error corresponding to a target parking space according to the joint optimization parameters and an observation frame set including a current observation frame;
[0125] The parking space position updating module 43 is used to determine the position information of the optimized target parking space relative to the vehicle according to the parking space reprojection error and the vehicle posture error.
[0126] The technical solution of the embodiment of the present invention reduces the influence of noise and interference in single-frame visual detection and improves the stability of parking space detection by fusing multi-frame visual parking space detection results; at the same time, a set of observation frames that couple multi-frame visual parking spaces and vehicle postures is used to jointly optimize the target parking space and vehicle posture during the parking process, which can effectively control the problem of gradual divergence of the vehicle posture and improve the accuracy of the position information of the target parking space relative to the vehicle during the vehicle's parking space search, thereby effectively improving the accuracy, stability and efficiency of parking.
[0127] Furthermore, based on the above-mentioned embodiment of the invention, the parking space position updating device further includes:
[0128] An image acquisition module, used to acquire a visual parking space image acquired by a vehicle visual detection system;
[0129] A parking space detection module is used to call a preset parking space detection model to determine a visual parking space detection result corresponding to a visual parking space image;
[0130] The parking space matching and association module is used to match the visual parking space detection results of the current frame with the visual parking space detection results of the historical frames, and associate the parking spaces belonging to the same parking space position between different frames according to the parking space matching results.
[0131] Further, based on the above-mentioned embodiment of the invention, the observation frame determination module 41 includes:
[0132] A timestamp extraction unit is used to obtain the vehicle observation feature, and when it is determined that the vehicle observation feature meets the preset positioning joint optimization condition, respectively extract the first timestamp and the second timestamp corresponding to the visual parking space detection result and the vehicle posture;
[0133] A first observation frame binding unit, used for binding the visual parking space detection result and the vehicle posture as the current observation frame when the first timestamp and the second timestamp are consistent;
[0134] The second observation frame binding unit is used to obtain two frames of vehicle posture information closest to the first timestamp in the preset vehicle posture set when the first timestamp and the second timestamp are inconsistent, and then use the vehicle uniform motion based on the constant speed and angular velocity to interpolate the vehicle posture information between the two frames of vehicle posture information, and bind the visual parking space detection result and the vehicle posture corresponding to the first timestamp obtained after interpolation as the current observation frame.
[0135] Further, based on the above-mentioned embodiment of the invention, the error determination module 42 includes:
[0136] An observation frame set construction unit, used to obtain historical observation frames and joint optimization parameters respectively, and construct each historical observation frame and current observation frame into an observation frame set;
[0137] The error determination unit is used to call the preset parking space corner point error determination formula, the preset parking space line error determination formula, the preset heading angle error determination formula and the preset position distance error determination formula respectively based on the joint optimization parameters and the observation frame set, determine the parking space corner point error, parking space line error, heading angle error and position distance error corresponding to the target parking space, and use the parking space corner point error and parking space line error as the parking space reprojection error, and use the heading angle error and position distance error as the vehicle posture error.
[0138] Further, based on the above-mentioned embodiment of the invention, the preset parking space corner point error determination formula is expressed as:
[0139]
[0140] in, represents the i-th observation frame O i The corresponding parking space corner error; pt j Represents the jth target optimized corner point coordinates of the target parking space; represents the i-th observation frame O i The corresponding jth actual observed corner point coordinates; T i Represents the transformation relationship from the i-th observation frame coordinate system to the starting point coordinate system;
[0141] The formula for determining the preset parking space line error is expressed as:
[0142]
[0143] in, represents the i-th observation frame O i Corresponding parking space line error; linek represents the kth target optimized parking space line equation of the target parking space; Dis(·) represents the distance calculation function from point to line;
[0144] The preset heading angle error determination formula is expressed as:
[0145]
[0146] in, represents the i-th observation frame O i The corresponding heading angle error; θ i represents the i-th observation frame O i The corresponding target optimized heading angle; represents the i-th observation frame O i The corresponding actual observed heading angle;
[0147] The preset position distance error determination formula is expressed as:
[0148]
[0149] in, represents the i-th observation frame O i The corresponding position distance error; dis(·) represents the point-to-point distance calculation function; P i represents the i-th observation frame O i The corresponding target optimized vehicle position; P(O i ) represents the i-th observation frame O i The corresponding actual observed vehicle position.
[0150] Further, based on the above-mentioned embodiment of the invention, the parking space position updating module 43 includes:
[0151] A joint optimization unit is used to call a preset joint optimization algorithm to optimize and adjust the loss function corresponding to the parking space reprojection error and the vehicle posture error, and obtain the first optimized target parking space position and the optimized vehicle posture of the current observation frame when the loss function reaches a minimum;
[0152] A first coordinate system conversion unit is used to convert the first optimized target parking space position to the coordinate system where the vehicle posture of the current observation frame is located after optimization, so as to obtain the second optimized target parking space position;
[0153] The second coordinate system conversion unit is used to convert the second optimized target parking space position to the starting point coordinate system by using the vehicle posture of the current observation frame, so as to obtain the position information of the optimized target parking space relative to the vehicle.
[0154] Further, based on the above-mentioned embodiments of the invention, the preset positioning joint optimization condition includes at least one of the following:
[0155] It is detected that the vehicle displacement distance exceeds the preset distance threshold;
[0156] It is detected that the deviation angle of the front of the vehicle exceeds the preset angle threshold;
[0157] It is detected that the time interval during which no observation frames are added exceeds a preset time threshold.
[0158] The parking space position updating device provided in the embodiment of the present invention can execute the parking space position updating method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.
[0159] Embodiment 5
[0160] Fig. 9 A schematic diagram of an electronic device 50 that can be used to implement an embodiment of the present invention is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices (such as helmets, glasses, watches, etc.) and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.
[0161] like Fig. 9 As shown, the electronic device 50 includes at least one processor 51, and a memory connected to the at least one processor 51 in communication, such as a read-only memory (ROM) 52, a random access memory (RAM) 53, etc., wherein the memory stores a computer program that can be executed by at least one processor, and the processor 51 can perform various appropriate actions and processes according to the computer program stored in the read-only memory (ROM) 52 or the computer program loaded from the storage unit 58 to the random access memory (RAM) 53. In the RAM 53, various programs and data required for the operation of the electronic device 50 can also be stored. The processor 51, the ROM 52, and the RAM 53 are connected to each other via a bus 54. An input / output (I / O) interface 55 is also connected to the bus 54.
[0162] A number of components in the electronic device 50 are connected to the I / O interface 55, including: an input unit 56, such as a keyboard, a mouse, etc.; an output unit 57, such as various types of displays, speakers, etc.; a storage unit 58, such as a disk, an optical disk, etc.; and a communication unit 59, such as a network card, a modem, a wireless communication transceiver, etc. The communication unit 59 allows the electronic device 50 to exchange information / data with other devices through a computer network such as the Internet and / or various telecommunication networks.
[0163] The processor 51 may be a variety of general and / or special processing components with processing and computing capabilities. Some examples of the processor 51 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various special artificial intelligence (AI) computing chips, various processors running machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The processor 51 executes the various methods and processes described above, such as a parking space position update method.
[0164] In some embodiments, the parking space position update method may be implemented as a computer program, which is tangibly contained in a computer-readable storage medium, such as a storage unit 58. In some embodiments, part or all of the computer program may be loaded and / or installed on the electronic device 50 via the ROM 52 and / or the communication unit 59. When the computer program is loaded into the RAM 53 and executed by the processor 51, one or more steps of the parking space position update method described above may be performed. Alternatively, in other embodiments, the processor 51 may be configured to execute the parking space position update method in any other appropriate manner (e.g., by means of firmware).
[0165] Various implementations of the systems and techniques described above herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), load programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various implementations can include: being implemented in one or more computer programs that can be executed and / or interpreted on a programmable system including at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.
[0166] Computer programs for implementing the methods of the present invention may be written in any combination of one or more programming languages. These computer programs may be provided to a processor of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that when the computer program is executed by the processor, the functions / operations specified in the flow chart and / or block diagram are implemented. The computer program may be executed entirely on the machine, partially on the machine, partially on the machine and partially on a remote machine as a stand-alone software package, or entirely on a remote machine or server.
[0167] In the context of the present invention, a computer-readable storage medium may be a tangible medium that may contain or store a computer program for use by or in combination with an instruction execution system, device or equipment. A computer-readable storage medium may include, but is not limited to, electronic, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices or equipment, or any suitable combination of the foregoing. Alternatively, a computer-readable storage medium may be a machine-readable signal medium. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0168] To provide interaction with a user, the systems and techniques described herein may be implemented on an electronic device having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to the user; and a keyboard and a pointing device (e.g., a mouse or trackball) through which the user can provide input to the electronic device. Other types of devices may also be used to provide interaction with the user; for example, the feedback provided to the user may be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form (including acoustic input, voice input, or tactile input).
[0169] The systems and techniques described herein may be implemented in a computing system that includes backend components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes frontend components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with implementations of the systems and techniques described herein), or a computing system that includes any combination of such backend components, middleware components, or frontend components. The components of the system may be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: a local area network (LAN), a wide area network (WAN), a blockchain network, and the Internet.
[0170] A computing system may include a client and a server. The client and the server are generally remote from each other and usually interact through a communication network. The client and server relationship is generated by computer programs running on the corresponding computers and having a client-server relationship with each other. The server may be a cloud server, also known as a cloud computing server or cloud host, which is a host product in the cloud computing service system to solve the defects of difficult management and weak business scalability in traditional physical hosts and VPS services.
[0171] It should be understood that the various forms of processes shown above can be used to reorder, add or delete steps. For example, the steps described in the present invention can be executed in parallel, sequentially or in different orders, as long as the desired results of the technical solution of the present invention can be achieved, and this document does not limit this.
[0172] The above specific implementations do not constitute a limitation on the protection scope of the present invention. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions can be made according to design requirements and other factors. Any modification, equivalent substitution and improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A parking space position updating method, characterized in that: The method comprises: When the vehicle observation features meet the preset positioning joint optimization conditions, the current observation frame after time alignment is determined according to the visual parking space detection results and the vehicle posture; Determine a parking space reprojection error and a vehicle posture error corresponding to a target parking space according to the joint optimization parameters and an observation frame set including the current observation frame; According to the parking space reprojection error and the vehicle posture error, position information of the optimized target parking space relative to the vehicle is determined.
2. The method according to claim 1, characterized in that Before determining the time-aligned current observation frame according to the visual parking space detection result and the vehicle posture, the method further includes: Acquire the visual parking space image collected by the vehicle visual detection system; Calling a preset parking space detection model to determine the visual parking space detection result corresponding to the visual parking space image; The visual parking space detection result of the current frame is matched with the visual parking space detection result of the historical frame, and the parking spaces belonging to the same parking space position between different frames are associated according to the parking space matching result.
3. The method according to claim 1, characterized in that: When the vehicle observation feature meets the preset positioning joint optimization condition, determining the current observation frame after time alignment according to the visual parking space detection result and the vehicle posture includes: Acquire the vehicle observation feature, and when it is determined that the vehicle observation feature satisfies the preset positioning joint optimization condition, respectively extract the first timestamp and the second timestamp corresponding to the visual parking space detection result and the vehicle posture; When the first timestamp and the second timestamp are consistent, binding the visual parking space detection result and the vehicle posture as the current observation frame; When the first timestamp and the second timestamp are inconsistent, two frames of vehicle pose information closest to the first timestamp are obtained in a preset vehicle pose set, and then the vehicle pose information between the two frames of vehicle pose information is interpolated using uniform vehicle motion based on constant speed and angular velocity, and the visual parking space detection result and the vehicle pose corresponding to the first timestamp obtained after interpolation are bound as the current observation frame.
4. The method according to claim 1, characterized in that The determining, according to the joint optimization parameter and the observation frame set including the current observation frame, a parking space reprojection error and a vehicle posture error corresponding to the target parking space, comprises: Respectively obtaining historical observation frames and the joint optimization parameters, and constructing each of the historical observation frames and the current observation frame into the observation frame set; Based on the joint optimization parameters and the observation frame set, the preset parking space corner point error determination formula, the preset parking space line error determination formula, the preset heading angle error determination formula and the preset position distance error determination formula are called respectively to determine the parking space corner point error, the parking space line error, the heading angle error and the position distance error corresponding to the target parking space, and the parking space corner point error and the parking space line error are used as the parking space reprojection error, and the heading angle error and the position distance error are used as the vehicle posture error.
5. The method according to claim 4, characterized in that The formula for determining the preset parking space corner error is expressed as: in, represents the i-th observation frame O i Corresponding parking space corner point error; pt j represents the j-th target optimized corner point coordinates of the target parking space; represents the i-th observation frame O i The corresponding jth actual observed corner point coordinates; T i Represents the transformation relationship from the i-th observation frame coordinate system to the starting point coordinate system; The preset parking space line error determination formula is expressed as: in, represents the i-th observation frame O i Corresponding parking space line error; line k represents the kth target optimized parking space line equation of the target parking space; Dis(·) represents the distance calculation function from point to line; The preset heading angle error determination formula is expressed as: in, represents the i-th observation frame O i The corresponding heading angle error; θ i represents the i-th observation frame O i The corresponding target optimized heading angle; represents the i-th observation frame O i The corresponding actual observed heading angle; The preset position distance error determination formula is expressed as: in, represents the i-th observation frame O i The corresponding position distance error; dis(·) represents the point-to-point distance calculation function; P i represents the i-th observation frame O i The corresponding target optimizes the vehicle position; P(O i ) represents the i-th observation frame O i The corresponding actual observed vehicle position.
6. The method according to claim 1, characterized in that The step of determining the position information of the optimized target parking space relative to the vehicle according to the parking space reprojection error and the vehicle posture error includes: Calling a preset joint optimization algorithm to optimize and adjust the loss function corresponding to the parking space reprojection error and the vehicle posture error, and when the loss function reaches a minimum, obtaining a first optimized target parking space position and an optimized vehicle posture of the current observation frame; Convert the first optimized target parking space position to the coordinate system where the vehicle posture of the optimized current observation frame is located to obtain the second optimized target parking space position; The vehicle posture of the current observation frame is used to transform the second optimized target parking space position into the starting point coordinate system, thereby obtaining the position information of the optimized target parking space relative to the vehicle.
7. The method according to claim 1 or 3, characterized in that: The preset positioning joint optimization condition includes at least one of the following: It is detected that the vehicle displacement distance exceeds the preset distance threshold; It is detected that the deviation angle of the front of the vehicle exceeds the preset angle threshold; It is detected that the time interval during which no observation frames are added exceeds a preset time threshold.
8. A parking space position updating device, characterized in that: The device comprises: An observation frame determination module is used to determine the current observation frame after time alignment according to the visual parking space detection result and the vehicle posture when the vehicle observation feature meets the preset positioning joint optimization condition; An error determination module, used to determine a parking space reprojection error and a vehicle posture error corresponding to a target parking space according to a joint optimization parameter and an observation frame set including the current observation frame; The parking space position updating module is used to determine the position information of the optimized target parking space relative to the vehicle according to the parking space reprojection error and the vehicle posture error.
9. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to the at least one processor; wherein, The memory stores a computer program executable by the at least one processor, and the computer program is executed by the at least one processor so that the at least one processor can execute the parking space position updating method according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a processor to implement the parking space position updating method according to any one of claims 1 to 7 when executed.
Citation Information
Patent Citations
Information pushing method, device, electronic equipment and computer readable medium
CN112596691A
Centralized synchronous positioning and mapping method, device and system
CN113432593A
Novel automatic parking system vehicle positioning algorithm
CN113887060A
Parking space information generation method and device, electronic equipment and computer readable medium
CN116691694A
Traffic marker pose detection method and device, storage medium and electronic equipment
CN117078759A
Cited By
Camera external parameter optimization method and vehicle-mounted terminal
CN119228907A
