Parking space detection method, device, computer equipment and storage medium

By detecting vehicle parts on the parking area image, determining the position of the vehicle parts and estimating the vehicle body boundary, the problem of low parking space detection accuracy in the existing technology is solved, the accurate determination of the vehicle parking space is achieved, and the accuracy of the detection is improved. sex.

CN115359650BActive Publication Date: 2024-10-25ZHEJIANG DAHUA TECH CO LTD
View PDF 15 Cites 0 Cited by

Patent Information

Application Number
CN202210789292.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-07-06
Publication Date
2024-10-25
Estimated Expiration
2042-07-06

AI Technical Summary

Technical Problem

In the existing technology, the cameras are set up high and a few cameras detect the entire parking space, which results in vehicle position deviation, occlusion and overlap in the video image data. The landing point of the wheel cannot be accurately detected, resulting in low parking space detection accuracy.

Method used

By detecting vehicle components on the parking area image, the vehicle components associated with the target vehicle are determined. Even when the vehicle body is blocked, the boundaries of the vehicle body are determined based on the position information of the vehicle components, and combined with the location distribution of the parking spaces, the location of the vehicle is accurately determined. berth.

Benefits of technology

The accuracy of parking space detection is improved, and the vehicle body boundaries and parking spaces can be accurately estimated when the vehicle body is blocked, thereby enhancing the reliability of detection.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115359650B_ABST
    Figure CN115359650B_ABST
Patent Text Reader

Abstract

The present application relates to a parking space detection method, apparatus, computer equipment and computer-readable storage medium. By performing vehicle component detection on a parking area image, vehicle components associated with a target vehicle are determined. When the body of the target vehicle is obscured, the body boundary of the target vehicle is accurately estimated based on the position information of the determined vehicle components associated with the target vehicle. Based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image, the parking space where the target vehicle is parked can be accurately determined, thereby effectively improving the accuracy of parking space detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of video image processing, and in particular to a parking space detection method, device, computer equipment and storage medium. Background Art

[0002] With the rapid growth of motor vehicle demand, the number of supporting parking lots has grown slowly, resulting in problems such as parking disorder. In order to scientifically and rationally regulate parking order, it is necessary to fully grasp the information of parked vehicles, among which the parking spaces of vehicles are particularly important.

[0003] In the prior art, the relationship between the wheel landing point and the parking area is detected by detecting the video image data captured by the camera, thereby identifying the parking space of the vehicle. However, the existing cameras are generally mounted at high places, and the entire parking space is detected by a small number of cameras, which often causes the vehicle position to be offset, blocked and overlapped in the acquired video image data, resulting in the inability to accurately detect the wheel landing point, resulting in the problem of low parking space detection accuracy in the prior art. Summary of the invention

[0004] Based on this, it is necessary to provide a parking space detection method, device, computer equipment and computer-readable storage medium to address the above technical problems, so as to solve the problem of low parking space detection accuracy in related technologies.

[0005] In a first aspect, the present application embodies a parking space detection method for detecting a parking space of a vehicle in a parking area, the method comprising the following steps:

[0006] Acquire a parking area image collected for parking spaces in the parking area;

[0007] Performing vehicle component detection on the parking area image; and determining vehicle components associated with a target vehicle from the detected vehicle components; the target vehicle is a vehicle in the parking area image, and the vehicle components include at least a vehicle body and other vehicle components except the vehicle body;

[0008] In response to the determined vehicle components associated with the target vehicle not including the body of the target vehicle, determining a body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle;

[0009] The parking space where the target vehicle is parked is determined based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0010] In some embodiments, determining the vehicle components associated with the target vehicle from the detected vehicle components comprises the following steps:

[0011] According to the position distribution between the detected vehicle components, the vehicle components associated with the target vehicle are determined from the detected vehicle components.

[0012] In some embodiments, determining the vehicle component associated with the target vehicle from the detected vehicle components according to the position distribution between the detected vehicle components includes:

[0013] Associating vehicle components belonging to the same vehicle according to the position distribution between the detected vehicle components;

[0014] According to the association result, the vehicle parts associated with the target vehicle are determined.

[0015] In some embodiments, in response to the determined vehicle components associated with the target vehicle including windows and a roof, determining the body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle comprises the following steps:

[0016] Determine the size information of the body of the target vehicle according to the size information of the window and the size information of the roof of the target vehicle; the size information of the window of the target vehicle is determined based on the position information of the window of the target vehicle, and the size information of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle;

[0017] The body boundary of the target vehicle is determined according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

[0018] In some embodiments, the parking area image is acquired by an image acquisition device, and after determining the size information of the body of the target vehicle according to the size information of the window and the size information of the roof of the target vehicle, and before determining the body boundary of the target vehicle according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle, the method further includes:

[0019] Determining a distance influence factor according to the distance between the target vehicle and the image acquisition device;

[0020] Based on the distance influencing factor, the size information of the body of the target vehicle is adjusted.

[0021] In some of the embodiments, the size information includes height, and the vehicle body boundary includes at least one boundary point on a side boundary of the target vehicle's vehicle body close to the ground.

[0022] In some embodiments, in response to the determined vehicle components associated with the target vehicle including a roof and a rearview mirror, determining the body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle comprises the following steps:

[0023] Determine the height of the window of the target vehicle according to the position information of the rearview mirror and the position information of the roof of the target vehicle;

[0024] Determine the height of the body of the target vehicle according to the height of the window and the height of the roof of the target vehicle; the height of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle;

[0025] The body boundary of the target vehicle is determined according to the height of the body of the target vehicle and the position information of the roof of the target vehicle.

[0026] In some embodiments, the parking area image is acquired by an image acquisition device, and determining the height of the window of the target vehicle according to the position information of the rearview mirror and the position information of the roof of the target vehicle comprises the following steps:

[0027] Determining whether the face of the target vehicle is facing the image acquisition device;

[0028] In response to the face of the target vehicle facing the image acquisition device, determining the height of the window of the target vehicle according to a first conversion relationship between position information of a rearview mirror and a roof of the target vehicle and the height of the window of the target vehicle;

[0029] In response to the face of the target vehicle facing away from the image acquisition device, the height of the window of the target vehicle is determined based on a second conversion relationship between position information of the rearview mirror and the roof of the target vehicle and the height of the window of the target vehicle.

[0030] In a second aspect, the present application implements a parking space detection device, the device comprising: an acquisition module, a detection module, an estimation module and a determination module:

[0031] The acquisition module is used to acquire a parking area image collected from parking spaces in the parking area;

[0032] The detection module is used to detect vehicle parts on the parking area image; and determine the vehicle parts associated with the target vehicle from the detected vehicle parts; the target vehicle is the vehicle in the parking area image, and the vehicle parts include at least the vehicle body and other vehicle parts except the vehicle body;

[0033] The estimation module is configured to determine a body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle in response to the body of the target vehicle not existing in the determined vehicle components associated with the target vehicle;

[0034] The determination module is used to determine the parking space where the target vehicle is parked based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0035] In a third aspect, a computer device is provided in this embodiment, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method described in the first aspect when executing the computer program.

[0036] In a fourth aspect, in this embodiment, a computer-readable storage medium is provided, on which a computer program is stored. When the computer program is executed by a processor, the steps of the method described in the first aspect are implemented.

[0037] The above-mentioned parking space detection method, device, computer equipment and computer-readable storage medium perform vehicle component detection on the parking area image to determine the vehicle components associated with the target vehicle. When the body of the target vehicle is blocked, the body boundary of the target vehicle is accurately estimated based on the position information of the determined vehicle components associated with the target vehicle; and based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image, the parking space where the target vehicle is parked can be accurately determined, thereby effectively improving the accuracy of parking space detection. BRIEF DESCRIPTION OF THE DRAWINGS

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

[0039] Figure 1 is an application scenario diagram of the parking space detection method provided in an embodiment of the present application;

[0040] Figure 2 The process of the parking space detection method provided in the embodiment of the present application is as follows Figure 1 ;

[0041] Figure 3 is an image schematic diagram of a parking area provided according to an embodiment of the present application;

[0042] Figure 4 The process of the parking space detection method provided in the embodiment of the present application is as follows Figure 2 ;

[0043] Figure 5 A schematic diagram of the structure of a parking space detection device provided according to an embodiment of the present application;

[0044] Figure 6 A schematic diagram of the structure of a computer device provided according to an embodiment of the present application. DETAILED DESCRIPTION

[0045] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application is described and illustrated below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not intended to limit the present application. Based on the embodiments provided in the present application, all other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of the present application.

[0046] Obviously, the drawings described below are only some examples or embodiments of the present application. For ordinary technicians in this field, the present application can also be applied to other similar scenarios based on these drawings without creative work. In addition, it can also be understood that although the efforts made in this development process may be complicated and lengthy, for ordinary technicians in this field related to the content disclosed in this application, some changes in design, manufacturing or production based on the technical content disclosed in this application are just conventional technical means, and should not be understood as insufficient content disclosed in this application.

[0047] Reference to "embodiments" in this application means that a particular feature, structure, or characteristic described in conjunction with the embodiments may be included in at least one embodiment of the present application. The appearance of the phrase in various locations in the specification does not necessarily refer to the same embodiment, nor is it an independent or alternative embodiment that is mutually exclusive with other embodiments. It is explicitly and implicitly understood by those of ordinary skill in the art that the embodiments described in this application may be combined with other embodiments without conflict.

[0048] Unless otherwise defined, the technical terms or scientific terms involved in this application should be understood by people with ordinary skills in the technical field to which this application belongs. The words "one", "a", "a", "the" and the like involved in this application do not indicate a quantitative limitation, and may represent the singular or plural. The terms "include", "comprise", "have" and any of their variations involved in this application are intended to cover non-exclusive inclusions; for example, a process, method, system, product or device that includes a series of steps or modules (units) is not limited to the listed steps or units, but may also include steps or units that are not listed, or may also include other steps or units inherent to these processes, methods, products or devices. The words "connect", "connected", "coupled" and the like involved in this application are not limited to physical or mechanical connections, but may include electrical connections, whether direct or indirect. The "multiple" involved in this application refers to two or more. "And / or" describes the association relationship of associated objects, indicating that there may be three relationships, for example, "A and / or B" can represent: A exists alone, A and B exist at the same time, and B exists alone. The character " / " generally indicates that the objects before and after are in an "or" relationship. The terms "first", "second", "third", etc. involved in this application are only used to distinguish similar objects and do not represent a specific ordering of the objects.

[0049] Figure 1 This is an application scenario diagram of a parking space detection method provided by an embodiment of the present application. Figure 1 As shown, the server 101 and the monitoring terminal 102 can transmit data through the network. The field of view of the monitoring terminal 102 covers the parking area. The monitoring terminal 102 is used to collect images of parking spaces in the parking area and transmit the collected parking area images to the server 101. The server 101 detects vehicle parts of the parking area image based on the parking area image; and determines the vehicle parts associated with the target vehicle from the detected vehicle parts; the target vehicle is the vehicle in the parking area image, and the vehicle parts at least include the vehicle body and other vehicle parts other than the vehicle body; in response to the vehicle body of the target vehicle not existing in the vehicle parts associated with the determined target vehicle, the vehicle body boundary of the target vehicle is determined based on the position information of the vehicle parts associated with the determined target vehicle; based on the position distribution between the vehicle body boundary of the target vehicle and each parking space in the parking area image, the parking space where the target vehicle is parked is determined. The server 101 can be implemented by an independent server or a server cluster composed of multiple servers, and the monitoring terminal 102 can be implemented by any image acquisition device.

[0050] This embodiment provides a parking space detection method, such as Figure 2 As shown, the method comprises the following steps:

[0051] Step S210: acquiring a parking area image collected for parking spaces in the parking area.

[0052] Specifically, the parking area generally includes roadside parking lots and various indoor and outdoor parking lots. The present application can monitor the dynamics in the parking area by acquiring parking area images collected for parking spaces in the parking area. Usually, the parking area images are collected by using image acquisition equipment, and the installation angles of the image acquisition equipment in each parking area are generally different. At some installation angles, taking the parking lots of some buildings as an example, the image acquisition equipment is vertically installed above the parking area, and the body of the vehicle in the parking area and the parking space in the parking area can be completely detected. In this case, it is easy to identify the parking space where the vehicle is located. However, at some installation angles, taking the side parking space on the roadside as an example, the image acquisition equipment is mounted at the front and back of the parking area. At this time, it is easy to cause the vehicle to be blocked and the vehicle position to be offset or overlapped in the monitoring screen of the image acquisition equipment. In addition, the parking space line is blocked by the vehicle, resulting in that only a part of the parking space line can be displayed. In this case, since the vehicle body cannot be identified, the parking space where the vehicle is located cannot be effectively determined. The parking space detection method of the present application is mainly used in scenes where the vehicle body cannot be detected.

[0053] Step S220, performing vehicle component detection on the parking area image; and determining vehicle components associated with the target vehicle from the detected vehicle components; the target vehicle is the vehicle in the parking area image, and the vehicle components include at least the vehicle body and other vehicle components except the vehicle body.

[0054] After acquiring the parking area image, vehicle parts detection can be performed on the parking area image based on existing target detection algorithms, such as Faster-RCNN, YoloV3\V4\V5, SSD, etc., and the vehicle parts associated with the target vehicle can be determined from the detected vehicle parts. There can be one target vehicle or multiple target vehicles at the same time in the parking area, and determining the vehicle parts associated with the target vehicle means determining which vehicle parts belong to which target vehicle.

[0055] As one implementation method, the vehicle parts associated with the target vehicle can be determined from the detected vehicle parts according to the position distribution between the detected vehicle parts. For each detected vehicle part, its position information in the parking area image can be obtained. Taking the front of the vehicle as an example, the position information of the front of the vehicle can be expressed as (x 1 head ,y 1 head ,x 2 head ,y 2head ,w head ,h head ), where (x 1 head ,y 1 head ) represents the coordinates of the upper left corner of the vehicle head, (x 2 head ,y 2 head ) represents the coordinates of the lower right corner of the vehicle head, w head Represents the width of the front of the vehicle, w head =x 2 head -x 1 head ,h head Represents the height of the front of the vehicle, h head =y 2 head -y 1 head However, there may be more than one vehicle in the parking area, so vehicle parts of multiple vehicles may be detected at the same time. Since the vehicle parts of the same vehicle must meet a certain positional relationship, the vehicle parts associated with the target vehicle can be determined from the detected vehicle parts according to the position distribution between the detected vehicle parts.

[0056] Specifically, the vehicle components belonging to the same vehicle can be associated according to the position distribution between the detected vehicle components, and the vehicle components associated with the target vehicle can be determined according to the association results. For example, according to the position distribution between the vehicle components, the vehicle components belonging to the same vehicle can be associated using the IoU (Intersection over Union) of the vehicle components, so as to determine the vehicle components associated with the target vehicle.

[0057] Step S230 , in response to the fact that the body of the target vehicle does not exist in the determined vehicle components associated with the target vehicle, a body boundary of the target vehicle is determined based on position information of the determined vehicle components associated with the target vehicle.

[0058] Due to the occlusion between vehicles, it is easy to have a situation where the body of the target vehicle does not exist in the determined vehicle parts associated with the target vehicle. However, since the vehicle parts associated with the target vehicle meet certain manufacturing requirements, in response to the fact that the body of the target vehicle does not exist in the determined vehicle parts associated with the target vehicle, the body boundary of the target vehicle can be determined based on the position information of the determined vehicle parts associated with the target vehicle, which can be one or more of the upper boundary, lower boundary, left boundary or right boundary of the body.

[0059] Step S240 , determining the parking space where the target vehicle is parked based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0060] Due to the occlusion of vehicles, only part of the parking space line of each parking space can be displayed in the parking area image. However, since each parking space line is a regular rectangular frame, the position of the parking space line in the parking area image can be filled according to the displayed part of each parking space line, so as to obtain the position information of each parking space in the parking area image. Specifically, the position information of the nth parking space can be expressed as (xn 1 park ,yn 1 park ,xn 2 park ,yn 2 park ,wn park ,hn park ). In addition, since the image acquisition devices for acquiring parking area images are fixedly installed and the parking area generally does not change easily, after obtaining the position information of each parking space in the parking area image, the position information of each parking space can be saved. If the angle of the image acquisition device and the parking area do not change, there is no need to obtain the position information of each parking space again. Finally, the parking space where the target vehicle is parked can be determined based on the position distribution between the body boundary of the target vehicle and the parking spaces in the parking area image.

[0061] In the prior art, the relationship between the wheel landing point and the parking area is detected by detecting the video image data captured by the camera, thereby identifying the parking space of the vehicle. However, the existing cameras are generally mounted at high places, and the entire parking space is detected by a small number of cameras, which often causes the vehicle position to be offset, blocked and overlapped in the acquired video image data, resulting in the inability to accurately detect the wheel landing point, resulting in the problem of low parking space detection accuracy in the prior art.

[0062] In order to solve the above problems, the present application proposes a parking space detection method, which performs vehicle component detection on the parking area image to determine the vehicle components associated with the target vehicle. When the body of the target vehicle is blocked, the body boundary of the target vehicle is accurately estimated based on the position information of the determined vehicle components associated with the target vehicle; and based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image, the parking space where the target vehicle is parked can be accurately determined, thereby effectively improving the accuracy of parking space detection.

[0063] As one implementation, after acquiring the parking area image collected for the parking spaces in the parking area, the parking area image can be grayed and filtered to compress the parking area image, thereby effectively reducing the amount of data for subsequent detection. In addition, by filtering the parking area image, such as Gaussian filtering, the noise of the parking area image can be suppressed and the background information of the parking area image can be weakened, thereby effectively enhancing the outline of the vehicle.

[0064] In one embodiment, in response to the determined vehicle components associated with the target vehicle not including the body of the target vehicle, the step S230 determines the body boundary of the target vehicle based on the position information of the determined vehicle components associated with the target vehicle, including the following steps:

[0065] Step S231, determining the size information of the target vehicle's body based on the size information of the target vehicle's windows and the size information of the target vehicle's roof; the size information of the target vehicle's windows is determined based on the position information of the target vehicle's windows, and the size information of the target vehicle's roof is determined based on the position information of the target vehicle's roof.

[0066] Specifically, the size information is height and width information. Figure 3 For example, Figure 3 It is a parking area image under a high-position perspective. By observing the vehicle structural features in the parking area image under a high-position perspective, it can be seen that there is a certain relationship between the size of the body, the size of the window and the size of the roof. Therefore, according to the size information of the window and the size information of the roof, the size information of the body of the target vehicle can be effectively determined, wherein the size information of the window of the target vehicle is determined based on the position information of the window of the target vehicle, and the size information of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle.

[0067] Step S232, determining the body boundary of the target vehicle according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

[0068] Since there is a relative position relationship between the body boundary of the target vehicle and the roof of the target vehicle, after obtaining the size information of the body of the target vehicle, the body boundary of the target vehicle can be effectively determined based on the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

[0069] Furthermore, in one embodiment, the parking area image is acquired by an image acquisition device, and after determining the size information of the body of the target vehicle according to the size information of the window and the size information of the roof of the target vehicle in the above step S231, and before determining the body boundary of the target vehicle according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle in step S232, the parking space detection method further includes the following steps:

[0070] Determine the distance influencing factor according to the distance between the target vehicle and the image acquisition device;

[0071] Based on the distance influencing factor, the size information of the body of the target vehicle is adjusted.

[0072] Specifically, since there are usually multiple parking spaces in a parking area, the target vehicle may be parked in any parking space, and each parking space is at a different distance from the image acquisition device, resulting in a different distance between the target vehicle and the image acquisition device. The farther the target vehicle is from the image acquisition device, the more serious the image deformation is, and the relationship between the size information of the vehicle body and the size information of the window and the size information of the roof will also change accordingly. Therefore, it is necessary to determine the distance influence factor according to the distance between the target vehicle and the image acquisition device, and adjust the size information of the target vehicle body based on the distance influence factor, so as to further ensure the accuracy of the estimated size information of the vehicle body.

[0073] In one embodiment, the size information includes height, and the body boundary includes at least one boundary point on the side boundary of the body of the target vehicle close to the ground. Specifically, the height of the body of the target vehicle can be determined based on the height of the window and the height of the roof of the target vehicle, that is, h is determined. body Then, according to the height h of the target vehicle body and the position information of the roof of the target vehicle, determine at least one boundary point on the boundary of the side of the body of the target vehicle close to the ground. Specifically, if the coordinates of the upper left corner vertex of the roof of the target vehicle are (x 1 roof ,y 1 roof ), then the coordinates of at least one boundary point on the boundary of the target vehicle's body close to the ground can be the lower left corner vertex of the body, with coordinates (x body =x 1 roof ,y body =y 1 roof +h body), and finally, the parking space where the target vehicle is parked can be effectively determined immediately according to which parking space in the parking area image any boundary point on the boundary of the side of the target vehicle body close to the ground is located.

[0074] In addition, the relationship between the height of the vehicle body, the height of the window and the height of the roof can be preset as follows: h body =a(h roof +h window ), where a is the distance influencing factor, and a is related to the distance between the target vehicle and the image acquisition device. In this embodiment, it is assumed that the image width of the parking area is image_width and the height is image_height, and the ordinate of the lower edge of the rearview mirror is y 2 mirror , then we can take a=2+0.5((image_height-y 2 mirror ) / (image_height)). Specifically, a can be adjusted according to actual application scenarios.

[0075] In one embodiment, in response to the determined vehicle components associated with the target vehicle including a roof and a rearview mirror, the step S230 determines the body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle, including the following steps:

[0076] Step S233, determining the height of the window of the target vehicle according to the position information of the rearview mirror and the position information of the roof of the target vehicle.

[0077] Step S234, determining the height of the body of the target vehicle according to the height of the window and the height of the roof of the target vehicle; the height of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle.

[0078] Step S235, determining the body boundary of the target vehicle according to the height of the body of the target vehicle and the position information of the roof of the target vehicle.

[0079] Specifically, in the parking area image, the rearview mirror and the roof of the target vehicle are generally detectable. Since there is a certain positional relationship between the window, the rearview mirror and the roof, the height of the window of the target vehicle can be effectively determined according to the positional information of the rearview mirror of the target vehicle and the positional information of the roof. Since the height of the vehicle body meets a certain relationship with the height of the window and the height of the roof, the height of the vehicle body of the target vehicle can be effectively determined according to the height of the window and the height of the roof, wherein the height of the roof of the target vehicle is determined based on the positional information of the roof of the target vehicle. Further, since there is a relative positional relationship between the vehicle body boundary of the target vehicle and the roof of the target vehicle, after obtaining the height of the vehicle body of the target vehicle, the vehicle body boundary of the target vehicle can be effectively determined according to the height of the vehicle body of the target vehicle and the positional information of the roof of the target vehicle.

[0080] Furthermore, in one embodiment, the parking area image is acquired by an image acquisition device, and the above step S233 determines the height of the window of the target vehicle according to the position information of the rearview mirror and the position information of the roof of the target vehicle, including the following steps:

[0081] Step S2331, determine whether the face of the target vehicle is facing the image acquisition device.

[0082] Specifically, when the face of the target vehicle faces the image acquisition device, in the parking area image, the lower edge of the rearview mirror of the target vehicle is substantially flush with the lower edge of the window. When the face of the target vehicle faces away from the image acquisition device, in the parking area image, the lower edge of the rearview mirror of the target vehicle is higher than the lower edge of the window. When the face of the target vehicle faces the image acquisition device and when the face of the target vehicle faces away from the image acquisition device, there is a different relationship between the height of the window and the position information of the rearview mirror and the position information of the roof, so it is necessary to first determine whether the face of the target vehicle faces the image acquisition device. Specifically, the direction of the face of the target vehicle relative to the image acquisition device can be determined based on whether there is a front or a rear in the vehicle components associated with the target vehicle, or the direction of the face of the target vehicle relative to the image acquisition device can be determined based on the positional relationship between the vehicle components associated with the target vehicle, such as the positional relationship between the lower edge of the rearview mirror and the lower edge of the window.

[0083] Step S2332, in response to the face of the target vehicle facing the image acquisition device, the height of the window of the target vehicle is determined according to the first conversion relationship between the position information of the rearview mirror and the roof of the target vehicle and the height of the window of the target vehicle.

[0084] Step S2333, in response to the target vehicle's face facing away from the image acquisition device, the height of the target vehicle's window is determined based on the second conversion relationship between the position information of the target vehicle's rearview mirror and the position information of the roof and the height of the target vehicle's window.

[0085] Specifically, after determining the orientation of the target vehicle's face relative to the image acquisition device, the height of the target vehicle's window can be effectively determined based on different conversion relationships between the position information of the target vehicle's rearview mirror and the position information of the roof and the height of the target vehicle's window. As one implementation, the first conversion relationship between the position information of the target vehicle's rearview mirror and the position information of the roof and the height of the target vehicle's window is as follows: h window =y 2 mirror -y 2 roof The second conversion relationship between the position information of the rearview mirror and the position information of the roof of the target vehicle and the height of the window of the target vehicle is as follows: h window =y 2 mirror -y 2 roof +h mirror .

[0086] like Figure 4 As shown, this embodiment also provides a parking space detection method, which includes the following steps:

[0087] Step S301 : acquiring a parking area image collected for parking spaces in the parking area, and performing grayscale processing and filtering processing on the parking area image.

[0088] Step S302: Based on the pre-processed parking area image, vehicle parts detection is performed on the parking area image; the vehicle parts at least include the vehicle body and other vehicle parts except the vehicle body.

[0089] Step S303 , according to the detected position distribution of each vehicle component, the vehicle components belonging to the same vehicle are associated, and according to the association result, the vehicle components associated with the target vehicle are determined.

[0090] Step S304, determining whether the vehicle body of the target vehicle exists among the determined vehicle components associated with the target vehicle; if so, executing step S310, if not, executing step S305.

[0091] Step S305, determine whether the face of the target vehicle is facing the image acquisition device; if so, execute step S306, if not, execute step S307.

[0092] Step S306, in response to the determination that the vehicle components associated with the target vehicle include a roof and a rearview mirror, the height of the window of the target vehicle is determined based on a first conversion relationship between position information of the rearview mirror and the roof of the target vehicle and the height of the window of the target vehicle.

[0093] Step S307, in response to the determination that the vehicle components associated with the target vehicle include a roof and a rearview mirror, the height of the window of the target vehicle is determined according to a second conversion relationship between the position information of the rearview mirror and the position information of the roof of the target vehicle and the height of the window of the target vehicle.

[0094] Step S308, determining the height of the body of the target vehicle according to the height of the window and the height of the roof of the target vehicle; the height of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle;

[0095] Step S309: determining the body boundary of the target vehicle according to the height of the body of the target vehicle and the position information of the roof of the target vehicle.

[0096] Step S310 : determining a parking space where the target vehicle is parked based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0097] Figure 5 is a schematic diagram of a parking space detection device according to an embodiment of the present invention. Figure 5 In the embodiment, a parking space detection device 40 is provided, and the parking space detection device 40 includes: an acquisition module 41, a detection module 42, an estimation module 43 and a determination module 44:

[0098] An acquisition module 41 is used to acquire a parking area image collected from parking spaces in the parking area;

[0099] The detection module 42 is used to detect vehicle parts in the parking area image; and determine the vehicle parts associated with the target vehicle from the detected vehicle parts; the target vehicle is the vehicle in the parking area image, and the vehicle parts include at least the vehicle body and other vehicle parts except the vehicle body;

[0100] an estimation module 43, configured to determine a body boundary of the target vehicle based on position information of the determined vehicle components associated with the target vehicle in response to the absence of the body of the target vehicle in the determined vehicle components associated with the target vehicle;

[0101] The determination module 44 is used to determine the parking space where the target vehicle is parked based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0102] The parking space detection device 40 detects vehicle parts on the parking area image, thereby determining the vehicle parts associated with the target vehicle. When the body of the target vehicle is blocked, the body boundary of the target vehicle is accurately estimated based on the position information of the determined vehicle parts associated with the target vehicle. The parking space where the target vehicle is parked can be accurately determined based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image, thereby effectively improving the accuracy of parking space detection.

[0103] In one embodiment, the detection module 42 is further configured to determine the vehicle components associated with the target vehicle from among the detected vehicle components according to the position distribution between the detected vehicle components.

[0104] In one embodiment, the detection module 42 is further used to associate vehicle components belonging to the same vehicle according to the position distribution between the detected vehicle components; and determine the vehicle components associated with the target vehicle according to the association result.

[0105] In one embodiment, the estimation module 43 is further used to determine the size information of the target vehicle's body in response to the determination that the vehicle parts associated with the target vehicle include windows and a roof, according to the size information of the windows and the size information of the roof of the target vehicle; the size information of the windows of the target vehicle is determined based on the position information of the windows of the target vehicle, and the size information of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle; and the body boundary of the target vehicle is determined according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

[0106] In one embodiment, the estimation module 43 is further used to determine a distance influence factor according to the distance between the target vehicle and the image acquisition device; and adjust the size information of the body of the target vehicle based on the distance influence factor.

[0107] In one of the embodiments, the size information includes height, and the vehicle body boundary includes at least one boundary point on a side of the target vehicle's vehicle body close to the ground.

[0108] In one embodiment, the estimation module 43 is also used to determine the height of the target vehicle's windows according to the position information of the target vehicle's rearview mirrors and the position information of the roof in response to the vehicle components associated with the target vehicle being determined to include a roof and a rearview mirror; determine the height of the target vehicle's body according to the height of the target vehicle's windows and the height of the roof; determine the height of the target vehicle's roof based on the position information of the target vehicle's roof; and determine the target vehicle's body boundary according to the height of the target vehicle's body and the position information of the target vehicle's roof.

[0109] In one embodiment, the estimation module 43 is also used to determine whether the face of the target vehicle is facing the image acquisition device; in response to the face of the target vehicle being facing the image acquisition device, the height of the window of the target vehicle is determined based on a first conversion relationship between the position information of the rearview mirror and the position information of the roof of the target vehicle and the height of the window of the target vehicle; in response to the face of the target vehicle facing away from the image acquisition device, the height of the window of the target vehicle is determined based on a second conversion relationship between the position information of the rearview mirror and the position information of the roof of the target vehicle and the height of the window of the target vehicle.

[0110] It should be noted that the above modules can be functional modules or program modules, and can be implemented by software or hardware. The above modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory in the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules.

[0111] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 6 The computer device includes a processor, a memory, a network interface and a database connected through a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store a set of preset configuration information. The network interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a parking space detection method is implemented.

[0112] In one embodiment, a computer device is provided, which may be a terminal. The computer device includes a processor, a memory, a network interface, a display screen, and an input device connected via a system bus. The processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The network interface of the computer device is used to communicate with an external terminal via a network connection. When the computer program is executed by the processor, a parking space detection method is implemented. The display screen of the computer device may be a liquid crystal display screen or an electronic ink display screen, and the input device of the computer device may be a touch layer covering the display screen, or a key, trackball, or touchpad provided on the housing of the computer device, or an external keyboard, touchpad, or mouse, etc.

[0113] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0114] In one embodiment, a computer readable storage medium is provided, on which a computer program is stored, and when the computer program is executed by a processor, the following steps are implemented:

[0115] Acquire a parking area image collected for parking spaces in the parking area;

[0116] Detect vehicle parts on the parking area image; and determine vehicle parts associated with the target vehicle from the detected vehicle parts; the target vehicle is the vehicle in the parking area image, and the vehicle parts include at least the vehicle body and other vehicle parts except the vehicle body;

[0117] In response to the body of the target vehicle not existing in the determined vehicle components associated with the target vehicle, determining a body boundary of the target vehicle based on position information of the determined vehicle components associated with the target vehicle;

[0118] The parking space where the target vehicle is parked is determined based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

[0119] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0120] According to the position distribution between the detected vehicle components, the vehicle components associated with the target vehicle are determined from the detected vehicle components.

[0121] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0122] According to the position distribution between the detected vehicle parts, the vehicle parts belonging to the same vehicle are associated;

[0123] According to the association result, the vehicle parts associated with the target vehicle are determined.

[0124] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0125] In response to determining that the vehicle components associated with the target vehicle include windows and a roof, determining the size information of the body of the target vehicle according to the size information of the windows and the size information of the roof of the target vehicle; the size information of the windows of the target vehicle is determined based on the position information of the windows of the target vehicle, and the size information of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle;

[0126] The body boundary of the target vehicle is determined according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

[0127] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0128] According to the distance between the target vehicle and the image acquisition device, the distance influencing factor is determined; the parking area image is acquired by the image acquisition device;

[0129] Based on the distance influencing factor, the size information of the body of the target vehicle is adjusted.

[0130] In one embodiment, the size information includes height, and the vehicle body boundary includes at least one boundary point on a side of the vehicle body of the target vehicle close to the ground.

[0131] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0132] In response to determining that the vehicle components associated with the target vehicle include a roof and a rearview mirror, determining a height of a window of the target vehicle based on position information of the rearview mirror and position information of the roof of the target vehicle;

[0133] Determine the height of the body of the target vehicle according to the height of the window and the height of the roof of the target vehicle; the height of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle;

[0134] The body boundary of the target vehicle is determined according to the height of the body of the target vehicle and the position information of the roof of the target vehicle.

[0135] In one embodiment, when the processor executes the computer program, the processor further implements the following steps:

[0136] Determine whether the face of the target vehicle is facing the image acquisition device; the parking area image is acquired by the image acquisition device;

[0137] In response to the face of the target vehicle being directed toward the image acquisition device, the height of the window of the target vehicle is determined according to a first conversion relationship between position information of the rearview mirror and the roof of the target vehicle and the height of the window of the target vehicle;

[0138] In response to the target vehicle's face facing away from the image acquisition device, the height of the target vehicle's window is determined based on a second conversion relationship between position information of the target vehicle's rearview mirror and the roof and the height of the target vehicle's window.

[0139] The above-mentioned storage medium detects vehicle parts on the parking area image, thereby determining the vehicle parts associated with the target vehicle. When the body of the target vehicle is blocked, the body boundary of the target vehicle is accurately estimated based on the position information of the determined vehicle parts associated with the target vehicle; and based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image, the parking space where the target vehicle is parked can be accurately determined, thereby effectively improving the accuracy of parking space detection.

[0140] It should be understood that the specific embodiments described herein are only used to explain the application, rather than to limit it. Based on the embodiments provided in this application, all other embodiments obtained by ordinary technicians in this field without creative work are within the protection scope of this application.

[0141] Obviously, the drawings are only some examples or embodiments of the present application. For ordinary technicians in the field, the present application can also be applied to other similar situations based on these drawings without creative work. In addition, it is understandable that although the work done in this development process may be complicated and lengthy, for ordinary technicians in the field, certain changes in design, manufacturing or production based on the technical content disclosed in this application are only conventional technical means and should not be regarded as insufficient content disclosed in this application.

[0142] The term "embodiment" in this application refers to a specific feature, structure or characteristic described in conjunction with the embodiment that can be included in at least one embodiment of the present application. The appearance of this phrase in various locations in the specification does not necessarily mean the same embodiment, nor does it mean that it is mutually exclusive with other embodiments and is independent or optional. It is clearly or implicitly understood by those of ordinary skill in the art that the embodiments described in this application can be combined with other embodiments without conflict.

[0143] The above embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of patent protection. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the scope of protection of the present application. Therefore, the scope of protection of the present application shall be subject to the attached claims.

Claims

1. A parking space detection method, characterized in that: The method comprises the following steps: Acquire a parking area image collected for parking spaces in the parking area; Performing vehicle component detection on the parking area image; determining vehicle components associated with a target vehicle from the detected vehicle components according to the position distribution between the detected vehicle components; the determining vehicle components associated with the target vehicle from the detected vehicle components according to the position distribution between the detected vehicle components comprises: associating vehicle components belonging to the same vehicle according to the position distribution between the detected vehicle components; determining vehicle components associated with the target vehicle according to the association result; the target vehicle is a vehicle in the parking area image, and the vehicle components at least include a vehicle body and other vehicle components except the vehicle body; In response to the determined vehicle components associated with the target vehicle not including the body of the target vehicle, determining a body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle; The parking space where the target vehicle is parked is determined based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

2. The parking space detection method according to claim 1, characterized in that: In response to the determined vehicle components associated with the target vehicle including windows and a roof, determining the body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle comprises the following steps: Determine the size information of the body of the target vehicle according to the size information of the window and the size information of the roof of the target vehicle; the size information of the window of the target vehicle is determined based on the position information of the window of the target vehicle, and the size information of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle; The body boundary of the target vehicle is determined according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle.

3. The parking space detection method according to claim 2, characterized in that: The parking area image is acquired by an image acquisition device. After determining the size information of the body of the target vehicle according to the size information of the window and the size information of the roof of the target vehicle, and before determining the body boundary of the target vehicle according to the size information of the body of the target vehicle and the position information of the roof of the target vehicle, the method further includes: Determining a distance influence factor according to the distance between the target vehicle and the image acquisition device; Based on the distance influencing factor, the size information of the body of the target vehicle is adjusted.

4. The parking space detection method according to claim 2 or 3, characterized in that: The size information includes height, and the vehicle body boundary includes at least one boundary point on a side boundary of the vehicle body of the target vehicle close to the ground.

5. The parking space detection method according to claim 1, characterized in that: In response to the determined vehicle components associated with the target vehicle including a roof and a rearview mirror, determining the body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle comprises the following steps: Determine the height of the window of the target vehicle according to the position information of the rearview mirror and the position information of the roof of the target vehicle; Determine the height of the body of the target vehicle according to the height of the window and the height of the roof of the target vehicle; the height of the roof of the target vehicle is determined based on the position information of the roof of the target vehicle; The body boundary of the target vehicle is determined according to the height of the body of the target vehicle and the position information of the roof of the target vehicle.

6. The parking space detection method according to claim 5, characterized in that: The parking area image is collected by an image acquisition device, and the height of the window of the target vehicle is determined according to the position information of the rearview mirror and the position information of the roof of the target vehicle, including the following steps: Determining whether the face of the target vehicle is facing the image acquisition device; In response to the face of the target vehicle facing the image acquisition device, determining the height of the window of the target vehicle according to a first conversion relationship between position information of a rearview mirror and a roof of the target vehicle and the height of the window of the target vehicle; In response to the face of the target vehicle facing away from the image acquisition device, the height of the window of the target vehicle is determined based on a second conversion relationship between position information of the rearview mirror and the roof of the target vehicle and the height of the window of the target vehicle.

7. A parking space detection device, characterized in that: The device comprises: an acquisition module, a detection module, an estimation module and a determination module: The acquisition module is used to acquire a parking area image collected from parking spaces in the parking area; The detection module is used to detect vehicle parts on the parking area image; determine the vehicle parts associated with the target vehicle from the detected vehicle parts according to the position distribution between the detected vehicle parts; the determination of the vehicle parts associated with the target vehicle from the detected vehicle parts according to the position distribution between the detected vehicle parts includes: associating vehicle parts belonging to the same vehicle according to the position distribution between the detected vehicle parts; determining the vehicle parts associated with the target vehicle according to the association result; the target vehicle is a vehicle in the parking area image, and the vehicle parts include at least a vehicle body and other vehicle parts except the vehicle body; The estimation module is configured to determine a body boundary of the target vehicle based on the determined position information of the vehicle components associated with the target vehicle in response to the body of the target vehicle not existing in the determined vehicle components associated with the target vehicle; The determination module is used to determine the parking space where the target vehicle is parked based on the position distribution between the body boundary of the target vehicle and each parking space in the parking area image.

8. A computer device comprising a memory, a processor and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

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

Citation Information

Patent Citations

  • Vehicle window positioning method and vehicle window positioning system

    CN106250824A

  • Vehicle type identification method and device

    CN108241822A

  • Vehicle feature extraction method and device

    CN108319952A

  • A parking space detection method and device based on vision

    CN109685000A

  • Traffic target-oriented vehicle re-identification method and device

    CN111435421A