CN114708425A - Method and device for identifying vehicle parking violation and computer readable storage medium - Google Patents

Method and device for identifying vehicle parking violation and computer readable storage medium Download PDF

Info

Publication number
CN114708425A
CN114708425A CN202210277344.1A CN202210277344A CN114708425A CN 114708425 A CN114708425 A CN 114708425A CN 202210277344 A CN202210277344 A CN 202210277344A CN 114708425 A CN114708425 A CN 114708425A
Authority
CN
China
Prior art keywords
license plate
information
historical
cache
plate information
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.)
Pending
Application number
CN202210277344.1A
Other languages
Chinese (zh)
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.)
Shenzhen ZNV Technology Co Ltd
Original Assignee
Shenzhen ZNV 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 Shenzhen ZNV Technology Co Ltd filed Critical Shenzhen ZNV Technology Co Ltd
Priority to CN202210277344.1A priority Critical patent/CN114708425A/en
Publication of CN114708425A publication Critical patent/CN114708425A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/24Querying
    • G06F16/245Query processing
    • G06F16/2453Query optimisation
    • G06F16/24534Query rewriting; Transformation
    • G06F16/24539Query rewriting; Transformation using cached or materialised query results
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/20Information retrieval; Database structures therefor; File system structures therefor of structured data, e.g. relational data
    • G06F16/29Geographical information databases
    • 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

Abstract

The invention discloses a method and a device for identifying vehicle parking violation and a computer readable storage medium, wherein the method comprises the following steps: acquiring image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises an illegal parking area coordinate and a parking area coordinate; acquiring license plate information in the image information, wherein the license plate information comprises a license plate number, a collection equipment number and license plate number coordinate information; determining whether historical license plate information corresponding to the license plate information is stored in the cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information; when the historical license plate information is cached and stored, whether the intersection ratio of the license plate number coordinate information and the historical license plate number coordinate information is larger than a preset value or not is determined; when the intersection ratio is larger than a preset value, storing the license plate number into a cache, and increasing the number of illegal parking times corresponding to the license plate number; and determining whether the number of times of violations is greater than or equal to a preset number of times. The invention reduces the identification cost of the vehicle parking violation.

Description

Method and device for identifying vehicle parking violation and computer readable storage medium
Technical Field
The present invention relates to the field of image recognition technologies, and in particular, to a method and an apparatus for recognizing vehicle parking violation, and a computer-readable storage medium.
Background
At present, for analysis of vehicle illegal parking, a main solution is to analyze a real-time video stream in a structured manner, and then study and judge the vehicle illegal parking behavior, and this method needs to be configured with a large number of high-performance analysis servers, and needs to be docked with an original video monitoring system or access a video acquisition device to an analysis system again, which is high in cost.
Disclosure of Invention
The embodiment of the invention aims to solve the technical problem of reducing the identification cost of vehicle parking violation by providing a vehicle parking violation identification method, a vehicle parking violation identification device and a computer readable storage medium.
The embodiment of the invention provides a method for identifying vehicle parking violation, which comprises the following steps:
acquiring image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises an illegal parking area coordinate and a parking area coordinate;
acquiring license plate information in the image information, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information;
determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information;
when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value;
and when the intersection ratio is larger than the preset value, storing the license plate number into a cache, and increasing the number of illegal parking times corresponding to the license plate number.
In an embodiment, when the intersection ratio is greater than the preset value, the step of storing the license plate number into a cache and increasing the number of times of parking violation corresponding to the license plate number includes:
when the intersection ratio is larger than the preset value, storing the license plate information into a cache;
acquiring first acquisition time of the license plate information and second acquisition time of the historical license plate information, and determining whether the time interval between the first acquisition time and the second acquisition time is greater than a preset time interval;
and when the time interval is greater than the preset time interval, increasing the number of illegal parking times corresponding to the license plate information.
In an embodiment, the step of obtaining a first collection time of the license plate information and a second collection time of the historical license plate information, and determining whether a time interval between the first collection time and the second collection time is greater than a preset time interval includes:
determining the number of the historical license plate information;
when the number of the historical license plate information is multiple, acquiring first acquisition time of the license plate information, and acquiring second acquisition time of the historical license plate information with the earliest acquisition time;
determining whether a time interval of the first acquisition time and the second acquisition time is greater than the preset time interval.
In an embodiment, after the step of obtaining a first collection time of the license plate information and a second collection time of the historical license plate information, and determining whether a time interval between the first collection time and the second collection time is greater than a preset time interval, the method further includes:
and deleting the license plate information in the cache when the time interval is less than or equal to the preset time interval.
In an embodiment, the step of determining whether the cache stores the historical license plate information corresponding to the license plate information includes:
determining whether a historical acquisition equipment number corresponding to the acquisition equipment number is stored in the cache;
if the history number corresponding to the acquisition equipment number is stored in the cache, determining whether the history license plate number corresponding to the license plate number is stored in the cache;
and if the historical license plate number corresponding to the license plate number is stored in the cache, determining that the historical license plate information corresponding to the license plate information exists in the cache.
In an embodiment, after the step of determining whether the cache stores the historical license plate number corresponding to the license plate number, the method further includes:
and when the historical license plate information is not stored in the cache, storing the license plate information in the cache, and periodically returning to execute the step of acquiring the image information of the target area.
In an embodiment, after the step of storing the license plate number in a cache and increasing the number of times of parking violations corresponding to the license plate number when the intersection ratio is greater than the preset value, the method further includes:
determining whether the number of times of violation is greater than or equal to a preset number of times;
and outputting prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times.
In an embodiment, after the step of determining whether the number of violations is greater than a preset number, the method further comprises:
and when the number of times of illegal parking is less than the preset number of times, recording the number of times of illegal parking, and deleting the license plate information and the historical license plate information in the cache.
The embodiment of the invention also provides a device for identifying the vehicle parking violation, which comprises the following steps: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for identifying a vehicle violation as described above when executing the computer program.
Embodiments of the present invention further provide a computer-readable storage medium, on which a computer program is stored, where the computer program, when executed by a processor, implements the steps of the method for identifying vehicle parking violation as described above.
In the technical scheme of the embodiment, an identification device of vehicle parking violation obtains image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises coordinates of the parking violation area and coordinates of a parking area; acquiring license plate information in the image information, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information; determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information; when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value; when the intersection ratio is larger than the preset value, storing the license plate number into a cache, and increasing the number of illegal parking times corresponding to the license plate number; determining whether the number of times of violation is greater than or equal to a preset number of times; and outputting prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times. As the vehicle illegal parking recognition device realizes the function of vehicle illegal parking recognition through license plate recognition and cross-parallel difference algorithm aiming at the collected target area image information, compared with the prior art, the vehicle illegal parking recognition device can fully utilize the image information collected by the existing video collection equipment, realize the vehicle illegal parking recognition through software, and reduce the vehicle illegal parking recognition cost.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a schematic diagram of a hardware architecture of a vehicle parking violation identification apparatus according to an embodiment of the present invention;
FIG. 2 is a schematic flow chart diagram illustrating a first embodiment of a method for recognizing a vehicle parking violation according to the present invention;
FIG. 3 is a detailed flowchart of step S30 of the identification method of vehicle parking violation according to the second embodiment of the present invention;
FIG. 4 is a flowchart illustrating a third embodiment of the method for recognizing an illegal parking of a vehicle according to the present invention;
fig. 5 is a flowchart illustrating a method for identifying vehicle parking violation according to a fourth embodiment of the present invention.
Detailed Description
For a better understanding of the above technical solutions, exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited by the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
The main solution of the invention is: the method comprises the steps that an identification device of vehicle parking violation obtains image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises a parking violation area coordinate and a parking area coordinate; acquiring license plate information in the image information, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information; determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information; when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value; and when the intersection ratio is greater than the preset value, storing the license plate number into a cache, and increasing the number of times of violation corresponding to the license plate number.
Compared with the prior art, the vehicle illegal parking recognition device can fully utilize the image information acquired by the existing video acquisition equipment, realizes the vehicle illegal parking recognition through software, and reduces the vehicle illegal parking recognition cost.
As an implementation, the vehicle parking violation identification device may be as in fig. 1.
The embodiment scheme of the invention relates to a vehicle illegal parking recognition device, which comprises: a processor 101, e.g. a CPU, a memory 102, a communication bus 103. Wherein a communication bus 103 is used for enabling the connection communication between these components.
The memory 102 may be a high-speed RAM memory or a non-volatile memory (non-volatile memory), such as a disk memory. As in fig. 1, a detection program may be included in the memory 103 as a computer-readable storage medium; and the processor 101 may be configured to call the detection program stored in the memory 102 and perform the following operations:
acquiring image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises an illegal parking area coordinate and a parking area coordinate;
acquiring license plate information in the image information, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information;
determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information;
when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value;
and when the intersection ratio is greater than the preset value, storing the license plate number into a cache, and increasing the number of times of violation corresponding to the license plate number.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
when the intersection ratio is larger than the preset value, storing the license plate information into a cache;
acquiring first acquisition time of the license plate information and second acquisition time of the historical license plate information, and determining whether the time interval between the first acquisition time and the second acquisition time is greater than a preset time interval;
and when the time interval is greater than the preset time interval, increasing the number of illegal parking times corresponding to the license plate information.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining the number of the historical license plate information;
when the number of the historical license plate information is multiple, acquiring first acquisition time of the license plate information, and acquiring second acquisition time of the historical license plate information with the earliest acquisition time;
determining whether a time interval of the first acquisition time and the second acquisition time is greater than the preset time interval.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and deleting the license plate information in the cache when the time interval is less than or equal to the preset time interval.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining whether a historical acquisition equipment number corresponding to the acquisition equipment number is stored in the cache;
if the historical license plate number corresponding to the acquisition equipment number is stored in the cache, determining whether the historical license plate number corresponding to the license plate number is stored in the cache;
and if the historical license plate number corresponding to the license plate number is stored in the cache, determining that the historical license plate information corresponding to the license plate information exists in the cache.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
and when the historical license plate information is not stored in the cache, storing the license plate information in the cache, and periodically returning to execute the step of acquiring the image information of the target area.
In one embodiment, the processor 101 may be configured to call a detection program stored in the memory 102 and perform the following operations:
determining whether the number of times of violation is greater than or equal to a preset number of times;
and outputting prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times.
In one embodiment, the processor 101 may be configured to invoke the detection program stored in the memory 102 and perform the following operations:
and when the number of times of illegal parking is less than the preset number of times, recording the number of times of illegal parking, and deleting the license plate information and the historical license plate information in the cache.
In the technical scheme of the embodiment, an identification device of vehicle parking violation obtains image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises coordinates of the parking violation area and coordinates of a parking area; acquiring license plate information in the image information, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information; determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information; when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value; when the intersection ratio is larger than the preset value, storing the license plate number into a cache, and increasing the number of illegal parking times corresponding to the license plate number; determining whether the number of times of violation is greater than or equal to a preset number of times; and outputting prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times. Compared with the prior art, the vehicle illegal parking recognition device can fully utilize the image information acquired by the existing video acquisition equipment, realizes the vehicle illegal parking recognition through software, and reduces the vehicle illegal parking recognition cost.
In order to better understand the technical solution, the technical solution will be described in detail with reference to the drawings and the specific embodiments.
Referring to fig. 2, fig. 2 is a first embodiment of the method for identifying vehicle parking violation, comprising the steps of:
step S10, acquiring image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises an illegal parking area coordinate and a parking area coordinate.
In the present embodiment, the target area is a unit area for realizing the recognition of the vehicle parking violation, and it is easily understood that the number of the target areas may be plural, for example: and the monitoring area corresponds to the video acquisition equipment. The target area in the image information acquired by the video acquisition equipment is associated with preset coordinate information, wherein the preset coordinate information comprises an illegal parking area coordinate and a parking area coordinate, the illegal parking area coordinate refers to a coordinate corresponding to an area which is defined as forbidden to park, and the parking area coordinate refers to a coordinate corresponding to an area which can park.
And step S20, license plate information in the image information is obtained, wherein the license plate information comprises license plate numbers, collection equipment numbers and license plate number coordinate information.
In this embodiment, license plate information is obtained based on image information, specifically, text recognition is performed on an image to obtain a license plate number, license plate number coordinate information of an area where the license plate number is located is obtained, a collection device number of a video collection device corresponding to the image information is obtained, and the license plate number, the license plate number coordinate information, and the collection device number are stored in an associated manner to obtain the license plate information.
Step S30, determining whether historical license plate information corresponding to the license plate information is stored in a cache, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information.
Optionally, determining whether a historical acquisition device number corresponding to the acquisition device number is stored in the cache; if the history number corresponding to the acquisition equipment number is stored in the cache, determining whether the history license plate number corresponding to the license plate number is stored in the cache; and if the historical license plate number corresponding to the license plate number is stored in the cache, determining that the historical license plate information corresponding to the license plate information exists in the cache. Whether historical license plate information collected by the video collecting equipment is stored in the cache can be judged by comparing the number fields of the collecting equipment, and the judging efficiency is improved.
And step S40, when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value.
And step S50, when the intersection ratio is larger than the preset value, storing the license plate number into a cache, and increasing the number of times of violation of parking corresponding to the license plate number.
In this embodiment, the number of times of illegal parking determination refers to a count value determined based on the recognition result, and whether the license plate is illegal or not can be judged based on the size of the count value.
Optionally, the vehicle illegal parking recognition device includes an FTP server, a license plate number recognition module, a license plate number verification module, and a vehicle illegal parking analysis module. The video acquisition equipment can be configured with a timing screenshot function, and the screenshot is uploaded to an FTP server directory in a vehicle illegal parking recognition device, so that the timing screenshot function needs to be configured through a configuration page of the video acquisition equipment, and the screenshot naming rule is equipment name + timestamp. The FTP picture server stores the screenshot of the video acquisition equipment, and the license plate number recognition module reads the picture in the FTP directory to perform license plate recognition. And the license plate number recognition module recognizes the license plate number in the screenshot and analyzes the coordinate range of the license plate number in the picture. And the license plate number checking module checks the recognized license plate number according to the national standard specification of the license plate number of the motor vehicle, and filters and recognizes the wrong license plate number. And the vehicle illegal parking analysis module is used for carrying out research and judgment analysis on whether the vehicle is illegal according to the vehicle illegal parking judgment rule and the IOU intersection difference algorithm. And the violation rule analysis module processes the violation data according to the rule of the business rule 7. For example: the illegal parking detection analysis time is 08:00-18:00, the illegal parking analysis time of the video acquisition equipment is adjusted, and the rules can be flexibly set.
In the technical scheme of this embodiment, because the recognition device of the vehicle parking violation can realize the function of the recognition of the vehicle parking violation through the license plate recognition and the cross-parallel-difference algorithm when receiving the image information of the target area, compared with the prior art, the recognition device of the vehicle parking violation can fully utilize the image information collected by the existing video collecting equipment, realize the recognition of the vehicle parking violation through software, and reduce the recognition cost of the vehicle parking violation.
Referring to fig. 3, fig. 3 is a second embodiment of the method for identifying vehicle parking violation according to the present invention, and based on the first embodiment, step S50 includes:
and step S51, when the intersection ratio is larger than the preset value, storing the license plate information into a cache.
Step S52, acquiring a first acquisition time of the license plate information and a second acquisition time of the historical license plate information, and determining whether the time interval between the first acquisition time and the second acquisition time is greater than a preset time interval.
And step S53, when the time interval is larger than the preset time interval, increasing the number of illegal parking times corresponding to the license plate information.
In the present embodiment, the steps of identifying the vehicle parking violation are as follows:
the method comprises the following steps: the video acquisition equipment is configured with timed screenshot uploading, and the picture naming rule is acquisition equipment number + screenshot time. At present, most of old models of video acquisition devices support setting of timed screenshots and uploading the screenshots to a designated FTP server, and the screenshot of the video acquisition device of the type is mainly analyzed in the embodiment.
Step two: and the license plate number recognition module reads the vehicle picture from the FTP server directory, performs license plate number recognition on the picture and determines the coordinate range of the license plate number in the picture. In the process of picture analysis, the pictures need to be stored in other picture servers again, and the pictures in the FTP server directory need to be deleted. And after the picture analysis is finished, uniformly sending an analysis result to the license plate number verification module.
Step three: and after receiving the vehicle number analysis result, the license plate number verification module judges the validity of the license plate number and eliminates the wrong license plate number.
Step four: and the vehicle illegal parking analysis module is used for carrying out vehicle illegal parking analysis on the processed picture and the processed vehicle number. Specifically, the method includes, according to the identified vehicle information: the method comprises the steps of acquiring a license plate number, a vehicle picture address of a serial number of equipment and license plate number coordinate information (x1, y1, x2 and y2), inquiring whether a license plate number exists in a cache with a key value being an equipment name or not in the cache, and if the license plate number can be inquired, the license plate number is not consistent with the license plate number of a current vehicle, and because the scene of video acquisition equipment is a fixed scene, all cache data of the previous license plate number need to be emptied. If the number plate number cannot be inquired or the inquired number plate number is consistent with the current number plate number, the illegal parking condition of the number plate number is judged. Taking the coordinates (cx1, cy1, cx2 and cy2) of the license plate in the first piece of vehicle information as a reference, and calculating the intersection ratio of the coordinate information of the license plate number (cx1, cy2, cx2 and cy2) in each piece of vehicle information and the coordinates of the license plate in the first piece of vehicle information through an IOU algorithm, wherein the calculation steps are as follows:
cArea=(cx2-cx1)*(cy2-cy1)
gArea=(gx2-gx1)*(gy2-gy1)
x1=max(cx1,gx1)
y1=max(cy1,gy1)
x2=min(cx2,gx2)
y2=min(cy2,gy2)
w=max(0,x2-x1)
h=max(0,y2-y1)
area=w*h
iou=area/(cArea+gArea-area)
wherein: cArea is the area of (cx1, cy1, cx2, cy2), gArea is the area of (cx1, cy2, cx2, cy2), and area is the intersection of the two rectangles.
If the calculated iou (intersection ratio) is smaller than the set threshold (0.85), it is indicated that the license plate position has displacement change in multiple screenshots, then the cache information with the equipment name (equipment code) + the license plate number as a key value is emptied, and the latest vehicle information is stored in the cache. If the calculated iou is larger than the set threshold value (0.85), the vehicle is not subjected to displacement change, and therefore when the number of times of violation of parking is equal to 3 (the traffic violation system stipulates that the vehicle has 3 pictures for violation of parking) and the violation time is larger than the set time, the violation event of parking of the vehicle information is analyzed.
Optionally, after the number of illegal parking times corresponding to the license plate number is increased, generating and storing illegal parking information of the vehicle; and when the vehicle illegal parking information reaches a preset number, outputting vehicle illegal parking prompt information corresponding to the license plate number. Considering that a traffic violation system stipulates that the vehicle violation has 3 pictures, the vehicle violation information can be generated and stored after the number of times of violation increase, wherein the vehicle violation information comprises the image information; when the number of the stored information of the illegal parking of the vehicle reaches 3, the prompting information of the illegal parking can be output.
Optionally, determining the number of the historical license plate information; when the number of the historical license plate information is multiple, acquiring first acquisition time of the license plate information, and acquiring second acquisition time of the historical license plate information with the earliest acquisition time; determining whether a time interval of the first acquisition time and the second acquisition time is greater than the preset time interval. And deleting the license plate information in the cache when the time interval is less than or equal to the preset time interval.
Step five: certain rules are installed on the illegal parking data analyzed by the vehicle illegal parking analysis module for filtering, for example: the peripheral roads of the school can not generate illegal parking data when parents send and receive students in the time period of school and school, the urban non-main road allows vehicles to park on the roadside at night, and the illegal parking data of the vehicles in the corresponding time period is shielded by setting the rules.
In the technical scheme of the embodiment, the time dimension is used for identifying the illegal parking of the vehicle, and when the parking time interval is greater than the preset time interval, the step of increasing the illegal parking times corresponding to the license plate information is executed.
Referring to fig. 4, fig. 4 shows a third embodiment of the method for recognizing a vehicle violation, which is based on any one of the first to second embodiments, and after step S30, further includes:
and step S60, when the historical license plate information is not stored in the cache, storing the license plate information into the cache, and periodically returning to execute the step of obtaining the image information of the target area.
In this embodiment, when the historical license plate number exists in the cache, if new license plate information is collected, the vehicle illegal parking recognition device can perform vehicle illegal parking recognition based on the historical license plate information and newly acquired image information, and it is easy to understand that if the historical license plate information is not stored in the cache, the newly acquired license plate information is stored in the cache to be used as the historical license plate information of the next vehicle position recognition process.
In the technical scheme of the embodiment, whether historical license plate information is stored in the cache is determined, whether the current condition meets the condition for recognizing the vehicle violation can be further determined based on the determined result, and the newly acquired license plate information can be flexibly processed when the condition is not met, so that a closed-loop flow for recognizing the vehicle violation is formed.
Referring to fig. 5, fig. 5 shows a fourth embodiment of the method for recognizing vehicle parking violation, based on any of the first to third embodiments, after step S50, the method further includes:
step S70, determining whether the number of times of violation is greater than or equal to a preset number of times.
In this embodiment, after it is determined that the vehicle meets the parking violation conditions according to the newly acquired license plate information and the historical license plate information, the number of parking violations corresponding to the license plate information at one time can be increased.
And step S80, outputting the prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times.
In this embodiment, when the preset number of times is 1, it is determined that the vehicle meets the parking violation conditions based on the newly acquired license plate information and the historical license plate information, and the vehicle parking violation can be determined, so that the number of times of parking violation corresponding to one license plate information can be increased.
In this embodiment, in view of the fact that the rule for determining the vehicle parking violation is not stable, different preset times can be set as the trigger condition for the early warning prompt, and the flexibility of recognizing the vehicle parking violation can be improved.
Optionally, when the number of times of unlawn parking is smaller than the preset number of times, recording the number of times of unlawn parking, and deleting the license plate information and the historical license plate information in the cache. If the number of times of vehicle parking corresponding to the license plate information is successfully increased, the cached historical license plate information and newly acquired license plate information can be deleted, so that the number of times of parking violation caused by repeated utilization of the cached license plate information as the historical license plate information is repeatedly increased after the number of times of parking violation corresponding to the license plate information is increased, and the optional embodiment improves the accuracy of license plate violation identification.
Optionally, all license plate information corresponding to the device number is collected in the empty cache.
In this embodiment, the prompting of the vehicle illegal parking can be performed based on the illegal determination times, the flexible early warning prompting can be performed based on the preset rule, and the flexibility of the prompting of the vehicle illegal parking is improved.
In order to achieve the above object, an embodiment of the present invention further provides an apparatus for identifying a vehicle parking violation, where the apparatus for identifying a vehicle parking violation includes: memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the steps of the method for identifying a vehicle violation as described above when executing the computer program.
To achieve the above object, the embodiment of the present invention further provides a computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, implements the steps of the method for identifying vehicle parking violation as described above.
As will be appreciated by one skilled in the art, embodiments of the present invention may be provided as a method, system, or computer program product. Accordingly, the present invention may take the form of an entirely hardware embodiment, an entirely software embodiment or an embodiment combining software and hardware aspects. Furthermore, the invention may take the form of a computer program embodied on one or more computer-usable computer-readable storage media (including, but not limited to, disk storage, CD-ROM, optical storage, and the like) having computer-usable program code embodied therein.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flow diagrams and/or block diagrams, and combinations of flows and/or blocks in the flow diagrams and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
It should be noted that in the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps not listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. The invention may be implemented by means of hardware comprising several distinct elements, and by means of a suitably programmed computer. In the unit claims enumerating several means, several of these means may be embodied by one and the same item of hardware. The usage of the words first, second and third, etcetera do not indicate any ordering. These words may be interpreted as names.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. Therefore, it is intended that the appended claims be interpreted as including preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various changes and modifications may be made in the present invention without departing from the spirit and scope of the invention. Thus, if such modifications and variations of the present invention fall within the scope of the claims of the present invention and their equivalents, the present invention is also intended to include such modifications and variations.

Claims (10)

1. A method for identifying a vehicle parking violation, the method comprising:
acquiring image information of a target area, wherein each position in the target area is associated with coordinate information, and the coordinate information comprises an illegal parking area coordinate and a parking area coordinate;
acquiring license plate information in the image information, wherein the license plate information comprises a license plate number, a collection equipment number and license plate number coordinate information;
determining whether historical license plate information corresponding to the license plate information is stored in a cache or not, wherein the historical license plate information comprises a historical license plate number, a historical acquisition equipment number and historical license plate number coordinate information;
when the historical license plate information is stored in the cache, determining whether the intersection ratio of the license plate coordinate information and the historical license plate coordinate information is greater than a preset value;
and when the intersection ratio is larger than the preset value, storing the license plate number into a cache, and increasing the number of illegal parking times corresponding to the license plate number.
2. The method for identifying the parking violation of the vehicle according to claim 1, wherein when the intersection ratio is greater than the preset value, the step of storing the license plate number into a cache and increasing the number of parking violations corresponding to the license plate number comprises the steps of:
when the intersection ratio is larger than the preset value, storing the license plate information into a cache;
acquiring first acquisition time of the license plate information and second acquisition time of the historical license plate information, and determining whether the time interval between the first acquisition time and the second acquisition time is greater than a preset time interval;
and when the time interval is greater than the preset time interval, increasing the number of illegal parking times corresponding to the license plate information.
3. The method for recognizing the vehicle parking violation according to claim 2, wherein the step of obtaining a first collection time of the license plate information and a second collection time of the historical license plate information, and determining whether a time interval between the first collection time and the second collection time is greater than a preset time interval comprises:
determining the number of the historical license plate information;
when the number of the historical license plate information is multiple, acquiring first acquisition time of the license plate information, and acquiring second acquisition time of the historical license plate information with the earliest acquisition time;
determining whether a time interval of the first acquisition time and the second acquisition time is greater than the preset time interval.
4. The method for recognizing the vehicle parking violation according to claim 2, wherein after the step of obtaining a first collection time of the license plate information and a second collection time of the historical license plate information and determining whether a time interval between the first collection time and the second collection time is greater than a preset time interval, the method further comprises:
and deleting the license plate information in the cache when the time interval is less than or equal to the preset time interval.
5. The method for recognizing the vehicle parking violation according to claim 1, wherein the step of determining whether the cache stores the historical license plate information corresponding to the license plate information comprises:
determining whether a historical acquisition equipment number corresponding to the acquisition equipment number is stored in the cache;
if the history number corresponding to the acquisition equipment number is stored in the cache, determining whether the history license plate number corresponding to the license plate number is stored in the cache;
and if the historical license plate number corresponding to the license plate number is stored in the cache, determining that the historical license plate information corresponding to the license plate information exists in the cache.
6. The method for identifying vehicle parking violation according to claim 1, wherein after said step of determining whether a history license plate number corresponding to said license plate number is stored in said cache, said method further comprises:
and when the historical license plate information is not stored in the cache, storing the license plate information in the cache, and periodically returning to execute the step of acquiring the image information of the target area.
7. The method for identifying the parking violation of the vehicle according to claim 1, wherein after the steps of storing the license plate number in a buffer and increasing the number of parking violations corresponding to the license plate number when the intersection ratio is greater than the preset value, the method further comprises:
determining whether the number of times of violation is greater than or equal to a preset number of times;
and outputting the prompt information of the illegal parking of the vehicle corresponding to the license plate number when the illegal parking times are more than or equal to the preset times.
8. The method for identifying vehicle parking violation according to claim 7, wherein after the step of determining whether the number of parking violations is greater than a preset number, the method further comprises:
and when the number of times of illegal parking is less than the preset number of times, recording the number of times of illegal parking, and deleting the license plate information and the historical license plate information in the cache.
9. An apparatus for recognizing a vehicle parking violation, comprising: memory, processor and computer program stored on the memory and executable on the processor, the processor implementing the steps of the method of identification of a vehicle violation as claimed in any of claims 1-8 when executing the computer program.
10. A computer-readable storage medium, characterized in that a computer program is stored thereon, which computer program, when being executed by a processor, carries out the steps of the method of identification of a vehicle violation as claimed in any one of claims 1 to 8.
CN202210277344.1A 2022-03-17 2022-03-17 Method and device for identifying vehicle parking violation and computer readable storage medium Pending CN114708425A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210277344.1A CN114708425A (en) 2022-03-17 2022-03-17 Method and device for identifying vehicle parking violation and computer readable storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210277344.1A CN114708425A (en) 2022-03-17 2022-03-17 Method and device for identifying vehicle parking violation and computer readable storage medium

Publications (1)

Publication Number Publication Date
CN114708425A true CN114708425A (en) 2022-07-05

Family

ID=82169392

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210277344.1A Pending CN114708425A (en) 2022-03-17 2022-03-17 Method and device for identifying vehicle parking violation and computer readable storage medium

Country Status (1)

Country Link
CN (1) CN114708425A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116012833A (en) * 2023-02-03 2023-04-25 脉冲视觉(北京)科技有限公司 License plate detection method, device, equipment, medium and program product

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116012833A (en) * 2023-02-03 2023-04-25 脉冲视觉(北京)科技有限公司 License plate detection method, device, equipment, medium and program product
CN116012833B (en) * 2023-02-03 2023-10-10 脉冲视觉(北京)科技有限公司 License plate detection method, device, equipment, medium and program product

Similar Documents

Publication Publication Date Title
CN108986465B (en) Method, system and terminal equipment for detecting traffic flow
CN108877269B (en) Intersection vehicle state detection and V2X broadcasting method
CN105100218B (en) Vehicle evaluation method, device and system based on automobile data recorder
CN106919610B (en) Internet of vehicles data processing method, system and server
CN110942629A (en) Road traffic accident management method and device and terminal equipment
CN109377694B (en) Monitoring method and system for community vehicles
CN111367958B (en) Data analysis method and device, electronic equipment and storage medium
CN112200081A (en) Abnormal behavior identification method and device, electronic equipment and storage medium
CN108230669B (en) Road vehicle violation detection method and system based on big data and cloud analysis
CN110659658A (en) Target detection method and device
CN109191831B (en) Vehicle passing control method and device and server
CN113888860A (en) Method and device for detecting abnormal running of vehicle, server and readable storage medium
CN113496213A (en) Method, device and system for determining target perception data and storage medium
CN114708425A (en) Method and device for identifying vehicle parking violation and computer readable storage medium
CN110083666B (en) Server device, information collection system, information collection method, and recording medium
CN109800684B (en) Method and device for determining object in video
CN110807493A (en) Optimization method and equipment of vehicle classification model
CN110853364B (en) Data monitoring method and device
CN111369790B (en) Vehicle passing record correction method, device, equipment and storage medium
CN113076852A (en) Vehicle-mounted snapshot processing system occupying bus lane based on 5G communication
CN115019242B (en) Abnormal event detection method and device for traffic scene and processing equipment
CN107665475A (en) Nonlocal vehicles management method and management system
CN116935631A (en) Abnormal traffic situation detection method, device and system based on radar fusion
CN109800685A (en) The determination method and device of object in a kind of video
CN112435475B (en) Traffic state 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