A vehicle tracking method, system, storage medium, and electronic device

By recording vehicle feature information and recognizing license plates across multiple frames, the system matches incoming license plates with outgoing vehicles, solving the problem of unstable tracking caused by vehicle occlusion or unclear features, and improving the accuracy and robustness of vehicle tracking and detection.

CN116824569BActive Publication Date: 2026-07-17JINAN BOGUAN INTELLIGENT TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
JINAN BOGUAN INTELLIGENT TECH CO LTD
Filing Date
2023-07-04
Publication Date
2026-07-17

AI Technical Summary

Technical Problem

Existing vehicle entry and exit recognition algorithms suffer from unstable tracking and low detection accuracy when vehicles are occluded or have unclear features, resulting in non-unique vehicle target IDs.

Method used

Record the vehicle characteristic information of the target vehicle, perform multi-frame license plate recognition, use the license plate number of the vehicle entering the vehicle as the final license plate number, and match it with the license plate of the vehicle entering the vehicle when it leaves the vehicle to ensure the accuracy of the vehicle information.

Benefits of technology

It improves the robustness and accuracy of vehicle tracking and detection, reduces the impact of environmental and human interference on identification, and ensures the integrity of the alarm evidence chain and the reliability of license plate recognition results during vehicle entry and exit.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116824569B_ABST
    Figure CN116824569B_ABST
Patent Text Reader

Abstract

This application provides a vehicle tracking method, vehicle system, storage medium, and electronic device. The method includes: recording vehicle feature information of a target vehicle when it enters the parking space; performing multi-frame license plate recognition based on the vehicle feature information; if a target license plate number that meets a priority recognition threshold exists, using that target license plate number as the final license plate number of the target vehicle, and adding the final license plate number to the corresponding entry license plate of the parking space area; when there is an unidentifiable exiting vehicle in the parking space area, matching the exiting vehicle with the corresponding entry license plate of the parking space area to determine the vehicle information of the exiting vehicle. This application improves the robustness of vehicle detection, reduces limitations imposed by scene and visual conditions, is less affected by environmental or human interference, and ensures the integrity of the alarm evidence chain and the reliability of the license plate recognition results during the vehicle entry and exit process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of image detection, and in particular to a vehicle tracking method, system, storage medium, and electronic device. Background Technology

[0002] The vehicle entry and exit recognition algorithm can automatically report the vehicle's entry or exit status, entry or exit time, and related vehicle license plate information when a vehicle enters or exits a monitored parking space area. In management scenarios such as self-service charging stations, 4S shop car wash areas, and gas station refueling areas, this algorithm can facilitate vehicle management for single parking spaces. It can intelligently provide vehicle entry and exit warnings, monitor vehicle time, and record vehicle information while reducing manpower and financial resources, making it easier for the platform or relevant staff to track vehicles later.

[0003] However, the current vehicle entry and exit recognition algorithm detects unstable vehicle targets as the basis for judging vehicle entry and exit. For example, when the vehicle is obscured or the vehicle features are not obvious, the vehicle target ID is not unique, the tracking is unstable, and the vehicle target cannot be locked, resulting in low accuracy of vehicle tracking and detection. Summary of the Invention

[0004] The purpose of this application is to provide a vehicle tracking method, system, storage medium, and electronic device that can improve the accuracy of vehicle tracking and detection.

[0005] To address the aforementioned technical problems, this application provides a vehicle tracking method, the specific technical solution of which is as follows:

[0006] Record the vehicle characteristic information of the target vehicle when it enters;

[0007] Multi-frame license plate recognition is performed based on the vehicle feature information;

[0008] If there is a target license plate number that meets the recognition threshold, the target license plate number is used as the final license plate number of the target vehicle, and the final license plate number is added as the entry license plate number of the corresponding parking space area of ​​the target vehicle.

[0009] When a vehicle exiting the parking space cannot be identified, the license plate of the vehicle entering the parking space is used to match the exiting vehicle in order to determine the vehicle information of the exiting vehicle.

[0010] Optionally, if a vehicle has exited the parking space area, the method further includes:

[0011] The license plate of a vehicle exiting the parking space area is identified using character matching.

[0012] If the length of consecutive similar characters between the license plate number of the vehicle that drove out and the license plate number of the target vehicle that entered the parking space area is less than a preset character length threshold, it is confirmed that the vehicle that drove out and the target vehicle are different vehicles.

[0013] If the length of consecutive similar characters between the license plate number of the departing vehicle and the target license plate number is greater than or equal to the preset character length threshold, it is confirmed that the departing vehicle and the target vehicle are the same vehicle.

[0014] Optionally, before performing license plate recognition on vehicles exiting the parking space area using character matching, the method further includes:

[0015] When a vehicle enters the parking area, the exit reporting detection switch for the parking area is activated.

[0016] When the exit reporting detection switch is not turned on, the alarm for vehicles exiting the parking space area will stop;

[0017] Correspondingly, after a vehicle leaves the parking space area, the entry reporting detection switch for the parking space area is turned on;

[0018] When the vehicle entry reporting detection switch is not turned on, the alarm for vehicles entering the parking space area is stopped.

[0019] Optional, also includes:

[0020] Determine whether the entry reporting detection switch for the parking space area is turned on; if so, issue an alarm to the entering vehicle and upload vehicle characteristic information and vehicle camera information, and turn off the entry reporting detection switch.

[0021] Alternatively, determine whether the exit reporting detection switch for the parking space area is turned on; if so, issue an alarm to the exiting vehicle and upload the vehicle's characteristic information and the vehicle's photographic information; turn off the exit reporting detection switch.

[0022] Optionally, if a vehicle exiting the parking space area cannot be identified as not having exited the parking space area, before matching the exiting vehicle using the license plate of the vehicle entering the parking space area, the method further includes:

[0023] Vehicle targets within the parking space area are detected, and empty spaces are counted.

[0024] If the vehicle detection frame, the front or rear detection frame, and the license plate detection frame are not within the parking space area, the parking space area is determined to be empty, and the empty space count is incremented by 1.

[0025] When at least one of the vehicle detection frame, the vehicle front or parking space detection frame and the license plate detection frame is within the monitoring range of the parking space area, the empty space count is reset to zero.

[0026] If the empty space count meets the set empty space threshold, the unreported exit events are reported, and a virtual vehicle detection box is generated; the license plate number of the exiting vehicle corresponding to the exit event is the license plate number of the vehicle that entered the parking space area last time.

[0027] Optional, also includes:

[0028] After a normal exit alarm or a missing exit incident is reported, the license plate number of the vehicle entering the parking space is cleared from the record.

[0029] Optionally, vehicle detection within the parking space area includes:

[0030] If the area ratio of the intersection of the vehicle detection frame and the parking space area (the largest inscribed rectangle of the parking space area) to the area of ​​the vehicle detection frame is greater than a first threshold, the vehicle is confirmed to be within the parking space area.

[0031] If the area of ​​the intersection of the front or rear detection frame and the largest inscribed rectangle of the parking space area is greater than the area of ​​the front or rear detection frame, then the front or rear of the vehicle is confirmed to be within the parking space area.

[0032] If the license plate detection frame intersects with the parking space area, the license plate is confirmed to be within the parking space area.

[0033] This application also provides a vehicle tracking system, including:

[0034] The vehicle detection module is used to record the vehicle characteristic information of the target vehicle when it enters the area.

[0035] The entry count detection module is used to perform multi-frame license plate recognition based on the vehicle feature information;

[0036] The vehicle alarm module is used to, when there is a target license plate number that meets the recognition threshold first, use the target license plate number as the final license plate number of the target vehicle, and add the final license plate number as the entry license plate number of the corresponding parking space area of ​​the target vehicle.

[0037] The vehicle matching module is used to match the exiting vehicle with the license plate of the vehicle entering the parking space area when the exiting vehicle cannot be identified, so as to determine the vehicle information of the exiting vehicle.

[0038] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps of the method described above.

[0039] This application also provides a server, including a memory and a processor, wherein the memory stores a computer program, and the processor implements the steps of the method described above when it invokes the computer program in the memory.

[0040] This application provides a vehicle tracking method, comprising: recording vehicle feature information of a target vehicle when it enters the parking space; performing multi-frame license plate recognition based on the vehicle feature information; if there is a target license plate number that meets the recognition threshold, using the target license plate number as the final license plate number of the target vehicle, and adding the final license plate number as the entry license plate number of the parking space area corresponding to the target vehicle; when a vehicle exiting the parking space area cannot be identified, matching the exiting vehicle with the entry license plate number of the parking space area to determine the vehicle information of the exiting vehicle.

[0041] When tracking vehicles, this application addresses situations where vehicle behavior or scene surveying is uncontrollable, such as excessive vehicle speed, vehicle tilt affecting normal vehicle recognition, or camera height being too low resulting in a large detection area. It leverages the state characteristics of the parking space area and the license plate information of vehicles entering the parking space to match vehicles exiting the same parking space area, establishing a correlation mechanism between vehicles and parking space areas. This improves the robustness of vehicle detection, reduces limitations imposed by scene and visual conditions, minimizes environmental or human interference in vehicle entry and exit recognition, and ensures the integrity of the alarm evidence chain and the reliability of license plate recognition results during vehicle entry and exit.

[0042] This application also provides a vehicle tracking system, a storage medium, and an electronic device, which can improve the accuracy of vehicle tracking and detection and have the aforementioned beneficial effects, which will not be elaborated here. Attached Figure Description

[0043] To more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of this application. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0044] Figure 1 A flowchart illustrating a vehicle tracking method provided in an embodiment of this application;

[0045] Figure 2 This is a schematic diagram of the structure of a vehicle tracking system provided in an embodiment of this application. Detailed Implementation

[0046] To make the objectives, technical solutions, and advantages of the embodiments of this application clearer, the technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0047] Please refer to Figure 1 , Figure 1 A flowchart of a vehicle tracking method provided in this application embodiment, the method comprising:

[0048] S101: Record the vehicle characteristic information of the target vehicle when it enters;

[0049] S102: Perform multi-frame license plate recognition based on the vehicle feature information;

[0050] S103: If there is a target license plate number that meets the recognition threshold, the target license plate number is used as the final license plate number of the target vehicle, and the final license plate number is added as the entry license plate number of the corresponding parking space area of ​​the target vehicle.

[0051] S104: When the vehicle exiting the parking space area cannot be identified, the license plate of the vehicle entering the parking space area is used to match the vehicle exiting the parking space area to determine the vehicle information of the vehicle exiting the parking space.

[0052] Step S101 aims to determine when a target vehicle enters and record its vehicle characteristic information. The target vehicle can be any vehicle; in this embodiment, it refers to the vehicle being tracked and monitored. The specific vehicle characteristic information is not limited here. Generally, license plates are uniquely identifiable and can be used as typical vehicle characteristic information. Of course, vehicle characteristic information can also include other information, including but not limited to vehicle appearance and vehicle type.

[0053] There are no specific restrictions on how to detect vehicle entry. One feasible approach is to consider a target vehicle as having entered if the video stream at the entrance detects it. Another feasible approach is to detect the direction of the vehicle's front to determine whether it is entering or exiting. Specifically, vehicle targets can be detected by detecting the front of the vehicle when it is entering or exiting in the forward direction, and the rear of the vehicle when it is entering or exiting in the reverse direction.

[0054] Another feasible approach is to determine a vehicle's entry or exit status based on the relationship between the vehicle's front or rear end and the monitored parking space area. For example, if more than 3 / 4 of the vehicle's front or rear end intersects with the parking space area, the vehicle is considered to be within the parking space area. If less than 1 / 2 of the vehicle's front or rear end intersects with the parking space area, the vehicle is considered to be outside the parking space area. The process involves initializing the vehicle's previous state (outside the parking space area), then comparing and updating the previous and current states to determine the vehicle's entry or exit status.

[0055] It should be noted that the parking area in this step can be the parking area within the monitoring range, meaning the monitoring range of each camera is the corresponding parking area, or it can be the parking area included within the monitoring range. This parking area typically corresponds to one monitored parking space. It's easy to understand that at any given time, only one entry or exit will occur in the same parking area.

[0056] Specifically, the vehicle state is determined based on the intersection of the vehicle detection frame and the parking space area, and the vehicle's entry or exit is determined based on the changes between its previous and current states. That is, if the vehicle was not in the parking space area in its previous state but is currently in the parking space area, it is considered to have entered the parking space area. After determining that the vehicle has entered the parking space area, the current vehicle position is used as the vehicle's previous state position for later vehicle exit determination. Conversely, if the vehicle was in the parking space area in its previous state but is currently not in the parking space area, it is considered that the target vehicle has exited the parking space area. Similarly, after determining that the target vehicle has exited the parking space area, the current vehicle position is used as the vehicle's previous state position for later vehicle entry determination. It is understandable that the vehicle's previous state position is not updated in every frame, but only after a vehicle is determined to have entered or exited the parking space area.

[0057] When recording the vehicle characteristic information of the target vehicle, the target vehicle can be continuously recorded, and the entry information of the target vehicle can also be uploaded.

[0058] Subsequently, vehicle feature information is detected and identified for entering vehicles. Specifically, multi-frame license plate recognition is performed based on the vehicle feature information. To ensure the accuracy of the target vehicle's license plate number, multi-frame license plate recognition can be performed on the entering target vehicle, and the optimal result is selected as the final license plate number of the target vehicle. Taking the license plate as vehicle feature information as an example, when any identified entering license plate number reaches a threshold number of times, that license plate number is selected as the preferred license plate number and used as the alarm license plate number for the entering vehicle target. At the same time, the preferred license plate number is recorded as the entering license plate number graphPlateNo[graphAlarmIn] for that parking space area. For exiting vehicles, it is considered that only one vehicle enters or exits within a parking space area at a time, and each entry and exit constitutes a closed loop state of the same vehicle. Strong association is performed on the license plates of the identified exiting vehicles within the parking space area, and the entering license plate number recorded with the same parking space area ID is assigned as the alarm license plate number for this exiting vehicle. Afterwards, the license plate numbers of vehicles entering the parking space area can be cleared to facilitate the recording and matching of the license plate numbers of the next target. It is understandable that during parking space monitoring, temporary vehicles passing through the area may be captured on camera. To avoid situations where temporary vehicles are mistakenly identified as exiting vehicles and thus incorrectly associated with the target vehicle entering, a character matching strategy can be added to the above embodiment to prevent abnormal situations where different vehicles entering and exiting are associated. Specifically, the license plate number of an exiting vehicle is only identified once. If the length of consecutive similar characters between the exiting vehicle's license plate number and the license plate number of a vehicle entering the parking space area is less than a preset character length threshold (e.g., less than 3 consecutive similar characters), then the exiting vehicle and the target vehicle are confirmed to be different vehicles, and no parking space area association operation is performed on the exiting target vehicle. Conversely, if the exiting vehicle and the target vehicle are confirmed to be the same vehicle, the license plate number of the vehicle entering the parking space area recorded in the same area is assigned as the alarm license plate number of the exiting vehicle.

[0059] In this embodiment of the application, when vehicle tracking is performed, in situations where vehicle behavior is uncontrollable or scene surveying is uncontrollable, such as excessive vehicle speed or vehicle tilt affecting normal vehicle recognition, or the camera height being too low resulting in a large detection parking space area, the system can use the state characteristics of the parking space area and the license plate information of vehicles entering the parking space area to match vehicles exiting the same parking space area, establishing a correlation mechanism between vehicles and parking space areas. This improves the robustness of vehicle detection, reduces scene and visual condition limitations, and makes vehicle entry and exit recognition less affected by environmental or human interference, ensuring the integrity of the alarm evidence chain for the process of vehicles entering and exiting the parking space and the reliability of the license plate recognition results.

[0060] Building upon the previous embodiment, after recording the vehicle characteristic information of the target vehicle, the entry and exit information of the target vehicle can be continuously recorded and uploaded. Specifically, the vehicle ID of the target vehicle can be stored, and the corresponding entry and exit information can be stored based on the vehicle ID.

[0061] For entry information, after a vehicle is identified, entry information for that vehicle ID can be continuously recorded. If the vehicle ID remains within the parking space area afterward, the entry status information and detection frame information for that vehicle ID can be continuously recorded and uploaded. This facilitates license plate selection for the vehicle later and also prevents the risk of missed detection caused by uploading the entry target only once but failing to detect the target license plate.

[0062] For exit information, after a vehicle is identified as exiting, its exit information can be continuously recorded. This facilitates character matching operations when associating the exit with the license plate of an incoming vehicle, preventing the failure to detect the exiting license plate once from affecting character matching. Even if the vehicle ID is subsequently determined to be completely outside the parking space area, the exit status information and detection frame information for that vehicle ID are continuously recorded and uploaded, similarly preventing missed detections. Although exit targets do not require license plate selection but are directly associated with the incoming license plate number, the aforementioned character matching is still required to determine if it is the same vehicle. Uploading vehicle information only once might result in the risk of failing to detect the license plate in that frame, rendering character matching unusable. Therefore, continuous reporting is also performed.

[0063] To avoid multiple alarms, in addition to using the vehicle ID as the alarm reference for the vehicle's entry and exit process, the parking space ID of the parking space where the vehicle is located can be combined to solve the problem of multiple alarms. Specifically, this can include the following steps:

[0064] When a vehicle enters the parking area, the exit reporting detection switch for the parking area is activated.

[0065] When the exit reporting detection switch is not turned on, the alarm for vehicles exiting the parking space area will stop;

[0066] Similarly, after a vehicle leaves the parking space area, the entry reporting detection switch for the parking space area can be turned on.

[0067] When the vehicle entry reporting detection switch is not turned on, the alarm for vehicles entering the parking space area is stopped.

[0068] In simple terms, separate detection switches are set for both the entry and exit processes. Alarms for the target vehicle can only be triggered when the detection switch is turned on, thus achieving alarm filtering.

[0069] Based on this, further control can be applied to the entry and exit reporting detection switches to report the final entry and exit vehicles. This includes the following steps:

[0070] Determine whether the entry reporting detection switch for the parking space area is turned on;

[0071] If so, issue an alarm to the entering vehicle and upload the vehicle characteristic information and vehicle image information, and turn off the entry reporting detection switch;

[0072] Determine whether the exit reporting detection switch for the parking space area is turned on;

[0073] If so, issue an alarm to the departing vehicle and upload the vehicle's characteristic information and vehicle camera information; turn off the departure reporting detection switch.

[0074] For target vehicles that have undergone the alarm filtering process described above, an alarm is triggered, and the judgment is performed according to the above process. If the entry reporting detection switch is in the open state, an alarm is triggered, including but not limited to the target vehicle entering the "IN" state, and uploading a large event image, a captured image of the vehicle's license plate, and the vehicle's license plate information. Similarly, the above operations can be performed for the exit process.

[0075] Based on the above embodiments, when vehicles leaving the parking space area cannot be identified, it may be due to reasons such as the site survey causing the vehicle's departure behavior to fail to be effectively detected. For example, at night or in extreme weather conditions, the vehicle may have already left the monitoring screen, making it impossible to detect the front or rear of the vehicle. Other issues include changes in vehicle IDs due to nighttime scenes or partial vehicle obstruction, license plate exposure, and excessively high departure speeds leading to undetected vehicles. In such cases, vehicles cannot be effectively detected and tracked. A solution is to first supplement departure events based on an empty space departure strategy, and then match the departure vehicle corresponding to the departure event with the license plate number of the vehicle entering the parking space area to supplement the license plate numbers of unidentified departure vehicles. This empty space departure strategy can be as follows, to supplement unreported departure vehicles:

[0076] The first step is to detect vehicles entering the parking space area and count available spaces if an alarm is triggered.

[0077] Step 2: If the whole vehicle detection frame, the front or rear vehicle detection frame and the license plate detection frame are not within the parking space area, the parking space area is determined to be empty, and the empty space count is incremented by 1.

[0078] Third step: When at least one of the vehicle detection frame, the vehicle front or parking space detection frame and the license plate detection frame is within the monitoring range of the parking space area, the empty space count is reset to zero.

[0079] Step 4: If the empty space count meets the set empty space threshold, report any unreported exit events and create a virtual vehicle detection box; the license plate number of the exiting vehicle corresponding to the exit event is the license plate number of the vehicle that entered the parking space area last time.

[0080] For a detected entering vehicle, an empty space is detected based on its location within the parking space area. To avoid situations where parking spaces are too close together, causing overlap between vehicles in other parking areas and the monitored area, thus affecting the empty space determination, a threshold overlap condition can be set when detecting vehicles within the parking space area. It should be noted that when filling empty spaces, since exiting vehicles are not identified, the license plates of unidentified exiting vehicles are directly associated with the entering license plates, without the need for character matching.

[0081] After a normal exit alarm is triggered (i.e., a vehicle exiting the parking space is detected), or after a previously unreported exit event is reported (i.e., no further exiting the parking space is detected), the license plate number of the vehicle entering the parking space can be cleared from the record. Simultaneously, the vehicle is considered to have exited the parking space, at which point the entry reporting and detection switch for the parking space area can be activated.

[0082] Based on the above embodiments, a feasible threshold intersection condition is as follows:

[0083] If the area of ​​the intersection of the vehicle detection frame and the parking space area (the largest inscribed rectangle of the parking space area) is greater than the area of ​​the vehicle detection frame, then the vehicle is confirmed to be within the parking space area.

[0084] If the area of ​​the intersection of the vehicle front or rear detection frame and the largest inscribed rectangle of the parking space area is greater than the area of ​​the vehicle front or rear detection frame, then the vehicle front or rear is confirmed to be within the parking space area.

[0085] If the license plate detection frame intersects with the parking space area, the license plate is confirmed to be within the parking space area.

[0086] The evaluation criterion for the entire vehicle and its front and rear is the largest inscribed rectangle of the parking space area. This is because the parking space area is an irregular quadrilateral. When calculating the intersection with the target detection box, the program logic would typically automatically calculate the intersection between the bounding rectangle of the quadrilateral and the target detection box. However, due to camera perspective and the size of passing vehicles, some passing vehicles may intersect with the bounding rectangle of the parking space area in certain situations. To avoid the influence of passing vehicles, the largest inscribed rectangle of the parking space area is used, along with an intersection threshold. This allows for the identification of whether a target exists within the parking space area while preventing passing vehicles from affecting the judgment of the parking space area's state. License plates are not used because they are relatively small targets. A higher intersection threshold is set for license plates, which passing vehicles cannot reach. Therefore, the default bounding rectangle of the parking space area can be used for calculating the intersection of license plates.

[0087] The first and second thresholds are not limited here and can be set by those skilled in the art. They can be the same or different values. Taking a first and second threshold of 0.5 as an example, a feasible threshold intersection condition can be as follows:

[0088] Whole vehicle inspection box S m The largest inscribed rectangle A of the parking space area Internal Intersecting parking area S mc With the whole vehicle inspection box S m If the area ratio is greater than 0.5, the entire vehicle is considered to be within the parking space area; otherwise, it is not. The mathematical conditions are as follows:

[0089] (S m ∩A Internal ) / S m >0.5

[0090] The threshold intersection condition for the front and rear of the vehicle is: the detection bounding box S of the front or rear of the vehicle. v The largest inscribed rectangle A of the parking space area Internal Intersecting parking area S vc With the front or rear detection box S v If the area ratio is greater than 0.5, the front or rear of the car is considered to be within the parking space area; otherwise, it is not. The mathematical conditions are as follows:

[0091] (S v ∩A Internal ) / S v >0.5

[0092] The license plate threshold intersection condition is: license plate detection bounding box S p Intersection of parking area S with parking area A pc A license plate is considered to be within the parking space area if the area is greater than 0.5; otherwise, it is not. The mathematical conditions are as follows:

[0093] S p ∩A>0.5

[0094] In addition, after a normal exit alarm or a missing exit incident is reported, the license plate number of the vehicle entering the parking space can be cleared in a timely manner to facilitate the recording of the license plate of the next vehicle entering the parking space.

[0095] The following describes a vehicle tracking system provided by an embodiment of this application. The vehicle tracking system described below can be referred to in correspondence with the vehicle tracking method described above.

[0096] See Figure 2 , Figure 2 This is a schematic diagram of a vehicle tracking system provided in an embodiment of this application. This application also provides a vehicle tracking system, including:

[0097] The vehicle detection module is used to record the vehicle characteristic information of the target vehicle when it enters the area.

[0098] The entry count detection module is used to perform multi-frame license plate recognition based on the vehicle feature information;

[0099] The vehicle alarm module is used to, when there is a target license plate number that meets the recognition threshold first, use the target license plate number as the final license plate number of the target vehicle, and add the final license plate number as the entry license plate number of the corresponding parking space area of ​​the target vehicle.

[0100] The vehicle matching module is used to match the exiting vehicle with the license plate of the vehicle entering the parking space area when the exiting vehicle cannot be identified, so as to determine the vehicle information of the exiting vehicle.

[0101] Based on the above embodiments, as a preferred embodiment, the vehicle matching module includes:

[0102] The matching unit is used to perform license plate recognition on vehicles exiting the parking space area using character matching; if the length of consecutive similar characters between the license plate number of the exiting vehicle and the license plate number of the target vehicle entering the parking space area is less than a preset character length threshold, it is confirmed that the exiting vehicle and the target vehicle are different vehicles; if the length of consecutive similar characters between the license plate number of the exiting vehicle and the license plate number of the target vehicle is greater than or equal to the preset character length threshold, it is confirmed that the exiting vehicle and the target vehicle are the same vehicle.

[0103] Based on the above embodiments, as a preferred embodiment, it further includes:

[0104] The exit detection switch setting module is used to turn on the exit reporting detection switch of the parking space area when a vehicle enters the parking space area; and to stop alarming vehicles leaving the parking space area when the exit reporting detection switch is not turned on.

[0105] The entry detection switch setting module is used to turn on the entry reporting detection switch of the parking space area after the vehicle leaves the parking space area; and to stop alarming for vehicles entering the parking space area when the entry reporting detection switch is not turned on.

[0106] Based on the above embodiments, as a preferred embodiment, it further includes:

[0107] The first alarm module is used to determine whether the entry reporting detection switch of the parking space area is turned on, and when the determination result is yes, to alarm the entering vehicle and upload the vehicle feature information and vehicle shooting information, and to turn off the entry reporting detection switch.

[0108] The second alarm module is used to determine whether the exit reporting detection switch of the parking space area is turned on, and when the determination result is yes, to alarm the exiting vehicle and upload the vehicle feature information and vehicle photography information; and to turn off the exit reporting detection switch.

[0109] Based on the above embodiments, as a preferred embodiment, it further includes:

[0110] The empty space detection module is used to detect vehicles within the parking space area and count empty spaces after detecting an incoming alarm target. If the whole vehicle detection frame, the front or rear vehicle detection frame, and the license plate detection frame are not within the parking space area, the parking space area is determined to be empty, and the empty space count is incremented by 1. When at least one of the whole vehicle detection frame, the front or rear vehicle detection frame, and the license plate detection frame is within the monitoring range of the parking space area, the empty space count is reset to zero. If the empty space count meets a set empty space threshold, the module reports any unreported exit events and creates a virtual vehicle detection frame. The license plate number of the exiting vehicle is the same as the license plate number of the vehicle that previously entered the parking space area.

[0111] Based on the above embodiments, as a preferred embodiment, it further includes:

[0112] The information clearing module is used to clear the license plate number of the vehicle entering the parking space area after a normal exit alarm or a supplementary report of an unreported exit event.

[0113] Based on the above embodiments, as a preferred embodiment, the vacancy detection module includes:

[0114] The vehicle threshold detection module is used to confirm that the vehicle is within the parking space if the area ratio of the intersection of the vehicle detection frame and the largest inscribed rectangle of the parking space area to the area of ​​the vehicle detection frame is greater than a first threshold; if the area ratio of the intersection of the front or rear vehicle detection frame and the largest inscribed rectangle of the parking space area to the area of ​​the front or rear vehicle detection frame is greater than a second threshold, the vehicle front or rear vehicle is within the parking space; and if the license plate detection frame intersects with the parking space area, the license plate is within the parking space.

[0115] This application also provides a computer-readable storage medium having a computer program stored thereon, which, when executed, can perform the steps provided in the above embodiments. The storage medium may include various media capable of storing program code, such as a USB flash drive, a portable hard drive, a read-only memory (ROM), a random access memory (RAM), a magnetic disk, or an optical disk.

[0116] This application also provides a server, which may include a memory and a processor. The memory stores a computer program, and when the processor calls the computer program in the memory, it can implement the steps provided in the above embodiments. Of course, the server may also include various network interfaces, power supplies, and other components.

[0117] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. As the system provided in the embodiments corresponds to the method provided in the embodiments, the description is relatively simple; relevant parts can be found in the method section.

[0118] This document uses specific examples to illustrate the principles and implementation methods of this application. The descriptions of the embodiments above are only for the purpose of helping to understand the method and core ideas of this application. It should be noted that those skilled in the art can make several improvements and modifications to this application without departing from the principles of this application, and these improvements and modifications also fall within the protection scope of the claims of this application.

[0119] It should also be noted that, in this specification, relational terms such as "first" and "second" are used only to distinguish one entity or operation from another, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Furthermore, the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such a process, method, article, or apparatus. Without further limitations, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes said element.

Claims

1. A vehicle tracking method, characterized in that, include: Record the vehicle characteristic information of the target vehicle when it enters; Multi-frame license plate recognition is performed based on the vehicle feature information; If a target license plate number that meets the recognition threshold is found, the target license plate number is used as the final license plate number of the target vehicle, and the final license plate number is added as the entry license plate number of the parking space area corresponding to the target vehicle; wherein, the parking space area corresponds to one monitored parking space; When a vehicle exiting the parking space cannot be identified, the license plate of the vehicle entering the parking space is used to match the exiting vehicle to determine the vehicle information of the exiting vehicle. If a vehicle exiting the parking space area cannot be identified as not having exited the parking space area, the process before matching the exiting vehicle using the license plate of the vehicle entering the parking space area further includes: Vehicle targets within the parking space area are detected, and empty spaces are counted. If the vehicle detection frame, the front or rear detection frame, and the license plate detection frame are not within the parking space area, the parking space area is determined to be empty, and the empty space count is incremented by 1. When at least one of the vehicle detection frame, the vehicle front or parking space detection frame and the license plate detection frame is within the monitoring range of the parking space area, the empty space count is reset to zero. If the empty space count meets the set empty space threshold, the unreported exit events are reported, and a virtual vehicle detection box is generated; the license plate number of the exiting vehicle corresponding to the exit event is the license plate number of the vehicle that entered the parking space area last time.

2. The method according to claim 1, characterized in that, If a vehicle has exited the parking space area, the following also applies: The license plate of a vehicle exiting the parking space area is identified using character matching. If the length of consecutive similar characters between the license plate number of the vehicle that drove out and the license plate number of the target vehicle that entered the parking space area is less than a preset character length threshold, it is confirmed that the vehicle that drove out and the target vehicle are different vehicles. If the length of consecutive similar characters between the license plate number of the departing vehicle and the target license plate number is greater than or equal to the preset character length threshold, it is confirmed that the departing vehicle and the target vehicle are the same vehicle.

3. The method according to claim 2, characterized in that, Before performing license plate recognition on vehicles exiting the parking space area using character matching, the process also includes: When a vehicle enters the parking area, the exit reporting detection switch for the parking area is activated. When the exit reporting detection switch is not turned on, the alarm for vehicles exiting the parking space area will stop; Correspondingly, after a vehicle leaves the parking space area, the entry reporting detection switch for the parking space area is turned on; When the vehicle entry reporting detection switch is not turned on, the alarm for vehicles entering the parking space area is stopped.

4. The method according to claim 3, characterized in that, Also includes: Determine whether the entry reporting detection switch for the parking space area is turned on; if so, issue an alarm to the entering vehicle and upload vehicle characteristic information and vehicle camera information, and turn off the entry reporting detection switch. Alternatively, determine whether the exit reporting detection switch for the parking space area is turned on; if so, issue an alarm to the exiting vehicle and upload the vehicle's characteristic information and the vehicle's photographic information; turn off the exit reporting detection switch.

5. The method according to claim 1, characterized in that, Also includes: After a normal exit alarm or a missing exit incident is reported, the license plate number of the vehicle entering the parking space is cleared from the record.

6. The method according to claim 1, characterized in that, Detecting vehicles within the parking space area includes: If the area ratio of the intersection of the vehicle detection frame and the parking space area (the largest inscribed rectangle of the parking space area) to the area of ​​the vehicle detection frame is greater than a first threshold, the vehicle is confirmed to be within the parking space area. If the area of ​​the intersection of the front or rear detection frame and the largest inscribed rectangle of the parking space area is greater than the area of ​​the front or rear detection frame, then the front or rear of the vehicle is confirmed to be within the parking space area. If the license plate detection frame intersects with the parking space area, the license plate is confirmed to be within the parking space area.

7. A vehicle tracking system, characterized in that, include: The vehicle detection module is used to record the vehicle characteristic information of the target vehicle when it enters the area. The entry count detection module is used to perform multi-frame license plate recognition based on the vehicle feature information; The vehicle alarm module is used to, when there is a target license plate number that meets the recognition threshold, use the target license plate number as the final license plate number of the target vehicle, and add the final license plate number as the entry license plate number of the target vehicle in the corresponding parking space area; wherein, the parking space area corresponds to a monitored parking space; The vehicle matching module is used to match the exiting vehicle with the license plate of the vehicle entering the parking space area when the exiting vehicle cannot be identified, so as to determine the vehicle information of the exiting vehicle. The empty space detection module is used to detect vehicles within the parking space area and count empty spaces when a vehicle leaving the parking space area cannot be identified as not having left the parking space area. If the whole vehicle detection frame, the front or rear vehicle detection frame, and the license plate detection frame are all not within the parking space area, the parking space area is determined to be empty, and the empty space count is incremented by 1. When at least one of the whole vehicle detection frame, the front or rear vehicle detection frame, and the license plate detection frame is within the monitoring range of the parking space area, the empty space count is reset to zero. If the empty space count meets a set empty space threshold, the unreported exit event is reported, and a virtual vehicle detection frame is generated. The license plate number of the exiting vehicle corresponding to the exit event is the license plate number of the vehicle that entered the parking space area last time.

8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the steps of the method as described in any one of claims 1-6.

9. A server, characterized in that, The method includes a memory and a processor, wherein the memory stores a computer program, and the processor, when calling the computer program in the memory, implements the steps of the method as described in any one of claims 1-6.