Parking end opportunity determination method and device and vehicle
By comparing the rotation direction of the wheel and driving direction, we can determine whether the parking limiter is collided during parking, and end parking when a collision occurs, the impact problem caused by the vehicle's inability to recognize the parking limiter is solved, and the user experience and parking is improved Security.
Patent Information
- Application Number
- CN202411360820.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-27
- Publication Date
- 2024-12-06
AI Technical Summary
During parking, the parking limiter is small and the vehicle radar may not be recognized, causing the vehicle to hit the parking limiter, making the user's ride experience poor.
By comparing the driving direction corresponding to the wheel rotation direction and the current gear, determine whether a collision occurs, and end automatic parking when a collision occurs, improving the user experience.
Accurately judge the collision of parking limiters, end automatic parking in time, improve the user's ride experience, and avoid vehicle damage and improper parking space occupation.
Smart Images

Figure CN119078805A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of vehicle technology, and in particular to a method, device and vehicle for determining the end time of parking. Background Art
[0002] With the development of technology, more and more functions are designed in vehicles, which provide great convenience for drivers. For example, the automatic parking function, when the user wants to park, by turning on the automatic parking function, it can automatically search for parking spaces around the vehicle and plan the parking path, and then automatically turn the vehicle according to the planned path to park it in the parking space.
[0003] However, if there is a parking stopper in the parking space, the vehicle's radar may not be able to recognize the parking stopper because the parking stopper is small and usually installed on the ground. As a result, the vehicle may directly hit the parking stopper when parking and continue to drive over the parking stopper to continue parking, resulting in a poor riding experience for users. Summary of the invention
[0004] The present application provides a method, device, vehicle and storage medium for determining the end time of parking, which can determine that automatic parking ends when the vehicle hits the parking limiter, thereby improving the user's riding experience. The technical solution is as follows:
[0005] In a first aspect, a method for determining the end time of parking is provided, the method comprising:
[0006] When the target vehicle is in an automatic parking state, determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position;
[0007] When the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, controlling the target vehicle to continue automatic parking;
[0008] When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with a parking limiter and the target vehicle is controlled to end automatic parking.
[0009] In the present application, when the target vehicle is in the automatic parking state, it is first determined whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position. Subsequently, when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, the target vehicle is controlled to continue automatic parking; when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with the parking limiter and the target vehicle is controlled to end automatic parking. When the target vehicle collides with the parking limiter, it may cause the target vehicle to suddenly travel in the opposite direction to the driving direction corresponding to the current gear position, which will cause the wheel rotation direction of the target vehicle to be inconsistent with the driving direction corresponding to the current gear position. Therefore, by comparing the wheel rotation direction with the driving direction corresponding to the current gear position, it can be accurately determined whether the target vehicle collides with the parking limiter. Therefore, the target vehicle can be controlled to end automatic parking in a timely manner, thereby improving the user's riding experience.
[0010] Optionally, when the target vehicle is in an automatic parking state, determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position includes:
[0011] When the target vehicle is in an automatic parking state, determining the area of a target parking space that the target vehicle enters, the target parking space being the parking space selected for automatic parking;
[0012] When the area of the target parking space entered by the target vehicle is greater than a preset area threshold, it is determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0013] Optionally, determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position includes:
[0014] When at least one of the four wheels of the target vehicle has a wheel rotation direction opposite to the driving direction corresponding to the current gear position, determining that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position;
[0015] In the case where the wheel rotation directions of the four wheels of the target vehicle are all the same as the driving direction corresponding to the current gear position, it is determined that the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0016] Optionally, when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determining that the target vehicle collides with a parking limiter includes:
[0017] In the case where the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determining whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle, wherein the common obstacle is an obstacle that can be crushed by the target vehicle;
[0018] In a case where the target vehicle does not collide with the common obstacle, it is determined that the target vehicle collides with the parking limiter.
[0019] Optionally, the position information of the common obstacle includes position coordinates of the common obstacle, and determining whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle includes:
[0020] Determine a target area formed by the position coordinates of the boundary of the target vehicle;
[0021] When the position coordinates of the common obstacle are located on the target area, determining that the target vehicle collides with the common obstacle;
[0022] When the position coordinates of the common obstacle are outside the target area, it is determined that the target vehicle does not collide with the common obstacle.
[0023] Optionally, when the target vehicle does not collide with the common obstacle, determining that the target vehicle collides with the parking limiter includes:
[0024] In the case that the target vehicle does not collide with the common obstacle, collecting images around the target vehicle;
[0025] determining whether the parking stopper is recognized based on an image around the target vehicle;
[0026] If the parking stopper is not identified, determining that the target vehicle collides with the parking stopper;
[0027] In the case where the parking stopper is identified, determining whether the parking stopper is in a reference parking space, the reference parking space being a parking space other than the target parking space;
[0028] In a case where the parking stopper is not located at the reference parking position, it is determined that the target vehicle collides with the parking stopper.
[0029] Optionally, the method further comprises:
[0030] If the parking limiter is not identified, a parking confirmation interface is displayed, wherein the parking confirmation interface is used to remind the driver to confirm whether to end parking;
[0031] In response to a confirmation of the parking operation on the parking confirmation interface, the target vehicle is controlled to continue automatic parking, or in response to an end of the parking operation on the parking confirmation interface, the target vehicle is controlled to end automatic parking.
[0032] Optionally, when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, after determining that the target vehicle collides with a parking limiter and controlling the target vehicle to end automatic parking, the method further includes:
[0033] Determine the area of the target parking space that the target vehicle enters;
[0034] In the case where the area of the target parking space into which the target vehicle enters is different from the area of the target vehicle, recording the position coordinates of the parking limiter;
[0035] Based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space, a parking trajectory is replanned to obtain a new parking trajectory.
[0036] In a second aspect, a device for determining the parking end time is provided, the device comprising:
[0037] A first determination module is used to determine whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position when the target vehicle is in an automatic parking state;
[0038] A first control module, configured to control the target vehicle to continue automatic parking when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position;
[0039] The second control module is used to determine that the target vehicle collides with the parking limiter and control the target vehicle to end automatic parking when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position.
[0040] Optionally, the first determining module is used to:
[0041] When the target vehicle is in an automatic parking state, determining the area of a target parking space that the target vehicle enters, the target parking space being the parking space selected for automatic parking;
[0042] When the area of the target parking space entered by the target vehicle is greater than a preset area threshold, it is determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0043] Optionally, the first determining module is used to:
[0044] When at least one of the four wheels of the target vehicle has a wheel rotation direction opposite to the driving direction corresponding to the current gear position, determining that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position;
[0045] In the case where the wheel rotation directions of the four wheels of the target vehicle are all the same as the driving direction corresponding to the current gear position, it is determined that the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0046] Optionally, the second control module is used to:
[0047] In the case where the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determining whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle, wherein the common obstacle is an obstacle that can be crushed by the target vehicle;
[0048] In a case where the target vehicle does not collide with the common obstacle, it is determined that the target vehicle collides with the parking limiter.
[0049] Optionally, the second control module is used to:
[0050] Determine a target area formed by the position coordinates of the boundary of the target vehicle;
[0051] When the position coordinates of the common obstacle are located on the target area, determining that the target vehicle collides with the common obstacle;
[0052] When the position coordinates of the common obstacle are outside the target area, it is determined that the target vehicle does not collide with the common obstacle.
[0053] Optionally, the second control module is used to:
[0054] In the case that the target vehicle does not collide with the common obstacle, collecting images around the target vehicle;
[0055] determining whether the parking stopper is recognized based on an image around the target vehicle;
[0056] If the parking stopper is not identified, determining that the target vehicle collides with the parking stopper;
[0057] In the case where the parking stopper is identified, determining whether the parking stopper is in a reference parking space, the reference parking space being a parking space other than the target parking space;
[0058] In a case where the parking stopper is not located at the reference parking position, it is determined that the target vehicle collides with the parking stopper.
[0059] Optionally, the device further comprises:
[0060] A display module, used for displaying a parking confirmation interface when the parking limiter is not recognized, wherein the parking confirmation interface is used to remind the driver to confirm whether to end parking;
[0061] The third control module is used to control the target vehicle to continue automatic parking in response to the parking confirmation operation on the parking confirmation interface, or to control the target vehicle to end automatic parking in response to the parking end operation on the parking confirmation interface.
[0062] Optionally, the device further comprises:
[0063] A second determination module is used to determine the area of the target parking space that the target vehicle enters;
[0064] A recording module, used for recording the position coordinates of the parking limiter when the area of the target vehicle entering the target parking space is different from the area of the target vehicle;
[0065] The parking trajectory planning module is used to re-plan the parking trajectory based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space to obtain a new parking trajectory.
[0066] In a third aspect, a vehicle is provided, the vehicle comprising:
[0067] A memory for storing executable program codes;
[0068] The processor is used to call and run the executable program code from the memory, so that the vehicle executes the above-mentioned parking end timing determination method.
[0069] In a fourth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned method for determining the parking end timing is implemented.
[0070] In a fifth aspect, a computer program product comprising instructions is provided, which, when executed on a computer, enables the computer to execute the steps of the above-mentioned method for determining the parking end time.
[0071] It can be understood that the beneficial effects of the second, third, fourth and fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0073] Figure 1 is a scenario diagram of a method for determining the end time of parking provided in an embodiment of the present application;
[0074] Figure 2 is a flow chart of a method for determining the parking end timing provided by an embodiment of the present application;
[0075] Figure 3 is a schematic diagram of the positional relationship between a common obstacle and a target vehicle provided in an embodiment of the present application;
[0076] Figure 4 is a schematic diagram of a parking confirmation interface provided in an embodiment of the present application;
[0077] Figure 5 is a flow chart of another method for determining the parking end timing provided by an embodiment of the present application;
[0078] Figure 6 is a structural schematic diagram of a parking end timing determination device provided in an embodiment of the present application;
[0079] Figure 7 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application. DETAILED DESCRIPTION
[0080] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below with reference to the accompanying drawings.
[0081] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0082] Before describing the method for determining the parking end time provided in the embodiment of the present application, the application scenario of the embodiment of the present application is described first.
[0083] For example, Figure 1 A schematic diagram of a method for determining the parking end time provided in an embodiment of the present application, see Figure 1 , Figure 1 The system includes a vehicle 101 and a parking space 102 , wherein the vehicle 101 wants to park in the parking space 102 .
[0084] The vehicle 101 is a vehicle equipped with a parking assistance system (PAS).
[0085] The parking assistance system is a system that assists the vehicle in parking. The parking assistance system includes semi-automatic parking assistance and fully automatic parking assistance. Among them, in the semi-automatic parking assistance, when performing automatic parking, the driver controls the accelerator and brake, and the vehicle automatically controls the steering wheel. In the fully automatic parking assistance, when performing automatic parking, the vehicle fully controls the steering wheel, accelerator and brake, and the driver only needs to monitor the entire parking process. In the embodiments of the present application, the type of parking assistance system is not limited.
[0086] like Figure 1 As shown, when the vehicle 101 is parked in the parking space 102, the environment information around the vehicle 101 is first obtained, and then the parking space to be parked is selected as the parking space 102 based on the environment information around the vehicle 101. Then, it is detected whether there are large obstacles around the vehicle 101 and in the parking space 102. Then, the path planning is performed based on the recognition result to determine the parking trajectory. Subsequently, the vehicle 101 parks in the parking space 102 according to the planned parking trajectory by controlling the steering wheel, accelerator, and brake.
[0087] Generally, parking spaces are equipped with parking limiters, which are used to limit the parking position of vehicles to prevent vehicles from exceeding the parking space and causing unsafe hazards. Therefore, by setting parking limiters, vehicles can be ensured to be parked in the parking space.
[0088] like Figure 1 As shown, a parking stopper 103 is also provided in the parking space 102, but generally the height of the parking stopper is relatively low, so the parking stopper 103 may not be within the scanning range of the radar of the vehicle 101, and the vehicle 101 may not be able to detect the existence of the parking stopper 103. Moreover, the specific position of the parking stopper 103 is often not detected by visual means.
[0089] Therefore, the vehicle 101 may directly hit the parking stopper 103 during the parking process and continue to drive over the parking stopper 103 to continue parking, which may result in a poor user experience.
[0090] To this end, an embodiment of the present application provides a method for determining the parking end timing, which can end automatic parking when the vehicle 101 collides with the parking limiter 103.
[0091] The parking end timing determination method provided in the embodiment of the present application can be applied during the automatic parking process of the vehicle 101 .
[0092] Specifically, when the vehicle 101 is in the automatic parking state, the wheel rotation direction and the current gear position of the vehicle 101 are obtained; then, it is determined whether the wheel rotation direction of the vehicle 101 is consistent with the driving direction corresponding to the current gear position. When the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, it is determined that the vehicle 101 has not collided with the parking limiter 103, and the target vehicle can be controlled to continue automatic parking. When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the vehicle 101 has collided with the parking limiter 103, and the target vehicle can be controlled to end parking early.
[0093] When the vehicle 101 collides with the parking stopper 103, the vehicle 101 may suddenly travel in the direction opposite to the driving direction corresponding to the current gear position, which may cause the wheel rotation direction of the vehicle 101 to be inconsistent with the driving direction corresponding to the current gear position. Therefore, by comparing the wheel rotation direction with the driving direction corresponding to the current gear position, it can be accurately determined whether the vehicle 101 collides with the parking stopper 103. Therefore, the vehicle 101 can be controlled to end the automatic parking in time, thereby improving the riding experience of the user.
[0094] The method for determining the parking end timing provided in the embodiment of the present application is explained in detail below.
[0095] Figure 2 is a flow chart of a method for determining the parking end time provided by an embodiment of the present application. The method can be applied to the ECU (Electronic Control Unit) of a vehicle. Figure 2 , the method comprises the following steps.
[0096] Step 201: When the target vehicle is in an automatic parking state, determine whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position.
[0097] The target vehicle is a vehicle equipped with a parking assistance system, that is, the target vehicle can perform automatic parking operations.
[0098] The automatic parking state is also the target vehicle currently performing automatic parking. It should be understood that after the driver triggers the automatic parking instruction, the target vehicle can enter the automatic parking state.
[0099] Optionally, the driver can trigger the automatic parking command by clicking, sliding, somatosensory, voice, etc. As an implementation, the target vehicle can be provided with an automatic parking on / off button, and when the driver wants to turn on the automatic parking, the driver can click the automatic parking on button to turn on the automatic parking function, and the subsequent target vehicle can enter the automatic parking state.
[0100] The wheel rotation direction of the target vehicle may include forward or backward. The current gear may include forward gear or reverse gear. The corresponding forward gear corresponds to a driving direction of forward driving, and the corresponding reverse gear corresponds to a driving direction of backward driving.
[0101] Since a collision between the target vehicle and the parking limiter may cause the target vehicle to suddenly move in the opposite direction, the embodiment of the present application can accurately determine whether the target vehicle has collided with the parking limiter by determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position.
[0102] Optionally, a sensor for detecting the rotation direction of the wheel may be installed on the wheel of the target vehicle. For example, a Hall effect sensor, a magnetoresistive sensor, a photoelectric sensor, etc. may be installed on the wheel of the target vehicle.
[0103] Optionally, the operation of step 201 may be: when the target vehicle is in an automatic parking state, determining the area of the target parking space that the target vehicle has entered; when the area of the target parking space that the target vehicle has entered is greater than a preset area threshold, determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0104] The target parking space is the parking space selected for automatic parking.
[0105] The preset area threshold may be set in advance, and the preset area threshold may be set larger.
[0106] In this case, when the area of the target vehicle entering the target parking space is greater than the preset area threshold, it means that the area of the target vehicle entering the target parking space is large, that is, most of the body of the target vehicle has been parked in the target parking space, which means that the parking operation can be completed in a shorter time. At this time, it can be determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0107] When the area of the target parking space entered by the target vehicle is smaller than the preset area threshold, it means that the area of the target parking space entered by the target vehicle is small, that is, only a small part of the body of the target vehicle is in the target parking space, which means that it will take a long time to complete the parking. At this time, you can first determine whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear.
[0108] In this way, by determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position when the area of the target vehicle entering the target parking space is larger than the preset area threshold, it is possible to determine whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position when parking is almost completed, thereby saving the computing resources of the target vehicle and improving parking efficiency.
[0109] Among them, the operation of determining the area of the target parking space that the target vehicle has entered can be: collecting multiple images around the target vehicle through multiple cameras of the target vehicle; fusing the multiple images to determine the plane position image of the target vehicle and the target parking space; detecting the outline of the target vehicle in the target parking space in the plane position image; calculating the number of pixels of the outline of the target vehicle in the target parking space; converting the number of pixels of the outline of the target vehicle in the target parking space to obtain the area of the target vehicle that has entered the target parking space.
[0110] Optionally, the multiple cameras may be cameras installed in front, at the rear and at the sides of the target vehicle, thereby ensuring that the multiple cameras can capture images around the four sides of the target vehicle, and further accurately determine the planar position image.
[0111] The planar position image includes a target vehicle and a target parking space, and also includes a positional relationship between the target vehicle and the target parking space.
[0112] In this case, it is equivalent to first determining the positional relationship between the target vehicle and the target parking space based on multiple images around the target vehicle, then determining the number of pixels of the target vehicle in the target parking space in the image, and finally determining the area of the target vehicle entering the target parking space based on the number of pixels. In this way, by determining the area of the target vehicle entering the target parking space based on the number of pixels of the target vehicle in the target parking space in the image, it is possible to more conveniently and accurately determine the area of the target vehicle entering the target parking space.
[0113] Among them, the operation of detecting the outline of the target vehicle in the target parking space in the plane position image can be: performing edge detection on the plane position image to obtain edge information of the plane position image; based on the edge information of the plane position image, performing outline extraction on the plane position image to obtain multiple outlines; and selecting the outline of the target vehicle in the target parking space from the multiple outlines.
[0114] Edge detection is used to detect points in an image where brightness changes significantly, so that structural lines in the image can be preserved. Optionally, in the embodiment of the present application, edge detection can be performed on the plane position image by using a Canny algorithm, a Sobel algorithm, a Laplace algorithm, etc. Of course, edge detection can also be performed on the plane position image by constructing a neural network model, which is not limited in the embodiment of the present application.
[0115] In the embodiment of the present application, multiple contours can be extracted by contour extraction algorithm. For example, OpenCV encapsulates a function for contour extraction, and the steps for contour extraction are written inside the function. For example, multiple contours can be extracted by findContours function in OpenCV.
[0116] In this case, edge information of the planar position image is first detected, and then contour extraction is performed based on the edge information, so that the contour of the target vehicle in the target parking space can be accurately determined subsequently.
[0117] Among them, the operation of converting the number of pixels of the outline of the target vehicle in the target parking space to obtain the area of the target vehicle entering the target parking space can be: obtaining the resolution of the plane position image; determining the real area of one pixel based on the resolution of the plane position image; multiplying the number of pixels of the outline of the target vehicle in the target parking space by the real area to obtain the area of the target vehicle entering the target parking space.
[0118] Since resolution is equal to pixel size / physical size, the real area corresponding to one pixel in the real world can be known based on the resolution. In this case, after obtaining the number of pixels of the target vehicle's outline in the target parking space, directly multiplying the number of pixels by the real area of one pixel can easily and accurately determine the area of the target vehicle entering the target parking space.
[0119] Optionally, the operation of step 201 may also be: when the target vehicle is in an automatic parking state, determine whether the target vehicle is in the last segment of the planned parking trajectory; when the target vehicle is in the last segment of the planned parking trajectory, determine whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0120] The planned parking trajectory may be the latest planned parking trajectory. During the automatic parking process, the environmental information around the target vehicle is continuously detected, and the planned parking trajectory is continuously updated based on the environmental information around the target vehicle. Therefore, in the embodiment of the present application, the planned parking trajectory may be the latest planned parking trajectory.
[0121] In the embodiment of the present application, the trajectory between two gear changes during the automatic parking process is defined as a segment of trajectory, and the last segment of trajectory is a trajectory in the planned parking trajectory in which no gear changes are performed subsequently.
[0122] In this case, by judging whether the target vehicle is in the last section of the planned parking trajectory, it is judged whether the target vehicle is about to complete automatic parking. If the target vehicle is in the last section of the planned parking trajectory, it means that the target vehicle is currently in the last section of the latest planned parking trajectory, and the parking will be completed after the target vehicle completes the last section of the trajectory, which means that the parking operation can be completed in a shorter time. At this time, it can be determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0123] When the target vehicle is not in the last segment of the planned parking trajectory, it means that the target vehicle may need to perform gear shifting, correction and other operations before parking can be completed, which means that a long time is needed to complete the parking operation. At this time, it is not certain whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear.
[0124] In this way, by determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position when the target vehicle is in the last segment of the planned parking trajectory, it is possible to determine whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position when parking is about to be completed, thereby saving computing resources of the target vehicle and improving parking efficiency.
[0125] It is worth noting that the embodiment of the present application can obtain the timing for determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear through the above-mentioned operation. Then, when the timing for determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear arrives, it is determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear, which can save the computing resources of the target vehicle.
[0126] Specifically, the operation of determining whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position can be: when the wheel rotation direction of at least one wheel among the four wheels of the target vehicle is opposite to the driving direction corresponding to the current gear position, determining that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position; when the wheel rotation directions of the four wheels of the target vehicle are the same as the driving direction corresponding to the current gear position, determining that the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0127] When the wheel rotation direction of at least one wheel among the four wheels of the target vehicle is opposite to the driving direction corresponding to the current gear position, it means that there is a wheel driving in the opposite direction among the four wheels of the target vehicle, then it can be determined that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position.
[0128] When the wheel rotation direction of the four wheels of the target vehicle is the same as the driving direction corresponding to the current gear, it means that the four wheels are driving in the same direction and are all driving in the driving direction corresponding to the current gear. Then it can be determined that the wheel rotation direction is consistent with the driving direction corresponding to the current gear.
[0129] Step 202: When the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, control the target vehicle to continue automatic parking.
[0130] When the wheel rotation direction is consistent with the driving direction corresponding to the current gear, it means that the target vehicle is not currently driving in the direction opposite to the driving direction corresponding to the current gear, which means that the target vehicle has not collided with the parking limiter, and the target vehicle can be controlled to continue automatic parking.
[0131] Step 203: When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with the parking limiter and the target vehicle is controlled to end the automatic parking.
[0132] When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear, it means that the target vehicle is suddenly moving in the direction opposite to the driving direction corresponding to the current gear. The reason may be that the target vehicle collides with the parking limiter. Therefore, the target vehicle can be controlled to end automatic parking.
[0133] In this case, by comparing the wheel rotation direction with the driving direction corresponding to the current gear position, it is possible to accurately determine whether the target vehicle has collided with the parking stopper. Therefore, if it is determined that the target vehicle has collided with the parking stopper, the target vehicle can be controlled to end automatic parking in time, thereby improving the user's riding experience.
[0134] Optionally, the operation of step 203 may include the following steps (1) to (2).
[0135] (1) When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined whether the target vehicle collides with the common obstacles based on the position information of the common obstacles in the surrounding environment of the target vehicle.
[0136] Ordinary obstacles are obstacles that can be crushed by the target vehicle.
[0137] It should be understood that during the automatic parking process, the radar of the target vehicle will continuously collect environmental information around the target vehicle to identify obstacles around the target vehicle. In the embodiment of the present application, after identifying obstacles around the target vehicle, it can be determined whether the obstacle can be crushed, wherein the obstacles that can be crushed can be determined as ordinary obstacles.
[0138] Specifically, the operation of determining whether an obstacle can be crushed may be: obtaining an obstacle image from environmental information around the target vehicle; inputting the obstacle image into an obstacle type recognition model, processing the obstacle image through the obstacle type recognition model, and outputting the type of the obstacle; and determining whether the obstacle can be crushed based on the type of the obstacle.
[0139] Optionally, when the environmental information around the target vehicle is an image, the image may be used for target positioning, and then an obstacle image containing the obstacle may be output.
[0140] The obstacle type recognition model is used to identify the type of obstacles.
[0141] Obstacle types may include low and smooth obstacles, sharp obstacles, tall and large obstacles, etc. Low and smooth obstacles are obstacles that can be crushed, and sharp obstacles and tall and large obstacles are obstacles that cannot be crushed by the target vehicle.
[0142] It is worth noting that before inputting the obstacle image into the obstacle type recognition model, the obstacle recognition model can also be trained first.
[0143] Specifically, the server may obtain a plurality of first training samples, and use the plurality of first training samples to train the neural network model to obtain an obstacle type recognition model.
[0144] The server is a computer device used to train the obstacle type recognition model.
[0145] The plurality of first training samples may be pre-set. Each of the plurality of first training samples includes a sample image and a sample tag, the sample image includes an obstacle, and the sample tag is the type of the obstacle included in the sample image. That is, the input data in each of the plurality of first training samples is a sample image including an obstacle, and the sample tag is the type of the obstacle.
[0146] The neural network model may include multiple network layers, including an input layer, multiple hidden layers, and an output layer. The input layer is responsible for receiving input data; the output layer is responsible for outputting processed data; multiple hidden layers are located between the input layer and the output layer, responsible for processing data, and the multiple hidden layers are invisible to the outside. For example, the neural network model may be a deep neural network, and may be a convolutional neural network in a deep neural network.
[0147] When the server uses a plurality of first training samples to train the neural network model, for each of the plurality of first training samples, the input data in the first training sample can be input into the neural network model to obtain output data; the loss value between the output data and the sample label in the first training sample is determined by the loss function; and the parameters in the neural network model are adjusted according to the loss value. After the parameters in the neural network model are adjusted based on each of the plurality of first training samples, the neural network model with the adjusted parameters is the obstacle type recognition model.
[0148] Among them, the operation of the server adjusting the parameters in the neural network model according to the loss value can refer to the relevant technology, and the embodiment of the present application will not elaborate on this in detail.
[0149] For example, a computer device can be To adjust any parameter in the neural network model. is the adjusted parameter. W is the parameter before adjustment. α is the learning rate, which can be preset, such as α can be 0.001, 0.000001, etc., and this embodiment of the present application does not make a sole limitation on this. dw is the derivative of the loss function with respect to W, which can be obtained based on the loss value.
[0150] Optionally, the position information of the common obstacle may include the position coordinates of the common obstacle.
[0151] Specifically, the operation of step (1) may be: determining a target area formed by the position coordinates of the boundary of the target vehicle; when the position coordinates of the ordinary obstacle are located on the target area, determining that the target vehicle collides with the ordinary obstacle; when the position coordinates of the ordinary obstacle are located outside the target area, determining that the target vehicle does not collide with the ordinary obstacle.
[0152] The target area is the area occupied by the target vehicle on the ground.
[0153] When the position coordinates of the common obstacle are located on the target area, it means that the position of the common obstacle is within the area occupied by the target vehicle, which means that the common obstacle may actually be located under the target vehicle. At this time, it can be determined that the target vehicle collides with the common obstacle.
[0154] When the position coordinates of the common obstacle are outside the target area, it means that the position of the common obstacle is outside the area occupied by the target vehicle, which means that there is no intersection between the common obstacle and the target vehicle. Then it can be determined that the target vehicle has not collided with the common obstacle.
[0155] For example, Figure 3 A schematic diagram of the positional relationship between a common obstacle and a target vehicle. Figure 3 , Figure 3 The target vehicle 301 and the common obstacle 302 are included, wherein the position coordinates of the boundary of the target vehicle 301 form a target area 303, and the common obstacle 302 is located at position point A.
[0156] like Figure 3 As shown, point A is outside the target area 303, so it can be determined that the target obstacle does not collide with the ordinary obstacle.
[0157] Furthermore, when it is determined that the target vehicle collides with a common obstacle, the target vehicle is controlled to continue automatic parking.
[0158] When the target vehicle collides with an ordinary obstacle, it means that the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position may be due to the collision between the target vehicle and the ordinary obstacle. In addition, since ordinary obstacles can be crushed, the target vehicle can be controlled to continue automatic parking.
[0159] In this case, when it is determined that the target vehicle collides with a common obstacle, it also indicates that the target vehicle has not completed parking at this time, that is, it has not reached the position of the parking limiter, so the target vehicle can continue to be controlled to perform automatic parking.
[0160] In this way, by judging whether the target vehicle collides with a common obstacle, automatic parking will not always be terminated when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, thereby reducing the probability of incorrect parking timing judgment.
[0161] (2) When the target vehicle does not collide with a common obstacle, it is determined that the target vehicle collides with a parking limiter.
[0162] In the case that the target vehicle does not collide with an ordinary obstacle, it means that the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear is not caused by an ordinary obstacle, but is most likely caused by the parking stopper. Therefore, in this case, it can be determined that the target vehicle has collided with the parking stopper.
[0163] Optionally, the operation of step (2) may also include the following steps (a) to (e).
[0164] (a) When the target vehicle does not collide with common obstacles, the images around the target vehicle are collected.
[0165] In the case where the target vehicle does not collide with a common obstacle, the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position is likely to be caused by the parking stopper. In this case, by further collecting images around the target vehicle, it is possible to further determine whether it is caused by the parking stopper. In this way, the accuracy of determining the parking end time can be improved.
[0166] Optionally, images around the target vehicle may be collected respectively by cameras in front of, on both sides of, and at the rear of the target vehicle, so that multiple images may be collected.
[0167] (b) Based on the image of the surroundings of the target vehicle, determine whether a parking stopper is recognized.
[0168] In this case, it is equivalent to identifying the image around the target vehicle to identify whether the image contains a parking stopper, so that it can be determined whether the target vehicle collides with the parking stopper.
[0169] In the case where there are a plurality of images of the surroundings of the target vehicle, it may be determined whether the parking stopper is recognized based on each image.
[0170] Since the multiple images are collected by cameras at different locations on the target vehicle, the images collected by the multiple cameras are different due to angles, and the parking stopper may exist in one of the images. Therefore, when multiple images are collected, it can be determined based on each image whether the parking stopper is recognized.
[0171] Specifically, the operation of step (b) may be: inputting the image around the target vehicle into a stopper recognition model, processing the image around the target vehicle through the stopper recognition model, and outputting a recognition result; when the recognition result is that a parking stopper exists, determining that the parking stopper is recognized; when the recognition result is that no parking stopper exists, determining that the parking stopper is not recognized.
[0172] The stopper recognition model is used to recognize parking stoppers around the target vehicle. If the recognition result shows that a parking stopper exists, it means that the image around the target vehicle includes the features of the parking stopper, and it can be determined that the parking stopper is recognized. If the recognition result shows that there is no parking stopper, it means that the image around the target vehicle does not include the features of the parking stopper, and it can be determined that the parking stopper is not recognized.
[0173] It is worth noting that before inputting the image around the target vehicle into the stopper recognition model, the stopper recognition model can also be trained first.
[0174] Specifically, the server may obtain a plurality of second training samples, and use the plurality of second training samples to train the neural network model to obtain a limiter recognition model.
[0175] The server is a computer device used to train the stopper recognition model.
[0176] The plurality of second training samples may be pre-set. Each of the plurality of second training samples includes a sample image and a sample tag, the sample image is an image containing a parking space, the parking space is a parking space containing a parking stopper or not containing a parking stopper, and the sample tag is whether the sample image contains a parking stopper. That is, the input data in each of the plurality of second training samples is a sample image containing a parking space, and the sample tag is whether the sample image contains a parking stopper.
[0177] Specifically, the operation of using the multiple second training samples to train the neural network model to obtain the limiter recognition model is similar to the operation of using the multiple first training samples to train the neural network model to obtain the obstacle type recognition model, and will not be elaborated here.
[0178] It should be noted that, in the case where there are multiple images around the target vehicle, if the recognition result corresponding to each of the multiple images is that there is no parking limiter, it is determined that the parking limiter is not recognized; if the recognition result corresponding to any one of the multiple images is that there is a parking limiter, it is determined that the parking limiter is recognized.
[0179] When the recognition result corresponding to each of the multiple images is that there is no parking stopper, it means that there is no feature of the parking stopper in each of the multiple images, and it can be determined that the parking stopper is not recognized. When the recognition result corresponding to any one of the multiple images is that there is a parking stopper, it means that there is a feature of the parking stopper in one of the multiple images, and it can be determined that the parking stopper is recognized.
[0180] (c) When the parking stopper is not recognized, it is determined that the target vehicle collides with the parking stopper.
[0181] Normally, when parking is completed, the parking stopper is located below the target vehicle and close to the wheels of the target vehicle. Therefore, when parking is completed, the parking stopper may not be seen, and the camera of the target vehicle may not capture the image of the parking stopper.
[0182] In this case, if the parking stopper is not recognized, it means that the camera of the target vehicle has not captured the image of the parking stopper, and the reason is probably that the parking stopper is under the target vehicle and close to the wheels of the target vehicle. In this case, it means that the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position is caused by the parking stopper, and it can be determined that the target vehicle has collided with the parking stopper.
[0183] In this way, through the positional relationship between the parking stopper and the target vehicle during parking, it can be accurately determined whether the target vehicle collides with the parking stopper.
[0184] Further, after determining that the target vehicle collides with the parking stopper, it may also be determined that the parking of the target vehicle is completed, and then the automatic parking may be terminated.
[0185] Optionally, in the embodiment of the present application, when the parking limiter is not identified, the target vehicle can also be controlled to continue automatic parking or end automatic parking based on the driver's operating instructions.
[0186] Specifically, when the parking limiter is not recognized, a parking confirmation interface is displayed; in response to a confirmation parking operation on the parking confirmation interface, the target vehicle is controlled to continue automatic parking, or in response to an end parking operation on the parking confirmation interface, the target vehicle is controlled to end automatic parking.
[0187] The parking confirmation interface is used to remind the driver to confirm whether to end parking. In an embodiment of the present application, the parking confirmation interface may include a continue parking control and an end parking control. The continue parking control is used to determine whether the control target vehicle continues to park automatically, and the end parking control is used to determine whether the control target vehicle ends parking.
[0188] Due to the low profile of the parking stopper, it is not easy to be visually detected. In the case where the parking stopper is not identified, it means that the camera of the target vehicle has not captured the image of the parking stopper, and then the driver can confirm again whether to continue parking.
[0189] In this case, the driver can be informed that the parking stopper is not recognized, and the driver can confirm whether there is a parking stopper under the target vehicle. If the driver confirms that there is no parking stopper, the confirmation parking operation can be performed to control the target vehicle to continue automatic parking. If the driver confirms that there is a parking stopper, the end parking operation can be performed to end the automatic parking of the target vehicle.
[0190] In this way, when the parking limiter is not recognized, the driver can accurately control whether the target vehicle ends the automatic parking by confirming whether to end the parking, thereby improving the accuracy of parking.
[0191] For example, Figure 4 is a schematic diagram of the parking confirmation interface, see Figure 4 , Figure 4 The parking confirmation interface 401 includes a parking confirmation interface 401 , wherein the parking confirmation interface 401 includes a prompt message 402 , a continue parking control 403 and an end parking control 404 .
[0192] The prompt message 402 indicates that the parking stopper is not recognized, and asks whether to continue parking or end parking. For example, if the driver confirms that there is a parking stopper under the target vehicle, the driver can click the end parking control 404 on the parking confirmation interface 401, and then the target vehicle can respond to the end parking operation on the parking confirmation interface 401 to control the target vehicle to end automatic parking.
[0193] (d) When a parking stopper is identified, determining whether the parking stopper is in a reference parking space.
[0194] The reference parking space is a parking space other than the target parking space. In the embodiment of the present application, the reference parking space may be a parking space adjacent to the target parking space, or may be a parking space behind the target parking space, or may also be a parking space in front of the target parking space.
[0195] When a parking stopper is identified, it indicates that the image around the target vehicle has features of the parking stopper. Since the image of the parking stopper may not be acquired when parking is completed, in this case, it can be further determined whether the identified parking stopper belongs to another parking space.
[0196] In this case, by further determining whether the identified parking limiter belongs to other parking spaces, it is possible to more accurately determine whether the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear is caused by the parking limiter, that is, it is possible to more accurately determine whether the target vehicle collides with the parking limiter.
[0197] Specifically, the operation of step (d) may be: determining the positional relationship between the target vehicle and the parking limiter based on an image around the target vehicle; determining that the parking limiter is in a reference parking position when the parking limiter is on the left or right side of the target vehicle, or the parking limiter is behind the tail of the target vehicle, or the parking limiter is in front of the head of the target vehicle; determining that the parking limiter is not in the reference parking position when the parking limiter is not on the left or right side of the target vehicle and the parking limiter is not behind the tail of the target vehicle and the parking limiter is not in front of the head of the target vehicle.
[0198] Since if the target vehicle collides with the parking stopper, the parking stopper is present below the target vehicle, and the parking stopper will not be present around the target vehicle. Therefore, in the embodiment of the present application, it can be determined based on this principle whether the parking stopper belongs to other parking spaces.
[0199] In the case where the parking stopper is on the left or right side of the target vehicle, it means that the parking stopper may be a parking stopper in the reference parking space on the left and right sides of the target parking space, and it can be determined that the parking stopper is in the reference parking space. In the case where the parking stopper is in front of the head of the target vehicle, it means that the parking stopper may be a parking stopper in the reference parking space in front of the target parking space, and it can be determined that the parking stopper is in the reference parking space. In the case where the parking stopper is behind the tail of the target vehicle, it means that the parking stopper may be a parking stopper in the reference parking space behind the target parking space, and it can be determined that the parking stopper is in the reference parking space.
[0200] When the parking limiter is not on the left and right sides of the target vehicle, the parking limiter is not behind the tail of the target vehicle, and the parking limiter is not in front of the head of the target vehicle, it means that the parking limiter is not a parking limiter in the parking space around the target vehicle, and it is very likely that it is a parking limiter in the target parking space, so it can be determined that the parking limiter is not in the reference parking space.
[0201] (e) When the parking stopper is not in the reference parking position, it is determined that the target vehicle collides with the parking stopper.
[0202] Consider a parking situation where there is a deviation in the parking trajectory. The target vehicle may not be completely parked in the target parking space at the end of parking. At this time, if the body of the target vehicle is not straight, the camera of the target vehicle may also capture the parking limiter.
[0203] In this case, when the parking stopper is not in the reference parking space, the parking stopper may be a parking stopper in the target parking space, which means that the reason why the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear is caused by the parking stopper, and it can be determined that the target vehicle collides with the parking stopper.
[0204] Further, in this case, after determining that the target vehicle collides with the parking limiter, the target vehicle may also be controlled to end automatic parking, and then the parking trajectory may be replanned to control the target vehicle to completely park in the target parking space.
[0205] It is worth noting that, through the above steps 201 to 203, it can be determined whether the target vehicle collides with the parking stopper, and when it is determined that the target vehicle collides with the parking stopper, the target vehicle can be controlled to end automatic parking.
[0206] After determining that the target vehicle has collided with the parking limiter and controlling the target vehicle to end automatic parking, the method may also include: determining the area of the target parking space that the target vehicle has entered; when the area of the target parking space that the target vehicle has entered is different from the area of the target vehicle, recording the position coordinates of the parking limiter; and replanning the parking trajectory based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space to obtain a new parking trajectory.
[0207] If the area of the target parking space that the target vehicle enters is different from the area of the target vehicle, it means that the target vehicle has not completely entered the target parking space, that is, the target vehicle has not completed parking at this time. Then the position coordinates of the parking limiter can be recorded, and a new parking trajectory can be replanned later to continue parking.
[0208] Optionally, the parking trajectory can be replanned through local path planning based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space to obtain a new parking trajectory. Of course, the parking trajectory can also be planned in other ways, which is not limited to the embodiments of the present application.
[0209] In this case, by comparing the area of the target vehicle entering the target parking space with the area of the target vehicle, it is possible to determine whether the target vehicle is completely parked in the target parking space. If it is determined that the target vehicle is not completely parked in the target parking space, a new parking trajectory is replanned, thereby improving the parking accuracy of the target vehicle and thus improving the user experience.
[0210] For ease of understanding, now combined Figure 5 The method for determining the parking end time provided in the embodiment of the present application is illustrated by taking an example. For example, Figure 5is a flowchart of another method for determining the parking end time provided in an embodiment of the present application, see Figure 5 , Figure 5 The process includes the following steps 501 to 511.
[0211] Step 501: Determine whether the target vehicle is currently in an automatic parking state.
[0212] Step 502: When the vehicle is currently in the automatic parking state, determine whether the target vehicle is in the last segment of the parking trajectory.
[0213] Step 503: When the target vehicle is in the last segment of the parking trajectory, determine the area of the target parking space that the target vehicle enters; when the target vehicle is not in the last segment of the parking trajectory, execute the following step 511.
[0214] Step 504: Determine whether the area of the target parking space driven by the target vehicle is greater than a preset area threshold.
[0215] Step 505: If the area of the target parking space that the target vehicle enters is greater than the preset area threshold, determine whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position. If the area of the target parking space that the target vehicle enters is less than or equal to the preset area threshold, execute the following step 511.
[0216] Step 506: If the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determine whether the target vehicle collides with a common obstacle. If the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, execute the following step 511.
[0217] Step 507: If the target vehicle does not collide with a common obstacle, determine whether a parking stopper is recognized based on the image around the target vehicle. If the target vehicle collides with a common obstacle, execute the following step 511.
[0218] Step 508: If the parking limiter is not identified, a parking confirmation interface is displayed to allow the driver to choose whether to continue parking or end parking. If the driver chooses to continue parking, the following step 511 is continued to be executed, and if the driver chooses to end parking, the following step 510 is executed.
[0219] Step 509: When the parking stopper is identified, confirm whether the parking stopper is in the reference parking space. When it is determined that the parking stopper is not in the reference parking space, execute the following step 510.
[0220] Step 510: Determine that the target vehicle collides with the parking stopper, and control the target vehicle to end automatic parking.
[0221] Step 511: Control the target vehicle to continue automatic parking.
[0222] In the embodiment of the present application, when the target vehicle is in the automatic parking state, the ECU first determines whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position. Subsequently, when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, the target vehicle is controlled to continue automatic parking; when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with the parking limiter and the target vehicle is controlled to end automatic parking. When the target vehicle collides with the parking limiter, it may cause the target vehicle to suddenly travel in the opposite direction to the driving direction corresponding to the current gear position, which will cause the wheel rotation direction of the target vehicle to be inconsistent with the driving direction corresponding to the current gear position. Therefore, by comparing the wheel rotation direction with the driving direction corresponding to the current gear position, it can be accurately determined whether the target vehicle collides with the parking limiter. Therefore, the target vehicle can be controlled to end automatic parking in a timely manner, thereby improving the user's riding experience.
[0223] Figure 6 1 is a schematic diagram of a parking end timing determination device provided in an embodiment of the present application. The parking end timing determination device can be implemented by software, hardware, or a combination of both to form part or all of a vehicle, and the vehicle can be as follows: Figure 7 Vehicle shown. See Figure 6 The device includes: a first determination module 601, a first control module 602 and a second control module 603.
[0224] A first determination module 601 is used to determine whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position when the target vehicle is in an automatic parking state;
[0225] The first control module 602 is used to control the target vehicle to continue automatic parking when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position;
[0226] The second control module 603 is used to determine that the target vehicle collides with the parking limiter and control the target vehicle to end automatic parking when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position.
[0227] Optionally, the first determining module 601 is used to:
[0228] When the target vehicle is in an automatic parking state, determining the area of the target parking space that the target vehicle enters, the target parking space being the parking space selected for automatic parking;
[0229] When the area of the target parking space into which the target vehicle enters is greater than a preset area threshold, it is determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0230] Optionally, the first determining module 601 is used to:
[0231] When at least one of the four wheels of the target vehicle has a wheel rotation direction opposite to the driving direction corresponding to the current gear position, determining that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position;
[0232] In the case where the wheel rotation directions of the four wheels of the target vehicle are all the same as the driving direction corresponding to the current gear position, it is determined that the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
[0233] Optionally, the second control module 603 is used to:
[0234] When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determine whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle, where the common obstacle is an obstacle that the target vehicle can crush;
[0235] In the case that the target vehicle does not collide with the common obstacle, it is determined that the target vehicle collides with the parking stopper.
[0236] Optionally, the second control module 603 is used to:
[0237] Determine a target area formed by the position coordinates of the boundary of the target vehicle;
[0238] When the position coordinates of the common obstacle are located on the target area, it is determined that the target vehicle collides with the common obstacle;
[0239] When the position coordinates of the common obstacle are outside the target area, it is determined that the target vehicle does not collide with the common obstacle.
[0240] Optionally, the second control module 603 is used to:
[0241] When the target vehicle does not collide with common obstacles, collect images around the target vehicle;
[0242] determining whether a parking stopper is recognized based on an image surrounding the target vehicle;
[0243] In the case where the parking stopper is not identified, determining that the target vehicle collides with the parking stopper;
[0244] In the case where the parking stopper is identified, determining whether the parking stopper is in a reference parking space, the reference parking space being a parking space other than the target parking space;
[0245] When the parking stopper is not located at the reference parking space, it is determined that the target vehicle collides with the parking stopper.
[0246] Optionally, the device further comprises:
[0247] A display module, used for displaying a parking confirmation interface when the parking limiter is not recognized, wherein the parking confirmation interface is used for reminding the driver to confirm whether to end parking;
[0248] The third control module is used to control the target vehicle to continue automatic parking in response to the parking confirmation operation on the parking confirmation interface, or to control the target vehicle to end automatic parking in response to the parking end operation on the parking confirmation interface.
[0249] Optionally, the device further comprises:
[0250] The second determination module is used to determine the area of the target parking space that the target vehicle enters;
[0251] A recording module, used to record the position coordinates of the parking limiter when the area of the target vehicle entering the target parking space is different from the area of the target vehicle;
[0252] The parking trajectory planning module is used to re-plan the parking trajectory based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space to obtain a new parking trajectory.
[0253] In an embodiment of the present application, when the target vehicle is in an automatic parking state, it is first determined whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position. Subsequently, when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, the target vehicle is controlled to continue automatic parking; when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with the parking limiter and the target vehicle is controlled to end automatic parking. When the target vehicle collides with the parking limiter, it may cause the target vehicle to suddenly travel in the opposite direction to the driving direction corresponding to the current gear position, which will cause the wheel rotation direction of the target vehicle to be inconsistent with the driving direction corresponding to the current gear position. Therefore, by comparing the wheel rotation direction with the driving direction corresponding to the current gear position, it can be accurately determined whether the target vehicle collides with the parking limiter. Thereby, the target vehicle can be controlled to end automatic parking in a timely manner, thereby improving the user's riding experience.
[0254] It should be noted that: when the parking end timing determination device provided in the above embodiment determines whether to end parking during the automatic parking process, it only takes the division of the above functional modules as an example. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0255] The functional units and modules in the above embodiments may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit, and the above integrated units may be implemented in the form of hardware or in the form of software functional units. In addition, the specific names of the functional units and modules are only for the convenience of distinguishing each other, and are not used to limit the protection scope of the embodiments of the present application.
[0256] The parking end timing determination device and the parking end timing determination method embodiment provided in the above embodiment belong to the same concept. The specific working process and technical effects brought about by the units and modules in the above embodiment can be found in the method embodiment part, which will not be repeated here.
[0257] Figure 7 It is a structural schematic diagram of a vehicle provided in an embodiment of the present application.
[0258] For example, Figure 7 As shown, the vehicle 700 includes: a memory 71 and a processor 70, wherein the memory 71 stores an executable program code 72, and the processor 70 is used to call and execute the executable program code 72 to perform the above-mentioned method for determining the parking end timing.
[0259] In this embodiment, the functional modules of the vehicle can be divided according to the above method example. For example, each functional module can be corresponded, or two or more functions can be integrated into one processing module. The above integrated module can be implemented in the form of hardware. It should be noted that the division of modules in this embodiment is schematic and is only a logical function division. There may be other division methods in actual implementation.
[0260] In the case of dividing each functional module according to each function, the vehicle may include: a first determination module, a first control module, and a second control module. It should be noted that all relevant contents of each step involved in the above method embodiment can be referred to the functional description of the corresponding functional module, which will not be repeated here.
[0261] The vehicle provided in this embodiment is used to execute the above-mentioned method for determining the parking end time, and thus can achieve the same effect as the above-mentioned implementation method.
[0262] In the case of an integrated unit, the vehicle may include a processing module and a storage module. The processing module may be used to control and manage the actions of the vehicle. The storage module may be used to support the vehicle in executing corresponding program codes and data.
[0263] The processing module may be a processor or a controller, which may implement or execute various exemplary logic blocks, modules and circuits shown in conjunction with the disclosure of the present application. The processor may also be a combination that implements computing functions, such as a combination of one or more microprocessors, a combination of digital signal processing (DSP) and a microprocessor, etc. The storage module may be a memory.
[0264] This embodiment also provides a computer-readable storage medium, in which a computer program code is stored. When the computer program code is executed on a computer, the computer executes the above-mentioned related method steps to implement the above-mentioned method for determining the parking end timing in the above-mentioned embodiment.
[0265] This embodiment further provides a computer program product. When the computer program product is executed on a computer, the computer is caused to execute the above-mentioned related steps to implement the above-mentioned method for determining the parking end timing in the above-mentioned embodiment.
[0266] Among them, the vehicle, computer-readable storage medium, computer program product or chip provided in this embodiment are all used to execute the method provided above. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the method provided above and will not be repeated here.
[0267] Through the description of the above implementation methods, technical personnel in the relevant field can understand that for the convenience and brevity of description, only the division of the above-mentioned functional modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device can be divided into different functional modules to complete all or part of the functions described above.
[0268] In the embodiments provided in the present application, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another device, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0269] The above contents are only specific implementation methods of the present application, but the protection scope of the present application is not limited thereto. Any technician familiar with the technical field can easily think of changes or substitutions within the technical scope disclosed in the present application, which should be included in the protection scope of the present application. Therefore, the protection scope of the present application should be based on the protection scope of the claims.
Claims
1. A method for determining the parking end time, characterized in that: The method comprises: When the target vehicle is in an automatic parking state, determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position; When the wheel rotation direction is consistent with the driving direction corresponding to the current gear position, controlling the target vehicle to continue automatic parking; When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, it is determined that the target vehicle collides with a parking limiter and the target vehicle is controlled to end automatic parking.
2. The method according to claim 1, characterized in that When the target vehicle is in an automatic parking state, determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position includes: When the target vehicle is in an automatic parking state, determining the area of a target parking space that the target vehicle enters, the target parking space being the parking space selected for automatic parking; When the area of the target parking space entered by the target vehicle is greater than a preset area threshold, it is determined whether the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
3. The method according to claim 1, characterized in that The determining whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position includes: When at least one of the four wheels of the target vehicle has a wheel rotation direction opposite to the driving direction corresponding to the current gear position, determining that the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position; In the case where the wheel rotation directions of the four wheels of the target vehicle are all the same as the driving direction corresponding to the current gear position, it is determined that the wheel rotation direction is consistent with the driving direction corresponding to the current gear position.
4. The method according to claim 1, characterized in that When the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determining that the target vehicle collides with the parking limiter includes: In the case where the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, determining whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle, wherein the common obstacle is an obstacle that can be crushed by the target vehicle; In a case where the target vehicle does not collide with the common obstacle, it is determined that the target vehicle collides with the parking limiter.
5. The method according to claim 4, characterized in that The position information of the common obstacle includes the position coordinates of the common obstacle, and determining whether the target vehicle collides with the common obstacle based on the position information of the common obstacle in the surrounding environment of the target vehicle includes: Determine a target area formed by the position coordinates of the boundary of the target vehicle; When the position coordinates of the common obstacle are located on the target area, determining that the target vehicle collides with the common obstacle; When the position coordinates of the common obstacle are outside the target area, it is determined that the target vehicle does not collide with the common obstacle.
6. The method according to claim 4, characterized in that The step of determining that the target vehicle collides with the parking limiter when the target vehicle does not collide with the common obstacle includes: In the case that the target vehicle does not collide with the common obstacle, collecting images around the target vehicle; determining whether the parking stopper is recognized based on an image around the target vehicle; If the parking stopper is not identified, determining that the target vehicle collides with the parking stopper; In the case where the parking stopper is identified, determining whether the parking stopper is in a reference parking space, the reference parking space being a parking space other than the target parking space; In a case where the parking stopper is not located at the reference parking position, it is determined that the target vehicle collides with the parking stopper.
7. The method according to claim 6, characterized in that The method further comprises: If the parking limiter is not identified, a parking confirmation interface is displayed, wherein the parking confirmation interface is used to remind the driver to confirm whether to end parking; In response to a confirmation of the parking operation on the parking confirmation interface, the target vehicle is controlled to continue automatic parking, or in response to an end of the parking operation on the parking confirmation interface, the target vehicle is controlled to end automatic parking.
8. The method according to claim 1, characterized in that After determining that the target vehicle collides with the parking stopper and controlling the target vehicle to end automatic parking when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position, the method further includes: Determine the area of the target parking space that the target vehicle enters; In the case where the area of the target parking space into which the target vehicle enters is different from the area of the target vehicle, recording the position coordinates of the parking limiter; Based on the position coordinates of the target vehicle, the position coordinates of the parking limiter, and the boundary position coordinates of the target parking space, a parking trajectory is replanned to obtain a new parking trajectory.
9. A device for determining the parking end time, characterized in that: The device comprises: A first determination module is used to determine whether the wheel rotation direction of the target vehicle is consistent with the driving direction corresponding to the current gear position when the target vehicle is in an automatic parking state; A first control module, configured to control the target vehicle to continue automatic parking when the wheel rotation direction is consistent with the driving direction corresponding to the current gear position; The second control module is used to determine that the target vehicle collides with the parking limiter and control the target vehicle to end automatic parking when the wheel rotation direction is inconsistent with the driving direction corresponding to the current gear position.
10. A vehicle, characterized in that: The vehicle comprises: A memory for storing executable program codes; A processor, configured to call and run the executable program code from the memory so that the vehicle executes the method according to any one of claims 1 to 8.
