CN112365719B - Parking space management method and device, computer equipment and storage medium - Google Patents

Parking space management method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN112365719B
CN112365719B CN202011204555.XA CN202011204555A CN112365719B CN 112365719 B CN112365719 B CN 112365719B CN 202011204555 A CN202011204555 A CN 202011204555A CN 112365719 B CN112365719 B CN 112365719B
Authority
CN
China
Prior art keywords
parking space
vehicle
information
target vehicle
event
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202011204555.XA
Other languages
Chinese (zh)
Other versions
CN112365719A (en
Inventor
张政
孙巍巍
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Elite Road Technology Co ltd
Original Assignee
Beijing Elite Road Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Elite Road Technology Co ltd filed Critical Beijing Elite Road Technology Co ltd
Priority to CN202011204555.XA priority Critical patent/CN112365719B/en
Publication of CN112365719A publication Critical patent/CN112365719A/en
Application granted granted Critical
Publication of CN112365719B publication Critical patent/CN112365719B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/01Detecting movement of traffic to be counted or controlled
    • G08G1/017Detecting movement of traffic to be counted or controlled identifying vehicles
    • G08G1/0175Detecting movement of traffic to be counted or controlled identifying vehicles by photographing vehicles, e.g. when violating traffic rules
    • GPHYSICS
    • G08SIGNALLING
    • G08GTRAFFIC CONTROL SYSTEMS
    • G08G1/00Traffic control systems for road vehicles
    • G08G1/14Traffic control systems for road vehicles indicating individual free spaces in parking areas
    • G08G1/145Traffic control systems for road vehicles indicating individual free spaces in parking areas where the indication depends on the parking areas
    • G08G1/148Management of a network of parking areas

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Traffic Control Systems (AREA)

Abstract

The patent discloses a parking space management method, device, computer equipment and storage medium, relates to the intelligent transportation field for realize the intelligent supervision of small-size vehicle parking space, effectively solve the management problem that a plurality of vehicles were parked to a parking space that causes because of small-size vehicle, provide roadside berth management efficiency, use manpower sparingly resource. The main technical scheme of the invention is as follows: acquiring a video frame shot by the camera equipment, and identifying a traffic tool and a pedestrian in the video frame by the algorithm module to acquire scene information; tracking a target vehicle in the scene information, and identifying vehicle characteristic information; and processing the vehicle event of the target vehicle in the parking space by combining the target vehicle information, the scene information and the parking space information, including detecting an in-position event and an out-of-position event, and updating the parking space information. And processing the quantity change of the target vehicles in the parking space by combining the parking space information and the scene information, including detecting an off-position event and updating the parking space information.

Description

Parking space management method and device, computer equipment and storage medium
Technical Field
The present invention relates to the field of intelligent transportation, and in particular, to a parking space management method, apparatus, computer device, and storage medium.
Technical Field
With the development of society, more families purchase automobiles, traffic jam is serious, and under the condition of going out at a medium and short distance, more people select small vehicles to go out, such as battery cars, bicycles, motorcycles and the like, and part of cities start to set parking spaces special for the small vehicles, and the small vehicles have the characteristics of strong mobility and large quantity, so that effective management of the parking spaces becomes a difficult problem.
Currently, a parking management system for a small-sized vehicle in the prior art is very lacking, and manual management is mainly adopted in actual life. Because the small-sized vehicle has the characteristics of strong mobility, large quantity, small size and light weight, the condition that a plurality of vehicles are parked in the same parking space exists. In the prior art, the similar scheme aiming at the management of the automobile parking spaces cannot identify the entering and leaving events of the second automobile parked in the parking spaces because the automobile has larger body type and does not consider the situation of one automobile with more than one automobile, so the scheme cannot be directly moved and applied to the management of the parking spaces of the small-sized vehicles.
According to the parking space management method, device, computer equipment and storage medium, intelligent supervision of parking spaces of small vehicles is achieved through an artificial intelligent algorithm, the situation that a plurality of vehicles are parked in the same parking space can be identified, berths on a road side are effectively managed, and manpower resources are saved.
Disclosure of Invention
The invention provides a parking space management method, a device, computer equipment and a storage medium, which are used for solving the problem that a plurality of vehicles parked in the same parking space cannot be identified in parking space management of a small-sized drive test vehicle.
The embodiment of the invention provides a parking space management method, which comprises the following steps:
acquiring a video frame shot by the camera equipment, identifying vehicles and pedestrians in the video frame, and acquiring scene information;
tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information;
combining the target vehicle information, the scene information and the parking space information, and processing vehicle events of target vehicles in the parking space, wherein the processing comprises detecting an entering event and an exiting event and updating the parking space information;
and processing the quantity change of target vehicles in the parking space by combining the parking space information and the scene information, detecting an off-site event and updating the parking space information.
Optionally, the target vehicle is a small-sized vehicle such as a battery car, a bicycle, a motorcycle, and the like.
Optionally, the same parking space can be matched with a plurality of vehicles, and a single vehicle can only be matched with a single parking space.
Optionally, judging whether shielding exists or not when processing the event of the target vehicle in the parking space and processing the number change of the target vehicle in the parking space; if the occlusion exists, the processing is not performed, and the judgment is performed on the subsequent frames; if no shielding exists, the related processing flow is entered.
Optionally, when processing a vehicle event of the target vehicle in the parking space, firstly judging whether the target vehicle in the parking space is consistent with the vehicle recorded in the parking space; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space and the entering event of the target vehicle is recorded, entering an exiting event judging flow; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space, but the entering event of the target vehicle is not recorded, judging the entering event; if the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, binding the target vehicle with the parking space, and distributing an occupied number.
Optionally, the target vehicle information, the vehicle event of the target vehicle, the parking space information and the corresponding video frames are summarized and arranged to generate order information, the parking space state is updated, and the related images are kept in file. And simultaneously, the order information and the parking space state are sent to a user.
The embodiment of the invention provides a parking space management device, which comprises:
the acquisition module is used for acquiring video frames shot by the camera equipment and acquiring scene information by identifying vehicles and pedestrians in the video frames;
the tracking and identifying module is used for tracking the target vehicle in the scene information and identifying the characteristic information of the vehicle;
the detection processing module is used for detecting vehicle events and processing parking space information, and can detect and process the situation that one parking space parks a plurality of vehicles;
and the sending module is used for sending the current parking space state information and the order information to an owner client in a preset range.
Optionally, the detection processing module includes: the parking event judging unit is used for judging a parking event of a target vehicle in the parking space; the off-position event judging unit is used for judging the off-position event of the target vehicle in the parking space; the parking space state updating unit is used for processing the number change of the target vehicles in the parking space, judging the off-position event generated by the number change of the target vehicles in the parking space and updating the parking space information.
The embodiment of the invention provides computer equipment, which comprises a memory, a processor and a computer program stored in the memory and capable of running on the processor, and is characterized in that the computer program is executed by the processor to realize the parking space management method.
The embodiment of the invention provides a computer readable storage medium, wherein the computer readable storage medium stores a computer program, and the computer program realizes the parking space management method when being executed by a processor.
The invention provides a parking space management method, a device, computer equipment and a storage medium, wherein firstly, a video frame shot by camera equipment is acquired, traffic tools and pedestrians in the video frame are identified, and scene information is acquired; then, tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information; then, combining the target vehicle information, the scene information and the parking space information, and processing vehicle events of target vehicles in the parking space, wherein the vehicle events comprise detection of an entering event and an exiting event, and updating of the parking space information; and finally, processing the quantity change of the target vehicles in the parking space by combining the parking space information and the scene information, detecting an off-position event and updating the parking space information.
Compared with the existing parking space management system, the system can allow the same parking space to be matched with a plurality of vehicles, but only one parking space is allowed to be matched by a single vehicle, and meanwhile, the situation that a plurality of vehicles are parked in the same parking space can be effectively identified by introducing the parking space occupation number. Therefore, the intelligent supervision of the parking spaces of the small-sized vehicles can be realized through the invention, the road test parking spaces can be effectively managed, and the manpower resources are saved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments of the present invention will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present invention, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic view of an application environment of a parking space management method according to an embodiment of the present invention;
FIG. 2 is a flow chart of a parking space management method according to an embodiment of the invention;
FIG. 3 is a flow chart of processing a target vehicle event in a parking space in accordance with one embodiment of the present invention;
FIG. 4 is a flowchart of a positioning event determination according to an embodiment of the present invention;
FIG. 5 is a flowchart of an out-of-position event determination in accordance with an embodiment of the present invention;
FIG. 6 is a flow chart of processing a change in the number of targets in a parking space in accordance with one embodiment of the present invention;
FIG. 7 is a schematic block diagram of a parking space management device according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of a computer device in accordance with an embodiment of the invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and fully with reference to the accompanying drawings, in which it is evident that the embodiments described are some, but not all embodiments of the invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
The parking space management method provided by the application can be applied to an application environment as shown in fig. 1, wherein the image pickup equipment has data receiving and sending functions and can exchange data with a server through a network. The imaging equipment is wide-view imaging equipment, and the installation and point selection principle is that the imaging equipment can observe all parking spaces needing to be monitored and can capture identifiable license plates. The computer device may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, among others. The server may be implemented as a stand-alone server or as a server cluster composed of a plurality of servers.
In an embodiment, as shown in fig. 2, a parking space management method is provided, in which a video frame is used as a processing object, and each step is a method for processing the video frame. The target vehicle, hereinafter referred to as a small vehicle within a video frame. Taking the server in fig. 1 as an example, the method comprises the following steps:
(step S10) acquiring a video frame shot by the camera equipment, and identifying vehicles and pedestrians in the video frame by the algorithm module to acquire scene information.
In one embodiment of the invention, the camera device is a gun type camera, and is fixedly arranged at a high position, and the shooting range of the camera covers all the parking spaces needing to be monitored. In the embodiment of the invention, the camera acquires the image video of the scene in real time, transmits a frame of image to the server, carries out subsequent algorithm processing, and continuously transmits the next frame to the server in real time after the processing of the frame is completed.
In the embodiment of the invention, the algorithm module is a multi-classification detection model which is built and reconstructed by training by using the existing deep learning network technology.
In the embodiment of the invention, the scene information comprises detection frame coordinates and categories of small vehicles, automobiles and pedestrians. The detection frame of the small-sized vehicle comprises a whole vehicle and a front and rear detection frame. The head and tail detection frame of the small-sized vehicle is a main attention target of a follow-up algorithm and is used for judging whether key points of a target vehicle fall in a parking space or not and matching the target vehicle with the parking space.
In the embodiment of the invention, the scene information is also used for judging whether the target vehicle or the parking space in the parking space is blocked. The shielding condition is judged to include whether the position relation between the detection frames of other traffic participants detected by the current frame and the parking space is coincident, whether the number of target vehicles in the parking space detected between the front frame and the rear frame is reduced sharply, whether the situation of higher overlapping degree with the current parking space exists in the whole detection frame of the battery car of the current frame, if so, the head frame and the tail frame of the car are possibly shielded, but the target vehicles outside the parking space in the whole car and the current frame and the relation between the detection frames of other traffic participants and the parking space can be detected, and whether the parking space is shielded by other targets is judged. The above conditions may be alternatively or in combination according to different application scenarios, and the embodiment of the present invention is not limited specifically.
(step S20) tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information;
wherein the vehicle characteristic information is one or a combination of characteristic information of license plate numbers, vehicle body characteristics and the like which can distinguish specific vehicles.
In the embodiment of the present invention, an algorithm for tracking a target vehicle is disclosed in an invention patent with publication number CN110533693a filed by the applicant. And the tracking module is composed of a tracking algorithm and is used for numbering the target vehicles according to the information such as the motion trail of the target vehicles so as to realize the continuous marking of the same target vehicles in a frame-crossing way.
In an embodiment of the present invention, the vehicle feature information is a license plate number, and the license plate recognition algorithm is a prior art, and has been disclosed in an invention patent with publication number CN107092912a filed by the applicant.
Before the identification of the vehicle characteristic information, it is first determined whether or not the identification of the specific vehicle information is required.
In the embodiment of the invention, the condition for judging whether the specific vehicle information is required to be identified is that whether the characteristic information of the target vehicle is stored in the server or not and whether the current frame has the clearly identifiable target characteristic or not. If the characteristic information of the target vehicle does not exist in the server, and the current frame has the condition that the target characteristic is clear and identifiable, the characteristic information identification is carried out on the target vehicle. If the current frame does not meet the above condition, the following video frame is waited for identification, and the following procedure is directly entered, i.e. step S30.
(step S30) processing a vehicle event of the target vehicle in the parking space by combining the target vehicle information, the scene information and the parking space information.
The target vehicle information comprises vehicle characteristic information, vehicle tracking numbers and other identification information related to specific vehicles; the vehicle event comprises an in-position event and an out-of-position event; the parking space information comprises an occupation number of a target vehicle in a parking space, a parking event recorded in the parking space and binding information of the target vehicle and the parking space;
as shown in fig. 3, in one embodiment provided by the present invention, step S30 processes a target vehicle and related information in a parking space, including:
(step S301) it is determined whether the target vehicle in the parking space is identical to the vehicle recorded in the parking space. And judging whether the current target vehicle detection frame and the vehicle detection frame recorded in the parking space have larger overlapping or not.
If the large overlap does not exist, namely the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, the current target vehicle is considered to be a newly added vehicle, the current target vehicle information is recorded in the parking space information, a new occupation number is generated, and the judgment of the entering and exiting event is carried out on the subsequent frame;
if there is a large overlap between the current target vehicle detection frame and the vehicle detection frame recorded in the parking space, the current target vehicle detection frame and the vehicle detection frame are considered to be the same vehicle, the occupation number of the vehicle is acquired, and the step S302 is entered for subsequent judgment.
(step S302) it is determined whether the target vehicle has recorded a docking event by the occupancy number.
If the parking space has not recorded the parking event of the target vehicle, in this case, the target vehicle is already bound to the parking space, but has not yet been determined to be in position because the parking standard has not been reached before, so step S303A is entered to determine the parking event;
if the parking space has recorded the parking event of the target vehicle, in this case, the target vehicle is parked and forms the parking event, so step S303B is entered to determine the off-position event.
And the target vehicle entering event recorded in the parking space belongs to a subitem of the parking space information, and the information is derived from the judgment result of the previous video frame.
(step S303A) event determination
In an embodiment of the present invention, step S303A, namely, the event determination flow is shown in fig. 4:
firstly, judging whether the current target vehicle is consistent with the vehicle recorded in the parking space according to the tracking number, if not, updating the target information bound in the parking space, and adjusting to bind the current target vehicle;
if the current target vehicle is consistent with the vehicle recorded in the parking space, judging whether the in-vehicle target does not move greatly in a plurality of frames, namely whether the in-vehicle target reaches the in-vehicle condition. If the entering condition is not met, delaying entering, and waiting for the judgment of the subsequent video frames; if the entering condition is met, the entering event is recorded.
(step S303B) off-position event judgment
In an embodiment of the present invention, step S303B, namely, the dislocation event judgment flow is as shown in fig. 5:
before the judgment of the dislocation event, whether the dislocation update condition is satisfied is judged first.
In one embodiment of the present invention, the off-position update condition includes whether the parking space information changes, the off-position update period is timed, whether there is a situation that the currently focused in-parking space target vehicle information in the previous video frame is not matched with the in-parking space target vehicle information recorded by the system, and whether the previous video frame detects that the parking space or the target is blocked.
In one embodiment provided by the invention, if the occupation state of each parking space in the current frame image is unchanged, waiting for the off-position update period to time to reach a threshold value, and then performing off-position update. In one embodiment provided by the invention, the off-position updating period is 5 minutes, and the off-position updating period can be prolonged or shortened according to the condition of actually monitoring the traffic flow.
In one embodiment provided by the invention, if the last video frame detects that the currently focused target vehicle information in the parking space is not matched with the target vehicle information in the parking space recorded by the system, or the last video frame detects that the parking space or the target is blocked but not processed, the off-site event judgment is performed.
And if the off-position updating condition is not met, returning to judge the target vehicle in the subsequent parking space.
In one embodiment provided by the present invention, the dislocation event judgment flow is as shown in fig. 5:
firstly, matching the information of the target vehicle in the parking space with the information of the target vehicle in the parking space recorded by the server.
If the matching judgment is consistent, updating the time, the picture, the target vehicle information and other data of the current frame into the parking space information as a credential when the target vehicle in the parking space leaves in the future;
if the matching judgment sections are inconsistent, firstly judging whether the situation that the target vehicle or the parking space in the parking space is shielded exists.
When the shielding exists, although the target vehicle in the parking space can be detected, the head or the tail of the target vehicle in the parking space can be shielded due to the stay of other traffic participants such as small vehicles, automobiles, pedestrians and the like outside the parking space, so that the matching is inconsistent. At this time, whether the parking space is blocked or not needs to be judged by acquiring the position relation between the detection frames of other traffic participants detected by the current frame and the parking space. If the shielding exists, delaying dislocation, and returning to wait for the judgment of the subsequent frame;
if no shielding exists, judging whether the current frame image can find a corresponding target vehicle which is not in the parking space or judging the cumulative times of inconsistent matching.
If the current frame image can find a corresponding target vehicle (driving away) which is not in the parking space, or if the matching is inconsistent and the accumulated times are exceeded, judging that the corresponding target vehicle is away, wherein the vehicle in the current parking space is a parked and unregistered vehicle, and recording an event of the departure; if the above requirements are not satisfied, delaying dislocation, and returning to wait for the judgment of the subsequent frame.
(step S40) combining the parking space information and the scene information, and processing the number change of the target vehicles in the parking space.
In one embodiment of the present invention, the processing of the number of target vehicles in the parking space includes detecting an out-of-position event and updating the parking space information. The specific flow is shown in fig. 6.
(step S401) firstly, the number of the vehicles bound in each parking space is obtained, and compared with the number of the corresponding parking spaces in the current frame, and whether the parking spaces with the reduced number of the vehicles in the parking spaces in the current frame exist or not is judged.
If there is no change in quantity, there are two cases: firstly, the vehicle in the parking space does not have the off-position condition or the new vehicle is not parked, the current parking space information is recorded at the moment to be used as the basis for judging the off-position time in the future, and the vehicle returns to wait for the subsequent frame operation after being recorded; the second situation is that an off-position situation occurs in the parking space, and a new vehicle is parked at the same time, and the number of target vehicles in the parking space is kept unchanged, but a new on-position event and an off-position event need to be processed, and the situation is called off-position vehicle replacement.
Therefore, to determine and process the off-position change, the present embodiment sets a timing threshold, referred to as an off-position update duration. When the timing exceeds the threshold value, judging whether the vehicle is in an off-position vehicle change condition or not by judging whether the vehicle is moved, comparing recorded vehicle information, matching similarity and the like, and generating a corresponding off-position event if the off-position vehicle change condition exists.
If the reduction of the number of vehicles in the parking spaces is detected, the following processing is sequentially carried out on the parking spaces with the reduced number of all vehicles:
(step S402) firstly obtaining the occupied number of a lost target in a parking space, comparing the bound vehicle position information in the parking space with the target of interest in the parking space detected in the current frame to obtain the occupied number corresponding to the lost vehicle, and judging whether an in-place event exists under the occupied number.
If the lost occupied number does not record the bit recording event, judging that the vehicle is a road passing vehicle, and clearing the vehicle information bound under the occupied number;
if the lost occupied number is recorded with the event of entering the position, judging whether the event of exiting the position is formed.
(step S403) judging an off-position event in the current scene, and firstly judging whether a parking space or a vehicle in the current video frame is blocked.
If the occlusion exists, returning to wait for the judgment of the subsequent frame;
If there is no shade (step S404), it is determined whether the off-position condition is satisfied.
The dislocation condition includes: if the original in-position target which is not in the parking space exists or the duration time of the idle parking space is judged to reach the threshold value, the out-of-position requirement is met.
If the conditions are not met, recording the current vehicle information and the parking space information as the certificate in the dislocation.
If the above condition is satisfied, the dislocation event is recorded.
In one embodiment provided by the invention, after the judgment of the parking space event is completed, the target vehicle information, the vehicle event, the parking space information and the corresponding video frames are summarized and arranged in a server to generate order information, the parking space state is updated, and the related images are saved in a reserved file. It should be noted that, the order information and the parking space state may be sent to the user side, so as to provide the parking space state information for the user and prompt whether the parking space is idle.
It should be understood that the sequence number of each step in the foregoing embodiment does not mean that the execution sequence of each process should be determined by the function and the internal logic, and should not limit the implementation process of the embodiment of the present invention.
In an embodiment, a parking space management device is provided, where the parking space management device corresponds to the parking space management method in the above embodiment one by one. As shown in fig. 7, the parking space management device includes an acquisition module 10, a tracking and identification module 20, and a detection and processing module 30. The functional modules are described in detail as follows:
An acquisition module 10, configured to acquire a video frame captured by the image capturing device, and acquire scene information by identifying a vehicle and a pedestrian in the video frame;
in one embodiment of the invention, the camera device is a gun type camera, and is fixedly arranged at a high position, and the shooting range of the camera covers all the parking spaces needing to be monitored. In the embodiment of the invention, the camera acquires the image video of the scene in real time, transmits a frame of image to the server, carries out subsequent algorithm processing, and continuously transmits the next frame to the server in real time after the processing of the frame is completed.
In the embodiment of the invention, the algorithm module is a multi-classification detection model which is built and reconstructed by training by using the existing deep learning network technology.
In the embodiment of the invention, the scene information comprises detection frame coordinates and categories of small vehicles, automobiles and pedestrians. The detection frame of the small-sized vehicle comprises a whole vehicle and a front and rear detection frame. The head and tail detection frame of the small-sized vehicle is a main attention target of a follow-up algorithm and is used for judging whether key points of a target vehicle fall in a parking space or not and matching the target vehicle with the parking space.
In the embodiment of the invention, the scene information is also used for judging whether the target vehicle or the parking space in the parking space is blocked. The shielding condition is judged to include whether the position relation between the detection frames of other traffic participants detected by the current frame and the parking space is coincident, whether the number of target vehicles in the parking space detected between the front frame and the rear frame is reduced sharply, whether the situation of higher overlapping degree with the current parking space exists in the whole detection frame of the battery car of the current frame, if so, the head frame and the tail frame of the car are possibly shielded, but the target vehicles outside the parking space in the whole car and the current frame and the relation between the detection frames of other traffic participants and the parking space can be detected, and whether the parking space is shielded by other targets is judged. The above conditions may be alternatively or in combination according to different application scenarios, and the embodiment of the present invention is not limited specifically.
A tracking and identifying module 20, configured to track a target vehicle in the scene information and identify vehicle feature information;
the vehicle characteristic information is characteristic information or a combination of the characteristic information, such as license plate numbers, vehicle body characteristics and the like, which can distinguish specific vehicles.
In the embodiment of the present invention, an algorithm for tracking a target vehicle is disclosed in an invention patent with publication number CN110533693a filed by the applicant. And the tracking module is composed of a tracking algorithm and is used for numbering the target vehicles according to the information such as the motion trail of the target vehicles so as to realize the continuous marking of the same target vehicles in a frame-crossing way.
In an embodiment of the present invention, the vehicle feature information is a license plate number, and the license plate recognition algorithm is a prior art, and has been disclosed in an invention patent with publication number CN107092912a filed by the applicant.
Before the identification of the vehicle characteristic information, it is first determined whether the condition for the identification of the vehicle characteristic information is fulfilled.
In the embodiment of the invention, the condition for judging whether the specific vehicle information is required to be identified is that whether the characteristic information of the target vehicle is stored in the server or not and whether the current frame has the clearly identifiable target characteristic or not. If the characteristic information of the target vehicle does not exist in the server, and the current frame has the condition that the target characteristic is clear and identifiable, the characteristic information identification is carried out on the target vehicle. If the current frame does not meet the conditions, waiting for the subsequent video frame to be identified, directly entering the subsequent procedure,
The detection processing module 30 is configured to detect a vehicle event and process parking space information, and can detect and process a situation that one parking space parks a plurality of vehicles;
the vehicle event comprises an in-position event and an out-of-position event; the parking space information comprises an occupation number of a target vehicle in a parking space, an entry event recorded in the parking space and binding information of the target vehicle and the parking space.
In an embodiment, the parking space management device further includes a sending module 40, configured to send the current parking space status information and the order information to a vehicle owner client within a preset range.
In one embodiment provided by the present invention, the monitoring processing module 30 includes:
the parking event judging unit 301 is configured to judge a parking event of a target vehicle in a parking space;
firstly, judging whether the current target vehicle is consistent with the vehicle recorded in the parking space according to the tracking number, if not, updating the target information bound in the parking space, and adjusting to bind the current target vehicle;
if the current target vehicle is consistent with the vehicle recorded in the parking space, judging whether the in-vehicle target does not move greatly in a plurality of frames, namely whether the in-vehicle target reaches the in-vehicle condition. If the entering condition is not met, delaying entering, and waiting for the judgment of the subsequent video frames; if the entering condition is met, the entering event is recorded.
The off-position event judging unit 302 is configured to judge an off-position event of a target vehicle in a parking space, and the specific flow is as follows:
before the judgment of the dislocation event, whether the dislocation update condition is satisfied is judged first.
In one embodiment of the present invention, the off-position update condition includes whether the parking space information changes, the off-position update period is timed, whether there is a situation that the currently focused in-parking space target vehicle information in the previous video frame is not matched with the in-parking space target vehicle information recorded by the system, and whether the previous video frame detects that the parking space or the target is blocked.
In one embodiment provided by the invention, if the occupation state of each parking space in the current frame image is unchanged, waiting for the off-position update period to time to reach a threshold value, and then performing off-position update. In one embodiment provided by the invention, the off-position updating period is 5 minutes, and the off-position updating period can be prolonged or shortened according to the condition of actually monitoring the traffic flow.
In one embodiment provided by the invention, if the last video frame detects that the currently focused target vehicle information in the parking space is not matched with the target vehicle information in the parking space recorded by the system, or the last video frame detects that the parking space or the target is blocked but not processed, the off-site event judgment is performed.
And if the off-position updating condition is not met, returning to judge the target vehicle in the subsequent parking space.
In one embodiment provided by the present invention, the dislocation event judgment flow is as shown in fig. 5:
firstly, matching the information of the target vehicle in the parking space with the information of the target vehicle in the parking space recorded by the server.
If the matching judgment is consistent, updating the time, the picture, the target vehicle information and other data of the current frame into the parking space information as a credential when the target vehicle in the parking space leaves in the future;
if the matching judgment sections are inconsistent, firstly judging whether the situation that the target vehicle or the parking space in the parking space is shielded exists.
When the shielding exists, although the target vehicle in the parking space can be detected, the head or the tail of the target vehicle in the parking space can be shielded due to the stay of other traffic participants such as small vehicles, automobiles, pedestrians and the like outside the parking space, so that the matching is inconsistent. At this time, whether the parking space is blocked or not needs to be judged by acquiring the position relation between the detection frames of other traffic participants detected by the current frame and the parking space. If the shielding exists, delaying dislocation, and returning to wait for the judgment of the subsequent frame;
if no shielding exists, judging whether the current frame image can find a corresponding target vehicle which is not in the parking space or judging the cumulative times of inconsistent matching.
If the current frame image can find a corresponding target vehicle (driving away) which is not in the parking space, or if the matching is inconsistent and the accumulated times are exceeded, judging that the corresponding target vehicle is away, wherein the vehicle in the current parking space is a parked and unregistered vehicle, and recording an event of the departure; if the above requirements are not satisfied, delaying dislocation, and returning to wait for the judgment of the subsequent frame.
The parking space state updating unit 303 is configured to process the number change of the target vehicles in the parking space, determine an out-of-position event generated due to the number change of the target vehicles in the parking space, and update the parking space information.
Firstly, the number of the vehicles bound in each parking space is obtained, the number of the vehicles bound in each parking space is compared with the number of the vehicles corresponding to the current frame, and whether the parking space with the reduced number of the vehicles in the parking space under the current frame exists or not is judged.
If there is no change in quantity, there are two cases: firstly, the vehicle in the parking space does not have the off-position condition or the new vehicle is not parked, the current parking space information is recorded at the moment to be used as the basis for judging the off-position time in the future, and the vehicle returns to wait for the subsequent frame operation after being recorded; the second situation is that the vehicle is out of position in the parking space, and a new vehicle is parked, and the number of target vehicles in the parking space is kept unchanged, but the new in-position event and the out-of-position event need to be processed, and the situation is called out-of-position vehicle replacement.
Therefore, to determine and process the off-position change, the present embodiment sets a timing threshold, referred to as an off-position update duration. When the timing exceeds the threshold value, judging whether the vehicle is in an off-position vehicle change condition or not by judging whether the vehicle is moved, comparing recorded vehicle information, matching similarity and the like, and generating a corresponding off-position event if the off-position vehicle change condition exists.
If the reduction of the number of vehicles in the parking spaces is detected, the following processing is sequentially carried out on the parking spaces with the reduced number of all vehicles:
firstly, obtaining the occupied number of a lost target in a parking space, comparing the bound vehicle position information in the parking space with the target of interest in the parking space detected in the current frame to obtain the occupied number corresponding to the lost vehicle, and judging whether an in-place event exists under the occupied number.
If the lost occupied number does not record the bit recording event, judging that the vehicle is a road passing vehicle, and clearing the vehicle information bound under the occupied number;
if the lost occupied number is recorded with the event of entering the position, judging whether the event of leaving the position is formed or not: judging an off-position event in a current scene, and firstly judging whether a parking space or a vehicle in a current video frame is blocked or not:
if the occlusion exists, returning to wait for the judgment of the subsequent frame;
If no shielding exists, judging whether the dislocation condition is met.
The dislocation condition includes: if the original in-position target which is not in the parking space exists or the duration time of the idle parking space is judged to reach the threshold value, the out-of-position requirement is met.
If the conditions are not met, recording the current vehicle information and the parking space information as the certificate in the dislocation.
If the above condition is satisfied, the dislocation event is recorded.
The specific limitation of the parking space management device can be referred to the limitation of the parking space management method, and the description thereof is omitted herein. All or part of the modules in the parking space management device can be realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In one embodiment, a computer device is provided, which may be a server, and the internal structure of which may be as shown in fig. 8. The computer device includes a processor, a memory, a network interface, and a database connected by a system bus. Wherein the processor of the computer device is configured 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, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage media. The network interface of the computer device is used for communicating with an external terminal through a network connection. The computer program, when executed by the processor, implements a method of parking space management.
In one embodiment, a computer device is provided comprising a memory, a processor, and a computer program stored on the memory and executable on the processor, the processor implementing the steps of when executing the computer program:
acquiring a video frame shot by the camera equipment, identifying vehicles and pedestrians in the video frame, and acquiring scene information;
tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information;
combining the target vehicle information, the scene information and the parking space information, and processing vehicle events of target vehicles in the parking space, wherein the processing comprises detecting an entering event and an exiting event and updating the parking space information;
and processing the quantity change of target vehicles in the parking space by combining the parking space information and the scene information, detecting an off-site event and updating the parking space information.
Optionally, the target vehicle is a small-sized vehicle such as a battery car, a bicycle, a motorcycle, and the like.
Optionally, the same parking space can be matched with a plurality of vehicles, and a single vehicle can only be matched with a single parking space.
Optionally, judging whether shielding exists or not when processing the event of the target vehicle in the parking space and processing the number change of the target vehicle in the parking space; if the occlusion exists, the processing is not performed, and the judgment is performed on the subsequent frames; if no shielding exists, the related processing flow is entered.
Optionally, when processing a vehicle event of the target vehicle in the parking space, firstly judging whether the target vehicle in the parking space is consistent with the vehicle recorded in the parking space; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space and the entering event of the target vehicle is recorded, entering an exiting event judging flow; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space, but the entering event of the target vehicle is not recorded, judging the entering event; if the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, binding the target vehicle with the parking space, and distributing an occupied number.
Optionally, the target vehicle information, the vehicle event of the target vehicle, the parking space information and the corresponding video frames are summarized and arranged to generate order information, the parking space state is updated, and the related images are kept in file. And simultaneously, the order information and the parking space state are sent to a user.
In one embodiment, a computer readable storage medium is provided having a computer program stored thereon, which when executed by a processor, performs the steps of:
acquiring a video frame shot by the camera equipment, identifying vehicles and pedestrians in the video frame, and acquiring scene information;
Tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information;
combining the target vehicle information, the scene information and the parking space information, and processing vehicle events of target vehicles in the parking space, wherein the processing comprises detecting an entering event and an exiting event and updating the parking space information;
and processing the quantity change of target vehicles in the parking space by combining the parking space information and the scene information, detecting an off-site event and updating the parking space information.
Optionally, the target vehicle is a small-sized vehicle such as a battery car, a bicycle, a motorcycle, and the like.
Optionally, the same parking space can be matched with a plurality of vehicles, and a single vehicle can only be matched with a single parking space.
Optionally, judging whether shielding exists or not when processing the event of the target vehicle in the parking space and processing the number change of the target vehicle in the parking space; if the occlusion exists, the processing is not performed, and the judgment is performed on the subsequent frames; if no shielding exists, the related processing flow is entered.
Optionally, when processing a vehicle event of the target vehicle in the parking space, firstly judging whether the target vehicle in the parking space is consistent with the vehicle recorded in the parking space; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space and the entering event of the target vehicle is recorded, entering an exiting event judging flow; if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space, but the entering event of the target vehicle is not recorded, judging the entering event; if the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, binding the target vehicle with the parking space, and distributing an occupied number.
Optionally, the target vehicle information, the vehicle event of the target vehicle, the parking space information and the corresponding video frames are summarized and arranged to generate order information, the parking space state is updated, and the related images are kept in file. And simultaneously, the order information and the parking space state are sent to a user.
The parking space management method, the device, the computer equipment and the storage medium provided by the embodiment of the application have the following beneficial effects: compared with the existing parking space management system, the system can allow the same parking space to be matched with a plurality of vehicles, but only a single vehicle is allowed to be matched with one parking space, meanwhile, the situation that the plurality of vehicles are parked in the same parking space can be identified by introducing the information of the parking space occupation number, berths on the road side are effectively managed, and manpower resources are saved.
Therefore, the intelligent supervision of the parking spaces of the small-sized vehicles can be realized through the invention, the road test parking spaces can be effectively managed, and the manpower resources are saved.
Those skilled in the art will appreciate that implementing all or part of the above described methods may be accomplished by way of a computer program stored on a non-transitory computer readable storage medium, which when executed, may comprise the steps of the embodiments of the methods described above. Any reference to memory, storage, database, or other medium used in the various embodiments provided herein may include non-volatile and/or volatile memory. The nonvolatile memory can include Read Only Memory (ROM), programmable ROM (PROM), electrically Programmable ROM (EPROM), electrically Erasable Programmable ROM (EEPROM), or flash memory. Volatile memory can include Random Access Memory (RAM) or external cache memory. By way of illustration and not limitation, RAM is available in a variety of forms such as Static RAM (SRAM), dynamic RAM (DRAM), synchronous DRAM (SDRAM), double Data Rate SDRAM (DDRSDRAM), enhanced SDRAM (ESDRAM), synchronous Link DRAM (SLDRAM), memory bus direct RAM (RDRAM), direct memory bus dynamic RAM (DRDRAM), and memory bus dynamic RAM (RDRAM), among others.
It will be apparent to those skilled in the art that, for convenience and brevity of description, only the above-described division of the functional units and modules is illustrated, and in practical application, the above-described functional distribution may be performed by different functional units and modules according to needs, i.e. the internal structure of the apparatus is divided into different functional units or modules to perform all or part of the above-described functions.
The above embodiments are only for illustrating the technical solution of the present invention, and are not limiting; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the technical solutions of the embodiments of the present invention, and are intended to be included in the scope of the present invention.

Claims (9)

1. A method for managing a parking space, the method being applied to a server, the method comprising:
acquiring a video frame shot by the camera equipment, identifying vehicles and pedestrians in the video frame, and acquiring scene information;
Tracking a target vehicle in the scene information, and identifying vehicle characteristic information to form target vehicle information;
combining the target vehicle information, the scene information and the parking space information, and processing vehicle events of target vehicles in the parking space, wherein the processing comprises detecting an entering event and an exiting event and updating the parking space information; the same parking space can be matched with a plurality of vehicles; the parking space information comprises an occupation number of a target vehicle in a parking space and binding information of the target vehicle and the parking space; and
combining the parking space information and the scene information, processing the quantity change of target vehicles in the parking space, detecting an off-site event and updating the parking space information;
the processing the vehicle event of the target vehicle in the parking space comprises the following steps:
judging whether a target vehicle in a parking space is consistent with a vehicle recorded in the parking space;
if the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, binding the target vehicle with the parking space, and distributing an occupied number;
if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space, but the entering event of the target vehicle is not recorded, judging the entering event; and
if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space and the entering event of the target vehicle is recorded, entering the leaving event judgment;
The entering event is judged based on the occupied number of the vehicle.
2. The parking space management method according to claim 1, wherein the target vehicle comprises an electric car, a bicycle, a motorcycle.
3. The space management method of claim 1, wherein a single vehicle can only be matched to a single space.
4. The parking space management method according to claim 1, wherein whether or not there is a shade is judged at the time of processing the in-parking-space target vehicle event and processing the change in the number of in-parking-space target vehicles;
if the occlusion exists, the processing is not performed, and the judgment is performed on the subsequent frames;
if no shielding exists, the related processing flow is entered.
5. The parking space management method according to claim 1, wherein the target vehicle information, the vehicle event of the target vehicle, the parking space information and the corresponding video frames are summarized and arranged to generate order information, the parking space state is updated, and the related images are saved in a reserved file; and simultaneously, the order information and the parking space state are sent to a user.
6. A parking space management device, the device comprising:
The acquisition module is used for acquiring video frames shot by the camera equipment and acquiring scene information by identifying vehicles and pedestrians in the video frames;
the tracking and identifying module is used for tracking the target vehicle in the scene information and identifying the vehicle characteristic information to form target vehicle information;
the detection processing module is used for detecting vehicle events and processing parking space information, and can detect and process the situation that one parking space parks a plurality of vehicles;
the sending module is used for sending the current parking space state information and order information to an owner client in a preset range;
the detection processing module comprises:
the first detection sub-module is used for combining the target vehicle information, the scene information and the parking space information, processing the vehicle event of the target vehicle in the parking space, including detecting the entering event and the leaving event, and updating the parking space information; the same parking space can be matched with a plurality of vehicles; the parking space information comprises an occupation number of a target vehicle in a parking space and binding information of the target vehicle and the parking space;
the second detection submodule is used for combining the parking space information and the scene information, processing the quantity change of target vehicles in the parking space, detecting an off-position event and updating the parking space information;
Wherein the first detection sub-module is further configured to:
judging whether a target vehicle in a parking space is consistent with a vehicle recorded in the parking space;
if the target vehicle in the parking space is inconsistent with the vehicle recorded in the parking space, binding the target vehicle with the parking space, and distributing an occupied number;
if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space, but the entering event of the target vehicle is not recorded, judging the entering event; and
if the target vehicle in the parking space is consistent with the vehicle recorded in the parking space and the entering event of the target vehicle is recorded, entering the leaving event judgment;
the entering event is judged based on the occupied number of the vehicle.
7. The parking space management device of claim 6, wherein the detection processing module comprises:
the parking event judging unit is used for judging a parking event of a target vehicle in the parking space;
the off-position event judging unit is used for judging the off-position event of the target vehicle in the parking space;
the parking space state updating unit is used for processing the number change of the target vehicles in the parking space, judging the off-position event generated by the number change of the target vehicles in the parking space and updating the parking space information.
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 the processor implements the parking space management method according to any one of claims 1 to 5 when executing the computer program.
9. A computer readable storage medium storing a computer program, wherein the computer program when executed by a processor implements the parking space management according to any one of claims 1 to 5.
CN202011204555.XA 2020-11-02 2020-11-02 Parking space management method and device, computer equipment and storage medium Active CN112365719B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011204555.XA CN112365719B (en) 2020-11-02 2020-11-02 Parking space management method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011204555.XA CN112365719B (en) 2020-11-02 2020-11-02 Parking space management method and device, computer equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112365719A CN112365719A (en) 2021-02-12
CN112365719B true CN112365719B (en) 2023-06-23

Family

ID=74512660

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011204555.XA Active CN112365719B (en) 2020-11-02 2020-11-02 Parking space management method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112365719B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113963571B (en) * 2021-10-28 2023-10-17 深圳市捷顺科技实业股份有限公司 Method and device for processing identification event of vehicle entering and exiting parking lot
CN114387695B (en) * 2022-01-24 2024-04-19 深圳市捷顺科技实业股份有限公司 Parking charging timing method and related device
CN115601738B (en) * 2022-09-23 2023-08-04 北京精英路通科技有限公司 Parking information acquisition method, device, equipment, storage medium and program product

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107146456A (en) * 2017-05-25 2017-09-08 中建钢构有限公司 Bicycle parking system
CN110322681B (en) * 2018-03-30 2021-03-26 杭州海康威视数字技术股份有限公司 Method and device for detecting parking space state
JP7218123B2 (en) * 2018-08-09 2023-02-06 日本信号株式会社 parking system
JP7208755B2 (en) * 2018-09-27 2023-01-19 アマノ株式会社 Parking lot management system, parking lot management device, parking lot management method, and program
CN110473426A (en) * 2019-08-20 2019-11-19 北京精英路通科技有限公司 Parking management method, device, computer equipment and storage medium
CN110930729A (en) * 2019-11-13 2020-03-27 北京智芯原动科技有限公司 Low-pole road side parking detection method and device based on video
CN111784857A (en) * 2020-06-22 2020-10-16 浙江大华技术股份有限公司 Parking space management method and device and computer storage medium

Also Published As

Publication number Publication date
CN112365719A (en) 2021-02-12

Similar Documents

Publication Publication Date Title
CN112365719B (en) Parking space management method and device, computer equipment and storage medium
CN110533923B (en) Parking management method and device, computer equipment and storage medium
JP7218535B2 (en) Traffic violation vehicle identification system and server
CN112509364B (en) Method and device for determining parking state of vehicle, computer equipment and storage medium
KR101735684B1 (en) Vehicle video recording and servicing apparatus and method, apparatus and method acquiring local area information using the same
CN112364742A (en) Parking space management method and device, computer equipment and storage medium
WO2021184570A1 (en) Method and apparatus for identifying driving behaviors of electric bicycle, and computer device
CN109714576B (en) Vehicle identification method, device and system based on video monitoring and server
CN113055823B (en) Method and device for managing shared bicycle based on road side parking
CN111311952A (en) Control method and device for vehicle parking, computer equipment and storage medium
US11978340B2 (en) Systems and methods for identifying vehicles using wireless device identifiers
CN112364898A (en) Image identification automatic labeling method, device, equipment and storage medium
CN111178224B (en) Object rule judging method, device, computer equipment and storage medium
CN112509325A (en) Video deep learning-based off-site illegal automatic discrimination method
CN112598925A (en) Parking management method and device, computer equipment and storage medium
CN112601049B (en) Video monitoring method and device, computer equipment and storage medium
CN114463626A (en) Vehicle axle identification method, system, electronic device and storage medium
CN117831177A (en) Multi-license-plate barrier gate control method, device and equipment for parking lot and storage medium
CN106251622A (en) Vehicle road monitor evidence collecting method and system thereof
CN112382101B (en) Parking space management method and device, computer equipment and storage medium
CN111462480B (en) Traffic image evidence verification method and device, computer equipment and storage medium
CN113689671B (en) Urban underground space security alarm method and system
KR20210035360A (en) License Plate Recognition Method and Apparatus for roads
CN114566058B (en) Management method and system for operation and maintenance monitoring data of highway
CN113269011B (en) Vehicle detection method, device, equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant