Obstacle location determination method, system, computer device and storage medium

By utilizing the relative distance and envelope diagram of the ultrasonic detection device in automatic parking technology, the location of obstacles is accurately determined, which solves the problem of misdetection of obstacles in the existing technology and improves the accuracy and efficiency of parking.

CN112485801BActive Publication Date: 2024-10-11GUANGZHOU XIAOPENG CONNECTIVITY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202011438695.3
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2020-12-10
Publication Date
2024-10-11
Estimated Expiration
2040-12-10

AI Technical Summary

Technical Problem

Existing automatic parking technology can easily fail to park properly due to misdetection of obstacles in complex application scenarios. Especially when there are other vehicles or objects on both sides of the parking space, it is difficult for ultrasonic radar to accurately detect the location of obstacles, resulting in parking problems. fail.

Method used

By obtaining the relative distance between the ultrasonic detection device and the obstacle during parking, determining the maximum beam angle according to the ultrasonic envelope diagram, rotating the central axis of the ultrasonic detection device to determine the actual position of the obstacle, and calculating the relationship between the position and the parking The separation distance between the edges is judged whether it is less than the threshold to determine whether the obstacle is located inside or outside the parking space, thereby avoiding false detection.

Benefits of technology

It improves the accuracy of obstacle detection during parking, avoids parking failures due to misdetection, and improves parking efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN112485801B_ABST
    Figure CN112485801B_ABST
Patent Text Reader

Abstract

The present invention discloses a method, system, computer device and storage medium for determining the position of an obstacle, wherein the method comprises: during the parking process, if an obstacle is detected, the relative distance between the ultrasonic detection device and the obstacle is obtained; according to the ultrasonic envelope diagram of the ultrasonic detection device, the maximum beam angle corresponding to the relative distance is determined; with the ultrasonic detection device as the origin, the point on the central axis of the ultrasonic detection device with a distance of the relative distance is rotated toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and the position corresponding to the maximum beam angle is determined; if the interval distance between the position corresponding to the maximum beam angle and the edge line of the parking space to be parked is less than a first distance threshold, it is determined that the obstacle is located outside the parking space to be parked. The present invention can prevent the occurrence of false detection of obstacles by accurately locating the position of the detected obstacles during the parking process, thereby improving the efficiency of parking and enhancing people's user experience.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of automobile parking, and in particular to a method, system, computer equipment and storage medium for determining an obstacle position. Background Art

[0002] With the development of the automobile industry and the improvement of people's living standards, the number of cars in China has continued to rise, and more and more vehicles are traveling on roads and streets. However, since the construction speed of standardized parking lots and parking lanes has not kept up with the growth rate of vehicles, parking lots have become more and more crowded, and there is less and less space for vehicles to turn freely when parking. Therefore, how to park the vehicle in an empty parking space in a limited space has become a problem that people face every time they park. It has also become one of the hot topics of widespread concern, which has troubled people's daily travel life and seriously restricted the sustainable development of society.

[0003] In order to solve the parking problem, in recent years, major automakers and suppliers have stepped up their research on vehicle assisted driving technology, resulting in the emergence of many very practical new technologies in the automotive field, which have gradually become standard configurations for many vehicles; among them, automatic parking technology is a function that is very helpful in solving parking difficulties for drivers.

[0004] At present, the most common automatic parking technology is the automatic parking technology based on ultrasonic radar, that is, the ultrasonic radar sensor is used to detect obstacles such as pedestrians, buildings and vehicles around the vehicle body, so as to finally find an empty parking space large enough to accommodate the vehicle and control the vehicle to park safely. When the vehicle automatically parks in an empty parking space, there may be times when the vehicle body tilts towards the parking space and moves, such as Figure 1 As shown, when the ultrasonic radar detects an obstacle, it usually assumes that the obstacle is located in the direction of the central axis of the ultrasonic detection device. Therefore, when there are other vehicles in the parking spaces on both sides of the empty parking space to be parked, and the turning angle of the vehicle into the parking space is too large, it is very likely that the vehicles or other objects on both sides of the empty parking space to be parked will be detected as obstacles in the empty parking space to be parked, causing false detection of the obstacle, thereby affecting the automatic parking and preventing it from continuing.

[0005] Therefore, how to improve the existing automatic parking technology to overcome the above-mentioned defects, or to provide a new automatic parking technology to increase its adaptability to complex application scenarios, has become one of the important research topics for technicians in this field. Summary of the invention

[0006] The embodiments of the present invention disclose a method, system, computer device and storage medium for determining the position of an obstacle, which can correct the event of misdetecting obstacles on both sides of a parking space as obstacles within the parking space, thereby improving the adaptability of the parking function in complex application scenarios.

[0007] A first aspect of an embodiment of the present invention discloses a method for determining an obstacle position;

[0008] As an optional implementation manner, in a first aspect of the embodiment of the present invention, the method includes:

[0009] During the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, a relative distance between the ultrasonic detection device and the obstacle is obtained;

[0010] Determining a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device;

[0011] Taking the ultrasonic detection device as the origin, rotating the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determining the position corresponding to the maximum beam angle;

[0012] Calculating the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked;

[0013] It is determined whether the interval distance is less than a first distance threshold. If the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked; if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

[0014] Furthermore, in the obstacle position determination method, during the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, the step of obtaining the relative distance between the ultrasonic detection device and the obstacle includes:

[0015] During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions;

[0016] If the preset condition is not met, determining that the obstacle is located in the parking space to be parked;

[0017] If the preset condition is met, the relative distance between the ultrasonic detection device and the obstacle is obtained.

[0018] Furthermore, in the obstacle location determination method, the preset conditions include:

[0019] The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold;

[0020] and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold;

[0021] And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

[0022] Furthermore, in the obstacle position determination method, after the step of determining that the obstacle is located in the parking space to be parked, the method further includes:

[0023] The vehicle to be parked is controlled to stop until it is detected that the obstacle disappears.

[0024] A second aspect of an embodiment of the present invention discloses an obstacle location determination system;

[0025] As an optional implementation, in a second aspect of the embodiment of the present invention, the system includes:

[0026] A first acquisition module is used to acquire a relative distance between the ultrasonic detection device and the obstacle if an obstacle is detected in the parking path by the ultrasonic detection device during the process of parking in the waiting parking space;

[0027] A first determination module, configured to determine a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device;

[0028] a second determination module, configured to use the ultrasonic detection device as an origin, rotate a point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determine a position corresponding to the maximum beam angle;

[0029] A first calculation module is used to calculate the interval distance between the position corresponding to the maximum beam angle and the edge line of the parking space to be parked;

[0030] The first judgment module is used to judge whether the interval distance is less than a first distance threshold. If the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked; if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

[0031] Furthermore, in the obstacle position determination system, the first acquisition module is specifically used for:

[0032] During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions;

[0033] If the preset condition is not met, determining that the obstacle is located in the parking space to be parked;

[0034] If the preset condition is met, the relative distance between the ultrasonic detection device and the obstacle is obtained.

[0035] Furthermore, in the obstacle location determination system, the preset conditions include:

[0036] The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold;

[0037] and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold;

[0038] And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

[0039] Furthermore, the obstacle location determination system further includes:

[0040] The first control module is used for controlling the vehicle to be parked to stop after the step of determining that the obstacle is located in the parking space to be parked, until it is detected that the obstacle disappears.

[0041] A third aspect of an embodiment of the present invention discloses a computer device;

[0042] As an optional implementation, in the third aspect of the embodiments of the present invention, the computer device includes a memory and a processor, the memory stores a computer program, and the processor implements the obstacle position determination method as described in any of the above aspects when executing the computer program.

[0043] A fourth aspect of an embodiment of the present invention discloses a storage medium containing computer executable instructions;

[0044] As an optional implementation, in the fourth aspect of the embodiments of the present invention, the computer executable instructions are executed by a computer processor to implement the obstacle position determination method as described in any of the above aspects.

[0045] Compared with the prior art, the embodiments of the present invention have the following beneficial effects:

[0046] By accurately locating the position of detected obstacles during the parking process, false detection of obstacles can be prevented, thereby avoiding the inability to park due to false detection, improving parking efficiency and enhancing people's user experience. BRIEF DESCRIPTION OF THE DRAWINGS

[0047] In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0048] Figure 1 is a flow chart of a method for determining an obstacle position provided in Embodiment 1 of the present invention;

[0049] Figure 2 is a schematic diagram of an ultrasonic envelope diagram provided in Embodiment 1 of the present invention;

[0050] Figure 3 is a schematic diagram of a vehicle to be parked being parked in a parking space to be parked provided by the first embodiment of the present invention;

[0051] Figure 4 is a flow chart of a method for determining an obstacle position provided in Embodiment 2 of the present invention;

[0052] Figure 5 is a flow chart of a method for determining an obstacle position provided in Embodiment 3 of the present invention;

[0053] Figure 6 Schematic diagram of functional modules of an obstacle location determination system provided by Embodiment 4 of the present invention;

[0054] Figure 7 It is a structural diagram of a computer device provided in Embodiment 5 of the present invention. DETAILED DESCRIPTION

[0055] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.

[0056] It should be noted that the terms "first" and "second" in the specification and claims of the present invention are used to distinguish different objects rather than to describe a specific order. The terms "including" and "having" in the embodiments of the present invention and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device including a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0057] The embodiments of the present invention disclose a method, system, computer equipment and storage medium for determining the position of an obstacle, which can improve the accuracy of obstacle detection during parking and improve people's use experience.

[0058] Embodiment 1

[0059] In view of the defect of existing automatic parking technology that parking cannot be performed due to false detection of obstacles, the inventor, based on many years of rich practical experience and professional knowledge in the automotive industry, and in conjunction with the application of academic theory, actively conducts research and innovation in order to create a practical automatic parking technology that is more practical. After continuous research, design, repeated trials and improvements, the present invention with real practical value was finally created.

[0060] See also Figure 1 , Figure 1 The present invention discloses a flow chart of a method for determining the position of an obstacle. The method is applicable to a scenario where the automatic parking function of a car is turned on. The method is performed by an obstacle position determination system, which can be implemented by software and / or hardware and integrated into the interior of the car. Figure 1 As shown, the obstacle location determination method may include the following steps:

[0061] S101. During parking in a waiting parking space, if an ultrasonic detection device detects an obstacle in a parking path, a relative distance between the ultrasonic detection device and the obstacle is obtained.

[0062] It should be noted that the ultrasonic detection device may be an ultrasonic sensor, or an ultrasonic rangefinder, or other instruments that use ultrasonic principles to detect and measure objects, etc. The embodiments of the present invention are now described using ultrasonic sensors as examples.

[0063] The method for obtaining the relative distance between the ultrasonic detection device and the obstacle is based on the principle of ultrasonic ranging, that is, an ultrasonic transmitter transmits ultrasonic waves in a certain direction, and timing starts at the same time as the transmission time. When the ultrasonic wave propagates in the air and hits an obstacle, it immediately returns. The ultrasonic receiver stops timing immediately after receiving the reflected wave, and then the time experienced by the ultrasonic wave, that is, the round-trip time, can be used to calculate the distance the ultrasonic wave has traveled and the relative distance between the ultrasonic detection device and the obstacle.

[0064] Assuming that s is the distance between the obstacle and the ultrasonic detection device, the measured time is t (in units of t), and the ultrasonic propagation speed is v (in units of m / s), then there is a relationship: s = vt / 2;

[0065] In addition, when the accuracy requirement is high, the influence of temperature on the ultrasonic propagation velocity needs to be considered, and the ultrasonic propagation velocity in the above formula needs to be corrected to reduce the error, that is, v = 331.4 + 0.607T;

[0066] Where T is the actual temperature in °C, and v is the propagation speed of ultrasound in the medium in m / s.

[0067] S102: Determine a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device.

[0068] It should be noted that, since the ultrasonic envelope diagram of the ultrasonic detection device can be directly obtained, after the relative distance between the ultrasonic detection device and the obstacle is determined, the possible position range of the obstacle can be calculated based on the ultrasonic envelope diagram and the relative distance. Please refer to Figure 2 , Figure 2 In the figure, a is the position of the ultrasonic detection device, b is the position of the obstacle misdetected (as mentioned above, the obstacle will be assumed to be in the direction of the central axis of the ultrasonic detection device), c is the actual position of the obstacle that is closest to the adjacent parking space. Generally, we believe that if the position closest to the adjacent parking space is excluded among the possible actual positions, then the other possible actual positions are also excluded, and s is the relative distance between the ultrasonic detection device and the obstacle.

[0069] Then, the maximum beam angle θ is determined by all points in the ultrasonic envelope diagram whose distance a is the relative distance s. It should be noted that the point located on the edge of the ultrasonic envelope diagram and whose distance a is the relative distance s is theoretically the position of the obstacle closest to the adjacent parking space.

[0070] Although from Figure 2We can see that there may be two points on the edge of the ultrasonic envelope diagram and the distance a is the relative distance s. However, we can understand through thinking that if the vehicle approaches one side of the parking space during the reversing process, the space on the other side of the parking space is large. Therefore, in actual situations, there is only one position closest to the adjacent parking space. For example, please refer to Figure 3 ( Figure 3 The solid rectangle in the middle is the current position of the vehicle to be parked, and the dotted rectangle is the target parking position of the vehicle to be parked). When turning right and reversing into the garage, the left side of the vehicle will be close to the edge of the parking space, or even close to the parking space A on the left. At this time, the position closest to the adjacent parking space will be on the left side of the vehicle, while the right side of the vehicle is farther from the edge of the parking space and also farther from the parking space B on the right.

[0071] S103, taking the ultrasonic detection device as the origin, rotating the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determining a position corresponding to the maximum beam angle.

[0072] It should be noted that if Figure 2 As shown, the point on the central axis (Y axis) of the ultrasonic detection device (position a) at the relative distance s refers to b, which is the position of the mistaken obstacle detection. When the ultrasonic detection device detects that there is an obstacle and measures the relative distance to the obstacle as s, the ultrasonic detection device actually does not know the actual direction of the obstacle. Therefore, c cannot be determined based on the relative distance s alone, and b needs to be rotated by an angle with a as the origin. This angle is the maximum beam angle, and then the actual direction of the obstacle can be determined. Then c can be obtained based on the relative distance s. c actually refers to the position corresponding to the maximum beam angle, but it also represents the position closest to the adjacent parking space in the actual position where the obstacle may be.

[0073] S104: Calculate the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked.

[0074] It should be noted that the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked refers to the distance between the position closest to the adjacent parking space in the actual position where the obstacle may be located and the edge of the parking space to be parked closest to it, such as Figure 3 The distance between c and the edge line near parking space A.

[0075] S105, determining whether the interval distance is less than a first distance threshold; if so, executing step S106, if not, executing step S107;

[0076] It should be noted that the first distance threshold is set by technicians based on experience, which is based on specific experimental results and can be any value.

[0077] S106, determining that the obstacle is located outside the parking space to be parked;

[0078] S107: Determine that the obstacle is located in the parking space to be parked.

[0079] It should be noted that when the interval distance is less than the first distance threshold, it means that the vehicle to be parked is very close to the parking space A on the left, and it is very likely that the car or other objects in the parking space A will be detected, thereby forming a falsely detected obstacle. Otherwise, it means that the vehicle to be parked is far away from the parking space A on the left, and it is unlikely that the car or other objects in the parking space A will be detected, which proves that the obstacle can only be located in the parking space to be parked.

[0080] The embodiment of the present invention discloses a method for determining the position of an obstacle. By accurately locating the position of a detected obstacle during parking, false detection of obstacles can be prevented, thereby avoiding the inability to park due to false detection, improving parking efficiency, and enhancing people's user experience.

[0081] Embodiment 2

[0082] Figure 4 This is a flow chart of a method for determining the position of an obstacle provided in the second embodiment of the present invention. Based on the first embodiment, this embodiment further optimizes step S101 "When parking in a parking space, if an obstacle is detected in the parking path by an ultrasonic detection device, the relative distance between the ultrasonic detection device and the obstacle is obtained". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. That is:

[0083] During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions;

[0084] If the preset condition is not met, determining that the obstacle is located in the parking space to be parked;

[0085] If the preset condition is met, the relative distance between the ultrasonic detection device and the obstacle is obtained.

[0086] Based on the above optimization, Figure 4 As shown, a method for determining an obstacle position provided in this embodiment may include the following steps:

[0087] S201. During parking in a parking space, if an obstacle is detected in the parking path by an ultrasonic detection device, it is determined whether the vehicle to be parked currently meets a preset condition; if not, step S208 is executed; if yes, step S202 is executed.

[0088] The preset conditions include:

[0089] The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold;

[0090] and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold;

[0091] And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

[0092] It should be noted that the reason for setting the preset conditions in this embodiment is that when the vehicle to be parked is parallel to the parking space to be parked (that is, the angle is less than or equal to the first angle threshold), and the vehicle to be parked has not yet entered the parking space to be parked (that is, the distance is greater than or equal to the second distance threshold), and there is no obstacle on the side of the parking space to be parked in the same turning direction as the vehicle to be parked, it can actually be directly determined that the detected obstacle must be located in the parking space to be parked, without the need to perform the following obstacle position determination process, which saves processing time and improves response time.

[0093] In the above steps, the distance between the current position of the vehicle to be parked and the target parking position in the parking path, as well as the angle between the current position of the vehicle to be parked and the target parking position in the parking path can be easily obtained through calculations with the cooperation of sensors in the prior art, and the determination of whether there is an obstacle on the side with the same turning direction as the vehicle to be parked can be determined by collecting data from the ultrasonic detection device of the vehicle to be parked when the vehicle to be parked is looking for a parking space.

[0094] S202: Obtain the relative distance between the ultrasonic detection device and the obstacle.

[0095] S203: Determine a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device.

[0096] S204, taking the ultrasonic detection device as the origin, rotating the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determining a position corresponding to the maximum beam angle.

[0097] S205: Calculate the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked.

[0098] S206, determining whether the interval distance is less than a first distance threshold; if so, executing step S207, if not, executing step S208;

[0099] S207, determining that the obstacle is located outside the parking space to be parked;

[0100] S208: Determine that the obstacle is located in the parking space to be parked.

[0101] In addition to the beneficial effects of the first embodiment, the embodiment of the present invention also sets a preset condition that theoretically makes it impossible for an obstacle to be misdetected, so that when the vehicle to be parked does not meet the preset condition, it can be directly determined that the obstacle is located in the parking space to be parked, and when the vehicle to be parked meets the preset condition, the position of the obstacle is determined normally, which not only improves the response time but also further improves the parking efficiency.

[0102] Embodiment 3

[0103] See also Figure 5 , Figure 5 is a flowchart of a method for determining the position of an obstacle disclosed in an embodiment of the present invention. Based on the technical solution provided in the first embodiment, this embodiment further optimizes the method after step S107 "determining that the obstacle is located in the parking space to be parked". The explanations of the terms that are the same or corresponding to the above embodiments are not repeated here. Specifically, the method provided in this embodiment may also include the following steps:

[0104] The vehicle to be parked is controlled to stop until it is detected that the obstacle disappears.

[0105] Based on the above optimization, Figure 5 As shown, a method for determining an obstacle position provided in this embodiment may specifically include the following steps:

[0106] S301. During parking in a waiting parking space, if an ultrasonic detection device detects an obstacle in a parking path, a relative distance between the ultrasonic detection device and the obstacle is obtained.

[0107] S302: Determine the maximum beam angle corresponding to the relative distance according to the ultrasonic envelope diagram of the ultrasonic detection device.

[0108] S303, taking the ultrasonic detection device as the origin, rotating the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determining a position corresponding to the maximum beam angle.

[0109] S304: Calculate the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked.

[0110] S305, determining whether the interval distance is less than a first distance threshold; if so, executing step S306, if not, executing step S307;

[0111] S306, determining that the obstacle is located outside the parking space to be parked;

[0112] S307: Determine that the obstacle is located in the parking space to be parked.

[0113] S308: Control the vehicle to be parked to stop until it is detected that the obstacle disappears.

[0114] It should be noted that, when it is determined that the obstacle is located in the parking space to be parked, a parking interruption command needs to be issued to control the vehicle to be parked to stop parking, and then continuously detect whether the obstacle disappears. When it is detected that the obstacle disappears, a parking recovery command is issued to control the vehicle to be parked to resume the parking action from the interruption state, and control the vehicle to be parked to continue to park in the parking space to be parked.

[0115] In addition to the beneficial effects of the first embodiment, the embodiment of the present invention further improves the entire automatic parking process and enhances people's user experience by setting steps that need to be executed when it is determined that the obstacle is located in the parking space to be parked.

[0116] Embodiment 4

[0117] Please see attached Figure 6 , Figure 6 This is a functional module diagram of an obstacle location determination system provided in Embodiment 4 of the present invention. The system is suitable for executing the obstacle location determination method provided in Embodiment 4 of the present invention. The system specifically includes the following modules:

[0118] A first acquisition module 41 is used for acquiring a relative distance between the ultrasonic detection device and the obstacle if an obstacle is detected in the parking path by the ultrasonic detection device during the process of parking in the parking space to be parked;

[0119] A first determination module 42, configured to determine a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device;

[0120] The second determination module 43 is used to use the ultrasonic detection device as an origin, rotate the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determine the position corresponding to the maximum beam angle;

[0121] A first calculation module 44 is used to calculate the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked;

[0122] The first judgment module 45 is used to judge whether the interval distance is less than a first distance threshold. If the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked; if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

[0123] Preferably, in the obstacle position determination system, the first acquisition module 41 is specifically used for:

[0124] During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions;

[0125] If the preset condition is not met, determining that the obstacle is located in the parking space to be parked;

[0126] If the preset condition is met, the relative distance between the ultrasonic detection device and the obstacle is obtained.

[0127] Preferably, in the obstacle location determination system, the preset conditions include:

[0128] The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold;

[0129] and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold;

[0130] And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

[0131] Preferably, the obstacle location determination system further includes:

[0132] The first control module is used for controlling the vehicle to be parked to stop after the step of determining that the obstacle is located in the parking space to be parked, until it is detected that the obstacle disappears.

[0133] The embodiment of the present invention discloses an obstacle position determination system, which can prevent the occurrence of false detection of obstacles by accurately locating the position of detected obstacles during parking, thereby avoiding the inability to park due to false detection, improving parking efficiency, and enhancing people's user experience.

[0134] The above system can execute the method provided by any embodiment of the present invention, and has the corresponding functional modules and beneficial effects of the execution method.

[0135] Embodiment 5

[0136] Figure 7 A schematic diagram of the structure of a computer device provided in Embodiment 5 of the present invention. Figure 7 A block diagram of an exemplary computer device 12 suitable for use in implementing embodiments of the present invention is shown. Figure 7 The computer device 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0137] like Figure 7 As shown, the computer device 12 is in the form of a general-purpose computing device. The components of the computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0138] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0139] The computer device 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the computer device 12, including volatile and non-volatile media, removable and non-removable media.

[0140] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The computer device 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 7 not shown, usually called a "hard drive"). Although Figure 7Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0141] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in the memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. The program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0142] The computer device 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), one or more devices that enable a user to interact with the computer device 12, and / or any device that enables the computer device 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. Furthermore, the computer device 12 may also communicate with one or more networks (e.g., a local area network (LAN), a wide area network (WAN), and / or a public network, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with the other modules of the computer device 12 via the bus 18. It should be understood that although Figure 7 Not shown, other hardware and / or software modules may be used in conjunction with computer device 12, including but not limited to microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0143] The processing unit 16 executes various functional applications and data processing by running the programs stored in the system memory 28, such as implementing the obstacle location determination method provided in the embodiment of the present invention.

[0144] That is, when the processing unit executes the program, the following is achieved: during the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, the relative distance between the ultrasonic detection device and the obstacle is obtained; according to the ultrasonic envelope diagram of the ultrasonic detection device, the maximum beam angle corresponding to the relative distance is determined; with the ultrasonic detection device as the origin, the point on the central axis of the ultrasonic detection device at a distance of the relative distance is rotated toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and the position corresponding to the maximum beam angle is determined; the interval distance between the position corresponding to the maximum beam angle and the edge line of the parking space to be parked is calculated; and it is determined whether the interval distance is less than a first distance threshold, if the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked, and if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

[0145] Embodiment 6

[0146] Embodiment 6 of the present invention provides a computer-readable storage medium on which computer-executable instructions are stored. When the instructions are executed by a processor, the obstacle location determination method provided in all the embodiments of the present invention is implemented:

[0147] That is, when the processing unit executes the program, the following is achieved: during the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, the relative distance between the ultrasonic detection device and the obstacle is obtained; according to the ultrasonic envelope diagram of the ultrasonic detection device, the maximum beam angle corresponding to the relative distance is determined; with the ultrasonic detection device as the origin, the point on the central axis of the ultrasonic detection device at a distance of the relative distance is rotated toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and the position corresponding to the maximum beam angle is determined; the interval distance between the position corresponding to the maximum beam angle and the edge line of the parking space to be parked is calculated; and it is determined whether the interval distance is less than a first distance threshold, if the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked, and if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

[0148] Any combination of one or more computer-readable media may be used. A computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination thereof. More specific examples (a non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in conjunction with an instruction execution system, device, or device.

[0149] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0150] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0151] Computer program code for performing the operations of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, C++, and conventional procedural programming languages ​​such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0152] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for determining an obstacle position, characterized in that: The method comprises: During the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, a relative distance between the ultrasonic detection device and the obstacle is obtained; Determining a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device; Taking the ultrasonic detection device as the origin, rotating the point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determining the position corresponding to the maximum beam angle; Calculating the distance between the position corresponding to the maximum beam angle and the edge of the parking space to be parked; It is determined whether the interval distance is less than a first distance threshold. If the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked; if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

2. The method for determining the obstacle position according to claim 1, characterized in that: In the process of parking in the parking space to be parked, if an obstacle is detected in the parking path by the ultrasonic detection device, the step of obtaining the relative distance between the ultrasonic detection device and the obstacle includes: During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions; If the preset condition is not met, determining that the obstacle is located in the parking space to be parked; If the preset condition is met, obtaining the relative distance between the ultrasonic detection device and the obstacle; The preset conditions include: The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold; and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold; And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

3. The method for determining the obstacle position according to claim 1, characterized in that: After the step of determining that the obstacle is located in the parking space to be parked, the method further includes: The vehicle to be parked is controlled to stop until it is detected that the obstacle disappears.

4. An obstacle location determination system, characterized in that: The system comprises: A first acquisition module is used to acquire a relative distance between the ultrasonic detection device and the obstacle if an obstacle is detected in the parking path by the ultrasonic detection device during the process of parking in the waiting parking space; A first determination module, configured to determine a maximum beam angle corresponding to the relative distance according to an ultrasonic envelope diagram of the ultrasonic detection device; a second determination module, configured to use the ultrasonic detection device as an origin, rotate a point on the central axis of the ultrasonic detection device at the relative distance toward the turning direction of the vehicle to be parked until the maximum beam angle is reached, and determine a position corresponding to the maximum beam angle; A first calculation module is used to calculate the interval distance between the position corresponding to the maximum beam angle and the edge line of the parking space to be parked; The first judgment module is used to judge whether the interval distance is less than a first distance threshold. If the interval distance is less than the first distance threshold, it is determined that the obstacle is located outside the parking space to be parked; if the interval distance is greater than or equal to the first distance threshold, it is determined that the obstacle is located inside the parking space to be parked.

5. The obstacle location determination system according to claim 4, characterized in that: The first acquisition module is specifically used for: During the process of parking in the parking space to be parked, if the ultrasonic detection device detects that there is an obstacle in the parking path, it is determined whether the vehicle to be parked currently meets the preset conditions; If the preset condition is not met, determining that the obstacle is located in the parking space to be parked; If the preset condition is met, obtaining the relative distance between the ultrasonic detection device and the obstacle; The preset conditions include: The distance between the current position of the vehicle to be parked and the target parking position in the parking path is less than a second distance threshold; and, an angle between a current position of the vehicle to be parked and a target parking position in the parking path is greater than a first angle threshold; And, there is an obstacle on the side of the parking space to be parked in the same direction as the turning direction of the vehicle to be parked.

6. The obstacle location determination system according to claim 4, characterized in that: Also includes: The first control module is used for controlling the vehicle to be parked to stop after the step of determining that the obstacle is located in the parking space to be parked, until it is detected that the obstacle disappears.

7. A computer device comprising a memory and a processor, wherein the memory stores a computer program, characterized in that: When the processor executes the computer program, the obstacle position determination method according to any one of claims 1 to 3 is implemented.

8. A storage medium comprising computer executable instructions, wherein the computer executable instructions are executed by a computer processor to implement the obstacle location determination method according to any one of claims 1 to 3.