An unmanned vehicle license plate closed-loop AI forensics method and system
By detecting and tracking vehicles in drone media frames, predicting motion states, controlling visual resources and performing safe zoom actions, and locating and recognizing license plates, combined with close-up image cross-validation, the accuracy and efficiency issues of license plate recognition in drone aerial photography for evidence collection are solved, achieving robust license plate recognition results.
Patent Information
- Application Number
- CN202611619911.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-10-20
- Publication Date
- 2026-11-20
AI Technical Summary
In drone aerial photography for evidence collection, vehicle targets are small in size in images and are easily affected by factors such as side shooting angle, light reflection, motion blur, and partial occlusion of the target. This results in incomplete information in single-frame OCR recognition results and conflicting results. Furthermore, the competition for gimbal and camera resources causes crosstalk in equipment actions, increasing the operation time but failing to obtain effective information.
By detecting and tracking vehicles in drone media frames, a vehicle time sequence segment is constructed, the motion state is predicted, and candidate targets for evidence collection are identified. Based on the predicted covariance, visual resources are controlled, a safe zoom action is performed, license plate localization and recognition are carried out, and a robust license plate recognition conclusion is output by combining close-up image cross-validation. If necessary, a re-shooting action is performed.
It improves the accuracy and efficiency of license plate recognition in complex environments, avoids resource contention and repetitive actions, ensures the quality of license plate images and the reliability of recognition, and reduces the risk of misbinding when multiple vehicles are in the same frame and when tracking signs are switched.
Smart Images

Figure CN123142184A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of traffic management technology, and in particular to a closed-loop AI-based method and system for obtaining vehicle license plates from drones. Background Technology
[0002] Drones can be used for automated inspections in scenarios such as roads, industrial parks, ports, and construction sites. They collect vehicle images through onboard cameras to collect evidence of suspected illegal parking, obstruction of traffic, or vehicles designated as targets. Existing technology has already implemented basic business processes such as vehicle detection, evidence collection and photography, focus adjustment, and license plate recognition.
[0003] Chinese patent application CN112201051B discloses a UAV-based system and method for detecting and collecting evidence of illegally parked vehicles on the road. By setting up processes such as switching inspection and evidence collection modes, locating evidence collection points, adjusting focal length steps, filtering license plates in spatial dimensions, and counting recognition failures, the system can encapsulate and send image and license plate information.
[0004] Chinese patent application CN110619750B discloses an intelligent aerial photography recognition method and system for illegally parked vehicles. By setting up methods such as parking vehicle recognition, traffic marking recognition, no-parking zone judgment, and lowering the flight altitude for evidence collection, the system can extract the license plate information of the target vehicle.
[0005] In actual drone aerial photography for evidence collection, vehicle targets often appear smaller in images due to the operating distance. They are also susceptible to interference from factors such as side shooting angles, lighting reflections, motion blur, and partial target occlusion. Vehicle tracking markers may switch due to target occlusion, gimbal rotation, and target re-identification. Relying solely on text results obtained from single-frame OCR recognition is prone to incomplete information and conflicting results. Directly using single-frame recognition results as evidence makes it difficult to establish a reliable correspondence between the recognized text and the target vehicle, the actual shooting time, and the actions of the onboard equipment.
[0006] To acquire license plate images that meet quality requirements, it is typically necessary to control the gimbal to aim at the target, adjust the lens zoom, and trigger a second shot. However, before the onboard equipment completes its actions, the video link continues to output historical images from before the action. If these historical images are used for license plate quality assessment and OCR recognition after the action is completed, the algorithm may select incorrect target areas, generating evidence data that does not match the actual physical state of the equipment. When multiple candidate vehicles exist simultaneously in the system, visual control resources such as the gimbal and camera compete for resources, which can easily lead to crosstalk between equipment actions.
[0007] Furthermore, consecutive similar frames output under the same imaging conditions often carry the same blurring, reflection, or occlusion defects. If the recognition support is directly accumulated based on the number of frames, it will amplify the weighting influence of the same batch of imaging observations on the recognition conclusion; at the same time, the algorithm will repeatedly initiate re-shooting under the same conditions, increasing the operation time without obtaining effective incremental information.
[0008] Therefore, how to provide a closed-loop AI-based evidence collection method and system for vehicle license plates using drones is an urgent problem to be solved. Summary of the Invention
[0009] This invention provides a closed-loop AI-based method and system for obtaining vehicle license plates from unmanned aerial vehicles (UAVs) to address the aforementioned technical problems in the prior art.
[0010] According to a first aspect of the present invention, a closed-loop AI-based method for obtaining vehicle license plates from unmanned aerial vehicles is provided.
[0011] In one embodiment, the closed-loop AI-based method for obtaining vehicle license plate information from unmanned aerial vehicles includes: Vehicle detection and tracking are performed on UAV media frames to obtain vehicle bounding boxes and construct vehicle time sequence segments; motion state prediction is performed on vehicle positions to obtain predicted positions and predicted covariance, and a solution pre-set object containing the predicted position and standard deviation envelope is obtained based on the predicted covariance. Based on the vehicle time sequence segment, determine the candidate targets to be evidenced and complete the candidate deduplication, and output the main vehicle identifier; Based on the main vehicle identification, visual control resources are reserved. After the visual control resources are successfully reserved, an event context carrying a pre-defined object is constructed. Based on the event context, the upper limit of the safe zoom magnification is determined according to the prediction covariance, and the preset action is executed within the upper limit of the safe zoom magnification based on the preset object; the new frame after the action is selected according to the effective time of the preset action to form the input context after the action. Based on the input context after the action, a unique re-association verification is performed on the vehicle corresponding to the main vehicle identifier, and license plate localization is performed within the vehicle frame that passes the verification to obtain the license plate candidate area; The quality of the candidate license plate area is assessed to obtain license plate images that pass the quality threshold. License plate recognition is performed on license plate images that have passed the quality access test. The images are divided into framing groups according to the actual framing conditions and each group has an equal weight contribution. The robust support rate is obtained by removing and recalculating each group. The close-up images are then combined for cross-validation, and the license plate recognition conclusion that has passed the validation is output. If no valid license plate recognition result is output, a reshoot action is selected based on the invalid action memory, the action round is updated, and the preset action is executed. If a valid license plate recognition result is output, evidence binding is performed, an evidence package is generated and reported, and the closed-loop event result is output.
[0012] According to a second aspect of the present invention, a closed-loop AI-based evidence collection system for vehicle license plates of unmanned aerial vehicles is provided.
[0013] In one embodiment, the drone vehicle license plate closed-loop AI evidence collection system includes: The vehicle detection and prediction unit is used to detect and track vehicles in UAV media frames, obtain vehicle bounding boxes and construct vehicle time segments; predict the motion state of vehicle positions, obtain predicted positions and predicted covariance, and calculate a pre-set solution object containing the predicted positions and standard deviation envelopes based on the predicted covariance. The candidate deduplication unit is used to determine the candidate targets to be evidenced based on the vehicle time sequence segments and complete the candidate deduplication, and output the main vehicle identifier; The resource reservation construction unit is used to reserve visual control resources based on the main vehicle identifier and to construct an event context carrying preset objects after the visual control resources are successfully reserved. The preset execution filtering unit is used to determine the upper limit of safe zoom magnification based on the event context and the prediction covariance, and to execute preset actions within the upper limit of safe zoom magnification based on the preset object; and to filter new frames after the action based on the effective time of the preset action to form the input context after the action. The re-association localization unit is used to perform unique re-association verification on the vehicle corresponding to the main vehicle identifier based on the input context after the action, and to perform license plate localization within the vehicle frame that passes the verification to obtain the license plate candidate area. The quality assessment unit is used to assess the quality of the license plate candidate area and obtain a license plate image that passes the quality admission test. The recognition and verification unit is used to recognize license plates in license plate images that have passed the quality access test. It divides the framing group according to the actual framing conditions and assigns equal weight to each group. After removing and recalculating each group, it obtains a robust support rate and performs cross-validation by retaining close-up images. It then outputs the license plate recognition conclusion that has passed the verification. The supplementary shooting and reporting unit is used to select a supplementary shooting action based on the invalid action memory if no license plate recognition result is output after updating the action round and returning to execute the preset action if no license plate recognition result is output after verification. If a license plate recognition result is output after verification, evidence binding is performed, an evidence package is generated and reported, and the closed-loop event result is output.
[0014] According to a third aspect of the present invention, a computer device is provided.
[0015] In some embodiments, the computer device includes a memory and a processor, the memory storing a computer program, and the processor executing the computer program to implement the steps of the method described above.
[0016] According to a fourth aspect of the present invention, a computer program product is provided.
[0017] In one embodiment, the computer program product stores a computer program that, when executed by a processor, implements the steps of the method.
[0018] According to a fifth aspect of the present invention, a computer-readable storage medium is provided.
[0019] In one embodiment, a computer program is stored on the computer-readable storage medium, which, when executed by a processor, implements the steps of the above method.
[0020] The technical solutions provided by the embodiments of the present invention may include the following beneficial effects: 1. This invention arranges trajectory prediction before resource access, allowing effective presets to be executed directly after overview shooting; prediction errors are simultaneously involved in the calculation of zoom safety limits, avoiding the loss of targets in pursuit of high magnification. Vehicle movement, link delay, and target visibility range are connected by the same prediction object.
[0021] 2. This invention uses the device's final state, effective time, time mapping error, and frame sequence number to jointly define subsequent images, reducing the possibility of pre-action cached frames being mistakenly used for post-action judgment. The action rounds and occupancy generations further prevent late receipts and old images from being mixed with new events.
[0022] 3. This invention first verifies the unique association of the vehicle after the action, and then limits the license plate area and license plate identity, so that the clear license plates of adjacent vehicles cannot exceed the association conditions of the main vehicle, reducing the risk of misbinding under multiple vehicles in the same frame and tracking identifier switching.
[0023] 4. This invention selects a calibrated quality threshold based on environmental semantics, and increases the number of independent frames and fusion consistency requirements when relaxing the image threshold; card type preference is only subject to limited soft constraints, and ultimately, consistency between independent original close-up images is still required. This linkage enables environmental adaptation and evidence constraints to work synergistically.
[0024] 5. This invention merges similar observations according to actual framing conditions and fixes the total contribution of each group, limiting the impact of the number of consecutive frames under the same conditions on the event support rate.
[0025] 6. This invention identifies the dependence of the conclusion on a few framing conditions by checking the remaining support after removing each group, and sends the reasons for failure and quality summary to the reshoot decision.
[0026] 7. This invention records verifiable changes before and after actions, preventing the repeated execution of invalid actions under the same conditions; original data and failure evidence are retained simultaneously, supporting review. Resource atomic access, action idempotency, and state reconciliation ensure that the above data collection process revolves around the same event.
[0027] It should be understood that the above general description and the following detailed description are exemplary and explanatory only, and are not intended to limit the invention. Attached Figure Description
[0028] The accompanying drawings, which are incorporated in and form part of this specification, illustrate embodiments consistent with the invention and, together with the description, serve to explain the principles of the invention.
[0029] Figure 1 This is a flowchart illustrating a closed-loop AI-based method for obtaining vehicle license plates from unmanned aerial vehicles, according to an exemplary embodiment. Figure 2 This is a schematic diagram of a closed-loop AI evidence collection system for vehicle license plates of unmanned aerial vehicles, according to an exemplary embodiment. Figure 3 This is a schematic diagram of the structure of a closed-loop AI evidence collection system for vehicle license plates of unmanned aerial vehicles, according to an exemplary embodiment. Figure 4 This is a flowchart illustrating a closed-loop AI-based evidence collection method for vehicle license plates using unmanned aerial vehicles, according to an exemplary embodiment. Figure 5 This is a flowchart illustrating the framing group stability check and reshoot feedback according to an exemplary embodiment; Figure 6 This is a schematic diagram of the structure of a computer device according to an exemplary embodiment. Detailed Implementation
[0030] The following description and accompanying drawings fully illustrate specific embodiments described herein to enable those skilled in the art to practice them. Some portions and features of certain embodiments may be included in or replace portions and features of other embodiments. The scope of the embodiments herein includes the entire scope of the claims and all available equivalents thereof. The various embodiments described herein are presented 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.
[0031] The modules in the apparatus or system of this application can be implemented entirely or partially through software, hardware, or a combination thereof. These modules can be embedded in or independent of the processor in a computer device in hardware form, or stored in the memory of a computer device in software form, so that the processor can call and execute the operations corresponding to each module.
[0032] Where there is no conflict, the embodiments and features in the embodiments of the present invention can be combined with each other.
[0033] Figure 1 An embodiment of the closed-loop AI-based evidence collection method for vehicle license plates of unmanned aerial vehicles according to the present invention is shown.
[0034] In this optional embodiment, the closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles includes: Step S101: Detect and track vehicles in the UAV media frames to obtain vehicle bounding boxes and construct vehicle time segments; predict the motion state of the vehicle positions to obtain the predicted positions and predicted covariance, and calculate the solution preset object containing the predicted positions and standard deviation envelopes based on the predicted covariance. Step S102: Determine the candidate targets to be identified based on the vehicle time sequence segments and complete the candidate deduplication, then output the main vehicle identifier; Step S103: Based on the main vehicle identification, reserve visual control resources, and after the visual control resources are successfully reserved, construct an event context carrying preset objects; Step S104: Based on the event context, determine the upper limit of the safe zoom magnification according to the prediction covariance, and execute the preset action within the upper limit of the safe zoom magnification based on the preset object; filter the new frame after the action according to the effective time of the preset action to form the input context after the action. Step S105: Based on the input context after the action, perform a unique re-association verification on the vehicle corresponding to the main vehicle identifier, and perform license plate localization within the vehicle frame that passes the verification to obtain the license plate candidate area. Step S106: Perform quality assessment on the candidate license plate region to obtain a license plate image that passes the quality admission test; Step S107: Perform license plate recognition on the license plate images that have passed the quality access test. Divide the framing groups according to the actual framing conditions and make equal weight contributions to each group. After removing and recalculating each group, obtain the robust support rate. Combine the reserved close-up images for cross-validation and output the license plate recognition conclusion that has passed the validation. Step S108: If no license plate recognition result is output after verification, select a reshoot action based on the invalid action memory, update the action round, and return to execute the preset action; if a license plate recognition result is output after verification, bind the evidence, generate an evidence package and report it, and output the closed-loop event result.
[0035] In this optional embodiment, the motion state of the vehicle position is predicted to obtain the predicted position and the predicted covariance. Based on the predicted covariance, a preset solution object containing the predicted position and standard deviation envelope is calculated, including: Construct a constant velocity state vector for the vehicle center under the same stable reference coordinates in the vehicle time sequence segment; Kalman constant velocity filtering is used to predict the constant velocity state vector to obtain the estimated state position and prediction covariance; Based on the final state records of recent similar device commands, the transmission, execution, stabilization, and overview photography times are estimated. The time estimation is updated using exponential smoothing. Based on the current trajectory frame age and the updated time estimation, the estimated state position is extrapolated along the constant velocity state vector to the time when the preset action takes effect to obtain the predicted position. The predicted position is mapped to the image via camera calibration, and the preset gimbal angle and preset zoom ratio are calculated. The standard deviation envelope of the predicted position is determined based on the predicted covariance, and the preset gimbal angle, preset zoom ratio, and standard deviation envelope are used as preset objects.
[0036] In this optional embodiment, candidate targets for evidence collection are determined based on vehicle time-series segments, and candidate deduplication is performed. The output main vehicle identifier includes: Based on the vehicle grounding anchor point, motion state and cumulative dwell time of the vehicle time sequence segment, the candidate vehicles are initially screened to obtain the initial set of candidate vehicles. Based on the effectiveness of positioning, the ground anchor point and the no-parking area are unified into the same coordinate domain to carry out area determination, and candidate targets for evidence collection that meet the preset candidate criteria are selected from the initial candidate vehicle set. The candidate targets to be forensic analysis are deduplicated using a deduplication key consisting of session identifier, stable vehicle identifier, and task configuration version, resulting in deduplicated candidate targets. Select the primary vehicle identifier from the deduplicated candidate targets, and output the primary vehicle identifier, the corresponding deduplication key, and the candidate validity period.
[0037] In this optional embodiment, determining the upper limit of the safe zoom magnification based on the event context and the predicted covariance, and performing a preset action within the upper limit of the safe zoom magnification based on a preset object, includes: Based on the standard deviation envelope in the preset object, combined with the safe aspect ratio and the device magnification range, the upper limit of the safe zoom magnification is determined; The gimbal is aligned according to the preset gimbal angle in the preset object, and the zoom is controlled within the upper limit of the safe zoom ratio according to the preset zoom ratio in the preset object, so as to obtain the preset action execution result.
[0038] In this optional embodiment, filtering new frames after an action based on the effective time of a preset action to form the post-action input context includes: The display timestamps of media frames are mapped to a monotonic time domain that is consistent with the device, and the acquisition time and upper bound of the mapping error corresponding to each media frame are calculated. Obtain the effective time of the preset action from the device feedback, and calculate the new frame time threshold in the monotonic time domain by combining it with the preset stable waiting time. Media frames are filtered based on acquisition time, upper bound of mapping error, session identifier, action round, and frame sequence number. Only frames whose acquisition time is later than the new frame time threshold and belong to the current session and the current action round are retained as new frames after the action. The post-action input context is generated by integrating the new frame after the action, the actual gimbal attitude and actual zoom ratio, the preset action activation time, the upper bound of the mapping error, and the event context.
[0039] In this optional embodiment, based on the post-action input context, a unique re-association verification is performed on the vehicle corresponding to the main vehicle identifier, and license plate localization is performed within the vehicle frame that passes the verification, resulting in a license plate candidate area including: Extract the new frame after the action, the actual gimbal attitude and actual zoom ratio, the main vehicle identifier, the predicted position and the standard deviation envelope from the post-action input context; The predicted position and standard deviation envelope are transformed to the new frame after the action to obtain the transformed predicted position. Detect vehicles in the new frame after the action to obtain a vehicle detection set; The expected pixel scale is determined based on the actual gimbal attitude and the actual zoom ratio. The search radius is the predicted position after transformation and the standard deviation envelope. Candidate associations that meet the Mahalanobis distance threshold and whose size is consistent with the expected pixel scale are selected from the vehicle detection set. When the associated candidate is unique and its association score meets the absolute threshold and the difference threshold, the unique re-association verification is passed, and the vehicle frame that has passed the verification is obtained. Perform license plate localization within the vehicle frame that has passed verification, and output the license plate candidate area.
[0040] In this optional embodiment, the quality of the license plate candidate region is assessed to obtain a license plate image that passes quality admission, including: Extract the candidate license plate region image and calculate a multi-dimensional quality vector including size, character height, sharpness, brightness, contrast, boundary integrity, occlusion ratio, tilt angle, and perspective distortion; The environmental level is determined based on the full-image illumination estimation and weather type identification results of the new frame after the action. The basic quality threshold is determined based on the environmental level, and then the basic quality threshold is adjusted according to the correction amount corresponding to the environmental level to obtain the entry threshold under the current environment. The multidimensional quality vector is compared with the entry threshold, and the candidate regions of the license plates that meet the entry threshold are selected as the license plate images that pass the quality access.
[0041] In this optional embodiment, license plate recognition is performed on the license plate images that have passed the quality threshold. The images are divided into framing groups according to the actual framing conditions, with each group having an equal weighted contribution. Robust support rates are obtained by removing and recalculating each group, and cross-validation is performed using the retained close-up images. The output of the license plate recognition conclusion that has passed the validation includes: After geometric correction of the license plate images that have passed the quality threshold, character recognition is performed to obtain the candidate text of each frame and the recognition confidence of each character; The frame-embedded confidence of each candidate text is determined based on the recognition confidence of each character, and the frame weight is obtained by combining the multidimensional quality vector of the frame. Based on the actual framing conditions, license plate images that pass the quality access test are classified into several framing groups. The frame with the highest frame weight in each group is selected as the representative frame. The frame weights within the group are normalized, and the candidate texts of each representative frame are fused equally between groups to obtain the weighted support rate of each candidate text. The candidate text with the highest weighted support rate is determined as the selected candidate. Remove one framing group at a time and recalculate the support rate of the remaining groups for the selected candidate. The lowest value among the support rates obtained from each recalculation is taken as the robust support rate. If the support rate of the selected candidate is the only highest after each recalculation and the robust support rate is not lower than the preset robustness threshold, then the group stability test is passed. After the group stability test is passed, the selected candidate is cross-validated using the left-behind close-up image that was not involved in the fusion. When the highest visual candidate in the left-behind close-up image is consistent with the selected candidate character by character and the character confidence meets the threshold, the selected candidate is output as the license plate recognition conclusion that has passed the verification.
[0042] In this optional embodiment, if no license plate recognition result is output that passes the verification, a re-shooting action is selected based on the invalid action memory, and the action round is updated before returning to execute the preset action, including: When no valid license plate recognition result is output, the preset gimbal angle, preset zoom ratio, actual gimbal attitude, actual zoom ratio, failure reason and acquisition time of the current action round are recorded into the invalid action memory. Invalid action memories are retrieved using the session identifier and the main vehicle identifier as indexes. Candidate reshoot actions with gimbal angle difference and zoom ratio difference less than the preset repetition threshold between them and historically executed actions are removed to obtain the remaining candidate reshoot actions. Based on the cause of failure, determine the reshoot action from the remaining candidate reshoot actions, update the preset gimbal angle and preset zoom ratio corresponding to the reshoot action to the event context, accumulate the action rounds, control the gimbal alignment according to the updated preset gimbal angle, and control the zoom within the safe zoom ratio limit according to the updated preset zoom ratio. When the number of action rounds exceeds the preset round limit or the remaining candidate reshoot actions are empty, the reshoot is terminated, and the closed-loop event result of evidence collection failure is output.
[0043] Figure 2 An embodiment of the unmanned aerial vehicle license plate closed-loop AI evidence collection system of the present invention is shown.
[0044] In this optional embodiment, the drone vehicle license plate closed-loop AI evidence collection system includes: The vehicle detection and prediction unit 201 is used to detect and track vehicles in UAV media frames, obtain vehicle bounding boxes and construct vehicle time segments; predict the motion state of vehicle positions, obtain predicted positions and predicted covariance, and calculate a solution preset object containing the predicted positions and standard deviation envelopes based on the predicted covariance. Candidate deduplication unit 202 is used to determine the candidate targets to be evidenced based on vehicle time sequence segments and complete candidate deduplication, and output the main vehicle identifier; Resource reservation construction unit 203 is used to reserve visual control resources based on the main vehicle identifier and to construct an event context carrying a preset object after the visual control resources are successfully reserved. The preset execution filtering unit 204 is used to determine the upper limit of the safe zoom magnification based on the event context and the prediction covariance, and to execute the preset action within the upper limit of the safe zoom magnification based on the preset object; and to filter the new frame after the action according to the effective time of the preset action to form the input context after the action. The reassociation and localization unit 205 is used to perform unique reassociation verification on the vehicle corresponding to the main vehicle identifier based on the input context after the action, and perform license plate localization within the vehicle frame that passes the verification to obtain the license plate candidate area. The quality determination unit 206 is used to determine the quality of the license plate candidate area and obtain a license plate image that passes the quality access test. The recognition and verification unit 207 is used to perform license plate recognition on license plate images that have passed the quality access test. It divides the framing group according to the actual framing conditions and each group has equal weight contribution. After removing and recalculating each group, the robust support rate is obtained. It also performs cross-verification by leaving out the close-up image and outputs the license plate recognition conclusion that has passed the verification. The supplementary shooting reporting unit 208 is used to select a supplementary shooting action based on the invalid action memory if no license plate recognition result is output after updating the action round and returning to execute the preset action if no license plate recognition result is output after verification. If a license plate recognition result is output after verification, evidence binding is performed, an evidence package is generated and reported, and the closed-loop event result is output.
[0045] To facilitate understanding of the above technical solutions of the present invention, the following further explains the above technical solutions of the present invention from the perspective of architecture and principle, as follows: This invention consists of ten functional modules, used to implement the aforementioned closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles (UAVs). The processing flow of the UAV / vehicle license plate closed-loop AI evidence collection method is divided into eight stages (B101 to B108). The ten functional modules are divided according to their functional responsibilities, and there is a many-to-many calling relationship between them: any event processing stage can call one or more functional modules, and the same functional module can also be called by one or more event processing stages. Scene determination and candidate scheduling are uniformly handled by the scene AI candidate module. Figure 3 The diagram shows the structure of a closed-loop AI-based vehicle license plate verification system for drones. The modules are divided according to their functional responsibilities, and each module can be reused across steps B101 to B108. The specific triggering conditions, inputs, outputs, and corresponding processing steps for each module are as follows: The media access module M1 participates in B101, B103 to B107. It is triggered when a video frame, raw photo, or clock synchronization information arrives; it takes media data and the acquisition end time as input, outputs a frame object with session identifier, frame number, exposure time, reception time, and time-mapped version, and filters new frames according to the threshold given in B104.
[0046] The vehicle detection and tracking module M2 participates in B101, B102, B104, and B105. It is triggered when a new frame arrives or when re-association is required after an action. It takes frames, historical trajectories, and attitude calibration as inputs and outputs vehicle bounding boxes, categories, confidence levels, original tracking identifiers, stable vehicle identifiers, motion states, predicted positions, and covariance.
[0047] The scene AI candidate module M3 participates in the write-back of B102, B103, and B108. It is triggered when the trajectory is updated; it takes scene configuration and time series features as input and outputs candidates, main vehicle, deduplication key, validity period, and scene basis; after receiving success or failure results, it either solidifies or cancels the temporary deduplication status.
[0048] The resource admission module M4 participates in B103, B104, and final state cleanup. It is triggered when a candidate passes the admission criteria; it takes an input event and the required resource set as input, and outputs a full resource reservation token and its occupancy generation, or a one-time rejection result. The load action coordination module only consumes valid tokens and does not automatically reserving them.
[0049] The payload action coordination module M5 participates in the reshooting and termination control of B104 and B106 to B108. It is triggered when an event or reshooting request is received; it inputs the freeze context, resource token, preset parameters, quality reasons, group inspection results, and invalid action memory, and outputs a deterministic action request and close-range acquisition task; after the action is completed, it submits the actual changes for evaluation by M8 and updates the action history of this event.
[0050] The action state storage module M6 participates in B103, B104, and B108. It is triggered when a workflow is submitted, a device is accepted, a status query is performed, or a callback arrives. It takes as input a request identifier, a device command identifier, and a receipt, and outputs the idempotent action state, final state, effective time, and current event occupancy generation for use in new frame filtering and resource release judgment.
[0051] The license plate localization and recognition module M7 is involved in B105 to B107. When a vehicle has been uniquely re-associated, the license plate is located first, and OCR is performed only after the quality is passed. The input is the vehicle area, license plate candidates, and quality admission results, and the output is the four corners of the license plate, the character area, the candidate text, and the character probability.
[0052] The quality assessment and fusion module M8 participates in B106 and B107 and provides feedback to B104. It is triggered when the card or OCR candidate arrives; the input image, environmental threshold, actual framing conditions and candidate sequence, output quality vector, framing group, intra-group and inter-group support, recalculation results of removed groups, reason for reshoot and recognition conclusion; the action effect is evaluated according to Section 3.6.
[0053] The evidence binding module M9 participates in B103, B104, and B108. It is triggered when the freeze overview is completed, an action receipt is obtained, or a conclusion is reached; it takes the original media and the entire process evidence as input, and outputs the evidence object identifier, document summary, and event list, binding intermediate objects to the same event.
[0054] Event reporting module M10 participates in B108. It is triggered when the complete evidence package is uploaded to disk; it inputs the event list and conclusion, and outputs the upload status and server confirmation flag. Upload retry reads the same evidence package, without calling back to B104 to re-execute completed actions.
[0055] The main call chain is as follows: M1 / M2 executes B101, M3 executes B102, M3 / M4 / M6 / M9 executes B103, M5 / M6 / M1 executes B104, M2 / M7 executes B105, M8 executes B106 and calls M5 as needed, M7 / M8 executes B107, and M9 / M10 executes B108; therefore, one step can call multiple modules, and the same module can also be reused by multiple steps.
[0056] The original vehicle target includes categories Detection confidence Original image coordinate frame Original tracking identifier track_id, vehicle center anchor point Frame identifier and media time. The coordinate frame, center anchor point, and ground anchor point are defined as follows: ; ; in, The x and y coordinates of the top-left corner of the target bounding box. The x and y coordinates are the bottom right corner, and the units are the original image pixels. Indicates the center of the vehicle image. This indicates the vehicle's ground anchor point. Ground anchor points are used when determining area occupancy to avoid directly treating the vehicle's center as the ground location. For the target category label, This represents the confidence level of the test.
[0057] The vehicle time-series segment Trackcklet includes a stable vehicle identifier (vehicle_id), a session identifier (session_id), a list of track marker names, historical bounding boxes and anchor points, camera motion compensation results, motion state and covariance, predicted target position, preset gimbal angle and preset zoom ratio, prediction time domain, generation time, and calibration version. The vehicle_id cannot consist solely of potentially duplicated or switched original track_ids.
[0058] The EventContext includes event_id, workflow_id, vehicle_id, associated vehicle, frozen overview frame, scene criteria, configuration version, deduplication key, candidate validity period, reserved token, occupancy generation, preset objects, and action list. Each action round is further assigned an action_epoch to prevent images and receipts from being mixed across events, occupancy generations, or action rounds.
[0059] The PostActionContext input after an action includes the aforementioned event identifier, current action round, each action request identifier, device command identifier, final state, actual attitude and magnification, effective time and upper error bound, new frame list, frozen anchor points, and predicted trajectory. This object is the only event entry point passed from B104 to B105.
[0060] The event context further preserves the view group list and action effect history. The view group (ViewGroup) records the group_id, the associated event and vehicle, actual magnification and pose, environmental settings, image similarity and quality summary, representative frame, all sources, and group-supported distribution; the group_id and action_epoch are recorded separately, and the same view group can cover multiple similar actions. Action effect records include condition keys, actions and parameters, pre- and post-action quality and grouping test results, valid / invalid / unknown status, failure reasons, and re-allowance conditions.
[0061] Resource access is determined by establishing an exclusive visual control resource group based on the drone's identifier, covering the gimbal, zoom, camera, and viewpoint control required for this event; alternatively, each resource can be modeled separately and then atomically reserved all at once. If not all resources are acquired, the task is not configured with the corresponding action, or the candidate has expired, the candidate will not enter the waiting queue; subsequent new frames can re-establish the candidate.
[0062] like Figure 4 As shown, the processing flow of the drone vehicle license plate closed-loop AI evidence collection method is divided into eight stages, from B101 to B108. The specific process is as follows: B101, Vehicle Detection, Time Segment Construction and Preset Prediction.
[0063] The media access module M1 obtains the exposure time or the media PTS that can be mapped to the exposure time from the acquisition end, and the frame number increments within the same session. The original PTS, acquisition time, and reception time are saved separately. When reconnecting, PTS rollback, or clock transition occurs, a new session is created, and the cross-session trajectory association and old frame threshold are cleared. The decoding arrival time cannot be used to replace the shooting time.
[0064] The vehicle detection and tracking module M2 uses the YOLO26m multi-scale detection model for vehicle detection, with 3 input channels. Images are scaled proportionally and margin parameters are saved simultaneously. The multi-scale detection model includes a convolutional backbone, a multi-scale feature fusion neck, and a detection head, configured with 10 classes, end2end set to true, reg_max set to 1, a depth coefficient of 0.5, a width coefficient of 1.0, and a maximum number of channels of 512. The classification dictionary includes pedestrians, crowds, bicycles, cars, vans, trucks, tricycles, covered tricycles, buses, and motorcycles; the car category is selected for car evidence collection tasks, while other vehicle tasks are selected according to category mapping.
[0065] The main trunk passes through in sequence The stride 2 convolution downsamples to scales of 2, 4, 8, 16, and 32, combined with C3k2 feature blocks, and uses SPPF spatial pyramid pooling and C2PSA attention blocks in deeper layers. The backbone channel parameters in the configuration are 64, 128, 256, 256, 512, 512, 512, 1024, 1024, 1024, 1024, respectively, with the actual channels pruned to the upper limit of the m specification; blocks with a repetition count of 2 are scaled according to the depth factor. The neck layer is first upsampled by 2x and stitched together with the 6th and 4th layers of the backbone, then downsampled and feature-stitched back. The detection head connects to the 16th, 19th, and 22nd layers, forming target predictions with strides of 8, 16, and 32. The detection results output the original bounding box (i.e., the vehicle bounding box mentioned above), category, and confidence score (i.e., the detection confidence score mentioned above), and the tracker provides the original tracking label; these two should not be confused and referred to as the direct output of the detector.
[0066] Training uses drone images with labeled vehicle bounding boxes and categories, combining vehicle center-cropped samples with panoramic samples. After cropping, the bounding box coordinates are recalculated to retain visible vehicles and avoid treating out-of-bounds truncated boxes as complete vehicles. Fine-tuning is possible from pre-trained weights. A set of fine-tuning parameters is: input 1024, batch size 2, AdamW, initial learning rate 0.00001, final learning rate ratio 0.2, weight decay 0.0005, 1 warm-up epoch, cosine learning rate, freeze the first 10 layers, 3 fine-tuning epochs, and patience 3. This is a short-range fine-tuning configuration with existing weights, not the number of epochs for training the complete network from scratch. Data augmentation example: hsv_h 0.01, hsv_s 0.4, hsv_v 0.25, rotation ±2 degrees, translation ratio 0.05, scale perturbation 0.25, horizontal flip probability 0.5, Mosaic and MixUp disabled. Verification samples are isolated by task and vehicle identity, and weights are selected based on the verification results. The model and training configuration versions are then saved.
[0067] Inference can be performed using the PT runtime or a TensorRT engine derived from the same weights; the weight summary, input size, and category dictionary must be consistent. Example tracking input has a minimum confidence of 0.10, and output service detection has a minimum confidence of 0.45. Example ByteTrack parameters: high score threshold 0.25, low score threshold 0.10, new trajectory threshold 0.25, 30 frames of lost buffer, matching threshold 0.80, and score fusion enabled; the tracker holds its state independently for each task. The stable ID used for display and the original track ID used for event identification are stored separately; the displayed ID cannot replace the event identification.
[0068] Background features are first extracted and matched outside the vehicle frame in adjacent frames, and then the planar homography matrix to the reference frame is estimated using RANSAC. To eliminate shared image motion caused by drone translation and gimbal rotation, compensation is considered unreliable if there are fewer than 30 matching inliers, an inlier ratio below 0.60, or a median reprojection error exceeding 3 pixels. For non-planar ground areas, camera attitude and terrain calibration can be used instead. When compensation is unreliable and geolocation is invalid, only a short-term trajectory for evidence collection is retained, and vehicle stillness is not considered based on image staticity.
[0069] for The planar homography transformation matrix is used to map background matching points to the reference image; it is combined with a scalar representing the image height (described later). Distinguish by context. RANSAC is a random sampling consensus estimation method, and its specific expression is as follows: ; In the formula, This is the trajectory / target index from the previous sampling time. This is the index of the candidate targets at the current sampling time; To convert two bounding boxes to the same reference coordinates, The area of the corresponding frame is expressed in square pixels. The Euclidean distance between the centers of the two boxes is given. This is the distance normalization scale, and the unit is pixels. The value is the dimensionless association cost; the smaller the value, the higher the degree of matching. The intersection-union ratio and distance scale are: ; ; in, For reference image width and height, the vertical lines outside the intersection / union represent the area of the region; It is the natural logarithm. Take the minimum value. The vertical lines in the text represent absolute values. Similar targets, intervals not exceeding 0.5 seconds, and center-to-center distances not exceeding... And the area ratio is in Matching is allowed at any time, and the Hungarian algorithm is used to select the one-to-one association with the minimum total cost. A threshold example is accepted. Original tracking identifier consistency is only considered as a priority candidate; geometric thresholds must still be met. Unmatched trajectories are retained for a maximum of 0.5 seconds; upon reacquiring the target, alias mapping and association criteria are recorded.
[0070] Construct a constant velocity state (i.e., the constant velocity state vector mentioned above) for the vehicle center in the same stable coordinate system, and use Kalman prediction: ; ; ; in, For the current moment, The predicted duration is in seconds. To stabilize the center x and y coordinates in the reference image, The corresponding speeds are in pixels and pixels per second, respectively. This is a four-dimensional column state vector, where the cap number represents the estimated value and the superscript... This indicates transpose. The constant velocity state transition matrix; in, Its diagonal elements are all 1. All All other elements are 0. The position observation matrix takes the first two rows of a fourth-order identity matrix, i.e., the first two components of the directly observed state. The initial value of the position observation noise can be taken as 3 pixel standard deviation, and the process noise is calibrated by the residuals. The predicted state error covariance matrix is preserved. The covariance of the residuals from the last five innovations is used as a supplementary uncertainty; if reliable compensation is not obtained, this uncertainty is increased or the presetting is stopped.
[0071] Based on the final state records of recent similar device commands, the transmission, execution, stabilization, and overview capture times are estimated, using exponential smoothing: ; in, This is the time estimate before the update. The actual observation time was [time]. The updated time estimate is in seconds; the subscripts old, obs, and new represent historical, current, and updated values, respectively. This predicts the estimated time when the preset action will take effect. The prediction time domain is the current trajectory frame age plus the estimated time, with an example range of 0.2 to 1.5 seconds; actions outside this range are not extrapolated. The predicted position is mapped back to the image via the camera's current calibration, and the preset gimbal angle and magnification are calculated. A conservative envelope of 2.45 standard deviations (i.e., the standard deviation envelope mentioned above) is also saved. This envelope is used for both B104 zoom limitation and B105 reassociation. Before resource reservation, only the preset objects are calculated and updated; no actions are sent to the device. The standard deviation envelope of the predicted position is determined based on the prediction covariance, and the preset gimbal angle, preset zoom magnification, and standard deviation envelope are used as the preset objects.
[0072] B102, Scene Determination and Candidate Deduplication.
[0073] Scene AI candidate module M3 constructs ordered feature records: ; In the formula, It includes both numerical features and identification fields; For consecutive hits, The number of frames in the sampling window. For the most recent Number of hits in a frame The arithmetic mean of the confidence scores for these hits. For vehicle grounding anchor points; This represents the hit rate of the anchor point within the target area. The median velocity after motion compensation or at effective geographic coordinates. This is the cumulative reliable dwell time. To locate the validity field loc_valid, For the task type field, task_type The rule_version field contains three components: a valid / invalid flag, a category identifier, and a version identifier. These components are not involved in continuous numerical calculations. Dwell time is only accumulated for intervals where the location is reliable and the dwell condition is met; accumulation is interrupted if there are more than 0.5 seconds of consecutive missing time.
[0074] The no-stopping zone is defined by the ground polygon configured in the task, the valid time period, and the exception area. When geolocation is valid, the anchor point is projected onto the same local metric coordinates, and the point-within-the-polygon algorithm is used for judgment. When geolocation is invalid, the region polygon and the anchor point are uniformly mapped to the stable reference image of the current session before judgment. If the distance from the anchor point to the region boundary is less than 2.45 times the position standard deviation, it is considered as boundary uncertainty and is not counted as a hit within the defined region.
[0075] A candidate for suspected illegal parking must meet the following conditions: the rule is currently in effect and the candidate is not in an exception area. Additionally, the following example criteria must be met: ; In the formula, The minimum number of hits within the window. To determine the maximum speed limit for stopping, The minimum dwell time configured for the task, in seconds. (Geographic coordinates) The velocity can be configured from 0.2 to 0.8 m / s, with an example of 0.5 m / s; the velocity at stable pixel coordinates is normalized along the image diagonal, with an example upper limit of 0.001 m / s, and should not be confused with m / s. (Example example uses...) Seconds; this value is the evidence collection trigger parameter and does not represent the statutory time limit for determining traffic violations.
[0076] For tasks such as taking photos and recording vehicle information within the park that are not related to illegal parking, candidates for evidence collection can be generated based solely on stable vehicles, regional relationships, and task triggering conditions. The event type should be explicitly marked as "to be collected," and no illegal parking judgment should be output. Similarly, short-term detection hits should not be used to replace the parking judgment when location is invalid or evidence of stopping is insufficient.
[0077] Deduplication first matches the identity key composed of session_id, vehicle_id, and task configuration version (i.e., the deduplication key mentioned above). When the identity changes, the frame intersection and union ratio must be satisfied simultaneously within the same reference coordinates. Merging is permitted only if the center distance is no more than 0.03 times the image diagonal and the time interval is no more than 5 seconds. If geolocation is valid, a distance of no more than 2 meters and the same time window can be used, but vehicle category and appearance / trajectory compatibility are still required. Merging should not be based solely on the geographical proximity of two vehicles. Active events use a temporary deduplication state, which is changed to a completed state after the evidence package is generated; failure results in the temporary state being revoked. The example window for suppressing duplicates after completion is 60 seconds; events can be re-established after a vehicle leaves or if the task changes.
[0078] The deduplication process uses a deduplication key consisting of a session identifier, a stable vehicle identifier, and a task configuration version to deduplicate candidate targets. From these deduplicated candidate targets, a primary vehicle identifier is selected, and the primary vehicle identifier, its corresponding deduplication key, and the candidate's validity period are output.
[0079] B103, Overview of Freeze and Resource Access.
[0080] K frames and N hits are used to confirm the stability of the detection source. The value range is 3 ≤ K ≤ 15, and N = rK ,0.60≤r≤0.90,N≥2. Wherein, To achieve the required window hit ratio, This indicates rounding up; here Unlike the unit line-of-sight vector mentioned later. . The sampling rate is measured in frames per second; if It is acceptable Low-latency forensic tasks are available. When there is a lot of obstruction, it can be removed. The window confirmation time is... The time limit must be in seconds and must not exceed the task's allowed confirmation delay. Adjustments should be made based on false positives and false negatives. Consecutive hits can be counted from 2 to 5 times, with 3 hits as an example. In addition to the hit threshold, the illegal parking task must also meet the B102 dwell time requirement; it cannot be directly identified as illegal parking based on "two hits in three frames".
[0081] If the candidate has not expired and the scene configuration allows for the corresponding actions, trajectories, and pre-set data to be available, M4 performs a full resource comparison and exchange on a drone-by-drone basis, atomically reserving visual control, gimbal, and camera resources. Upon success, a resource reservation token and a monotonically increasing occupancy generation are generated. If any resource is busy, the entire attempt fails, and no resources are occupied or the drone enters the waiting queue; subsequent new frames can re-initiate the candidate.
[0082] After successful resource reservation, the latest overview frame is frozen and evidence object identifiers are generated by M9; the vehicle frame, anchor points, original PTS, frame number, reference coordinate system, vehicle identity, trajectory and covariance, preset version, scene criteria, configuration version, and temporary deduplication key are frozen. After M6 persists the event and reservation status, a workflow containing the complete EventContext is submitted. Only successful submissions trigger B104; if submission fails and it is confirmed that no device commands were sent, the temporary deduplication and this full resource allocation are immediately revoked. The candidate validity period is 1 second, and the validity period of the preset object is 0.3 seconds.
[0083] B104, Preset action execution and post-action new frame selection.
[0084] The triggering conditions are that B103 has successfully submitted the workflow, the resource token and occupancy generation are still valid, and the event has not been revoked. M5 reads the EventContext, first takes and binds the overview original photo, during which M2 can continue to refresh the preset object of this event. After the overview photo capture is successfully completed, the latest preset is retrieved from the same event, and its frame age, calibration version, reference pose, and predicted coverage are checked; if the check passes, the calculated alignment and zoom parameters are executed directly. If the preset expires or the reference pose has changed, the calculation must be refreshed with new observations, and invalid presets cannot be executed.
[0085] Camera calibration provides magnification Corresponding horizontal and vertical pixel focal lengths and principal point coordinates And distortion parameters. First, remove distortion, then predict the vehicle center. Calculate the dimensionless normalized offset: ; In the formula, All units are in the current image pixels. These represent the horizontal and vertical normalized offsets relative to the optical axis, respectively. The camera coordinate axes are defined as follows: To the right, down, Forward; axis name here With multiplier symbol Distinguish according to context. The relative optical axis deflection angle is: ; ; In the formula, , These are the relative yaw and pitch angles, respectively, in radians. atan2 is the arctangent function that determines the quadrant based on its two signed components, with the parameters in the order of longitudinal and lateral components; sqrt represents the square root.
[0086] When the angle is sent to the device as a degree, press Conversion; and For the same angle, the values in radians and degrees are given. This is pi. Under normal orientation, first calculate the unit line of sight, then convert to gimbal base coordinates: ; ; In the formula, This is the camera intrinsic parameter matrix, containing focal length and principal point; superscript... This represents finding the inverse of a matrix. Let be the unit line-of-sight vector in camera coordinates, and `normalize` indicates normalization by the vector length. This is the calibration rotation matrix from camera coordinates to gimbal base coordinates. This represents the transformed unit line of sight. Intrinsic parameters and rotation matrices use explicit subscripts, distinct from frame numbers. and B105 related scores The target yaw and pitch are determined from this line of sight; the direct superposition of the above yaw angles is only applicable to achieving approximate alignment between the optical axis and the gimbal axis. Mechanical limits, maximum rotation speed, and mission-permitted range are constrained by equipment parameters; if the target exceeds the limits, alignment is declared complete without forcibly truncating the connection.
[0087] Zooming uses the optical focal length ratio. Let's assume the current magnification... Current predicted target width and height Image width and height Target expected percentage If the example is 0.55, then the required relative magnification is: ; Once the license plate has been located, it can be... Change to target character height Compared to the current original character height The ratio, i.e. However, it is still subject to vehicle context preservation constraints. All are pixel counts. All are dimensionless quantities.
[0088] ; ; It is a multiple of the standard deviation of the standard deviation envelope. For a safe aspect ratio, example 0.80; The standard deviations for the horizontal and vertical predicted positions are derived from the prediction covariance and include camera compensation and angle execution errors. The remaining horizontal and vertical center deviations are estimated after alignment; both standard deviation and deviation are based on the current image pixels. To maintain the upper limit of the relative magnification for a safe image frame, The lower and upper limits of the relative magnification are calculated based on the focal length range of the equipment. For the selected absolute multiplier. Only The formula can only be executed when the time is right; otherwise, it will switch to a wider field of view to reacquire the target. The magnification must also meet the equipment range.
[0089] This constraint automatically reduces the zoom ratio when prediction uncertainty increases. If the target remains within the frame and the allowed zoom ratio cannot meet the license plate pixel requirements, B106 continues to judge and triggers a reshoot, without using digitally enlarged pixels to impersonate the original image resolution.
[0090] Each action request is uniquely structured into a request_id using event_id, workflow_id, action_epoch, action type, and action sequence number, and carries a token, fence, and preset version. M6 records states such as CREATED, SENT, ACCEPTED, SUCCEEDED, or FAILED; it only enters the ACCEPTED state when the device returns "accepted" and provides its command_id. Gimbal alignment and zoom can be executed sequentially according to device capabilities, and each must obtain its final state; command acceptance cannot replace the actual completion of the action.
[0091] The activation time of an action is preferentially determined by the device's reported moment of achieving the target attitude / magnification, and confirmed by telemetry stability conditions, such as an attitude error not exceeding 0.3 degrees and a relative magnification error not exceeding 2% for 200 milliseconds. If the device has no activation time but its status can be queried and confirmed, the queried and confirmed moment is used as a conservative upper bound and its source is recorded; new frame access should not be enabled when the status is unknown. Media time is mapped to a monotonic time domain consistent with the device using the following formula: ; In the formula, PTS is the media display timestamp; The mapped acquisition / exposure time. For clock scale conversion factor, For time offset, if the PTS uses counting units, the scaling factor also handles unit conversion; all time terms are standardized in units before comparison. Upper bound of mapping error. From synchronization residuals and acquisition link calibration, units and same.
[0092] ; .
[0093] Admission also requires that session_id and action_epoch match. These represent the actual effective times of the gimbal and zoom actions, respectively. To stabilize the waiting time, This represents the new frame time threshold; the subscripts eff, gimbal, zoom, stable, and gate indicate activation, gimbal, zoom, stabilization, and threshold, respectively. seq is the current frame sequence number, seq_freeze is the frozen overview frame sequence number, and seq_last is the previous received frame sequence number.
[0094] Example: 0.2 seconds; configurable from 0.1 to 0.5 seconds; if the device... If the same stable wait is already included, it will not be accumulated again. When an exposure interval exists, it is judged by the exposure start time, and frames that cross the threshold are discarded. M1 also discards out-of-order frames, duplicate frames, and buffered old frames. The pose after the action, the actual magnification, the complete receipt, the time-mapped version, and the qualified new frame are combined to form the PostActionContext and output to B105. The next round of reshooting increments the action_epoch and reconstructs the threshold. The previous round of images can only be used as historical evidence and cannot be used as verification frames for new actions.
[0095] B105, Vehicle re-association and license plate positioning after action.
[0096] If a stable global vehicle identifier exists, it should be required to be unique and consistent. If a new frame provides a global vehicle identifier but it conflicts with the primary vehicle identifier, it should not revert to using a local track_id for forced matching. Only when global identity information is missing should the association be re-established by combining the in-session tracking identifier with geometric and appearance relationships.
[0097] Since the new frame after the action and the image corresponding to the predicted position have different perspectives and scales, the predicted position, bounding box and standard deviation envelope are first transformed to the current image through camera pose and calibration projection or background homography transformation, and then the target is compared; the overlap of the bounding boxes cannot be directly calculated for two untransformed images.
[0098] Targets of the same type are filtered within a range where the squared Mahalanobis distance at the predicted location does not exceed 9.21, and the size variation is checked to ensure consistency with the actual focal length ratio. The location similarity, size consistency, and correlation scores are as follows: ; ; ; In the formula, These are the candidate vehicle centers and the predicted centers mapped to the same current image, respectively. The two-dimensional error covariance matrix used for location association. It is the square of the dimensionless Mahalanobis distance. Indicates positional similarity. For the intersection and union of frames, Cosine similarity to the normalized HSV color histogram For dimensional consistency; These represent the measured and predicted target box areas, respectively. HSV represents the hue, saturation, and lightness color space, and exp represents the natural exponential function. Optimal correlation score. Furthermore, a candidate is considered uniquely correlated only if it is at least 0.15 higher than the second-place candidate; when there is only one candidate, it must still satisfy the absolute score and geometric threshold.
[0099] The license plate localization and recognition module can use a HyperLPR3 link: license plate detection network input Output Candidates are output including bounding boxes, detection scores, corner coordinates, and category. An example inference confidence threshold of 0.25 and an IoU suppression threshold of 0.50 are used. Candidate boxes and corner points are mapped back to the original image through inverse scaling and inverse edge filling. Searching is only performed within the bounding box of the uniquely associated vehicle or an appropriately expanded area. The license plate center and at least 80% of the license plate area should fall within the expanded bounding box of the associated vehicle. The detection, quality assessment, and OCR of the best license plate area must share the same candidate identifier; when there are multiple license plates, two different areas cannot be selected based on the highest detection score and the highest OCR score respectively.
[0100] The four dimensions of the input are batch size, color channels, image height, and image width, respectively; the outputs are batch size, number of candidates, and feature dimension per candidate, respectively. The 15-dimensional candidate includes 4-dimensional bounding box parameters, 1-dimensional detection score, 8-dimensional quadrangular coordinates, and 2-dimensional class output.
[0101] At a 7x magnification close-up, the image may only show the license plate and not the entire vehicle. In this case, based on the previously uniquely bound license plate, gimbal pointing, actual zoom, projection position envelope, and motion threshold, the license plate is repositioned in the new full frame; the coordinate frame of the 3x image is not directly reused in the 7x frame. If a unique correspondence cannot be found, the field of view is expanded and re-associated.
[0102] B106, Quality Characteristic Calculation and Environmental Adaptive Threshold.
[0103] The mass vector is defined as: ; In the formula, The original width and height of the license plate. The effective character height is in pixels. For clarity, For brightness, For contrast, For boundary integrity ratio, To achieve the desired occlusion ratio, The angle of inclination of the plane. For perspective distortion ratio, This represents the ratio of bright to dark pixels to saturation pixels. The coordinates are calculated in the original image before correction, and the visibility of the four corners and the cross-boundary truncation are also judged in the original image. After four-corner perspective correction Calculation on a single layer of cards, grayscale image The effective pixel value is limited to 0 to 255; the original pixel value is preserved. Figure 4 The angles, transformation matrices, and sampling effective masks are used, and edge-padding pixels are not considered valid images. Super-resolution generated images are not used as raw evidence. Double-layered cards are evaluated separately after being rowed according to card type.
[0104] size The average lengths of the top, bottom, left, and right sides of the quadrilateral are taken; the character region is grouped using adaptive binarization, connected component filtering, and card row structure. Take the median height of the valid character region and calculate it back to the original image pixels. If no stable character region is detected, you can first use... It serves as a focus estimate, but cannot be used to determine if the character size hard threshold has been met.
[0105] ; ; ; In the formula, To effectively correct grayscale images, This is the filtered grayscale image, where Var is the population variance, mean is the arithmetic mean, and Laplace is the discrete Laplace operator. These are the 90th and 10th percentiles of the effective grayscale values, respectively. For the effective set of sampled pixels, In this formula, is the pixel position index. The grayscale value at that location. and Both represent the number of pixels. It means "or". The unit is grayscale squares. The unit is gray level. Dimensionless; quality results are invalid when the effective pixel set is empty.
[0106] for through Image after Gaussian filtering, Gaussian standard deviation Pixel; the These are the filter parameters, distinct from the standard deviation of the predicted location. Laplace uses a central coefficient of... The coefficients for up, down, left, and right are all 1. nuclear. The calculation is performed on the unenhanced corrected grayscale image to avoid threshold distortion caused by noise or contrast expansion after enhancement. The quality analysis chart, processing parameters, and corresponding original image are simultaneously bound.
[0107] Boundary integrity and occlusion ratio are respectively: ; In the formula, To normalize the total length of the four expected edges of the card that receive gradient support, For the estimated perimeter; both are in normalized image pixels. Along the edge Pixel search requires a Sobel gradient magnitude of at least 20 to be considered a support point; Sobel is a discrete image gradient operator. This metric must simultaneously pass the original... Figure 4 Corner visibility and no out-of-bounds truncation checks. The area of the mask that cannot be used within the character band. This represents the total area of the character band; both are pixel areas after the same perspective transformation. The discrete mask uses nearest neighbor resampling, and invalid sampled areas are not counted as visible areas.
[0108] The mask can employ a lightweight encoder-decoder segmentation network: 4 levels. Convolution with stride of 2 and 16 / 32 / 64 / 128 channels; at the decoding end, upsampling is performed at each level by a factor of 2, and the encoded features are concatenated at the same scale. Output pixel probabilities for three categories: visible, occluded, and highly reflective. Training is performed using a manually created card face mask and character band annotations. The loss is calculated as cross-entropy plus Dice loss; Dice measures the degree of overlap between the predicted mask and the labeled mask. Pixels with an occlusion or highly reflective probability of at least 0.5 are classified as unusable areas. Character bands are determined jointly by the card pattern template and the character region. Pixels with insufficient segmentation confidence or whose character bands cannot be determined are marked as unknown, and the output failing the verification is rejected.
[0109] Plane tilt angle Take the absolute value of the angle between the average direction of the top and bottom edges of the license plate in the original image and the horizontal line of the original image. Perspective distortion: ; The lengths are top, bottom, left, and right, respectively; all are taken from the original length before correction. Figure 4 The distance between angles, in pixels. A side length denominator close to zero is considered invalid. The side length or direction of the corrected rectangle must not be used to replace the above geometric quantities. Original image edge truncation, insufficient character height, unknown occlusion, or non-convex corners are considered hard failures and cannot be allowed by adjusting the environment threshold.
[0110] An initial mass threshold is set as follows: ; ; ; Size thresholds are measured in pixels, sharpness thresholds in grayscale squares, brightness and contrast thresholds in grayscale levels, angles in degrees, and other thresholds as dimensionless proportions. Equipment calibration can be performed at [time / location]. Threshold 96 to 200 pixels Threshold 16 to 32 pixels Threshold: 60 to 200 gray levels squared; Lower limit: 35 to 70 gray levels; Upper limit: 200 to 225 gray levels. Threshold values are selected within the range of 35 to 80 gray levels; the size, boundary, occlusion, tilt, and saturation hard thresholds of the example system are fixed within the event.
[0111] The environmental semantics are recorded as follows: It consists of full-map illumination estimation, weather detection, and local equipment time; The median gray level of the entire image after excluding overexposed pixels, expressed in gray levels. These are weather category, weather confidence level, time period identifier, and lens version identifier; except for the weather confidence level, which is a probability quantity, the other identifier components are interpreted according to their respective categories or versions. The time period uses the time zone and day / night schedule configured in the task. One implementation of weather detection is as follows: The global image is used as input, and 4 levels are used. The convolutions use a stride of 2, with 16, 32, 64, and 128 channels. Each stage incorporates batch normalization and ReLU correction for the linear activation function. Finally, global average pooling and four-class softmax probability normalization output the weather conditions: sunny / cloudy, rainy, foggy, and unknown. Training is performed on weather-labeled data categorized by flight mission. The optimizer uses cross-entropy and Adam adaptive moment estimation, with a learning rate of 0.001 and batch sizes of 32 and 50 epochs. Weights are selected based on the validation set. The unknown class is used when the maximum class probability is below 0.70. Environment configuration selection is hysteretic: switching only occurs after the same new environment appears three times consecutively, and the switched version is frozen within the current action epoch. Three example soft thresholds are provided. ordinary: ; Low light: ; Foggy days: ; The above are all initial calibration values, which are only enabled when supported by an independent validation set; normal configuration is used in unknown environments. Changes in weather or lighting should not reduce the requirements for original size, unique vehicle association, boundary integrity, and cross-validation of independent original close-up images.
[0112] The threshold for each environmental tier is determined by a grid search on validation samples with readability and transcription truth values: maximizing the proportion of usable images retained within the tier's specified range, while ensuring the overall card recognition error rate of the accepted samples does not exceed a preset upper limit, and verifying the sample size and confidence interval. The tier is deactivated if the constraints are not met or the sample size is insufficient. For any adjustable quality feature, the online threshold is: ; The effective threshold for this quality characteristic under the current environment. This is the basic threshold. These are the environmental and time-period correction amounts, respectively. These define the lower and upper bounds of the threshold value, with units identical to those of the quality characteristic. `clip` indicates that the first parameter is restricted to a closed interval defined by the latter two parameters. ; here Values to be limited. The lower and upper bounds are specified. The threshold with subscripts is... Angle of tilt from the card without the subscript Distinguished by purpose. The correction amount comes from a verified configuration table, and the threshold is automatically relaxed in reverse without using the current OCR result.
[0113] When the low-light or foggy mode relaxes the sharpness, brightness, or contrast thresholds compared to the normal mode, B107 increases the minimum number of different exposure frames from 3 to 5, the minimum number of qualified viewfinder groups from 2 to 3, the robust support rate threshold from 0.80 to 0.90, and the minimum number of frames with the highest visual candidate consistency from 2 to 3; it must not reduce the confidence level for close-up image verification. Threshold adaptation simultaneously changes the image admission and recognition evidence requirements.
[0114] If the quality fails, the M8 output may be insufficient in size, blurry, too dark, too bright, reflective, have truncated edges, be occluded, or have uncertain correlation. The M5, combined with invalid action memory, selects a reshoot; this decision is also made when there are insufficient groups or the removal of a group fails the test. All controls that change the imaging state establish a new action_epoch and re-pass the B104 threshold. For example, the maximum reshoot is 2 times, with a total event duration of 20 seconds; once the maximum is reached, evidence is retained and manually reviewed.
[0115] B107, Multi-frame group fusion and independent image cross-validation.
[0116] The cards that pass quality assessment are first subjected to four-corner perspective correction before being sent to the HyperLPR3OCR image reader. The image input to the image reader is... The output is This refers to the probability of 78 classes of characters or whitespace at 20 sequence positions. The network employs a lightweight convolutional feature backbone, two layers of SVTR sequence mixing blocks, and a character classification head. It has 120 SVTR channels, 240 feedforward hidden layers, and terminal character mappings ranging from 64 to 78 dimensions. CTC-style decoding is used to remove whitespace and fold consecutive repeating characters. Standard decoding outputs the highest average probability of text and effective characters. The candidate fusion method performs a 10-width beam search from the same sequence probability, retaining the probabilities of the first three different texts and their aligned characters.
[0117] The input dimensions of the recognizer are batch size, color channels, image height, and image width, respectively; the output dimensions are batch size, number of sequence positions, and number of character / whitespace categories, respectively.
[0118] Card Classifier Input The algorithm employs a lightweight convolutional backbone, 128-dimensional features, and three output classes to differentiate card layouts and select either single-layer or row-by-row processing paths. When adapting to new card types, OCR fine-tuning is performed using card images and transcribed ground truth values to maintain consistency between the output character dictionary and CTC blank numbers. The recognition loss is the CTC loss, and the card layout loss is the cross-entropy loss, with weights selected based on an independent validation set. The probability calibration of the first character and card type for different provinces is a subsequent fusion configuration and does not rewrite the visual recognition results based on geographical location.
[0119] The system maintains license plate template versions, including length, allowed character sets for each position, and corresponding OCR model calibration weights. For the first character of different provinces and different license plate types, a character probability table calibrated with an annotated validation set is used as a soft preference; the recognition of the first character must not be forcibly modified based on the province where the drone is located. The weighted and normalized character probabilities are: ; ; In the formula, For image frame indexing, The aligned character positions, For character dictionary Characters within; The original visual character probability, To take values in Template preferences within, The template affects the weight. The weighted values before normalization. This represents the normalized probability; the subscript tpl indicates the template, and the apostrophe indicates the weighted probability, not the derivative. The denominator must be positive, otherwise the candidate is invalid. The original visual probability is saved first, followed by the weighted probability; when the province or card type is uncertain, candidate templates are evaluated in parallel, and if template conclusions conflict, they proceed to review. Hard format checks only examine character structures that are configured and have a clear template basis.
[0120] The fused samples must belong to the same event, the same stable vehicle, and the same sign, and be grouped according to framing stability checks and reshoot decisions to form framing groups. Each group's representative frames come from different exposures, with a frame interval of at least 0.1 seconds and a total span of at least 0.3 seconds. The earliest frame within a group is no more than 2 seconds from the latest frame in that group. Same exposure, same image summary, or different cropping of the same frame are counted only once; framing groups do not indicate statistically independent recognition errors. Sealed groups are retained until the end of the event, and each action_epoch and identity verification record is retained across actions; reshoot window resets do not clear historical groups. When identity is interrupted and cannot be reconfirmed, a review process is initiated, and conflicts are not resolved by discarding old groups.
[0121] For the Frame definition scores include size, sharpness, brightness, contrast, borders, occlusion, and pose normalization. ; ; ; ; In the formula, the subscripts d, s, b, c, e, o, and t represent size, sharpness, brightness, contrast, border, no occlusion, and pose, respectively. For the first Frame-wide quality score. All scores are dimensionless. The denominators 32, 240, 127.5, and 100 use the same units as the corresponding size, sharpness, brightness, and contrast, respectively. Tilt angle is substituted in degrees. The quality characteristics in this set of formulas are all taken from the [previous frame]. Frame value, representing the frame index of the simplified abbreviated feature. When the hard threshold is not passed. It does not participate in the fusion; the weight and scoring functions are recorded according to the configuration version.
[0122] set up For the first A set of representative frame indexes for each qualified framing group To meet the requirements for the number of qualified shooting groups, This is the latest representative frame time in this group. The frame's base weights, intra-group normalized weights, and cross-group weights are as follows: ; ; ; In the formula, For unnormalized frame weights, For group weights, For cross-group fusion weights, The frame acquisition time. This is the time decay constant, for example, 1 second; all time units are consistent. It is a group index. In this formula, all values are frame indices. The sum of the base weights must be greater than 0; otherwise, the group cannot be used for fusion. The total weight for each group is fixed. It does not increase with the original number of frames in this group; here The number of groups, and the grayscale image of B106. Divided by chapter.
[0123] For the first The geometric mean of the character confidence scores of the highest visual candidate in a frame can be written as: ; In the formula, The number of valid characters in the visual text. For its first One character, Visual probabilities unmodified by template preferences are used. Candidate probabilities are normalized within each frame while retaining candidates. ,Right now: ; In the formula, The candidate sequence number within the frame. For the first The number of different texts retained in the frame The normalized candidate probability, These are the normalized candidate weights; the denominator must be positive. The sum of the cross-group weights of all candidates in a single frame is still... Three candidates in the same frame cannot be treated as three independent hits. Text normalization only unifies spaces and letter case, and does not perform replacements without image basis, such as replacing the letter O with the number 0, or the letter I with the number 1. The normalized edit distance between candidates is: ; in, Here, the candidate strings are non-empty, len is the character length, and Levenshtein is the minimum number of single-character insertions, deletions, and replacements required to transform one string into another; here... It is not a time variable.
[0124] ; ; In the formula, The union of the representative frame indices of all qualified groups. To preserve the set of candidate texts, For the first Frame number A complete candidate text, argmax represents the weighted center score of the candidate texts; argmax represents the candidate that achieves the highest score. An asterisk (*) indicates that a selected value is chosen instead of a multiplication.
[0125] The candidate set is the union of the retained texts from each group, ordered by... Select weighted center text The license plate number is not pieced together digit by digit to represent a vehicle that has never appeared before. The exact support rate and review interval between groups are: ; ; Among them, indicator function The value is 1 if the proposition within the parentheses is true, and 0 otherwise. For text The precise support ratio, To select candidate support rate, The highest support rate among all other candidates; only one text order. . The difference between the two is used only as a verification indicator; it differs from the B106 perspective distortion ratio. support rate It also differs from the target frame area of B101. . The candidate must simultaneously possess the highest support rate; otherwise, the request will fail. Remove one framing group at a time and recalculate, then select the remaining groups. The lowest level of support is the robust support level. Used for candidate ranking, robust support rate is used for acceptance judgment; the score is not equivalent to the overall probability of being correct. Character confidence scores are aggregated using CTC alignment with weights from the same group.
[0126] For a normal configuration to output valid text, it must simultaneously meet the following conditions: at least two valid viewfinder groups, a total of at least three different exposure frames, and the highest supported text must remain unique after each group is removed. Stable approval rating Each character has a weighted confidence level of at least 0.85; at least two frames of the highest visual candidate and Same; no distinct complete strings with a visual text confidence level of at least 0.90 exist in all qualified original observations. For low light or foggy conditions, the configuration is relaxed to at least 3 groups, at least 5 frames, and robust support. And at least 3 frames must be consistent with the highest visual candidate. Then, a close-up image must be reserved for verification; passing the verification means that the specified conditions are met, but does not mean that there are absolutely no errors.
[0127] Cross-validation uses a pre-specified, original close-up image that is not involved in grouping support calculations and is removed from the grouping test. This image can be a newly taken original photograph or a raw video frame from another exposure at high magnification; the true source is preserved. The same face is re-validated, requiring the highest visual candidate to be... The images must be consistent character by character, with a text confidence level of at least 0.90 and a per-character confidence level of at least 0.85, and must also meet the time, identity, card type, and quality requirements. Overview photos can only be substituted if they meet the same conditions and are not involved in the fusion process. If a high-confidence conflict occurs in a reserved image, it will be subject to review; it will not be absorbed into the group, and the verification image will be repeatedly replaced until consistency is achieved.
[0128] Under the aforementioned consistency constraints, if the mid-range image only locates a clear card face but has not yet formed stable text, high-magnification close-up acquisition can be initiated to supplement the candidates; evidence collection should not be stopped simply because the mid-range image has not been identified, nor should the text be declared definitively determined. The conclusion of the verification still needs to be output after the newly added independent images meet the requirements of fusion and cross-validation.
[0129] B108, Evidence Binding and Closed-Loop Event Output.
[0130] The conclusion status includes the license plate recognition result that has passed verification, re-evidence collection, and manual review. M9 binds the conclusion to the freeze overview, original close-up, reserved image, vehicle and license plate identity, action receipt, framing group and representative frame, full group and removed group scores, reshoot selection, and effect history. The result text is only filled in when all conditions B107 are met; the text of the review event is stored in the candidate list and is not filled in the result field that has passed verification.
[0131] After the evidence package and list are successfully written to disk, the M10 reports idempotently according to event_id. Successful evidence collection or verification and solidification of evidence can mark the event processing as complete and solidify the corresponding deduplication status. If re-shooting is incomplete or the physical action status is unknown, the event status is retained; if event reporting fails, only transmission is retried. Resource release is executed according to the final state rules below and cannot be directly changed based on network upload results to determine whether the device is idle.
[0132] Specifically, regarding load linkage and status control, resource reservation is uniformly executed by the resource admission module. The load action coordination module verifies the reservation token and occupancy generation before each command is issued, and the device adaptation layer rejects commands that do not belong to the current occupancy generation. Action statuses are sequentially created, sent, accepted, and successful or failed; if the sending result is uncertain or the waiting timeout occurs, the status enters an unknown or recovery state, without fabricating a final failure state. Subsequent actions that have not been sent can be skipped, but all sent actions must obtain a verifiable final state.
[0133] Device receipts are validated based on request_id, command_id, event_id, drone identifier, action type, occupancy generation, and action round. Duplicate callback summaries are processed only once. Status progression is only allowed towards the final state; late receipts must not overwrite completed states. Completed callbacks of older occupancy generations can only archive the original event and cannot release resources for new events.
[0134] Resources are released only when all sent actions have reached their final state and it has been confirmed that the device will no longer execute the event action. Normal timeouts only trigger a status query or cancellation request; cancellation requests must also receive a clear result indicating cancellation complete or stopped. In the event of a disconnection or inability to confirm stopping, the resource remains isolated and a device verification task is output, preventing other vehicle events from preempting it. After reconnection, the final state is confirmed before releasing the resource from its occupancy, preventing it from being unconditionally treated as idle after permanent disconnection.
[0135] If submission fails before a command is issued, rollback is performed immediately. If a failure occurs after some actions have been performed, the temporary storage is undone, deduplication is performed, and completed actions and images are saved, but resources must be released only after the device's final state is confirmed. Insufficient quality only terminates the identification process and does not mean that the actions of devices still running have ended. Failed reporting does not rollback successful physical actions; retrying uploads uses the same event list and evidence summary.
[0136] The evidence package uses event_id as the primary key and includes at least: the main vehicle_id and tracking alias; scene criteria, region and configuration version; all original images, their SHA-256 digests and crop coordinates; PTS, exposure start and end times, frame number, session_id, time mapping coefficients and upper bound of error; each action_epoch and its request_id, command_id, reserved generation, final state, pose, focal length, effective time and threshold; trajectory state, prediction covariance, preset parameters, reassociation candidate scores; card type and environmental semantics, quality vector, actual threshold, model version; original and weighted probabilities of OCR, edit distance, fusion support rate, support interval for verification, and verification results of reserved close-up images; final conclusion and reason for failure.
[0137] The evidence list also preserves the grouping threshold version, fixed reference frame, inclusion or merging criteria, observations not selected as representative frames, support distributions for each group, candidates and scores for each removed group recalculation, robust support rate, failed group identifier, reshoot condition keys and parameter keys, pre- and post-action metrics, effect classification, and memory deactivation criteria. Removal operations only apply to the calculated copy; the original group and conflicting evidence are always retained.
[0138] The checklist records the relationships between events, action rounds, qualified images, vehicles and license plates, framing groups, OCR candidates, group checks, and leaveout checks; one group can correspond to multiple action rounds. The file summary is used to verify whether the content has changed; source and time verification still rely on device commands, acquisition identifiers, and synchronization records. The original image remains unchanged; corrections and croppings are saved as derived objects.
[0139] During review, the frame can be recalculated according to the checklist to determine if it occurred after an action, belongs to the main vehicle, passes the corresponding environmental threshold, and how the candidates generated the fusion conclusion. For conflict events, all candidates and corresponding images are retained, and evidence inconsistent with the final judgment is not deleted. Even after model or configuration upgrades, the version fixed at the time of the event is used to reproduce the judgment, and the results of the reanalysis are recorded separately, without overwriting the original conclusion.
[0140] Regarding the stability test of framing grouping and reshoot decision-making, M8 only establishes framing groups for observations that pass the B104 time threshold, B105 same vehicle and same license plate association, and B106 quality access criteria. Each acquisition window also retains images that do not meet the quality threshold along with the reasons for their inclusion, for action selection purposes; these texts are not included in the support rate. Windows and framing groups are not in a one-to-one correspondence: if different actions return to similar imaging conditions, they should be merged into an existing group. Neither grouping nor representative frame selection uses whether the OCR text matches the current top-ranked image as a criterion.
[0141] Each group uses the reference observation from the first stable window to fix the viewfinder signature, including the actual magnification, the gimbal attitude at the available time, the normalized display, and... And the median of the saturation ratio. Scale the grayscale of the card face to... Image difference is defined as: ; In the formula, This is a grayscale image of the card face at the same scale as the new window and the fixed reference. It is a set of sampling pixels that are valid for both parties. For pixel index, This refers to the number of effective pixels. To normalize image differences. When comparing, the same face of the card must be used, the four corners and card pattern must be consistent, and only valid sampled pixels must be used; if the common valid set is empty or the image correspondence is unreliable, a new group will not be established based on large differences.
[0142] A calibrable grouping rule uses actual variability. Observe the differences in posture Difference in median brightness Compared to clarity The distinguishable conditions are: ; ; ; In the formula, The new, reference actual magnification under the same calibration standard must be positive; These are the median values for brightness and sharpness within the stable window, respectively. The tilde here represents the median, distinct from the weighted marker before normalization of character probabilities. The observed attitude angle difference is confirmed and expressed in degrees. The unit is grayscale. The resolution denominator must be positive; otherwise, this branch is unavailable. They respectively represent "and" and "or".
[0143] The difference must be established in three consecutive valid observations, and at least one physical or imaging quantity used for discrimination must be verifiable; simply changing the request number, timestamp, or action_epoch will not create a new group. A new group is created only if it meets the distinguishability criteria relative to all existing groups; otherwise, it is merged into the closest existing group. Boundary or unknown conditions do not increase the number of groups. All thresholds are saved with the device calibration.
[0144] Each group can select a maximum of 3 representative frames with different exposures, and at least 2 representative frames must meet the B107 span condition to be considered a qualified group; low-light configurations must still meet both the total number of frames and the total number of groups requirements. Among combinations that meet the interval, span, and 2-second time window within a group, quality is ranked... Sum is sorted in descending order; for identical scores, selection is done in ascending order of acquisition sequence number, recording all original observations. Subsequent windows with the same conditions only append source records by default; this only applies to new frames. The representative frame is updated if the time condition is improved by at least 0.05 compared to the proposed replacement frame and the above time conditions are still met after the update; otherwise, the archived representative frame is retained. Duplicate images do not increase the number of representatives, and all high-confidence conflicting observations still participate in the B107 rejection check.
[0145] Group B107 Normalize the representative frame and calculate the weighted support of each complete string; a recognizer that outputs only one text can set the weight of the unique candidate for that frame to 1, while multiple candidate recognizers are weighted according to... Assign weights to individual frames. Group support for distribution and cross-group support are as follows: ; ; For the first Pair complete string Within-group support rate, and state covariance matrix Gray percentile operator Distinguish by index and purpose. Taking the arithmetic mean of the support rates across groups is equivalent to fixing the total weight of each group. Adding duplicate frames within the same group will not increase the total vote weight of that group in the event. There are upper limits on the number of groups and representative frames, for example, a maximum of 4 groups; if instability persists after reaching the upper limit, the process ends and is reviewed, without eliminating conflicting groups to meet the passing conditions.
[0146] like Figure 5 The diagram shown is a flowchart for the stability check and reshoot feedback of framing groups, illustrating the relationship between actual imaging differences, equal weighting between groups, group-by-group removal, motion effect evaluation, and event-level memory. Specifically, evidence is retained and reviewed when the budget is exhausted or the identity cannot be confirmed; removal is only used for calculation, while the original framing group is always retained after review.
[0147] Specifically, when removing the group stability test, first freeze the group set and the complete candidate set calculated in this operation, and then read B107. Selected And confirm that it is also the only one with the highest exact support rate among groups; otherwise, it is considered a failure. For each qualified group To exclude this group from the computed replicas, define: ; ; In the formula, In this formula, the index is the index of the remaining group, which is different from the card height. ; Subscript This indicates that the first term is excluded during calculation. The group number does not indicate a negative group number. For the precise support rate after removal, As the only candidate with the highest support rate after being removed, The lowest remaining support rate in the complete removal test, distinct from the B105 vehicle association score. Save the group_id, number of remaining groups, first place, and remaining group pairs for each exclusion. The support rate; if the remaining groups are empty, tied, or the first place has changed, it is recorded as not passing.
[0148] ; In the formula, Indicates "for each". For robust support rate thresholds, a threshold of 0.80 is used for standard configurations, and 0.90 is used for configurations with relaxed thresholds in low light or foggy conditions. An identification conclusion is only allowed if all removal tests pass and other conditions in B107 are met.
[0149] The test should consider the strength of remaining evidence, not just whether the first-ranked candidate has changed. For example, if two groups have support of 1.00 and 0.70 for the same text, respectively, and the overall support is 0.85, removing the strong group might still result in the text being ranked first, but the robust support rate is only 0.70, so further evidence gathering is necessary. The removal test does not delete groups, modify original candidates, or accumulate confidence scores based on the number of trials. When a new frame group is added, a complete recalculation is performed, still requiring adherence to the original identity, quality, high-confidence conflict, and image retention conditions.
[0150] M8 returns the reasons for failure to M5, including insufficient qualified groups, insufficient robustness support, candidate changes after group removal, insufficient character confidence, or leaveout check conflicts; it also provides the weakest set of remaining groups and a quality summary for each group. String editing alignment can mark the positions of divergent characters, but does not directly rewrite characters or infer their pixel positions based on this. Leaveout check high-confidence conflicts and unrecoverable vehicle identity conflicts directly proceed to review.
[0151] Regarding reshoot selection and invalid action memory, the M5 first handles identity association and geometric hard failures, then quality issues, and finally insufficient group count or support. Available actions are taken from the set of controls configured for the task: when identity is unstable, expand the field of view and re-associate; when size is insufficient, increase the magnification by approximately 20% within the B104 safe magnification range; when blurry, first increase the stabilization wait by 0.2 seconds, not exceeding 0.5 seconds; when the boundary is truncated, center and reduce the magnification as needed; when reflections or obstructions persist, use the permitted observation position. When quality is acceptable but group count or support is insufficient, prioritize safe magnification adjustments that can create verifiable framing differences, followed by permitted observation positions. If no suitable action is available, perform a retest.
[0152] Save the condition keys and parameter keys before each action. The condition keys consist of the event, vehicle identity, environment level, main failure reason, actual magnification level, and quality level; magnification level width example: 0.5, brightness... The file width is 20 gray levels, and the clarity is... The file width is 50 grayscale squares, and the card width is 32 pixels. The parameter key includes the action type, quantized target multiplier, target center position, waiting time or observation position number, independent of request_id. Candidate actions are selected deterministically based on the above priority, estimated time, and action sequence number, and actions with the same parameters that have been marked as invalid under the same condition key are skipped.
[0153] M8 evaluates the actual effect when the final state of the action is verifiable and at least three valid time and identity observations are obtained. Observations that fail the quality test can also be used for this comparison. Example improvement metrics for size, stable wait, and centering actions are as follows: ; ; The subscripts pre and post indicate before and after the action, respectively. The median width of the original cards. This represents the median resolution at the same scale. To improve the proportion, the denominator must be positive and the observations before and after must be comparable. The pixel distance from the target center to the desired image center; This refers to the diagonal pixel length of the image. Size improvement should be achieved without introducing new hard failures; stability should be maintained while comparing sharpness at the same scale; centering improvement should be achieved while ensuring intact boundaries.
[0154] For actions with insufficient number of groups or insufficient support, supplement the number of distinguishable qualified groups, or add new qualified groups to meet the requirements. Moreover, the status and quality have not deteriorated but improved. This represents the robust support rate before and after the action. The metric threshold is a calibrable example, recording the original values before and after the action, without needing to identify whether the text meets expectations as the true value of the effect.
[0155] If there is sufficient comparative observation but the target indicator does not improve, it is recorded as invalid and the reason is saved; if it improves but does not yet meet the identification requirements, it is recorded as valid but incomplete. If the command status, identity, or imaging conditions cannot be confirmed, it is recorded as unknown, and a query, re-association, or review is performed. Unknown is not considered invalid or successful. Invalid actions are retained in the memory of this event and are not cleared when entering a new action cycle or reshoot window; under the same conditions, changing the request number cannot be executed again. Only when the environment or physical framing changes significantly, or the target quality changes beyond the original file width, and the change is confirmed by 3 consecutive observations, is the action allowed to be re-evaluated and the basis for retention removed; the new event is initialized independently. All attempts are still subject to 2 reshoots and a total budget of 20 seconds.
[0156] In implementation, two bounded lists can be used to store the framing group and motion effect records respectively in the event context. The grouping is updated upon observation arrival, and inter-group fusion and group-by-group recalculation are performed at the existing recognition consistency judgment point. The effect is evaluated in the sampling window after the motion final state callback. The new window only resets the count for this round, retaining the event-level group history and invalid motion memory. This implementation uses image statistics, a finite number of weighted summations, and state judgments, without requiring changes to the structure and weights of the vehicle detection or OCR network.
[0157] Mathematical symbols are explained item by item when a formula is first given. This section standardizes the rules for using symbols and the meanings of English terms; when the same letter is used for different objects, it is distinguished by the step, subscript, and bold text, and substitution across steps is not allowed.
[0158] Bold These are the vehicle center anchor point, the target frame, and the ground anchor point, respectively. For the state and the estimated state, Here is the state transition matrix. For state error covariance, The background plane homography matrix. For camera internal parameters, To calibrate the rotation matrix, From the perspective of the unit. These are scene feature records, environment records, and quality vectors, respectively.
[0159] B101 This indicates two targets to be associated, in B107. These represent the frame, character position, and candidate sequence number, respectively. The group index is represented in the formula for removing a group. For area, For support rate; Percentiles This represents the support rate within the group. In B106, the image is a grayscale image; in group fusion, the number of groups is the number of groups. For related scores, For a stable approval rating; For perspective distortion ratio, To support intervals. For the number of window frames, The number of candidates; The envelope coefficient is only represented in the safety ratio formula.
[0160] min and max represent the minimum and maximum values, respectively; exp is the natural exponent, ln is the natural logarithm, sqrt is the square root, and atan2 is the quadrant-based arctangent; Var, mean, and median are the population variance, arithmetic mean, and median, respectively; count and... `len` represents the count, and `len` represents the string length. To express summation, This indicates a series of products; argmax represents the candidate product corresponding to the maximum value. `clip` indicates rounding up, `clip` indicates truncation, and `normalize` indicates length normalization. They represent belonging to, intersection, and union, respectively. They represent AND, OR, and for each; superscript For transpose, matrix superscript The asterisk (*) indicates the inverse, and the asterisk (*) indicates the selected value. Absolute values, area of a region, and size of a set are all represented by vertical lines, and the object is specified in the specific formula.
[0161] x / y represent horizontal / vertical directions; char represents the character; req represents the target requirement; need represents the required scaling factor; safe represents the safety scaling factor; min / max represents the lower / upper bounds; clk represents the clock mapping; cap represents acquisition; eff represents activation; gate represents the threshold; stable represents stable waiting; recv represents reception. pos / box / color / size represent the similarity of position / box / color / size, respectively; sat represents the saturation ratio; global represents the entire image; tpl represents the template; support represents the support interval; stab represents the stability check; new / ref, pre / post represent the new value / reference value, and before / after the action, respectively. top / bottom / left / right represent the top / bottom / left / right sides.
[0162] Tracklet represents a vehicle time sequence segment; EventContext represents the event context, PostActionContext represents the post-action input context, and ViewGroup represents the view group. track_id is the original tracking identifier, vehicle_id is the stable vehicle identifier, session_id is the media session identifier, event_id is the event identifier, workflow_id is the workflow identifier, and group_id is the view group identifier; action_epoch is the action epoch, request_id is the action request identifier, command_id is the device command identifier, token is the resource reservation token, and fence is the monotonically increasing resource occupancy generation. The suffix 'id' indicates an identifier.
[0163] CREATED indicates creation, SENT indicates transmission, ACCEPTED indicates acceptance, SUCCEEDED indicates successful completion, and FAILED indicates failure completion; server_receive indicates the server's reception time source. PTS is the media display timestamp, seq is the frame sequence number; freeze and last refer to the frozen frame and the previous received frame, respectively. POI is the Point of Interest, used for permitted target observation points or surround schemes.
[0164] AI stands for Artificial Intelligence; OCR stands for Optical Character Recognition; YOLO is a series of single-stage object detection models, YOLO26m is the model version and m-scale configuration of this series, and car is the car category label. HyperLPR3 is a toolchain for license plate detection, classification, and recognition; ByteTrack is a multi-object tracking method based on bounding box association; RANSAC is Random Sample Consensus Estimation. PT represents PyTorch weights / running format, TensorRT is a neural network inference optimization engine, and SHA-256 is a 256-bit secure hash algorithm used for document content summarization.
[0165] C3k2 is the name of the cross-stage partially connected convolutional feature module for detecting the backbone; SPPF is the Spatial Pyramid Pooling Fast Module; C2PSA is the partially self-attention feature module in the detection network configuration. SVTR is the Sequence Mixing Module in the Visual Text Sequence Recognition Structure; CTC is the Connectionist Temporal Classification Training and Sequence Alignment / Decoding Mechanism. ReLU is the Modified Linear Activation Function; softmax is the Probability Normalization Function for Multi-Class Scores; Dice is the name of the Mask Overlap Loss. In the text, M1 to M10 are functional module numbers, and B101 to B108 are processing step numbers, not mathematical variables multiplied together.
[0166] `end2end` indicates enabling end-to-end detection head configuration; `true` represents a boolean true value. `reg_max` is the configuration parameter for the discrete representation of bounding box regression; a value of 1 corresponds to the setting in this example. `m` represents the model size level; `batch` is the number of samples per training iteration; `patience` is the number of waiting rounds before stopping early if there is no improvement. `Adam` is the adaptive moment estimation optimizer, and `AdamW` is the Adam optimizer using decoupled weight decay. `hsv_h`, `hsv_s`, and `hsv_v` represent the enhancement magnitude of hue, saturation, and brightness data, respectively; `Mosaic` is multi-image stitching enhancement, and `MixUp` is image and label mixing enhancement.
[0167] Pixels and pixel squares represent image distance and area, respectively; gray levels and gray squares are used for gray value and sharpness variance, respectively; s and ms represent seconds and milliseconds, respectively; degrees are indicated by superscript circles; and percent signs represent percentages. Multiplication signs in network input / output indicate the dimensions of tensors, which, according to the corresponding paragraph description, are batch, channels, image height and width, or sequence length / number of categories, and do not indicate newly added physical quantities. English names, configuration fields, and example strings are not mathematical unknowns that need to be solved additionally.
[0168] The technical performance can be compared under the same batch of events, the same detection and OCR weights, and the same evidence collection budget: frame-by-frame accumulation, group-only fusion, grouping with removal checks, and adding invalid action memory. The error acceptance rate, manual review rate, number of reshoots, and evidence collection time are evaluated, and different environmental and multi-vehicle conditions are recorded. The following examples are used to illustrate algorithm calculation and state transitions; the example values are not taken as actual performance.
[0169] Example 1: The complete process of collecting evidence of suspected illegally parked vehicles on the road.
[0170] Set the inspection video as The detection sampling rate is 10 frames / second, and no-stopping zones and rules have been configured. The vehicle remained within the zone for 30 seconds, the positioning was effective, the median speed was 0.2 m / s, the system hit 4 times in 5 frames, the mean confidence level was 0.86, and the zone hit rate was 0.95. meters per second The time taken is [number] seconds, which meets the criteria for a suspected illegal parking violation. The following values are used to illustrate the calculation chain, and the license plate text is an example string.
[0171] When the vehicle prediction action takes effect, the center is The main point is , Pixels. Substituting, we get: ; .
[0172] Presets are generated after device coordinate adaptation. Current magnification. The prediction box is Pixels Pixels, with an expected residual deviation of 0; Substituting into the zoom formula, we get: ; .
[0173] If the upper limit of the equipment multiplier is 10, and the lower limit of the relative multiplier does not constitute a restriction, then select... .
[0174] exist Freeze the overview and reserve resources; after the original overview photo is successfully captured, retrieve the valid presets and perform alignment and zoom in sequence. The gimbal becomes effective at 100.48 seconds, the zoom becomes effective at 100.72 seconds, and a stabilization wait of 0.20 seconds is then complete. .
[0175] Upper bound of time mapping error Seconds. Frame rate at exposure time 100.94 seconds. Rejected; the frame rate of 100.99 seconds at exposure time is met. The time condition must be met. Subsequent frames must also meet session and sequence number conditions; the vertical "s" at the end of the formula is in seconds, distinct from the candidate string. .
[0176] B105 achieved the best vehicle association score of 0.91 and the second-best score of 0.61 on qualified new frames, meeting the 0.75 absolute threshold and the 0.15 difference threshold. The original width of the main vehicle's license plate is 210 pixels and the character height is 27 pixels. (Example of quality feature) , through the normal environmental threshold.
[0177] Three different exposure frames at 100.99, 101.14, and 101.29 seconds are taken to form a first view group, with intra-group normalization weights of 0.30, 0.33, and 0.37; the weights of the candidates "Hu A12345" and "Hu A12346" for each frame are 0.92 and 0.08 respectively, so the support rates of this group are 0.92 and 0.08. Then the magnification is adjusted to 7.60 times within the safety magnification range, and the relative change of the actual magnification exceeds 15%; after the new post-action threshold and same license confirmation, three frames at 102.20, 102.35, and 102.50 seconds are taken to form a second group, and its candidate support rates are exemplarily the same as 0.92 and 0.08. After the two groups are weighted equally ; the support rate after removing any group is still 0.92, and the robust support rate is 0.92. After the confidence of each character and the high-confidence conflict check are passed, the process proceeds to hold-out verification.
[0178] The system reserves another original close-up photo in advance, with an exposure time of 102.80 seconds; this image does not participate in the support calculation of the two groups. After passing the time, correlation and quality checks, the same text is obtained, with a text confidence of 0.96 and a minimum character confidence of 0.92, so the result that passes the verification is output and the evidence is solidified. If the held-out image returns a different text with high confidence, the process enters recheck; for other unqualified situations, supplementary shooting is performed according to the budget. After all actions reach the final state and the device is confirmed to stop, the resources are released, and for network reporting failures, only the transmission of the same evidence package is retried.
[0179] Embodiment 2: Multiple vehicles in the same frame and preset uncertainty constraint.
[0180] When there are vehicles A and B in the same frame, the system sorts and selects the main vehicle A according to the scene priority, the distance from the target to the frame center, the confidence, and the stable vehicle identifier, and retains B as context. The two vehicles each have a vehicle_id and are not merged due to their close positions. When B does not acquire resources, it will not enter the old candidate queue, and will be reconfirmed in subsequent new frames.
[0181] The image and frame size of Embodiment 1 are used continuously, when the predicted standard deviation increases to pixels: ; .
[0182] Therefore, the preset upper magnification limit is approximately , which is lower than 6.60 required to reach the expected target proportion. The system uses a wider field of view to re-acquire vehicle A, and further zooming is considered only after the new observation reduces the uncertainty; at this time, the previous preset 6.60 times magnification cannot be directly executed.
[0183] After the action, if A's correlation score is 0.79 and B's is 0.72, the difference of 0.07 is less than 0.15, so even if B's license plate is clear, it will not enter the OCR sequence of event A. The system maintains or reduces the magnification and re-correlates; after reaching the reshoot or duration limit, it outputs a manual review for A and retains the correlation candidate score. Late callbacks of old events carry old occupied generations and can only be archived; they cannot release the resources for subsequent events of B.
[0184] Example 3: Quality linkage under low light and weather switching.
[0185] A certain brand under the daytime slot The standard threshold was not met. After three consecutive environmental confirmations, switching to the calibrated low-light setting allowed passage of the soft quality threshold, but hard requirements such as character size, borders, and occlusion must still be met. B107 also requires at least three distinguishable qualified viewfinder groups, a total of at least five different exposure frames, and robust support rate. Each group must have at least two representative frames and meet the span condition. If there is only one group, adding similar frames cannot replace the group number requirement; if the three groups support 0.96, 0.94, and 0.95 for the same text, the minimum support after removing any one group is 0.945, and other checks are accepted only after passing.
[0186] If the confidence level for the weather category is less than 0.70, the unknown level will be used; if the license plate province cannot be reliably identified, multiple province template candidates will be retained. The threshold should not exceed 0.20, and visual characters should not be overlaid at the current position. If a high-confidence, different text appears in an independent original close-up image, it should be entered into a review process; the threshold should not be further relaxed to eliminate conflicts.
[0187] Example 4: Video frame capture for evidence collection at different magnification levels.
[0188] The framing uses 1x panoramic, 3x medium vehicle shot, and 7x license plate close-up. Upon successful zoom, the receiver's arrival time is recorded. After waiting 500 milliseconds, only incrementing sequences that satisfy the condition are processed. Pre-screening of the original frames; The time the server received the frame is in milliseconds (ms). After pre-screening, it still needs to pass the actual final state of B104, exposure time threshold, session and action round verification; the queue is verified again during phase advancement. Receive time screening cannot prove that exposure occurred after the action; if there is a lack of valid exposure time mapping or error upper bound, the image is only kept as material for review. The receive time, its server_receive source, exposure time, mapping version, and error upper bound are saved separately.
[0189] In the 3x phase, first obtain 5 stable vehicle-related observations, then obtain at least 3 clear frames from 8 license plate observations. The original cropped image should be fast-gated with a license plate width of at least 80 pixels, a Laplacian variance of at least 80, an average brightness of 25 to 235, and a truncation ratio not exceeding 0.35, before entering the B106 unified scale evaluation. An example OCR single-frame confidence score of 0.85 is required; three hits on the same text only form mid-range candidates. Mid-range frames meeting quality requirements are archived as framing groups and retained when entering the 7x window. Finally, at least the required number of distinguishable qualified groups are formed, and removal group verification and retention verification are completed.
[0190] The selected 3x original frame is used as the vehicle's mid-range image; the gimbal is then centered using the already bound license plate, and a new frame is acquired at 7x magnification to reposition the license plate, perform OCR, and perform perspective cropping. Different evidence identifiers are retained for panoramic, mid-range, and close-up shots; the cropped image points to its corresponding original frame, and a summary is saved. If the mid-range shot is unclear or the text is unstable, a reshoot within the budget is selected based on the reshoot decision; if no suitable action is taken or the budget is exhausted, a review is conducted. If the license plate is not visible in any stable new frames, the wide field of view is restored, and the vehicle is repositioned according to the permitted observation position or POI scheme to reconfirm the main vehicle; the vehicle's front or flight path is not directly inferred from the length and short sides of the 2D bounding box.
[0191] Example 5: Similar Frame Grouping and Removal Group Test.
[0192] Within the same event, a 3x window yielded 8 approximate observations, all identified as text A and categorized as... Three representative frames are retained according to the quality rules, and the group supports them. A 7x window yields 3 representative frames, two of which support A and one supports B. For example, the normalized weights are 0.35, 0.35, and 0.30. Therefore: ; .
[0193] Here, A and B are example tags for two candidate strings. For the framing group tag, Each is a group of support functions; label A is different from the support function. None of the observations contained a reverse string with a confidence level of at least 0.90. The two equally weighted sets had a support of 0.85 for A, but removing... The value is only 0.70, which is unacceptable. Continue increasing... Similar frames do not increase the overall contribution between groups.
[0194] like The card width was slightly too small, but there was a safety margin. The system selected one magnification adjustment, increasing the actual magnification from 7 to 8.4 and then re-passing the action threshold. Three valid observations confirmed the new framing conditions, forming... ; Assumption ,but: ; ; .
[0195] The minimum remaining support rate (i.e., the robust support rate mentioned above) passes the ordinary threshold. Its B candidate remains. A result is formed only when character confidence, identity quality, and the separately held-out image all pass; this calculation example does not imply that A is necessarily a real license plate.
[0196] Example 6: Invalid action memory and conditional changes.
[0197] For a certain event, due to blurriness, the steady-state wait time was increased from 0.2 seconds to 0.4 seconds. The motion state was confirmed, and the median comparable sharpness before and after was 100 and 105, respectively. The improvement percentage is: .
[0198] Other quality and grouping support showed no improvement, therefore the wait actions under this condition key were marked as invalid. When a request with the same conditions is encountered again, it is skipped without retrying due to changes in request_id or action_epoch, and other actions that still have permission and budget are selected instead. If no actions are available, a review is performed.
[0199] If the environment or actual shooting location changes beyond the grouping threshold and is confirmed three times consecutively, the waiting action can be re-evaluated, but the evidence for clearing the memory must be preserved and the remaining budget will be used. If the receipt status is unknown or the same vehicle cannot be confirmed, it will be recorded as unknown and queried or reviewed; a "verified invalid" conclusion will not be established. At the end of the event, the group history, group removal results, invalid actions, and clearing records and evidence will be archived together.
[0200] In one embodiment, a computer device is provided, which may be a server, and its internal structure diagram may be as follows: Figure 6 As shown, the computer device includes a processor, memory, and a network interface connected via a system bus. The processor provides computing and control capabilities. The memory includes a non-volatile storage medium and internal memory. The non-volatile storage medium stores an operating system, computer programs, and a database. The internal memory provides an environment for the operation of the operating system and computer programs in the non-volatile storage medium. The database stores static and dynamic information data. The network interface communicates with external terminals via a network connection. When the computer program is executed by the processor, it implements the steps in the above method embodiments.
[0201] Those skilled in the art will understand that Figure 6 The structure shown is merely a block diagram of a portion of the structure related to the present invention and does not constitute a limitation on the computer device to which the present invention is applied. A specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have different component arrangements.
[0202] In addition, the present invention also provides a computer device, including a memory and a processor, wherein the memory stores a computer program, and the processor executes the computer program to implement the steps in the above method embodiments.
[0203] In addition, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the steps in the above method embodiments.
[0204] Those skilled in the art will understand that all or part of the processes in the methods of the above embodiments can be implemented by a computer program instructing related hardware. The computer program can be stored in a non-volatile computer-readable storage medium, and when executed, it can include the processes of the embodiments of the methods described above. Any references to memory, storage, databases, or other media used in the embodiments provided by this invention can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, or optical storage, etc. Volatile memory can include random access memory (RAM) or external cache memory. By way of illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM), etc.
[0205] This invention is not limited to the structures described above and shown in the accompanying drawings, and various modifications and changes can be made without departing from its scope. The scope of this invention is limited only by the appended claims.
Claims
1. A closed-loop AI-based method for obtaining vehicle license plate information from unmanned aerial vehicles (UAVs), characterized in that, The method includes: Vehicle detection and tracking are performed on UAV media frames to obtain vehicle bounding boxes and construct vehicle time sequence segments; motion state prediction is performed on vehicle positions to obtain predicted positions and predicted covariance, and a solution pre-set object containing the predicted position and standard deviation envelope is obtained based on the predicted covariance. Based on the vehicle time sequence segment, determine the candidate targets to be evidenced and complete the candidate deduplication, and output the main vehicle identifier; Based on the main vehicle identification, visual control resources are reserved. After the visual control resources are successfully reserved, an event context carrying a pre-defined object is constructed. Based on the event context, the upper limit of the safe zoom magnification is determined according to the prediction covariance, and the preset action is executed within the upper limit of the safe zoom magnification based on the preset object; the new frame after the action is selected according to the effective time of the preset action to form the input context after the action. Based on the input context after the action, a unique re-association verification is performed on the vehicle corresponding to the main vehicle identifier, and license plate localization is performed within the vehicle frame that passes the verification to obtain the license plate candidate area; The quality of the candidate license plate area is assessed to obtain license plate images that pass the quality threshold. License plate recognition is performed on license plate images that have passed the quality access test. The images are divided into framing groups according to the actual framing conditions and each group has an equal weight contribution. The robust support rate is obtained by removing and recalculating each group. The close-up images are then combined for cross-validation, and the license plate recognition conclusion that has passed the validation is output. If no valid license plate recognition result is output, a reshoot action is selected based on the invalid action memory, the action round is updated, and the preset action is executed. If a valid license plate recognition result is output, evidence binding is performed, an evidence package is generated and reported, and the closed-loop event result is output.
2. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, The process of predicting the motion state of the vehicle position to obtain the predicted position and predicted covariance, and calculating a pre-defined solution object containing the predicted position and standard deviation envelope based on the predicted covariance, includes: Construct a constant velocity state vector for the vehicle center under the same stable reference coordinates in the vehicle time sequence segment; Kalman constant velocity filtering is used to predict the constant velocity state vector to obtain the estimated state position and prediction covariance; Based on the final state records of recent similar device commands, the transmission, execution, stabilization, and overview photography times are estimated. The time estimation is updated using exponential smoothing. Based on the current trajectory frame age and the updated time estimation, the estimated state position is extrapolated along the constant velocity state vector to the time when the preset action takes effect to obtain the predicted position. The predicted position is mapped to the image via camera calibration, and the preset gimbal angle and preset zoom ratio are calculated. The standard deviation envelope of the predicted position is determined based on the predicted covariance, and the preset gimbal angle, preset zoom ratio, and standard deviation envelope are used as preset objects.
3. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, The process of determining candidate targets for evidence collection based on vehicle time sequence segments and performing candidate deduplication, outputting the main vehicle identifier includes: Based on the vehicle grounding anchor point, motion state and cumulative dwell time of the vehicle time sequence segment, the candidate vehicles are initially screened to obtain the initial set of candidate vehicles. Based on the effectiveness of positioning, the ground anchor point and the no-parking area are unified into the same coordinate domain to carry out area determination, and candidate targets for evidence collection that meet the preset candidate criteria are selected from the initial candidate vehicle set. The candidate targets to be forensic analysis are deduplicated using a deduplication key consisting of session identifier, stable vehicle identifier, and task configuration version, resulting in deduplicated candidate targets. Select the primary vehicle identifier from the deduplicated candidate targets, and output the primary vehicle identifier, the corresponding deduplication key, and the candidate validity period.
4. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 2, characterized in that, The step of determining the upper limit of safe zoom magnification based on the event context and the predicted covariance, and performing preset actions within the upper limit of safe zoom magnification based on preset objects, includes: Based on the standard deviation envelope in the preset object, combined with the safe aspect ratio and the device magnification range, the upper limit of the safe zoom magnification is determined; The gimbal is aligned according to the preset gimbal angle in the preset object, and the zoom is controlled within the upper limit of the safe zoom ratio according to the preset zoom ratio in the preset object, so as to obtain the preset action execution result.
5. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 4, characterized in that, The step of filtering new frames after an action based on the effective time of a preset action to form the input context after the action includes: The display timestamps of media frames are mapped to a monotonic time domain that is consistent with the device, and the acquisition time and upper bound of the mapping error corresponding to each media frame are calculated. Obtain the effective time of the preset action from the device feedback, and calculate the new frame time threshold in the monotonic time domain by combining it with the preset stable waiting time. Media frames are filtered based on acquisition time, upper bound of mapping error, session identifier, action round, and frame sequence number. Only frames whose acquisition time is later than the new frame time threshold and belong to the current session and the current action round are retained as new frames after the action. The post-action input context is generated by integrating the new frame after the action, the actual gimbal attitude and actual zoom ratio, the preset action activation time, the upper bound of the mapping error, and the event context.
6. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, Based on the post-action input context, a unique re-association verification is performed on the vehicle corresponding to the main vehicle identifier, and license plate localization is performed within the vehicle frame that passes the verification, resulting in a license plate candidate region including: Extract the new frame after the action, the actual gimbal attitude and actual zoom ratio, the main vehicle identifier, the predicted position and the standard deviation envelope from the post-action input context; The predicted position and standard deviation envelope are transformed to the new frame after the action to obtain the transformed predicted position. Detect vehicles in the new frame after the action to obtain a vehicle detection set; The expected pixel scale is determined based on the actual gimbal attitude and the actual zoom ratio. The search radius is the predicted position after transformation and the standard deviation envelope. Candidate associations that meet the Mahalanobis distance threshold and whose size is consistent with the expected pixel scale are selected from the vehicle detection set. When the associated candidate is unique and its association score meets the absolute threshold and the difference threshold, the unique re-association verification is passed, and the vehicle frame that has passed the verification is obtained. Perform license plate localization within the vehicle frame that has passed verification, and output the license plate candidate area.
7. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, The process of determining the quality of the candidate license plate region to obtain a license plate image that passes quality access includes: Extract the candidate license plate region image and calculate a multi-dimensional quality vector including size, character height, sharpness, brightness, contrast, boundary integrity, occlusion ratio, tilt angle, and perspective distortion; The environmental level is determined based on the full-image illumination estimation and weather type identification results of the new frame after the action. The basic quality threshold is determined based on the environmental level, and then the basic quality threshold is adjusted according to the correction amount corresponding to the environmental level to obtain the entry threshold under the current environment. The multidimensional quality vector is compared with the entry threshold, and the candidate regions of the license plates that meet the entry threshold are selected as the license plate images that pass the quality access.
8. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, The process of performing license plate recognition on license plate images that have passed quality standards involves dividing the image into framing groups based on actual framing conditions, with each group having an equal weighted contribution. Robust support rates are obtained by removing and recalculating each group, and cross-validation is performed using nearby images. The output of the license plate recognition conclusion that has passed the validation includes: After geometric correction of the license plate images that have passed the quality threshold, character recognition is performed to obtain the candidate text of each frame and the recognition confidence of each character; The frame-embedded confidence of each candidate text is determined based on the recognition confidence of each character, and the frame weight is obtained by combining the multidimensional quality vector of the frame. Based on the actual framing conditions, license plate images that pass the quality access test are classified into several framing groups. The frame with the highest frame weight in each group is selected as the representative frame. The frame weights within the group are normalized, and the candidate texts of each representative frame are fused equally between groups to obtain the weighted support rate of each candidate text. The candidate text with the highest weighted support rate is determined as the selected candidate. Remove one framing group at a time and recalculate the support rate of the remaining groups for the selected candidate. The lowest value among the support rates obtained from each recalculation is taken as the robust support rate. If the support rate of the selected candidate is the only highest after each recalculation and the robust support rate is not lower than the preset robustness threshold, then the group stability test is passed. After the group stability test is passed, the selected candidate is cross-validated using the left-behind close-up image that was not involved in the fusion. When the highest visual candidate in the left-behind close-up image is consistent with the selected candidate character by character and the character confidence meets the threshold, the selected candidate is output as the license plate recognition conclusion that has passed the verification.
9. The closed-loop AI evidence collection method for vehicle license plates using unmanned aerial vehicles according to claim 1, characterized in that, If no valid license plate recognition result is output, then a re-shooting action is selected based on the invalid action memory, and after updating the action round, the preset action is returned to be executed, including: When no valid license plate recognition result is output, the preset gimbal angle, preset zoom ratio, actual gimbal attitude, actual zoom ratio, failure reason and acquisition time of the current action round are recorded into the invalid action memory. Invalid action memories are retrieved using the session identifier and the main vehicle identifier as indexes. Candidate reshoot actions with gimbal angle difference and zoom ratio difference less than the preset repetition threshold between them and historically executed actions are removed to obtain the remaining candidate reshoot actions. Based on the cause of failure, determine the reshoot action from the remaining candidate reshoot actions, update the preset gimbal angle and preset zoom ratio corresponding to the reshoot action to the event context, accumulate the action rounds, control the gimbal alignment according to the updated preset gimbal angle, and control the zoom within the safe zoom ratio limit according to the updated preset zoom ratio. When the number of action rounds exceeds the preset round limit or the remaining candidate reshoot actions are empty, the reshoot is terminated, and the closed-loop event result of evidence collection failure is output.
10. A closed-loop AI-based evidence collection system for vehicle license plates from unmanned aerial vehicles (UAVs), characterized in that, The system includes: The vehicle detection and prediction unit is used to detect and track vehicles in UAV media frames, obtain vehicle bounding boxes and construct vehicle time segments; predict the motion state of vehicle positions, obtain predicted positions and predicted covariance, and calculate a pre-set solution object containing the predicted positions and standard deviation envelopes based on the predicted covariance. The candidate deduplication unit is used to determine the candidate targets to be evidenced based on the vehicle time sequence segments and complete the candidate deduplication, and output the main vehicle identifier; The resource reservation construction unit is used to reserve visual control resources based on the main vehicle identifier and to construct an event context carrying preset objects after the visual control resources are successfully reserved. The preset execution filtering unit is used to determine the upper limit of safe zoom magnification based on the event context and the prediction covariance, and to execute preset actions within the upper limit of safe zoom magnification based on the preset object; and to filter new frames after the action based on the effective time of the preset action to form the input context after the action. The re-association localization unit is used to perform unique re-association verification on the vehicle corresponding to the main vehicle identifier based on the input context after the action, and to perform license plate localization within the vehicle frame that passes the verification to obtain the license plate candidate area. The quality assessment unit is used to assess the quality of the license plate candidate area and obtain a license plate image that passes the quality admission test. The recognition and verification unit is used to recognize license plates in license plate images that have passed the quality access test. It divides the framing group according to the actual framing conditions and assigns equal weight to each group. After removing and recalculating each group, it obtains a robust support rate and performs cross-validation by retaining close-up images. It then outputs the license plate recognition conclusion that has passed the verification. The supplementary shooting and reporting unit is used to select a supplementary shooting action based on the invalid action memory if no license plate recognition result is output after updating the action round and returning to execute the preset action if no license plate recognition result is output after verification. If a license plate recognition result is output after verification, evidence binding is performed, an evidence package is generated and reported, and the closed-loop event result is output.
Citation Information
Patent Citations
Intelligent aerial photography recognition method and system for illegally parked vehicles
CN110619750B
A drone-based system and method for detecting and collecting evidence of illegally parked vehicles on the road.
CN112201051B
