Method for processing parking space range and computing device

By setting up an image acquisition device near the parking space automatically identifying the parking space range, the problem of high manual scribing costs is solved, and efficient parking space management and automatic billing are realized.

CN115116033BActive Publication Date: 2025-07-25ALIBABA CLOUD COMPUTING CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202210686320.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-16
Publication Date
2025-07-25
Estimated Expiration
2042-06-16

AI Technical Summary

Technical Problem

In the prior art, the marking of parking spaces mainly relies on manual methods, resulting in high labor and time costs, making it difficult to efficiently manage a large number of widely distributed parking spaces.

Method used

By setting up an image acquisition device near the parking space, the parking space image is acquired and the parking space is recognized parallel to the first parking space line and the second parking space line between the two parking spaces, the parking space range is automatically determined using the relative position of the image acquisition device and the parking space.

Benefits of technology

It realizes automatic identification of parking spaces, improves identification efficiency, reduces labor costs, is suitable for scenarios where multiple parking spaces are widely distributed, and supports functions such as automatic parking billing, management and alarm management under unmanned monitoring.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115116033B_ABST
    Figure CN115116033B_ABST
Patent Text Reader

Abstract

The present application provides a method for processing a parking space range and a computing device, which relates to the field of cloud computing technology. In an embodiment of the present application, one or more parking space images captured by an image acquisition device near the parking space are obtained. Further, according to the relative position between the image acquisition device and the parking space, a first parking space line parallel to the road and a second parking space line separating two parking spaces are identified from the parking space images, and the parking space range of the parking space is determined. Thus, it can be seen that the recognition efficiency of the parking space range can be improved, the images obtained by the image acquisition device for monitoring can be fully utilized, which is suitable for scenarios with a large number of distributed and widely distributed parking spaces. Moreover, it can be used for a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space, and further realize practical requirements such as automatic parking charging, parking space management, alarm management, and camera deflection detection in an unattended monitoring scenario, and has a broad application prospect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of cloud computing technology, and particularly to a method for processing a parking space range and a computing device. Background Art

[0002] By monitoring parking spaces, remote management of parking spaces can be achieved. When performing recognition based on the collected images, it is usually necessary to draw the corresponding markings of the parking space range in the physical world in the captured image area for the next step of algorithm processing.

[0003] Currently, the markings of the parking space range are achieved manually. Since the distribution of parking spaces is usually a relatively large area and the number of parking spaces involved is relatively large, the markings of the parking space range will consume a large amount of human and time costs. Summary of the Invention

[0004] Embodiments of this application provide a method for processing a parking space range and a computing device to implement the calculation of the parking space range of a parking space and the management of the parking space.

[0005] In a first aspect, an embodiment of this application provides a method for processing a parking space range, including:

[0006] Obtaining at least one parking space image captured by an image acquisition device near the parking space;

[0007] Identifying a first parking space line parallel to the road of the parking space from the at least one parking space image according to the relative position between the image acquisition device and the parking space;

[0008] Identifying a second parking space line separating two parking spaces from the at least one parking space image;

[0009] Determining the parking space range of the parking space based on the first parking space line and the second parking space line for a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space.

[0010] In a second aspect, an embodiment of this application provides a method for processing a parking space range, which is applied to a computing device deployed near the parking space. The method includes:

[0011] Obtaining the parking space range of the parking space sent by the cloud server, where the parking space range is determined based on a first parking space line and a second parking space line identified from at least one parking space image. The parking space image is captured by an image acquisition device near the parking space. The first parking space line is parallel to the road and determined according to the relative position between the image acquisition device and the parking space. The second parking space line is the line separating two parking spaces;

[0012] Based on the obtained parking space range, identify the relative relationship between the vehicle and the parking space in the newly captured parking space image of the image acquisition device.

[0013] In a third aspect, an embodiment of the present application provides a computing device, including a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the above-mentioned method is implemented.

[0014] Compared with the prior art, the present application has the following advantages:

[0015] According to the embodiment of the present application, by acquiring one or more parking space images captured by an image acquisition device near the parking space, and further according to the relative position between the image acquisition device and the parking space, the first parking space line parallel to the road and the second parking space line between two parking spaces are identified from the parking space images, so that the parking space range of the parking space can be determined based on the first parking space line and the second parking space line. Thus, the present application provides a scheme for automatically identifying the parking space range, which can improve the identification efficiency of the parking space range, make full use of the images obtained by the image acquisition device for monitoring, reduce a large amount of labor costs, is suitable for scenarios with a large number of parking spaces distributed widely, and can be used for a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space, further realizing practical requirements such as automatic parking billing, parking space management, alarm management, camera deflection detection, and camera exposure detection in an unattended monitoring scenario, and has a broad application prospect.

[0016] The above summary is only for the purpose of the specification and is not intended to be limiting in any way. In addition to the above-described illustrative aspects, embodiments, and features, further aspects, embodiments, and features of the present application will be readily apparent by reference to the drawings and the following detailed description. BRIEF DESCRIPTION OF THE DRAWINGS

[0017] In the drawings, unless otherwise specified, the same reference numerals throughout the several views represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments disclosed in accordance with the present application and should not be regarded as limiting the scope of the present application.

[0018] Figure 1 It is a schematic diagram of an application scenario for exemplarily implementing the method of the embodiment of the present application;

[0019] Figure 2 It is a flowchart of the method for processing the parking space range according to an embodiment of the present application;

[0020] Figure 3 It is a flowchart of the method for processing the parking space range according to another embodiment of the present application;

[0021] Figure 4 is a structural block diagram of a processing device for a parking space range according to an embodiment of the present application;

[0022] Figure 5 is a structural block diagram of a processing device for a parking space range according to another embodiment of the present application;

[0023] Figure 6 is a block diagram of a computing device for implementing the embodiments of the present application. Detailed Embodiments

[0024] In the following, only some exemplary embodiments are simply described. As those skilled in the art can recognize, the described embodiments can be modified in various different ways without departing from the spirit or scope of the present application. Therefore, the drawings and the description are considered to be exemplary in nature rather than restrictive.

[0025] To facilitate the understanding of the technical solutions of the embodiments of the present application, the related technologies of the embodiments of the present application are described below. The following related technologies can be arbitrarily combined with the technical solutions of the embodiments of the present application as alternative solutions, and they all fall within the protection scope of the embodiments of the present application.

[0026] In view of the high cost problem caused by the manual implementation of the existing parking space range (i.e., the parking space frame) marking, the embodiments of the present application provide a method for processing the parking space range. By pre-setting an image acquisition device near the parking space, one or more parking space images collected by the image acquisition device are obtained. According to the relative position between the image acquisition device and the parking space, two types of parking space lines of the parking space are identified from the parking space images. One is the first parking space line parallel to the road of the parking space, and the other is the second parking space line separating the parking spaces. Furthermore, the automatic determination of the parking space range can be realized based on the two types of parking space lines. Compared with the manual marking scheme, the recognition efficiency of the parking space range can be improved, the images obtained by the image acquisition device for monitoring can be fully utilized, a large amount of labor costs can be reduced, and it is suitable for scenarios with a large number of distributed and widely distributed parking spaces.

[0027] Based on the determined parking space range above, the relative relationship between the vehicle and the parking space can be further detected, the occupation behavior of the vehicle on the parking space can be managed, and the actual requirements such as parking charging, parking space management, alarm management, camera deflection detection, and camera exposure detection in the unmanned monitoring scenario can be realized, which has a broad application prospect. Specifically, it can be implemented as a high-position video intelligent parking system, and the image acquisition device installed near the parking space is used for the analysis of the parking space occupation.

[0028] The embodiments of the present application are particularly suitable for the case of roadside parking. Compared with parking in a parking lot, roadside parking has no set entrances and exits, and vehicles can enter and leave at will, which brings greater management difficulties. A more prominent problem is the difficulty in charging. Existing roadside charging is usually done manually, requiring personnel to squat near the parking spaces to check the entry and exit of vehicles and record the parking situation of vehicles. It is also necessary to quickly collect fees from the driver when the vehicle exits. The work is complicated and voluminous, and the timing accuracy is relatively low. According to the solution of the embodiments of the present application, the monitoring of vehicle entry and exit can be further carried out in combination with the images collected by the image acquisition device, so as to realize automatic parking charging. The charging result can be directly sent to the mobile terminal corresponding to the vehicle driver. For example, the vehicle owner can be detected based on the monitored license plate number or vehicle characteristics, and the mobile terminal identifier corresponding to the vehicle owner can be further determined, and the charging result can be sent in the form of a message or notification. The vehicle owner can pay the fee through his own mobile terminal. There is no need to equip personnel for charging and collecting fees, nor does the vehicle owner need to stop to pay the fee. There is no need for any interactive operation when the vehicle parks or leaves, which improves the timing accuracy and the utilization efficiency of the parking space, and avoids affecting road traffic. In addition, the vehicle owner can also connect to the cloud server or a computing device through his own mobile terminal to view the status of the parking space in real time and view the parking space information in real time, which can improve the parking efficiency.

[0029] In an optional implementation manner, the determination of the parking space range described above can be implemented based on the cloud. A computing device can be configured near the parking space for real-time calculation of parking space management. On the one hand, it can share the computing pressure of the cloud, and on the other hand, it can realize fast data operation and avoid the time delay problem caused by remote transmission. Therefore, the determined parking space range can be sent to the computing device near the parking space, and the computing device is responsible for various management tasks such as vehicle entry and exit and charging.

[0030] The solution of the embodiments of the present application can also be implemented in combination with the cloud server. The management of the image acquisition device can be added to the roadside parking service in the cloud, and a dedicated container instance can be provided to the management party of the parking space to perform corresponding data operations on the parking space images collected by the image acquisition device and transmitted to the cloud server. Figure 1It is a schematic diagram of an application scenario for implementing the method of the embodiments of the present application. The entire architecture is divided into a cloud side and an edge side near the parking space. Generally, there are multiple parking spaces, and one or more image acquisition devices can be deployed according to needs. One image acquisition device can capture images of one or more parking spaces (for example, one image acquisition device corresponds to 3-4 parking spaces). The image acquisition device can specifically be an IPC (IP Camera, network camera) with network communication functions, so that the captured images can be uploaded to the cloud server in real time through a router. The cloud can receive the images through a video edge intelligent service platform and further identify the images. As shown in the figure, the images can be transmitted to a road parking service engine dedicated to road monitoring for management, and specifically, an image algorithm application is used to identify the range of the parking space. After identifying the range of the parking space, it can be sent to the edge computing device, that is, the road parking integrated machine in the figure, for subsequent functions such as vehicle entry and exit or charging based on the captured images, and corresponding event notifications are generated. The road parking service engine can obtain the event notifications by listening to the messages of the IOT (Internet of Things) platform in the cloud, or notify the terminal device of the management party of the parking space.

[0031] Among them, the edge image acquisition device and the road parking integrated machine can be accessed and managed through the IOT platform in the cloud. The management party of the parking space can obtain the status data of the parking space through the terminal device connected to the integrated machine or through the terminal device communicating with the cloud platform, realize the viewing and management of the parking space status, and can also monitor the status of the image acquisition device to repair related problems in a timely manner.

[0032] The following gives the specific embodiment solutions of the present application. The embodiments of the present application provide a method for processing the range of a parking space. This method can be applied to a cloud server or a computing device near the parking space. Figure 2 It is a flowchart of the method for processing the range of a parking space according to an embodiment of the present application. As Figure 2 shown, this method includes:

[0033] Step S201, obtain at least one parking space image captured by an image acquisition device near the parking space.

[0034] The image acquisition device described in the embodiment of the present application can be a network camera, or it can be any device that can capture images, such as a high-speed ball camera for road monitoring, a video recorder, etc. The captured images can be in the form of images or video frames extracted from a video. In order to achieve the transmission of the captured images to the cloud, the image acquisition device can be configured with a corresponding network connection function. The image acquisition device can be deployed near the parking space so that the image of the parking area can be captured. Specifically, the image can be captured at a higher position with a bird's-eye view, or at a lower position with an upward view, or at a level view. In order to make the captured image more complete and avoid obstructions or problems that are easily damaged at low places, the image acquisition device can be set at a high place. The image acquisition device usually shoots the parking space in the middle of the image to obtain more information content related to the parking space.

[0035] The parking spaces of the embodiments of the present application can be arranged end to end with vehicles adjacent to each other, or arranged side by side. When the embodiments of the present application are applied to the road parking space scenario, they are usually arranged end to end. To improve the utilization rate of equipment, the existing monitoring equipment of the parking space (such as a high-speed ball camera for road monitoring) can be used to monitor the parking space while realizing road monitoring.

[0036] When this embodiment is completed by a cloud server, management of the image acquisition device can be added to the cloud server, that is, registering the image acquisition device as an IoT device and obtaining a corresponding computing space.

[0037] The number of image acquisition devices can be set according to actual needs so that a relatively complete parking area can be monitored. For example, one image acquisition device can monitor several parking areas. Of course, increasing the number of image acquisition devices can improve the accuracy of monitoring, but it will also increase the hardware cost and data calculation amount. The number of image acquisition devices can be increased or decreased according to actual needs. The image acquisition device can capture images or videos, and the corresponding parking space image can be one or more images or video frames extracted from the video.

[0038] Step S202: identifying a first parking space line of the parking space parallel to the road from the at least one parking space image according to the relative position of the image acquisition device and the parking space.

[0039] There is a distance between the image acquisition device and the parking space. According to the relative position of the image acquisition device and the parking space, the parking space line of the parking space can be identified from the parking space image. Based on the shape of most vehicles at present, the parking space range is usually rectangular. The parking space range of the parking space is composed of four sides corresponding to the rectangle, that is, four parking space lines, and has a certain aspect ratio.

[0040] Taking the head-to-tail adjacent parking spaces as an example, one side of the long side of the parking space is close to the road and parallel to the road, which is the first parking space line; one side of the short side of the parking space is the line separating two parking spaces, denoted as the second parking space line, which is usually the parking space line shared by two parking spaces. Taking the side-by-side arranged parking spaces as an example, one side of the short side of the parking space is close to the road, which is the first parking space line; one side of the long side of the parking space is the line separating two parking spaces, which is the second parking space line.

[0041] For the above two arrangement methods, if the image acquisition device is on one side of the first parking space line of the parking space, the first parking space line is perpendicular to the line connecting the image acquisition device and the center of the parking space. If the image acquisition device is on one side of the second parking space line of the parking space, the first parking space line is parallel to the line connecting the image acquisition device and the center of the parking space. Thus, the first parking space line parallel to the road can be recognized from the parking space image. That is, if the relative position between the image acquisition device and the parking space is that the image acquisition device is on one side of the first parking space line of the parking space, the line perpendicular to the line connecting the center of the parking space and the image acquisition device in the image is taken as the first parking space line; if the relative position between the image acquisition device and the parking space is that the image acquisition device is on one side of the second parking space line of the parking space, the line parallel to the line connecting the center of the parking space and the image acquisition device in the image is taken as the first parking space line.

[0042] Step S203, identify the second parking space line separating two parking spaces from the at least one parking space image.

[0043] Correspondingly, the second parking space line is perpendicular to the first parking space line. Then, if the relative position between the image acquisition device and the parking space is that the image acquisition device is on one side of the first parking space line of the parking space, the line parallel to the line connecting the center of the parking space and the image acquisition device in the image is taken as the second parking space line; if the relative position between the image acquisition device and the parking space is that the image acquisition device is on one side of the second parking space line of the parking space, the line perpendicular to the line connecting the center of the parking space and the image acquisition device in the image is taken as the second parking space line.

[0044] Step S204, determine the parking space range of the parking space based on the first parking space line and the second parking space line, so as to be used by a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space.

[0045] The parking space is a rectangle composed of four lines. Then, the first parking space line and the second parking space line form two sides of the parking space. There is another parking space line parallel to the first parking space line, and the second parking space line includes the lines separating the two vehicles on both sides. The parking space range can be obtained according to the first parking space line and the second parking space line. That is, the first parking space line, the line parallel to it, and the second parking space line form the parking space range.

[0046] The obtained parking space range can be sent to the computing device associated with the parking space for detecting the relative relationship between the vehicle and the parking space. After the parking space range is delineated, the relative relationship between the vehicle and the parking space can be identified through the collected images, which can be specifically the relative position in space. According to whether the vehicle indicated by the relative position has partially or completely entered the parking space range, it can be known whether the vehicle is in the parking space. By comparing multiple consecutive images, it can be further determined whether the vehicle has entered or exited the parking space, and then parking charges, whether the parking space is vacant, and alarm management for unpaid fees can be performed based on the time of entering and exiting the parking space. The computing device here can be a computing device in the cloud or a computing device near the parking space. The latter can realize real-time calculation of parking space management, share the computing pressure of the cloud, and avoid the time delay problem caused by remote transmission.

[0047] In a possible implementation, when identifying the first parking space line parallel to the road from at least one parking space image according to the relative position of the image acquisition device and the parking space, the first straight line set included in at least one parking space image can be first identified, which can be achieved through straight line detection. For example, the classic Hough transform algorithm can be used to extract the image edge and transform the edge point coordinates to the Hough space. Each point in the Hough space represents a straight line. Points on the same straight line in the image will have intersections in the Hough space. The number of pixels contained in the unit area of the Hough space is counted. If it is judged to be higher than the set threshold, it is determined that a straight line is contained. Alternatively, other algorithms can also be used, such as the Wireframe (gridline-based straight line detection) algorithm, LCNN (Lookup-based Convolutional Neural Network, lookup-based convolutional neural network), etc.

[0048] Further, according to the relative position between the image acquisition device and the parking space, a second straight line set parallel to the road is determined from the first straight line set as the first parking space line parallel to the road. According to the idea that the parking space image acquired by the image acquisition device will place the parking space at the center of the image, that is, the relative position between the image acquisition device and the parking space is set so that the acquired one or more parking spaces are located in the middle of the parking space image, one or more straight lines can be selected as the first parking space line parallel to the road according to the length of the straight lines in the second straight line set and the distance from the center point of the image. The closer the straight line is to the center point of the image, the higher the probability of being the first parking space line. The first parking space line can be sorted from near to far according to the set threshold or the distance. The length of the straight line can also be used as a reference. If the ends are connected, the longer side is the first parking space line. If the ends are arranged side by side, the shorter side is the first parking space line. The judgment can be made by setting a threshold or a numerical range.

[0049] Among them, the straight lines in the first straight line set can be grouped according to the degree of proximity. For example, they can be grouped according to the slope and offset value of the straight lines. The length and distance are compared for each group, and one or more groups with a higher calculation result probability are used as the straight lines corresponding to the first parking space line.

[0050] In a possible implementation, the brightness value of the parking space line can be obtained in advance. This brightness value can be a pre-set value or a value input by the management personnel on the parking space display interface in advance, which is used to assist in determining the parking space line. A brightness numerical interval can be constructed according to the brightness value of the parking space line. For example, a preset value is added to the brightness value of the parking space line and a preset value is subtracted from it to construct a numerical interval composed of two results. Further, the at least one parking space image is screened by using the brightness numerical interval, that is, it is compared whether the brightness value of each pixel is within the brightness numerical interval, and the pixels that do not conform to the brightness numerical interval are removed. Since the content areas inconsistent with the brightness of the parking space line are removed, it can be considered that the image areas irrelevant to the parking space line are removed.

[0051] Before the above comparison, the image data corresponding to the parking space image can also be converted to a preset color space including a brightness channel, so that the brightness value of each pixel of the image can be extracted to screen the brightness value of the parking space image corresponding to the brightness channel according to the brightness numerical interval.

[0052] In a possible implementation, the input of the management personnel on the interface can be used to assist in determining the parking space line, and the brightness value of the parking space line submitted by the selection operation performed on the parking space image displayed on the display screen is obtained. For example, it can be the management personnel who manage the road parking service in the cloud. After the parking space range is marked, it is handed over to the corresponding parking space management party, or the parking space management party participates in the auxiliary determination of the parking space line through the terminal device.

[0053] In a possible implementation, correspondingly, when identifying the second parking space line separating two parking spaces from the parking space image, a third straight line set perpendicular to the road can be determined from the first straight line set included in the at least one parking space image according to the relative position between the image acquisition device and the parking space, and used as the first parking space line parallel to the road. Thus, the first straight line set is divided into a second straight line set including the first parking space line and a third straight line set including the second parking space line.

[0054] In a possible implementation, to improve the accuracy of finding the second parking space line, when identifying the second parking space line between two parking spaces from at least one parking space image, some unreasonable lines can be excluded from the third set of straight lines according to the relationship between the first parking space line and the second parking space line. Since the extension lines of the first parking space line and the second parking space line have an intersection and the distance between the two lines is not too far, straight lines that are beyond a set range from the first parking space line can also be deleted from the third set of straight lines.

[0055] Specifically, since the parking space line is actually a quadrilateral with a width, a quadrilateral can be constructed based on the first parking space line in the second set of straight lines, including the first parking space line in the second set of straight lines. Then, when calculating the distance between the first parking space line and the second parking space line, the distance between the second parking space line and the quadrilateral can be calculated.

[0056] The third set of straight lines after deleting those beyond the range can also be grouped. The straight lines in the first set of straight lines can be grouped according to their proximity. For example, they can be grouped according to the slope and offset value of the straight lines. The distances between the grouped straight lines and the quadrilateral are calculated respectively, and the straight line groups with distances beyond the set range are deleted.

[0057] In a possible implementation, the parking space range generally has one or several fixed length-width ratios. When determining the parking space range of a parking space based on the first parking space line and the second parking space line, the parking space range of the parking space can be constructed according to the first parking space line, the second parking space line, and the length-width ratio data of the parking space range. When determining the parking space range for two lines, the length or width can be supplemented according to the length-width ratio to avoid the situation where the parking space line fades or loses color, resulting in incomplete collection of the parking space line.

[0058] In a possible implementation, when determining the parking space range of a parking space based on the first parking space line and the second parking space line as described above, the intersection point of the first parking space line and the second parking space line can also be determined as the demarcation point of the first parking space lines corresponding to multiple parking spaces. Since the arrangement of multiple parking spaces in the perspective of the image acquisition device is in a certain proportional relationship from near to far, that is, it conforms to the perspective principle, the intersection points corresponding to the first parking space lines that do not conform to the proportional relationship of the parking space lines of multiple parking spaces in the perspective of the image acquisition device can be deleted, and the remaining intersection points that conform to the perspective principle are used as the basis for dividing the first parking space line.

[0059] In a possible implementation, the above method can be executed on a cloud server, and the detected parking space range can be further sent to the computing device near the parking space. The computing device detects the relative relationship between the vehicle and the parking space based on the vehicle detection algorithm sent by the cloud server.

[0060] In a possible implementation, before the above solution is executed, the association relationship between the image acquisition device and the computing device can also be registered on the cloud server, and the corresponding container instance can be added for data operation of the management party of the parking space.

[0061] The above embodiments give the determination process of the parking space range. The following provides the related processing solutions based on the determined parking space range, which can be applied to the computing device deployed near the parking space. Figure 3 It is a flowchart of a method for processing a parking space range according to an embodiment of the present application. The method includes:

[0062] Step S301, obtain the parking space range of the parking space sent by the cloud server. The parking space range is determined based on at least the first parking space line and the second parking space line identified in one or more parking space images. The parking space images are taken by an image acquisition device near the parking space. The first parking space line is parallel to the road and is determined according to the relative position between the image acquisition device and the parking space. The second parking space line is the line separating two parking spaces;

[0063] Step S302, based on the obtained parking space range, identify the relative relationship between the vehicle and the parking space in the newly acquired parking space image of the image acquisition device.

[0064] The above content can be referred to the previous embodiment and will not be elaborated here.

[0065] According to the embodiments of the present application, by obtaining one or more parking space images taken by an image acquisition device near the parking space, and further according to the relative position between the image acquisition device and the parking space, the first parking space line parallel to the road and the second parking space line separating two parking spaces are identified from the parking space images. Thus, the parking space range of the parking space can be determined based on the first parking space line and the second parking space line. It can be seen that the present application provides a solution for automatically identifying the parking space range, which can improve the identification efficiency of the parking space range, make full use of the images obtained by the image acquisition device for monitoring, reduce a large amount of labor costs, and is suitable for scenarios with a large number of distributed and widely distributed parking spaces. Moreover, it can be used for the computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space, and further realize the actual requirements such as automatic parking charging, parking space management, alarm management, camera deflection detection, and camera exposure detection in the unmanned monitoring scenario, and has a broad application prospect.

[0066] Corresponding to the application scenario and method of the method provided by the embodiments of the present application, the embodiments of the present application also provide a device for processing a parking space range, such as Figure 4 Shown is the structural block diagram of a device for processing a parking space range according to an embodiment of the present application. The device may include:

[0067] An image acquisition module 401, configured to acquire at least one parking space image captured by an image acquisition device near the parking space;

[0068] A first recognition module 402, configured to recognize a first parking space line parallel to the road of the parking space from the at least one parking space image according to the relative position between the image acquisition device and the parking space;

[0069] A second recognition module 403, configured to recognize a second parking space line between two parking spaces from the at least one parking space image;

[0070] A parking space range determination module 404, configured to determine the parking space range of the parking space based on the first parking space line and the second parking space line, so as to be used by a calculation device associated with the parking space to detect the relative relationship between a vehicle and the parking space.

[0071] In a possible implementation manner, the first recognition module includes:

[0072] A straight line recognition sub-module, configured to recognize a first straight line set included in the at least one parking space image;

[0073] A straight line determination sub-module, configured to determine a second straight line set parallel to the road from the first straight line set as the first parking space line parallel to the road of the parking space according to the relative position between the image acquisition device and the parking space.

[0074] In a possible implementation manner, the straight line determination sub-module is specifically configured to select one or more straight lines as the first parking space line parallel to the road of the parking space according to the length of the straight lines in the second straight line set and the distance from the center point of the image, and the relative position between the image acquisition device and the parking space is set such that one or more parking spaces collected are located at the middle position of the parking space image.

[0075] In a possible implementation manner, the device further includes:

[0076] A content screening module, configured to construct a brightness value range according to the brightness values of the parking space lines, and use the brightness value range to perform content screening on the at least one parking space image to remove image regions irrelevant to the parking space lines.

[0077] In a possible implementation manner, the device further includes:

[0078] An image conversion module, configured to convert the image data corresponding to the at least one parking space image to a preset color space including a brightness channel, so as to screen the brightness values of the at least one parking space image corresponding to the brightness channel according to the brightness value range.

[0079] In a possible implementation manner, the device further includes:

[0080] A brightness acquisition module, configured to acquire the brightness value of the parking space line submitted by a selection operation performed on the parking space image displayed on the display screen.

[0081] In a possible implementation manner, the second recognition module is specifically configured to determine, from the first straight line set included in the at least one parking space image, a third straight line set perpendicular to the road according to the relative position between the image acquisition device and the parking space, as the second parking space line parallel to the road of the parking space.

[0082] In a possible implementation manner, the second recognition module further includes:

[0083] A straight line deletion sub-module, configured to delete the straight lines in the third straight line set whose distance from the first parking space line exceeds a set range.

[0084] In a possible implementation manner, the parking space range determination module includes:

[0085] A parking space range construction sub-module, configured to construct the parking space range of the parking space according to the first parking space line, the second parking space line, and the length-width ratio data of the parking space range.

[0086] In a possible implementation manner, the parking space range determination module further includes:

[0087] An intersection determination sub-module, configured to determine the intersection of the first parking space line and the second parking space line as the demarcation point of the first parking space lines corresponding to multiple parking spaces;

[0088] An intersection deletion sub-module, configured to delete the intersections corresponding to the first parking space lines that do not conform to the proportional relationship of the parking space lines of multiple parking spaces under the perspective of the image acquisition device

[0089] In a possible implementation manner, the device is executed on a cloud server, and the device further includes:

[0090] A parking space range distribution module, configured to distribute the detected parking space range to the computing device near the parking space, and the computing device detects the relative relationship between the vehicle and the parking space based on the vehicle detection algorithm distributed by the cloud server.

[0091] In a possible implementation manner, the device further includes:

[0092] A device registration module, configured to register the association relationship between the image acquisition device and the computing device on the cloud server, and add a corresponding container instance for data operation of the management party of the parking space.

[0093] According to the embodiments of the present application, by obtaining one or more parking space images captured by an image acquisition device near the parking space, and further based on the relative position between the image acquisition device and the parking space, the first parking space line parallel to the road and the second parking space line between two adjacent parking spaces are identified from the parking space images. Thus, the parking space range of the parking space can be determined based on the first parking space line and the second parking space line. It can be seen that the present application provides a solution for automatic identification of the parking space range, which can improve the identification efficiency of the parking space range, make full use of the images obtained by the image acquisition device for monitoring, reduce a large amount of labor costs, and is suitable for scenarios with a large number of parking spaces distributed widely. Moreover, it can be used for a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space, and further realize practical requirements such as automatic parking billing, parking space management, alarm management, camera deflection detection, and camera exposure detection in an unattended monitoring scenario, having a broad application prospect.

[0094] Corresponding to the application scenario and method of the method provided by the embodiments of the present application, the embodiments of the present application further provide a processing device for the parking space range, which can be deployed on a computing device deployed near the parking space, such as Figure 5 As shown in the structural block diagram of the processing device for the parking space range according to another embodiment of the present application, the device may include:

[0095] A parking space range acquisition module 501, configured to obtain the parking space range of the parking space sent by the cloud server, where the parking space range is determined based on the first parking space line and the second parking space line identified in at least one parking space image, the parking space image is obtained by an image acquisition device near the parking space, the first parking space line is parallel to the road and determined according to the relative position between the image acquisition device and the parking space, and the second parking space line is the line between two adjacent parking spaces;

[0096] A behavior recognition module 502, configured to recognize the relative relationship between the vehicle and the parking space in the newly acquired parking space image of the image acquisition device based on the obtained parking space range.

[0097] According to the embodiments of the present application, by obtaining one or more parking space images captured by an image acquisition device near the parking space, and further based on the relative position between the image acquisition device and the parking space, the first parking space line parallel to the road and the second parking space line between two parking spaces are identified from the parking space images. Thus, the parking space range of the parking space can be determined based on the first parking space line and the second parking space line. It can be seen that the present application provides a solution for automatic identification of the parking space range, which can improve the identification efficiency of the parking space range, make full use of the images obtained by the image acquisition device for monitoring, reduce a large amount of labor costs, and is suitable for scenarios with a large number of distributed and widely distributed parking spaces. Moreover, it can be used for a computing device associated with the parking space to detect the relative relationship between the vehicle and the parking space, and further realize practical requirements such as automatic parking billing, parking space management, alarm management, camera deflection detection, and camera exposure detection in an unattended monitoring scenario, and has a broad application prospect.

[0098] For the functions of each module in each device of the embodiments of the present application, reference may be made to the corresponding descriptions in the above methods, and they have the corresponding beneficial effects, which will not be elaborated here.

[0099] Figure 6 The block diagram of the computing device for implementing the embodiments of the present application is shown. As Figure 6 shown, the computing device includes: a memory 610 and a processor 620. The memory 610 stores a computer program that can run on the processor 620. When the processor 620 executes the computer program, the method in the above embodiments is implemented. The number of the memory 610 and the processor 620 can be one or more.

[0100] The computing device further includes:

[0101] A communication interface 630, configured to communicate with external devices and perform data interaction and transmission.

[0102] If the memory 610, the processor 620, and the communication interface 630 are implemented independently, the memory 610, the processor 620, and the communication interface 630 can be connected to each other through a bus and complete communication with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. The bus can be divided into an address bus, a data bus, a control bus, etc. For the sake of representation, Figure 6 only a thick line is used to represent it in the figure, but it does not mean that there is only one bus or one type of bus.

[0103] Optionally, in a specific implementation, if the memory 610, the processor 620, and the communication interface 630 are integrated on a single chip, the memory 610, the processor 620, and the communication interface 630 can communicate with each other through an internal interface.

[0104] An embodiment of the present application provides a computer-readable storage medium storing a computer program, which when executed by a processor implements the method provided in the embodiment of the present application.

[0105] An embodiment of the present application further provides a chip, which includes a processor for calling and running instructions stored in a memory, so that a communication device installed with the chip executes the method provided in the embodiment of the present application.

[0106] An embodiment of the present application further provides a chip, including: an input interface, an output interface, a processor, and a memory. The input interface, the output interface, the processor, and the memory are connected through an internal connection path. The processor is configured to execute code in the memory, and when the code is executed, the processor is configured to execute the method provided in the embodiment of the application.

[0107] It should be understood that the above-mentioned processor may be a central processing unit (CPU), or may also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the advanced reduced instruction set machines (ARM) architecture.

[0108] Further, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchlink dynamic random access memory (SLDRAM), and direct rambus random access memory (DR RAM).

[0109] In the above embodiments, it may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented using software, it may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer program instructions are loaded and executed on a computer, the processes or functions according to the present application are generated in whole or in part. The computer may be a general-purpose computer, a special-purpose computer, a computer network, or other programmable devices. The computer instructions may be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium.

[0110] In the description of this specification, the descriptions referring to terms such as "one embodiment", "some embodiments", "example", "specific example", or "some examples" etc. mean that the specific features, structures, materials, or characteristics described in connection with the embodiment or example are included in at least one embodiment or example of this application. Moreover, the specific features, structures, materials, or characteristics described can be combined in a suitable manner in any one or more embodiments or examples. In addition, without contradiction, those skilled in the art can combine and combine the different embodiments or examples described in this specification and the features of different embodiments or examples.

[0111] In addition, the terms "first" and "second" are only used for descriptive purposes and cannot be understood as indicating or implying relative importance or implicitly specifying the quantity of the indicated technical features. Thus, the features defined with "first" and "second" may explicitly or implicitly include at least one of such features. In the description of this application, "a plurality of" means two or more unless otherwise specifically defined.

[0112] Any process or method description represented in a flowchart or described in other ways herein can be understood to represent a module, segment, or portion of code including one or more executable instructions for implementing a specific logical function or process. And the scope of the preferred embodiments of this application includes additional implementations, where the functions can be executed in a substantially simultaneous manner or in a reverse order according to the involved functions, rather than in the order shown or discussed.

[0113] The logic and / or steps represented in a flowchart or described in other ways herein, for example, can be considered as a sequenced list of executable instructions for implementing a logical function, and can be specifically implemented in any computer-readable medium for use by an instruction execution system, apparatus, or device (such as a computer-based system, a system including a processor, or other systems that can fetch and execute instructions from the instruction execution system, apparatus, or device), or in combination with these instruction execution systems, apparatus, or devices.

[0114] It should be understood that each part of this application can be implemented by hardware, software, firmware, or a combination thereof. In the above embodiments, multiple steps or methods can be implemented by software or firmware stored in a memory and executed by a suitable instruction execution system. All or part of the steps of the method in the above embodiments can be completed by a program instructing relevant hardware, and this program can be stored in a computer-readable storage medium. When this program is executed, it includes one or a combination of the steps of the method embodiment.

[0115] In addition, each functional unit in various embodiments of the present application may be integrated into one processing module, or each unit may exist physically alone, or two or more units may be integrated into one module. The above integrated module may be implemented in the form of hardware or in the form of a software functional module. When the above integrated module is implemented in the form of a software functional module and sold or used as an independent product, it may also be stored in a computer-readable storage medium. The storage medium may be a read-only memory, a magnetic disk, an optical disc, or the like.

[0116] As described above, the above are only specific embodiments of the present application, but the protection scope of the present application is not limited thereto. Any person skilled in the art within the technical scope disclosed in the present application can easily think of various changes or substitutions, and these should all be covered by the protection scope of the present application. Therefore, the protection scope of the present application should be subject to the protection scope of the claims.

Claims

1. A method for processing a parking space range, characterized in that, Including: Obtaining at least one parking space image captured by an image acquisition device near the parking space; Identifying a first parking space line parallel to the road of the parking space from the at least one parking space image according to the relative position between the image acquisition device and the parking space; Identifying a second parking space line separating two parking spaces from the at least one parking space image; Determining the parking space range of the parking space based on the first parking space line and the second parking space line for a computing device associated with the parking space to detect the relative relationship between a vehicle and the parking space; Wherein: The identifying a first parking space line parallel to the road of the parking space from the at least one parking space image according to the relative position between the image acquisition device and the parking space includes: identifying a first set of straight lines included in the at least one parking space image; determining a second set of straight lines parallel to the road from the first set of straight lines according to the relative position between the image acquisition device and the parking space as the first parking space line parallel to the road; The determining a second set of straight lines parallel to the road from the first set of straight lines as the first parking space line parallel to the road includes: selecting one or more straight lines as the first parking space line parallel to the road according to the length of the straight lines in the second set of straight lines and the distance from the center point of the image, and the relative position between the image acquisition device and the parking space is set such that one or more parking spaces collected are located at the middle position of the parking space image.

2. The method according to claim 1, wherein The method further includes: Constructing a brightness value range according to the brightness values of the parking space lines, and using the brightness value range to perform content screening on the at least one parking space image to remove image regions irrelevant to the parking space lines.

3. The method according to claim 2, wherein The method further includes: Converting the image data corresponding to the at least one parking space image to a preset color space including a brightness channel to screen the brightness values of the at least one parking space image corresponding to the brightness channel according to the brightness value range.

4. The method according to claim 2, wherein The method further includes: Obtaining the brightness values of the parking space lines submitted by a selection operation performed on the parking space image displayed on the display screen.

5. The method according to claim 1, wherein The identifying a second parking space line separating two parking spaces from the at least one parking space image includes: Determining a third set of straight lines perpendicular to the road from the first set of straight lines included in the at least one parking space image as the second parking space line parallel to the road of the parking space according to the relative position between the image acquisition device and the parking space.

6. The method according to claim 5, wherein The identifying a second parking space line separating two parking spaces from the at least one parking space image further includes: Deleting straight lines in the third set of straight lines whose distance from the first parking space line exceeds a set range.

7. The method according to claim 1, characterized in that, The determining the parking space range of the parking space based on the first parking space line and the second parking space line includes: Constructing the parking space range of the parking space according to the first parking space line, the second parking space line and the length-width ratio data of the parking space range.

8. The method according to claim 7, wherein The determining the parking space range of the parking space based on the first parking space line and the second parking space line further includes: Determine the intersection point of the first parking space line and the second parking space line as the demarcation point of the first parking space lines corresponding to multiple parking spaces respectively; Delete the intersection points corresponding to the first parking space lines that do not conform to the proportional relationship of the parking space lines of multiple parking spaces from the perspective of the image acquisition device.

9. The method according to claim 1, characterized in that The method is executed on a cloud server, and the method further includes: Send the detected parking space range to the computing device near the parking space, and the computing device detects the relative relationship between the vehicle and the parking space based on the vehicle detection algorithm sent by the cloud server.

10. The method according to claim 1, characterized in that, It further includes: Register the association relationship between the image acquisition device and the computing device on the cloud server, and add a corresponding container instance for data operation of the management party of the parking space.

11. A method for processing a parking space range, characterized in that, Applied to a computing device deployed near a parking space, the method includes: Obtain the parking space range sent by the cloud server, where the parking space range is determined based on the first parking space line and the second parking space line identified in at least one parking space image. The parking space image is obtained by an image acquisition device near the parking space. The first parking space line is parallel to the road and is determined according to the relative position between the image acquisition device and the parking space. The second parking space line is the line separating two parking spaces; Based on the obtained parking space range, identify the relative relationship between the vehicle and the parking space in the newly acquired parking space image of the image acquisition device; The determination method of the first parking space line is as follows: Identify the first straight line set included in the at least one parking space image; According to the relative position between the image acquisition device and the parking space, determine the second straight line set parallel to the road from the first straight line set as the first parking space line parallel to the road of the parking space; Among them, the step of determining the second straight line set parallel to the road from the first straight line set as the first parking space line parallel to the road of the parking space includes: Select one or more straight lines as the first parking space line parallel to the road of the parking space according to the length of the straight lines in the second straight line set and the distance from the center point of the image. The relative position between the image acquisition device and the parking space is set so that one or more parking spaces collected are located in the middle position of the parking space image.

12. A computing device, including a memory, a processor, and a computer program stored on the memory. When the processor executes the computer program, the method described in any one of claims 1-11 is implemented.

Citation Information

Patent Citations

  • Parking space recognition system and parking assist system including the same

    CN113525337A