Parking space identification method and device based on image, electronic equipment and storage medium

Through the edge detection algorithm and parking rectangular frame technology, the parking area around the vehicle is identified and marked, and the parking space with the highest overlap with the parking route is determined in real time. This solves the problem of difficulty in identifying unconventional parking spaces and repeated adjustments of vehicles' positions, and improves parking space recognition. effect and parking convenience.

CN118537838APending Publication Date: 2024-08-23CHENGDU WANWANG SECONDARY PLANET COMM EQUIP CO LTD
View PDF 0 Cites 2 Cited by

Patent Information

Application Number
CN202410663912.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-05-27
Publication Date
2024-08-23

AI Technical Summary

Technical Problem

Existing parking space recognition technology is ineffective when facing unconventional parking spaces and cannot accurately identify the location of the parking space. It usually only recognizes one parking space, causing the vehicle to repeatedly adjust its position to match the fixed parking space when parking.

Method used

The edge detection algorithm is used to identify the edges of pixel changes in the environment image around the vehicle, mark the parking area image, and use the parking rectangular frame to determine the parking space that has the highest overlap with the vehicle parking route, and update the parking route in real time to determine the best Parking location.

Benefits of technology

It improves the accuracy and efficiency of parking space identification, avoids the need for vehicles to repeatedly adjust their positions when parking, and improves the convenience of the parking process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118537838A
    Figure CN118537838A
Patent Text Reader

Abstract

The embodiment of the invention discloses an image-based parking space recognition method and device, electronic equipment and a storage medium, and relates to the technical field of parking space recognition, and the method comprises the steps: obtaining a parking region image in an environment image based on an edge detection algorithm; marking available parking spaces on the parking area image according to the parking rectangular frame of the target vehicle; and determining the parking space with the highest coincidence degree with the parking route of the target vehicle as a target parking space. According to the method, the image of the parking area where parking can be carried out is rapidly identified through the edge detection algorithm, then the parking space where parking can be carried out is marked through the parking rectangular frame, parking space identification can be carried out without depending on a parking space line, the parking space with the highest coincidence degree is determined in real time according to the parking state of the vehicle for parking, and the situation that only one parking space is identified, and the parking efficiency is improved is avoided. Therefore, when the vehicle is parked, the position needs to be repeatedly adjusted to match a fixed parking space, and the parking space recognition effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of parking space recognition, and in particular to an image-based parking space recognition method, device, electronic device and storage medium. Background Art

[0002] Parking space recognition refers to the automatic detection and identification of vacant parking spaces in a parking lot through specific technical means, such as computer vision technology. It is an important part of the smart parking system and provides purposeful parking guidance for vehicles. Parking space recognition technology is mainly based on the perception of surrounding environment information to determine the location and size of the parking space, so as to determine whether the parking space meets the parking conditions. However, the current parking space recognition technology is relatively poor. On the one hand, the existing technology is mainly aimed at conventional parking spaces, that is, parking spaces with ground parking space lines. When facing unconventional parking spaces, that is, parking spaces without ground parking space lines, the parking space lines are lost as reference and marking lines, and it is difficult to accurately identify the location of the parking space; on the other hand, the existing technology usually only recognizes a parking space based on the parking space lines. Whether it can be parked quickly and accurately depends on the parking technology. Summary of the invention

[0003] The main purpose of the present application is to provide an image-based parking space recognition method, device, electronic device and storage medium, aiming to solve the problem of poor effect of parking space recognition technology in the prior art.

[0004] To achieve the above objectives, the technical solutions adopted in the embodiments of the present application are as follows:

[0005] In a first aspect, an embodiment of the present application provides an image-based parking space recognition method, comprising the following steps:

[0006] Acquire the environment image around the target vehicle;

[0007] Based on the edge detection algorithm, the parking area image is obtained in the environment image;

[0008] According to the parking rectangle of the target vehicle, the available parking spaces are marked on the parking area image;

[0009] The available parking space with the highest overlap with the parking route of the target vehicle is determined as the target parking space.

[0010] In a possible implementation of the first aspect, determining the available parking space with the highest overlap with the parking route of the target vehicle as the target parking space includes:

[0011] According to the real-time parking status of the target vehicle, the predicted parking route of the target vehicle is obtained;

[0012] The available parking space with the highest overlap with the predicted parking route of the target vehicle is determined as the target parking space.

[0013] In a possible implementation of the first aspect, after determining that the available parking space with the highest overlap with the predicted parking route of the target vehicle is the target parking space, the method further includes:

[0014] Update the real-time parking status of the target vehicle;

[0015] Return to the step of obtaining a predicted parking route of the target vehicle according to the real-time parking status of the target vehicle, until the target vehicle parks in the target parking space.

[0016] In a possible implementation manner of the first aspect, after acquiring the parking area image in the environment image based on the edge detection algorithm, the method further includes:

[0017] Cropping the outer edge of the parking area image to obtain a first parking area image in a rectangular shape;

[0018] According to the parking rectangle of the target vehicle, the available parking spaces are marked on the parking area image, including:

[0019] According to the parking rectangle of the target vehicle, the available parking spaces are marked on the first parking area image.

[0020] In a possible implementation of the first aspect, marking a parking space on the parking area image according to the parking rectangle of the target vehicle includes:

[0021] According to the parking rectangle of the target vehicle, a matching template is obtained;

[0022] The matching template is used to match the parking area image according to the step distance, and the completely matched area is marked as a parking space; wherein the step distance includes a lateral step distance and a longitudinal step distance, and the lateral step distance is smaller than the longitudinal step distance.

[0023] In a possible implementation of the first aspect, before marking the available parking spaces on the parking area image according to the parking rectangle of the target vehicle, the method further includes:

[0024] Perform brightness threshold-based segmentation on the environment image to obtain a segmented image;

[0025] According to the segmented image, the center point of the wheel hub is obtained;

[0026] Obtain the longitudinal edge line according to the line connecting the image tilt direction and the hub center point;

[0027] According to the parking rectangle of the target vehicle, the available parking spaces are marked on the parking area image, including:

[0028] According to the parking rectangle of the target vehicle, the parking spaces are marked on the parking area image with the longitudinal edge lines as boundaries.

[0029] In a possible implementation of the first aspect, obtaining the longitudinal edge line according to a line connecting the image tilt direction and the hub center point includes:

[0030] According to the center point of the wheel hub, obtain the connecting line of the center point of the wheel hub;

[0031] According to the image tilt direction, the line connecting the hub center points is translated to the parking area image to obtain the longitudinal edge line.

[0032] In a second aspect, an embodiment of the present application provides an image-based parking space recognition device, comprising:

[0033] A first acquisition module, the first acquisition module is used to acquire an environmental image around the target vehicle;

[0034] A second acquisition module, the second acquisition module is used to acquire a parking area image in the environment image based on an edge detection algorithm;

[0035] The marking module is used to mark the available parking spaces on the parking area image according to the parking rectangle of the target vehicle;

[0036] The parking space determination module is used to determine the available parking space with the highest overlap with the parking route of the target vehicle as the target parking space.

[0037] In a third aspect, an embodiment of the present application provides an electronic device, including a processor and a memory, wherein:

[0038] The memory is used to store computer programs;

[0039] The processor is used to load and execute a computer program so that the electronic device executes the image-based parking space recognition method provided in any one of the first aspects above.

[0040] In a fourth aspect, an embodiment of the present application provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, the image-based parking space recognition method provided in any one of the first aspects above is implemented.

[0041] Compared with the prior art, the beneficial effects of this application are:

[0042] The present application provides an image-based parking space recognition method, device, electronic device and storage medium. First, an edge detection algorithm is used to identify edge portions where pixels change dramatically in an acquired environment image around a vehicle, so that the edge portions are used as the edges of ground parking spaces to quickly identify parking area images where parking is possible. Then, a parking rectangular frame that identifies the position of the vehicle is used to query and mark parking spaces that can be parked on the parking area image, so that parking spaces can be recognized without relying on parking space lines. Finally, the parking space with the highest degree of overlap with the parking route of the vehicle is determined as the target parking space for desired parking. Since the parking route changes in real time as the vehicle parks, and there may be multiple marked parking spaces, the degree of overlap of each parking space relative to the parking route will change after the parking route is updated. In this way, the parking space with the highest degree of overlap can be determined in real time according to the parking status of the vehicle for parking, so as to avoid only identifying one parking space, which results in the need to repeatedly adjust the position of the vehicle to match a fixed parking space when parking, thereby improving the effect of parking space recognition. BRIEF DESCRIPTION OF THE DRAWINGS

[0043] Figure 1 A schematic diagram of the structure of an electronic device of a hardware operating environment involved in an embodiment of the present application;

[0044] Figure 2 A schematic diagram of a process flow of an image-based parking space recognition method provided in an embodiment of the present application;

[0045] Figure 3 A schematic diagram of a parking area image in the image-based parking space recognition method provided in an embodiment of the present application;

[0046] Figure 4 A schematic diagram of cropping a parking area image in the image-based parking space recognition method provided in an embodiment of the present application;

[0047] Figure 5 A schematic diagram of a target parking space determined in the image-based parking space recognition method provided in an embodiment of the present application;

[0048] Figure 6 A schematic diagram of a target parking space re-determined according to the real-time parking status of a vehicle in an image-based parking space recognition method provided in an embodiment of the present application;

[0049] Figure 7 A schematic diagram of a module of an image-based parking space recognition device provided in an embodiment of the present application;

[0050] Markings in the figure: 101 - processor, 102 - communication bus, 103 - network interface, 104 - user interface, 105 - memory. DETAILED DESCRIPTION

[0051] It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0052] The main solution of the embodiment of the present application is: to obtain an environmental image around the target vehicle; based on an edge detection algorithm, to obtain a parking area image in the environmental image; according to the parking rectangle of the target vehicle, to mark the available parking spaces on the parking area image; and to determine the available parking space with the highest degree of overlap with the parking route of the target vehicle as the target parking space.

[0053] Parking space recognition refers to the automatic detection and identification of vacant parking spaces in a parking lot through specific technical means, such as geomagnetic technology, ultrasonic technology, and computer vision technology. It is an important part of the smart parking system and provides purposeful parking guidance for vehicles. For example, geomagnetic technology uses the magnetostrictive sensing principle to accurately detect the position of the car; ultrasonic technology uses the rebound of sound waves to achieve detection, which is suitable for indoor parking lots and other environments; computer vision technology determines the location and size of the parking space based on the perception of the surrounding environment information, thereby judging whether the parking space meets the parking conditions.

[0054] However, the current parking space recognition technology is less effective. On the one hand, the existing technology is mainly aimed at conventional parking spaces, that is, parking spaces with ground parking lines. When facing unconventional parking spaces, that is, parking spaces without ground parking lines, it is difficult to accurately identify the location of the parking space without the parking lines as reference and marking lines. For example, the invention patent with application number CN202311279028.9 and name "A vehicle parking method, device, equipment and storage medium" obtains the parking line corner point information through the parking line point cloud data, thereby determining the location of the out-of-line parking space. In the absence of parking lines, the point cloud data cannot be projected at all and the parking space cannot be identified.

[0055] On the other hand, the prior art usually only recognizes a parking space based on the parking space line, and parking is performed on this basis. Whether it is automatic parking or manual parking, there is a problem that it may be necessary to repeatedly adjust to enter the target parking space due to the automatic control of the parking path or the driver's own driving experience. Taking the parking space with vehicles on both sides of the vertical reverse parking as an example, it can be understood that the choice of parking space is relatively free in the absence of parking space lines. As long as the vehicle is parked with sufficient safety distance, the vehicle can also park closer to one side. If only one parking space is recognized, and this position is only the parking space given by the vehicle system itself or the parking space recommended based on the current parking position of the vehicle, when it is predicted that the parking space cannot be parked, the automatic driving system or the driver will readjust the position and park again. However, in fact, even if it is not readjusted, the vehicle may be able to park in the parking space, and the parking space ensures a safe distance. It is just because there is only one target parking space when the parking space is identified, resulting in other parking spaces that can be parked being ignored, resulting in longer parking time and more operations required.

[0056] To this end, the present application provides a solution. First, an edge detection algorithm is used to identify edge portions where pixels undergo drastic changes in an acquired environment image around a vehicle, thereby using the edge portions as the edges of ground parking spaces to quickly identify parking area images where parking is possible. Then, a parking rectangular frame that identifies the position of the vehicle is used to query and mark available parking spaces on the parking area image, thereby enabling the identification of parking spaces without relying on parking space lines. Finally, a parking space with the highest degree of overlap with the vehicle's parking route is determined as a target parking space for desired parking. Since the parking route changes in real time as the vehicle parks, and there may be multiple marked available parking spaces, the degree of overlap of each available parking space relative to the parking route will change after the parking route is updated. In this way, the parking space with the highest degree of overlap can be determined in real time according to the parking status of the vehicle for parking, thereby avoiding the situation where only one parking space is identified, resulting in the need to repeatedly adjust the position of the vehicle to match a fixed parking space when parking, thereby improving the effect of parking space identification.

[0057] See attached Figure 1 , attached Figure 1This is a schematic diagram of the structure of an electronic device of the hardware operating environment involved in the embodiment of the present application. The electronic device may include: a processor 101, such as a central processing unit (CPU), a communication bus 102, a user interface 104, a network interface 103, and a memory 105. Among them, the communication bus 102 is used to realize the connection and communication between these components. The user interface 104 may include a display screen (Display), an input unit such as a keyboard (Keyboard), and the user interface 104 may also include a standard wired interface and a wireless interface. The network interface 103 may optionally include a standard wired interface and a wireless interface (such as a wireless fidelity (WI re l ess-FI de l ity, WI-FI) interface). The memory 105 may optionally be a storage device independent of the aforementioned processor 101. The memory 105 may be a high-speed random access memory (RAM) memory, or it may be a stable non-volatile memory (NVM), such as at least one disk storage; the processor 101 may be a general-purpose processor, including a central processing unit, a network processor, etc., or it may be a digital signal processor, an application-specific integrated circuit, a field programmable gate array or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component.

[0058] Those skilled in the art will appreciate that Figure 1 The structure shown in the figure does not constitute a limitation on the electronic device, and may include more or less components than shown in the figure, or combine certain components, or arrange the components differently.

[0059] As attached Figure 1 As shown, the memory 105 as a storage medium may include an operating system, a network communication module, a user interface module, and an image-based parking space recognition device.

[0060] In the attached Figure 1 In the electronic device shown, the network interface 103 is mainly used for data communication with the network server; the user interface 104 is mainly used for data interaction with the user; the processor 101 and the memory 105 in the present application can be set in the electronic device, and the electronic device calls the image-based parking space recognition device stored in the memory 105 through the processor 101, and executes the image-based parking space recognition method provided in the embodiment of the present application.

[0061] See attached Figure 2 Based on the hardware device of the aforementioned embodiment, the embodiment of the present application provides an image-based parking space recognition method, comprising the following steps:

[0062] S10: Acquire an environment image around the target vehicle.

[0063] In the specific implementation process, the target vehicle is the vehicle that needs to find a parking space for parking. It should be noted that the embodiment of the present application is aimed at the situation where there is no parking space line, and there are obstacles on both sides of the desired parking position, such as other parked vehicles, walls, etc. If it is not the above situation, the parking space will be sufficient, and the driver can park safely by himself with the assistance of reversing radar and other means. The environmental image around the target vehicle can be obtained based on the 360-degree surround view system carried by the vehicle. The basic idea is to set up four cameras to take pictures around the vehicle respectively. Usually, four fisheye cameras are used to capture wide-angle pictures, and then processed by the AVM panoramic monitoring imaging system, the four wide-angle pictures are distorted and spliced ​​to generate a bird's-eye view based on the vehicle, that is, the environmental image around the target vehicle.

[0064] S20: Based on an edge detection algorithm, a parking area image is acquired in the environment image.

[0065] In the specific implementation process, edge detection is a step in image processing, which is used to identify the boundaries of areas with drastic changes in brightness in the image, usually corresponding to the edges of objects, textures or any other features with significant contrast. The purpose of the edge detection algorithm is to enhance these high-frequency components to make the contour clearer. Since there is a clear pixel difference between the vehicles on both sides of the parking space and the ground in the captured image, the edge detection algorithm can quickly determine the boundary between other vehicles and the ground, thereby separating the image of the ground position, that is, the parking area image, as shown in the attached figure. Figure 3 shown.

[0066] S30: Marking available parking spaces on the parking area image according to the parking rectangle of the target vehicle.

[0067] In the specific implementation process, the parking rectangle of the target vehicle is to transform the vehicle with irregular outline into a shape similar to it, so as to obtain the circumscribed rectangle, as shown in the attached figure. Figure 3 -Attached Figure 6 As shown in the figure, an ellipse represents a vehicle, and its parking rectangle is the smallest circumscribed rectangle of the ellipse. The parking area image is marked based on the parking rectangle, and the position that can completely accommodate the rectangle is considered as a parking space. However, it should be noted that this circumscribed rectangle needs to maintain a safe distance from the surrounding vehicles. From the perspective of the parking area image, the edge of the image needs to shrink inward for a certain distance before identification. This distance is considered as a safe distance for other vehicles, and then these parking spaces are filled with pixels or the borders are solidified for marking.

[0068] Since the parking area image is an irregular image, and it is known from the actual control of the vehicle that it is difficult to make subtle adjustments, such as adjusting the vehicle to move two centimeters or less to one side each time, on this basis, the parking space marking on the parking area image does not need to mark all the parking spaces that exist theoretically. For example, first mark a parking space, and then the parking spaces very close to the parking space do not need to be marked, and can be marked at intervals. This distance can be controlled by the step distance, that is: according to the parking rectangle of the target vehicle, mark the parking spaces on the parking area image, including:

[0069] According to the parking rectangle of the target vehicle, a matching template is obtained;

[0070] The matching template is used to match the parking area image according to the step distance, and the completely matched area is marked as a parking space; wherein the step distance includes a lateral step distance and a longitudinal step distance, and the lateral step distance is smaller than the longitudinal step distance.

[0071] In the specific implementation process, the size of the parking rectangle is identified and used as the size of the matching template. Then, the template matching method can be used to perform matching search on the parking area image. First, the initial position is determined. The initial position is set as the first area that can be completely matched in a certain matching direction, such as the attached Figure 5 As shown, there is an area in the upper left corner of the image, which is recorded as the initial position. Then, the lateral step distance is specified for matching to the right, such as five centimeters. The longitudinal step distance is for the front and rear directions. Since the adjustment in the front and rear directions only requires the vehicle to move forward and backward, it is very convenient to adjust. Therefore, when determining the parking space, the lateral position is more important than the front and rear position. Therefore, the step distance in the front and rear directions can be set to be greater than the lateral distance to avoid wasting too much matching time in the front and rear longitudinal directions.

[0072] In one embodiment, after acquiring the parking area image in the environment image based on the edge detection algorithm, the method further includes:

[0073] The outer edge of the parking area image is cropped to obtain a first parking area image in a rectangular shape.

[0074] In the specific implementation process, due to the recognition of the edge detection algorithm, some areas that cannot be parked are mistakenly identified as parking area images, such as the extension part of the ground to the bottom of the adjacent vehicle. Even if this part is not corrected, the parking rectangle is matched by its shape when matching the mark. The concave and convex edges of the parking area image do not affect the recognition result. However, in order to improve the matching efficiency, the outer edge of the parking area image is cropped and trimmed into a rectangle that matches the parking rectangle, that is, the first parking area image.

[0075] Based on the above steps, marking the available parking spaces on the parking area image according to the parking rectangle of the target vehicle includes:

[0076] According to the parking rectangle of the target vehicle, the available parking spaces are marked on the first parking area image.

[0077] S40: Determine the available parking space that has the highest overlap with the parking route of the target vehicle as the target parking space.

[0078] In the specific implementation process, the parking route of the vehicle is also the driving trajectory of the vehicle, which is usually a route extending from both sides of the vehicle parking rectangular frame and keeping the same width as the rectangular frame. The parking route can be displayed according to the state of the vehicle. Its main parameters include the current position of the vehicle and the current wheel steering. The parking route also represents the subsequent driving trajectory of the vehicle in the current state. The available parking space is a rectangular frame. The frame with the highest overlap with the parking route means that the parking space corresponding to the rectangular frame is most likely to be driven into by keeping the parking route, that is, the target parking space.

[0079] In one embodiment, determining the available parking space with the highest overlap with the parking route of the target vehicle as the target parking space includes:

[0080] According to the real-time parking status of the target vehicle, the predicted parking route of the target vehicle is obtained;

[0081] The available parking space with the highest overlap with the predicted parking route of the target vehicle is determined as the target parking space.

[0082] In the specific implementation process, during driving, the parking route is a dynamic change, that is, when parking a vehicle, it may not completely follow the initial parking route. Therefore, it is necessary to obtain a predicted route for continuing parking in this state according to the real-time parking state of the vehicle, that is, the real-time vehicle position and the vehicle steering situation. Subsequently, the target parking space is adjusted according to the overlap between the available parking space and the predicted route. That is, after determining that the available parking space with the highest overlap with the predicted parking route of the target vehicle is the target parking space, the method further includes:

[0083] Update the real-time parking status of the target vehicle;

[0084] Return to the step of obtaining a predicted parking route of the target vehicle according to the real-time parking status of the target vehicle, until the target vehicle parks in the target parking space.

[0085] The parking speed of the vehicle is relatively low, so there will not be a significant change in a short period of time. Therefore, there is no need to provide real-time feedback to increase the amount of calculation of the algorithm. The real-time status of the vehicle can be collected and updated periodically, such as once every one or two seconds, and then the parking space can be re-determined based on the updated status. Figure 5 As shown in the figure, the bold rectangle represents the target parking space. After the vehicle is parked, the driving operation may not completely follow the established parking route. For example, when it reaches the following Figure 6 When the vehicle reaches the position shown, the predicted parking route changes, and the rectangular box with the highest overlap changes, thereby re-determining the target parking space. Since this parking space is also a safe parking space for parking, compared with the existing technology that only recommends a fixed parking space, this way, the most suitable parking space can be re-determined in real time according to the parking status, and no further adjustments are necessary. It should be noted that if the vehicle is successfully parked in the parking space and the direction is corrected, and if the lateral direction ensures a safe distance for parking, it will only move in the front and back directions. At this time, there may be multiple parking spaces with the highest overlap and the same parking spaces on the parking route. These parking spaces can all be parked safely, and there is only a difference between the front and the back. At this time, the algorithm can be designed to select a parking space closer to the middle of the parking area, so that the vehicle remains in the middle in the front and back directions, or the driver can choose to park by himself.

[0086] In this embodiment, firstly, an edge detection algorithm is used to identify edge portions where pixels undergo drastic changes in the acquired environment image around the vehicle, so that the edge portions are used as the edges of ground parking spaces to quickly identify parking area images where the vehicle can be parked. Then, a parking rectangular frame that identifies the position of the vehicle is used to query and mark parking spaces that can be parked on the parking area image, so that the parking spaces can be identified without relying on parking space lines. Finally, the parking space with the highest degree of overlap with the parking route of the vehicle is determined as the target parking space for desired parking. Since the parking route changes in real time as the vehicle parks, and there may be multiple marked parking spaces, the degree of overlap of each parking space with respect to the parking route will change after the parking route is updated. In this way, the parking space with the highest degree of overlap can be determined in real time according to the parking status of the vehicle for parking, so as to avoid identifying only one parking space, which results in the need to repeatedly adjust the position of the vehicle to match a fixed parking space when the vehicle is parked, thereby improving the effect of parking space identification.

[0087] In one embodiment, before marking the available parking spaces on the parking area image according to the parking rectangle of the target vehicle, the method further includes:

[0088] Perform brightness threshold-based segmentation on the environment image to obtain a segmented image;

[0089] According to the segmented image, the center point of the wheel hub is obtained;

[0090] The longitudinal edge line is obtained according to the line connecting the image tilt direction and the hub center point.

[0091] In the specific implementation process, in order to more accurately identify the area on the ground where parking can be done, according to the parking space described in the embodiment of the present application, brightness threshold-based segmentation is performed on the environmental image. This method is a type of threshold segmentation. It can be understood that in the same shooting environment, metal parts such as wheels will have stronger reflective capabilities, so there will be obvious brightness differences from other places in the image. The position of the wheel hub is segmented by the brightness threshold, and then the center point of the wheel hub is obtained by identifying the features of the wheel hub. The points of the center of the wheel hub on the same side are connected to determine that the boundary line on the ground where parking can be done must be parallel to the line. Then, this line is translated according to the inclination direction of the image to restore the longitudinal boundary line, that is, the longitudinal edge line.

[0092] Based on the above steps, marking the available parking spaces on the parking area image according to the parking rectangle of the target vehicle includes:

[0093] According to the parking rectangle of the target vehicle, the parking spaces are marked on the parking area image with the longitudinal edge lines as boundaries.

[0094] Specifically, the longitudinal edge line is obtained according to the line connecting the image tilt direction and the hub center point, including:

[0095] According to the center point of the wheel hub, obtain the connecting line of the center point of the wheel hub;

[0096] According to the image tilt direction, the line connecting the hub center points is translated to the parking area image to obtain the longitudinal edge line.

[0097] In the specific implementation process, the boundary line will first be determined based on the line connecting the center points of the wheel hubs. However, the boundary line obtained in this way is on the vehicle, and the parking area image should obtain the ground position. The line is translated in the direction of the image's inclination until the line reaches the parking area image. It can be determined that the line is the boundary when the parking space is marked on the parking area image, and a more accurate and safe parking space can be obtained, thereby improving the parking space recognition effect and the parking effect.

[0098] Refer to the attached Figure 7 Based on the same inventive concept as in the above-mentioned embodiment, the embodiment of the present application further provides an image-based parking space recognition device, comprising:

[0099] A first acquisition module, the first acquisition module is used to acquire an environmental image around the target vehicle;

[0100] A second acquisition module, the second acquisition module is used to acquire a parking area image in the environment image based on an edge detection algorithm;

[0101] The marking module is used to mark the available parking spaces on the parking area image according to the parking rectangle of the target vehicle;

[0102] The parking space determination module is used to determine the available parking space with the highest overlap with the parking route of the target vehicle as the target parking space.

[0103] Those skilled in the art should understand that the division of the various modules in the embodiment is only a division of logical functions, and can be fully or partially integrated into one or more actual carriers in actual application, and these modules can be all implemented in the form of software called by the processing unit, or all implemented in the form of hardware, or implemented in the form of a combination of software and hardware. It should be noted that the modules in the image-based parking space recognition device in this embodiment correspond one-to-one to the steps in the image-based parking space recognition method in the aforementioned embodiment. Therefore, the specific implementation of this embodiment can refer to the implementation of the aforementioned image-based parking space recognition method, which will not be repeated here.

[0104] Based on the same inventive concept as in the aforementioned embodiment, an embodiment of the present application further provides a computer-readable storage medium storing a computer program. When the computer program is loaded and executed by a processor, an image-based parking space recognition method as provided in the embodiment of the present application is implemented.

[0105] Based on the same inventive concept as in the above-mentioned embodiment, an embodiment of the present application further provides an electronic device, including a processor and a memory, wherein:

[0106] The memory is used to store computer programs;

[0107] The processor is used to load and execute a computer program so that the electronic device executes the image-based parking space recognition method provided in the embodiment of the present application.

[0108] In some embodiments, the computer readable storage medium may be a memory such as FRAM, ROM, PROM, EPROM, EEPROM, flash memory, magnetic surface memory, optical disk, or CD-ROM; or various devices including one or any combination of the above memories. The computer may be various computing devices including intelligent terminals and servers.

[0109] In some embodiments, executable instructions may be in the form of a program, software, software module, script or code, written in any form of programming language (including compiled or interpreted languages, or declarative or procedural languages), and may be deployed in any form, including as a stand-alone program or as a module, component, subroutine or other unit suitable for use in a computing environment.

[0110] As an example, executable instructions may, but need not, correspond to a file in a file system, may be stored as part of a file that stores other programs or data, such as in one or more scripts in a HyperText Markup Language (HTML) document, in a single file dedicated to the program in question, or in multiple coordinated files (e.g., files storing one or more modules, subroutines, or code portions).

[0111] By way of example, executable instructions may be deployed to be executed on one computing device, or on multiple computing devices located at one site, or on multiple computing devices distributed across multiple sites and interconnected by a communication network.

[0112] It should be noted that, in this article, the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or system including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or system. In the absence of further restrictions, an element defined by the sentence "comprises a ..." does not exclude the existence of other identical elements in the process, method, article or system including the element.

[0113] The serial numbers of the above-mentioned embodiments of the present application are for description only and do not represent the advantages or disadvantages of the embodiments.

[0114] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as a read-only memory / random access memory, a magnetic disk, or an optical disk), and includes a number of instructions for enabling a multimedia terminal device (which can be a mobile phone, a computer, a television receiver, or a network device, etc.) to execute the methods described in each embodiment of the present application.

[0115] In summary, the present application provides an image-based parking space recognition method, device, electronic device and storage medium, the method comprising: acquiring an environmental image around a target vehicle; acquiring a parking area image in the environmental image based on an edge detection algorithm; marking available parking spaces on the parking area image according to a parking rectangle of the target vehicle; and determining the available parking space with the highest degree of overlap with the parking route of the target vehicle as the target parking space. The present application firstly uses an edge detection algorithm to identify edge portions where pixels undergo dramatic changes in an acquired environment image around a vehicle, thereby using the edge portions as the edges of ground parking spaces to quickly identify parking area images where parking is possible, and then uses a parking rectangle that identifies the position of the vehicle to query and mark available parking spaces on the parking area image, thereby being able to identify parking spaces without relying on parking space lines, and finally determining the parking space with the highest degree of overlap with the vehicle's parking route as the target parking space for desired parking. Since the parking route changes in real time as the vehicle parks, and there may be multiple marked available parking spaces, the degree of overlap of each available parking space relative to the parking route will change after the parking route is updated, so that the parking space with the highest degree of overlap can be determined in real time according to the parking status of the vehicle for parking, thereby avoiding identifying only one parking space, which results in the need to repeatedly adjust the position of the vehicle to match a fixed parking space when parking, thereby improving the effect of parking space recognition.

[0116] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present application should be included in the protection scope of the present application.

Claims

1. A parking space recognition method based on an image, characterized in that: The following steps are involved: Acquire the environment image around the target vehicle; Based on an edge detection algorithm, acquiring a parking area image in the environment image; Marking available parking spaces on the parking area image according to the parking rectangle of the target vehicle; The available parking space having the highest overlap with the parking route of the target vehicle is determined as the target parking space.

2. The image-based parking space recognition method according to claim 1, characterized in that: The step of determining the available parking space having the highest overlap with the parking route of the target vehicle as the target parking space includes: Acquiring a predicted parking route of the target vehicle according to the real-time parking status of the target vehicle; The available parking space having the highest overlap with the predicted parking route of the target vehicle is determined as the target parking space.

3. The image-based parking space recognition method according to claim 2, characterized in that: After determining that the available parking space with the highest overlap with the predicted parking route of the target vehicle is the target parking space, the method further includes: Updating the real-time parking status of the target vehicle; Return to the step of acquiring the predicted parking route of the target vehicle according to the real-time parking status of the target vehicle, until the target vehicle is parked in the target parking space.

4. The image-based parking space recognition method according to claim 1, characterized in that: After acquiring the parking area image in the environment image based on the edge detection algorithm, the method further includes: Cropping the outer edge of the parking area image to obtain a first parking area image in a rectangular shape; The step of marking available parking spaces on the parking area image according to the parking rectangular frame of the target vehicle includes: According to the parking rectangle of the target vehicle, a parking space is marked on the first parking area image.

5. The image-based parking space recognition method according to claim 1, characterized in that: The step of marking available parking spaces on the parking area image according to the parking rectangular frame of the target vehicle includes: Acquire a matching template according to the parking rectangle of the target vehicle; The matching template is used to match the parking area image according to the step distance, and the completely matched area is marked as a parking space; wherein the step distance includes a lateral step distance and a longitudinal step distance, and the lateral step distance is smaller than the longitudinal step distance.

6. The image-based parking space recognition method according to claim 1, characterized in that: Before marking the available parking spaces on the parking area image according to the parking rectangle of the target vehicle, the method further includes: Performing segmentation on the environment image based on a brightness threshold to obtain a segmented image; According to the segmented image, obtaining the center point of the wheel hub; Obtaining a longitudinal edge line according to a line connecting the image tilt direction and the center point of the wheel hub; The step of marking available parking spaces on the parking area image according to the parking rectangular frame of the target vehicle includes: According to the parking rectangle of the target vehicle, a parking space is marked on the parking area image with the longitudinal edge line as the boundary.

7. The image-based parking space recognition method according to claim 6, characterized in that: The step of obtaining the longitudinal edge line according to the line connecting the image tilt direction and the hub center point includes: According to the center point of the wheel hub, a connecting line of the center point of the wheel hub is obtained; The connecting line of the hub center points is translated onto the parking area image according to the image tilt direction to obtain the longitudinal edge line.

8. An image-based parking space recognition device, characterized in that: include: A first acquisition module, the first acquisition module is used to acquire an environment image around the target vehicle; A second acquisition module, the second acquisition module is used to acquire a parking area image in the environment image based on an edge detection algorithm; A marking module, the marking module is used to mark the available parking spaces on the parking area image according to the parking rectangle of the target vehicle; The parking space determination module is used to determine the available parking space with the highest overlap with the parking route of the target vehicle as the target parking space.

9. An electronic device, characterized in that: comprising a processor and a memory, wherein: The memory is used to store computer programs; The processor is used to load and execute the computer program so that the electronic device executes the image-based parking space recognition method as described in any one of claims 1-7.

10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is loaded and executed by the processor, the image-based parking space recognition method according to any one of claims 1 to 7 is implemented.

Citation Information

Cited By

  • Parking space recommendation method, electronic equipment and vehicle

    CN119942836A

  • Vehicle automatic parking speed processing method and device and vehicle

    CN121425196A