Parking space status determination method, controller, vehicle, storage medium and program product

Acquiring images through the vehicle-mounted shooting device and calculating the grounding information of obstacles relative to the direction of the parking space solves the problem of inaccuracy of ultrasonic sensors in parking space status judgment, improves the accuracy of parking space status recognition, and reduces the occurrence of parking accidents.

CN118430333BActive Publication Date: 2024-10-11BYD CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410808690.7
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-21
Publication Date
2024-10-11
Estimated Expiration
2044-06-21

AI Technical Summary

Technical Problem

The existing technology has inaccuracies when using ultrasonic sensors to determine the status of parking spaces. In particular, it is unable to distinguish the status of the floor locks in the parking spaces, resulting in the actual parking spaces being misjudged as unavailable parking spaces.

Method used

Obtain the image through the vehicle's on-board shooting device, determine the grounding information and parking space information of the obstacle in the surround image, calculate the target grounding information of the obstacle relative to the direction of the parking space, and then determine the parking space status of the parking space to improve the accuracy of parking space status recognition.

Benefits of technology

It improves the accuracy of parking space status recognition, reduces the occurrence of parking accidents, and solves the inaccuracy problem of ultrasonic sensors in parking space status judgment.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118430333B_ABST
    Figure CN118430333B_ABST
Patent Text Reader

Abstract

The present disclosure relates to the field of vehicle technology, and in particular to a method for determining a parking space status, a controller, a vehicle, a storage medium, and a program product. The method includes: determining the grounding information of an obstacle in the image in the surround view image and the parking space information of the parking space in the image in the surround view image based on an image acquired by an on-board camera of the vehicle; determining the first target grounding information of the obstacle relative to the parking space direction based on the grounding information and the parking space information; determining the parking space status of the parking space based on the first target grounding information and the parking space information. Thus, the automatic recognition of the parking space status can be achieved based on the grounding information and the parking space information. In addition, since the target grounding information is the grounding information of the obstacle relative to the parking space direction, the target grounding information can more accurately reflect the occupancy of the obstacle in the parking space, and then when determining the parking space status based on the target grounding information, the recognition accuracy of the parking space status can be improved, and parking accidents can be reduced.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of vehicle technology, and in particular, to a parking space status determination method, a controller, a vehicle, a storage medium, and a program product. Background Art

[0002] With the development of vehicle technology, automatic parking functions have been developed. When using the automatic parking function to park, the relevant technology generally uses an ultrasonic sensor to emit ultrasonic waves and receive the reflected signals to judge the parking status of the parking space.

[0003] However, due to various reasons, when the parking space status is determined by using an ultrasonic sensor, the parking space status may be inaccurate. Summary of the invention

[0004] The purpose of the present disclosure is to provide a parking space status determination method, a controller, a vehicle, a storage medium and a program product to solve the above technical problems.

[0005] In order to achieve the above-mentioned object, the present disclosure provides a parking space status determination method in a first aspect, the parking space status determination method comprising:

[0006] Determining, based on an image acquired by an onboard camera of the vehicle, ground information of an obstacle in the image in the surround view image and parking space information of a parking space in the image in the surround view image;

[0007] Determining first target ground contact information of the obstacle relative to the parking space direction according to the ground contact information and the parking space information;

[0008] A parking space status of the parking space is determined according to the first target grounding information and the parking space information, where the parking space status is used to indicate whether the parking space is occupied by the obstacle.

[0009] Optionally, the parking spaces include a plurality of parking spaces, and determining the first target ground contact information of the obstacle relative to the parking space direction according to the ground contact information and the parking space information includes:

[0010] Determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information;

[0011] Determine first target grounding information of the obstacle relative to the parking space direction according to the grounding information and the parking space information of the target parking space;

[0012] The determining the parking space state of the parking space according to the first target grounding information and the parking space information includes:

[0013] The parking space state of the target parking space is determined according to the first target grounding information and the parking space information of the target parking space.

[0014] Optionally, the grounding information includes a grounding point of the obstacle, and determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information includes:

[0015] For each parking space, determining the number of grounding points in the parking space according to the grounding points of the obstacle and the parking space information;

[0016] The parking space with the largest number of touchdown points among the multiple parking spaces is determined as the target parking space.

[0017] Optionally, determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information includes:

[0018] Fitting a ground frame of the obstacle according to the ground information to obtain a first fitted ground frame of the obstacle;

[0019] For each parking space, determining an overlap between the first fitting ground frame and the parking space according to the parking space information of the parking space and the first fitting ground frame;

[0020] A parking space among the plurality of parking spaces that has the largest overlap with the first fitting ground frame is determined as a target parking space.

[0021] Optionally, the grounding information includes a plurality of grounding points of the obstacles and grounding coordinates of the grounding points, and fitting a grounding frame of the obstacle according to the grounding information to obtain a first fitting grounding frame of the obstacle includes:

[0022] Clustering the grounding points according to the grounding coordinates of the grounding points to obtain a plurality of first clusters;

[0023] For each first cluster, a ground frame fitting is performed according to the ground points in the first cluster and the ground coordinates of the ground points to obtain a first fitting ground frame of the obstacle.

[0024] Optionally, the grounding information includes a grounding point of the obstacle and a grounding coordinate of the grounding point, and determining first target grounding information of the obstacle relative to the parking space direction according to the grounding information and the parking space information of the target parking space includes:

[0025] For each parking space edge of the target parking space, determining the target grounding point farthest from the parking space edge among the grounding points according to the parking space information of the target parking space;

[0026] According to all the target touchdown points, first target touchdown information of the obstacle relative to the parking space direction is determined.

[0027] Optionally, determining first target grounding information of the obstacle relative to the parking space direction according to all the target grounding points includes:

[0028] For each of the target touchdown points, determine a straight line that passes through the target touchdown point and is parallel to a parking space edge in the target parking space that is farthest from the target touchdown point;

[0029] The first target ground contact information of the obstacle relative to the parking space direction is determined according to all the straight lines.

[0030] Optionally, the determining, based on all the straight lines, first target ground contact information of the obstacle relative to the parking space direction includes:

[0031] Determine the grounding frame information of the obstacle according to all the straight lines, and determine the grounding frame information as the first target grounding information of the obstacle relative to the parking space direction; or,

[0032] The intersection information of all the straight lines is determined, and the intersection information is determined as the first target grounding information of the obstacle relative to the parking space direction.

[0033] Optionally, determining the parking space state of the parking space according to the first target grounding information and the parking space information includes:

[0034] Determining, according to the first target grounding information and the parking space information, a confidence level that the parking space is occupied by the obstacle;

[0035] The parking space status of the parking space is determined according to the confidence and a preset confidence threshold.

[0036] Optionally, the first target grounding information includes a grounding frame and a grounding area of ​​the obstacle relative to a parking space direction, the parking space information includes a parking space frame and a parking space area of ​​the parking space, and determining the confidence level that the parking space is occupied by the obstacle according to the first target grounding information and the parking space information includes:

[0037] Determining the coverage areas of the ground frame and the parking space frame;

[0038] Determine a first ratio of the coverage area to the parking space area, and a second ratio of the coverage area to the ground area, and when the first ratio is greater than the second ratio, determine the first ratio as the confidence level that the parking space is occupied by the obstacle; when the second ratio is greater than the first ratio, determine the second ratio as the confidence level that the parking space is occupied by the obstacle.

[0039] Optionally, the first target grounding information includes the corner point coordinates of a grounding frame of the obstacle relative to the parking space direction, the parking space information includes the corner point coordinates of the parking space, and determining the parking space state of the parking space according to the first target grounding information and the parking space information includes:

[0040] The corner point coordinates of the ground frame of the obstacle relative to the parking space direction and the corner point coordinates of the parking space are input into a parking space state determination model to obtain the parking space state of the parking space, wherein the parking space state determination model is used to output the parking space state according to the input corner point coordinates of the ground frame and the corner point coordinates of the parking space.

[0041] Optionally, the first target grounding information includes information of a grounding frame of the obstacle relative to the parking space direction, and the parking space state determination method further includes:

[0042] Determining the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and the parking space information of the target parking space;

[0043] The determining the parking space state of the parking space according to the first target grounding information and the parking space information includes:

[0044] When the number of obstacles in the grounding frame is less than or equal to a preset number of obstacles, the parking space state of the target parking space is determined according to the first target grounding information and the parking space information of the target parking space.

[0045] Optionally, it also includes:

[0046] When the number of obstacles in the grounding frame is greater than or equal to a preset number of obstacles, clustering the grounding points in the first fitting grounding frame according to the grounding coordinates of the grounding points in the first fitting grounding frame to obtain a plurality of second clusters, wherein the number of the second clusters is the same as the number of obstacles in the grounding frame;

[0047] For each second cluster, perform the following steps:

[0048] Determining second target grounding information of the obstacle relative to the parking space direction according to the grounding point in the second cluster and the target parking space;

[0049] The parking space state of the target parking space is determined according to the second target grounding information and the parking space information of the target parking space.

[0050] Optionally, determining the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and parking space information of the target parking space includes:

[0051] Determine a first width value of the target parking space according to the parking space information of the target parking space, and determine a second width value of the ground frame according to information of the ground frame of the obstacle relative to the parking space direction;

[0052] The number of obstacles in the ground frame is determined according to a ratio between the first width value and the second width value and a preset ratio.

[0053] A second aspect of the present disclosure provides a controller, the controller comprising:

[0054] processor;

[0055] a memory for storing processor-executable instructions;

[0056] Wherein, the processor is configured to: execute the steps of any method described in the first aspect.

[0057] A third aspect of the present disclosure provides a vehicle, comprising the controller according to the second aspect, or,

[0058] The vehicle comprises a processor and a memory for storing processor executable instructions, wherein the processor is configured to: execute the steps of any one of the methods described in the first aspect.

[0059] A fourth aspect of the present disclosure provides a non-temporary computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0060] A fifth aspect of the present disclosure provides a computer program product, comprising a computer program, which, when executed by a processor, implements the steps of any one of the methods described in the first aspect.

[0061] Through the above technical solution, the target grounding information of the obstacle relative to the parking space direction can be determined based on the grounding information of the obstacle and the parking space information of the parking space, and then the parking space state of the parking space can be determined according to the target grounding information and the parking space information. Therefore, the automatic recognition of the parking space state can be realized according to the grounding information and the parking space information. In addition, since the target grounding information is the grounding information of the obstacle relative to the parking space direction, the target grounding information can more accurately reflect the occupancy of the obstacle in the parking space, and then when the parking space state is determined according to the target grounding information, the recognition accuracy of the parking space state can be improved, and parking accidents can be reduced.

[0062] Other features and advantages of the present disclosure will be described in detail in the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0063] The accompanying drawings are used to provide a further understanding of the present disclosure and constitute a part of the specification. Together with the following specific embodiments, they are used to explain the present disclosure but do not constitute a limitation of the present disclosure. In the accompanying drawings:

[0064] Figure 1 is a flow chart of a method for detecting available parking spaces in the related art;

[0065] Figure 2 It is a flow chart of parking space detection in the related art;

[0066] Figure 3 It is a flowchart of a parking space and obstacle detection method based on deep learning in the related art;

[0067] Figure 4 It is a schematic diagram of an obstacle fitting positioning frame in the related art;

[0068] Figure 5 is a flow chart of a method for determining a parking space status according to an exemplary embodiment of the present disclosure;

[0069] Figure 6 is a schematic diagram showing a cone barrel disappearing when two fisheye images are spliced ​​at an overlapping portion according to an exemplary embodiment of the present disclosure;

[0070] Figure 7 is a schematic diagram showing a vehicle blocking an adjacent vacant parking space according to an exemplary embodiment of the present disclosure;

[0071] Figure 8 is a schematic diagram showing a pillar blocking an adjacent vacant parking space according to an exemplary embodiment of the present disclosure;

[0072] Fig. 9 is a schematic diagram of grounding information identified by a grounding point identification model according to an exemplary embodiment of the present disclosure;

[0073] Fig.10 is a schematic diagram showing a conversion relationship between a ground information image and a surround view image according to an exemplary embodiment of the present disclosure;

[0074] Fig.11 is ground information of an obstacle in a surround view image according to an exemplary embodiment of the present disclosure;

[0075] Fig.12 is a schematic diagram showing a method of synthesizing a surround view image based on images according to an exemplary embodiment of the present disclosure;

[0076] Fig.13 is a schematic diagram showing a recognition effect of parking space information according to an exemplary embodiment of the present disclosure;

[0077] Fig.14 is a schematic diagram showing the relative positions of four corner points of a parking space according to an exemplary embodiment of the present disclosure;

[0078] Fig.15 is a schematic diagram of first target grounding information of an obstacle relative to a parking space direction according to an exemplary embodiment of the present disclosure;

[0079] Fig.16 is a parking space status recognition effect diagram according to an exemplary embodiment of the present disclosure;

[0080] Fig.17 is a flow chart showing another method for determining a parking space state according to an exemplary embodiment of the present disclosure;

[0081] Fig.18 is a block diagram of a parking space status determination device according to an exemplary embodiment of the present disclosure;

[0082] Fig.19 It is a schematic diagram of a functional block diagram of a vehicle according to an exemplary embodiment of the present disclosure. DETAILED DESCRIPTION

[0083] The specific implementation of the present disclosure is described in detail below in conjunction with the accompanying drawings. It should be understood that the specific implementation described herein is only used to illustrate and explain the present disclosure, and is not used to limit the present disclosure.

[0084] It should be understood that the various steps described in the method embodiments of the present disclosure may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present disclosure is not limited in this respect.

[0085] As mentioned in the background technology, with the development of vehicle technology, the automatic parking function is applied. When the automatic parking function is used for parking, the relevant technology generally uses an ultrasonic sensor to emit ultrasonic waves and receive the reflected signal to judge the parking state of the parking space.

[0086] For example, the invention patent with application number 201811559894.2 discloses a method for detecting available parking spaces, such as Figure 1The method uses the ultrasonic sensor of the vehicle to detect at a specified frequency to obtain the distance between the vehicle and the obstacle, then determines multiple position coordinates of the obstacle according to the position coordinates of the ultrasonic sensor of the vehicle and the distance between the vehicle and the obstacle during multiple detections, fits the multiple position coordinates to obtain the boundary of the obstacle, detects the jump edge of the boundary of the obstacle, adjusts the length of the jump edge according to the calibration relationship between the measured position data measured by the ultrasonic sensor and the actual position data of the obstacle, and finally determines the position of the parking space according to the jump edge with the adjusted length.

[0087] Then, since the ultrasonic sensor lacks semantic information when judging the parking space status, there is a situation where the parking space status judgment is inaccurate. For example, due to the lack of semantic information, when judging the parking space status based on the ultrasonic sensor, there is a problem such as being unable to distinguish the ground lock status (ground lock open or ground lock closed) in the parking space, resulting in the actual parking space (ground lock closed) being judged as a parking space that cannot be parked.

[0088] In order to overcome the above technical problems, the related art proposes to identify and judge the parking space status based on visual perception.

[0089] For example, the invention patent with application number 202011128953.8 discloses a parking space detection method, such as Figure 2 As shown, the problem of being unable to distinguish the lock status in the parking space is solved by introducing visual semantic information with the help of the surround view image of the panoramic monitoring imaging system (Around View Monitor, AVM).

[0090] For example, the invention patent with application number 202211248240.4 discloses a parking space and obstacle detection method based on deep learning, such as Figure 3 As shown, rich semantic information is introduced through the surround view image to simultaneously obtain rich information such as the parking space location and obstacle location, thereby obtaining the status of whether the parking space is occupied.

[0091] However, although the visual perception-based method can introduce rich semantic information, when determining the parking space status of a parking space based on the visual perception method, the obstacle positioning frame is generally fitted based on the ground information of the obstacle to obtain the obstacle fitting positioning frame, and then the parking space status is determined based on the obstacle fitting positioning frame. However, when fitting the obstacle positioning frame, the related technology has the problem that the fitted obstacle fitting positioning frame occupies the adjacent parking space, thereby interfering with the judgment of the adjacent parking space status, making the parking space status recognition result inaccurate, such as Figure 4 shown.

[0092] In view of this, the present disclosure provides a parking space status determination method, a controller, a vehicle, a storage medium and a program product to solve the above technical problems.

[0093] The embodiments of the present disclosure are further explained below with reference to the accompanying drawings.

[0094] Figure 5 is a flowchart of a method for determining a parking space state according to an exemplary embodiment of the present disclosure, referring to Figure 5 , the parking space status determination method may include the following steps:

[0095] S501: determining, based on an image acquired by an onboard camera of the vehicle, ground information of an obstacle in the image in the surround view image and parking space information of a parking space in the image in the surround view image;

[0096] S502: Determine first target grounding information of the obstacle relative to the parking space according to the grounding information and the parking space information;

[0097] S503: Determine a parking space status of the parking space according to the first target grounding information and the parking space information, where the parking space status is used to indicate whether the parking space is occupied by an obstacle.

[0098] Through the above technical solution, the target grounding information of the obstacle relative to the parking space direction can be determined based on the grounding information of the obstacle and the parking space information of the parking space, and then the parking space state of the parking space can be determined according to the target grounding information and the parking space information. Therefore, the automatic recognition of the parking space state can be realized according to the grounding information and the parking space information. In addition, since the target grounding information is the grounding information of the obstacle relative to the parking space direction, the target grounding information can more accurately reflect the occupancy of the obstacle in the parking space, and then when the parking space state is determined according to the target grounding information, the recognition accuracy of the parking space state can be improved, and parking accidents can be reduced.

[0099] The following describes in detail the method for determining the parking space status in the present disclosure in combination with various steps.

[0100] In step S501, the image acquired by the vehicle-mounted camera device may be one or more images, and the embodiments of the present disclosure do not impose any restrictions on this. In order to more accurately determine the ground information and parking space information, the image acquired by the vehicle-mounted camera device may be multiple images, and the image content corresponding to each image is different. For example, multiple images with different image contents can be collected by fisheye cameras arranged in the front, rear, left front, left rear, right front and / or right rear of the vehicle.

[0101] After acquiring a plurality of images, ground information of obstacles in the surround view image and parking space information of parking spaces in the surround view image can be determined according to the plurality of images.

[0102] It should be understood that when obtaining the grounding information of obstacles in the surround view image, the related technology generally stitches the images obtained by the vehicle-mounted camera device into a surround view image, and then obtains the grounding information of the obstacles in the surround view image by identifying the grounding information of the obstacles in the surround view image.

[0103] However, since the surround image is obtained by multiple images through distortion correction, projection transformation, image stitching and other steps, it will inevitably introduce human errors or system errors (such as blur or distortion caused by the image stitching process), thus affecting the recognition accuracy. Figure 6 As shown in the figure, obstacles (cones) disappear when two fisheye images are stitched together at the overlap. In addition, after the three-dimensional obstacles (such as pillars, vehicles, pedestrians, etc.) in the fisheye image are processed through distortion correction, projection transformation and other steps and mapped to the surround view image, they will be significantly deformed. For example, in the surround view image, the deformed three-dimensional obstacles such as pillars, vehicles, pedestrians, etc. will block the adjacent parking spaces, making it impossible to correctly identify the status of the adjacent parking spaces. Figure 7 and Figure 8 As shown, vehicles and pillars block adjacent vacant parking spaces, which results in the inability to release corresponding vacant parking spaces based solely on the surround view image, thereby affecting the subsequent parking process.

[0104] Therefore, in order to obtain more accurate grounding information, the grounding signal of the obstacle can be determined based on the image obtained by the vehicle-mounted camera, and then the grounding signal of the obstacle is mapped to the surround view image, thereby obtaining the grounding information of the obstacle in the surround view image.

[0105] For example, for each acquired image, the image can be input into a grounding point recognition model to recognize the grounding information of each obstacle in the image through the grounding point recognition model, thereby obtaining the grounding information of each obstacle in the image, such as Fig. 9 Then, based on the mapping relationship between the surround view image and the image, the ground information of each obstacle in the image is converted to the surround view image, and the ground information of each obstacle in the surround view image is obtained, as shown in Fig.10 or Fig.11 As shown. The grounding information can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible manner, the grounding information may include a grounding point, a grounding coordinate of a grounding point, and / or a grounding category, etc., wherein the grounding category can be used to characterize the category of an obstacle, for example, the category of an obstacle may be a ground lock, a cone barrel, a vehicle, or a pedestrian, etc.

[0106] The grounding point identification model may be an existing model in the related art, or may be an improved model of the existing model in the related art, and the embodiments of the present disclosure do not impose any limitation on this.

[0107] For example, the YOLO (You Only Look Once) model can be trained in the following way to obtain a ground point recognition model:

[0108] A sample image and a label are obtained, wherein the label is used to indicate sample grounding information of the sample image; the sample image is input into the YOLO model to obtain predicted grounding information of the sample image; a loss function value is determined according to the predicted grounding information and the label, and the parameters of the YOLO model are updated according to the loss function value until a preset number of iterations is reached or the accuracy of the YOLO model reaches a preset value.

[0109] After the docking location recognition model is trained using the above method, the grounding information can be recognized based on the input image.

[0110] When determining the parking space information in the surround view image, each image can be first subjected to distortion correction and perspective transformation and then spliced ​​into a surround view image, and then the surround view image is optimized by feathering the overlapping area to obtain an optimized surround view image, such as Fig.12 As shown. The optimized surround view image is then input into the parking space detection model to obtain the parking space information of the parking space in the surround view image. Alternatively, for each acquired image, the image can be input into the parking space detection model to obtain the parking space information of the parking space in the image, and then based on the mapping relationship between the surround view image and the image, the parking space information in the image is converted into the surround view image, thereby obtaining the parking space information in the surround view image. Among them, the parking space information can be set according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible manner, the parking space information can include the corner points of the parking space and the corner point coordinates of the corner points, etc.

[0111] The parking space detection model may be an existing model in the related technology, or may be an improved model of the existing model in the related technology, and the embodiments of the present disclosure do not impose any limitation on this.

[0112] For example, the YOLO (You Only Look Once) model can be trained in the following way to obtain a parking space detection model:

[0113] A sample surround view image and a label are obtained, wherein the label is used to indicate parking space information of the parking space in the sample surround view image; the sample surround view image is input into the YOLO model to obtain predicted parking space information of the parking space in the sample surround view image; a loss function value is determined according to the predicted parking space information and the label, and the parameters of the YOLO model are updated according to the loss function value until a preset number of iterations is reached or the accuracy of the YOLO model reaches a preset value.

[0114] After the parking space detection model is trained using the above method, the parking space information can be recognized based on the input surround view image. In a possible manner, the recognition effect of the parking space information can be as follows: Fig.13 As shown, the relative positions of the four corner points of the parking space can be as follows Fig.14 shown.

[0115] In step S502, the grounding information may be the grounding information of one obstacle or multiple obstacles. Similarly, the parking space information may be the information of one parking space or multiple parking spaces.

[0116] When the grounding information is grounding information of an obstacle, and the parking space information is parking space information of a parking space, first target grounding information of the obstacle relative to the parking space direction may be determined directly based on the grounding information and the parking space information.

[0117] When the grounding information is the grounding information of an obstacle, and the parking space information is the parking space information of multiple parking spaces, since the obstacle generally exists in only one of the parking spaces, when determining the first target grounding information of the obstacle relative to the parking space direction, the target parking space where the obstacle is located can be determined first, and then the first target grounding information of the obstacle relative to the parking space direction can be determined based on the grounding information and the parking space information of the target parking space. That is to say, in a possible manner, the parking space can include multiple parking spaces, and accordingly, determining the first target grounding information of the obstacle relative to the parking space direction according to the grounding information and the parking space information can include: determining the target parking space among the multiple parking spaces according to the grounding information and the parking space information; determining the first target grounding information of the obstacle relative to the parking space direction according to the grounding information and the parking space information of the target parking space; accordingly, in step S503, determining the parking space state of the parking space according to the first target grounding information and the parking space information can include: determining the parking space state of the target parking space according to the first target grounding information and the parking space information of the target parking space.

[0118] Wherein, determining the target parking space where the obstacle is located may be to first determine the number of grounding points included in each parking space, and then determine the parking space with the largest number of grounding points as the target parking space. That is, in a possible manner, the grounding information may include the grounding points of the obstacle, and accordingly, determining the target parking space among multiple parking spaces according to the grounding information and the parking space information may include: for each parking space, determining the number of grounding points in the parking space according to the grounding points of the obstacle and the parking space information; and determining the parking space with the largest number of grounding points among the multiple parking spaces as the target parking space.

[0119] Alternatively, the ground frame of the obstacle is first fitted based on the ground information to obtain a first fitted ground frame, and then the overlap between the first fitted ground frame and each parking space is determined, and the parking space corresponding to the maximum overlap is determined as the target parking space. That is to say, in a possible manner, determining the first target ground information of the obstacle relative to the parking space direction based on the ground information and the parking space information may include: fitting the ground frame of the obstacle based on the ground information to obtain the first fitted ground frame of the obstacle; for each parking space, determining the overlap between the first fitted ground frame and the parking space based on the parking space information and the first fitted ground frame of the parking space; and determining the parking space with the maximum overlap with the first fitted ground frame among multiple parking spaces as the target parking space.

[0120] When the grounding information is grounding information of multiple obstacles, and the parking space information is parking space information of a parking space, the target obstacle located in the parking space may be determined first, and then based on the grounding information and the parking space information of the target obstacle, the first target grounding information of the target obstacle relative to the parking space direction may be determined. Accordingly, in step S503, determining the parking space state of the parking space according to the first target grounding information and the parking space information may include: determining the parking space state according to the first target grounding information and the parking space information of the target obstacle.

[0121] Among them, the method for determining the target obstacle located in the parking space can refer to the method for determining the target parking space where the obstacle is located. The difference is that since the grounding information includes the grounding information of multiple obstacles, it is not convenient to distinguish the obstacles according to the grounding information in the surround image, and thus it is impossible to accurately determine the target obstacle in the parking space. Therefore, in a possible way, the grounding points of the obstacles can be clustered according to the grounding coordinates of the obstacles, so as to aggregate the grounding points of the same obstacle into one cluster, so that the target obstacle can be determined according to the grounding points, grounding coordinates and parking space information in multiple clusters. For example, for each cluster, a grounding frame fitting can be performed according to the grounding points and grounding coordinates in the cluster to obtain a first fitting grounding frame of the obstacle, and the overlap between the first fitting grounding frame and the parking space is determined, and then the target obstacle is determined according to the overlap between all the first fitting grounding frames and the parking space. That is to say, in a possible manner, the grounding information may include grounding points of multiple obstacles and the grounding coordinates of the grounding points. Accordingly, according to the grounding information, the grounding frame of the obstacle is fitted to obtain a first fitted grounding frame of the obstacle, which may include: clustering the docking locations according to the grounding coordinates of the grounding points to obtain multiple first clusters; for each first cluster, fitting the grounding frame according to the grounding points in the first cluster and the grounding coordinates of the grounding points to obtain the first fitted grounding frame of the obstacle.

[0122] For example, a clustering algorithm, such as a k-means clustering algorithm, can be used to cluster the grounding coordinate docking locations to obtain a first cluster. Then, for each cluster, the first fitting ground frame in the cluster is determined by the function cv::minAreaRect().

[0123] When the grounding information is grounding information of multiple obstacles, and the parking space information is parking space information of multiple parking spaces, the following steps may be performed for each obstacle: first determine the target parking space where the obstacle is located, and then determine the first target grounding information of the parking space direction of the obstacle relative to the target parking space based on the grounding information of the obstacle and the parking space information of the target parking space. Accordingly, in step S503, determining the parking space state of the parking space according to the first target grounding information and the parking space information may include: for each obstacle, determining the parking space state of the target parking space according to the first target grounding information of the obstacle and the parking space information of the target parking space.

[0124] Among them, the specific implementation method in this scenario can refer to the above-mentioned related description and will not be repeated here.

[0125] In a possible manner, determining first target ground contact information of the obstacle relative to the parking space direction according to the ground contact information and the parking space information of the target parking space may include:

[0126] For each parking space edge of the target parking space, determine the target grounding point farthest from the parking space edge in the first fitting grounding frame according to the parking space information of the target parking space; determine the first target grounding information of the obstacle relative to the parking space direction according to all the target grounding points.

[0127] For example, a rectangular coordinate system can be established with the upper left point of the surround image as the origin, the right as the positive x-axis, and the bottom as the positive y-axis. Then, according to the corner points of the target parking space (denoted as corner point P1, corner point P2, corner point P3, and corner point P4) and the coordinates of the corner points (denoted as P1( , ), P2( , ), P3( , ) and P4( , )) Determine the equation of the straight line where the four parking space edges of the target parking space are located , , as well as Then, the distance equation of each grounding point from the first fitting grounding frame can be determined. , Line Equation , and the equation of the line The distance between the ground frame and the distance between the ground frame can be obtained. , Line Equation , and the equation of the line The farthest target touchdown points are P5, P6, P7 and P8. Finally, the first target touchdown information of the obstacle relative to the parking space direction is determined according to P5, P6, P7 and P8.

[0128] The following is to determine the equation of the first fitting ground frame distance straight line Take the farthest target touchdown point P5 as an example:

[0129] Let the equation of the line The expression is: Since the coordinates of corner point P1 and corner point P2 are known, the slope of the equation of the straight line passing through corner point P1 and corner point P2 is It can be expressed as:

[0130]

[0131] Therefore, according to the slope 、P1( , ) and P2( , ) The equation of the straight line determined by can be expressed as:

[0132]

[0133] Then we can get:

[0134]

[0135] Since the equation of the straight line The expression is: , from which we can get:

[0136]

[0137]

[0138] Combining the equation of a line

[0139]

[0140] You can get:

[0141]

[0142]

[0143]

[0144] Therefore, according to , , Determine the equation of the line After that, the equation of the straight line from each grounding point in the first fitting grounding frame can be determined by the following formula: The distance d:

[0145]

[0146] in,( , ) indicates the first fitting ground frame The grounding coordinates of the grounding point.

[0147] Thus, the relationship between each grounding point and the straight line in the first fitting grounding frame can be obtained. The distance between the first fitting ground frame and the straight line can be obtained by distance comparison. The farthest target touchdown point is P5.

[0148] Based on the same method as above, the first fitting ground frame mid-distance straight line can be obtained The farthest target grounding point P6, the distance from the straight line The farthest target grounding point P7 and the straight line in the first fitting grounding frame The farthest target touchdown point is P8.

[0149] After obtaining the target grounding point P5, the target grounding point P6, the target grounding point P7 and the target grounding point P8, the first target grounding information of the obstacle relative to the parking space direction can be determined.

[0150] In a possible manner, determining first target grounding information of the obstacle relative to the parking space direction according to all target grounding points may include:

[0151] For each target grounding point, a straight line passing through the target grounding point and parallel to the parking space edge in the target parking space that is farthest from the target grounding point is determined; and first target grounding information of the obstacle relative to the parking space direction is determined based on all the straight lines.

[0152] For example, to determine the straight line equation passing through the target touchdown point P5 Let's take parallel straight lines as an example:

[0153] Set the target touchdown point P5 ( , ) and the equation of the line Equations of parallel lines for: ,but:

[0154]

[0155]

[0156]

[0157] Based on the same method as above, we can get the equation of the straight line passing through the target grounding point P6 Equations of parallel lines , passing through the target touchdown point P7 and the straight line equation Equations of parallel lines and the straight line equation passing through the target touchdown point P8 Equations of parallel lines After that, the first target grounding information of the obstacle relative to the parking space direction can be determined based on the four straight lines.

[0158] In a possible manner, determining the first target grounding information of the obstacle relative to the parking space direction according to all the straight lines may include:

[0159] Determine the grounding frame information of the obstacle based on all the straight lines, and determine the grounding frame information as the first target grounding information of the obstacle relative to the parking space direction; or determine the intersection information of all the straight lines, and determine the intersection information as the first target grounding information of the obstacle relative to the parking space direction.

[0160] The ground frame information may include ground frame coordinates and / or ground frame area, etc., and the intersection point information may include intersection points and intersection point coordinates, etc.

[0161] For example, when solving the equation of the line , Line Equation , Line Equation and the equation of the line Finally, the intersection information is obtained by solving the intersection points and intersection coordinates between the four direct lines.

[0162] For example, when solving the equation of the line , Line Equation , Line Equation and the equation of the line After that, by solving the intersection coordinates between the four direct lines, the ground frame coordinates and / or ground frame area can be determined based on the intersection coordinates, and then the ground frame information of the obstacle can be obtained, that is, the first target ground information of the obstacle relative to the parking space direction, such as Fig.15 As shown, Fig.15 The obstacle fitting positioning frame in is the ground frame.

[0163] In step S503, determining the parking space state of the parking space according to the first target grounding information and the parking space information may include:

[0164] The confidence level of the parking space being occupied by an obstacle is determined according to the first target grounding information and the parking space information; and the parking space status of the parking space is determined according to the confidence level and a preset confidence threshold.

[0165] The preset confidence threshold can be determined according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. For example, the preset confidence threshold can be set to 5, whereby when the confidence is greater than 5, the parking space state of the parking space is determined to be occupied, that is, the parking space is occupied by an obstacle; when the confidence is less than or equal to 5, the parking space state of the parking space is determined to be unoccupied, that is, the parking space is not occupied by an obstacle.

[0166] In a possible manner, the first target grounding information includes a grounding frame and a grounding area of ​​the obstacle relative to the parking space direction, and the parking space information includes a parking space frame and a parking space area of ​​the parking space. Accordingly, determining the confidence level of the parking space being occupied by the obstacle according to the first target grounding information and the parking space information may include:

[0167] Determine the coverage area between the ground frame and the parking space; determine a first ratio of the coverage area to the parking space area, and a second ratio of the coverage area to the ground area, and when the first ratio is greater than the second ratio, determine the first ratio as the confidence level that the parking space is occupied by an obstacle; when the second ratio is greater than the first ratio, determine the second ratio as the confidence level that the parking space is occupied by an obstacle.

[0168] For example, the ground contact area and parking space area can be substituted into the following formula to obtain the confidence level:

[0169] , )

[0170] in, Indicates confidence, Indicates the grounding area of ​​the ground frame, Indicates the parking space area. Indicates the coverage area.

[0171] In a possible manner, the first target grounding information includes a grounding frame of the obstacle relative to the parking space direction, and the parking space information includes the corner point coordinates of the parking space. Accordingly, determining the parking space state of the parking space according to the first target grounding information and the parking space information may include:

[0172] The ground frame and corner point coordinates of the obstacle relative to the parking space direction are input into the parking space state determination model to obtain the parking space state of the parking space, wherein the parking space state determination model is used to output the parking space state according to the input ground frame and corner point coordinates of the obstacle relative to the parking space direction.

[0173] The parking space status determination model may be an existing model in the related art, or may be an improved model of the existing model in the related art, and the embodiments of the present disclosure do not impose any limitation on this.

[0174] For example, a CNN (Convolutional Neural Network) model may be trained in the following manner to obtain a parking space status determination model:

[0175] Obtain sample corner point coordinates, sample ground frame and labels, wherein the label is used to indicate the parking space status of the parking space corresponding to the sample corner point coordinates; input the sample corner point coordinates and the sample ground frame into the CNN model to obtain the predicted parking space status; determine the loss function value according to the predicted parking space status and the label, and update the parameters of the CNN model according to the loss function value until the preset number of iterations is reached or the accuracy of the CNN model reaches the preset value.

[0176] After the parking space state determination model is trained by the above method, the parking space state can be identified based on the input first target grounding information and parking space information, thereby outputting the parking space state. In a possible manner, the output parking space state can be as follows: Fig.16 shown.

[0177] In a possible manner, the first target grounding information includes information of a grounding frame of the obstacle relative to the parking space direction, and the parking space state determination method may further include:

[0178] Determine the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and parking space information of the target parking space;

[0179] Accordingly, determining the parking space state of the parking space according to the first target grounding information and the parking space information may include:

[0180] When the number of obstacles in the grounding frame is less than or equal to the preset number of obstacles, the parking space state of the target parking space is determined according to the first target grounding information and the parking space information of the target parking space.

[0181] The number of preset obstacles can be determined according to actual conditions, and the embodiments of the present disclosure do not impose any restrictions on this. In a possible manner, the number of preset obstacles is set to 1.

[0182] It should be understood that since the grounding frame of the obstacle relative to the parking space direction is determined by the grounding information of the obstacle in the surround image, when the distance between adjacent obstacles is close, the grounding points between adjacent obstacles will be closer. Therefore, when fitting the grounding frame according to the grounding information, part of the grounding information of the adjacent obstacle may be used as the grounding information of the current obstacle, so that the grounding frame fitted based on the grounding information is larger than the real grounding frame, thereby making the parking space status recognition inaccurate and erroneous, causing safety accidents. Therefore, before determining the parking space status of the target parking space based on the first target grounding information and the parking space information of the target parking space, this embodiment judges the number of obstacles in the grounding frame to avoid the above situation, thereby improving the recognition accuracy of the parking space status.

[0183] Among the possible methods, they also include:

[0184] When the number of obstacles in the grounding frame is greater than or equal to the preset number of obstacles, clustering the grounding points in the first fitting grounding frame according to the grounding coordinates of the grounding points in the first fitting grounding frame to obtain a plurality of second clusters, wherein the number of the second clusters is the same as the number of obstacles in the grounding frame;

[0185] For each second cluster, perform the following steps:

[0186] A grounding frame is fitted according to the grounding points in the second cluster and the grounding coordinates of the grounding points to obtain a second fitted grounding frame of the obstacle; according to the second fitted grounding frame and the target parking space, the second target grounding information of the obstacle relative to the parking space direction is determined; according to the second target grounding information and the target parking space, the parking space state corresponding to the parking space with the maximum overlap is determined.

[0187] Among them, the implementation method of the above steps can refer to the above related description and will not be repeated here.

[0188] In this embodiment, when the number of obstacles in the grounding frame is greater than or equal to the preset number of obstacles, the grounding points in the first fitting grounding frame are re-clustered so that the number of obstacles in each grounding frame is less than the preset number of obstacles, thereby avoiding the grounding frame fitted based on the grounding information being larger than the actual grounding frame, thereby improving the recognition accuracy of the parking space status.

[0189] In a possible manner, determining the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and parking space information of the target parking space may include:

[0190] A first width value of the target parking space is determined according to the parking space information of the target parking space, and a second width value of the ground frame is determined according to information of the ground frame of the obstacle relative to the parking space direction; and the number of obstacles in the ground frame is determined according to a ratio between the first width value and the second width value and a preset ratio.

[0191] By way of example, the preset ratio may include a first preset ratio and a second preset ratio. When the ratio between the second width value and the first width value is less than the first preset ratio, the number of obstacles in the grounding frame may be determined to be 1; when the ratio between the second width value and the first width value is less than the second preset ratio and is greater than or equal to the first preset ratio, the number of obstacles in the grounding frame may be determined to be 2; when the ratio between the second width value and the first width value is greater than or equal to the second preset ratio, the number of obstacles in the grounding frame may be determined to be 3.

[0192] The first preset ratio and the second preset ratio can be determined according to actual conditions, and the embodiment of the present disclosure does not impose any limitation on this. For example, the first preset ratio can be set to , the second preset ratio can be set to After obtaining the ratio between the second width value and the first width value, the number of obstacles in the ground frame can be determined by the following formula:

[0193]

[0194] in, Indicates the number of obstacles. Indicates the first width value, Indicates the second width value, represents the first preset ratio, Indicates the second preset ratio.

[0195] To facilitate understanding of the parking space status determination method of the present disclosure, an implementation of the present disclosure is described below.

[0196] For example, Fig.17As shown, fisheye image 1 can be obtained by a fisheye camera arranged in front of the vehicle, fisheye image 2 can be obtained by a fisheye camera arranged in the rear of the vehicle, fisheye image 3 can be obtained by a fisheye camera arranged on the left side of the vehicle, and fisheye image 4 can be obtained by a fisheye camera arranged on the right side of the vehicle. After that, on the one hand, fisheye image 1, fisheye image 2, fisheye image 3 and fisheye image 4 are respectively input into the ground point recognition model to obtain the ground coordinates COOR1 (P1, P2...Pn) of the obstacles in the four fisheye images in the image coordinate system, and then based on the coordinate conversion relationship between the surround view image and the fisheye image, the ground coordinates COOR1 (P1, P2...Pn) are converted into the ground coordinates COOR2 (P1, P2...Pn) in the surround view image. On the other hand, fisheye image 1, fisheye image 2, fisheye image 3 and fisheye image 4 are spliced ​​to obtain a surround view image, and the surround view image is input into the parking space detection model to obtain the corner point coordinates SlotPt (P1, P2, P3, P4) of the parking space in the surround view image coordinate system. Then, the ground coordinates COOR2 (P1, P2 ... Pn) and the corner point coordinates SlotPt (P1, P2, P3, P4) can be input into the obstacle fitting module, so that the obstacle fitting module can perform ground frame fitting of the obstacle according to the ground coordinates COOR2 (P1, P2 ... Pn) to obtain multiple obstacle fitting frames, and for each obstacle fitting frame, the following steps are performed: determining the target parking space with the largest overlap with the obstacle fitting frame, and then, based on the target parking space and the obstacle fitting frame, determining the vertex coordinates of the target obstacle corresponding to the obstacle fitting frame relative to the target parking space, and finally, inputting the vertex coordinates of the target obstacle relative to the target parking space and the corner point coordinates of the target parking space into the parking space state determination model, so that the parking space state of the target parking space is obtained based on the vertex coordinates of the target obstacle relative to the target parking space and the corner point coordinates of the target parking space through the parking space state determination model, that is, whether the target parking space is occupied by the target obstacle.

[0197] Based on the same concept, the embodiment of the present disclosure also provides a parking space status determination device, such as Fig.18 As shown, the parking space status determining device 1800 may include:

[0198] The first determination module 1801 is used to determine the ground information of the obstacle in the surround view image and the parking space information of the parking space in the image in the surround view image according to the image acquired by the vehicle-mounted camera device of the vehicle;

[0199] The second determining module 1802 is used to determine first target ground contact information of the obstacle relative to the parking space direction according to the ground contact information and the parking space information;

[0200] The third determination module 1803 is used to determine the parking space status of the parking space according to the first target grounding information and the parking space information, where the parking space status is used to indicate whether the parking space is occupied by an obstacle.

[0201] Through the above-mentioned parking space state determination device 1800, the target grounding information of the obstacle relative to the parking space direction can be determined based on the grounding information of the obstacle and the parking space information of the parking space, and then the parking space state of the parking space can be determined according to the target grounding information and the parking space information. Therefore, the automatic recognition of the parking space state can be realized according to the grounding information and the parking space information. In addition, since the target grounding information is the grounding information of the obstacle relative to the parking space direction, the target grounding information can more accurately reflect the occupancy of the obstacle in the parking space, and then when the parking space state is determined according to the target grounding information, the recognition accuracy of the parking space state can be improved, and parking accidents can be reduced.

[0202] In a possible manner, there are multiple parking spaces. Accordingly, the second determining module 1802 may include:

[0203] A first determination submodule, configured to determine a target parking space among a plurality of parking spaces according to the grounding information and the parking space information;

[0204] A second determination submodule is used to determine first target grounding information of the obstacle relative to the parking space direction according to the grounding information and the parking space information of the target parking space;

[0205] Accordingly, the third determination module may be configured to determine the parking space status of the target parking space according to the first target grounding information and the parking space information of the target parking space.

[0206] In a possible manner, the grounding information may include a grounding point of the obstacle. Accordingly, the first determining submodule may include:

[0207] A first determining unit is used to determine the number of grounding points in each parking space according to the grounding points of the obstacles and the parking space information;

[0208] The first determining unit is configured to determine, among the multiple parking spaces, a parking space with the largest number of touchdown points as a target parking space.

[0209] In a possible manner, the first determining submodule may include:

[0210] A fitting unit, used for fitting a grounding frame of the obstacle according to the grounding information to obtain a first fitting grounding frame of the obstacle;

[0211] A third determining unit is used to determine, for each parking space, an overlap between the first fitting ground frame and the parking space according to the parking space information of the parking space and the first fitting ground frame;

[0212] The fourth determining unit is used to determine, among the multiple parking spaces, a parking space with the largest overlap with the first fitting ground frame as a target parking space.

[0213] In a possible manner, the grounding information includes grounding points of multiple obstacles and grounding coordinates of the grounding points. Accordingly, the fitting unit may include:

[0214] A clustering subunit, configured to cluster the docking locations according to the grounding coordinates of the grounding points to obtain a plurality of first clusters;

[0215] The fitting subunit is used to perform ground frame fitting for each first cluster according to the ground points in the first cluster and the ground coordinates of the ground points to obtain a first fitting ground frame of the obstacle.

[0216] In a possible manner, the grounding information includes a grounding point of the obstacle and a grounding coordinate of the grounding point. Accordingly, the second determining submodule may include:

[0217] A fifth determining unit is used to determine, for each parking space edge of the target parking space, a target grounding point that is farthest from the parking space edge in the first fitting grounding frame according to the parking space information of the target parking space;

[0218] The sixth determining unit is used to determine first target grounding information of the obstacle relative to the parking space direction according to all target grounding points.

[0219] In a possible manner, the sixth determining unit may include:

[0220] A first determining subunit is used to determine, for each target grounding point, a straight line passing through the target grounding point and parallel to a parking space edge in the target parking space that is farthest from the target grounding point;

[0221] The second determining subunit is used to determine first target ground contact information of the obstacle relative to the parking space direction according to all the straight lines.

[0222] In a possible manner, the second determining subunit may include:

[0223] A first determining component is used to determine the ground frame information of the obstacle according to all the straight lines, and determine the ground frame information as the first target ground information of the obstacle relative to the parking space direction; or,

[0224] The second determination component is used to determine the intersection information of all the straight lines, and determine the intersection information as the first target grounding information of the obstacle relative to the parking space direction.

[0225] In a possible manner, the third determining module 1803 may include:

[0226] A third determination submodule, configured to determine the confidence level of the parking space being occupied by an obstacle based on the first target grounding information and the parking space information;

[0227] The fourth determination submodule is used to determine the parking space status of the parking space according to the confidence level and a preset confidence threshold.

[0228] In a possible manner, the first target grounding information includes a grounding frame and a grounding area of ​​the obstacle relative to the parking space direction, and the parking space information includes a parking space frame and a parking space area of ​​the parking space. Accordingly, the third determining submodule may include:

[0229] A seventh determining unit, used to determine the coverage area of ​​the ground frame and the parking space frame;

[0230] The eighth determination unit is used to determine a first ratio of the coverage area to the parking space area and a second ratio of the coverage area to the ground area, and when the first ratio is greater than the second ratio, determine the first ratio as the confidence level that the parking space is occupied by an obstacle; when the second ratio is greater than the first ratio, determine the second ratio as the confidence level that the parking space is occupied by an obstacle.

[0231] In a possible manner, the first target grounding information includes the corner point coordinates of the grounding frame of the obstacle relative to the parking space direction, and the parking space information includes the corner point coordinates of the parking space. Accordingly, the third determination module 1803 can be used to input the corner point coordinates of the grounding frame of the obstacle relative to the parking space direction and the corner point coordinates of the parking space into the parking space state determination model to obtain the parking space state of the parking space, wherein the parking space state determination model is used to output the parking space state based on the input corner point coordinates of the grounding frame and the corner point coordinates of the parking space.

[0232] In a possible manner, the first target grounding information includes information of a grounding frame of the obstacle relative to the parking space direction. Accordingly, the parking space state determining device 1800 may further include:

[0233] A fourth determination module, configured to determine the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and parking space information of the target parking space;

[0234] Accordingly, the third determining module 1803 may be configured to determine the parking space status of the target parking space according to the first target grounding information and the parking space information of the target parking space when the number of obstacles in the grounding frame is less than or equal to the preset number of obstacles.

[0235] In a possible manner, the third determination module 1803 can be used for: when the number of obstacles in the grounding frame is greater than or equal to a preset number of obstacles, clustering the grounding points in the first fitting grounding frame according to the grounding coordinates of the grounding points in the first fitting grounding frame to obtain multiple second clusters, wherein the number of second clusters is the same as the number of obstacles in the grounding frame; for each second cluster, performing the following steps: fitting the grounding frame according to the grounding points in the second cluster and the grounding coordinates of the grounding points to obtain a second fitting grounding frame of the obstacle; determining the second target grounding information of the obstacle relative to the parking space direction according to the second fitting grounding frame and the target parking space; determining the parking space status of the parking space according to the second target grounding information and the parking space information of the target parking space.

[0236] In a possible manner, the fourth determination module may include:

[0237] a ninth determining unit, configured to determine a first width value of the target parking space according to the parking space information of the target parking space, and to determine a second width value of the ground frame according to information of the ground frame of the obstacle relative to the parking space direction;

[0238] The tenth determining unit is used to determine the number of obstacles in the ground frame according to the ratio between the first width value and the second width value and a preset ratio.

[0239] Based on the same concept, the embodiment of the present disclosure further provides a controller, which may include:

[0240] processor;

[0241] a memory for storing processor-executable instructions;

[0242] The processor may be configured to: execute the steps of any of the above-mentioned parking space status determination methods.

[0243] Based on the same concept, the embodiment of the present disclosure further provides a vehicle, including the above-mentioned controller, or,

[0244] The vehicle includes a processor and a memory for storing processor executable instructions, wherein the processor can be configured to: execute the steps of any of the above-mentioned parking space status determination methods.

[0245] Based on the same concept, the embodiment of the present disclosure also provides a non-temporary computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of any of the above-mentioned parking space status determination methods are implemented.

[0246] Based on the same concept, an embodiment of the present disclosure further provides a computer program product, including a computer program, which implements the steps of any of the above-mentioned parking space status determination methods when executed by a processor.

[0247] Please refer to Fig.19 , Fig.19 1 is a functional block diagram of a vehicle according to an exemplary embodiment. The vehicle 1900 may include various subsystems, such as an infotainment system 1910, a perception system 1920, a decision control system 1930, a drive system 1940, and a computing platform 1950. The vehicle 1900 may also include more or fewer subsystems, and each subsystem may include multiple components. In addition, each subsystem and each component of the vehicle 1900 may be interconnected by wire or wirelessly.

[0248] In some embodiments, the infotainment system 1910 may include a communication system, an entertainment system, and a navigation system, etc.

[0249] The perception system 1920 may include several sensors for sensing information about the environment around the vehicle 1900. For example, the perception system 1920 may include a global positioning system (the global positioning system may be a GPS system, or a Beidou system or other positioning systems), an inertial measurement unit (IMU), a laser radar, a millimeter wave radar, an ultrasonic radar, and a camera.

[0250] The decision control system 1930 may include a computing system, a vehicle controller, a steering system, a throttle, and a braking system.

[0251] The drive system 1940 may include components that provide powered motion for the vehicle 1900. In one embodiment, the drive system 1940 may include an engine, an energy source, a transmission system, and wheels. The engine may be one or a combination of an internal combustion engine, an electric motor, and an air compression engine. The engine is capable of converting energy provided by the energy source into mechanical energy.

[0252] Some or all functions of the vehicle 1900 are controlled by a computing platform 1950. The computing platform 1950 may include at least one processor 1951 and a memory 1952, and the processor 1951 may execute instructions 1953 stored in the memory 1952.

[0253] The processor 1951 may be any conventional processor, such as a commercially available CPU. The processor may also include a graphics processor (Graphic Process Unit, GPU), a field programmable gate array (Field Programmable Gate Array, FPGA), a system on chip (System on Chip, SOC), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC) or a combination thereof.

[0254] Memory 1952 can be implemented by any type of volatile or nonvolatile storage device or a combination thereof, such as static random access memory (SRAM), electrically erasable programmable read-only memory (EEPROM), erasable programmable read-only memory (EPROM), programmable read-only memory (PROM), read-only memory (ROM), magnetic memory, flash memory, magnetic disk or optical disk.

[0255] In addition to instructions 1953 , memory 1952 may also store data, such as road maps, route information, vehicle location, direction, speed, etc. The data stored in memory 1952 may be used by computing platform 1950 .

[0256] In the embodiment of the present disclosure, the processor 1951 may execute instruction 1953 to complete all or part of the steps of the above-mentioned parking space status determination method.

[0257] The preferred embodiments of the present disclosure are described in detail above in conjunction with the accompanying drawings; however, the present disclosure is not limited to the specific details in the above embodiments. Within the technical concept of the present disclosure, a variety of simple modifications can be made to the technical solution of the present disclosure, and these simple modifications all fall within the protection scope of the present disclosure.

[0258] It should also be noted that the various specific technical features described in the above specific embodiments can be combined in any suitable manner without contradiction. In order to avoid unnecessary repetition, the present disclosure will not further describe various possible combinations.

Claims

1. A method for determining a parking space status, characterized in that: The parking space status determination method comprises: Determining, based on an image acquired by an onboard camera of the vehicle, ground information of an obstacle in the image in the surround view image and parking space information of a parking space in the image in the surround view image; According to the grounding information, a grounding frame of the obstacle is fitted to obtain a first fitted grounding frame of the obstacle, and for each parking space edge of the parking space, a target grounding point farthest from the parking space edge in the first fitted grounding frame is determined according to the parking space information; Determine first target grounding information of the obstacle relative to the parking space direction according to all the target grounding points; A parking space status of the parking space is determined according to the first target grounding information and the parking space information, where the parking space status is used to indicate whether the parking space is occupied by the obstacle.

2. The method for determining parking space status according to claim 1, characterized in that: The parking spaces include a plurality of parking spaces, and the method further includes: Determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information; The step of determining, for each parking space edge of the parking space according to the parking space information, a target grounding point in the first fitting grounding frame that is farthest from the parking space edge comprises: For each parking space edge of the target parking space, determining a target grounding point in the first fitting grounding frame that is farthest from the parking space edge according to the parking space information of the target parking space; The step of determining first target grounding information of the obstacle relative to the parking space direction according to all the target grounding points includes: Determining first target grounding information of the parking direction of the obstacle relative to the target parking space according to all the target grounding points; The determining the parking space state of the parking space according to the first target grounding information and the parking space information includes: The parking space state of the target parking space is determined according to the first target grounding information and the parking space information of the target parking space.

3. The method for determining parking space status according to claim 2, characterized in that: The grounding information includes a grounding point of the obstacle, and determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information includes: For each parking space, determining the number of grounding points in the parking space according to the grounding points of the obstacle and the parking space information; The parking space with the largest number of touchdown points among the multiple parking spaces is determined as the target parking space.

4. The method for determining parking space status according to claim 2, characterized in that: The step of determining a target parking space among the plurality of parking spaces according to the grounding information and the parking space information includes: For each parking space, determining an overlap degree between the first fitting ground frame and the parking space according to the parking space information of the parking space and the first fitting ground frame; A parking space among the plurality of parking spaces that has the largest overlap with the first fitting ground frame is determined as a target parking space.

5. The method for determining parking space status according to claim 4, characterized in that: The grounding information includes a plurality of grounding points of the obstacles and grounding coordinates of the grounding points. The fitting of the grounding frame of the obstacle according to the grounding information to obtain a first fitting grounding frame of the obstacle includes: Clustering the grounding points according to the grounding coordinates of the grounding points to obtain a plurality of first clusters; For each first cluster, a ground frame fitting is performed according to the ground points in the first cluster and the ground coordinates of the ground points to obtain a first fitting ground frame of the obstacle.

6. The method for determining parking space status according to claim 5, characterized in that: The step of determining first target grounding information of the parking direction of the obstacle relative to the target parking space according to all the target grounding points includes: For each of the target touchdown points, determine a straight line that passes through the target touchdown point and is parallel to a parking space edge in the target parking space that is farthest from the target touchdown point; The first target ground contact information of the obstacle relative to the parking space direction is determined according to all the straight lines.

7. The method for determining parking space status according to claim 6, characterized in that: The determining, based on all the straight lines, first target grounding information of the obstacle relative to the parking space direction includes: Determine the grounding frame information of the obstacle according to all the straight lines, and determine the grounding frame information as the first target grounding information of the obstacle relative to the parking space direction; or, The intersection information of all the straight lines is determined, and the intersection information is determined as the first target grounding information of the obstacle relative to the parking space direction.

8. The method for determining parking space status according to any one of claims 1 to 5, characterized in that: The determining the parking space state of the parking space according to the first target grounding information and the parking space information includes: Determining, according to the first target grounding information and the parking space information, a confidence level that the parking space is occupied by the obstacle; The parking space status of the parking space is determined according to the confidence and a preset confidence threshold.

9. The method for determining parking space status according to claim 8, characterized in that: The first target grounding information includes a grounding frame and a grounding area of ​​the obstacle relative to the parking space direction, the parking space information includes a parking space frame and a parking space area of ​​the parking space, and determining the confidence that the parking space is occupied by the obstacle according to the first target grounding information and the parking space information includes: Determining the coverage areas of the ground frame and the parking space frame; Determine a first ratio of the coverage area to the parking space area, and a second ratio of the coverage area to the ground area, and when the first ratio is greater than the second ratio, determine the first ratio as the confidence level that the parking space is occupied by the obstacle; when the second ratio is greater than the first ratio, determine the second ratio as the confidence level that the parking space is occupied by the obstacle.

10. The method for determining parking space status according to any one of claims 1 to 5, characterized in that: The first target grounding information includes the corner point coordinates of the grounding frame of the obstacle relative to the parking space direction, the parking space information includes the corner point coordinates of the parking space, and determining the parking space state of the parking space according to the first target grounding information and the parking space information includes: The corner point coordinates of the ground frame of the obstacle relative to the parking space direction and the corner point coordinates of the parking space are input into a parking space state determination model to obtain the parking space state of the parking space, wherein the parking space state determination model is used to output the parking space state according to the input corner point coordinates of the ground frame and the corner point coordinates of the parking space.

11. The method for determining parking space status according to claim 5, characterized in that: The first target grounding information includes information about a grounding frame of the obstacle relative to the parking space direction, and the parking space state determination method further includes: Determining the number of obstacles in the ground frame according to information of the ground frame of the obstacle relative to the parking space direction and the parking space information of the target parking space; The determining the parking space state of the target parking space according to the first target grounding information and the parking space information of the target parking space includes: When the number of obstacles in the grounding frame is less than or equal to a preset number of obstacles, the parking space state of the target parking space is determined according to the first target grounding information and the parking space information of the target parking space.

12. The method for determining parking space status according to claim 11, characterized in that: Also includes: When the number of obstacles in the grounding frame is greater than or equal to a preset number of obstacles, clustering the grounding points in the first fitting grounding frame according to the grounding coordinates of the grounding points in the first fitting grounding frame to obtain a plurality of second clusters, wherein the number of the second clusters is the same as the number of obstacles in the grounding frame; For each second cluster, perform the following steps: Perform ground frame fitting according to the ground points in the second cluster and the ground coordinates of the ground points to obtain a second fitting ground frame of the obstacle; Determining second target grounding information of the obstacle relative to the parking space direction according to the second fitting grounding frame and the target parking space; The parking space state of the target parking space is determined according to the second target grounding information and the parking space information of the target parking space.

13. The method for determining parking space status according to claim 11, characterized in that: The determining the number of obstacles in the ground frame according to the information of the ground frame of the obstacle relative to the parking space direction and the parking space information of the target parking space includes: Determine a first width value of the target parking space according to the parking space information of the target parking space, and determine a second width value of the ground frame according to information of the ground frame of the obstacle relative to the parking space direction; The number of obstacles in the ground frame is determined according to a ratio between the first width value and the second width value and a preset ratio.

14. A controller, characterized in that: The controller comprises: processor; a memory for storing processor-executable instructions; The processor is configured to: execute the steps of the method described in any one of claims 1-13.

15. A vehicle, characterized in that: comprising a controller as claimed in claim 14, or, The vehicle comprises a processor and a memory for storing processor executable instructions, wherein the processor is configured to: perform the steps of the method of any one of claims 1-13.

16. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the method described in any one of claims 1 to 13 are implemented.

17. A computer program product comprising a computer program, characterized in that When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 13 are implemented.