Vehicle control method, device, computer readable storage medium and electronic device

The parking path is generated through sensory information processing and deduplication detection, which achieves high accuracy of automatic parking of vehicles and solves the accuracy problem of the automatic driving system in the parking space recognition and parking process.

CN117818587BActive Publication Date: 2024-09-20HAOMO TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410253319.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-03-06
Publication Date
2024-09-20
Estimated Expiration
2044-03-06

AI Technical Summary

Technical Problem

It is difficult for the autonomous driving system to accurately control the position of the vehicle in the parking space during the automatic parking process, resulting in poor parking accuracy.

Method used

By obtaining the sensing information of the vehicle's surrounding environment, it detects parking spaces and limiters, deduplicates the detection results, generates a parking path, and controls the vehicle to automatically park to the parking space based on the parking path, and adjusts the vehicle attitude in real time to improve accuracy. sex.

Benefits of technology

It improves the accuracy of automatic parking of vehicles into parking spaces and solves the accuracy problem of automatic driving systems in parking space recognition and parking processes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117818587B
    Figure CN117818587B
Patent Text Reader

Abstract

The present invention discloses a vehicle control method, device, computer-readable storage medium and electronic device, and relates to the field of vehicle control. The method includes: in response to receiving an automatic parking instruction, obtaining perception information obtained by perceiving the surrounding environment of the vehicle; performing parking space and stopper detection on the perception information to obtain at least one detection result; performing deduplication processing on at least one detection result based on the parking space area in at least one detection result to determine a target detection result; generating a parking path of the vehicle according to the target parking space area and the target stopper area included in the target detection result, and controlling the vehicle to automatically park to the parking space based on the parking path; constructing a target stopper area inside the target parking space area in the target detection result based on the target parking space area and at least one detection result, generating a parking path of the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park to the parking space based on the parking path.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of vehicle control, and in particular to a vehicle control method, device, computer-readable storage medium and electronic device. Background Art

[0002] With the development of automatic driving systems, more and more vehicles are equipped with automatic parking functions, and vehicles can use the automatic parking function to achieve automatic parking. In related technologies, although vehicles can use the automatic parking function to achieve automatic parking, due to the complex environment around the parking space, the automatic driving system often cannot accurately control the vehicle to automatically park at a suitable position in the parking space during the automatic parking process, resulting in poor accuracy of the vehicle during automatic parking.

[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention

[0004] Embodiments of the present invention provide a vehicle control method, device, computer-readable storage medium, and electronic device to at least solve the technical problem of poor accuracy in controlling a vehicle to automatically park in a parking space in the related art.

[0005] According to one aspect of an embodiment of the present invention, a vehicle control method is provided, comprising: in response to receiving an automatic parking instruction, acquiring perception information obtained by perceiving an environment around the vehicle; performing parking space and stopper detection on the perception information to obtain at least one detection result; the detection result includes a parking space area and a stopper detection result of a parking space in the environment around the vehicle, the stopper detection result being used to characterize a stopper area where no stopper exists inside the parking space or where there is a stopper inside the parking space; performing deduplication processing on at least one detection result based on the parking space area in at least one detection result to determine a target detection result; in response to the target detection result including a target parking space area and a target stopper area, generating a parking path of the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park at the parking space based on the parking path; in response to the stopper detection result in the target detection result characterizing that there is no stopper inside the parking space, constructing a target stopper area inside the target parking space area in the target detection result based on the target parking space area and at least one detection result, generating a parking path of the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park at the parking space based on the parking path.

[0006] Optionally, in the process of controlling the vehicle to automatically park into a parking space based on a parking path, the method further includes: determining a target point position of a target point on the current vehicle, wherein the target point is used to represent the midpoint between two preset wheels on the vehicle; based on the relative position relationship between the target point position and the target limiter area, adjusting the parking path or the vehicle posture of the vehicle in real time in the process of controlling the vehicle to automatically park into a parking space based on the parking path.

[0007] Optionally, a parking path for the vehicle is generated according to a target parking space area and a target stopper area, including: determining a target parking position of the vehicle inside a parking space corresponding to the target parking space area based on attribute information of the vehicle, the target parking space area and the target stopper area; and generating a parking path based on the current vehicle position and the target parking position of the vehicle.

[0008] Optionally, based on the vehicle's attribute information, the target parking space area and the target limiter area, the target parking position of the vehicle inside the parking space corresponding to the target parking space area is determined, including: obtaining vehicle parking information of vehicles parked inside other parking spaces adjacent to the parking space corresponding to the target parking space area; determining the target parking position based on the vehicle's attribute information, the target parking space area, the target limiter area and the vehicle parking information.

[0009] Optionally, generating a parking path for the vehicle according to the target parking space area and the target stopper area includes: outputting the target parking space area; in response to receiving a selection instruction generated by selecting the target parking space area, determining a selected parking space area corresponding to the selection instruction; and generating a parking path based on the selected parking space area and the target stopper area within the selected parking space area.

[0010] Optionally, constructing a target stopper area inside the target parking space area in the target detection result based on at least one detection result includes: determining whether the stopper area is included in at least one detection result; in response to at least one detection result not including the stopper area, generating the target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper; in response to at least one detection result including the stopper area, determining whether the parking space area in the detection result to which the stopper area belongs overlaps with the target parking space area; in response to the parking space area in the detection result to which the stopper area belongs overlapping with the target parking space area, constructing the target stopper area inside the target parking space area based on the stopper area; in response to the parking space area in the detection result to which the stopper area belongs not overlapping with the target parking space area, constructing the target stopper area inside the target parking space area based on the stopper area, based on the size relationship between the parking space area and the target parking space area in the detection result to which the stopper area belongs, and the target position relationship between the parking space area and the stopper area in the detection result to which the stopper area belongs.

[0011] Optionally, at least one detection result is deduplicated based on the parking space areas in at least one detection result to determine the target detection result, including: based on the detection confidence of the parking space areas in the detection result, sorting the various parking space areas in the at least one detection result to obtain a parking space area sequence; if there is a parking space area in the current parking space area sequence that has not been read as the first parking space area, reading the current first parking space area from the current parking space area sequence according to the parking space area sorting, and eliminating the second parking space area in the current parking space area sequence that is located after the current first parking space area and has an overlapping relationship with the current first parking space area; if there is no parking space area in the current parking space area sequence that has not been read as the first parking space area, determining the detection result to which the parking space area in the current parking space area sequence belongs as the target detection result.

[0012] Optionally, determining whether there is an overlapping relationship between the first parking space area and the second parking space area includes: determining whether there is an overlapping area between the first parking space area and the second parking space area based on the positional relationship between the endpoint of the first parking space area and the second parking space area, the positional relationship between the endpoint of the second parking space area and the first parking space area, and the positional relationship between the boundary of the first parking space area and the boundary of the second parking space area; in response to the existence of an overlapping area between the first parking space area and the second parking space area, determining area overlap information between the first parking space area and the second parking space area based on the area shapes and the relative positional relationship between the first parking space area and the second parking space area, the area overlap information representing the degree of area overlap between the first parking space area and the second parking space area; if the area overlap information exceeds a preset target area overlap information, determining that there is an overlapping relationship between the first parking space area and the second parking space area; if there is no overlapping area between the first parking space area and the second parking space area or the area overlap information does not exceed the target area overlap information, determining that there is no overlapping relationship between the first parking space area and the second parking space area.

[0013] Optionally, determining whether there is an overlapping area between the first parking area and the second parking area based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the second parking area includes: judging whether there is an endpoint located in the second parking area in the first parking area, whether there is an endpoint located in the first parking area in the second parking area, and whether the boundary of the first parking area intersects with the boundary of the second parking area; if there is an endpoint located in the second parking area in the first parking area, or there is an endpoint located in the first parking area in the second parking area, or the boundary of the first parking area intersects with the boundary of the second parking area, determining that there is an overlapping area between the first parking area and the second parking area; if there is no endpoint located in the second parking area in the first parking area, no endpoint located in the first parking area in the second parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, determining that there is no overlapping area between the first parking area and the second parking area.

[0014] Optionally, determining whether the endpoint of the second parking space area is located in the first parking space area includes: determining at least one first edge constituting the boundary of the first parking space area, and determining the direction information of each first edge respectively, wherein the direction information of at least one first edge constitutes a clockwise direction or a counterclockwise direction; determining the relative position relationship between the endpoint and the first parking space area based on the direction information of the endpoint and the first edge of the second parking space area, wherein the relative position relationship between the endpoint and the first parking space area is used to characterize whether the endpoint and the first parking space area are located on the same side or different sides of the first edge; in the case where the endpoint and the first parking space area are located on different sides of the first edge in the second parking space area, determining that the endpoint is not located in the first parking space area; in the case where the endpoint and the first parking space area are not located on different sides of the first edge in the second parking space area, determining that the endpoint is located in the first parking space area.

[0015] Optionally, determining whether the boundary of the first parking space area intersects with the boundary of the second parking space area includes: obtaining the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking space area, and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking space area, the endpoint coordinates consisting of an endpoint horizontal coordinate and an endpoint vertical coordinate; in response to the maximum endpoint horizontal coordinate of at least one first edge being smaller than the minimum endpoint horizontal coordinate of at least one second edge, or the minimum endpoint horizontal coordinate of at least one first edge being larger than the maximum endpoint horizontal coordinate of at least one second edge, or the maximum endpoint vertical coordinate of at least one first edge being smaller than the minimum endpoint vertical coordinate of at least one second edge, or at least one The minimum endpoint ordinate of one side is greater than the maximum endpoint ordinate of at least one second side, determining that the boundary of the first parking space area and the boundary of the second parking space area do not intersect; in response to the maximum endpoint horizontal coordinate of at least one first side being greater than or equal to the minimum endpoint horizontal coordinate of at least one second side, and the minimum endpoint horizontal coordinate of at least one first side being less than or equal to the maximum endpoint horizontal coordinate of at least one second side, and the maximum endpoint vertical coordinate of at least one first side being greater than or equal to the minimum endpoint vertical coordinate of at least one second side, and the minimum endpoint vertical coordinate of at least one first side being less than or equal to the maximum endpoint vertical coordinate of at least one second side, determining that the boundary of the first parking space area and the boundary of the second parking space area intersect.

[0016] Optionally, determining the area overlap information between the first parking area and the second parking area based on the area shapes and relative position relationship between the first parking area and the second parking area includes: in response to the area shapes of the first parking area and the second parking area being rectangles, determining the area overlap information between the first parking area and the second parking area based on the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking area and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking area; in response to the area shapes of the first parking area and the second parking area being not rectangles, determining the area overlap information between the first parking area and the second parking area based on the relative position relationship between the first parking area and the second parking area and the number of pixels in the perception information used to respectively characterize the first parking area and the second parking area.

[0017] Optionally, based on the relative position relationship between the first parking space area and the second parking space area, and the number of pixel points in the perception information used to respectively characterize the first parking space area and the second parking space area, determining the area overlap information of the first parking space area and the second parking space area includes: determining the number of pixel points in the perception information used to characterize the overlapping area based on the relative position relationship between the first parking space area and the second parking space area; determining the area overlap information based on the number of pixel points in the perception information used to respectively characterize the first parking space area, the second parking space area and the overlapping area.

[0018] Optionally, parking space and limiter detection is performed on the perceived information to obtain at least one detection result, including: generating a target image based on the perceived information; performing parking space and limiter detection on the target image using a target detection model to obtain a detection result of an opening point of the parking space; and regressing the corner points of the parking space and the endpoints of the limiter based on the detection result of the opening point to obtain at least one detection result.

[0019] Optionally, in response to multiple perception devices being provided on the vehicle, a target image is generated based on the perception information, including: generating multiple local images based on the perception information perceived by the multiple perception devices; stitching the multiple local images to obtain a stitched image; and converting the stitched image to a bird's-eye view space to obtain a target image.

[0020] According to another aspect of an embodiment of the present invention, a vehicle control device is further provided, comprising: an acquisition module, in response to receiving an automatic parking instruction, acquiring perception information obtained by perceiving the surrounding environment of the vehicle; a detection module, for performing parking space and limiter detection on the perception information to obtain at least one detection result; the detection result includes a parking space area of ​​the parking space in the surrounding environment of the vehicle and a limiter detection result, the limiter detection result being used to characterize a limiter area where there is no limiter inside the parking space or where there is a limiter inside the parking space; a deduplication module, for performing deduplication processing on at least one detection result based on the parking space area in at least one detection result to determine a target detection result. a first control module for generating a parking path for the vehicle according to the target parking space area and the target stopper area in response to the target detection result including the target parking space area and the target stopper area, and controlling the vehicle to automatically park at the parking space based on the parking path; a second control module for generating a target stopper area inside the target parking space area in the target detection result based on the target parking space area and at least one detection result in response to the stopper detection result in the target detection result indicating that there is no stopper inside the parking space, generating a parking path for the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park at the parking space based on the parking path.

[0021] Optionally, the device also includes: a target point position determination module, used to determine the target point position of a target point on the current vehicle, wherein the target point is used to represent the midpoint between two preset wheels on the vehicle; a parameter adjustment module, used to adjust the parking path or the vehicle posture of the vehicle in real time during the process of controlling the vehicle to automatically park to a parking space based on the parking path based on the relative position relationship between the target point position and the target limiter area.

[0022] Optionally, the first control module and the second control module include: a position determination unit, used to determine a target parking position of the vehicle inside a parking space corresponding to the target parking space area based on attribute information of the vehicle, the target parking space area and the target limiter area; and a first path generation unit, used to generate a parking path based on the current vehicle position and the target parking position of the vehicle.

[0023] Optionally, the position determination unit is further used to: obtain vehicle parking information of vehicles parked in other parking spaces adjacent to the parking space corresponding to the target parking space area; and determine the target parking position based on the vehicle's attribute information, the target parking space area, the target limiter area and the vehicle parking information.

[0024] Optionally, the first control module and the second control module include: an area output unit for outputting a target parking space area; a first area determination unit for determining a selected parking space area corresponding to a selection instruction in response to receiving a selection instruction generated by selecting the target parking space area; and a second path generation unit for generating a parking path based on the selected parking space area and a target limiter area within the selected parking space area.

[0025] Optionally, the second control module includes: a second area determination unit, configured to determine whether the at least one detection result includes a stopper area; a first area generation unit, configured to generate a target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper in response to the at least one detection result not including the stopper area; an overlap detection unit, configured to determine whether the parking space area in the detection result to which the stopper area belongs overlaps with the target parking space area in response to the stopper area being included in the at least one detection result; a second area generation unit, configured to generate a target stopper area inside the target parking space area based on the stopper area in response to the parking space area and the target parking space area in the detection result to which the stopper area belongs overlapping; and a third area generation unit, configured to generate a target stopper area inside the target parking space area based on a size relationship between the parking space area and the target parking space area in the detection result to which the stopper area belongs, and a target position relationship between the parking space area and the stopper area in the detection result to which the stopper area belongs, in response to the parking space area and the target parking space area in the detection result to which the stopper area belongs not overlapping.

[0026] Optionally, the deduplication module includes: an area sorting unit, which is used to sort each parking space area in at least one detection result to obtain a parking space area sequence based on the detection confidence of the parking space area in the detection result; a sequence updating unit, which is used to read the current first parking space area from the current parking space area sequence according to the parking space area sorting if there is a parking space area in the current parking space area sequence that has not been read as the first parking space area, and to eliminate the second parking space area in the current parking space area sequence that is located after the current first parking space area and has an overlapping relationship with the current first parking space area; and a result determination unit, which is used to determine the detection result to which the parking space area in the current parking space area sequence belongs as the target detection result if there is no parking space area in the current parking space area sequence that has not been read as the first parking space area.

[0027] Optionally, the deduplication module further includes: an overlapping area determination unit, for determining whether there is an overlapping area between the first parking area and the second parking area based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the boundary of the second parking area; an overlapping degree determination unit, for determining, in response to the existence of an overlapping area between the first parking area and the second parking area, area overlapping information between the first parking area and the second parking area based on the area shapes and relative positional relationship between the first parking area and the second parking area, the area overlapping information representing the area overlapping degree between the first parking area and the second parking area; a first overlapping relationship determination unit, for determining that there is an overlapping relationship between the first parking area and the second parking area if the area overlapping information exceeds a preset target area overlapping information; and a second overlapping relationship determination unit, for determining that there is no overlapping relationship between the first parking area and the second parking area if there is no overlapping area between the first parking area and the second parking area or the area overlapping information does not exceed the target area overlapping information.

[0028] Optionally, the overlapping area determination unit is further used to: determine whether there is an endpoint located in the second parking area in the first parking area, whether there is an endpoint located in the first parking area in the second parking area, and whether a boundary of the first parking area intersects with a boundary of the second parking area; if there is an endpoint located in the second parking area in the first parking area, or there is an endpoint located in the first parking area in the second parking area, or the boundary of the first parking area intersects with the boundary of the second parking area, determine that there is an overlapping area between the first parking area and the second parking area; if there is no endpoint located in the second parking area in the first parking area, there is no endpoint located in the first parking area in the second parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, determine that there is no overlapping area between the first parking area and the second parking area.

[0029] Optionally, the overlapping area determination unit is further used to: determine at least one first edge constituting the boundary of the first parking space area, and determine the direction information of each first edge respectively, wherein the direction information of at least one first edge constitutes a clockwise direction or a counterclockwise direction; determine the relative position relationship between the endpoint and the first parking space area based on the direction information of the endpoint and the first edge of the second parking space area, wherein the relative position relationship between the endpoint and the first parking space area is used to characterize whether the endpoint and the first parking space area are located on the same side or different sides of the first edge; in the case where the endpoint and the first parking space area are located on different sides of the first edge in the second parking space area, determine that the endpoint is not located in the first parking space area; in the case where the endpoint and the first parking space area are not located on different sides of the first edge in the second parking space area, determine that the endpoint is located in the first parking space area.

[0030] Optionally, the overlapping area determination unit is further used to: obtain the endpoint coordinates of each of the at least one first edge constituting the boundary of the first parking space area, and the endpoint coordinates of each of the at least one second edge constituting the boundary of the second parking space area, the endpoint coordinates being composed of an endpoint horizontal coordinate and an endpoint vertical coordinate; in response to the maximum endpoint horizontal coordinate of at least one first edge being less than the minimum endpoint horizontal coordinate of at least one second edge, or the minimum endpoint horizontal coordinate of at least one first edge being greater than the maximum endpoint horizontal coordinate of at least one second edge, or the maximum endpoint vertical coordinate of at least one first edge being less than the minimum endpoint vertical coordinate of at least one second edge, or the minimum endpoint vertical coordinate of at least one first edge. In response to the maximum endpoint horizontal coordinate of at least one first edge being greater than or equal to the minimum endpoint horizontal coordinate of at least one second edge, and the minimum endpoint horizontal coordinate of at least one first edge being less than or equal to the maximum endpoint horizontal coordinate of at least one second edge, and the maximum endpoint vertical coordinate of at least one first edge being greater than or equal to the minimum endpoint vertical coordinate of at least one second edge, and the minimum endpoint vertical coordinate of at least one first edge being less than or equal to the maximum endpoint vertical coordinate of at least one second edge, it is determined that the boundary of the first parking space area intersects with the boundary of the second parking space area.

[0031] Optionally, the overlapping degree determination unit is further used to: in response to the area shapes of the first parking space area and the second parking space area being rectangles, determine the area overlapping information of the first parking space area and the second parking space area based on the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking space area and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking space area; in response to the area shapes of the first parking space area and the second parking space area being not rectangles, determine the area overlapping information of the first parking space area and the second parking space area based on the relative positional relationship between the first parking space area and the second parking space area, and the number of pixels in the perception information used to respectively characterize the first parking space area and the second parking space area.

[0032] Optionally, the overlap degree determination unit is also used to: determine the number of pixel points in the perception information used to characterize the overlapping area based on the relative position relationship between the first parking space area and the second parking space area; determine the area overlap information based on the number of pixel points in the perception information used to characterize the first parking space area, the second parking space area and the overlapping area respectively.

[0033] Optionally, the detection module includes: an image generation unit, used to generate a target image based on perception information; an opening point detection unit, used to perform parking space and limiter detection on the target image using a target detection model to obtain a detection result of the opening point of the parking space; an opening point regression unit, used to regress the corner points of the parking space and the endpoints of the limiter based on the detection result of the opening point to obtain at least one detection result.

[0034] Optionally, in response to multiple perception devices being arranged on the vehicle, the image generation unit is further used to: generate multiple local images based on perception information perceived by the multiple perception devices; stitch the multiple local images to obtain a stitched image; and convert the stitched image to a bird's-eye view space to obtain a target image.

[0035] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is executed, a processor of a device is controlled to execute any one of the above methods.

[0036] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs; and a method in which, when the one or more programs are executed by the one or more processors, the one or more processors execute any one of the above methods.

[0037] In an embodiment of the present invention, perception information obtained by perceiving the surrounding environment of a vehicle is acquired; parking space and limiter detection is performed on the perception information to obtain at least one detection result; at least one detection result is deduplicated based on a parking space area in at least one detection result to determine a target detection result; in response to the target detection result containing a target parking space area and a target limiter area, a parking path of the vehicle is generated according to the target parking space area and the target limiter area, and the vehicle is controlled to automatically park in the parking space based on the parking path; in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, a target limiter area inside the target parking space area in the target detection result is constructed based on at least one detection result, A parking path for the vehicle is generated according to a target parking space area and a target limiter area, and the vehicle is controlled to automatically park at the parking space based on the parking path. By deduplicating at least one detection result based on the parking space area in at least one detection result, it is avoided that the complex environment around the parking space leads to low detection accuracy of the target detection result, thereby affecting the accuracy of the vehicle in the automatic parking process. In addition, the parking path of the vehicle is generated by the target parking space area and the target limiter area, ensuring that the vehicle can automatically park at a suitable position in the parking space, thereby achieving the technical effect of improving the accuracy of controlling the vehicle to automatically park at the parking space, thereby solving the technical problem of poor accuracy in controlling the vehicle to automatically park at the parking space in the related art. BRIEF DESCRIPTION OF THE DRAWINGS

[0038] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:

[0039] Figure 1 is a flow chart of a vehicle control method according to an embodiment of the present invention;

[0040] Figure 2 is a schematic diagram showing overlapping parking space areas according to an embodiment of the present invention;

[0041] Figure 3 is a schematic diagram showing a parking space area overlap determination according to an embodiment of the present invention;

[0042] Figure 4 is a structural block diagram of a vehicle control device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0043] 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.

[0044] 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.

[0045] Example 1

[0046] According to an embodiment of the present invention, a method embodiment of parking space detection is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0047] Figure 1 is a flow chart of a vehicle control method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:

[0048] Step S102, in response to receiving the automatic parking instruction, acquiring perception information obtained by sensing the surrounding environment of the vehicle.

[0049] The above-mentioned perception information may refer to information obtained by sensing the surrounding environment of the vehicle through various perception devices (for example, various sensors) on the vehicle. Based on the above-mentioned perception information, the vehicle can be controlled to automatically park from the current position to a parking space near the vehicle. The perception information can be mainly divided into two categories. One category may be information related to parking spaces in the surrounding environment of the vehicle, which may include but is not limited to: the use of parking spaces in the surrounding environment of the vehicle, the location of parking spaces, and other information; the other category may be information related to the driving of the vehicle during the process of the vehicle automatically parking to the parking space, which may include but is not limited to: road obstacle conditions on the road where the vehicle is currently located, and other information. It should be noted that the type and quantity of the above-mentioned perception information can be set by the staff, and are not specifically limited here. For example, the type of perception information may include but is not limited to: image type, electrical signal type, optical signal type, etc. If the perception information is of image type, the acquired perception information can be processed by image processing. If the perception information is of electrical signal type, the perception information can be processed by electrical signal data processing. If the perception information is of optical signal type, the optical signal can be converted into an electrical signal, and then the perception information can be processed by electrical signal data processing. If perception information from one angle is obtained, such as perception information of the environment in front of the vehicle, the perception information can be directly processed. If perception information from multiple angles is obtained, such as perception information of the environment around the vehicle, the perception information from multiple angles can be merged into a fused perception information and then processed. For example, multiple image information can be spliced ​​into a spliced ​​image and then the spliced ​​image can be processed.

[0050] It should be noted that the automatic parking function can be applied not only to autonomous driving vehicles, but also to traditional driver-driven vehicles. Therefore, when the automatic parking function is applied to autonomous driving vehicles, the above-mentioned automatic parking instructions may be instructions generated by the autonomous driving system in the autonomous driving vehicle; when the automatic parking function is applied to driver-driven vehicles, the above-mentioned automatic parking instructions may be instructions generated by the driver by operating buttons or controls on the vehicle.

[0051] In an optional scheme of the present embodiment, in order to enable the vehicle to be accurately parked in a nearby available parking space, after receiving the automatic parking command, the automatic driving system may first utilize the various sensing devices on the vehicle to perform information sensing operations on the vehicle's surrounding environment, and obtain sensing information about the vehicle's surrounding environment that can assist the vehicle in automatic parking. Through this sensing information, the automatic driving system can accurately locate the available parking spaces near the vehicle, and plan driving parameters that can control the vehicle to safely and accurately drive to the parking space, thereby completing the automatic parking operation of the vehicle.

[0052] Generally, the information that can be sensed by various sensors on the vehicle is relatively complex and diverse, and may include a lot of information that has little relevance to the automatic parking of the vehicle. For example, the sensed information may include: the temperature and humidity in the vehicle's surroundings, the vehicle models of other vehicles, the working conditions of the staff in the parking lot, and other information. Such information has a low relevance to the vehicle's automatic parking process and may affect the accuracy of the automatic parking control system for the vehicle. Therefore, in order to ensure that the vehicle can be accurately controlled to complete the automatic parking operation, the automatic driving system may pre-process the information sensed by the sensors on the vehicle, such as removing some information that has a low relevance to the vehicle's automatic parking process from the sensed information, and retaining some information that has a high relevance to the vehicle's automatic parking process as the sensed information obtained by sensing the vehicle's surroundings in step S102.

[0053] Step S104, performing parking space and limiter detection on the perception information to obtain at least one detection result; the detection result includes a parking space area and a limiter detection result of the parking space in the vehicle's surrounding environment, and the limiter detection result is used to characterize a limiter area where there is no limiter inside the parking space or a limiter inside the parking space.

[0054] When the automatic parking instruction is received, there may be many parking spaces in the environment around the vehicle, but some parking spaces are unavailable due to parked vehicles or other obstacles (i.e., the parking spaces cannot be used for parking the current vehicle). Therefore, the parking space detection on the perception information in step S104 may specifically be an available parking space detection on the perception information. The detection results obtained by detecting the parking space and limiter on the perception information specifically include the parking space area and limiter detection results of the available parking spaces in the environment around the vehicle. The limiter detection result is used to characterize the limiter area where there is no limiter inside the available parking space or the limiter inside the available parking space.

[0055] Specifically, all detection results obtained by detecting available parking spaces and stoppers on the sensed information may be used as at least one detection result obtained by detecting parking spaces and stoppers on the sensed information in step S104. Each of the at least one detection result includes a parking space area representing an available parking space in the surrounding environment of the vehicle and a stopper detection result inside the available parking space, and the stopper detection result is used to represent a stopper area where there is no stopper inside the available parking space or a stopper inside the available parking space.

[0056] In an optional solution of this embodiment, in order to accurately control the vehicle to automatically park in a parking space, the automatic driving system needs to accurately determine the usage of parking spaces in the vehicle's surroundings, and determine a parking space that is currently available for the vehicle to park based on the usage. Therefore, after obtaining the above-mentioned perception information, the automatic driving system may first detect the available parking spaces in the vehicle's surroundings based on the perception information to obtain a parking space detection result that can reflect the location of the available parking spaces around the vehicle, and the parking space detection result may include a parking space area of ​​the available parking space in the vehicle's surroundings.

[0057] Considering that currently when detecting parking spaces in the vehicle's surrounding environment, most detection methods are limited to detecting the parking space itself, such as detecting the boundary line of the parking space to determine the location of the parking space. However, since the detection of the boundary line is difficult, other information unrelated to the parking space in the vehicle's surrounding environment may also affect the detection of the boundary line, which may result in multiple detection results when detecting a boundary line. Accordingly, the parking space determined according to the boundary line may also be detected repeatedly, which may cause the autonomous driving system to be unable to accurately determine the parking position for automatic parking of the vehicle.

[0058] In an optional solution of this embodiment, in addition to the parking space elements, such as the boundary lines and parking space signs on the parking space, information with a high degree of relevance to the parking space may also include markers placed by the user in the parking space, such as parking space limiters, car blockers, reverse pads, tripods, etc., which are used to limit the specific position of the vehicle parked inside the parking space. While performing parking space detection on the perceived information, the automatic driving system may further perform marker detection on the perceived information to obtain a marker detection result, so that the automatic driving system can more easily and accurately determine the parking position for the vehicle to automatically park.

[0059] Considering that among the various markers set by users, limiters are relatively commonly used, therefore, the embodiments of the present application are described using limiters as an example. The automatic driving system can synchronously perform limiter detection on the perception information to obtain a limiter detection result, so as to determine whether there is a limiter inside the parking space. If there is a limiter inside the parking space, the limiter detection result can also include the limiter area of ​​the limiter inside the parking space.

[0060] Exemplarily, a parking space detection result of a parking space and a stopper detection result of a stopper inside the parking space constitute a detection result, the parking space detection result includes a parking space area of ​​the parking space, and the stopper detection result indicates that the parking space does not include a stopper, or the stopper area in the parking space when the parking space includes a stopper. Generating an automatic parking path based on the detection result composed of the parking space detection result and the stopper detection result can effectively improve parking accuracy.

[0061] Correspondingly, if the parking space detection on the perception information does not find the parking space area used to represent the parking space, then step S104 will not obtain a detection result when performing parking space and limiter detection on the perception information. In this case, it means that there is no available parking space in the current vehicle surrounding environment and parking cannot be performed.

[0062] Step S106: Deduplication processing is performed on at least one detection result based on the parking space area in the at least one detection result to determine a target detection result.

[0063] In an optional scheme of the present embodiment, as shown above, due to the parking space detection performed on the perception information, multiple parking space areas may be detected corresponding to the same parking space. If at least two parking space areas in at least one detection result belong to the same parking space, it means that the same parking space is detected repeatedly. At this time, it is not possible to directly plan the parameters for automatic parking of the vehicle and determine the destination for automatic parking of the vehicle based on the detected parking space areas.

[0064] Considering that if repeated detection occurs, that is, multiple parking space areas are detected for one parking space, these multiple parking space areas usually overlap. Therefore, after obtaining at least one of the above detection results, the automatic driving system can determine whether there is overlap between the parking space areas in the at least one detection result (that is, whether there is an overlapping relationship between the parking space areas), and deduplicate the at least one detection result according to the overlap between the parking space areas, so as to determine the target detection result.

[0065] For example, if there is an overlapping relationship between multiple parking space areas in at least one detection result, it means that there is a repeated detection of the same parking space. In this case, it is necessary to perform deduplication processing on these multiple parking space areas to remove the repeated parking space areas. In the case where the repeated parking space areas in at least one detection result need to be removed, since the stopper detection results in each detection result match the parking space area in the detection result, the stopper detection results in the detection result can be ignored. Therefore, when deduplication processing is performed on these multiple parking space areas, the detection results to which the repeated parking space areas belong can be removed from at least one detection result, and each of the remaining detection results can be considered as a target detection result.

[0066] In an optional solution of the present embodiment, at least one detection result is deduplicated based on the parking space area in at least one detection result. After obtaining the target detection result, if the number of target detection results is 1, it can be indicated that only one available parking space area is detected. Therefore, a parking path can be directly generated based on the available parking space area and the limiter area of ​​the limiter inside the available parking space, and the vehicle can be controlled to automatically park in the parking space corresponding to the target detection result according to the parking path; if the number of target detection results is not 1, it can be indicated that more than one available parking space area is detected. At this time, the automatic driving system can combine the driver's driving habits and the principle of parking nearby to generate a parking path. and easy exit principle to determine a target detection result, and execute according to the determined target detection result, in response to the target detection result containing a target parking space area and a target limiter area, generating a parking path for the vehicle according to the target parking space area and the target limiter area, and controlling the vehicle to automatically park at the parking space based on the parking path; in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, constructing a target limiter area inside the target parking space area in the target detection result based on the target parking space area and at least one detection result, generating a parking path for the vehicle according to the target parking space area and the target limiter area, and controlling the vehicle to automatically park at the parking space based on the parking path. Alternatively, the automatic driving system may feed back all target detection results to the user for review, and the user may select a target detection result as the final parking space for parking the current vehicle and the detection result of the limiter inside the parking space based on his or her own driving habits, the principle of nearby parking, and the principle of easy exit, and execute according to the selected target detection result: in response to the target detection result containing the target parking space area and the target limiter area, a parking path for the vehicle is generated according to the target parking space area and the target limiter area, and the vehicle is controlled to automatically park in the parking space based on the parking path; in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, a target limiter area inside the target parking space area in the target detection result is constructed based on the target parking space area and at least one detection result, a parking path for the vehicle is generated according to the target parking space area and the target limiter area, and the vehicle is controlled to automatically park in the parking space based on the parking path.

[0067] In the embodiment of the present application, the parking space area included in the target detection result can be referred to as the target parking space area, and in the case where the stopper detection result in the target detection result represents the stopper area of ​​the stopper inside the parking space, based on the stopper detection result, it can be explained that the parking space represented by the target parking space area includes a stopper inside, and in this case, the stopper area represented by the stopper detection result in the target detection result can be referred to as the target stopper area. Correspondingly, if the stopper detection result in the target detection result represents that there is no stopper inside the parking space, based on the stopper detection result, it can be explained that the parking space represented by the target parking space area does not include a stopper inside.

[0068] Step S108 , in response to the target detection result including the target parking space area and the target stopper area, generating a parking path for the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park in the parking space based on the parking path.

[0069] In an optional solution of this embodiment, in order to enable the vehicle to be accurately and automatically parked in the target parking space area, after obtaining the target detection result, the automatic driving system can generate a parking path for controlling the vehicle to automatically park from the current position to the parking space according to the target detection result, so as to control the vehicle to park automatically. Considering the internal limiter of the available parking space, the automatic driving system can generate the above-mentioned parking path according to a specific or different path generation method according to the target parking space area and the target limiter area included in the target detection result, so as to achieve the purpose of automatic parking based on the parking path. Specifically, if the target detection result indicates that there is a limiter in the target parking space area, the automatic driving system can first obtain the above-mentioned target parking space area and the target limiter area from the target detection result, and then directly generate the corresponding parking path according to the target limiter area and the target parking space area, so as to improve the generation efficiency of the parking path and ensure that the parking path has a high accuracy. After obtaining the parking path, the automatic driving system can control the vehicle to automatically park in the parking space corresponding to the target parking space area according to the parking path.

[0070] Step S110, in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, a target limiter area inside the target parking space area in the target detection result is constructed based on the target parking space area and at least one detection result, a parking path for the vehicle is generated according to the target parking space area and the target limiter area, and the vehicle is controlled to automatically park in the parking space based on the parking path.

[0071] In an optional scheme of the present embodiment, if the target limiter detection result shows that there is no limiter inside the parking space, the automatic driving system may first obtain the target parking space area from the target detection result, and then combine at least one detection result and the above-mentioned target parking space area to construct a target limiter area in the target parking space area, and then generate the above-mentioned parking path according to the target parking space area and the generated target limiter area to improve the accuracy of the generated parking path, and finally control the vehicle to automatically park in the parking space corresponding to the target parking space area according to the parking path, thereby improving the accuracy of the vehicle when automatically parking.

[0072] In an optional scheme of the present embodiment, when generating a target limiter area, the automatic driving system may first determine whether at least one detection result includes a limiter area, that is, determine whether there are limiters inside all parking spaces in the vehicle's surrounding environment. If at least one detection result does not include a limiter area, a target limiter area may be generated inside the target parking space area based on the positional relationship between the parking space and the limiter. If at least one detection result includes a limiter area, the limiter area may be obtained. Considering that the detection result to which the limiter area belongs and the target detection result may or may not be the detection result of the same parking space, the automatic driving system may generate a target limiter area inside the target parking space area based on the positional relationship between the limiter area and the parking space area in the detection result to which it belongs. Optionally, if the detection result to which the stopper region belongs and the target detection result are detection results of the same parking space, one method may directly generate a target stopper region inside the target parking space region based on the positional relationship between the stopper region and the parking space region in the detection result to which the stopper region belongs, and another method may generate a target stopper region inside the target parking space region based on the size relationship between the parking space region and the target parking space region in the detection result to which the stopper region belongs, and the positional relationship between the parking space region and the stopper region in the detection result to which the stopper region belongs. Optionally, if the detection result to which the stopper region belongs and the target detection result are not detection results of the same parking space, a target stopper region may be generated inside the target parking space region based on the size relationship between the parking space region and the target parking space region in the detection result to which the stopper region belongs, and the positional relationship between the parking space region and the stopper region in the detection result to which the stopper region belongs.

[0073] It should be noted that the above process of generating the target limiter area is only an exemplary display, and the specific generation method can be set by the user and is not limited here.

[0074] In an embodiment of the present invention, perception information obtained by perceiving the surrounding environment of a vehicle is acquired; parking space and limiter detection is performed on the perception information to obtain at least one detection result; at least one detection result is deduplicated based on a parking space area in at least one detection result to determine a target detection result; in response to the target detection result containing a target parking space area and a target limiter area, a parking path of the vehicle is generated according to the target parking space area and the target limiter area, and the vehicle is controlled to automatically park in the parking space based on the parking path; in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, a target limiter area inside the target parking space area in the target detection result is constructed based on at least one detection result, A parking path for the vehicle is generated according to a target parking space area and a target limiter area, and the vehicle is controlled to automatically park at the parking space based on the parking path. By deduplicating at least one detection result based on the parking space area in at least one detection result, it is avoided that the complex environment around the parking space leads to low detection accuracy of the target detection result, thereby affecting the accuracy of the vehicle in the automatic parking process. In addition, the parking path of the vehicle is generated by the target parking space area and the target limiter area, ensuring that the vehicle can automatically park at a suitable position in the parking space, thereby achieving the technical effect of improving the accuracy of controlling the vehicle to automatically park at the parking space, thereby solving the technical problem of poor accuracy in controlling the vehicle to automatically park at the parking space in the related art.

[0075] Optionally, in the process of controlling the vehicle to automatically park into a parking space based on a parking path, it also includes: determining a target point position of a target point on the current vehicle, wherein the target point is used to represent the midpoint between two preset wheels on the vehicle; based on the relative position relationship between the target point position and the target limiter area, in the process of controlling the vehicle to automatically park into a parking space based on the parking path, adjusting the parking path or the vehicle posture of the vehicle in real time.

[0076] The two preset wheels may refer to wheels pre-specified by the user on the vehicle, including but not limited to: the two front wheels of the vehicle, the two rear wheels of the vehicle, the two wheels on the left side of the vehicle, the two wheels on the right side of the vehicle, the wheels on the left front side and the right rear side of the vehicle, the wheels on the left rear side and the right front side of the vehicle, etc. Generally, considering that when a vehicle enters a parking space, it is usually parked in a forward parking mode or a reverse parking mode, the preset wheels may refer to the two wheels in front of the vehicle or the two wheels at the rear of the vehicle.

[0077] In an optional solution of this embodiment, in order to more accurately control the vehicle to automatically park in the parking space, in the process of controlling the vehicle to automatically park in the parking space, the automatic driving system can also adjust the parking path of the vehicle and the vehicle posture of the vehicle during the driving process and the parking process in real time according to the specific points on the vehicle and the characteristic points on the parking space, so as to improve the accuracy of controlling the vehicle to automatically park in the parking space. For example, the position deviation between the center point and the center position can be determined according to the relative position relationship between the center point of the two rear wheels on the vehicle and the center position of the target stopper area. If the position deviation is large, the parking path can be adjusted. If the position deviation is small, the vehicle posture can be adjusted to ensure that the vehicle can be safely and accurately parked in the parking space. For another example, if the vehicle is not currently driving into a parking space, the automatic driving system may add a parking path, or delete a parking path, based on the relative position relationship between the target point position and the target limiter area at the current moment, to ensure that the vehicle can automatically park in the parking space smoothly, so as to improve the accuracy of controlling the vehicle to automatically park in the parking space; if the vehicle is currently driving into a parking space, the automatic driving system may adjust the vehicle's current posture based on the relative position relationship between the target point position and the target limiter, so as to ensure that the adjusted vehicle can be safely parked in the parking space.

[0078] In an optional solution of the present embodiment, in order to ensure the standardization of the automatic parking of the vehicle in the parking space and reduce the impact of the parked vehicle on other vehicles, the midpoint of the two front or rear wheels of the vehicle, that is, the above-mentioned target point position, can usually be located on the median perpendicular line of the longer boundary lines on both sides of the parking space limiter, and the front wheels or rear wheels of the vehicle are in contact with the limiter. Based on this, in order to improve the user's car experience, when adding or deleting the parking path according to the relative position relationship between the target point position and the limiter area, the automatic driving system can first determine the coordinates of the target point position in the preset coordinate system, and the coordinates of the endpoints of the longer boundary lines on both sides of the limiter in the preset coordinate system, wherein the preset coordinate system may include but is not limited to: vehicle coordinate system, geodetic coordinate system, etc. After obtaining the coordinates of the above-mentioned endpoints, the automatic driving system can determine the expression of the above-mentioned median perpendicular line according to the above-mentioned coordinates, and determine the above-mentioned target point position according to the above-mentioned coordinates and expressions. For example, the above-mentioned coordinates are respectively and , then the expression is , by solving this expression, we can get the target point position (x, y).

[0079] If the distance from the determined target point position to the above-mentioned center line is far, for example, greater than the preset distance, and the angle between the straight line where the front wheels or rear wheels of the vehicle are located and the above-mentioned center line is small, for example, less than the preset angle, then when the vehicle directly drives into the parking space at this time, the parking position may be skewed and mismatched with the parking space area, resulting in part of the vehicle being outside the parking space, thereby affecting the driving of other vehicles and the parking safety of other vehicles. At this time, the automatic driving system can add a parking path based on the current parking path to change the vehicle's posture according to the distance from the above-mentioned target point position to the center line and the angle between the straight line where the front wheels or rear wheels of the vehicle are located and the center line, so as to ensure that the above-mentioned target point position can be near the above-mentioned center line when the vehicle drives into the parking space, and The straight line on which the front wheels or rear wheels of the vehicle are located can be relatively perpendicular to the above-mentioned center line, so that the vehicle can be parked stably and accurately in the parking space; if the distance from the determined target point position to the above-mentioned center line is short, for example, less than or equal to the above-mentioned preset distance, and the angle between the straight line on which the front wheels or rear wheels of the vehicle are located and the above-mentioned center line is large, for example, approaching a right angle, or there is no parking space near the parking space, or when an instruction is received from the user that the specific parking location does not need to be considered, it means that the automatic driving system can directly control the vehicle to enter the parking space without considering the parking situation of the vehicle in the parking space. At this time, the automatic driving system can delete a section of the parking path based on the current parking path so that the vehicle can quickly drive into the parking space, thereby improving the efficiency of automatic parking.

[0080] It should be noted that the above-mentioned method of adding or deleting parking paths is only an exemplary display, and the specific process of adding or deleting can be set by the staff themselves and is not limited here.

[0081] Optionally, a parking path for the vehicle is generated according to the target parking space area and the target limiter area, including: determining a target parking position of the vehicle inside the parking space corresponding to the marked parking space area based on attribute information of the vehicle, the target parking space area and the target limiter area; and generating a parking path based on the current vehicle position and the target parking position of the vehicle.

[0082] The above attribute information may at least include: vehicle model parameters, vehicle size and other information.

[0083] In an optional solution of this embodiment, considering that the area of ​​some of the divided parking spaces may be small or irregular in shape, and some vehicles are large in size, it is easy for some areas of the vehicle to be outside the parking space area, resulting in an impact on the safety of the vehicle during automatic parking, such as a collision with other vehicles, or the parking position of the vehicle will affect the driving of other vehicles. Therefore, when controlling the vehicle to automatically park in the parking space, the automatic driving system can also obtain the attribute information of the vehicle, such as the physical data such as the size and model of the vehicle, and then determine the target parking position of the vehicle inside the parking space based on the target parking space area and the target limiter area, combined with the attribute information of the vehicle, so as to improve the accuracy of determining the parking position of the vehicle inside the parking space. Finally, the automatic driving system can generate a parking path for the vehicle according to the current position of the vehicle, that is, the above-mentioned current vehicle position, and the determined target parking position.

[0084] Optionally, based on the vehicle's attribute information, the target parking space area and the target limiter area, the target parking position of the vehicle inside the parking space corresponding to the target parking space area is determined, including: obtaining vehicle parking information of vehicles parked inside other parking spaces adjacent to the parking space corresponding to the target parking space area; determining the target parking position based on the vehicle's attribute information, the target parking space area, the target limiter area and the vehicle parking information.

[0085] In an optional scheme of the present embodiment, in order to ensure the safety of the vehicle during automatic parking, such as avoiding collision with other vehicles, or the parking position of the vehicle will not affect the driving of other vehicles, when determining the target parking position, the automatic driving system may first obtain the parking situation of vehicles near the identified target parking space area, such as the parking information of vehicles in other parking spaces adjacent to the parking space, and determine the above-mentioned target parking position based on the vehicle parking information, combined with the aforementioned determined target parking space area, the attribute information of the vehicle and the target limiter area.

[0086] For example, the automatic driving system can first determine the parking position of the vehicle in the target parking space area under normal circumstances based on the target limiter area and the target parking space area, and then adjust the parking position based on the parking conditions of vehicles near the parking space and the attribute information of the vehicle to obtain the target parking position. This ensures that after the vehicle automatically parks at the target parking position, it will not collide with other vehicles due to the large size of the vehicle or other vehicles being too close to the target parking space area, thereby improving the safety of the vehicle during automatic parking.

[0087] Optionally, generating a parking path for the vehicle according to the target parking space area and the target stopper area includes: outputting the target parking space area; in response to receiving a selection instruction generated by selecting the target parking space area, determining a selected parking space area corresponding to the selection instruction; and generating a parking path based on the selected parking space area and the target stopper area within the selected parking space area.

[0088] In an optional solution of this embodiment, after detecting the target detection results of multiple parking spaces, the user can actively select the parking space that requires automatic parking according to his or her own driving habits, the principle of parking nearby, and the principle of easy exit, so as to improve the user's car experience. Specifically, after obtaining the target parking space area and the target stopper area, the automatic driving system can output the above-mentioned target parking space area, for example, display the target parking space area on the vehicle's central control display screen, and then receive the user's selection operation of the target parking space, for example, the user clicks on a parking space area as the parking space for automatic parking of the vehicle. If the user selects a parking space area, the automatic driving system can generate the above-mentioned parking path according to the selected parking space area and the target stopper area inside the parking space area.

[0089] Optionally, constructing a target stopper area inside the target parking space area in the target detection result based on at least one detection result includes: determining whether the stopper area is included in at least one detection result; in response to at least one detection result not including the stopper area, generating the target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper; in response to at least one detection result including the stopper area, determining whether the parking space area in the detection result to which the stopper area belongs overlaps with the target parking space area; in response to the parking space area in the detection result to which the stopper area belongs overlapping with the target parking space area, constructing the target stopper area inside the target parking space area based on the stopper area; in response to the parking space area in the detection result to which the stopper area belongs not overlapping with the target parking space area, constructing the target stopper area inside the target parking space area based on the stopper area, based on the size relationship between the parking space area and the target parking space area in the detection result to which the stopper area belongs, and the target position relationship between the parking space area and the stopper area in the detection result to which the stopper area belongs.

[0090] The above-mentioned preset position relationship may refer to the position relationship between the stopper and the parking space under normal circumstances, and the position relationship may include the distance of the stopper relative to the boundary of the parking space, but is not limited thereto. The preset position relationship may be pre-stored in a database so that the preset position relationship can be quickly obtained.

[0091] In an optional scheme of the present embodiment, in response to the limiter detection result in the target detection result indicating that there is no limiter inside the parking space, in order to control the automatic parking of the vehicle according to the target parking space area and the target limiter area, the automatic driving system may first determine whether at least one of the above detection results includes the limiter area. If not, that is, at least one detection result does not include the limiter area, the automatic driving system may determine that there is no limiter inside the parking spaces in the vehicle's surrounding environment, and then generate the above target limiter area in the target parking space area according to the target parking space area and the above preset position relationship; if so, that is, at least one detection result includes the limiter area, considering that the detection result to which the limiter area belongs and the target detection result may be the same parking space The detection result may not be the detection result of the same parking space. Further, if the automatic driving system determines that the parking space area in the detection result to which the limiter area belongs is the same as the target parking space area, the automatic driving system can generate a target limiter area inside the target parking space area based on the positional relationship between the limiter area and the parking space area in the detection result; if the detection result to which the limiter area belongs and the target detection result are not the detection results of the same parking space, the automatic driving system can generate a target limiter area inside the target parking space area based on the size relationship between the parking space area and the target parking space area in the detection result to which the limiter area belongs, and the positional relationship between the parking space area and the limiter area in the detection result to which the limiter area belongs.

[0092] Optionally, it is possible to determine whether the detection result and the target detection result are detection results of the same parking space by judging whether the parking space area and the target parking space area in the detection result to which the limiter area belongs overlap. If overlap occurs, it means that there is a high probability that the detection result and the target detection result belong to the same parking space. If no overlap occurs, it means that there is a high probability that the detection result and the target detection result do not belong to the same parking space.

[0093] Optionally, at least one detection result is deduplicated based on the parking space areas in at least one detection result to determine the target detection result, including: based on the detection confidence of the parking space areas in the detection result, sorting the various parking space areas in the at least one detection result to obtain a parking space area sequence; if there is a parking space area in the current parking space area sequence that has not been read as the first parking space area, reading the current first parking space area from the current parking space area sequence according to the parking space area sorting, and eliminating the second parking space area in the current parking space area sequence that is located after the current first parking space area and has an overlapping relationship with the current first parking space area; if there is no parking space area in the current parking space area sequence that has not been read as the first parking space area, determining the detection result to which the parking space area in the current parking space area sequence belongs as the target detection result.

[0094] The above-mentioned detection confidence may refer to the confidence corresponding to each parking space area obtained during the process of the autonomous driving system performing parking space detection on the perception information.

[0095] It should be noted that the overlap mentioned in the present invention refers to the overlapping area between two parking spaces. Figure 2 : is a schematic diagram of overlapping parking areas according to an embodiment of the present invention, which includes three overlapping situations, wherein A refers to the overlap between the lower right corner of parking area 1 (as shown in the solid line box) and the upper left corner of parking area 2 (as shown in the dotted line box), B refers to the interior of parking area 3 (as shown in the solid line box) inside parking area 4 (as shown in the dotted line box), and C refers to the overlap between the middle part of parking area 5 (as shown in the solid line box) and the middle part of parking area 6 (as shown in the dotted line box).

[0096] In an optional solution of this embodiment, when performing deduplication processing on multiple parking space areas, two parking space areas may be selected from the multiple parking space areas for overlap determination to determine whether the two parking space areas overlap. Figure 2 As shown in A to C, if overlap occurs, it is necessary to delete one parking area from the two parking areas, and then select another parking area from the multiple parking areas to overlap with the undeleted parking area; if no overlap occurs, both parking areas can be retained, and the first parking area can be reselected for overlap determination.

[0097] Considering that different parking areas have different detection confidences, and the lower the detection confidence, the lower the detection accuracy of the parking area. Therefore, in order to improve the detection accuracy of the target parking area, the automatic driving system can first sort the multiple parking areas according to the above detection confidence to obtain a parking area sequence, in which the detection confidence of the first parking area is the highest and the detection confidence of the last parking area is the lowest. Then, the first parking area is read from the parking area sequence as the first parking area, and the first parking area is overlapped with each parking area after the first parking area. If overlap occurs, it indicates that the two parking areas correspond to the same parking space, and the parking space has been repeatedly detected. The parking areas after the first parking area are deleted, that is, the parking areas with lower detection confidence are deleted; if no overlap occurs, it indicates that the two parking areas correspond to different parking spaces. Therefore, both parking areas need to be retained to avoid missed detection. After all parking areas after the first parking area have been determined, the next parking area after the first parking area can be read from the current parking area sequence as a new first parking area, and the above determination process can be repeated, and so on, until there are no parking areas in the parking area sequence that have not been read as the first parking area.

[0098] For example, if 4 parking areas are currently detected, the detection confidence of parking area 1 is 7, the detection confidence of parking area 2 is 6, the detection confidence of parking area 3 is 4, and the detection confidence of parking area 4 is 3, then the corresponding parking area sequence can be: parking area 1, parking area 2, parking area 3, and parking area 4. In the first cycle, parking area 1 can be used as the first parking area, and parking area 1 can be overlapped with parking area 2, parking area 3, and parking area 4 respectively. If parking area 1 overlaps with parking area 2, and parking area 1 and parking area 3 do not overlap, If there is no overlap between the parking area 1 and the parking area 4, and the parking area 2 is deleted, the next cycle will start. In the second cycle, the parking area 3 can be used as the first parking area, and the parking area 3 and the parking area 4 are overlapped. If the parking area 3 and the parking area 4 overlap, the parking area 4 will be deleted. Since there is no parking area after the parking area 3 in the parking area sequence at this time, it can be determined that there is no parking area that has not been determined in the parking area sequence at this time, and the cycle can be stopped, and the detection results belonging to the parking area 1 and the parking area 3 are determined as the target detection results.

[0099] In an optional scheme of the present embodiment, considering that the matching degree between the detected multiple parking space areas and the actual parking space areas is different, and the relative position of the vehicle and the parking space, the corner position and area of ​​the parking space and other factors may affect the matching degree, therefore, before deduplication of multiple parking space areas, the automatic driving system may determine the detection confidence of each parking space area based on the current position of the above-mentioned vehicle, the size and shape of the parking space, the angle between the image acquisition device and the ground and other parameters.

[0100] Optionally, determining whether there is an overlapping relationship between the first parking space area and the second parking space area includes: determining whether there is an overlapping area between the first parking space area and the second parking space area based on the positional relationship between the endpoint of the first parking space area and the second parking space area, the positional relationship between the endpoint of the second parking space area and the first parking space area, and the positional relationship between the boundary of the first parking space area and the boundary of the second parking space area; in response to the existence of an overlapping area between the first parking space area and the second parking space area, determining area overlap information between the first parking space area and the second parking space area based on the area shapes and the relative positional relationship between the first parking space area and the second parking space area, the area overlap information representing the degree of area overlap between the first parking space area and the second parking space area; if the area overlap information exceeds a preset target area overlap information, determining that there is an overlapping relationship between the first parking space area and the second parking space area; if there is no overlapping area between the first parking space area and the second parking space area or the area overlap information does not exceed the target area overlap information, determining that there is no overlapping relationship between the first parking space area and the second parking space area.

[0101] The above-mentioned area overlap information may refer to the overlap ratio relationship between the first parking space area and the second parking space area, such as the ratio of the overlap area between the two in the first parking space area, the ratio of the overlap area in the second parking space area, or the ratio of the overlap area in the total area composed of the first parking space area and the second parking space area, etc. If the above-mentioned area overlap information is large, such as greater than or equal to a preset area overlap information threshold, it can be determined that the overlap area of ​​the first parking space area and the second parking space area is large, and the two belong to the same parking space. In this case, the above-mentioned second parking space area can be eliminated from the parking space area; if the above-mentioned area overlap information is small, such as less than the preset area overlap information threshold, it can be determined that the overlap area of ​​the first parking space area and the second parking space area is small, and the two belong to different parking spaces. In this case, the second parking space area may not be eliminated.

[0102] In an optional solution of this embodiment, different overlap determination methods can be set for different overlap situations. Figure 2Taking the three overlapping situations in as examples, whether the two parking areas overlap can be determined based on whether the endpoints on the boundaries of each parking area are within the other parking area, or whether the boundaries of the two parking areas intersect. That is, whether there is an overlapping area between the two areas can be determined based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the boundary of the second parking area.

[0103] In an optional solution of this embodiment, it is considered that when detecting parking spaces, there may be a slight overlap between parking space areas belonging to different parking spaces, but this is only a system error generated during the detection process, and there is actually no overlapping relationship between the two. Therefore, when it is detected that there is an overlapping area between the first parking space area and the second parking space area, the automatic driving system can further determine the degree of regional overlap between the first parking space area and the second parking space area according to the shape of the first parking space area, the shape of the second parking space area, and the relative position relationship between the first parking space area and the second parking space area, that is, determine the above-mentioned regional overlap information, and determine whether there is an overlapping relationship between the first parking space area and the second parking space area according to the regional overlap information. If the regional overlap information exceeds the preset target regional overlap information, it is determined that there is an overlapping relationship between the first parking space area and the second parking space area; if there is no repeated area between the first parking space area and the second parking space area or the regional overlap information does not exceed the preset target regional overlap information, it is determined that there is no overlapping relationship between the first parking space area and the second parking space area.

[0104] For example, if the above-mentioned area overlap information exceeds the preset target area overlap information, for example, the target area overlap information may be a preset ratio threshold, and the proportion of the overlapping area in the total area formed by the first parking space area and the second parking space area is greater than the preset ratio threshold, then it can be determined that there is an overlapping relationship between the first parking space area and the second parking space area; if there is no overlapping area between the first parking space area and the second parking space area, or the proportion of the overlapping area in the total area formed by the first parking space area and the second parking space area does not exceed the preset ratio threshold, then it can be determined that there is no overlapping relationship between the first parking space area and the second parking space area.

[0105] Optionally, determining whether there is an overlapping area between the first parking area and the second parking area based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the second parking area includes: judging whether there is an endpoint located in the second parking area in the first parking area, whether there is an endpoint located in the first parking area in the second parking area, and whether the boundary of the first parking area intersects with the boundary of the second parking area; if there is an endpoint located in the second parking area in the first parking area, or there is an endpoint located in the first parking area in the second parking area, or the boundary of the first parking area intersects with the boundary of the second parking area, determining that there is an overlapping area between the first parking area and the second parking area; if there is no endpoint located in the second parking area in the first parking area, no endpoint located in the first parking area in the second parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, determining that there is no overlapping area between the first parking area and the second parking area.

[0106] In an optional solution of this embodiment, when the automatic driving system makes an overlap determination on the first parking space area and the second parking space area, it can first determine whether multiple endpoints of the first parking space area are within the second parking space area, whether multiple endpoints of the second parking space area are within the first parking space area, and whether the boundary of the first parking space area and the boundary of the second parking space area intersect, wherein the first two processes can be used to determine whether the first parking space area and the second parking space area overlap. Figure 2 In case A or B in the above, the latter process can be used to determine whether the first parking space area and the second parking space area appear. Figure 2 Cases A and C in the figure. If any one of the multiple endpoints of the first parking area is within the second parking area, or any one of the multiple endpoints of the second parking area is within the first parking area, or the boundary of the first parking area intersects with the boundary of the second parking area, it can be determined that there is an overlapping area between the first parking area and the second parking area; if any one of the multiple endpoints of the first parking area is outside the second parking area, and any one of the multiple endpoints of the second parking area is outside the first parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, it can be determined that there is no overlapping area between the first parking area and the second parking area.

[0107] In an optional scheme of the present embodiment, the multiple endpoints of the first parking area and the multiple endpoints of the second parking area can be expressed in the form of coordinates. For example, the coordinates of the multiple endpoints of the first parking area and the multiple endpoints of the second parking area are determined in the vehicle coordinate system, and then the above-mentioned overlap determination process is performed based on the coordinates to improve the efficiency of determining whether the two parking areas overlap.

[0108] Optionally, determining whether the endpoint of the second parking space area is located in the first parking space area includes: determining at least one first edge constituting the boundary of the first parking space area, and determining the direction information of each first edge respectively, wherein the direction information of at least one first edge constitutes a clockwise direction or a counterclockwise direction; determining the relative position relationship between the endpoint and the first parking space area based on the direction information of the endpoint and the first edge of the second parking space area, wherein the relative position relationship between the endpoint and the first parking space area is used to characterize whether the endpoint and the first parking space area are located on the same side or different sides of the first edge; in the case where the endpoint and the first parking space area are located on different sides of the first edge in the second parking space area, determining that the endpoint is not located in the first parking space area; in the case where the endpoint and the first parking space area are not located on different sides of the first edge in the second parking space area, determining that the endpoint is located in the first parking space area.

[0109] The above-mentioned directional information may refer to the directional information of the first side of the first parking space area. Multiple pieces of directional information of the first sides may constitute a clockwise direction or a counterclockwise direction. The above-mentioned directional information may be set by the user himself or determined by the automatic driving system according to the setting rules corresponding to the directional information.

[0110] In an optional solution of this embodiment, the detected parking space area is usually represented by endpoint coordinates. In order to accurately determine whether the endpoint of the second parking space area is located in the first parking space area, each first edge constituting the boundary of the first parking space area can be converted into a vector form based on the endpoint coordinates of the first parking space area, that is, the directional information of each first edge can be determined. For ease of understanding, Figure 3 is a schematic diagram showing a parking space area overlap determination according to an embodiment of the present invention. The left side represents a situation where the parking space areas do not overlap, and the right side represents a situation where the parking space areas overlap. Figure 3 As shown, the four endpoints included in the first parking space area 301 are 311, 312, 313 and 314, respectively, and the four endpoints included in the second parking space area 302 are 321, 322, 323 and 324, respectively. Taking the first parking space area 301 as an example, based on the endpoint coordinates of the four endpoints, the direction information of each first edge is determined. Assuming that at least one first edge forms a clockwise direction, it can be determined that the direction information of the first edge formed by the endpoint 311 and the endpoint 313 is right (e.g. Figure 3 ), and the first parking space area 301 is located at the lower side of the first side. Similarly, it can be determined that the direction information of the first side formed by the endpoints 313 and 314 is directly below (as shown by the arrow in the middle). Figure 3 The first parking space area 301 is located on the left side of the first side; the directional information of the first side formed by the endpoint 314 and the endpoint 312 is the left side (as shown by the arrow in the middle). Figure 3 The first parking space area 301 is located on the upper side of the first side; the directional information of the first side formed by the endpoint 312 and the endpoint 311 is directly above (as shown by the arrow in the middle). Figure 3 The first parking space area 301 is located on the right side of the first side.

[0111] Then, based on the endpoint of the second parking space area and the orientation information of each first edge, the relative position relationship between the endpoint and the first parking space area is determined, that is, the endpoint and the first parking space area are located on the same side or different sides of the first edge. Optionally, two vectors can be constructed based on the endpoint of the second parking space area and the orientation information of each first edge, and the starting endpoint and the ending endpoint of each first edge can be determined according to the orientation information of each first edge, and based on the endpoint coordinates of the two endpoints, a first vector is constructed, and the pointing direction of the vector is the direction from the starting endpoint to the ending endpoint; based on the endpoint coordinates of the starting endpoint and the endpoint coordinates of the second parking space area, a second vector is constructed, and the pointing direction of the vector is the direction from the starting endpoint to the endpoint of the second parking space area. The angle between two vectors is calculated by the existing spatial vector angle formula. The angle is used to represent the angle that the first vector rotates when it rotates in the direction formed by at least one side to coincide with the second vector. For example, if at least one side forms a clockwise direction, the angle is used to represent the angle that the first vector rotates when it rotates in the clockwise direction to coincide with the second vector; if at least one side forms a counterclockwise direction, the angle is used to represent the angle that the first vector rotates when it rotates in the counterclockwise direction to coincide with the second vector. The relative position relationship between the endpoint of the second parking space area and the first parking space area can be further determined by the angle. For example, if the angle between the first vector and the second vector is less than 180°, it indicates that the endpoint of the second parking space area and the first parking space area are located on the same side of the first side formed by the starting endpoint and the ending endpoint; if the angle between the first vector and the second vector is greater than or equal to 180°, it indicates that the endpoint of the second parking space area and the first parking space area are located on different sides of the first side formed by the starting endpoint and the ending endpoint.

[0112] For example, Figure 3As shown on the left, for endpoint 321 of second parking space area 302, firstly, according to the direction information of the first side formed by endpoint 311 and endpoint 313, a first vector pointing from endpoint 311 to endpoint 313 and a second vector pointing from endpoint 311 to endpoint 321 are constructed. It can be determined that the first vector coincides with the second vector after being rotated 0° clockwise, that is, the angle between the first vector and the second vector is 0°, which is less than 180°. Therefore, it is determined that endpoint 321 and first parking space area 301 are located on the same side of the first side formed by endpoint 311 and endpoint 313. Similarly, according to the direction information of the first side formed by endpoint 313 and endpoint 314, it can be determined that the angle between the first vector pointing from endpoint 313 to endpoint 314 and the second vector pointing from endpoint 313 to endpoint 321 is 270°, which is greater than 180°. Therefore, It is determined that the endpoint 321 and the first parking space area 301 are located on different sides of the first edge formed by the endpoint 313 and the endpoint 314; it can be determined that the angle between the first vector pointing from the endpoint 314 to the endpoint 312 and the second vector pointing from the endpoint 314 to the endpoint 321 is less than 180° based on the direction information of the first edge formed by the endpoint 314 and the endpoint 312, therefore, it is determined that the endpoint 321 and the first parking space area 301 are located on the same side of the first edge formed by the endpoint 314 and the endpoint 312; it can be determined that the angle between the first vector pointing from the endpoint 312 to the endpoint 311 and the second vector pointing from the endpoint 312 to the endpoint 321 is less than 180° based on the direction information of the first edge formed by the endpoint 312 and the endpoint 311, therefore, it is determined that the endpoint 321 and the first parking space area 301 are located on the same side of the first edge formed by the endpoint 312 and the endpoint 311. Therefore, it can be determined that the endpoint 321 of the second parking space area 302 is not located in the first parking space area 301. In the same manner, it can be determined that none of the four endpoints of the second parking space area 302 is located in the first parking space area 301 , that is, it can be determined that the second parking space area does not have an endpoint located in the first parking space area.

[0113] For example, Figure 3As shown on the right, for endpoint 322 of second parking space area 302, first, according to the direction information of the first side formed by endpoint 311 and endpoint 313, a first vector pointing from endpoint 311 to endpoint 313 and a second vector pointing from endpoint 311 to endpoint 322 are constructed, and it can be determined that the angle between the first vector and the second vector is less than 180°. Therefore, endpoint 322 and first parking space area 301 are located on the same side of the first side formed by endpoint 311 and endpoint 313; similarly, according to the direction information of the first side formed by endpoint 313 and endpoint 314, it can be determined that the angle between the first vector pointing from endpoint 313 to endpoint 314 and the second vector pointing from endpoint 313 to endpoint 322 is less than 180°. Therefore, it is determined that endpoint 322 and first parking space area 301 are located at the end. Point 313 and endpoint 314 are on the same side of the first edge formed by endpoint 314 and endpoint 312; based on the direction information of the first edge formed by endpoint 314 and endpoint 312, it can be determined that the angle between the first vector pointing from endpoint 314 to endpoint 312 and the second vector pointing from endpoint 314 to endpoint 322 is less than 180°, therefore, it is determined that endpoint 322 and the first parking space area 301 are located on the same side of the first edge formed by endpoint 314 and endpoint 312; based on the direction information of the first edge formed by endpoint 312 and endpoint 311, it can be determined that the angle between the first vector pointing from endpoint 312 to endpoint 311 and the second vector pointing from endpoint 312 to endpoint 322 is less than 180°, therefore, it is determined that endpoint 322 and the first parking space area 301 are located on the same side of the first edge formed by endpoint 312 and endpoint 311. Therefore, it can be determined that endpoint 322 of the second parking space area 302 is located in the first parking space area 301, that is, it can be determined that there is an endpoint located in the first parking space area in the second parking space area.

[0114] It should be noted that the same implementation scheme can be used to determine whether the endpoint of the second parking space area is located in the first parking space area and to determine whether the endpoint of the first parking space area is located in the second parking space area. In the embodiment of the present application, only the example of determining whether the endpoint of the second parking space area is located in the first parking space area is used for detailed description, and the implementation scheme of determining whether the endpoint of the first parking space area is located in the second parking space area will not be elaborated here.

[0115] Optionally, determining whether the boundary of the first parking space area intersects with the boundary of the second parking space area includes: obtaining the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking space area, and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking space area, the endpoint coordinates consisting of an endpoint horizontal coordinate and an endpoint vertical coordinate; in response to the maximum endpoint horizontal coordinate of at least one first edge being smaller than the minimum endpoint horizontal coordinate of at least one second edge, or the minimum endpoint horizontal coordinate of at least one first edge being larger than the maximum endpoint horizontal coordinate of at least one second edge, or the maximum endpoint vertical coordinate of at least one first edge being smaller than the minimum endpoint vertical coordinate of at least one second edge, or at least one The minimum endpoint ordinate of one side is greater than the maximum endpoint ordinate of at least one second side, determining that the boundary of the first parking space area and the boundary of the second parking space area do not intersect; in response to the maximum endpoint horizontal coordinate of at least one first side being greater than or equal to the minimum endpoint horizontal coordinate of at least one second side, and the minimum endpoint horizontal coordinate of at least one first side being less than or equal to the maximum endpoint horizontal coordinate of at least one second side, and the maximum endpoint vertical coordinate of at least one first side being greater than or equal to the minimum endpoint vertical coordinate of at least one second side, and the minimum endpoint vertical coordinate of at least one first side being less than or equal to the maximum endpoint vertical coordinate of at least one second side, determining that the boundary of the first parking space area and the boundary of the second parking space area intersect.

[0116] In an optional solution of this embodiment, the parking space area can generally be represented by endpoint coordinates, and the comparison coordinate method can be directly adopted to improve the determination efficiency. Specifically, when determining whether the boundary of the first parking space area intersects with the boundary of the second parking space area, the automatic driving system can first determine the maximum endpoint horizontal coordinate, the maximum endpoint vertical coordinate, the minimum endpoint horizontal coordinate and the minimum endpoint vertical coordinate of the multiple edges constituting the first parking space area based on the endpoint coordinates constituting the first parking space area. Similarly, the maximum endpoint horizontal coordinate, the maximum endpoint vertical coordinate, the minimum endpoint horizontal coordinate and the minimum endpoint vertical coordinate of the multiple edges constituting the second parking space area can be determined.

[0117] After determining the above-mentioned endpoint coordinates, if the maximum endpoint horizontal coordinate of at least one first side is smaller than the minimum endpoint horizontal coordinate of at least one second side, it can be determined that the first parking space area is located on the left side of the second parking space area, and the boundaries of the two cannot intersect; if the minimum endpoint horizontal coordinate of at least one first side is greater than the maximum endpoint horizontal coordinate of at least one second side, it can be determined that the first parking space area is located on the right side of the second parking space area, and the boundaries of the two cannot intersect; if the maximum endpoint vertical coordinate of at least one first side is smaller than the minimum endpoint vertical coordinate of at least one second side, it can be determined that the first parking space area is located below the second parking space area, and the boundaries of the two cannot intersect; if the minimum endpoint vertical coordinate of at least one first side is greater than the maximum endpoint vertical coordinate of at least one second side, it can be determined that the first parking space area is located above the second parking space area, and the boundaries of the two cannot intersect. Therefore, if the maximum endpoint abscissa of at least one first side is less than the minimum endpoint abscissa of at least one second side, or the minimum endpoint abscissa of at least one first side is greater than the maximum endpoint abscissa of at least one second side, or the maximum endpoint ordinate of at least one first side is less than the minimum endpoint ordinate of at least one second side, or the minimum endpoint ordinate of at least one first side is greater than the maximum endpoint ordinate of at least one second side, it can be determined that the boundary of the first parking space area and the boundary of the second parking space area do not intersect. If the maximum endpoint abscissa of at least one first side is greater than or equal to the minimum endpoint abscissa of at least one second side, and the minimum endpoint abscissa of at least one first side is less than or equal to the maximum endpoint abscissa of at least one second side, and the maximum endpoint ordinate of at least one first side is greater than or equal to the minimum endpoint ordinate of at least one second side, and the minimum endpoint ordinate of at least one first side is less than or equal to the maximum endpoint ordinate of at least one second side, since the first parking space area is composed of at least one first side, and the second parking space area is composed of at least one second side, in this case, it can be determined that the boundary of the first parking space area and the boundary of the second parking space area intersect.

[0118] Optionally, determining the area overlap information between the first parking area and the second parking area based on the area shapes and relative position relationship between the first parking area and the second parking area includes: in response to the area shapes of the first parking area and the second parking area being both rectangular, determining the area overlap information between the first parking area and the second parking area based on the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking area and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking area; in response to the area shapes of the first parking area and the second parking area being not rectangular, determining the area overlap information between the first parking area and the second parking area based on the relative position relationship between the first parking area and the second parking area and the number of pixels in the perception information used to respectively characterize the first parking area and the second parking area.

[0119] In an optional solution of the present embodiment, considering that elements between different parking spaces, such as the shape and size of the parking spaces, may be different, and these elements will also affect the determination of the area overlap information between different parking space areas, therefore, when determining the area overlap information between the first parking space area and the second parking space area, the first shape type of the first parking space area and the second shape type of the second parking space area may be first determined. If both are rectangular, the areas of the first parking space area and the second parking space area, as well as the endpoint coordinates of the overlapping area where the first parking space area and the second parking space area overlap may be directly determined based on the endpoint coordinates between the two parking space areas. The automatic driving system determines the area of ​​the overlapping area based on the endpoint coordinates of the overlapping area, thereby determining the area overlap information of the first parking space area and the second parking space area. If If either of them is not a rectangle, it is not easy to calculate the regional overlap information of the first parking area and the second parking area through the endpoint coordinates between the two parking areas. In order to simplify the calculation process and improve the determination efficiency, the areas of the first parking area and the second parking area can be characterized according to the number of pixels used to respectively characterize the first parking area and the second parking area in the perception information. Therefore, images of the first parking area and the second parking area can be generated according to the perception information, so that the number of pixels located in the first parking area, the number of pixels located in the second parking area, and the number of pixels located in the overlapping area can be determined, and then the regional overlap information of the first parking area and the second parking area can be determined according to the number of pixels in the overlapping area in the image, the number of pixels located in the first parking area, and the number of pixels located in the second parking area.

[0120] Optionally, based on the relative position relationship between the first parking space area and the second parking space area, and the number of pixel points in the perception information used to respectively characterize the first parking space area and the second parking space area, determining the area overlap information of the first parking space area and the second parking space area includes: determining the number of pixel points in the perception information used to characterize the overlapping area based on the relative position relationship between the first parking space area and the second parking space area; determining the area overlap information based on the number of pixel points in the perception information used to respectively characterize the first parking space area, the second parking space area and the overlapping area.

[0121] In an optional solution of this embodiment, for ease of understanding, when determining the area overlap information of the first parking space area and the second parking space area according to the number of pixels, the automatic driving system may first determine the number of pixels located in the first parking space area and the number of pixels located in the second parking space area, and determine the number of pixels located in the overlap area according to the relative position relationship between the first parking space area and the second parking space area. Finally, according to the above three numbers of pixels, the area overlap information of the first parking space area and the second parking space area can be determined.

[0122] Optionally, parking space and limiter detection is performed on the perceived information to obtain at least one detection result, including: generating a target image based on the perceived information; performing parking space and limiter detection on the target image using a target detection model to obtain a detection result of an opening point of the parking space; and regressing the corner points of the parking space and the endpoints of the limiter based on the detection result of the opening point to obtain at least one detection result.

[0123] The target image may refer to an image that can reflect the environment near the vehicle, and the target image may at least include a parking space near the vehicle. The target detection model may be a model for implementing target detection in the field of image processing. In order to apply the model to parking space and limiter detection, training samples may be provided to fine-tune the trained model, thereby obtaining a target detection model.

[0124] In an optional solution of this embodiment, considering that image processing technology is relatively mature, when using perception information to detect parking spaces and limiters near vehicles, in order to improve detection efficiency, the automatic driving system can first generate the above-mentioned target image based on the acquired perception information, and then use the target detection method in the image processing technology to realize the detection of parking spaces and limiters. Generally, the boundary line of the parking space usually forms a rectangle, which contains four corner points. In order to facilitate the entry and exit of vehicles, the boundary line of the parking space usually has an opening. Therefore, the two end points of the opening position can be used as the opening points of the parking space, and the four corner points of the above-mentioned rectangle can be used as the end points of the parking space area detected. There are usually two limiters placed in the parking space, which are used to limit the parking positions of the two vehicles, and the limiters are usually in the shape of a cuboid. A limiter includes two ends, one of which is close to the other limiter, and the other end is close to the boundary line of the parking space. Therefore, the two ends of the two limiters close to the boundary line of the parking space can be used as the end points of the limiter area, that is, the limiter area contains two limiters. Specifically, the pre-trained target detection model can be used to detect multiple opening points of the parking space in the target image, and the detection results of the multiple opening points can be determined, that is, the two endpoints of the opening position on the boundary line of the parking space can be determined. Then, based on the detection results of the multiple opening points, the corner points of the parking space in the target image and the endpoints of the stopper can be regressed by the regression algorithm in the relevant technology to determine the corner points of the rectangle formed by the boundary line of the parking space and the two endpoints of the stopper close to the boundary line of the parking space, thereby determining the above-mentioned parking space area and the stopper detection results.

[0125] Optionally, in response to multiple perception devices being provided on the vehicle, a target image is generated based on the perception information, including: generating multiple local images based on the perception information perceived by the multiple perception devices; stitching the multiple local images to obtain a stitched image; and converting the stitched image to a bird's-eye view space to obtain a target image.

[0126] The above-mentioned multiple sensing devices may refer to image acquisition devices on the vehicle for acquiring information about the vehicle's surrounding environment, and may include but are not limited to: fisheye cameras, surround view cameras, etc. The above-mentioned local images may refer to images captured by the sensing devices that can reflect local environmental information near the vehicle.

[0127] In an optional solution of this embodiment, since the perception range of a single perception device is limited, in order to obtain environmental information within a range of the vehicle, multiple perception devices are usually installed on the vehicle in different directions. Therefore, the automatic driving system can first obtain the information perceived by the multiple perception devices on the vehicle to generate the above-mentioned multiple local images, such as using four fisheye cameras deployed around the vehicle to capture multiple images that can reflect the environmental information around the vehicle, and then stitching the generated multiple local images, for example, stitching the multiple images captured according to the internal and external parameters of the fisheye camera to obtain the above-mentioned stitched image, and finally converting the stitched image into the bird's-eye view space to obtain the above-mentioned target image.

[0128] Example 2

[0129] According to another aspect of the embodiment of the present invention, corresponding to the embodiment of the above-mentioned vehicle control method, this specification also provides a vehicle control device, Figure 4 is a structural block diagram of a vehicle control device according to an embodiment of the present invention. Figure 4 As shown, the device may include: an acquisition module 402, in response to receiving an automatic parking instruction, acquiring perception information obtained by perceiving the vehicle's surrounding environment; a detection module 404, for performing parking space and limiter detection on the perception information to obtain at least one detection result; the detection result includes a parking space area of ​​the parking space in the vehicle's surrounding environment and a limiter detection result, and the limiter detection result is used to characterize the limiter area where there is no limiter inside the parking space or the limiter inside the parking space; a deduplication module 406, for performing deduplication processing on at least one detection result based on the parking space area in at least one detection result to determine a target detection result; a first control module 408, for generating a parking path for the vehicle according to the target parking space area and the target stopper area in response to the target detection result including the target parking space area and the target stopper area, and controlling the vehicle to automatically park in the parking space based on the parking path; a second control module 410, for generating a target stopper area inside the target parking space area in the target detection result based on the target parking space area and at least one detection result in response to the stopper detection result in the target detection result indicating that there is no stopper inside the parking space, generating a parking path for the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park in the parking space based on the parking path.

[0130] Optionally, the device also includes: a target point position determination module, used to determine the target point position of a target point on the current vehicle, wherein the target point is used to represent the midpoint between two preset wheels on the vehicle; a parameter adjustment module, used to adjust the parking path or the vehicle posture of the vehicle in real time during the process of controlling the vehicle to automatically park to a parking space based on the parking path based on the relative position relationship between the target point position and the target limiter area.

[0131] Optionally, the first control module and the second control module include: a position determination unit, used to determine a target parking position of the vehicle inside a parking space corresponding to the target parking space area based on attribute information of the vehicle, the target parking space area and the target limiter area; and a first path generation unit, used to generate a parking path based on the current vehicle position and the target parking position of the vehicle.

[0132] Optionally, the position determination unit is further used to: obtain vehicle parking information of vehicles parked in other parking spaces adjacent to the parking space corresponding to the target parking space area; and determine the target parking position based on the vehicle's attribute information, the target parking space area, the target limiter area and the vehicle parking information.

[0133] Optionally, the first control module and the second control module include: an area output unit for outputting a target parking space area; a first area determination unit for determining a selected parking space area corresponding to a selection instruction in response to receiving a selection instruction generated by selecting the target parking space area; and a second path generation unit for generating a parking path based on the selected parking space area and a target limiter area within the selected parking space area.

[0134] Optionally, the second control module includes: a second area determination unit, configured to determine whether the at least one detection result includes a stopper area; a first area generation unit, configured to generate a target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper in response to the at least one detection result not including the stopper area; an overlap detection unit, configured to determine whether the parking space area in the detection result to which the stopper area belongs overlaps with the target parking space area in response to the stopper area being included in the at least one detection result; a second area generation unit, configured to generate a target stopper area inside the target parking space area based on the stopper area in response to the parking space area and the target parking space area in the detection result to which the stopper area belongs overlapping; and a third area generation unit, configured to generate a target stopper area inside the target parking space area based on a size relationship between the parking space area and the target parking space area in the detection result to which the stopper area belongs, and a target position relationship between the parking space area and the stopper area in the detection result to which the stopper area belongs, in response to the parking space area and the target parking space area in the detection result to which the stopper area belongs not overlapping.

[0135] Optionally, the deduplication module includes: an area sorting unit, which is used to sort each parking space area in at least one detection result to obtain a parking space area sequence based on the detection confidence of the parking space area in the detection result; a sequence updating unit, which is used to read the current first parking space area from the current parking space area sequence according to the parking space area sorting if there is a parking space area in the current parking space area sequence that has not been read as the first parking space area, and to eliminate the second parking space area in the current parking space area sequence that is located after the current first parking space area and has an overlapping relationship with the current first parking space area; and a result determination unit, which is used to determine the detection result to which the parking space area in the current parking space area sequence belongs as the target detection result if there is no parking space area in the current parking space area sequence that has not been read as the first parking space area.

[0136] Optionally, the deduplication module further includes: an overlapping area determination unit, for determining whether there is an overlapping area between the first parking area and the second parking area based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the boundary of the second parking area; an overlapping degree determination unit, for determining, in response to the existence of an overlapping area between the first parking area and the second parking area, area overlapping information between the first parking area and the second parking area based on the area shapes and relative positional relationship between the first parking area and the second parking area, the area overlapping information representing the area overlapping degree between the first parking area and the second parking area; a first overlapping relationship determination unit, for determining that there is an overlapping relationship between the first parking area and the second parking area if the area overlapping information exceeds a preset target area overlapping information; and a second overlapping relationship determination unit, for determining that there is no overlapping relationship between the first parking area and the second parking area if there is no overlapping area between the first parking area and the second parking area or the area overlapping information does not exceed the target area overlapping information.

[0137] Optionally, the overlapping area determination unit is further used to: determine whether there is an endpoint located in the second parking area in the first parking area, whether there is an endpoint located in the first parking area in the second parking area, and whether a boundary of the first parking area intersects with a boundary of the second parking area; if there is an endpoint located in the second parking area in the first parking area, or there is an endpoint located in the first parking area in the second parking area, or the boundary of the first parking area intersects with the boundary of the second parking area, determine that there is an overlapping area between the first parking area and the second parking area; if there is no endpoint located in the second parking area in the first parking area, there is no endpoint located in the first parking area in the second parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, determine that there is no overlapping area between the first parking area and the second parking area.

[0138] Optionally, the overlapping area determination unit is further used to: determine at least one first edge constituting the boundary of the first parking space area, and determine the direction information of each first edge respectively, wherein the direction information of at least one first edge constitutes a clockwise direction or a counterclockwise direction; determine the relative position relationship between the endpoint and the first parking space area based on the direction information of the endpoint and the first edge of the second parking space area, wherein the relative position relationship between the endpoint and the first parking space area is used to characterize whether the endpoint and the first parking space area are located on the same side or different sides of the first edge; in the case where the endpoint and the first parking space area are located on different sides of the first edge in the second parking space area, determine that the endpoint is not located in the first parking space area; in the case where the endpoint and the first parking space area are not located on different sides of the first edge in the second parking space area, determine that the endpoint is located in the first parking space area.

[0139] Optionally, the overlapping area determination unit is further used to: obtain the endpoint coordinates of each of the at least one first edge constituting the boundary of the first parking space area, and the endpoint coordinates of each of the at least one second edge constituting the boundary of the second parking space area, the endpoint coordinates being composed of an endpoint horizontal coordinate and an endpoint vertical coordinate; in response to the maximum endpoint horizontal coordinate of at least one first edge being less than the minimum endpoint horizontal coordinate of at least one second edge, or the minimum endpoint horizontal coordinate of at least one first edge being greater than the maximum endpoint horizontal coordinate of at least one second edge, or the maximum endpoint vertical coordinate of at least one first edge being less than the minimum endpoint vertical coordinate of at least one second edge, or the minimum endpoint vertical coordinate of at least one first edge. In response to the maximum endpoint horizontal coordinate of at least one first edge being greater than or equal to the minimum endpoint horizontal coordinate of at least one second edge, and the minimum endpoint horizontal coordinate of at least one first edge being less than or equal to the maximum endpoint horizontal coordinate of at least one second edge, and the maximum endpoint vertical coordinate of at least one first edge being greater than or equal to the minimum endpoint vertical coordinate of at least one second edge, and the minimum endpoint vertical coordinate of at least one first edge being less than or equal to the maximum endpoint vertical coordinate of at least one second edge, it is determined that the boundary of the first parking space area intersects with the boundary of the second parking space area.

[0140] Optionally, the overlapping degree determination unit is further used to: in response to the area shapes of the first parking space area and the second parking space area being rectangles, determine the area overlapping information of the first parking space area and the second parking space area based on the endpoint coordinates of each first edge of at least one first edge constituting the boundary of the first parking space area and the endpoint coordinates of each second edge of at least one second edge constituting the boundary of the second parking space area; in response to the area shapes of the first parking space area and the second parking space area being not rectangles, determine the area overlapping information of the first parking space area and the second parking space area based on the relative positional relationship between the first parking space area and the second parking space area, and the number of pixels in the perception information used to respectively characterize the first parking space area and the second parking space area.

[0141] Optionally, the overlap degree determination unit is also used to: determine the number of pixel points in the perception information used to characterize the overlapping area based on the relative position relationship between the first parking space area and the second parking space area; determine the area overlap information based on the number of pixel points in the perception information used to characterize the first parking space area, the second parking space area and the overlapping area respectively.

[0142] Optionally, the detection module includes: an image generation unit, used to generate a target image based on perception information; an opening point detection unit, used to perform parking space and limiter detection on the target image using a target detection model to obtain a detection result of the opening point of the parking space; an opening point regression unit, used to regress the corner points of the parking space and the endpoints of the limiter based on the detection result of the opening point to obtain at least one detection result.

[0143] Optionally, in response to multiple perception devices being arranged on the vehicle, the image generation unit is further used to: generate multiple local images based on perception information perceived by the multiple perception devices; stitch the multiple local images to obtain a stitched image; and convert the stitched image to a bird's-eye view space to obtain a target image.

[0144] Example 3

[0145] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided. The computer-readable storage medium includes a stored program, wherein when the program is executed, a processor of a device is controlled to execute any one of the above methods.

[0146] Example 4

[0147] According to another aspect of an embodiment of the present invention, there is also provided an electronic device, comprising: one or more processors; a storage device for storing one or more programs; and a method in which, when the one or more programs are executed by the one or more processors, the one or more processors execute any one of the above methods.

[0148] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.

[0149] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.

[0150] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.

[0151] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed over multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.

[0152] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.

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

[0154] The above are only preferred embodiments of the present invention. It should be pointed out that, for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A vehicle control method, characterized in that: include: In response to receiving an automatic parking instruction, acquiring perception information obtained by perceiving the surrounding environment of the vehicle; Performing parking space and stopper detection on the perception information to obtain at least one detection result; the detection result includes a parking space area and a stopper detection result of the parking space in the surrounding environment of the vehicle, and the stopper detection result is used to indicate that there is no stopper inside the parking space or a stopper area of ​​the stopper inside the parking space; De-duplication processing is performed on the at least one detection result based on the parking space area in the at least one detection result to determine a target detection result; In response to the target detection result including a target parking space area and a target stopper area, generating a parking path for the vehicle according to the target parking space area and the target stopper area, and controlling the vehicle to automatically park in the parking space based on the parking path; In response to a stopper detection result in the target detection result indicating that a stopper does not exist inside the parking space, generating a target stopper region inside the target parking space region in the target detection result based on the target parking space region and the at least one detection result, generating a parking path for the vehicle according to the target parking space region and the target stopper region, and controlling the vehicle to automatically park in the parking space based on the parking path; Wherein, the constructing and generating a target stopper region inside the target parking space region in the target detection result based on the at least one detection result comprises: determining whether the at least one detection result includes a stopper region; in response to the at least one detection result not including the stopper region, generating a target stopper region inside the target parking space region in the target detection result based on a preset position relationship between the parking space and the stopper; in response to the at least one detection result including the stopper region, determining whether the parking space region in the detection result to which the stopper region belongs overlaps with the target parking space region; in response to the parking space region in the detection result to which the stopper region belongs overlapping with the target parking space region, constructing and generating a target stopper region inside the target parking space region based on the stopper region; in response to the parking space region in the detection result to which the stopper region belongs not overlapping with the target parking space region, constructing and generating a target stopper region inside the target parking space region based on the stopper region, based on a size relationship between the parking space region in the detection result to which the stopper region belongs and the target parking space region, and a target position relationship between the parking space region and the stopper region in the detection result to which the stopper region belongs.

2. The vehicle control method according to claim 1, characterized in that: Also includes: Determining a target point position of a target point on the current vehicle, wherein the target point is used to represent a midpoint between two preset wheels on the vehicle; Based on the relative position relationship between the target point position and the target stopper area, the parking path or the vehicle posture of the vehicle is adjusted in real time during the process of controlling the vehicle to automatically park at the parking space based on the parking path.

3. The vehicle control method according to claim 1, characterized in that: The generating a parking path of the vehicle according to the target parking space area and the target stopper area includes: Determining a target parking position of the vehicle inside a parking space corresponding to the target parking space area based on the attribute information of the vehicle, the target parking space area, and the target stopper area; The parking path is generated based on a current vehicle position of the vehicle and the target parking position.

4. The vehicle control method according to claim 1, characterized in that: Generating a parking path for the vehicle according to the target parking space area and the target stopper area includes: Outputting the target parking space area; In response to receiving a selection instruction generated by selecting the target parking space area, determining a selected parking space area corresponding to the selection instruction; The parking path is generated based on the selected parking space area and a target stopper area within the selected parking space area.

5. The vehicle control method according to claim 1, characterized in that: The performing deduplication processing on the at least one detection result based on the parking space area in the at least one detection result to determine the target detection result includes: Based on the detection confidence of the parking space area in the detection result, sorting each parking space area in the at least one detection result to obtain a parking space area sequence; If there is a parking space area in the current parking space area sequence that has not been read as the first parking space area, read the current first parking space area from the current parking space area sequence according to the parking space area sorting, and remove the second parking space area in the current parking space area sequence that is located after the current first parking space area and overlaps with the current first parking space area; If there is no parking space area that has not been read as the first parking space area in the current parking space area sequence, the detection result to which the parking space area in the current parking space area sequence belongs is determined as the target detection result.

6. The vehicle control method according to claim 5, characterized in that: Determining whether there is an overlapping relationship between the first parking space area and the second parking space area includes: determining whether there is an overlapping area between the first parking area and the second parking area based on a positional relationship between an endpoint of the first parking area and the second parking area, a positional relationship between an endpoint of the second parking area and the first parking area, and a positional relationship between a boundary of the first parking area and a boundary of the second parking area; In response to an overlapped area between the first parking space area and the second parking space area, determining area overlap information between the first parking space area and the second parking space area based on area shapes and a relative position relationship between the first parking space area and the second parking space area, wherein the area overlap information represents an area overlap degree between the first parking space area and the second parking space area; If the area overlap information exceeds the preset target area overlap information, determining that there is an overlap relationship between the first parking space area and the second parking space area; If there is no overlapping area between the first parking space area and the second parking space area or the area overlapping information does not exceed the target area overlapping information, it is determined that there is no overlapping relationship between the first parking space area and the second parking space area.

7. The vehicle control method according to claim 6, characterized in that: The determining whether there is an overlapping area between the first parking area and the second parking area based on the positional relationship between the endpoint of the first parking area and the second parking area, the positional relationship between the endpoint of the second parking area and the first parking area, and the positional relationship between the boundary of the first parking area and the boundary of the second parking area includes: Determine whether there is an endpoint located in the second parking area in the first parking area, whether there is an endpoint located in the first parking area in the second parking area, and whether a boundary of the first parking area intersects a boundary of the second parking area; If there is an endpoint located in the second parking area in the first parking area, or there is an endpoint located in the first parking area in the second parking area, or a boundary of the first parking area intersects with a boundary of the second parking area, it is determined that there is an overlapping area between the first parking area and the second parking area; If there is no endpoint located in the second parking area in the first parking area, there is no endpoint located in the first parking area in the second parking area, and the boundary of the first parking area does not intersect with the boundary of the second parking area, it is determined that there is no overlapping area between the first parking area and the second parking area.

8. The vehicle control method according to claim 7, characterized in that: Determining whether an endpoint of the second parking space area is located in the first parking space area includes: Determine at least one first side constituting a boundary of the first parking space area, and respectively determine direction information of each first side, wherein the direction information of the at least one first side constitutes a clockwise direction or a counterclockwise direction; Determine, based on the orientation information of the endpoint of the second parking space area and the first side, a relative position relationship between the endpoint and the first parking space area, wherein the relative position relationship between the endpoint and the first parking space area is used to indicate whether the endpoint and the first parking space area are located on the same side or different sides of the first side; In a case where the endpoint exists in the second parking space area and the first parking space area is located on different sides of the first side, determining that the endpoint is not located in the first parking space area; In the case that the end point does not exist in the second parking space area and the first parking space area is located on different sides of the first side, it is determined that the end point is located in the first parking space area.

9. The vehicle control method according to claim 7, characterized in that: Determining whether a boundary of the first parking space area intersects a boundary of the second parking space area includes: Obtaining the endpoint coordinates of each of the at least one first side constituting the boundary of the first parking space area, and the endpoint coordinates of each of the at least one second side constituting the boundary of the second parking space area, wherein the endpoint coordinates are composed of an endpoint horizontal coordinate and an endpoint vertical coordinate; In response to the maximum endpoint abscissa of the at least one first side being smaller than the minimum endpoint abscissa of the at least one second side, or the minimum endpoint abscissa of the at least one first side being larger than the maximum endpoint abscissa of the at least one second side, or the maximum endpoint ordinate of the at least one first side being smaller than the minimum endpoint ordinate of the at least one second side, or the minimum endpoint ordinate of the at least one first side being larger than the maximum endpoint ordinate of the at least one second side, determining that the boundary of the first parking space area does not intersect with the boundary of the second parking space area; In response to the maximum endpoint horizontal coordinate of the at least one first edge being greater than or equal to the minimum endpoint horizontal coordinate of the at least one second edge, and the minimum endpoint horizontal coordinate of the at least one first edge being less than or equal to the maximum endpoint horizontal coordinate of the at least one second edge, and the maximum endpoint vertical coordinate of the at least one first edge being greater than or equal to the minimum endpoint vertical coordinate of the at least one second edge, and the minimum endpoint vertical coordinate of the at least one first edge being less than or equal to the maximum endpoint vertical coordinate of the at least one second edge, it is determined that the boundary of the first parking space area intersects with the boundary of the second parking space area.

10. The vehicle control method according to claim 6, characterized in that: The determining, based on the area shapes and relative positional relationship between the first parking area and the second parking area, area overlap information between the first parking area and the second parking area includes: In response to the area shapes of the first parking space area and the second parking space area being both rectangular, based on the endpoint coordinates of each of the first sides of at least one first side constituting the boundary of the first parking space area and the endpoint coordinates of each of the second sides of at least one second side constituting the boundary of the second parking space area, determining area overlap information of the first parking space area and the second parking space area; In response to the area shapes of the first parking space area and the second parking space area not being the rectangle, based on the relative position relationship between the first parking space area and the second parking space area, and the number of pixels in the perception information respectively used to represent the first parking space area and the second parking space area, the area overlap information of the first parking space area and the second parking space area is determined.

11. A vehicle control device, characterized in that: include: an acquisition module, configured to acquire, in response to receiving an automatic parking instruction, perception information obtained by perceiving the surrounding environment of the vehicle; a detection module, configured to perform parking space and stopper detection on the perception information to obtain at least one detection result; the detection result includes a parking space area and a stopper detection result of the parking space in the surrounding environment of the vehicle, the stopper detection result being used to indicate that there is no stopper inside the parking space or a stopper area of ​​the stopper inside the parking space; a deduplication module, configured to perform deduplication processing on the at least one detection result based on the parking space area in the at least one detection result to determine a target detection result; a first control module, configured to generate a parking path for the vehicle according to the target parking space area and the target stopper area in response to the target detection result including the target parking space area and the target stopper area, and control the vehicle to automatically park at the parking space based on the parking path; a second control module, configured to generate a target stopper region inside the target parking space region in the target detection result based on the target parking space region and the at least one detection result in response to the stopper detection result in the target detection result indicating that there is no stopper inside the parking space, generate a parking path for the vehicle based on the target parking space region and the target stopper region, and control the vehicle to automatically park in the parking space based on the parking path; The second control module includes: a second area determination unit for determining whether the at least one detection result includes a stopper area; a first area generation unit for generating a target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper in response to the at least one detection result not including the stopper area; an overlap detection unit for determining whether the parking space area in the detection result to which the stopper area belongs overlaps with the target parking space area in response to the at least one detection result including the stopper area; and a second area generation unit for generating a target stopper area inside the target parking space area in the target detection result based on a preset position relationship between the parking space and the stopper in response to the at least one detection result including the stopper area. When the parking space area and the target parking space area overlap in the detection result to which the limiter area belongs, a target limiter area inside the target parking space area is constructed and generated based on the limiter area; a third area generating unit is used to respond to the fact that the parking space area and the target parking space area do not overlap in the detection result to which the limiter area belongs, and to construct and generate a target limiter area inside the target parking space area based on a size relationship between the parking space area and the target parking space area in the detection result to which the limiter area belongs, and a target position relationship between the parking space area and the limiter area in the detection result to which the limiter area belongs.

12. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the method according to any one of claims 1 to 10 is executed in a processor of a device where the program is controlled.

13. An electronic device, characterized in that: include: one or more processors; A storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors perform the method according to any one of claims 1 to 10.