CN111241879B - Vehicle detection method, device, electronic equipment and readable storage medium - Google Patents

Vehicle detection method, device, electronic equipment and readable storage medium Download PDF

Info

Publication number
CN111241879B
CN111241879B CN201811442224.2A CN201811442224A CN111241879B CN 111241879 B CN111241879 B CN 111241879B CN 201811442224 A CN201811442224 A CN 201811442224A CN 111241879 B CN111241879 B CN 111241879B
Authority
CN
China
Prior art keywords
vehicle
target vehicle
designated area
attribute information
area
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
CN201811442224.2A
Other languages
Chinese (zh)
Other versions
CN111241879A (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.)
Hangzhou Hikvision Digital Technology Co Ltd
Original Assignee
Hangzhou Hikvision Digital 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 Hangzhou Hikvision Digital Technology Co Ltd filed Critical Hangzhou Hikvision Digital Technology Co Ltd
Priority to CN201811442224.2A priority Critical patent/CN111241879B/en
Publication of CN111241879A publication Critical patent/CN111241879A/en
Application granted granted Critical
Publication of CN111241879B publication Critical patent/CN111241879B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06VIMAGE OR VIDEO RECOGNITION OR UNDERSTANDING
    • G06V20/00Scenes; Scene-specific elements
    • G06V20/40Scenes; Scene-specific elements in video content
    • G06V20/41Higher-level, semantic clustering, classification or understanding of video scenes, e.g. detection, labelling or Markovian modelling of sport events or news items

Abstract

The application provides a vehicle detection method, a device, electronic equipment and a readable storage medium, wherein the method comprises the following steps: detecting whether a vehicle enters a designated area of a gas station; when the target vehicle is detected to enter the designated area, acquiring vehicle attribute information of the target vehicle; wherein the vehicle attribute information includes license plate information; detecting whether the target vehicle stays in the designated area at regular time; and when the target vehicle is determined to leave the designated area, determining the residence time of the target vehicle in the designated area. The method can realize real-time detection of the residence time of the vehicle in the appointed area of the gas station, and improves the statistical efficiency of the residence time of the vehicle in the gas station.

Description

Vehicle detection method, device, electronic equipment and readable storage medium
Technical Field
The present application relates to video monitoring technologies, and in particular, to a vehicle detection method, apparatus, electronic device, and readable storage medium.
Background
As an important technical means of social security management, the video monitoring system is increasingly widely applied and deployed in the field of social security maintenance.
For a gas station, because the refueling area is limited, when a vehicle stays in the refueling area for a long time, the normal service operation of the vehicle is easily affected, so that the real-time statistics of the stay time of the vehicle in the refueling area of the gas station becomes a requirement.
However, practice finds that the residence time of the vehicle in the refueling area of the gas station can only be counted manually, and the statistical efficiency of the vehicle residence time is poor.
Disclosure of Invention
In view of the above, the present application provides a vehicle detection method and device thereof, so as to solve the problem of poor statistical efficiency of the vehicle residence time in the oil filling station in the prior art.
Specifically, the application is realized by the following technical scheme:
according to a first aspect of an embodiment of the present application, there is provided a vehicle detection method including:
detecting whether a vehicle enters a designated area of a gas station;
when the target vehicle is detected to enter the designated area, acquiring vehicle attribute information of the target vehicle; wherein the vehicle attribute information includes license plate information;
detecting whether the target vehicle stays in the designated area at regular time;
and when the target vehicle is determined to leave the designated area, determining the residence time of the target vehicle in the designated area.
According to a second aspect of an embodiment of the present application, there is provided a vehicle detection apparatus including:
a detection unit for detecting whether a vehicle enters a specified area of the gas station;
an acquisition unit configured to acquire vehicle attribute information of a target vehicle when the detection unit detects that the target vehicle enters the specified area; wherein the vehicle attribute information includes license plate information;
the detection unit is also used for detecting whether the target vehicle stays in the designated area at regular time;
and the determining unit is used for determining the stay time of the target vehicle in the designated area when the target vehicle is determined to leave the designated area.
According to a third aspect of an embodiment of the present application, there is provided an electronic device, including a processor, a communication interface, a memory, and a communication bus, where the processor, the communication interface, and the memory complete communication with each other through the communication bus;
a memory for storing a computer program;
and the processor is used for realizing the steps of the vehicle detection method when executing the program stored in the memory.
According to a fourth aspect of embodiments of the present application, there is provided a computer-readable storage medium, wherein a computer program is stored in the computer-readable storage medium, which when executed by a processor, implements the above-described vehicle detection method steps.
According to the vehicle detection method, whether the vehicle enters the specified area of the gas station or not is detected, when the fact that the target vehicle enters the specified area is detected, the vehicle attribute information of the target vehicle is obtained, and whether the target vehicle stays in the specified area or not is detected at regular time; when the target vehicle is determined to leave the designated area, the residence time of the target vehicle in the designated area is determined, so that the real-time detection of the residence time of the vehicle in the designated area of the gas station is realized, and the efficiency of statistics of the residence time of the vehicle in the gas station is improved.
Drawings
FIG. 1 is a flow chart of a method of vehicle detection according to an exemplary embodiment of the present application;
FIG. 2 is a schematic architecture diagram of a specific application scenario in accordance with an exemplary embodiment of the present application;
fig. 3 is a schematic structural view of a vehicle detecting device according to an exemplary embodiment of the present application;
fig. 4 is a schematic structural view of a vehicle detecting device shown in still another exemplary embodiment of the present application;
fig. 5 is a schematic structural view of a vehicle detecting device shown in still another exemplary embodiment of the present application;
fig. 6 is a schematic structural view of a vehicle detecting device shown in still another exemplary embodiment of the present application;
fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an exemplary embodiment of the present application.
Detailed Description
Reference will now be made in detail to exemplary embodiments, examples of which are illustrated in the accompanying drawings. When the following description refers to the accompanying drawings, the same numbers in different drawings refer to the same or similar elements, unless otherwise indicated. The implementations described in the following exemplary examples do not represent all implementations consistent with the application. Rather, they are merely examples of apparatus and methods consistent with aspects of the application as detailed in the accompanying claims.
The terminology used herein is for the purpose of describing particular embodiments only and is not intended to be limiting of the application. As used in this specification and the appended claims, the singular forms "a," "an," and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise.
In order to better understand the technical solution provided by the embodiments of the present application and make the above objects, features and advantages of the embodiments of the present application more obvious, the technical solution in the embodiments of the present application will be described in further detail below with reference to the accompanying drawings.
Referring to fig. 1, a flow chart of a vehicle detection method according to an embodiment of the present application is provided, wherein the vehicle detection method may be applied to a device with a vehicle detection function, such as an NVR (Network Video Recorder, network hard disk recorder) with a vehicle detection function, deployed in a video monitoring system of a gas station, and as shown in fig. 1, the vehicle detection method may include the following steps:
for convenience of description and understanding, the following description will take NVR as an example of the execution subjects of step S100 to step S130.
Step S100, detecting whether a vehicle enters a specified area of the gas station.
In the embodiment of the application, the designated area of the gas station may include an area in the gas station where the vehicle stop detection needs to be performed, for example, a refueling area of the gas station, that is, an area with a preset size on both sides of a refueling island.
In the embodiment of the application, the NVR can acquire the monitoring video of the designated area of the gas station through the front-end monitoring equipment (such as IPC (Internet Protocol Camera, webcam)) and detect whether the vehicle enters the designated area.
In one embodiment of the present application, the detecting whether the vehicle enters the designated area of the gas station may include:
and carrying out video analysis on the monitoring video of the designated area to determine whether the vehicle enters the designated area.
In this embodiment, the NVR may perform video analysis on the monitoring video of the designated area acquired by the front-end monitoring device to determine whether there is a vehicle entering the designated area.
In another embodiment of the present application, the detecting whether the vehicle enters the designated area may include:
and capturing images of the monitoring video of the designated area at fixed time, and analyzing the captured images to determine whether the vehicle enters the designated area.
In this embodiment, the NVR may capture a video of the surveillance of the designated area at regular time and analyze the captured image to determine whether there is a vehicle entry in the designated area.
In still another embodiment of the present application, the detecting whether a vehicle enters the designated area may include:
when the oil gun is detected to be lifted, capturing images of the monitoring video of the designated area, and analyzing the captured images to determine whether a vehicle enters the designated area.
In this embodiment, the NVR may be triggered to capture the surveillance video of the designated area by detecting that the gun is lifted.
For example, whether the oil gun is lifted or not may be detected by video analysis of a monitoring video of a designated area.
Or alternatively, the process may be performed,
the specific sensors can be arranged on the oiling machine and the oil gun, when the oil gun is lifted, the oiling machine can send a capture triggering instruction to the NVR, and the NVR is triggered to capture the monitoring video of the designated area; when the NVR receives the grip trigger command, it may be determined that the gun is lifted.
Correspondingly, when the NVR detects that the oil gun is lifted, capturing a monitoring video of the designated area, and analyzing the captured image to determine whether a vehicle enters the designated area.
It should be noted that, in the embodiment of the present application, the scheme for detecting whether the vehicle enters the designated area described in the above embodiment may be implemented simultaneously in multiple ways, so as to reduce the occurrence of missed detection and improve the accuracy of vehicle detection.
For example, the NVR may detect whether a vehicle enters the specified area by performing video analysis on the surveillance video of the specified area on one hand, and detect whether a vehicle enters the specified area by capturing images of the surveillance video of the specified area at regular time and analyzing the captured images on the other hand.
For another example, the NVR may detect whether the vehicle enters the specified area by performing video analysis on the surveillance video of the specified area on one hand, and detect whether the vehicle enters the specified area by performing capture on the surveillance video of the specified area and analyzing the captured image when receiving the capture trigger command on the other hand.
Step S110, when the target vehicle is detected to enter a designated area, acquiring vehicle attribute information of the target vehicle; wherein the vehicle attribute information includes license plate information.
In the embodiment of the present application, the target vehicle does not refer to a fixed vehicle, but may refer to any vehicle that is detected to enter the command area, and the present application will not be repeated.
In the embodiment of the application, when the NVR detects that the target vehicle enters the designated area, the NVR can acquire the vehicle attribute information of the target vehicle.
The vehicle attribute information may include license plate information (e.g., license plate number), among others.
It should be noted that, in the embodiment of the present application, the vehicle attribute information is not limited to include license plate information, and may include other attribute information such as a vehicle body color, a vehicle brand, a model, and the like.
In one embodiment of the present application, the acquiring the vehicle attribute information of the target vehicle may include:
and receiving the vehicle attribute information of the target vehicle sent by the monitoring front-end equipment.
In this embodiment, when the monitoring front-end device includes a monitoring device having a vehicle detecting and analyzing function, the monitoring device having a vehicle detecting and analyzing function may also detect whether a vehicle enters the designated area, and when it is detected that the target vehicle enters the designated area, the monitoring device may take a snapshot of the target vehicle and analyze the snapshot picture to obtain vehicle attribute information of the target vehicle, and send the vehicle attribute information of the target vehicle to the NVR.
In another embodiment of the present application, the acquiring the vehicle attribute information of the target vehicle may include:
acquiring a vehicle picture of a target vehicle;
and analyzing the vehicle picture of the target vehicle to obtain the vehicle attribute information of the target vehicle.
In this embodiment, when the NVR detects that the target vehicle enters the specified area, the NVR may acquire a vehicle picture of the target vehicle.
In one example, the acquiring the vehicle picture of the target vehicle may include:
and receiving a vehicle picture of the target vehicle sent by the monitoring front-end equipment.
In this example, when the monitoring front-end device includes a monitoring device having a vehicle detection and snapshot function, the monitoring device having a vehicle detection and snapshot function may snapshot the target vehicle to obtain a vehicle picture of the target vehicle when detecting that the target vehicle enters the designated area, and send the vehicle picture of the target vehicle to the NVR.
In another example, the acquiring the vehicle picture of the target vehicle may include:
and capturing a vehicle picture of the target vehicle when the target vehicle is determined to enter the designated area according to the monitoring video of the designated area.
In this example, when the NVR supports the surveillance video-based vehicle analysis function, the NVR may capture a vehicle picture of the target vehicle when it is determined that the target vehicle enters the instruction area according to the surveillance video of the specified area.
In this embodiment, when the NVR obtains the vehicle picture of the target vehicle, the vehicle picture of the target vehicle may be analyzed to obtain the vehicle attribute information of the target vehicle.
It should be noted that, in the embodiment of the present application, the NVR receiving the vehicle attribute information of the target vehicle sent by the monitoring front-end device and the NVR analyzing the vehicle picture of the target vehicle to obtain the vehicle attribute information of the target vehicle may be implemented simultaneously.
In this case, the NVR receives the vehicle attribute information (referred to herein as first vehicle attribute information) of the target vehicle transmitted from the monitoring front-end device, and obtains the vehicle attribute information (referred to herein as second vehicle attribute information) of the target vehicle by analyzing the vehicle picture of the target vehicle, and may directly determine the first vehicle attribute information as the vehicle attribute information of the target vehicle, or the NVR may directly determine the second vehicle attribute information as the vehicle attribute information of the target vehicle; alternatively, the NVR may combine the first vehicle attribute information and the second vehicle attribute information.
For example, the NVR may compare the first vehicle attribute information and the second vehicle attribute information of the target vehicle; adding attribute information which exists in the first vehicle attribute information but does not exist in the second vehicle attribute information to the vehicle attribute information of the target vehicle; adding the vehicle attribute information in the second vehicle attribute information to the vehicle attribute information of the target vehicle for the vehicle attribute information existing in both the first vehicle attribute information and the second vehicle attribute information; and adding the vehicle attribute information which does not exist in the first vehicle attribute information but exists in the second vehicle attribute information to the vehicle attribute information of the target vehicle, and further obtaining the vehicle attribute information of the target vehicle.
Step S120, periodically detecting whether the target vehicle is staying in the designated area.
In the embodiment of the application, after the NVR detects that the target vehicle enters the designated area, the NVR can also detect whether the target vehicle stays in the designated area or not at regular time.
In one embodiment of the present application, the above-described timing detection of whether the target vehicle stays in the designated area may include:
capturing images of the monitoring video of the designated area at regular time, and analyzing the captured images;
when a vehicle exists in a designated area, acquiring vehicle attribute information of the vehicle;
if the vehicle attribute information is matched with the vehicle attribute of the target vehicle, determining that the target vehicle stays in a designated area;
and if the vehicle attribute information is not matched with the vehicle attribute of the target vehicle, determining that the target vehicle leaves the designated area.
In this embodiment, the NVR may periodically capture a surveillance video of the designated area and analyze the captured image to determine whether a vehicle is present in the designated area.
In this embodiment, when the NVR determines that the vehicle exists in the specified area, the NVR may acquire the vehicle attribute information of the vehicle and determine whether the vehicle attribute information of the vehicle matches the vehicle attribute information of the target vehicle.
When the license plate number of the vehicle is the same as that of the target vehicle, determining that the vehicle attribute information of the vehicle is matched with the vehicle attribute information of the target vehicle; otherwise, it is determined that the vehicle attribute information of the vehicle does not match the vehicle attribute information of the target vehicle.
In this embodiment, when the NVR determines that the vehicle attribute information of the vehicle matches the vehicle attribute information of the target vehicle, the NVR may determine that the target vehicle stays in the specified area;
when the NVR determines that the vehicle attribute information of the vehicle does not match the vehicle attribute information of the target vehicle, the NVR may determine that the target vehicle leaves the designated area.
In this embodiment, when the NVR detects that there is no vehicle in the designated area, the NVR may also determine that the target vehicle leaves the designated area.
Step S130, when the target vehicle is determined to leave the designated area, the residence time of the target vehicle in the designated area is determined.
In the embodiment of the application, when the NVR determines that the target vehicle leaves the designated area, the NVR can determine the stay time of the target vehicle in the designated area.
For example, the NVR may determine the time between when the target vehicle is detected to enter the specified area and when the target vehicle is determined to leave the specified area as the residence time of the target vehicle in the specified area.
In order to enable those skilled in the art to better understand the technical scheme provided by the embodiment of the present application, the technical scheme provided by the embodiment of the present application is described below in connection with a specific application scenario.
Fig. 2 is a schematic architecture diagram of a specific application scenario provided in an embodiment of the present application. As shown in fig. 2, the application scenario may include an NVR, a platform, an intelligent vehicle snapshot machine, and/or a non-intelligent IPC (in the figure, an intelligent vehicle snapshot machine and a non-intelligent IPC are taken as examples), and a fuel dispenser.
The NVR supports access of a non-intelligent IPC and an intelligent vehicle snapshot machine, for the intelligent vehicle snapshot machine, the NVR supports reporting of vehicle detection information (vehicle attribute information and vehicle pictures), for the non-intelligent IPC, the NVR supports analysis of whether a vehicle enters a designated area (comprising any one of areas A, B, C and D) according to the transmitted code stream information, namely, the NVR supports vehicle analysis based on DSP code streams.
When the NVR detects that a vehicle enters a designated area through the DSP module, the acquired vehicle picture is sent to the analysis module, and vehicle attribute information (including license plate information, vehicle body color, vehicle brand, vehicle type and the like) is analyzed by the analysis module.
The NVR also supports timed capture, i.e., capturing a surveillance video at a fixed time, and analyzing the captured image by an analysis module to determine whether a vehicle is present to enter a designated area.
The fuel dispenser may trigger the NVR to pick up a picture (referred to herein as a manual pick up) when it detects that the gun is lifted; the NVR may analyze the captured picture by an analysis module to determine if there is a vehicle entering the designated area.
When the NVR determines that the vehicle exists in the designated area, the monitoring video is captured regularly, and vehicle attribute information of the vehicle in the designated area is acquired through an analysis module.
When the NVR detects a first license plate information in the designated area (the license plate information can be sent to the NVR by an intelligent snapshot machine, can also be obtained by analyzing the NVR based on DSP code rate, or can be obtained by analyzing the NVR by means of timing or manual capture), the NVR can upload the vehicle attribute information of the vehicle to the platform.
When the NVR determines that the vehicle is leaving the designated area, the vehicle's residence time within the designated area may also be uploaded to the platform.
Based on the application scenario shown in fig. 2, the implementation flow of the vehicle detection scheme provided by the embodiment of the application includes:
1. no vehicles in designated area
On one hand, the NVR detects whether a vehicle enters a specified area in a manner based on DSP code stream analysis; on the other hand, whether the vehicle enters the designated area or not is detected by means of a timing diagram.
The timing diagram grabbing mode and the DSP code stream analysis mode form complementary detection, and missing detection after a vehicle enters an area is avoided.
2. Vehicle entering designated area
The intelligent snapshot machine captures that the vehicle enters the specified area, or/and the NVR detects that the vehicle enters the specified area based on DSP code stream analysis, or/and the NVR detects that the vehicle enters the specified area based on timing snapshot analysis.
When the NVR detects that the vehicle enters the specified area through any mode, the NVR acquires the vehicle attribute information of the vehicle entering the specified area and uploads the acquired vehicle attribute information to the platform.
When the NVR detects that the vehicle enters the specified area by two or three means, it is necessary to determine whether the vehicle attribute information of the vehicle has been uploaded or not after acquiring the vehicle attribute information of the vehicle entering the specified area before uploading the vehicle attribute information.
If so, judging whether the difference between the current time and the time of uploading the vehicle attribute information of the vehicle last time is larger than an alarm uploading interval (such as 5 minutes); if the vehicle attribute information is larger than the vehicle attribute information, uploading the vehicle attribute information to a platform; if the vehicle attribute information is smaller than or equal to the vehicle attribute information, uploading the vehicle attribute information of the vehicle is refused.
If not, uploading the vehicle attribute information of the vehicle.
3. Vehicle is not refueled
If the vehicle enters the designated area without refueling and the vehicle is detected, a parking analysis mechanism is triggered, the NVR continuously and periodically grasps the image to analyze whether the vehicle in the designated area exists or not, and the judgment condition is that the license plate information detected in the designated area is continuously the license plate information of the vehicle.
And uploading the vehicle attribute information of the vehicle according to the minimum alarm uploading interval every time the NVR detects that the license plate information is the vehicle attribute information of the license plate information of the vehicle.
4. Vehicle refueling
If the vehicle stays in the designated area and requires refueling, triggering the NVR to capture images when the oil gun is lifted, and then analyzing the attribute information of the vehicle on the captured images.
If the analyzed vehicle attribute information (mainly license plate information) is not matched with the previously detected vehicle attribute information, uploading the vehicle attribute information to a platform; if the analyzed vehicle attribute information is matched with the previously detected vehicle attribute information, judging whether the difference between the current time and the time of uploading the vehicle attribute information is larger than the minimum alarm interval or not.
If the vehicle attribute information is larger than the vehicle attribute information, uploading the vehicle attribute information; otherwise, the uploading of the vehicle attribute information is refused.
5. The vehicle stays in the designated area
If the vehicle enters the designated area and is completely filled with oil and the vehicle is detected, a parking analysis mechanism is triggered, the NVR continuously and periodically grasps the image to analyze whether the vehicle in the designated area exists or not, and the judgment condition is that the license plate information detected in the area is continuously the license plate information of the vehicle.
And uploading a parking alarm according to the minimum parking alarm interval when the vehicle in the appointed area exists, and informing the platform that the vehicle stays in the appointed area continuously.
6. The vehicle leaves the designated area
When the NVR detects that no vehicle exists in the appointed area or the vehicle exists in the appointed area, but the license plate information of the vehicle is different from the license plate information detected last time, the vehicle is determined to leave the appointed area, and at the moment, the NVR uploads the vehicle to the platform to leave, and the residence time of the vehicle in the appointed area is uploaded.
In the embodiment of the application, whether the target vehicle stays in the designated area or not is detected by detecting whether the vehicle enters the designated area of the gas station, and when the target vehicle is detected to enter the designated area, the vehicle attribute information of the target vehicle is acquired and whether the target vehicle stays in the designated area is detected at regular time; when the target vehicle is determined to leave the designated area, the residence time of the target vehicle in the designated area is determined, so that the real-time detection of the residence time of the vehicle in the designated area of the gas station is realized, and the efficiency of statistics of the residence time of the vehicle in the gas station is improved.
The method provided by the application is described above. The device provided by the application is described below:
referring to fig. 3, a schematic structural diagram of a vehicle detection device according to an embodiment of the present application is provided, where the vehicle detection device may be applied to a device having a vehicle detection function in the video monitoring system in the above embodiment, and as shown in fig. 3, the vehicle detection device may include:
a detection unit 310 for detecting whether a vehicle enters a designated area of a gas station;
an acquisition unit 320 configured to acquire vehicle attribute information of a target vehicle when the detection unit 310 detects that the target vehicle enters the specified area; wherein the vehicle attribute information includes license plate information;
the detecting unit 310 is further configured to detect at regular time whether the target vehicle stays in the specified area;
and a determining unit 330 configured to determine a stay time of the target vehicle in the specified area when it is determined that the target vehicle leaves the specified area.
In an alternative embodiment, the detecting unit 310 is specifically configured to perform video analysis on the surveillance video of the designated area, so as to determine whether a vehicle enters the designated area.
In an alternative embodiment, the detecting unit 310 is specifically configured to capture a picture of the surveillance video of the specified area at a fixed time, and analyze the captured picture to determine whether a vehicle enters the specified area.
In an alternative embodiment, the detecting unit 310 is specifically configured to capture a picture of the surveillance video of the designated area when the oil gun is detected to be lifted, and analyze the captured picture to determine whether a vehicle enters the designated area.
In an alternative embodiment, the obtaining unit 320 is specifically configured to receive the vehicle attribute information of the target vehicle sent by the monitoring front-end device.
In an alternative embodiment, the obtaining unit 320 is specifically configured to obtain a vehicle picture of the target vehicle; and analyzing the vehicle picture of the target vehicle to obtain the vehicle attribute information of the target vehicle.
In an optional implementation manner, the detecting unit 310 is specifically configured to capture a picture of the monitoring video of the specified area at a fixed time, and analyze the captured picture;
the acquiring unit 320 is further configured to acquire, when a vehicle exists in the specified area, vehicle attribute information of the vehicle;
the determining unit 330 is specifically configured to determine that the target vehicle stays in a specified area if the vehicle attribute information matches the vehicle attribute of the target vehicle;
the determining unit 330 is further specifically configured to determine that the target vehicle leaves the specified area if the vehicle attribute information does not match the vehicle attribute of the target vehicle.
In an alternative embodiment, the determining unit 330 is further configured to determine that the target vehicle leaves the specified area when no vehicle exists in the specified area.
In an alternative embodiment, as shown in fig. 4, the apparatus further includes:
a first uploading unit 340 configured to upload attribute information of the target vehicle when the detecting unit 310 detects that the target vehicle enters the specified area;
the first uploading unit 340 is further configured to upload a residence time of the target vehicle in the specified area when the determining unit 330 determines that the target vehicle leaves the specified area.
In an alternative embodiment, as shown in fig. 5, the apparatus further comprises:
a second uploading unit 350 for uploading a parking alert for the target vehicle when the detecting unit 310 detects that there is a vehicle in the designated area and the vehicle attribute information of the vehicle matches the vehicle attribute information of the target vehicle.
In an alternative embodiment, as shown in fig. 6, the apparatus further comprises:
a judging unit 360, configured to judge whether a difference between a current time and a time of last uploading a parking alert for the target vehicle is greater than a minimum parking alert interval;
the second uploading unit 350 is specifically configured to upload the parking alert for the target vehicle if the difference between the current time and the time of last uploading the parking alert for the target vehicle is greater than the minimum parking alert interval; otherwise, refusing to upload the parking warning for the target vehicle
Fig. 7 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application. The electronic device may include a processor 701, a communication interface 702, a memory 703, and a communication bus 704. The processor 701, the communication interface 702, and the memory 703 perform communication with each other via the communication bus 704. Wherein the memory 703 has stored thereon a computer program; the processor 701 can execute the vehicle detection method described above by executing the program stored on the memory 703.
The memory 703 referred to herein may be any electronic, magnetic, optical, or other physical storage device that may contain or store information, such as executable instructions, data, or the like. For example, the memory 703 may be: RAM (Radom Access Memory, random access memory), volatile memory, non-volatile memory, flash memory, a storage drive (e.g., hard drive), a solid state drive, any type of storage disk (e.g., optical disk, dvd, etc.), or a similar storage medium, or a combination thereof.
Embodiments of the present application also provide a machine-readable storage medium, such as memory 703 in fig. 7, storing a computer program executable by processor 701 in the electronic device shown in fig. 7 to implement the vehicle detection method described above.
It is noted that relational terms such as first and second, and the like are used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Moreover, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
The foregoing description of the preferred embodiments of the application is not intended to be limiting, but rather to enable any modification, equivalent replacement, improvement or the like to be made within the spirit and principles of the application.

Claims (14)

1. A vehicle detection method applied to a video monitoring system deployed at a gas station, the method comprising:
detecting whether a vehicle enters a designated area of a gas station;
when the target vehicle is detected to enter the designated area, acquiring vehicle attribute information of the target vehicle; wherein the vehicle attribute information includes license plate information;
detecting whether the target vehicle stays in the designated area at regular time;
determining a residence time of the target vehicle in the designated area when the target vehicle is determined to leave the designated area;
upon detecting that the target vehicle enters the designated area, the method further includes:
uploading a parking alert for the target vehicle when it is detected that a vehicle exists in the designated area and that the vehicle attribute information of the vehicle matches the vehicle attribute information of the target vehicle;
before uploading the parking warning for the target vehicle, the method further comprises:
judging whether the difference between the current time and the last time of uploading the parking alarm for the target vehicle is larger than the minimum parking alarm interval or not;
if yes, determining to execute the step of uploading the parking warning for the target vehicle;
otherwise, refusing to upload the parking alarm for the target vehicle.
2. The method of claim 1, wherein detecting whether a vehicle entry exists in a designated area of a gas station comprises:
video analysis is carried out on the monitoring video of the appointed area so as to determine whether a vehicle enters the appointed area or not; and/or the number of the groups of groups,
capturing images of the monitoring video of the appointed area at regular time, and analyzing the captured images to determine whether a vehicle enters the appointed area or not; and/or the number of the groups of groups,
and when the oil gun is detected to be lifted, capturing a monitoring video of the designated area, and analyzing the captured image to determine whether a vehicle enters the designated area.
3. The method according to claim 1, wherein the acquiring the vehicle attribute information of the target vehicle includes:
receiving vehicle attribute information of the target vehicle sent by monitoring front-end equipment; and/or the number of the groups of groups,
acquiring a vehicle picture of the target vehicle; and analyzing the vehicle picture of the target vehicle to obtain the vehicle attribute information of the target vehicle.
4. The method of claim 1, wherein the timing detection of whether the target vehicle is stationary in the designated area comprises:
capturing images of the monitoring video of the appointed area at regular time, and analyzing the captured images;
when a vehicle exists in the designated area, acquiring vehicle attribute information of the vehicle;
if the vehicle attribute information is matched with the vehicle attribute of the target vehicle, determining that the target vehicle stays in a designated area;
and if the vehicle attribute information is not matched with the vehicle attribute of the target vehicle, determining that the target vehicle leaves the designated area.
5. The method of claim 4, further comprising, after analyzing the captured picture:
and when no vehicle exists in the designated area, determining that the target vehicle leaves the designated area.
6. The method according to claim 1, wherein the method further comprises:
when the target vehicle is detected to enter the designated area, uploading attribute information of the target vehicle;
and uploading the residence time of the target vehicle in the designated area when the target vehicle is determined to leave the designated area.
7. A vehicle detection apparatus for use in a video surveillance system deployed at a gas station, the apparatus comprising:
a detection unit for detecting whether a vehicle enters a specified area of the gas station;
an acquisition unit configured to acquire vehicle attribute information of a target vehicle when the detection unit detects that the target vehicle enters the specified area; wherein the vehicle attribute information includes license plate information;
the detection unit is also used for detecting whether the target vehicle stays in the designated area at regular time;
a determining unit configured to determine a stay time of the target vehicle in the specified area when it is determined that the target vehicle leaves the specified area;
the apparatus further comprises:
a second uploading unit configured to upload a parking warning for the target vehicle when the detecting unit detects that a vehicle exists in the specified area and the vehicle attribute information of the vehicle matches the vehicle attribute information of the target vehicle;
the apparatus further comprises:
the judging unit is used for judging whether the difference value between the current time and the time of uploading the parking alarm for the target vehicle last time is larger than the minimum parking alarm interval or not;
the second uploading unit is specifically configured to upload the parking alarm for the target vehicle if the difference between the current time and the time of last uploading the parking alarm for the target vehicle is greater than the minimum parking alarm interval; otherwise, refusing to upload the parking alarm for the target vehicle.
8. The apparatus of claim 7, wherein the device comprises a plurality of sensors,
the detection unit is specifically configured to perform video analysis on the monitoring video of the specified area to determine whether a vehicle enters the specified area; and/or the number of the groups of groups,
the detection unit is specifically used for capturing images of the monitoring video of the designated area at fixed time and analyzing the captured images to determine whether a vehicle enters the designated area or not; and/or the number of the groups of groups,
the detection unit is specifically used for capturing images of the monitoring video of the designated area when the oil gun is detected to be lifted, and analyzing the captured images to determine whether a vehicle enters the designated area.
9. The apparatus of claim 8, wherein the device comprises a plurality of sensors,
the acquisition unit is specifically configured to receive vehicle attribute information of the target vehicle sent by the monitoring front-end device; and/or the number of the groups of groups,
the acquisition unit is specifically used for acquiring a vehicle picture of the target vehicle; and analyzing the vehicle picture of the target vehicle to obtain the vehicle attribute information of the target vehicle.
10. The apparatus of claim 9, wherein the device comprises a plurality of sensors,
the detection unit is specifically used for capturing images of the monitoring video of the designated area at fixed time and analyzing the captured images;
the acquisition unit is further used for acquiring vehicle attribute information of the vehicle when the vehicle exists in the designated area;
the determining unit is specifically configured to determine that the target vehicle stays in a specified area if the vehicle attribute information matches the vehicle attribute of the target vehicle;
the determining unit is further specifically configured to determine that the target vehicle leaves the specified area if the vehicle attribute information does not match the vehicle attribute of the target vehicle.
11. The apparatus of claim 10, wherein the device comprises a plurality of sensors,
the determining unit is further configured to determine that the target vehicle leaves the specified area when there is no vehicle in the specified area.
12. The apparatus of claim 7, wherein the apparatus further comprises:
a first uploading unit configured to upload attribute information of the target vehicle when the detection unit detects that the target vehicle enters the specified area;
the first uploading unit is further configured to upload a residence time of the target vehicle in the designated area when the determining unit determines that the target vehicle leaves the designated area.
13. The electronic equipment is characterized by comprising a processor, a communication interface, a memory and a communication bus, wherein the processor, the communication interface and the memory are communicated with each other through the communication bus;
a memory for storing a computer program;
a processor for implementing the method steps of any one of claims 1-6 when executing a program stored on a memory.
14. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored therein a computer program which, when executed by a processor, implements the method steps of any of claims 1-6.
CN201811442224.2A 2018-11-29 2018-11-29 Vehicle detection method, device, electronic equipment and readable storage medium Active CN111241879B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811442224.2A CN111241879B (en) 2018-11-29 2018-11-29 Vehicle detection method, device, electronic equipment and readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811442224.2A CN111241879B (en) 2018-11-29 2018-11-29 Vehicle detection method, device, electronic equipment and readable storage medium

Publications (2)

Publication Number Publication Date
CN111241879A CN111241879A (en) 2020-06-05
CN111241879B true CN111241879B (en) 2023-09-26

Family

ID=70873848

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811442224.2A Active CN111241879B (en) 2018-11-29 2018-11-29 Vehicle detection method, device, electronic equipment and readable storage medium

Country Status (1)

Country Link
CN (1) CN111241879B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112907832A (en) * 2021-01-19 2021-06-04 浙江大华技术股份有限公司 Processing method of refueling event, video processing device and storage medium

Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003150991A (en) * 2001-11-15 2003-05-23 Nakajima Tsushinki Kogyo Kk On-street parking fee collecting method and device
CN202795748U (en) * 2012-09-06 2013-03-13 上海市政工程设计研究总院(集团)有限公司 Automatic recording device for rule-breaking parking on roadside
CN103093194A (en) * 2013-01-07 2013-05-08 信帧电子技术(北京)有限公司 Breach of regulation vehicle detection method and device based on videos
CN105741560A (en) * 2016-02-22 2016-07-06 中国石油天然气股份有限公司安徽销售分公司 Vehicle identification method used for gas station
CN105809972A (en) * 2016-03-24 2016-07-27 牛力伟 Parking management method, device and system
CN106127143A (en) * 2016-06-23 2016-11-16 昆明理工大学 A kind of highway parking offense detection method
CN106485797A (en) * 2016-09-30 2017-03-08 广东中星微电子有限公司 Parking timing method and time parking devices
WO2017117964A1 (en) * 2016-01-05 2017-07-13 中兴通讯股份有限公司 Alarm monitoring method and apparatus
CN108288386A (en) * 2018-01-29 2018-07-17 深圳信路通智能技术有限公司 Road-surface concrete tracking based on video
CN108364359A (en) * 2018-03-30 2018-08-03 深圳市金溢科技股份有限公司 Parking charge method, server, system and the mobile terminal for parking charge
CN108389396A (en) * 2018-02-28 2018-08-10 北京精英智通科技股份有限公司 A kind of vehicle matching process, device and charge system based on video

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9104939B2 (en) * 2011-08-16 2015-08-11 Xerox Corporation Emergency rescue vehicle video based violation enforcement method and system
TWI539823B (en) * 2014-09-29 2016-06-21 晶睿通訊股份有限公司 Method for switching video images and monitoring system

Patent Citations (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003150991A (en) * 2001-11-15 2003-05-23 Nakajima Tsushinki Kogyo Kk On-street parking fee collecting method and device
CN202795748U (en) * 2012-09-06 2013-03-13 上海市政工程设计研究总院(集团)有限公司 Automatic recording device for rule-breaking parking on roadside
CN103093194A (en) * 2013-01-07 2013-05-08 信帧电子技术(北京)有限公司 Breach of regulation vehicle detection method and device based on videos
WO2017117964A1 (en) * 2016-01-05 2017-07-13 中兴通讯股份有限公司 Alarm monitoring method and apparatus
CN105741560A (en) * 2016-02-22 2016-07-06 中国石油天然气股份有限公司安徽销售分公司 Vehicle identification method used for gas station
CN105809972A (en) * 2016-03-24 2016-07-27 牛力伟 Parking management method, device and system
CN106127143A (en) * 2016-06-23 2016-11-16 昆明理工大学 A kind of highway parking offense detection method
CN106485797A (en) * 2016-09-30 2017-03-08 广东中星微电子有限公司 Parking timing method and time parking devices
CN108288386A (en) * 2018-01-29 2018-07-17 深圳信路通智能技术有限公司 Road-surface concrete tracking based on video
CN108389396A (en) * 2018-02-28 2018-08-10 北京精英智通科技股份有限公司 A kind of vehicle matching process, device and charge system based on video
CN108364359A (en) * 2018-03-30 2018-08-03 深圳市金溢科技股份有限公司 Parking charge method, server, system and the mobile terminal for parking charge

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
基于计算机视觉的违章停车智能监控系统;汤一平;陈耀宇;;计算机测量与控制(08);全文 *

Also Published As

Publication number Publication date
CN111241879A (en) 2020-06-05

Similar Documents

Publication Publication Date Title
CN101533557B (en) Traffic information detection method and traffic information detection device
US20170124848A1 (en) Image-based remote observation and alarm device and method for in-car moving objects
CN111105621B (en) Method and device for detecting illegal parking
CN105741560A (en) Vehicle identification method used for gas station
CN105075248A (en) Target object identifying device, target object identifying method and target object identifying program
CN109714576B (en) Vehicle identification method, device and system based on video monitoring and server
CN109993978B (en) Vehicle snapshot method and device and gate sentry system
CN105590479A (en) Parking space monitoring method and device
CN107978136B (en) Method for realizing automatic false alarm recognition in network alarm system
CN106097722A (en) Video is utilized to carry out the system and method for trackside parking stall automatization supervision
CN202939800U (en) Intelligent high-definition toll-gate system
KR101621822B1 (en) Device for security and recognizing number of license plate based on hybrid image transmission, and method for recognizing and providing number of license plate using the same
CN105894821A (en) High-definition DSP camera based comprehensive traffic monitoring system
KR101697060B1 (en) Method of sening event and apparatus performing the same
CN111241879B (en) Vehicle detection method, device, electronic equipment and readable storage medium
CN102413321A (en) Automatic image-recording system and method
CN110895663B (en) Two-wheel vehicle identification method and device, electronic equipment and monitoring system
CN102244769B (en) Object and key person monitoring system and method thereof
CN105427618A (en) Method and system for warning in case of vehicle's occupation of emergency parking strip
CN108235017A (en) For the method and apparatus of detecting event
CN110633623A (en) Management and control method for operation process of transformer substation worker
US20160191884A1 (en) Image playback method and image surveillance system thereof
CN110855947A (en) Image snapshot processing method and device
CN111339949A (en) License plate recognition method and device and inspection vehicle
CN202939798U (en) Intelligent high-definition electronic police system

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